/* Erfolgsplanung Cockpit · Portal · Gestaltung (ohne fremde Schriften und Dienste) */
:root {
  --tinte: #14171C; --tinte2: #2D323A; --text: #1C1F24; --leise: #5F5C54; --leiser: #6E6A60;
  --linie: #E7E0D3; --linie2: #D6CCB9; --papier: #F5F1E8; --karte: #FFFFFF; --zeile: #FAF7F1;
  --gold: #C9A063; --gold-tief: #8F6420; --gold-hell: #F4EBDA;
  --rot: #D03B3B; --rot-text: #9E2424; --rot-hell: #FBEAEA;
  --gelb: #FAB219; --gelb-text: #7A5200; --gelb-hell: #FFF4D6;
  --gruen: #0CA30C; --gruen-text: #006300; --gruen-hell: #E7F5E7;
  --grau-hell: #EDEFF2; --grau-text: #3E4550;
  --s7: #2F6DB5; --s19: #E0913A; --balken: #2D323A;
  --r: 14px; --schatten: 0 1px 2px rgba(20, 23, 28, .05), 0 10px 28px -14px rgba(20, 23, 28, .16);
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; --serif: Georgia, "Times New Roman", serif;
  --unten: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--text); font: 16px/1.5 var(--sans); }
a { color: var(--gold-tief); }
:focus-visible { outline: 2px solid var(--tinte); outline-offset: 2px; }
.held :focus-visible, #tip :focus-visible, .marke-zeichen:focus-visible { outline-color: #fff; }
.sprung { position: absolute; left: -999px; top: 8px; background: var(--tinte); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.sprung:focus { left: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.seite { max-width: 1120px; margin: 0 auto; padding: 24px 24px 48px; }
h1 { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.12; margin: 0; color: var(--tinte); text-wrap: balance; }
h2 { font-size: 20px; margin: 0 0 4px; color: var(--tinte); font-weight: 600; }
h3 { font-size: 16px; margin: 0 0 8px; color: var(--tinte); }
.oben { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-tief); font-weight: 600; margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.unter { color: var(--leise); margin: 6px 0 0; font-size: 15px; }
.hilfe { color: var(--leise); font-size: 14.5px; margin: 0 0 16px; max-width: 760px; }
.leise { color: var(--leise); } .leiser { color: var(--leiser); }
.zahl { font-variant-numeric: tabular-nums; }
code { font-family: Consolas, "SF Mono", Menlo, monospace; font-size: .92em; background: var(--zeile); border-radius: 5px; padding: 1px 5px; }
.abstand-oben { margin-top: 16px; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Leiste oben */
.leiste { position: sticky; top: 0; z-index: 20; background: rgba(245, 241, 232, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie); }
.leiste-innen { max-width: 1120px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 16px; min-height: 58px; }
.marke { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinte); font-size: 15.5px; white-space: nowrap; }
.marke b { font-weight: 700; }
.marke-zeichen { width: 30px; height: 30px; border-radius: 9px; background: var(--tinte); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.marke-zeichen svg { width: 18px; height: 18px; }
.wahl { margin-left: 8px; position: relative; }
.wahl summary, a.wahl { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; font-weight: 600; color: var(--tinte); text-decoration: none; }
.wahl summary::-webkit-details-marker { display: none; }
.wahl summary:hover, .wahl[open] summary, a.wahl:hover { background: var(--karte); box-shadow: var(--schatten); }
.wahl summary svg { width: 14px; height: 14px; color: var(--leiser); }
.wahl-liste { position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; max-height: 70vh; overflow-y: auto; background: var(--karte); border-radius: 12px;
  box-shadow: 0 12px 40px -12px rgba(20, 23, 28, .35); padding: 6px; z-index: 30; }
.wahl-liste a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--text); }
.wahl-liste a.alle { font-weight: 600; color: var(--tinte); border-bottom: 1px solid var(--linie); border-radius: 8px 8px 0 0; }
.wahl-liste a:hover, .wahl-liste a.aktiv { background: var(--zeile); }
.wahl-liste small { color: var(--leiser); display: block; }
.leiste-rechts { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.leiste-rechts a { text-decoration: none; color: var(--tinte2); font-size: 14.5px; padding: 7px 10px; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px; }
.leiste-rechts a:hover, .leiste-rechts a.aktiv { background: var(--karte); }
.leiste-rechts svg { width: 18px; height: 18px; }
.ich { width: 30px; height: 30px; border-radius: 50%; background: var(--gold-hell); color: var(--gold-tief); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.ich.aktiv { background: var(--tinte); color: #fff; }

/* Passkey-Hinweis (wegklickbar, merkt sich „Später“ 7 Tage) */
.passkey-hinweis { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--gelb-hell); color: var(--gelb-text); border-radius: 12px; padding: 10px 12px 10px 16px;
  margin: 0 0 16px; font-size: 14.5px; }
.passkey-hinweis p { margin: 0; flex: 1 1 240px; }
.passkey-hinweis .knopf.leise { color: var(--gelb-text); }

/* Kopf eines Betriebs: Titel, darunter immer die Reiter in eigener Zeile */
.bkopf { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin: 4px 0 16px; }
.bkopf-titel { min-width: 0; max-width: 100%; }
.reiter { display: flex; gap: 4px; background: var(--karte); border-radius: 12px; padding: 4px; box-shadow: var(--schatten); }
.reiter a { text-decoration: none; color: var(--leise); padding: 8px 16px; border-radius: 9px; font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.reiter a:hover { color: var(--tinte); background: var(--zeile); }
.reiter a.aktiv { background: var(--tinte); color: #fff; }
.muster-band { font-family: var(--sans); display: inline-block; background: var(--gelb-hell); color: var(--gelb-text); font-size: 12px; font-weight: 600; border-radius: 999px;
  padding: 2px 10px; letter-spacing: 0; text-transform: none; }
.blaettern { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.blaettern a, .blaettern span.aus { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--karte);
  box-shadow: var(--schatten); color: var(--tinte); text-decoration: none; }
.blaettern a.text { width: auto; padding: 0 14px; font-size: 14px; font-weight: 600; }
.blaettern span.aus { opacity: .35; box-shadow: none; }
.blaettern svg { width: 18px; height: 18px; }
.blaettern .mitte { font-size: 14.5px; color: var(--tinte2); font-weight: 600; padding: 0 6px; }
.blaettern input[type=date] { font: inherit; font-size: 15px; border: 1px solid var(--linie2); border-radius: 10px; padding: 7px 10px; background: var(--karte); color: var(--text); height: 40px; }

/* Untere Leiste am Handy */
.tabbar { display: none; }

/* Karten, Knöpfe, Formulare */
.karte { background: var(--karte); border-radius: var(--r); box-shadow: var(--schatten); padding: 24px; margin-bottom: 20px; }
.karte > h2 + .hilfe { margin-top: 2px; }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 15px; border-radius: 12px; padding: 11px 18px;
  border: 1px solid var(--linie2); background: var(--karte); color: var(--tinte); cursor: pointer; text-decoration: none; min-height: 44px; }
.knopf:hover { border-color: var(--leiser); }
.knopf.haupt { background: var(--tinte); color: #fff; border-color: var(--tinte); }
.knopf.haupt:hover { background: var(--tinte2); }
.knopf.leise { border-color: transparent; background: transparent; color: var(--gold-tief); padding-left: 8px; padding-right: 8px; }
.knopf.gefahr { color: var(--rot-text); border-color: #E9C3C3; }
.knopf.klein { min-height: 36px; padding: 6px 14px; font-size: 14px; border-radius: 10px; }
.knopf svg { width: 18px; height: 18px; }
.formular { display: grid; gap: 14px; max-width: 520px; }
.feld { display: grid; gap: 6px; }
.feld label, .feld .l { font-size: 14px; font-weight: 600; color: var(--tinte2); }
.feld input, .feld select, .feld textarea { font: inherit; font-size: 16px; border: 1px solid var(--linie2); border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--text); width: 100%; }
.feld small { color: var(--leiser); font-size: 13px; }
.datei-feld { position: relative; }
.vh-datei { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; }
.datei-knopf { justify-content: flex-start; width: 100%; border-style: dashed; color: var(--tinte2); font-weight: 600; cursor: pointer; overflow: hidden; }
.datei-knopf span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.datei-knopf.gewaehlt { border-style: solid; border-color: var(--tinte2); color: var(--tinte); }
.vh-datei:focus-visible + .datei-knopf { outline: 2px solid var(--tinte); outline-offset: 2px; }
.hinweis { background: var(--zeile); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; color: var(--tinte2); }
.hinweis.gelb { background: var(--gelb-hell); color: var(--gelb-text); }
.hinweis.klein { font-size: 13.5px; padding: 8px 12px; margin: 0 0 14px; color: var(--leise); }
.hinweis.stand { margin: 0 0 16px; }
.hinweis.stand a { color: inherit; font-weight: 600; white-space: nowrap; }
.hinweis.ok { background: var(--gruen-hell); color: var(--gruen-text); }
.lauf-zeile { margin: 0 0 18px; }
.fehler { background: var(--rot-hell); color: var(--rot-text); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; }
.schmal { max-width: 460px; margin: 0 auto; }
.meldungen { margin-bottom: 16px; display: grid; gap: 8px; }
.meldung { margin: 0; border-radius: 10px; padding: 11px 14px; font-size: 14.5px; background: var(--gruen-hell); color: var(--gruen-text); }
.meldung.fehler { background: var(--rot-hell); color: var(--rot-text); }
.meldung.hinweis { background: var(--zeile); color: var(--tinte2); }
.liste { display: grid; }
.liste > div { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.liste > div:last-child { border-bottom: 0; }
.liste .rechts { margin-left: auto; }

/* Kennzahlen oben: Held links, drei Kacheln rechts */
.oberreihe { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr); gap: 16px; margin-bottom: 20px; align-items: stretch; }
.kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kz-hinweis { grid-column: 2; margin: -8px 0 0; font-size: 13px; color: var(--leise); }
.held { background: var(--tinte); color: #fff; border-radius: var(--r); padding: 22px 24px; box-shadow: var(--schatten); min-width: 0; }
.held .l { font-size: 14px; color: #D2CEC4; }
.held .w { font-size: 52px; font-weight: 600; line-height: 1.1; margin: 6px 0 4px; }
.held .d { font-size: 13px; color: #C9C5BB; margin-top: 10px; }
.urteil { margin: 2px 0 0; font-size: 17px; font-weight: 600; line-height: 1.35; color: #fff; display: flex; gap: 8px; align-items: baseline; }
.urteil .ic { flex: none; width: 1.1em; text-align: center; }
.urteil.gut .ic { color: #7EE07E; } .urteil.schwach .ic { color: #FF9C9C; } .urteil.normal .ic { color: #9FDB9F; } .urteil.info .ic { color: #D2CEC4; }
.urteil.schwach { color: #FFD6D6; } .urteil.gut { color: #D9F5D9; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 500; background: rgba(255, 255, 255, .1); color: #fff; }
.chip b { font-weight: 600; }
.chip.fett b { font-weight: 800; }
.chip.auf b { color: #7EE07E; } .chip.ab b { color: #FF9C9C; } .chip.knapp b { color: #FFD27A; }
.chip.gleich { color: #E6E2D8; } .chip.gleich b { color: #E6E2D8; }
.kz { background: var(--karte); border-radius: var(--r); box-shadow: var(--schatten); padding: 20px 22px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.kz .dz { margin-top: auto; padding-top: 8px; }
.kz .l { font-size: 14px; color: var(--leise); }
.kz .w { font-size: 30px; font-weight: 600; color: var(--tinte); line-height: 1.2; margin-top: 6px; white-space: nowrap; }
.kz .d { font-size: 13px; color: var(--leiser); margin-top: 4px; }
.dz { font-size: 13px; font-weight: 500; margin-top: 6px; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.dz.fett { font-weight: 700; }
.dz.auf { color: var(--gruen-text); } .dz.ab { color: var(--rot-text); } .dz.gleich { color: var(--leise); }
.dz.nv { white-space: normal; font-size: 12px; line-height: 1.25; text-align: right; }

/* Befunde */
.bf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.befund { border-left: 4px solid var(--linie2); background: var(--zeile); border-radius: 0 10px 10px 0; padding: 12px 14px; height: 100%; }
.befund b { display: block; color: var(--tinte); font-size: 15.5px; margin-bottom: 2px; }
.befund p { margin: 0; font-size: 14.5px; }
.befund .tun, p.tun { margin-top: 6px; font-size: 14px; color: var(--tinte2); }
.befund .tun::before, p.tun::before { content: "→ "; color: var(--gold-tief); font-weight: 700; }
.befund .ic { display: inline-block; width: 18px; text-align: center; margin-right: 4px; }
.gut .befund, .richtig .befund { border-color: var(--gruen); } .gut .ic, .richtig .ic { color: var(--gruen-text); }
.schwach .befund, .klaeren .befund { border-color: var(--rot); } .schwach .ic, .klaeren .ic { color: var(--rot-text); }
.kasse .befund, .pruefen .befund { border-color: var(--gelb); } .kasse .ic, .pruefen .ic { color: var(--gelb-text); }
.info .befund, .aufraeumen .befund { border-color: var(--leiser); } .info .ic, .aufraeumen .ic { color: var(--leise); }
.normal .befund { border-color: var(--leiser); } .normal .ic { color: var(--gruen-text); }
.blick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.blick h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 10px; }
.blick h3 .n { color: var(--leiser); font-weight: 400; }
.blick .befund { margin-bottom: 10px; height: auto; }
.marke-rund { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; font-weight: 700; flex: none; }
.richtig .marke-rund { background: var(--gruen-hell); color: var(--gruen-text); } .klaeren .marke-rund { background: var(--rot-hell); color: var(--rot-text); }
.pruefen .marke-rund { background: var(--gelb-hell); color: var(--gelb-text); } .aufraeumen .marke-rund { background: var(--grau-hell); color: var(--grau-text); }

/* Standorte: Mini-Karten */
.standorte { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.standort { background: var(--zeile); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.standort .kopfzeile { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.standort .kopfzeile .dz { margin: 0; }
.standort .betrag { font-size: 24px; font-weight: 600; color: var(--tinte); margin: 2px 0 8px; }
.standort dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 0; font-size: 13.5px; }
.standort dl div { display: flex; justify-content: space-between; gap: 6px; border-top: 1px solid var(--linie); padding-top: 5px; }
.standort dt { color: var(--leise); } .standort dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kd-ok { color: var(--gruen-text); } .kd-ueber { color: var(--gelb-text); font-weight: 700; }

/* Balken */
.zwei { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.zwei > * { min-width: 0; }
.reihe { display: grid; grid-template-columns: 130px minmax(0, 1fr) 104px 74px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--linie); }
.reihe:last-child { border-bottom: 0; }
.reihe .name { font-size: 15px; color: var(--tinte); min-width: 0; line-height: 1.3; }
.reihe .name small { display: block; color: var(--leiser); font-size: 12.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reihe .dz { margin: 0; justify-self: end; }
.spur { position: relative; height: 24px; display: flex; align-items: center; }
.bal { height: 14px; background: var(--balken); border-radius: 0 4px 4px 0; min-width: 2px; position: relative; z-index: 1; }
.schatten-bal { position: absolute; left: 0; top: 5px; height: 14px; border: 1.5px solid var(--leiser); border-left: 0; border-radius: 0 4px 4px 0; pointer-events: none; z-index: 2; }
.wert { text-align: right; font-variant-numeric: tabular-nums; font-size: 14.5px; white-space: nowrap; line-height: 1.3; }
.wert span { color: var(--leiser); margin-left: 6px; }
.wert small { display: block; color: var(--leiser); font-size: 12.5px; }
.reihe.breit { grid-template-columns: 190px minmax(0, 1fr) 170px; }
.notiz { font-size: 13.5px; color: var(--leise); margin: 14px 0 0; max-width: 820px; }
.legende { display: flex; gap: 6px 16px; font-size: 13px; color: var(--leise); margin: 0 0 10px; flex-wrap: wrap; }
.legende i { display: inline-block; width: 12px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.legende i.rahmen { border: 1.5px solid var(--leiser); background: transparent; }
.legende i.linie { height: 0; border-top: 2px solid var(--gold); border-radius: 0; }
.legende i.punkt, .achse i.punkt { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-tief); }
.segm { display: flex; gap: 2px; width: 100%; height: 26px; }
.teil { height: 26px; border-radius: 4px; display: flex; align-items: center; padding-left: 8px; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.teil.s7 { background: var(--s7); color: #fff; } .teil.s19 { background: var(--s19); color: #14171C; }

/* Säulen (Verlauf) */
.saeulen { display: flex; align-items: flex-end; gap: 6px; height: 172px; padding-top: 22px; border-bottom: 1px solid var(--linie2); }
.saeule { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; text-decoration: none; min-width: 0; }
.saeule i { display: block; width: 100%; max-width: 22px; background: var(--linie2); border-radius: 4px 4px 0 0; }
.saeule:hover i { background: var(--leiser); }
.saeule.heute i { background: var(--tinte); }
.saeule .vj { position: absolute; left: 50%; transform: translateX(-50%); width: 100%; max-width: 22px; border-top: 2px solid var(--gold); }
.saeule .wo { font-size: 12px; font-weight: 700; color: var(--tinte); white-space: nowrap; margin-bottom: 3px; }
.achse { display: flex; gap: 6px; margin-top: 4px; }
.achse span { flex: 1; text-align: center; font-size: 11.5px; color: var(--leiser); line-height: 1.25; min-width: 0; position: relative; }
.achse span.heute { color: var(--tinte); font-weight: 700; }
.achse i.punkt { position: absolute; top: -9px; left: 50%; margin-left: -3px; }

/* Kleine Felder */
.paar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.paar.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fach { background: var(--zeile); border-radius: 10px; padding: 12px 14px; min-width: 0; }
.fach .l { font-size: 13px; color: var(--leise); } .fach .w { font-size: 22px; font-weight: 600; color: var(--tinte); } .fach .w.klein { font-size: 17px; }
.fach .d { font-size: 12.5px; color: var(--leiser); }
.fach .dz { margin-top: 4px; }
.fach.warnung { background: var(--gelb-hell); }
.bewertung { font-size: 13px; font-weight: 600; margin-top: 2px; }
.bewertung.ok { color: var(--gruen-text); } .bewertung.ueber { color: var(--gelb-text); }

/* Tabellen */
.tabwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--linie); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
th { font-size: 13px; color: var(--leise); font-weight: 600; background: var(--zeile); }
th.l, td.l { text-align: left; }
td.l small { color: var(--leiser); }
tr.zu td { color: var(--leiser); }
tr.heute td { background: var(--gold-hell); }
tr.fei td { background: #FBF6EC; }
td a { color: inherit; text-decoration: none; } td a:hover { text-decoration: underline; }
td.umbruch { white-space: normal; min-width: 220px; }
.plakette { display: table; white-space: normal; font-size: 11.5px; font-weight: 600; color: var(--gold-tief); background: var(--gold-hell);
  border-radius: 8px; padding: 0 7px; margin-top: 2px; line-height: 1.45; }
table.tage th, table.tage td { padding: 8px; }
table.tage td.balken { width: 45%; }
.mini { display: inline-block; height: 8px; border-radius: 0 3px 3px 0; background: var(--balken); vertical-align: middle; }
.minispur { display: inline-flex; align-items: center; width: 100%; min-width: 64px; position: relative; height: 12px; vertical-align: middle; }
.minispur .vjm { position: absolute; top: -2px; height: 12px; border-left: 2px solid var(--gold); }
table.tage td:last-child { width: 1%; }

/* Fortschritt zum Ziel */
.urteil-zeile { display: flex; gap: 8px; align-items: baseline; font-size: 16px; font-weight: 600; margin: 4px 0 12px; color: var(--tinte); }
.urteil-zeile .ic { width: 1.1em; text-align: center; }
.urteil-zeile.gut .ic { color: var(--gruen-text); } .urteil-zeile.schwach .ic { color: var(--rot-text); } .urteil-zeile.knapp .ic { color: var(--gelb-text); } .urteil-zeile.offen .ic { color: var(--leise); }
.meter { height: 14px; border-radius: 7px; background: var(--gold-hell); overflow: visible; position: relative; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--gold-tief); border-radius: 7px; }
.meter i.gut { background: var(--gruen); } .meter i.schwach { background: var(--rot); } .meter i.knapp { background: var(--gelb); }
.meter b { position: absolute; top: -4px; bottom: -4px; border-left: 2px dashed var(--tinte2); }
.meter-text { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--leise); margin: 8px 0 0; }
.meter-text b { color: var(--tinte); }
.gross-zahl { font-size: 30px; font-weight: 600; color: var(--tinte); line-height: 1.2; margin: 4px 0 2px; }
details.erklaerung { margin-top: 12px; font-size: 14px; color: var(--tinte2); }
details.erklaerung summary { cursor: pointer; color: var(--gold-tief); font-weight: 600; }
details.erklaerung p { margin: 8px 0 0; }
.ziel-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--linie); }

/* Betriebe (Berater): Kopfzeile mit Filter, Suche, Umschalter */
.uebersicht-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.filter a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--tinte2); background: var(--karte); border: 1px solid var(--linie2); border-radius: 999px;
  padding: 7px 14px; font-size: 14.5px; min-height: 40px; }
.filter a b { font-weight: 700; color: var(--tinte); }
.filter a i { width: 9px; height: 9px; border-radius: 50%; }
.filter a.rot i { background: var(--rot); } .filter a.gelb i { background: var(--gelb); } .filter a.gruen i { background: var(--gruen); } .filter a.grau i { background: var(--leiser); }
.filter a.aktiv { background: var(--tinte); border-color: var(--tinte); color: #fff; } .filter a.aktiv b { color: #fff; }
.werkzeuge { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.suche { display: inline-flex; align-items: center; gap: 8px; background: var(--karte); border: 1px solid var(--linie2); border-radius: 10px; padding: 0 12px; height: 40px; }
.suche svg { width: 17px; height: 17px; color: var(--leiser); flex: none; }
.suche input { border: 0; outline: 0; font: inherit; font-size: 15px; background: transparent; width: 180px; color: var(--text); }
.suche:focus-within { outline: 2px solid var(--tinte); outline-offset: 2px; }
.umschalter { display: inline-flex; background: var(--karte); border-radius: 10px; padding: 3px; box-shadow: var(--schatten); }
.umschalter a { text-decoration: none; color: var(--leise); font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 8px; }
.umschalter a.aktiv { background: var(--tinte); color: #fff; }
.betriebe { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.bkarte { background: var(--karte); border-radius: var(--r); box-shadow: var(--schatten); padding: 18px 20px; text-decoration: none; color: inherit; display: grid; gap: 10px; align-content: start;
  border: 1px solid transparent; }
.bkarte:hover { border-color: var(--linie2); }
.bkarte .kopf { display: flex; align-items: flex-start; gap: 10px; }
.bkarte .titel { min-width: 0; }
.bkarte h3 { margin: 0 0 3px; font-size: 17px; }
.grund { margin: 0; font-size: 14px; font-weight: 600; color: var(--tinte2); display: flex; gap: 6px; align-items: baseline; line-height: 1.35; }
.grund .ic { flex: none; width: 1em; text-align: center; }
.grund.rot { color: var(--rot-text); } .grund.gelb { color: var(--gelb-text); } .grund.gruen { color: var(--tinte2); } .grund.gruen .ic { color: var(--gruen-text); } .grund.grau { color: var(--leise); }
.grund.klein { font-size: 13px; font-weight: 500; }
.ampel { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 3px 9px; white-space: nowrap; flex: none; }
.ampel::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ampel.gruen { background: var(--gruen-hell); color: var(--gruen-text); } .ampel.rot { background: var(--rot-hell); color: var(--rot-text); }
.ampel.gelb { background: var(--gelb-hell); color: var(--gelb-text); } .ampel.grau { background: var(--grau-hell); color: var(--grau-text); }
.umsatz-zeile { display: flex; align-items: baseline; gap: 10px; }
.bkarte .umsatz { font-size: 28px; font-weight: 600; color: var(--tinte); line-height: 1.1; }
.stand { font-size: 13.5px; color: var(--leise); }
.stand.alt, .stand-zelle.alt { color: var(--gelb-text); font-weight: 700; }
.bkarte .zeile2 { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--leise); }
.bkarte .zeile2 .dz { margin: 0; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 42px; }
.spark i { flex: 1; background: var(--linie2); border-radius: 2px 2px 0 0; min-height: 2px; position: relative; }
.spark i.heute { background: var(--tinte); }
.spark i s { position: absolute; left: -1px; right: -1px; border-top: 2px solid var(--gold); height: 0; }
.karte-fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13px; color: var(--leise); }

.liste-karte { padding: 8px 16px; }
.liste-tab th { background: transparent; border-bottom: 1px solid var(--linie2); padding: 0; vertical-align: bottom; }
.liste-tab th button { font: inherit; font-size: 13px; font-weight: 600; color: var(--leise); background: none; border: 0; padding: 12px 10px 10px; cursor: pointer; width: 100%; text-align: inherit;
  white-space: normal; line-height: 1.25; }
.liste-tab th button:hover { color: var(--tinte); }
.liste-tab th[aria-sort=ascending] button::after { content: " ▲"; font-size: 10px; }
.liste-tab th[aria-sort=descending] button::after { content: " ▼"; font-size: 10px; }
.liste-tab td { vertical-align: top; padding: 11px 10px; }
.liste-tab td.name a { font-weight: 600; color: var(--tinte); }
.liste-tab td small { display: block; font-size: 12.5px; color: var(--leiser); white-space: normal; }
.liste-tab td .dz { margin: 0; }
.liste-tab .ampel-zelle { text-align: left; max-width: 260px; white-space: normal; }
.liste-tab .ampel-zelle .ampel { margin: 0 0 3px; }
.liste-tab .ampel-zelle small.grund { font-size: 13px; font-weight: 500; display: block; }
.liste-tab small.ziel.gut { color: var(--gruen-text); } .liste-tab small.ziel.schwach { color: var(--rot-text); } .liste-tab small.ziel.knapp { color: var(--gelb-text); }
.liste-tab tbody tr:hover td { background: var(--zeile); }

/* Leerer Zustand */
.leer { text-align: center; padding: 44px 24px; }
.leer h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; }
.leer p { color: var(--leise); max-width: 520px; margin: 8px auto 20px; }
.leer .knoepfe { justify-content: center; }
.leer-zeichen { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--zeile); color: var(--gold-tief);
  font-size: 22px; margin-bottom: 12px; }
.schritte3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: left; margin-top: 20px; }
.schritte3 div { background: var(--zeile); border-radius: 10px; padding: 14px; font-size: 14px; }
.schritte3 b { display: block; color: var(--tinte); margin-bottom: 2px; }
.schritte3 .z { font-size: 12px; color: var(--gold-tief); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* Fuß */
.fuss-seite { max-width: 1120px; margin: 0 auto; padding: 0 24px 40px; font-size: 12.5px; color: var(--leiser); }
.fuss { font-size: 12.5px; color: var(--leiser); margin-top: 24px; line-height: 1.6; max-width: 860px; }

#tip { position: fixed; pointer-events: none; background: var(--tinte); color: #fff; font-size: 13px; line-height: 1.45; padding: 8px 10px; border-radius: 8px; max-width: 280px;
  opacity: 0; transition: opacity .08s; z-index: 60; }

@media (max-width: 1000px) {
  .oberreihe { grid-template-columns: minmax(0, 1fr); }
  .kz-hinweis { grid-column: 1; }
  .zwei { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .liste-tab th:nth-child(7), .liste-tab td:nth-child(7) { display: none; }
}
@media (max-width: 760px) {
  .seite { padding: 14px 16px 24px; }
  .leiste-innen { padding: 8px 16px; min-height: 52px; gap: 8px; }
  .marke span:last-child { display: none; }
  .wahl { margin-left: 0; min-width: 0; } .wahl summary, a.wahl { padding: 6px 4px; max-width: 62vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
  .wahl-liste { position: fixed; left: 12px; right: 12px; top: 58px; }
  .leiste-rechts .nur-gross, .nur-gross { display: none !important; }
  h1 { font-size: 27px; }
  .oben { margin-bottom: 4px; }
  .bkopf { margin: 0 0 12px; gap: 0; }
  .bkopf .reiter, .bkopf .unter { display: none; }
  .blaettern { margin-bottom: 12px; gap: 6px; }
  .blaettern input[type=date] { flex: 1 1 120px; min-width: 0; max-width: 170px; }
  .passkey-hinweis { padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
  .karte { padding: 18px 16px; margin-bottom: 14px; }
  .held { padding: 18px 18px 16px; }
  .held .w { font-size: 42px; margin: 2px 0 4px; }
  .urteil { font-size: 16px; }
  .held .netto { display: none; }
  .chips { margin-top: 12px; gap: 6px; }
  .oberreihe { gap: 10px; margin-bottom: 14px; }
  .kacheln { gap: 8px; }
  .kz { padding: 11px 12px; border-radius: 12px; }
  .kz .l { font-size: 12.5px; } .kz .w { font-size: 19px; margin-top: 2px; } .kz .d { display: none; }
  .kz .dz { padding-top: 3px; font-size: 12.5px; } .kz .dz-text { display: none; }
  .kz-hinweis { margin: -2px 0 0; font-size: 12.5px; }
  .bf, .blick { grid-template-columns: minmax(0, 1fr); }
  .paar { gap: 8px; } .paar .fach { padding: 10px 12px; } .paar .fach .w { font-size: 19px; }
  .paar.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .paar.drei .fach { padding: 10px 12px; } .paar.drei .fach .w { font-size: 18px; }
  .zwei { gap: 0; }
  .zwei .karte:last-child, .spalte .karte:last-child { margin-bottom: 14px; }
  .reihe { grid-template-columns: minmax(0, 1fr) auto auto; gap: 2px 12px; }
  .reihe .name small { display: none; }
  .reihe .spur { grid-column: 1 / -1; order: 3; height: 18px; }
  .reihe .wert { min-width: 72px; }
  .reihe .dz { min-width: 52px; justify-content: flex-end; }
  .reihe.breit { grid-template-columns: minmax(0, 1fr) auto; }
  .reihe.breit .name small { display: block; }
  .saeulen { gap: 3px; height: 150px; } .achse { gap: 3px; }
  .achse span { font-size: 11px; }
  .achse span.ungerade:not(.heute) { color: transparent; }
  table.tage th, table.tage td { padding: 8px 6px; }
  table.tage td.balken { width: auto; }
  .plakette { font-size: 11px; }
  .schritte3 { grid-template-columns: 1fr; }
  .standorte { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .standort { padding: 12px; }
  .standort .kopfzeile { flex-direction: column; gap: 0; }
  .standort .betrag { font-size: 20px; margin: 0 0 6px; }
  .standort dl { grid-template-columns: minmax(0, 1fr); font-size: 13px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--linie); padding: 6px 6px calc(6px + var(--unten)); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--leise); font-size: 12.5px; font-weight: 600; padding: 4px 0; border-radius: 10px; min-width: 0; }
  .tabbar a svg { width: 24px; height: 24px; }
  .tabbar a.aktiv { color: var(--tinte); }
  .tabbar a.aktiv svg { color: var(--gold-tief); }
  .fuss { margin-top: 8px; }
  .fuss-seite { padding: 8px 16px calc(84px + var(--unten)); }
  .betriebe { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .uebersicht-kopf { flex-direction: column; align-items: stretch; }
  .filter { gap: 6px; } .filter a { padding: 6px 11px; font-size: 14px; }
  .werkzeuge { justify-content: space-between; }
  .suche { flex: 1 1 160px; } .suche input { width: 100%; min-width: 0; }
  .liste-karte { padding: 4px 14px; }
  .liste-tab thead { display: none; }
  .liste-tab, .liste-tab tbody { display: block; }
  .liste-tab tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
  .liste-tab tr:last-child { border-bottom: 0; }
  .liste-tab td { display: block; border: 0; padding: 0; text-align: left; white-space: normal; min-width: 0; font-size: 14px; }
  .liste-tab td.name, .liste-tab td.ampel-zelle { grid-column: 1 / -1; max-width: none; }
  .liste-tab td.name small { display: inline; margin-left: 6px; }
  .liste-tab .ampel-zelle { display: flex; gap: 8px; align-items: baseline; }
  .liste-tab .ampel-zelle .ampel { margin: 0; }
  .liste-tab td[data-titel]::before { content: attr(data-titel); display: block; font-size: 11.5px; color: var(--leiser); }
  .liste-tab th:nth-child(7), .liste-tab td:nth-child(7) { display: block; }
  .liste-tab tbody tr:hover td { background: transparent; }
}
@media print {
  @page { size: A4; margin: 12mm 11mm 14mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; font-size: 12px; }
  .leiste, .tabbar, .reiter, .blaettern, .sprung, .fuss-seite, form, #tip, .nicht-drucken, .passkey-hinweis { display: none !important; }
  .seite { max-width: none; padding: 0; }
  .karte, .kz { box-shadow: none; border: 1px solid var(--linie); }
  .karte { padding: 12px 14px; margin-bottom: 8px; break-inside: avoid; }
}
