/* Schmelzpass. Farben und Schrift aus 07_Marke/Farben-und-Schrift.md. Ruhig, klar, wertig: wenig Bewegung, viel Ordnung. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url("../fonts/inter-Regular.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url("../fonts/inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url("../fonts/inter-Bold.woff2") format("woff2"); }

:root {
  --ink: #1F2326; --ink-2: #3A4148; --muted: #56616B; --line: #E1E6EB; --bg: #F3F5F7; --panel: #FFFFFF; --kopf: #1C2023;
  --orange: #E8731A; --orange-ink: #A84C0B; --orange-soft: #FDF0E5;
  --green: #2E7D5B; --green-ink: #28714F; --green-bg: #E6F3EC; --green-licht: #34B37B;
  --yellow: #D99A00; --yellow-ink: #7F5900; --yellow-bg: #FCF3DC; --yellow-licht: #F5B400;
  --red: #B42318; --red-bg: #FCEBE9; --red-licht: #F04438;
  --schatten: 0 1px 2px rgba(23, 34, 46, .06), 0 4px 14px rgba(23, 34, 46, .05);
  --schatten-hoch: 0 2px 4px rgba(23, 34, 46, .06), 0 12px 28px rgba(23, 34, 46, .09);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15.5px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; letter-spacing: -0.015em; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.klein { font-size: 13.5px; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; background: #EEF0F2; padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.breite { width: 100%; max-width: 1680px; margin: 0 auto; padding: 0 clamp(16px, 2.6vw, 40px); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Kopfleiste */
.leiste { background: linear-gradient(180deg, #23292D, var(--kopf)); color: #fff; }
.leiste-innen { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.leiste-rechts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo { width: 150px; height: auto; display: block; }
.kennung { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(232, 115, 26, .18); color: #FFC596; }
.wer { display: grid; line-height: 1.25; text-align: right; padding: 4px 12px; border-left: 3px solid var(--orange); }
.wer strong { font-size: 14.5px; color: #fff; }
.wer span { font-size: 12.5px; color: #FFC596; font-weight: 600; }

main.breite { padding-top: 20px; padding-bottom: 48px; display: grid; gap: 18px; }
.hinweis { padding: 12px 16px; border-radius: 12px; background: var(--orange-soft); border: 1px solid #F6D9BF; color: #6E3507; }
.karte { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--schatten); }
.schmal { max-width: 480px; width: 100%; margin: 0 auto; display: grid; gap: 14px; }
.meldung { min-height: 1.5em; font-weight: 600; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.meldung:empty { display: none; }
.meldung.fehler { color: var(--red); background: var(--red-bg); border-color: #F1C4BF; }
.meldung.ok { color: var(--green-ink); background: var(--green-bg); border-color: #BFE0CF; }

/* Formulare */
.formular { display: grid; gap: 12px; }
.formular label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.formular label.haken { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; }
.haken input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); flex: none; }
.formular input:not([type=checkbox]):not([type=radio]), .formular select, .formular textarea, .filterleiste input, .filterleiste select, .zeitraum select {
  border: 1px solid #CDD4DB; border-radius: 10px; padding: 10px 12px; background: #fff; font-weight: 400; min-height: 44px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.formular textarea { resize: vertical; min-height: 80px; line-height: 1.45; }
.formular input:focus, .formular select:focus, .formular textarea:focus { border-color: var(--ink-2); outline: none; box-shadow: 0 0 0 3px rgba(232, 115, 26, .25); }
.passwort-feld { position: relative; display: block; }
.passwort-feld input { padding-right: 48px !important; }
.auge { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 36px; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.auge:hover { background: rgba(31, 35, 38, .06); color: var(--ink); }
.auge svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reihe-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ansicht { display: grid; gap: 16px; }
.ansicht > .karte { display: grid; gap: 12px; }
.gefahr { border-color: #F1C4BF; }
.ergebnis { padding: 14px 16px; border-radius: 12px; background: var(--green-bg); display: grid; gap: 8px; }
.ergebnis.warnung { background: var(--yellow-bg); }
.schritte { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.qr { display: block; margin: 10px 0; width: 250px; height: 250px; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 8px; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; background: var(--panel); font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, transform .1s, box-shadow .15s; }
.knopf:active { transform: translateY(1px); }
.knopf[aria-disabled="true"], .knopf:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.k-primaer { background: var(--ink); color: #fff; }
.k-primaer:hover { background: #343B41; box-shadow: var(--schatten); }
.k-rand { border-color: #CDD4DB; }
.k-rand:hover { border-color: var(--ink-2); }
.k-text { background: none; color: var(--ink-2); }
.k-text:hover { background: rgba(31, 35, 38, .06); }
.k-hell { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .2); }
.k-hell:hover { background: rgba(255, 255, 255, .18); }
.k-klein { min-height: 38px; padding: 7px 13px; font-size: 14px; border-radius: 10px; }
.k-gross { min-height: 52px; padding: 14px 26px; font-size: 16.5px; border-radius: 14px; }
.k-gefahr { color: var(--red); }
.k-gefahr-voll { background: var(--red); color: #fff; }
.k-gruen { background: var(--green); color: #fff; }
.k-gruen:hover { background: #266B4D; box-shadow: var(--schatten); }
.k-gelb { background: var(--yellow); color: var(--ink); }
.k-gelb:hover { background: #C78D00; }
.k-rot { background: var(--red); color: #fff; }
.k-rot:hover { background: #9A1D14; }

/* Reiter */
.reiter { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.reiter a { padding: 10px 14px; text-decoration: none; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.reiter a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--orange); }
.reiter a:hover { color: var(--ink); }

/* Hochladen */
.ablage { display: grid; justify-items: center; gap: 12px; text-align: center; border: 2px dashed #CDD4DB; padding: 34px 20px; transition: border-color .15s, background-color .15s; background: linear-gradient(180deg, #fff, #FAFBFC); }
.ablage.ueber { border-color: var(--orange); background: var(--orange-soft); }

/* Zähler als Filter */
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.kachel { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; box-shadow: var(--schatten); border-top: 4px solid #CDD4DB; transition: box-shadow .15s, transform .1s; font-weight: 600; color: var(--ink-2); }
.kachel:hover { box-shadow: var(--schatten-hoch); }
.kachel .zahl { font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--ink); }
.kachel[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: -2px; }
.k-ROT { border-top-color: var(--red); } .k-ROT .zahl { color: var(--red); }
.k-GELB { border-top-color: var(--yellow); } .k-GELB .zahl { color: var(--yellow-ink); }
.k-GRUEN { border-top-color: var(--green); } .k-GRUEN .zahl { color: var(--green); }
.k-QM { border-top-color: var(--orange); } .k-QM .zahl { color: var(--orange-ink); }
.k-FERTIG { border-top-color: #9AA5AF; }
.leer h2 { margin-bottom: 4px; }
.kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.filterleiste { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filterleiste label, .zeitraum { display: grid; gap: 4px; font-size: 13.5px; font-weight: 600; min-width: 150px; flex: 1; }
.zeitraum { flex: none; }

/* Karten der Zeugnisse */
.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.eintrag { background: var(--panel); border: 1px solid var(--line); border-left: 6px solid #CDD4DB; border-radius: 18px; padding: 18px 20px; display: grid; gap: 10px; box-shadow: var(--schatten); transition: box-shadow .15s; }
.eintrag:hover { box-shadow: var(--schatten-hoch); }
.eintrag.s-GRUEN { border-left-color: var(--green); }
.eintrag.s-GELB { border-left-color: var(--yellow); }
.eintrag.s-ROT, .eintrag.s-fehler { border-left-color: var(--red); }
.eintrag.s-erledigt { border-left-color: #9AA5AF; opacity: .92; }
.eintrag-kopf { display: flex; align-items: center; gap: 12px; }
.eintrag-text { min-width: 0; flex: 1; }
.name { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.ampel { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: #EEF0F2; color: var(--ink-2); white-space: nowrap; }
.ampel::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #9AA5AF; }
.ampel.a-GRUEN { background: var(--green-bg); color: var(--green-ink); } .ampel.a-GRUEN::before { background: var(--green-licht); box-shadow: 0 0 0 3px rgba(52, 179, 123, .2); }
.ampel.a-GELB { background: var(--yellow-bg); color: var(--yellow-ink); } .ampel.a-GELB::before { background: var(--yellow-licht); box-shadow: 0 0 0 3px rgba(245, 180, 0, .25); }
.ampel.a-ROT, .ampel.a-fehler { background: var(--red-bg); color: var(--red); } .ampel.a-ROT::before, .ampel.a-fehler::before { background: var(--red-licht); box-shadow: 0 0 0 3px rgba(240, 68, 56, .2); }
.entscheidung { flex: none; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #EEF0F2; color: var(--ink-2); white-space: nowrap; }
.entscheidung:empty { display: none; }
.entscheidung.e-freigegeben { background: var(--green-bg); color: var(--green-ink); }
.entscheidung.e-gesperrt { background: var(--red-bg); color: var(--red); }
.entscheidung.e-nachgefragt { background: var(--yellow-bg); color: var(--yellow-ink); }
.geaendert { color: var(--ink-2); background: #F6F7F9; border-left: 3px solid var(--orange); padding: 6px 10px; border-radius: 6px; }
.satz { overflow-wrap: anywhere; color: var(--ink-2); }
.satz:empty { display: none; }

/* Was nicht stimmt */
.problem { border-radius: 12px; padding: 12px 14px; background: #FBFBFC; border: 1px solid var(--line); display: grid; gap: 8px; }
.probleme { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.probleme li { display: flex; gap: 10px; align-items: flex-start; }
.probleme li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: var(--yellow-licht); }
.probleme li.grund-ROT::before { background: var(--red-licht); }
.tabelle td.ist-GELB { color: var(--yellow-ink); font-weight: 700; background: var(--yellow-bg); }
.tabelle td.ist-GRUEN { color: var(--green); font-weight: 600; }
.tabelle td.ist-ROT { color: var(--red); font-weight: 700; background: var(--red-bg); }

/* Ihr nächster Schritt */
.schritt-box { border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; background: #F6F7F9; border: 1px solid var(--line); }
.schritt-box.b-GRUEN { background: var(--green-bg); border-color: #BFE0CF; }
.schritt-box.b-GELB { background: var(--yellow-bg); border-color: #F1DDA6; }
.schritt-box.b-ROT { background: var(--red-bg); border-color: #F1C4BF; }
.schritt-box.b-QM { background: var(--orange-soft); border-color: #F6D9BF; }
.schritt-titel { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.schritt-marke { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.schritt-titel strong { font-size: 16.5px; }
.schritt-text { color: var(--ink-2); }
.schritt-text:empty { display: none; }
.schritt-hinweis { color: var(--muted); }

.aktionen { display: flex; flex-wrap: wrap; gap: 8px; }
.aktionen:empty { display: none; }
.aktionen.neben { gap: 2px; border-top: 1px solid var(--line); padding-top: 8px; }
.werkmail, .ampel-form { border-top: 1px solid var(--line); padding-top: 12px; }
.werkmail textarea { font-size: 14px; background: #FBFBFC; }
.warnung { background: var(--red-bg); border: 1px solid #F1C4BF; color: #7A1A12; border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; font-size: 14.5px; }
.farben { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.farben label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; padding: 7px 14px; border: 1px solid #CDD4DB; border-radius: 999px; cursor: pointer; }
.farben input { width: auto; min-height: 0; accent-color: var(--ink); }
.einzelheiten { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 10px; font-size: 14.5px; }
.einzelheiten ul { margin: 0; padding-left: 20px; }
.werte, .einzelheiten dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; }
.werte dt, .einzelheiten dt { color: var(--muted); }
.werte dd, .einzelheiten dd { margin: 0; overflow-wrap: anywhere; }

/* Einladung */
.vorschau { display: grid; gap: 14px; }
.mailbild { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; max-width: 560px; }
.mailkopf { background: var(--ink); color: #fff; padding: 16px 22px; font-size: 20px; font-weight: 700; }
.mailkopf .orange { color: var(--orange); }
.mailinhalt { padding: 20px 22px; display: grid; gap: 12px; }
.mailnachricht { border-left: 4px solid var(--orange); background: var(--orange-soft); padding: 12px 14px; border-radius: 0 10px 10px 0; white-space: pre-line; color: var(--ink-2); }
.mailnachricht .von { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--orange-ink); margin-bottom: 4px; white-space: normal; }
.mailknopf { display: inline-block; background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 12px; font-weight: 700; width: max-content; }
.person { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.person select { border: 1px solid #CDD4DB; border-radius: 10px; padding: 6px 10px; min-height: 38px; background: #fff; }

/* Übersicht */
.kennzahlen { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.kennzahl { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--schatten); display: grid; gap: 2px; }
.kennzahl .zahl { font-size: 28px; font-weight: 700; line-height: 1.1; }
.kennzahl .text { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.saeulen { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 8px; border-bottom: 1px solid var(--line); }
.saeule { flex: 1; display: flex; flex-direction: column-reverse; min-width: 0; height: 100%; position: relative; }
.saeule .teil { width: 100%; }
.saeule .teil:last-child { border-radius: 4px 4px 0 0; }
.saeule .tag { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.t-GRUEN, .p-GRUEN { background: var(--green-licht); }
.t-GELB, .p-GELB { background: var(--yellow-licht); }
.t-ROT, .p-ROT { background: var(--red-licht); }
.legende { display: flex; gap: 6px 14px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 26px; }
.punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: -8px; }
.anteil { display: flex; height: 22px; border-radius: 999px; overflow: hidden; background: #EEF0F2; }
.anteil .teil { height: 100%; }
.balken { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.balken li { display: grid; gap: 4px; font-size: 14px; }
.balken .spur { height: 10px; background: #EEF0F2; border-radius: 999px; overflow: hidden; }
.balken .fuellung { height: 100%; background: var(--orange); border-radius: 999px; }
.ansicht > .karte.kontakt { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.kontakt > div { flex: 1 1 280px; }
.tabelle-rahmen { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.tabelle-rahmen.flach { box-shadow: none; }
/* Weitergabe: breite Tabellen scrollen auf dem Handy seitlich statt Wörter zu zerreißen */
.tabelle.breit-min { min-width: 720px; }
.tabelle.breit-min input[type="number"] { width: 7em; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabelle th, .tabelle td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle th { background: #F6F7F9; font-weight: 700; white-space: nowrap; }
.tabelle td { overflow-wrap: anywhere; }
.tabelle td.zeitpunkt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabelle td.ganze-woerter { overflow-wrap: normal; }
/* Protokoll auf dem Handy: jede Zeile als kleiner Block statt fünf schmaler Spalten */
@media (max-width: 640px) {
  .tabelle.stapeln thead { display: none; }
  .tabelle.stapeln tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .tabelle.stapeln tr:last-child { border-bottom: 0; }
  .tabelle.stapeln td { display: inline; padding: 0; border: 0; }
  .tabelle.stapeln td:nth-child(2)::before, .tabelle.stapeln td:nth-child(3)::before { content: " · "; color: var(--muted); }
  .tabelle.stapeln td:nth-child(n+4) { display: block; margin-top: 3px; color: var(--ink-2); }
  .tabelle.stapeln td:empty { display: none; }
}

.fuss { display: grid; gap: 6px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.fuss .versprechen { color: var(--ink); font-size: 15.5px; }

/* Vertrag: Hinweise, Annahme, Verbrauch, Unterlagen */
.vertrag-hinweis { display: grid; gap: 8px; }
.vh { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; border: 1px solid; font-weight: 600; font-size: 14.5px; }
.vh-rot { background: var(--red-bg); border-color: #F1C4BF; color: #7A1A12; }
.vh-orange { background: var(--orange-soft); border-color: #F6D9BF; color: #6E3507; }
.vh-gelb { background: var(--yellow-bg); border-color: #F0DDA6; color: var(--yellow-ink); }
.vh-grau { background: var(--panel); border-color: var(--line); color: var(--ink-2); font-weight: 500; }
.ablage.gesperrt { opacity: .55; }
.annahme { border: 2px solid var(--orange); }
.annahme-marke { display: inline-block; justify-self: start; background: var(--orange); color: #fff; font-weight: 700; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.annahme-preis { font-size: 18px; font-weight: 700; }
.haekchen { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.haekchen li { position: relative; padding-left: 26px; }
.haekchen li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 11px; height: 6px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.unterlagen { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.unterlagen a { font-weight: 600; color: var(--ink-2); }
.anschrift { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 16px; margin: 0; display: grid; gap: 12px; }
.anschrift legend { font-weight: 700; padding: 0 6px; }
.plz-ort { grid-template-columns: 1fr 2fr; }
.verbrauch { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.balken { display: grid; gap: 6px; }
.balken-kopf { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.balken-kopf span { color: var(--muted); }
.balken-spur { height: 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.balken-fuell { height: 100%; background: var(--green); border-radius: 999px; }
.balken-fuell.fast { background: var(--yellow); }
.balken-fuell.voll { background: var(--red); }
.tabelle td.zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Bestellvorgaben beim Hochladen, Prüfprofil */
.bestellangaben { margin-top: 14px; text-align: left; width: 100%; }
.bestellangaben summary { cursor: pointer; font-weight: 600; color: var(--ink-2); text-align: center; }
.bestell-raster { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 10px; }
.bestell-raster .breit { grid-column: 1 / -1; }
.optionen { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 0; }
.optionen legend { font-weight: 600; font-size: 14px; padding: 0 6px; }

@media (max-width: 760px) {
  .kacheln { grid-template-columns: repeat(3, 1fr); }
  .kennzahlen { grid-template-columns: repeat(2, 1fr); }
  .zwei-spalten, .reihe-felder, .verbrauch { grid-template-columns: 1fr; }
  .bestell-raster { grid-template-columns: 1fr 1fr; }
  .plz-ort { grid-template-columns: 1fr 2fr; }
}
@media (max-width: 560px) {
  .karte { padding: 20px 16px; }
  .eintrag { padding: 16px 14px; }
  .eintrag-kopf { flex-wrap: wrap; gap: 8px 10px; }
  .eintrag-kopf .eintrag-text { flex-basis: 100%; order: 2; }
  .werte, .einzelheiten dl { grid-template-columns: 1fr; }
  .werte dd, .einzelheiten dd { margin-bottom: 6px; }
  .wer { text-align: left; }
  .saeule .tag { display: none; }
}

/* Tarife mit Umschalter monatlich, 1 Jahr, 2 Jahre */
.karte-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.karte-kopf h2 { margin: 0; }
.umschalter { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.umschalter button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; min-height: 36px; }
.umschalter button[aria-checked="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(31, 35, 38, .14); }
.umschalter button:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.tarifreihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 10px; }
.tarifbox { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.tarifbox.aktuell { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.tarifname { margin: 0; font-weight: 700; }
.tarifpreis { margin: 0; }
.tarifpreis strong { font-size: 24px; letter-spacing: -.01em; }
.tarifpreis span { color: var(--muted); font-size: 13.5px; }
.tarifpunkte { margin: 4px 0 8px; padding-left: 18px; font-size: 14px; display: grid; gap: 2px; flex: 1; }
.tarif-marke { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--orange-ink); }
.tarifbox .knopf { align-self: flex-start; }

/* Hochladen kompakt in einer Zeile auf großen Bildschirmen */
.ablage-text { display: grid; gap: 6px; }

/* Arbeitsliste und Detail (Entscheidung Alik, 5.11.2026: volle Breite, kompakte Zeilen, alles auf einen Blick) */
.arbeitsplatz { display: grid; gap: 18px; }
.arbeitsliste { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--schatten); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.liste-kopf { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #FBFBFC; }
/* Mindestens so breit, dass der Hinweis „Suchen: Datei, Werk, Schmelze, Bestellung“ ganz lesbar bleibt; sonst bricht der Kopf um */
.suche { flex: 1 1 330px; min-width: 0; }
.suche input { width: 100%; border: 1px solid #CDD4DB; border-radius: 10px; padding: 8px 12px; min-height: 40px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.suche input:focus { border-color: var(--ink-2); outline: none; box-shadow: 0 0 0 3px rgba(232, 115, 26, .25); }
#liste-zahl { white-space: nowrap; }
#leer-filter { padding: 14px 16px; }
.zeilen { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; min-height: 0; overscroll-behavior: contain; }
.zeile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 10px 9px 12px; border-radius: 10px; cursor: pointer; position: relative; }
.zeile + .zeile { margin-top: 2px; }
.zeile:hover { background: #F6F7F9; }
.zeile[aria-selected="true"] { background: #EDF1F5; box-shadow: inset 0 0 0 1px #CDD4DB; }
.zeile[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--orange); }
.zeile:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.zeile-ampel { width: 12px; height: 12px; border-radius: 50%; background: #9AA5AF; flex: none; }
.zeile-ampel.a-GRUEN { background: var(--green-licht); box-shadow: 0 0 0 3px rgba(52, 179, 123, .18); }
.zeile-ampel.a-GELB { background: var(--yellow-licht); box-shadow: 0 0 0 3px rgba(245, 180, 0, .22); }
.zeile-ampel.a-ROT, .zeile-ampel.a-fehler { background: var(--red-licht); box-shadow: 0 0 0 3px rgba(240, 68, 56, .18); }
.zeile-ampel.a-wartet { background: #CDD4DB; animation: puls 1.4s ease-in-out infinite; }
@keyframes puls { 50% { opacity: .35; } }
.zeile-haupt { min-width: 0; display: grid; gap: 1px; }
.zeile-name { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zeile-grund { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zeile.s-erledigt .zeile-name, .zeile.s-erledigt .zeile-grund { color: var(--muted); }
.zeile.s-erledigt .zeile-ampel { opacity: .5; box-shadow: none; }
.zeile-rechts { display: grid; justify-items: end; gap: 3px; }
.zeile-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.zeile .entscheidung, .ampel-wort { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.ampel-wort.w-ROT { background: var(--red-bg); color: var(--red); }
.ampel-wort.w-GELB { background: var(--yellow-bg); color: var(--yellow-ink); }
.ampel-wort.w-GRUEN { background: var(--green-bg); color: var(--green-ink); }
.tastatur { padding: 8px 14px; border-top: 1px solid var(--line); background: #FBFBFC; }
.detail { min-width: 0; display: grid; gap: 10px; align-content: start; }
.detail .liste { gap: 0; }
.detail-leer { padding: 48px 24px; text-align: center; background: var(--panel); border-radius: 18px; border: 1px dashed #CDD4DB; }
.zurueck { justify-self: start; }

@media (min-width: 1100px) {
  .ablage { grid-template-columns: minmax(0, 1fr) auto; justify-items: start; text-align: left; padding: 18px 24px; column-gap: 24px; align-items: center; }
  .ablage h1 { font-size: 22px; }
  .ablage > .knopf { justify-self: end; }
  .bestellangaben { grid-column: 1 / -1; margin-top: 0; }
  .bestellangaben summary { text-align: left; }
  .bestell-raster { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .arbeitsplatz { grid-template-columns: minmax(380px, 5fr) minmax(0, 7fr); align-items: start; }
  .arbeitsliste { position: sticky; top: 12px; max-height: calc(100vh - 24px); }
  .ansicht.raster { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .ansicht.raster > h1, .ansicht.raster > .annahme, .ansicht.raster > #tarife-karte, .ansicht.raster > .hinweis { grid-column: 1 / -1; }
  #ansicht-team > #form-einladen, #ansicht-team > #einladung-vorschau, #ansicht-team > #einladung-ergebnis { grid-column: 1; }
  #ansicht-team > #team-liste { grid-column: 2; grid-row: 2 / span 3; }
  .kennzahlen { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  /* Einstellungen und Konto: Karten wie Zeitungsspalten, ohne Lücken */
  #ansicht-einstellungen, #ansicht-konto { display: block; columns: 2; column-gap: 16px; }
  #ansicht-einstellungen > *, #ansicht-konto > * { break-inside: avoid; margin-bottom: 16px; }
  #ansicht-einstellungen > h1, #ansicht-konto > h1 { column-span: all; }
}
@media (min-width: 1500px) {
  .arbeitsplatz { grid-template-columns: minmax(420px, 4fr) minmax(0, 6fr); }
}
/* Handy und Tablet: entweder die Liste oder ein Zeugnis */
@media (max-width: 1099px) {
  .zeilen { overflow: visible; }
  .tastatur { display: none; }
  .arbeitsplatz:not(.detail-offen) .detail { display: none; }
  .arbeitsplatz.detail-offen .arbeitsliste { display: none; }
}
@media (max-width: 560px) {
  .zeile { grid-template-columns: auto minmax(0, 1fr); row-gap: 4px; padding: 10px 8px 10px 10px; }
  .zeile-rechts { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; align-items: center; gap: 8px; }
  .liste-kopf { flex-wrap: wrap; }
}

/* Posteingang, Bitte zuordnen, Aufträge (Meilenstein 1) */
.eingang-adresse { font-size: 17px; overflow-wrap: anywhere; padding: 10px 14px; background: var(--bg); border: 1px dashed #CDD4DB; border-radius: 12px; }
.zuordnen { border-left-color: var(--yellow); }
.zuordnen-kopf { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.zuordnen-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* Lange Werksnamen in der Auswahl dürfen die Karte auf dem Handy nicht verbreitern */
.zuordnen-form select { min-width: min(220px, 100%); max-width: 100%; border: 1px solid #CDD4DB; border-radius: 10px; padding: 6px 10px; min-height: 38px; background: #fff; }
.zuordnen, .zuordnen-kopf, .zuordnen-form { min-width: 0; max-width: 100%; }
.zuordnen .name, .zuordnen .satz { overflow-wrap: anywhere; }
.vorschlaege { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
.mail-kopf { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mail-dokumente { margin: 0; padding-left: 20px; display: grid; gap: 3px; font-size: 14px; }
.marke { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #EEF0F2; color: var(--ink-2); white-space: nowrap; }
.marke.m-automatisch, .marke.m-bestaetigt { background: var(--green-bg); color: var(--green-ink); }
.marke.m-offen { background: var(--yellow-bg); color: var(--yellow-ink); }
.marke.m-fehler { background: var(--red-bg); color: var(--red); }
.tabelle tr.waehlbar { cursor: pointer; }
.tabelle tr.waehlbar:hover td { background: #F6F7F9; }
.zuordnung { color: var(--ink-2); }
.zuordnung a { font-weight: 600; }
.positionen-tabelle td { padding: 4px 4px; }
.positionen-tabelle input { width: 100%; min-width: 70px; border: 1px solid #CDD4DB; border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 14px; }
.positionen-tabelle input.pos { min-width: 50px; }

/* Anfragen: Angebote nebeneinander */
.vergleich td.niedrigster { background: var(--green-bg); font-weight: 700; color: var(--green-ink); }
.vergleich th[scope=row] { text-align: left; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.vergleich ul { margin: 0; padding-left: 16px; }
.vergleich li.rot { color: var(--red); }
.vergleich li.gelb { color: var(--yellow-ink); }
#form-anfrage-werk input, #form-anfrage-werk select { border: 1px solid #CDD4DB; border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 14px; min-width: 0; }

/* ---------- Einfach für den Anfang (14.11.2026): zwei Reiter und „Mehr“, große Ampel, Azubi-Texte ---------- */
.reiter { align-items: stretch; }
.mehr { position: relative; }
.mehr > summary { list-style: none; cursor: pointer; padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; user-select: none; }
.mehr > summary::-webkit-details-marker { display: none; }
.mehr > summary::after { content: " ▾"; font-size: 12px; }
.mehr > summary:hover, .mehr[open] > summary { color: var(--ink); }
.mehr.aktiv > summary { color: var(--ink); border-bottom-color: var(--orange); }
.mehr-liste { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 210px; display: grid; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--schatten-hoch); }
.mehr-liste a { border-bottom: 0; margin: 0; padding: 9px 12px; border-radius: 8px; }
.mehr-liste a:hover { background: #F3F5F7; }
.mehr-liste a[aria-current="page"] { color: var(--ink); background: var(--orange-soft); }
.mehr-liste a[hidden] { display: none; }
@media (max-width: 600px) { .mehr-liste { left: auto; right: 0; } }

.kachel-was { font-size: 12px; font-weight: 500; color: var(--muted); }
.kachel.k-ROT { border-top-color: var(--red-licht); }
.kachel.k-GELB { border-top-color: var(--yellow-licht); }
.kachel.k-GRUEN { border-top-color: var(--green-licht); }

.zuordnen-hinweis { margin: 0 0 4px; padding: 10px 14px; border-radius: 12px; background: var(--yellow-bg); color: var(--yellow-ink); border: 1px solid rgba(217, 154, 0, .35); }
.zuordnen-hinweis a { font-weight: 700; color: inherit; }

.ablage.ablage-kompakt { padding: 14px 18px; border-width: 1px; background: #FAFBFC; gap: 8px; margin-top: 4px; }
.ablage-kompakt h2 { font-size: 16px; margin: 0; overflow-wrap: anywhere; }
#ablage-adresse { font-weight: 700; color: var(--ink); }

/* Liste: kräftiger Farbstreifen je Zeile, damit man ohne Lesen sieht, wo es brennt */
.zeile.s-ROT, .zeile.s-GELB, .zeile.s-GRUEN, .zeile.s-fehler { box-shadow: inset 4px 0 0 var(--streifen, transparent); }
.zeile.s-ROT, .zeile.s-fehler { --streifen: var(--red-licht); }
.zeile.s-GELB { --streifen: var(--yellow-licht); }
.zeile.s-GRUEN { --streifen: var(--green-licht); }
.zeile[aria-selected="true"].s-ROT, .zeile[aria-selected="true"].s-GELB, .zeile[aria-selected="true"].s-GRUEN { box-shadow: inset 4px 0 0 var(--streifen), inset 0 0 0 1px #CDD4DB; }
.zeile-ampel { width: 16px; height: 16px; }
#alle-gruen { white-space: nowrap; }
.liste-kopf { flex-wrap: wrap; }
kbd { font: inherit; font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 5px; border: 1px solid #CDD4DB; background: #fff; color: var(--ink-2); }

/* Große Ampel neben dem nächsten Schritt */
.schritt-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.schritt-inhalt { min-width: 0; display: grid; gap: 6px; }
.ampel-gross { display: grid; gap: 8px; padding: 10px 9px; background: #23292E; border-radius: 16px; box-shadow: inset 0 0 0 2px #3A4148; }
.ampel-gross i { display: block; width: 30px; height: 30px; border-radius: 50%; opacity: .18; }
.ampel-gross .l-rot { background: var(--red-licht); }
.ampel-gross .l-gelb { background: var(--yellow-licht); }
.ampel-gross .l-gruen { background: var(--green-licht); }
.ampel-gross.an-ROT .l-rot, .ampel-gross.an-GELB .l-gelb, .ampel-gross.an-GRUEN .l-gruen { opacity: 1; box-shadow: 0 0 14px 3px currentColor; }
.ampel-gross.an-ROT .l-rot { color: rgba(240, 68, 56, .65); }
.ampel-gross.an-GELB .l-gelb { color: rgba(245, 180, 0, .65); }
.ampel-gross.an-GRUEN .l-gruen { color: rgba(52, 179, 123, .65); }
.schritt-box .aktionen .knopf { min-height: 46px; font-size: 16px; }
@media (max-width: 480px) {
  .schritt-box { gap: 12px; }
  .ampel-gross i { width: 22px; height: 22px; }
}

/* Fachbegriff mit Erklärung beim Darüberfahren */
.erklaer { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 6px; border-radius: 50%; font-size: 11px; font-weight: 700; background: #E3E7EB; color: var(--ink-2); cursor: help; vertical-align: 1px; }
td[title] { cursor: help; }

/* Hilfe und Fragen (Checkliste 8) */
.frage-eintrag { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--linie, #E3E6E9); }
.frage-eintrag:last-child { border-bottom: 0; }
.frage-eintrag p { margin: 0; }
.frage-text, .frage-antwort { white-space: pre-wrap; overflow-wrap: anywhere; }
.frage-antwort { padding-left: 12px; border-left: 3px solid #2E7D5B; }
.frage-knopf { margin-top: 8px; }
.hilfe-faelle details { padding: 8px 0; border-bottom: 1px solid var(--linie, #E3E6E9); }
.hilfe-faelle details:last-child { border-bottom: 0; }
.hilfe-faelle summary { cursor: pointer; font-weight: 600; }
.hilfe-faelle p { margin: 8px 0 0; }

/* „Rückgängig“ unten in der Mitte (Entscheidung Alik, 17.11.2026); ruhig, dunkel, über allem */
.rueckgaengig { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 12px;
  max-width: calc(100vw - 32px); padding: 10px 12px 10px 18px; border-radius: 14px; background: var(--ink, #1F2326); color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-size: .95rem; }
.rueckgaengig[hidden] { display: none; }
.rueckgaengig #rueckgaengig-text { overflow-wrap: anywhere; }
.rueckgaengig #rueckgaengig-knopf { background: var(--orange); color: #1F2326; border-color: var(--orange); font-weight: 700; white-space: nowrap; }
.rueckgaengig #rueckgaengig-zu { color: #fff; font-size: 1.2rem; line-height: 1; padding: 4px 8px; }
.papierkorb-eintrag { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.papierkorb-eintrag .knopf { grid-row: 1 / span 2; grid-column: 2; }
.papierkorb-eintrag .name { overflow-wrap: anywhere; }

/* Ablage mit Erklärung „ohne CC“ (Funktion 5): Text, Erklärung und Knöpfe untereinander, linksbündig */
.ablage.ablage-kompakt { grid-template-columns: minmax(0, 1fr); justify-items: stretch; text-align: left; }
.ablage-kompakt .aktionen { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.ohne-cc { border-top: 1px solid var(--line); padding-top: 8px; }
.ohne-cc summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.ohne-cc .wege { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 4px; }
.ohne-cc-adresse { overflow-wrap: anywhere; font-weight: 600; }
/* Auf dem Handy gibt es kein Hineinziehen, dafür die Kamera */
.nur-handy { display: none; }
@media (hover: none) and (pointer: coarse) {
  .nur-maus { display: none; }
  .nur-handy { display: inline-flex; }
}

/* Zahlen in den Reitern (Funktion 1) */
.reiter-zahl { display: inline-block; margin-left: 6px; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: var(--ink-2); color: #fff;
  font-size: 12px; line-height: 18px; text-align: center; font-weight: 700; }
.reiter-zahl[hidden] { display: none; }

/* Glocke mit Mitteilungen (Funktion 1) */
.glocke-rahmen { position: relative; }
.glocke-rahmen[hidden] { display: none; }
.glocke { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18);
  background: transparent; color: #fff; cursor: pointer; }
.glocke:hover { background: rgba(255, 255, 255, .08); }
.glocke:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.glocke svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.glocke-zahl { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--orange);
  color: #1F2326; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; }
.glocke-zahl[hidden] { display: none; }
.mitteilungen { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: min(380px, calc(100vw - 32px)); background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .18); overflow: hidden; text-align: left; }
.mitteilungen[hidden] { display: none; }
/* Am Handy hängt die Liste an der ganzen Kopfleiste statt an der Glocke, sonst ragt sie links aus dem Bild (Video 6, 25.11.2026) */
@media (max-width: 560px) {
  .leiste-innen { position: relative; }
  .glocke-rahmen { position: static; }
  .mitteilungen { left: 16px; right: 16px; width: auto; top: calc(100% - 4px); }
}
.mitteilungen-kopf { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mitteilungen-liste { list-style: none; margin: 0; padding: 6px; max-height: 60vh; overflow-y: auto; }
.mitteilungen-liste button { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 10px; align-items: start; width: 100%; padding: 10px; border: 0;
  background: none; border-radius: 10px; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.mitteilungen-liste button:hover, .mitteilungen-liste button:focus-visible { background: #F3F5F7; outline: none; }
.mitteilungen-liste .punkt { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; }
.mitteilungen-liste .neu .punkt { background: var(--orange); }
.mitteilungen-liste .aufgabe .punkt { background: var(--ink-2); }
.mitteilungen-liste .text { overflow-wrap: anywhere; }
.mitteilungen-liste .wann { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.mitteilungen-leer { padding: 14px 16px; color: var(--muted); }

/* Eine Suche über Zeugnisse und Bestellungen (Funktion 6) */
.gesamtsuche { position: relative; margin-left: auto; align-self: center; flex: 0 1 320px; min-width: 0; }
.gesamtsuche input { width: 100%; border: 1px solid #CDD4DB; border-radius: 10px; padding: 7px 12px; min-height: 38px; background: #fff; font: inherit; }
.gesamtsuche input:focus { border-color: var(--ink-2); outline: none; box-shadow: 0 0 0 3px rgba(232, 115, 26, .25); }
.gesamtsuche-ergebnis { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: min(460px, calc(100vw - 32px)); background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .18); padding: 6px; max-height: 70vh; overflow-y: auto; }
.gesamtsuche-ergebnis[hidden] { display: none; }
.gesamtsuche-ergebnis h3 { margin: 8px 10px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.gesamtsuche-ergebnis button { display: block; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.gesamtsuche-ergebnis button:hover, .gesamtsuche-ergebnis button[aria-selected="true"] { background: #EDF1F5; }
.gesamtsuche-ergebnis .unter { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.gesamtsuche-ergebnis p { margin: 10px; color: var(--muted); }
@media (max-width: 760px) {
  .gesamtsuche { flex: 1 1 100%; margin: 6px 0 8px; order: 10; }
  .gesamtsuche-ergebnis { left: 0; right: auto; width: 100%; }
}

/* Druckansicht (Runde 4): nur das geöffnete Zeugnis, ohne Kopf, Reiter, Kacheln, Liste und Knöpfe.
   Der Prüfnachweis (PDF) bleibt das Dokument fürs Archiv; das hier ist der schnelle Ausdruck aus dem Browser. */
@media print {
  body { background: #fff; }
  .leiste, #reiter, #gesamtsuche-rahmen, #filter, #meldung, #vertrag-hinweis, #hinweis-test, .zuordnen-hinweis, .ablage,
  .arbeitsliste, .tastatur, #detail-zurueck, .schritt-knoepfe, #detail button, .rueckgaengig { display: none !important; }
  .arbeitsplatz, .arbeitsplatz:not(.detail-offen) .detail { display: block !important; }
  .detail { width: 100%; }
  .detail * { box-shadow: none !important; }
  a[href]::after { content: none; }
}

/* Handy (Runde 4, Vorschlag G): Kopf in einer Zeile, Name und Rolle stehen unter „Mehr“, „Konto“;
   „Mehr“ in derselben Zeile wie die Reiter; Kacheln ohne Untertitel, damit die Liste im ersten Bildschirm beginnt */
@media (max-width: 560px) {
  .leiste-innen { flex-wrap: nowrap; min-height: 52px; gap: 8px; padding-top: 6px; padding-bottom: 6px; }
  .logo { width: 104px; flex-shrink: 0; }
  .leiste-rechts { flex-wrap: nowrap; gap: 6px; min-width: 0; }
  .leiste #abmelden { padding: 6px 10px; font-size: 13px; }
  .leiste .wer { display: none; }
  .kennung { font-size: 11.5px; padding: 3px 8px; }
  #gesamtsuche-rahmen { flex-basis: 100%; }
  .reiter a, .mehr > summary { padding: 10px 9px; font-size: 15px; white-space: nowrap; }
  .kacheln { gap: 8px; }
  .kachel { padding: 8px 10px; }
  .kachel .zahl { font-size: 21px; }
  .kachel-was { display: none; }
}

/* Dichte „Kompakt“ am PC mit Maus (Bauplan F1, 18.11.2026; wie SAP Fiori „Compact“ und Microsoft „Compact sizing“).
   Die Schrift bleibt gleich groß. Flächen, Abstände und Knöpfe werden kleiner. Klickziele bleiben über 24 px (WCAG 2.2, 2.5.8).
   Am Handy und bei Touch bleibt „Bequem“ (die Regeln oben). Umschaltbar unter „Konto“. */
.kompakt .leiste-innen { min-height: 48px; padding-top: 4px; padding-bottom: 4px; }
.kompakt .logo { width: 132px; }
.kompakt .glocke { width: 34px; height: 34px; }
.kompakt main.breite { padding-top: 10px; padding-bottom: 32px; gap: 10px; }
.kompakt h1 { font-size: 22px; }
.kompakt h2 { font-size: 16.5px; }
.kompakt .karte { padding: 14px 16px; border-radius: 12px; }
.kompakt .ansicht, .kompakt .ansicht > .karte { gap: 10px; }
.kompakt .hinweis, .kompakt .meldung, .kompakt .zuordnen-hinweis { padding: 6px 12px; border-radius: 8px; }
.kompakt .knopf { min-height: 32px; padding: 5px 12px; border-radius: 8px; font-size: 14.5px; }
.kompakt .knopf.k-klein { min-height: 28px; padding: 3px 10px; font-size: 13.5px; }
.kompakt .knopf.k-gross { min-height: 40px; padding: 8px 18px; font-size: 15.5px; }
.kompakt .schritt-box .aktionen .knopf { min-height: 36px; font-size: 15px; }
.kompakt .formular { gap: 9px; }
.kompakt .formular input:not([type=checkbox]):not([type=radio]), .kompakt .formular select, .kompakt .formular textarea,
.kompakt .filterleiste input, .kompakt .filterleiste select, .kompakt .zeitraum select { min-height: 34px; padding: 6px 10px; border-radius: 8px; }
.kompakt .reiter a { padding: 7px 12px; }
.kompakt .gesamtsuche input, .kompakt .suche input { min-height: 32px; padding: 4px 10px; border-radius: 8px; }
.kompakt .kacheln { gap: 8px; }
.kompakt .kachel { grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 0; align-items: center; padding: 5px 10px; border-radius: 10px; border-top-width: 3px; }
.kompakt .kachel .zahl { font-size: 20px; grid-row: span 2; }
.kompakt .arbeitsplatz { gap: 12px; }
.kompakt .arbeitsliste, .kompakt .detail-leer { border-radius: 12px; }
.kompakt .liste-kopf { padding: 6px 10px; gap: 10px; }
.kompakt .zeilen { padding: 4px; }
.kompakt .zeile { padding: 4px 8px 4px 10px; gap: 10px; border-radius: 8px; }
.kompakt .zeile + .zeile { margin-top: 1px; }
.kompakt .zeile[aria-selected="true"]::before { top: 5px; bottom: 5px; }
.kompakt .tastatur { padding: 4px 12px; }
.kompakt .liste { gap: 10px; }
.kompakt .eintrag { padding: 12px 14px; border-radius: 12px; gap: 8px; }
.kompakt .schritt-box { padding: 10px 12px; border-radius: 10px; gap: 12px; }
.kompakt .ampel-gross { gap: 5px; padding: 7px 6px; border-radius: 12px; }
.kompakt .ampel-gross i { width: 20px; height: 20px; }
.kompakt .ablage { padding: 10px 16px; gap: 8px; }
.kompakt .fuss { padding-top: 10px; }
/* Kompakt: Listenkopf in einer Zeile (die Suche wird schmaler statt umzubrechen), Zeilen mit engerem Zeilenabstand */
.kompakt .liste-kopf { flex-wrap: nowrap; }
.kompakt .suche { flex: 1 1 240px; }
.kompakt #alle-gruen { white-space: nowrap; }
.kompakt .zeile-name, .kompakt .zeile-grund, .kompakt .zeile-meta { line-height: 1.3; }
.kompakt .zeile-rechts { gap: 2px; }
.kompakt .zeile .entscheidung, .kompakt .ampel-wort { padding: 1px 7px; }

/* Nach der Entscheidung (Bauplan Bedienung, 18.11.2026): Kacheln „Beim Werk“ und „Im ERP buchen“, Schritte der Reklamation, Zettel */
.k-WERK { border-top-color: var(--orange); } .k-WERK .zahl { color: var(--orange-ink); }
.k-ERP { border-top-color: #5B6B7A; }
.fall-schritte { list-style: none; margin: 2px 0 0; padding: 0; counter-reset: fs; display: grid; gap: 8px; }
.fall-schritte li { counter-increment: fs; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; }
.fall-schritte li::before { content: counter(fs); width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid #CDD4DB;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.fall-schritte li.fertig::before { content: "✓"; background: var(--green); border-color: var(--green); color: #fff; }
.fs-inhalt { display: grid; gap: 4px; min-width: 0; }
.fs-text { margin: 1px 0 0; }
.fall-schritte .aktionen { display: flex; flex-wrap: wrap; gap: 6px; }
.fall-schritte select { justify-self: start; max-width: 100%; border: 1px solid #CDD4DB; border-radius: 8px; padding: 5px 10px; min-height: 34px; background: #fff; font: inherit; }
.schritt-wer { color: var(--ink-2); }
.zettel { display: none; }
@media print {
  body.zettel-druck > *:not(#zettel) { display: none !important; }
  body.zettel-druck #zettel { display: block; color: #000; padding: 10mm; }
  .zettel-wort { font-size: 60pt; font-weight: 700; letter-spacing: .04em; margin: 0 0 4mm; padding-bottom: 3mm; border-bottom: 2mm solid #000; }
  .zettel-satz { font-size: 20pt; font-weight: 600; margin: 0 0 8mm; }
  .zettel dl { display: grid; grid-template-columns: max-content 1fr; gap: 3mm 8mm; margin: 0; font-size: 15pt; }
  .zettel dt { font-weight: 700; }
  .zettel dd { margin: 0; }
  .zettel-fuss { margin-top: 12mm; font-size: 10pt; }
}
/* Kompakt: Kacheln bleiben einzeilig (voller Text als Hinweis beim Darüberfahren); Ampel oben, wenn Schritte darunter stehen */
.kompakt .kachel > span:not(.zahl) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.schritt-box:has(.fall-schritte:not([hidden])) { align-items: start; }
/* Hochladen mehrerer Dateien: Fortschritt und Summe (Bauplan Bedienung C2) */
.hochladen-stand { display: grid; gap: 6px; padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--schatten); }
.stand-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stand-kopf p { margin: 0; font-weight: 600; flex: 1 1 auto; }
.stand-kopf .aktionen { display: flex; gap: 6px; }
/* Nur der Fortschritt beim Hochladen: ohne den Rahmen traf die Regel auch „Häufigste Gründe“ und den Verbrauch unter „Vertrag“ (6 px hoch, Text abgeschnitten; Fund 25.11.2026) */
.hochladen-stand .balken { height: 6px; border-radius: 3px; background: #E1E6EB; overflow: hidden; }
.hochladen-stand .balken > span { display: block; height: 100%; width: 0; background: var(--green); transition: width .2s; }
#stand-fehler summary { cursor: pointer; color: var(--red); font-weight: 600; }
#stand-fehler ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 3px; }
/* Zeugnis ohne Bestellung: was geprüft ist, was nicht, und der nächste Schritt (Bauplan Bedienung C1) */
.ohne-bestellung { display: grid; gap: 6px; padding: 8px 12px; border-radius: 10px; background: #F6F7F9; border: 1px dashed #CDD4DB; }
.ohne-bestellung .aktionen { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ohne-bestellung select { max-width: 100%; border: 1px solid #CDD4DB; border-radius: 8px; padding: 5px 10px; min-height: 34px; background: #fff; font: inherit; }
/* Passwort: Regel mit Haken, die beim Tippen grün werden (Bauplan Bedienung A1) */
.passwort-regeln { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 13.5px; color: var(--muted); }
.passwort-regeln li { display: flex; align-items: center; gap: 8px; }
.passwort-regeln li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid #9AA5AF; background: #fff; }
.passwort-regeln li.erfuellt { color: var(--green-ink); font-weight: 600; }
.passwort-regeln li.erfuellt::before { content: "✓"; border-color: var(--green); background: var(--green); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
/* Einrichtungsassistent (Bauplan Bedienung A2) */
.start { max-width: 720px; width: 100%; margin: 0 auto; display: grid; gap: 12px; }
.start-knoepfe { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.start-knoepfe #start-zurueck { margin-right: auto; }
.start-team { display: grid; gap: 8px; }
.start-person { grid-template-columns: 1.2fr 1.4fr 1fr; }
.start-person .funktion-frei { grid-column: 1 / -1; }
.start .aktionen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 760px) { .start-person { grid-template-columns: 1fr; } }

/* Fachbegriffe (Bauplan Bedienung E4): gepunktet unterstrichen, Erklärung beim Darüberfahren, mit Tab und beim Antippen */
.begriff { text-decoration: underline dotted #9AA5AF; text-underline-offset: 3px; cursor: help; position: relative; }
.begriff:focus-visible { outline-offset: 1px; }
.begriff:hover::after, .begriff:focus::after { content: attr(data-erklaerung); position: absolute; left: 0; top: calc(100% + 6px); z-index: 70;
  width: max-content; max-width: min(320px, 80vw); padding: 7px 10px; border-radius: 8px; background: #1F2326; color: #fff;
  font-size: 13px; font-weight: 500; line-height: 1.4; text-transform: none; letter-spacing: 0; white-space: normal; box-shadow: var(--schatten-hoch); }
.begriffe dt { font-weight: 600; color: var(--ink); }
/* Prüfhilfe-Satz an jedem Ergebnis (Grundregel 4), einmal klein */
.pruefhilfe { margin: 2px 0 0; }
.zurueck-immer { justify-self: start; }

/* Rundgang durch die App (Bauplan Bedienung A3; aus der Demo übernommen) */
.rundgang { position: fixed; right: 16px; bottom: 84px; z-index: 60; width: min(380px, calc(100% - 32px)); padding: 14px 16px; border-radius: 14px;
  background: #1F2326; color: #EEF0F2; box-shadow: 0 12px 34px rgba(0, 0, 0, .3); }
.rundgang-zahl { margin: 0 0 4px; font-size: 12.5px; font-weight: 600; color: #FFC596; }
.rundgang-text { margin: 0 0 12px; font-size: 14.5px; line-height: 1.45; }
.rundgang-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.rundgang .knopf, .rundgang a { font: inherit; font-size: 14px; font-weight: 600; color: #fff; background: transparent; border: 1px solid #454E55; border-radius: 9px;
  padding: 7px 12px; min-height: 38px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.rundgang .rundgang-leise { border-color: transparent; color: #D6DBE0; margin-right: auto; }
.rundgang .rundgang-los { background: #A84C0B; border-color: #A84C0B; }
.rundgang-ziel { outline: 3px solid #E8731A !important; outline-offset: 3px; border-radius: 10px; }
@media (max-width: 560px) { .rundgang { left: 12px; right: 12px; width: auto; top: 12px; bottom: auto; } .rundgang.unten { top: auto; bottom: 76px; } }
/* Kompakt: Kachelschrift etwas kleiner, damit „Wartet auf Freigabe“ auch bei sieben Kacheln ganz zu lesen ist (Rollenspiel 2) */
.kompakt .kachel > span:not(.zahl):not(.kachel-was) { font-size: 14.5px; }
