* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--ww-surface); color: var(--ww-ink); font: 1rem/1.5 system-ui, sans-serif; }
main, .footer { width: 100%; max-width: 30rem; margin: auto; padding: 1.25rem 1rem; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.15; color: var(--ww-green); }
h2 { font-size: 1.2rem; line-height: 1.3; }
h3 { font-size: 1.05rem; }
p + p { margin-top: .65rem; }
a { color: var(--ww-green); text-underline-offset: .15em; }
.subtitle { color: var(--ww-muted); font-size: .9rem; margin-top: .7rem; }
.page-head { border-bottom: 2px solid var(--ww-green); padding-bottom: .85rem; margin-bottom: 1.25rem; }
.segments { display: flex; gap: .2rem; padding: .25rem; border: 1px solid var(--ww-green); border-radius: 2rem; margin-top: .9rem; }
.segments a { flex: 1; text-align: center; padding: .7rem .35rem; border-radius: 2rem; color: var(--ww-muted); text-decoration: none; font-size: .9rem; font-weight: 650; white-space: nowrap; }
.segments a[aria-current="page"] { background: var(--ww-green); color: var(--ww-surface); }
.segments a:hover { background: var(--ww-soft); color: var(--ww-green-hover); }
.segments a[aria-current="page"]:hover { background: var(--ww-green-hover); color: var(--ww-surface); }
button, .button, input, textarea, select { font: inherit; border-radius: .75rem; min-height: 48px; }
button, .button { display: block; width: 100%; border: 1px solid var(--ww-green); background: var(--ww-green); color: var(--ww-surface); padding: .75rem 1rem; text-align: center; text-decoration: none; font-weight: 700; cursor: pointer; }
button:hover, .button:hover { background: var(--ww-green-hover); }
.secondary { background: var(--ww-surface); color: var(--ww-green); }
.secondary:hover { background: var(--ww-soft); }
input, textarea, select { width: 100%; border: 1px solid var(--ww-green); padding: .65rem .8rem; background: var(--ww-surface); color: var(--ww-ink); }
textarea { min-height: 7rem; resize: vertical; }
input[type="checkbox"] { width: 1.2rem; min-height: 1.2rem; flex: none; accent-color: var(--ww-green); }
label { display: block; font-weight: 600; }
.check { display: flex; align-items: start; gap: .65rem; font-size: .95rem; }
:focus-visible { outline: 2px solid var(--ww-green); outline-offset: 3px; }
.stack { display: grid; gap: .85rem; }
.field { display: grid; gap: .4rem; }
.section-label { display: block; font-size: .75rem; font-weight: 650; text-transform: uppercase; letter-spacing: .09em; color: var(--ww-muted); margin-bottom: .5rem; }
.small, .muted { color: var(--ww-muted); }
.small { font-size: .85rem; }
.card { border: 1px solid var(--ww-border); border-radius: .85rem; padding: 1rem; }
.notice { background: var(--ww-green-pale); padding: .85rem 1rem; border-radius: .75rem; }
.lead-list { list-style: none; padding: 0; display: grid; gap: .75rem; margin: .8rem 0 1.5rem; }
.lead-list h3 { margin-bottom: .25rem; }
.lead-list .button, .lead-list form { margin-top: .8rem; }
.section { margin-top: 1.5rem; }
.link-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; margin-top: 1rem; }
.phone { border: 2px solid var(--ww-green); border-radius: .75rem; padding: .75rem 1rem; }
.phone a { display: block; font-size: 1.4rem; font-weight: 750; text-decoration: none; }
.facts { margin: 0; display: grid; grid-template-columns: 6.5rem 1fr; gap: .35rem .6rem; font-size: .9rem; }
.facts dt { color: var(--ww-muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.evidence { padding-left: 1.15rem; font-size: .9rem; margin: .5rem 0 0; }
.guide { border: 2px solid var(--ww-green); border-radius: .75rem; padding: .9rem; }
.steps { list-style: none; counter-reset: steps; padding: 0; margin: .7rem 0 0; }
.steps > li { border-top: 1px solid var(--ww-border); padding: .8rem 0; }
.steps > li:first-child { border-top: 0; }
.steps > li > h3 { counter-increment: steps; display: flex; gap: .5rem; align-items: center; }
.steps > li > h3::before { content: counter(steps); display: inline-grid; place-items: center; border-radius: 50%; width: 1.3rem; height: 1.3rem; background: var(--ww-green); color: var(--ww-surface); font-size: .75rem; }
summary { cursor: pointer; font-weight: 600; }
.help { margin-top: .65rem; }
.help summary { border: 1px solid var(--ww-green); border-radius: 2rem; padding: .5rem .7rem; width: fit-content; font-size: .85rem; }
.help[open] { background: var(--ww-soft); border-radius: .75rem; padding: .6rem; }
.help p { margin-top: .5rem; font-size: .9rem; }
.note { white-space: pre-wrap; overflow-wrap: anywhere; }
.footer { border-top: 1px solid var(--ww-border); margin-top: 1rem; padding-bottom: 2rem; }
.footer p { text-align: center; margin-top: .8rem; }
.login-wrap { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; }
.login-card { display: grid; gap: 1rem; }
.login-mark { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 1rem; background: var(--ww-green); color: var(--ww-surface); font-size: 1.7rem; font-weight: 800; margin-bottom: .2rem; }
.skip { position: absolute; left: 1rem; top: -100px; padding: 1rem; background: var(--ww-surface); }
.skip:focus { top: 0; }

[hidden] { display: none !important; }
.score-range { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.reaction-buttons { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.reaction-buttons button, .reaction-buttons form { width: auto; }
.reaction-buttons button { border-radius: 2rem; font-size: .85rem; padding: .5rem .7rem; }
.objection { border: 2px solid var(--ww-green); border-radius: .75rem; padding: .8rem; margin-top: .7rem; background: var(--ww-soft); }
.guide [data-step].current { border-left: 3px solid var(--ww-green); padding-left: .6rem; }

.reaction-buttons button[aria-expanded="true"] { background: var(--ww-green); color: var(--ww-surface); }

/* Auswahl, Listen und Lead-Detail (Aufbau wie Anruf-Cockpit, Wirth-Farben) */
.crumb { font-size: .9rem; margin-bottom: .4rem; }
.crumb a { text-decoration: none; font-weight: 600; }
.segments .n { display: inline-block; min-width: 1.4rem; margin-left: .25rem; padding: 0 .35rem; border-radius: 1rem; background: var(--ww-soft); color: var(--ww-green); font-size: .8rem; }
.segments a[aria-current="page"] .n { background: var(--ww-surface); }
.pipeline { display: grid; gap: .85rem; }
.pipe { display: grid; gap: .3rem; padding: 1.15rem 1.1rem; border: 2px solid var(--ww-green); border-radius: 1rem; text-decoration: none; color: var(--ww-ink); }
.pipe:hover, .pipe:focus-visible { background: var(--ww-soft); }
.pipe-title { font-size: 1.45rem; font-weight: 800; color: var(--ww-green); letter-spacing: -.02em; }
.pipe-title::after { content: " →"; }
.pipe-sub { color: var(--ww-muted); font-size: .9rem; }
.pipe-count { font-size: .95rem; }
.active-call { display: grid; gap: .1rem; padding: .8rem 1rem; margin-bottom: 1rem; border-radius: .85rem; background: var(--ww-green-pale); color: var(--ww-ink); text-decoration: none; }
.active-call .section-label { margin: 0; }
.filter { margin-bottom: .4rem; }
.filter .section-label { margin-bottom: .35rem; }
.filter-row { display: flex; gap: .5rem; }
.filter-row button { width: auto; }
.list-info { margin: .4rem 0 .2rem; }
.rows { list-style: none; padding: 0; margin: .5rem 0 1rem; border-top: 1px solid var(--ww-border); }
.row { border-bottom: 1px solid var(--ww-border); }
.row a { display: flex; align-items: center; gap: .75rem; padding: .8rem .15rem; color: var(--ww-ink); text-decoration: none; min-height: 3.5rem; }
.row a:hover, .row a:focus-visible { background: var(--ww-soft); }
.row-rank { flex: none; width: 2rem; text-align: right; color: var(--ww-muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.row-dot { flex: none; width: .65rem; height: .65rem; margin: 0 .3rem; border-radius: 50%; border: 2px solid var(--ww-border); }
.row-dot.on { background: var(--ww-green); border-color: var(--ww-green); }
.row-main { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.row-firma { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { color: var(--ww-muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-side { flex: none; }
.score { display: inline-grid; place-items: center; min-width: 2.6rem; padding: .2rem .45rem; border-radius: 1rem; border: 1px solid var(--ww-green); color: var(--ww-green); font-weight: 750; font-variant-numeric: tabular-nums; }
.score.hi { background: var(--ww-green); color: var(--ww-surface); }
.score.none { border-color: var(--ww-border); color: var(--ww-muted); }
.empty { padding: 2rem 0; text-align: center; color: var(--ww-muted); }
.lead-title { font-size: 1.6rem; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.tag { padding: .15rem .55rem; border-radius: 1rem; background: var(--ww-soft); font-size: .8rem; color: var(--ww-ink); }
.tag.score-tag, .tag.hot { background: var(--ww-green); color: var(--ww-surface); font-weight: 650; }
.phone-card { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; border: 2px solid var(--ww-green); border-radius: .85rem; padding: .85rem 1rem; margin-bottom: .85rem; }
.phone-card .num { display: block; font-size: 1.45rem; font-weight: 800; text-decoration: none; }
.phone-card .site-link { font-size: .9rem; font-weight: 600; }
.guide-fold { border: 1px solid var(--ww-border); border-radius: .85rem; padding: .8rem 1rem; }
.guide-fold > summary { list-style-position: inside; }
.gsteps { counter-reset: g; list-style: none; padding: 0; margin: .6rem 0 1rem; }
.gsteps li { border-top: 1px solid var(--ww-border); padding: .6rem 0; }
.gsteps li:first-child { border-top: 0; }
.gsteps .section-label { margin-bottom: .2rem; }
.gsteps .section-label::before { counter-increment: g; content: counter(g) "  "; color: var(--ww-green); }
.obj-list { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; align-items: flex-start; }
.obj-list .help[open] { flex-basis: 100%; }
.obj-list .help { margin-top: 0; }
.hist { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .6rem; }
