/* zorquix Admin. Hell oder dunkel nach System. Ein Akzent, nur für Handlungen und den aktuellen Schritt. */
:root {
  --bg: #f4f4f2; --seite: #ebebe8; --panel: #fff; --linie: #e1e1dc; --linie2: #cfcfc8; --text: #1c1d1f; --leise: #63655f;
  --hover: rgba(0,0,0,.045); --akzent: #1f6f5c; --akzent-text: #fff; --akzent-hell: #e3f0ec; --feld: #fff;
  --gut: #2c7a3f; --gut-hell: #e6f2e8; --warn: #9a6200; --warn-hell: #fbf0dc; --schlecht: #b3261e; --schlecht-hell: #fbe7e5;
  --schatten: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08);
  font: 14px/1.45 "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1e1f; --seite: #18191a; --panel: #26272a; --linie: #34363a; --linie2: #45474c; --text: #ececea; --leise: #a3a6a0;
    --hover: rgba(255,255,255,.06); --akzent: #5fbf9f; --akzent-text: #0f1d18; --akzent-hell: #1f3530; --feld: #1f2022;
    --gut: #7cc68d; --gut-hell: #1f3324; --warn: #e3b25a; --warn-hell: #3a2f1a; --schlecht: #ff8f86; --schlecht-hell: #3c2220;
    --schatten: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); display: flex; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--akzent); }
h1 { font-size: 22px; font-weight: 650; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 15px; font-weight: 650; margin: 0 0 10px; }
h3 { font-size: 14px; font-weight: 650; margin: 0 0 6px; }
.leise { color: var(--leise); }
.klein { font-size: 12.5px; }
code, .mono { font-family: "Cascadia Code", Consolas, monospace; font-size: 12.5px; }

/* Seitenleiste */
aside { width: 216px; flex: none; background: var(--seite); display: flex; flex-direction: column; padding: 16px 10px 12px; border-right: 1px solid var(--linie); }
.marke { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; font-weight: 650; font-size: 15px; }
.marke small { font-weight: 400; color: var(--leise); }
.logo { width: 24px; height: 24px; border-radius: 6px; background: var(--text); color: var(--bg); display: grid; place-items: center; font-weight: 700; }
nav { flex: 1; display: grid; align-content: start; gap: 2px; }
nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; color: var(--text); text-decoration: none; position: relative; }
nav a:hover { background: var(--hover); }
nav a.an { background: var(--panel); font-weight: 600; box-shadow: 0 0 0 1px var(--linie); }
nav a .zahl { margin-left: auto; background: var(--akzent); color: var(--akzent-text); border-radius: 10px; font-size: 11.5px; padding: 0 7px; font-weight: 600; }
nav svg { width: 17px; height: 17px; flex: none; color: var(--leise); }
nav a.an svg { color: var(--akzent); }
.abgleich { border-top: 1px solid var(--linie); padding: 12px 8px 0; font-size: 12.5px; color: var(--leise); display: grid; gap: 6px; }
.abgleich .zeile { display: flex; align-items: center; gap: 8px; }
.punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--gut); flex: none; }
.punkt.warn { background: var(--warn); } .punkt.schlecht { background: var(--schlecht); } .punkt.aus { background: var(--linie2); }
.punkt.laeuft { background: var(--akzent); animation: puls 1.2s ease-in-out infinite; }
@keyframes puls { 50% { opacity: .35; } }

/* Hauptbereich */
main { flex: 1; min-width: 0; overflow-y: auto; }
.kopf { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 22px 32px 14px; display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.kopf .titel { flex: 1; min-width: 240px; }
.kopf .titel p { margin: 3px 0 0; color: var(--leise); }
.inhalt { padding: 4px 32px 48px; }
.zurueck { color: var(--leise); text-decoration: none; font-size: 13px; display: inline-flex; gap: 4px; align-items: center; margin-bottom: 6px; }
.zurueck:hover { color: var(--text); }

.karte { background: var(--panel); border: 1px solid var(--linie); border-radius: 10px; padding: 18px 20px; }
.karte + .karte { margin-top: 14px; }
.raster { display: grid; gap: 14px; }
.zwei { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1150px) { .zwei { grid-template-columns: 1fr; } }
.leer { text-align: center; padding: 56px 20px; color: var(--leise); }
.leer h2 { color: var(--text); font-size: 17px; margin-bottom: 6px; }
.leer p { max-width: 460px; margin: 0 auto 16px; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--linie2); background: var(--feld); border-radius: 7px; padding: 6px 14px; white-space: nowrap; cursor: pointer; font-weight: 500; }
.knopf:hover { background: var(--hover); }
.knopf.haupt { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.knopf.haupt:hover { filter: brightness(1.07); }
.knopf.still { border-color: transparent; background: none; color: var(--leise); padding-inline: 8px; }
.knopf.still:hover { color: var(--text); background: var(--hover); }
.knopf.gefahr { color: var(--schlecht); }
.knopf[disabled] { opacity: .5; cursor: default; pointer-events: none; }
.knopf.klein { padding: 3px 10px; font-size: 13px; }
.knopf svg { width: 15px; height: 15px; }
.knoepfe { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dreht { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: dreh .8s linear infinite; flex: none; }
@keyframes dreh { to { transform: rotate(360deg); } }

/* Felder */
.feld { display: grid; gap: 4px; }
.feld > span { font-weight: 600; font-size: 13px; }
.feld > small, .hinweis { color: var(--leise); font-size: 12.5px; }
input[type=text], input[type=url], input[type=email], input[type=tel], input[type=number], input[type=date], textarea, select { background: var(--feld); border: 1px solid var(--linie2); border-radius: 7px; padding: 7px 10px; outline: none; width: 100%; }
input:focus, textarea:focus, select:focus { border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-hell); }
textarea { resize: vertical; min-height: 38px; line-height: 1.45; }
.feld.fehlt input, .feld.fehlt textarea { border-left: 3px solid var(--warn); }
input[type=checkbox] { accent-color: var(--akzent); width: 16px; height: 16px; }

/* Abzeichen */
.marke-k { display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; padding: 2px 10px; font-size: 12.5px; font-weight: 600; background: var(--hover); color: var(--leise); white-space: nowrap; }
.marke-k.gut { background: var(--gut-hell); color: var(--gut); }
.marke-k.warn { background: var(--warn-hell); color: var(--warn); }
.marke-k.schlecht { background: var(--schlecht-hell); color: var(--schlecht); }
.marke-k.akzent { background: var(--akzent-hell); color: var(--akzent); }

/* Schritte */
.schritte { display: flex; gap: 0; align-items: center; }
.schritte .s { display: flex; align-items: center; gap: 6px; color: var(--leise); font-size: 12.5px; white-space: nowrap; }
.schritte .s i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--linie2); flex: none; }
.schritte .s.fertig i { background: var(--gut); border-color: var(--gut); }
.schritte .s.jetzt { color: var(--text); font-weight: 600; }
.schritte .s.jetzt i { border-color: var(--akzent); background: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-hell); }
.schritte .strich { width: 16px; height: 2px; background: var(--linie2); margin: 0 6px; }
.schritte .strich.fertig { background: var(--gut); }
.schritte.kompakt .s span { display: none; }
.schritte.kompakt .strich { width: 10px; margin: 0 3px; }
.schritte.gross .s { font-size: 13px; cursor: pointer; padding: 4px 2px; }
.schritte.gross .strich { width: 28px; }

/* Kundenliste */
.liste { background: var(--panel); border: 1px solid var(--linie); border-radius: 10px; overflow: hidden; }
.liste .z { display: grid; grid-template-columns: minmax(180px, 1.3fr) auto minmax(200px, 1.6fr) minmax(150px, 1fr); gap: 20px; align-items: center; padding: 14px 18px; text-decoration: none; color: inherit; }
.liste .z + .z { border-top: 1px solid var(--linie); }
.liste a.z:hover { background: var(--hover); }
.liste .name b { display: block; font-weight: 600; }
.liste .wer { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--leise); min-width: 0; }
.liste .wer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kreis { width: 24px; height: 24px; border-radius: 50%; background: var(--akzent-hell); color: var(--akzent); font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }

/* Kunde */
.reiter { display: flex; gap: 2px; border-bottom: 1px solid var(--linie); margin: 0 32px; padding: 0; position: sticky; top: 0; z-index: 5; background: var(--bg); }
.reiter a { padding: 9px 14px; color: var(--leise); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; gap: 6px; align-items: center; }
.reiter a:hover { color: var(--text); }
.reiter a.an { color: var(--text); border-bottom-color: var(--akzent); font-weight: 600; }
.reiter a .marke-k { padding: 0 7px; font-size: 11.5px; }
.naechstes { display: flex; gap: 18px; align-items: center; border-left: 4px solid var(--akzent); }
.naechstes .was { flex: 1; }
.naechstes .was small { color: var(--leise); text-transform: none; display: block; margin-bottom: 2px; font-size: 12.5px; }
.naechstes .was b { font-size: 16px; }
.banner { display: flex; gap: 12px; align-items: center; padding: 11px 16px; border-radius: 9px; background: var(--akzent-hell); margin-bottom: 14px; }
.banner.warn { background: var(--warn-hell); }
.banner .grow { flex: 1; }

/* Brief */
.brief { display: grid; grid-template-columns: 200px minmax(0, 760px); gap: 28px; align-items: start; }
.brief .toc { position: sticky; top: 64px; display: grid; gap: 1px; font-size: 13px; }
.brief .toc a { color: var(--leise); text-decoration: none; padding: 4px 8px; border-radius: 5px; display: flex; gap: 6px; align-items: center; }
.brief .toc a:hover { background: var(--hover); color: var(--text); }
.brief .toc a .ok { color: var(--gut); margin-left: auto; } .brief .toc a .offen { color: var(--warn); margin-left: auto; font-size: 11.5px; }
.brief section { scroll-margin-top: 70px; }
.brief section > .hinweis { margin: -4px 0 12px; }
.brief .felder { display: grid; gap: 16px; }
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th { text-align: left; font-size: 12.5px; color: var(--leise); font-weight: 600; padding: 4px 6px; }
.tabelle td { padding: 3px; vertical-align: top; }
.tabelle td.fest { padding: 8px 6px; font-weight: 500; white-space: nowrap; }
.tabelle input { padding: 5px 8px; }
.stufen { display: inline-flex; border: 1px solid var(--linie2); border-radius: 7px; overflow: hidden; }
.stufen button { border: 0; background: var(--feld); width: 32px; padding: 5px 0; cursor: pointer; }
.stufen button + button { border-left: 1px solid var(--linie2); }
.stufen button.an { background: var(--akzent); color: var(--akzent-text); font-weight: 600; }
.speicherleiste { position: sticky; bottom: 0; margin: 20px -32px -48px; padding: 12px 32px; background: var(--panel); border-top: 1px solid var(--linie); display: flex; gap: 12px; align-items: center; z-index: 4; }
.speicherleiste .grow { flex: 1; }

/* Theme */
.tokens { display: grid; gap: 8px; }
.token { display: grid; grid-template-columns: 30px 170px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.token .muster { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--linie2); position: relative; overflow: hidden; }
.token .muster input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.token .probe { width: 30px; text-align: center; font-weight: 600; }
.vorschau { border-radius: 10px; padding: 26px; border: 1px solid var(--linie); }
.vorschau .knopfprobe { display: inline-block; padding: 8px 16px; margin-top: 14px; }

/* Material */
.ablage { border: 2px dashed var(--linie2); border-radius: 10px; padding: 22px; text-align: center; color: var(--leise); transition: border-color .1s, background .1s; }
.ablage.ueber { border-color: var(--akzent); background: var(--akzent-hell); color: var(--text); }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 14px; }
.kachel { background: var(--panel); border: 1px solid var(--linie); border-radius: 9px; overflow: hidden; display: flex; flex-direction: column; }
.kachel .bild { height: 110px; background: var(--seite) center / cover no-repeat; display: grid; place-items: center; color: var(--leise); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.kachel .unter { padding: 7px 8px 7px 10px; display: flex; gap: 6px; align-items: center; font-size: 12.5px; }
.kachel .unter span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Markdown */
.md { line-height: 1.55; overflow-wrap: anywhere; }
.md h1 { font-size: 19px; margin: 4px 0 10px; } .md h2 { font-size: 16px; margin: 22px 0 8px; } .md h3 { font-size: 14px; margin: 16px 0 6px; }
.md p { margin: 8px 0; } .md ul, .md ol { padding-left: 22px; margin: 6px 0; }
.md pre { background: var(--seite); border-radius: 7px; padding: 10px 12px; overflow-x: auto; line-height: 1.3; }
.md code { background: var(--seite); padding: 1px 4px; border-radius: 4px; } .md pre code { background: none; padding: 0; }
.md table { border-collapse: collapse; margin: 10px 0; font-size: 13px; } .md th, .md td { border: 1px solid var(--linie); padding: 5px 8px; text-align: left; vertical-align: top; }
.md blockquote { margin: 8px 0; padding: 2px 12px; border-left: 3px solid var(--linie2); color: var(--leise); }
.md .urteil { display: inline-block; margin-top: 8px; }

/* Bilder */
.galerie { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.galerie figure { margin: 0; flex: none; cursor: zoom-in; }
.galerie img { height: 220px; border-radius: 7px; border: 1px solid var(--linie); display: block; object-fit: cover; object-position: top; max-width: 320px; }
.galerie figcaption { font-size: 12px; color: var(--leise); margin-top: 4px; }
.gross-bild { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.8); overflow: auto; display: flex; justify-content: center; padding: 30px; cursor: zoom-out; }
.gross-bild img { max-width: 100%; height: auto; align-self: flex-start; border-radius: 6px; }

/* Dialog */
.schleier { position: fixed; inset: 0; background: rgba(15,16,18,.45); z-index: 40; display: grid; place-items: center; padding: 20px; }
.dialog { background: var(--panel); border-radius: 12px; box-shadow: var(--schatten); width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 22px 24px 18px; display: grid; gap: 14px; }
.dialog.breit { width: min(860px, 100%); }
.dialog .fuss { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.dialog p { margin: 0; color: var(--leise); }
table.posten { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.posten th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--leise); padding: 0 6px 4px; }
table.posten td { padding: 2px 3px; }
table.posten .zahl { text-align: right; }
table.posten th:nth-child(2) { width: 80px; } table.posten th:nth-child(3) { width: 130px; } table.posten th:nth-child(4) { width: 110px; } table.posten th:nth-child(5) { width: 40px; }
table.posten td:nth-child(4) { white-space: nowrap; padding-inline: 6px; }
table.posten td.leise { color: var(--leise); }
table.posten tfoot td { padding-top: 6px; } table.posten tfoot td.zahl { font-weight: 600; padding-inline: 6px; }
.maske { display: grid; gap: 8px; }
.maske .reihe { display: flex; gap: 8px; flex-wrap: wrap; } .maske .reihe > .teil:not([style]) { flex: 1 1 200px; }
.reihe-frei { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; } .reihe-frei input[type=date] { width: auto; }
.teil { display: grid; gap: 3px; } .teil > span { font-size: 12px; color: var(--leise); }
.maske-fuss { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: -4px; }
.maske-fuss .knopf { margin-left: auto; }
small.maske-warn { color: var(--warn); font-size: 12.5px; } small.maske-warn:empty { display: none; }
.stufen.wahl { justify-self: start; } .stufen.wahl button { width: auto; padding: 5px 12px; }
.vorschlaege { display: flex; gap: 6px; flex-wrap: wrap; } .knopf.vorschlag { padding: 2px 9px; font-size: 12.5px; color: var(--leise); }
.schleier.ueber-allem { z-index: 65; background: rgba(15,16,18,.25); }

/* Aufträge */
.auftraege { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: grid; gap: 8px; justify-items: end; }
.auftraege .chip { background: var(--panel); border: 1px solid var(--linie); border-radius: 22px; box-shadow: var(--schatten); padding: 7px 14px 7px 12px; display: flex; align-items: center; gap: 9px; cursor: pointer; max-width: 420px; }
.auftraege .chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auftraege .chip:hover { border-color: var(--linie2); }
.protokoll { position: fixed; top: 0; right: 0; bottom: 0; width: min(680px, 92vw); background: var(--panel); border-left: 1px solid var(--linie); box-shadow: var(--schatten); z-index: 50; display: flex; flex-direction: column; }
.protokoll .ph { padding: 16px 20px; border-bottom: 1px solid var(--linie); display: flex; gap: 10px; align-items: center; }
.protokoll .ph .grow { flex: 1; min-width: 0; }
.protokoll pre { flex: 1; margin: 0; overflow: auto; padding: 14px 20px; font: 12.5px/1.5 "Cascadia Code", Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.protokoll pre .werkzeug { color: var(--leise); }

/* Hinweise */
.hinweise { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; }
.hinweise div { background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 9px; box-shadow: var(--schatten); max-width: 560px; }
.hinweise div.fehler { background: var(--schlecht); color: #fff; }

.tabelle-l { width: 100%; border-collapse: collapse; }
.tabelle-l th { text-align: left; font-size: 12.5px; color: var(--leise); font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--linie); }
.tabelle-l td { padding: 10px 12px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.tabelle-l tr:last-child td { border-bottom: 0; }
.pruef { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; }
.pruef + .pruef { border-top: 1px solid var(--linie); }
.pruef svg { width: 20px; height: 20px; }
.ok-farbe { color: var(--gut); } .fehlt-farbe { color: var(--warn); }
.fragen label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.fragen label + label { border-top: 1px solid var(--linie); }
.fragen input { margin-top: 2px; }

/* Rollen */
.abgleich .ansicht { justify-content: space-between; }
.abgleich .ansicht a { color: var(--leise); }
.abgleich .ansicht a:hover { color: var(--text); }
details.beim-vertrieb { margin-top: 22px; }
details.beim-vertrieb summary { cursor: pointer; font-weight: 600; padding: 4px 0 10px; }
.leise-liste { opacity: .75; }
details.karte > summary.summary { cursor: pointer; font-weight: 600; display: flex; gap: 8px; align-items: center; }
details.karte > summary.summary svg { color: var(--leise); }

/* Vertrieb */
h2.gruppe { display: flex; gap: 8px; align-items: baseline; margin: 6px 0 10px; }
h2.gruppe + .liste + h2.gruppe, .inhalt > p + h2.gruppe { margin-top: 28px; }
.vliste .z { grid-template-columns: minmax(200px, 1fr) minmax(220px, 1.6fr) minmax(150px, .8fr); }
.rueckfrage-kurz { color: var(--warn); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
textarea.notizen { min-height: 150px; }

/* Feedback */
/* Über Dialogen (.schleier 40, .protokoll 50), damit man auch zu einem offenen Dialog Feedback geben kann. */
.feedback-ort { padding: 0 0 8px; position: relative; z-index: 55; }
.feedback-ort .knopf { width: 100%; justify-content: flex-start; padding: 8px 10px; }
.fb-waehlt, .fb-waehlt * { cursor: crosshair !important; }
.fb-rahmen { position: fixed; z-index: 60; pointer-events: none; border: 2px solid var(--akzent); border-radius: 6px; background: color-mix(in srgb, var(--akzent) 10%, transparent); }
.fb-leiste { position: fixed; z-index: 80; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--linie); box-shadow: var(--schatten); border-radius: 10px; padding: 8px 10px 8px 14px; }
.fb-leiste, .fb-leiste * { cursor: default !important; }
.fb-leiste svg { color: var(--akzent); }
.fb-kopf { display: flex; gap: 10px; align-items: baseline; }
.fb-eintrag { display: grid; gap: 8px; }

/* Besucher */
.bs-verlauf { display: flex; align-items: flex-end; gap: 2px; height: 90px; margin-top: 12px; }
.bs-tag { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bs-tag i { display: block; width: 100%; min-height: 1px; background: var(--akzent); border-radius: 2px 2px 0 0; }
.bs-zwei { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.bs-zwei .karte + .karte { margin-top: 0; }
.dok-rahmen { width: 100%; height: 65vh; border: 1px solid var(--linie2); border-radius: 7px; background: #fff; }

/* Laden ohne leere Ansicht (gemerkt in z.js) */
.laedt { display: flex; gap: 10px; align-items: center; color: var(--leise); padding: 28px 4px; }
.kopf .knoepfe > .leise .dreht { width: 11px; height: 11px; display: inline-block; vertical-align: -1px; margin-right: 6px; }

/* Leads */
.lead-felder { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.lead-felder .breit { grid-column: 1 / -1; }
.lead-nummer { display: flex; align-items: center; gap: 14px; font: 600 30px/1.2 "Cascadia Code", Consolas, monospace; letter-spacing: .02em; margin-bottom: 4px; user-select: all; }
.lead-nummer .knopf { font-family: inherit; font-size: 12.5px; letter-spacing: 0; user-select: none; }
tr.klickbar { cursor: pointer; }
tr.klickbar:hover td { background: var(--hover); }
.erg-gruppe h3 { font-size: 12.5px; color: var(--leise); font-weight: 600; margin-bottom: 6px; }
.erg-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; }
button.erg { border: 1px solid var(--linie2); background: var(--feld); border-radius: 8px; padding: 7px 12px; cursor: pointer; }
button.erg:hover { border-color: var(--akzent); }
button.erg.an { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); font-weight: 600; }
button.erg.gut:not(.an) { border-color: var(--gut); color: var(--gut); font-weight: 600; }
.balken { display: grid; gap: 6px; }
.balken-z { display: grid; grid-template-columns: 240px minmax(0, 1fr) 40px; gap: 12px; align-items: center; }
.balken-s { height: 10px; background: var(--hover); border-radius: 5px; overflow: hidden; }
.balken-s i { display: block; height: 100%; background: var(--leise); }
.balken-s i.gut { background: var(--gut); } .balken-s i.schlecht { background: var(--schlecht); } .balken-s i.akzent { background: var(--akzent); }

/* Leads: In der Umgebung suchen */
.such-zeile { display: grid; grid-template-columns: minmax(220px, 340px) auto auto; justify-content: start; gap: 16px; align-items: start; }
.such-zeile > .knopf { margin-top: 22px; }
.ort-feld { position: relative; }
.ort-feld small.fehler { color: var(--schlecht); }
.ort-liste { position: absolute; top: 58px; left: 0; right: 0; z-index: 20; background: var(--panel); border: 1px solid var(--linie2); border-radius: 8px; box-shadow: var(--schatten); padding: 4px; }
.ort-v { display: flex; gap: 8px; align-items: baseline; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.ort-v.an, .ort-v:hover { background: var(--hover); }
.segment { display: inline-flex; border: 1px solid var(--linie2); border-radius: 7px; overflow: hidden; }
.segment button { border: 0; background: var(--feld); padding: 7px 12px; cursor: pointer; }
.segment button + button { border-left: 1px solid var(--linie2); }
.segment button.an { background: var(--akzent); color: var(--akzent-text); font-weight: 600; }
.such-branchen { display: grid; grid-template-columns: 140px 1fr; gap: 12px 16px; align-items: start; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--linie); }
button.erg.klein { padding: 5px 10px; font-size: 13px; }
.such-fuss { display: flex; justify-content: flex-end; margin-top: 14px; }
.treffer-kopf { display: flex; gap: 16px; align-items: center; }
.treffer-auswahl { display: flex; gap: 12px; align-items: center; margin: 14px 0 6px; }
.treffer-auswahl .grow { flex: 1; }
.knoepfe .grow { flex: 1; }
.aus-knopf { padding: 2px 4px; opacity: .45; }
tr:hover .aus-knopf { opacity: 1; }
.such-branchen > .leise { padding-top: 6px; }
.treffer-kopf .grow { flex: 1; }
