/* Kundenportal vinzenz.dev – Gestaltung Variante B
   Schrift lokal (keine Daten an Google), keine Skripte, Animationen respektieren «weniger Bewegung». */

@font-face { font-family: 'Schibsted Grotesk'; font-weight: 400; font-display: swap; src: url('/static/fonts/schibsted-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 500; font-display: swap; src: url('/static/fonts/schibsted-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 600; font-display: swap; src: url('/static/fonts/schibsted-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 700; font-display: swap; src: url('/static/fonts/schibsted-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 800; font-display: swap; src: url('/static/fonts/schibsted-grotesk-latin-800-normal.woff2') format('woff2'); }

:root {
  --grund: #F5F6F8;
  --flaeche: #FFFFFF;
  --tinte: #18213A;
  --leise: #59617A;
  --linie: #D9DDE6;
  --linie-hell: #E3E6EC;
  --rand: #DFE3EA;
  --feld: #C5CBD7;
  --akzent: #2448B4;
  --akzent-dunkel: #1A3690;
  --akzent-hell: #EEF2FB;
  --fokus: #DCE3F6;
  --gut: #1F7A4D;
  --gut-hell: #E3F1E9;
  --warn: #B3261E;
  --hinweis-bg: #FDF0D5;
  --hinweis: #7A4B00;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--tinte); font-family: 'Schibsted Grotesk', system-ui, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--akzent); }
a:hover { color: var(--akzent-dunkel); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { letter-spacing: -0.02em; }

/* Kopf und Fuss */
.top { max-width: 1160px; margin: 0 auto; padding: 0 32px; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.marke { display: flex; align-items: center; gap: 12px; }
.mark { font-weight: 800; font-size: 19px; color: var(--tinte); text-decoration: none; letter-spacing: -0.02em; }
.mark:hover { color: var(--tinte); }
.rolle { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--tinte); color: #fff; font-size: 13px; font-weight: 700; }
.konto { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.konto .wer { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--tinte); font-weight: 600; text-decoration: none; }
.konto .wer:hover { color: var(--akzent); }
.ico { width: 20px; height: 20px; flex: none; }
.ico path, .ico circle { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.knopf-text { min-height: 44px; padding: 0; border: 0; background: none; color: var(--leise); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.knopf-text:hover { color: var(--tinte); text-decoration: underline; }
.fuss { max-width: 1160px; margin: 72px auto 0; padding: 24px 32px 44px; display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; color: var(--leise); }
.fuss a { color: var(--leise); text-decoration: none; }
.fuss a:hover { color: var(--tinte); text-decoration: underline; }
.banner { background: var(--hinweis-bg); color: var(--hinweis); }
.banner .innen { max-width: 1160px; margin: 0 auto; padding: 8px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-weight: 600; font-size: 15px; }
.banner button { min-height: 40px; padding: 0 14px; border: 1.5px solid var(--hinweis); border-radius: 8px; background: transparent; color: var(--hinweis); font: inherit; font-weight: 700; cursor: pointer; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.schmal { max-width: 880px; }
.zurueck { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 8px; color: var(--leise); text-decoration: none; font-size: 15px; font-weight: 600; }
.zurueck:hover { color: var(--tinte); }
h1.gross { margin: 6px 0 0; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; }
.frist { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 17px; }
.frist strong { font-weight: 700; }
.frist span { color: var(--leise); }

/* Meldungen */
.meldung { margin: 20px 0 0; padding: 14px 18px; border-radius: 12px; font-size: 16px; animation: einrutschen 180ms ease-out both; }
.meldung.gut { background: var(--gut-hell); color: #134D30; }
.meldung.fehler { background: #FBE9E7; color: #8E1D17; }
.meldung.info { background: var(--flaeche); border: 1px solid var(--rand); }

/* «?»-Erklärungen ohne Skript */
.hilfe { position: relative; display: inline-flex; flex: none; vertical-align: middle; }
.hilfe summary { list-style: none; position: relative; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #8C93A6; display: grid; place-items: center; font-weight: 700; font-size: 14px; line-height: 1; cursor: pointer; color: var(--tinte); }
.hilfe summary::-webkit-details-marker { display: none; }
.hilfe summary::before { content: ""; position: absolute; inset: -9px; }
.hilfe summary:hover { border-color: var(--tinte); }
.hilfe .pop { position: absolute; z-index: 5; top: calc(100% + 12px); left: -12px; width: min(320px, 78vw); padding: 14px 16px; border-radius: 12px; background: var(--tinte); color: #F2F4F8; font-size: 14px; line-height: 1.5; font-weight: 400; letter-spacing: 0; animation: einblenden 160ms ease-out both; }
.hilfe.rechts .pop { left: auto; right: -12px; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--akzent); color: #fff; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
.knopf:hover { background: var(--akzent-dunkel); color: #fff; }
.knopf[disabled] { background: var(--feld); cursor: not-allowed; }
.knopf.warn { background: var(--warn); }
.knopf.warn:hover { background: #8E1D17; }
.knopf.dunkel { background: var(--tinte); }
.knopf.dunkel:hover { background: var(--akzent); }
.knopf2 { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 112px; padding: 0 16px; border-radius: 10px; border: 1.5px solid var(--akzent); background: transparent; color: var(--akzent); font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.knopf2:hover { background: var(--akzent); color: #fff; }
.knopf2.warn { border-color: var(--warn); color: var(--warn); }
.knopf2.warn:hover { background: var(--warn); color: #fff; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.knopf-reihe a.knopf-text { display: inline-flex; align-items: center; }
form.inline { display: inline; }

/* Formulare */
.felder { display: grid; gap: 20px; }
.feld { display: grid; gap: 8px; }
label, .legende { font-size: 15px; font-weight: 600; }
.frei { font-weight: 400; color: var(--leise); }
.eingabe, .textfeld, .auswahl { width: 100%; padding: 0 14px; border: 1.5px solid var(--feld); border-radius: 10px; background: var(--flaeche); color: var(--tinte); font: inherit; font-size: 16px; }
.eingabe, .auswahl { height: 50px; }
.textfeld { min-height: 112px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.eingabe:focus, .textfeld:focus, .auswahl:focus { border-color: var(--akzent); outline: none; box-shadow: 0 0 0 3px var(--fokus); }
.eingabe::placeholder, .textfeld::placeholder { color: #8C93A6; }
.g2, .g3 { display: grid; gap: 16px; }
/* Spalten brechen um, bevor ein Datums- oder Zeitfeld zu schmal wird (die Browser lassen es sonst überlaufen) */
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
input[type=date].eingabe, input[type=time].eingabe { min-width: 0; }

/* Dateiwahl: eigener Knopf statt des Browser-Knopfs */
.dateiwahl { display: grid; gap: 4px; justify-items: start; padding: 0; font-weight: 400; cursor: pointer; }
.dateiwahl .titel { font-weight: 700; font-size: 15px; }
.dateiwahl .klein { font-size: 14px; color: var(--leise); }
input[type=file] { max-width: 100%; font: inherit; font-size: 14px; color: var(--leise); }
input[type=file]::file-selector-button { min-height: 44px; margin-right: 12px; padding: 0 16px; border: 1.5px solid var(--akzent); border-radius: 10px; background: var(--flaeche); color: var(--akzent); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--akzent); color: #fff; }
input[type=file]:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: 10px; }

/* Wahl mit Folgen: Karte mit Titel und Erklärung */
.wahlkarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 10px; }
.wahlkarte { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: baseline; align-content: start; padding: 14px 16px; border: 1.5px solid var(--feld); border-radius: 12px; background: var(--flaeche); font-weight: 400; cursor: pointer; }
.wahlkarte input { grid-row: span 2; align-self: start; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--akzent); }
.wahlkarte .titel { font-size: 16px; font-weight: 600; }
.wahlkarte .klein { font-size: 14px; line-height: 1.4; color: var(--leise); }
.wahlkarte:has(input:checked) { border-color: var(--akzent); background: var(--akzent-hell); }
.wahlkarte:has(input:focus-visible) { outline: 3px solid var(--akzent); outline-offset: 2px; }

/* Listen zum Ausfüllen: eine Zeile pro Eintrag */
.listefeld { display: grid; gap: 8px; }
.listekopf, .listezeile { display: grid; gap: 8px; }
.listefeld.s2 .listekopf, .listefeld.s2 .listezeile { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.listefeld.s3 .listekopf, .listefeld.s3 .listezeile { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) minmax(0, 1.2fr); }
.listekopf span { font-size: 13px; font-weight: 600; color: var(--leise); }
.listefeld.s1 .listekopf { display: none; }

/* Fotos */
.fotoablage { display: grid; gap: 14px; padding: 18px; border: 1.5px dashed #A8AFBF; border-radius: 14px; background: var(--flaeche); }
.fotoliste { list-style: none; margin: 0; padding: 0; display: grid; }
.fotoliste li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; min-height: 48px; border-bottom: 1px solid var(--linie-hell); }
.fotoliste .name { flex: 1 1 200px; min-width: 0; word-break: break-all; font-size: 15px; }

/* Folgen einer Wahl */
.folgen { margin-bottom: 22px; padding: 16px 18px; border-radius: 12px; background: var(--akzent-hell); }
.folgen ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.folgen li.offerte { color: var(--hinweis); font-weight: 600; }
.haken { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; font-weight: 400; line-height: 1.45; cursor: pointer; }
.haken input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--akzent); flex: none; }
fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.optionen { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.feldfehler { margin: 0; color: var(--warn); font-size: 14px; font-weight: 600; }
.hinweistext { margin: 0; font-size: 14px; color: var(--leise); }

/* Anmeldung */
.anmeldebox { max-width: 440px; padding: 56px 0 80px; }
.anmeldebox form { margin-top: 32px; }
.untertitel { margin: 12px 0 0; font-size: 17px; color: var(--leise); }

/* Übersicht (Kunde) */
.spalten { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 28px; }
.haupt { flex: 999 1 540px; min-width: 0; }
.seite { flex: 1 1 290px; min-width: 0; background: var(--flaeche); border: 1px solid var(--rand); border-radius: 22px; padding: 28px; }
.betrieb h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.betrieb p { margin: 4px 0 0; color: var(--leise); font-size: 15px; }
.aufgabe { display: flex; align-items: center; gap: 16px; margin-top: 48px; }
.aufgabe h2 { margin: 0; font-size: clamp(34px, 4.8vw, 54px); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; }
.text-gross { margin: 16px 0 0; max-width: 46ch; font-size: 18px; line-height: 1.5; color: #3E465C; }
.offen { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--linie); }
.offen li { display: flex; align-items: center; gap: 16px; min-height: 66px; border-bottom: 1px solid var(--linie); }
.ring { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px #A8AFBF; flex: none; }
.offen .bez { flex: 1; min-width: 0; font-size: 18px; font-weight: 500; }
details.erledigt { margin-top: 14px; }
details.erledigt summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; color: var(--leise); font-size: 15px; font-weight: 600; list-style: none; }
details.erledigt summary::-webkit-details-marker { display: none; }
details.erledigt summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 200ms ease; }
details.erledigt[open] summary::after { transform: rotate(225deg) translateY(-2px); }
details.erledigt ul { list-style: none; margin: 2px 0 0; padding: 0; }
details.erledigt li { display: flex; align-items: center; gap: 16px; min-height: 44px; color: var(--leise); }
.hakenico { width: 18px; height: 18px; flex: none; }
.hakenico path { fill: none; stroke: var(--leise); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.seitentitel { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--leise); }
.zeitleiste { position: relative; }
.zeitleiste::before { content: ""; position: absolute; left: 11px; top: 22px; bottom: 22px; width: 2px; background: #DDE1E8; }
.zeitleiste .fuellung { position: absolute; left: 11px; top: 22px; width: 2px; background: var(--tinte); transform-origin: center top; animation: zeichneY 900ms cubic-bezier(.65,0,.35,1) 200ms both; }
.zeitleiste ol { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.st { display: flex; align-items: center; gap: 14px; height: 44px; }
.mk { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #fff; box-shadow: inset 0 0 0 2px #C3C9D4; }
.st.fertig .mk { background: var(--tinte); box-shadow: none; }
.st.jetzt .mk { box-shadow: inset 0 0 0 3px var(--akzent); animation: pop 520ms cubic-bezier(.3,1.5,.5,1) 1050ms both; }
.st.jetzt .mk::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--akzent); }
.st .chk { width: 16px; height: 16px; }
.st .chk path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 18; stroke-dashoffset: 18; animation: haken 360ms ease-out 400ms both; }
.st .nm { flex: 1; font-size: 16px; font-weight: 500; }
.st.jetzt .nm { font-weight: 800; color: var(--akzent); }
.st.spaeter .nm { color: var(--leise); }
.st .dt { font-size: 13px; color: var(--leise); }
.st.jetzt .dt { color: var(--akzent); font-weight: 600; }
.trenner { margin: 26px 0 0; padding-top: 24px; border-top: 1px solid var(--linie-hell); }
.person { display: flex; align-items: center; gap: 14px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: #E6EBF8; color: var(--akzent); display: grid; place-items: center; font-weight: 800; font-size: 19px; flex: none; }
.person p { margin: 0; }
.person .pname { font-size: 17px; font-weight: 700; }
.person .prolle { margin-top: 2px; font-size: 14px; color: var(--leise); }
.knopf-block { display: flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 16px; border-radius: 10px; background: var(--tinte); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
.knopf-block:hover { background: var(--akzent); color: #fff; }
.fakten { margin: 24px 0 0; display: grid; gap: 16px; }
.fakten div { display: grid; gap: 2px; }
.fakten dt { font-size: 13px; color: var(--leise); }
.fakten dd { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Formular Angaben */
.fortschritt { margin: 0; font-size: 15px; }
.teilkopf { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.teilkopf h1.gross { margin: 0; }
.schrittinfo { margin: 18px 0 0; font-size: 14px; font-weight: 600; color: var(--leise); }
.schrittform { margin-top: 28px; }
.status.halb { background: var(--hinweis-bg); color: var(--hinweis); }
.status.frei { background: transparent; color: var(--leise); box-shadow: inset 0 0 0 1.5px var(--linie); }
.haken.klein { font-size: 14px; color: var(--leise); }
.knopf2.klein { min-height: 40px; min-width: 0; font-size: 14px; }

/* Angaben: Übersicht und Prüfen */
.aufgaben { display: grid; gap: 14px; margin-top: 28px; }
.aufgaben .balken { margin-top: 0; }
.fortschritt { margin: 0; font-size: 16px; }
.runde { margin-top: 18px; }
.runde h2 { margin: 0 0 8px; font-size: 21px; font-weight: 800; }
.aufgabenliste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.aufgabenliste li { display: flex; align-items: center; gap: 12px; min-height: 60px; border-bottom: 1px solid var(--linie); }
.aufgabenliste a { flex: 1; min-width: 0; display: grid; gap: 2px; padding: 8px 0; color: var(--tinte); text-decoration: none; font-size: 17px; font-weight: 600; }
.aufgabenliste a:hover { color: var(--akzent); }
.aufgabenliste small { font-size: 13px; font-weight: 400; color: var(--hinweis); }
.aufgabenliste .status { margin-left: 0; flex: none; }
.pruefblock { padding: 18px 0; border-bottom: 1px solid var(--linie-hell); }
.pruefkopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pruefkopf h3 { margin: 0; font-size: 18px; }
.pruefkopf .status { margin-left: auto; }
.pruefwerte { margin: 10px 0 0; display: grid; gap: 8px; }
.pruefwerte div { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 4px 16px; }
.pruefwerte dt { font-size: 14px; color: var(--leise); }
.pruefwerte dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.status { margin-left: auto; display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.status.ok { background: var(--gut-hell); color: var(--gut); }
.status.zutun { background: #EEF0F4; color: var(--leise); }
.ablage { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px; border: 1.5px dashed #A8AFBF; border-radius: 14px; background: var(--flaeche); }
.ablage.ok { border-style: solid; border-color: var(--akzent); background: var(--akzent-hell); }
.ablage .was { flex: 1 1 200px; display: grid; gap: 2px; min-width: 0; }
.ablage .was strong { font-size: 16px; word-break: break-all; }
.ablage .was span { font-size: 14px; color: var(--leise); }
.ablage input[type=file] { max-width: 100%; font: inherit; font-size: 14px; }
.tage { display: grid; gap: 10px; }
.tag { display: grid; grid-template-columns: 110px minmax(7.5rem, 1fr) minmax(7.5rem, 1fr) auto; gap: 12px; align-items: center; }
.tag .tname { font-weight: 600; }
.tag .zu { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 400; cursor: pointer; white-space: nowrap; }
.tag .zu input { width: 20px; height: 20px; margin: 0; accent-color: var(--akzent); }
.sendeleiste { margin-top: 8px; padding: 28px 0 0; border-top: 1px solid var(--linie); display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }

/* Listen, Zeilen, Tabellen */
.abschnitt { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--linie); }
.abschnittkopf { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.abschnittkopf h2 { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 800; }
.zeilen { display: grid; }
.zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; min-height: 64px; padding: 10px 0; border-bottom: 1px solid var(--linie-hell); }
.zeile:last-child { border-bottom: 0; }
.zeile .links { flex: 1 1 240px; min-width: 0; display: grid; gap: 2px; }
.zeile .links strong { font-size: 16px; }
.zeile .links span { font-size: 15px; color: var(--leise); }
.marke-klein { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.marke-klein.an { background: var(--gut-hell); color: var(--gut); }
.marke-klein.aus { background: #EEF0F4; color: var(--leise); }
.marke-klein.warn { background: var(--hinweis-bg); color: var(--hinweis); }
.box { margin: 8px 0 12px; padding: 20px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--rand); display: grid; gap: 14px; }
.tabbox { overflow-x: auto; background: var(--flaeche); border: 1px solid var(--rand); border-radius: 16px; }
table.tab { width: 100%; border-collapse: collapse; font-size: 15px; }
.tab th { text-align: left; font-size: 13px; font-weight: 600; color: var(--leise); padding: 14px 16px; border-bottom: 1px solid var(--rand); white-space: nowrap; }
.tab td { padding: 14px 16px; border-bottom: 1px solid #EEF0F4; vertical-align: middle; }
.tab tr:last-child td { border-bottom: 0; }
.tab .zahl { text-align: right; white-space: nowrap; }
.tab .klein { display: block; font-size: 13px; color: var(--leise); margin-top: 2px; }
.tab .frei td { color: var(--leise); }
.liste { list-style: none; margin: 0; padding: 0; background: var(--flaeche); border: 1px solid var(--rand); border-radius: 16px; }
.liste li { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 10px 16px; border-bottom: 1px solid #EEF0F4; flex-wrap: wrap; }
.liste li:last-child { border-bottom: 0; }
.liste .wann { flex: none; width: 118px; font-size: 14px; font-weight: 600; }
.liste .was { flex: 1; min-width: 0; font-size: 15px; }
.liste .was small { display: block; font-size: 13px; color: var(--leise); margin-top: 2px; }
.zwei { display: flex; flex-wrap: wrap; gap: 44px; }
.zwei > * { flex: 1 1 440px; min-width: 0; }

/* Admin: Einnahmen */
.kopfzeile { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding-top: 28px; }
.einnahmen { min-width: 280px; flex: 0 1 380px; }
.einnahmen .kopf { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.einnahmen .wert { margin-left: auto; font-weight: 700; }
.balken { margin-top: 10px; width: 100%; height: 10px; border-radius: 5px; overflow: hidden; appearance: none; border: 0; background: #DDE1E8; }
.balken::-webkit-progress-bar { background: #DDE1E8; border-radius: 5px; }
.balken::-webkit-progress-value { background: var(--akzent); border-radius: 5px; }
.balken::-moz-progress-bar { background: var(--akzent); border-radius: 5px; }
.einnahmen .rest { margin: 8px 0 0; font-size: 14px; color: var(--leise); }
details.aufklapp summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--akzent); font-weight: 700; font-size: 15px; list-style: none; }
details.aufklapp summary::-webkit-details-marker { display: none; }

/* Zwei-Faktor */
.qr { width: 200px; height: 200px; border-radius: 12px; background: #fff; border: 1px solid var(--rand); image-rendering: pixelated; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; padding: 16px; border-radius: 12px; background: var(--flaeche); border: 1px solid var(--rand); font-weight: 600; }
.geheim { word-break: break-all; font-size: 14px; color: var(--leise); }

@keyframes zeichneY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes haken { to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes einblenden { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
/* Meldungen nur verschieben, nicht ausblenden: Text bleibt von Anfang an lesbar und kontrastreich */
@keyframes einrutschen { from { transform: translateY(-4px); } to { transform: translateY(0); } }

@media (max-width: 720px) {
  .top, .wrap, .banner .innen { padding-left: 20px; padding-right: 20px; }
  .fuss { padding: 24px 20px 40px; }
  .konto .wer span { display: none; }
  .spalten { gap: 32px; }
  .aufgabe { margin-top: 32px; }
  .offen .bez { font-size: 16px; }
  .seite { padding: 22px 20px; }
  .tag { grid-template-columns: minmax(7.5rem, 1fr) minmax(7.5rem, 1fr); }
  .listefeld .listekopf { display: none; }
  .pruefwerte div { grid-template-columns: minmax(0, 1fr); }
  .listefeld.s2 .listezeile, .listefeld.s3 .listezeile { grid-template-columns: minmax(0, 1fr); padding-bottom: 10px; border-bottom: 1px solid var(--linie-hell); }
  /* Ohne Kopfzeile braucht jede Zelle ihre Bezeichnung */
  .listefeld.s2 .zelle .sr, .listefeld.s3 .zelle .sr { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--leise); }
  .tag .tname { grid-column: 1; }
  .tag .zu { grid-column: 2; justify-self: end; grid-row: 1; }
  .hilfe .pop { left: auto; right: -12px; }
  .liste .wann { width: 96px; }
  .einnahmen { min-width: 0; flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .st .chk path { stroke-dashoffset: 0; }
}

/* Füllstand der Zeitleiste ohne Inline-Styles (CSP erlaubt keine) */
.zeitleiste .fuellung.f0 { height: 0; }
.zeitleiste .fuellung.f1 { height: 44px; }
.zeitleiste .fuellung.f2 { height: 88px; }
.zeitleiste .fuellung.f3 { height: 132px; }
.zeitleiste .fuellung.f4 { height: 176px; }
.zeitleiste .fuellung.f5 { height: 220px; }
.zeitleiste .fuellung.f6 { height: 264px; }
.regel { margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--akzent-hell); font-size: 15px; }
.bedingungen { display: grid; gap: 22px; margin-top: 28px; }
.bedingungen h2 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.bedingungen p, .bedingungen ul { margin: 0; color: #3E465C; }
.bedingungen ul { padding-left: 20px; }
.preiswahl { display: grid; gap: 24px; margin-top: 28px; padding: 22px; border: 1px solid var(--rand); border-radius: 16px; background: var(--flaeche); }
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.karte { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: baseline; padding: 16px; border: 1.5px solid var(--feld); border-radius: 12px; font-weight: 400; cursor: pointer; }
.karte input { grid-row: span 2; align-self: start; width: 20px; height: 20px; margin: 6px 0 0; accent-color: var(--akzent); }
.karte .betrag { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.karte .klein { font-size: 15px; line-height: 1.4; color: var(--leise); }
.karte:has(input:checked) { border-color: var(--akzent); box-shadow: 0 0 0 3px var(--fokus); }
.karte:has(input:focus-visible) { outline: 2px solid var(--akzent); outline-offset: 2px; }
.qrteil { margin-top: 24px; max-width: 100%; height: auto; border: 1px solid var(--rand); border-radius: 12px; background: #fff; }
.kommentare { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.kommentare li { padding: 10px 12px; border-radius: 10px; background: #EEF0F4; font-size: 15px; }
.kommentare small { display: block; color: var(--leise); font-size: 13px; }
.voll { width: 100%; }

/* Drucken: Rechnung mit QR-Teil sauber auf A4 */
@media print {
  body { background: #fff; }
  .top, .fuss, .zurueck, .banner, .meldung { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .qrteil { width: 210mm; max-width: 100%; height: auto; border: 0; border-radius: 0; margin-top: 12mm; }
  h1.gross { font-size: 28pt; }
}

/* ---------- Ablauf ab 18.10.2026: Anfrage, Fragen, Offerte ---------- */

/* Auswahl als Chips: das Feld bleibt für Tastatur und Screenreader, sichtbar ist der Chip */
.chipgruppe { gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; font-weight: 500; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--feld); border-radius: 999px; background: var(--flaeche); font-size: 15px; line-height: 1.3; }
.chip > span small { font-size: 13px; font-weight: 400; color: var(--leise); }
.chip:hover > span { border-color: var(--akzent); }
.chip input:checked + span { border-color: var(--akzent); background: var(--akzent-hell); color: var(--akzent-dunkel); }
.chip input:checked + span::before { content: ""; width: 12px; height: 7px; margin-right: 2px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg) translateY(-2px); }
.chip input:focus-visible + span { outline: 3px solid var(--akzent); outline-offset: 2px; }
.chip.fix { cursor: default; }
.chip.fix > span { border-style: dashed; color: var(--leise); }
.nr { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; background: var(--tinte); color: #fff; font-size: 14px; font-weight: 700; vertical-align: middle; flex: none; }
.textfeld.niedrig { min-height: 76px; }
.textfeld.code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 14px; line-height: 1.55; }
.eingabe.zahl { text-align: right; }
.auswahl.klein { height: 44px; width: auto; min-width: 12rem; font-size: 15px; }

/* Öffentliche Anfrage */
.anfrage { padding-top: 40px; padding-bottom: 40px; }
.anfrageform { margin-top: 32px; gap: 30px; }
.anfrageform .legende, .anfrageform label[for="b-nachricht"] { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 17px; font-weight: 700; }
.anfrageform .chipgruppe .chips, .anfrageform .einzug { padding-left: 38px; }
.anfrageform textarea.einzug { padding-left: 14px; margin-left: 38px; width: calc(100% - 38px); }
.kontaktblock { gap: 16px; }

/* Fragen von Vinzenz */
.fragenform { margin-top: 28px; }
.fragenform > .felder, .fragenform .felder { gap: 18px; }
.fragekarte { padding: 20px; border: 1px solid var(--rand); border-radius: 16px; background: var(--flaeche); gap: 12px; }
.frage { display: flex; align-items: flex-start; gap: 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
/* Legende als normale Zeile, nicht im Rahmen der Karte */
.fragekarte > legend.frage { float: left; width: 100%; padding: 0; }
.frage .nr { margin-top: -2px; }
.fragekarte .hinweistext { margin-top: -4px; }
details.ergaenzung summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; cursor: pointer; color: var(--akzent); font-size: 15px; font-weight: 600; list-style: none; }
details.ergaenzung summary::-webkit-details-marker { display: none; }
details.ergaenzung summary::before { content: "+"; font-weight: 700; }
details.ergaenzung[open] summary::before { content: "–"; }
.vorschau .fragekarte { opacity: 0.92; }
.fehlerliste, .hinweisliste { margin: 0; padding: 12px 16px 12px 34px; border-radius: 12px; font-size: 15px; display: grid; gap: 4px; }
.fehlerliste { background: #FBE9E7; color: #8E1D17; }
.hinweisliste { background: var(--hinweis-bg); color: var(--hinweis); }

/* Admin: Fragen und Claude */
h3.unter { margin: 28px 0 10px; font-size: 18px; font-weight: 800; }
.claude { margin-top: 6px; }
.claude[open] { display: grid; gap: 12px; }
ol.schritte { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 15px; }
ol.schritte li { line-height: 1.6; }
.runde-admin .status { margin-left: 0; }
.pruefwerte .dateien { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; }
.notiz { margin: 12px 0 0; padding: 12px 16px; border-left: 3px solid var(--feld); color: #3E465C; white-space: pre-line; }
.sprung { position: sticky; top: 0; z-index: 4; display: flex; gap: 6px 18px; flex-wrap: wrap; margin-top: 18px; padding: 10px 0; background: var(--grund); border-bottom: 1px solid var(--linie); font-size: 15px; font-weight: 600; }
.sprung a { color: var(--leise); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.sprung a:hover { color: var(--akzent); }
.abschnitt[id] { scroll-margin-top: 64px; }
.sprung + .abschnitt { margin-top: 20px; padding-top: 0; border-top: 0; }
.aktionen { display: grid; gap: 6px; margin-top: 18px; }
.schrittwahl .auswahl, .schrittwahl .eingabe { width: auto; min-width: 11rem; }
.seite-senden .eingabe { width: auto; flex: 1 1 18rem; min-width: 0; max-width: 30rem; }
.kennzahlen { margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: 10px; }
.kennzahlen div { padding: 12px 14px; border-radius: 12px; background: var(--flaeche); border: 1px solid var(--rand); }
.kennzahlen dt { font-size: 13px; color: var(--leise); }
.kennzahlen dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; }
.kennzahlen dd.unter { color: var(--hinweis); }
.vorschlag-form { flex: 1 1 100%; display: grid; gap: 10px; }
.zeile .vorschlag-form .knopf-reihe .haken { font-size: 15px; }

/* Offerte im Portal: kurz und visuell */
.offerte { display: grid; gap: 26px; margin-top: 24px; }
.offerte .text-gross { margin: 0; }
.preiskarten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 12px; }
.preiskarte { display: grid; gap: 2px; padding: 20px 22px; border-radius: 18px; background: var(--flaeche); border: 1px solid var(--rand); }
.preiskarte .was { font-size: 14px; font-weight: 600; color: var(--leise); }
.preiskarte .betrag { font-size: clamp(28px, 4vw, 36px); font-weight: 800; letter-spacing: -0.02em; }
.preiskarte .klein { font-size: 14px; color: var(--leise); }
.block h2 { margin: 0 0 10px; font-size: 19px; font-weight: 800; }
.dabei, .zahlplan, .kurz { list-style: none; margin: 0; padding: 0; }
.dabei li, .zahlplan li { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 0; border-bottom: 1px solid var(--linie-hell); }
.dabei .hakenico path { stroke: var(--gut); }
.dabei .txt, .zahlplan .txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.dabei .txt strong, .zahlplan .txt strong { font-size: 16px; font-weight: 600; }
.dabei .txt small, .zahlplan .txt small { font-size: 14px; color: var(--leise); }
.dabei .betrag, .zahlplan .betrag { font-weight: 700; white-space: nowrap; }
.zahlplan { counter-reset: zahl; }
.zahlplan li::before { counter-increment: zahl; content: counter(zahl); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--akzent-hell); color: var(--akzent-dunkel); font-size: 13px; font-weight: 700; flex: none; }
.kurz { display: grid; gap: 8px; }
.kurz li { position: relative; padding-left: 20px; font-size: 16px; color: #3E465C; }
.kurz li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--akzent); }
.pdflink { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--akzent); background: var(--flaeche); color: var(--tinte); text-decoration: none; }
.pdflink:hover { background: var(--akzent-hell); color: var(--tinte); }
.pdflink .ico { width: 28px; height: 28px; color: var(--akzent); }
.pdflink span { display: grid; gap: 1px; }
.pdflink strong { font-size: 16px; }
.pdflink small { font-size: 14px; color: var(--leise); }
.offerte .preiswahl { margin-top: 0; }

/* Offerte im Admin */
.offerte-editor .listefeld.s3 .listekopf, .offerte-editor .listefeld.s3 .listezeile { grid-template-columns: minmax(0, 2fr) minmax(0, 2.4fr) minmax(0, 1fr); }
.rechnung-kurz { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; padding: 14px 16px; border-radius: 12px; background: var(--akzent-hell); font-size: 15px; }
.rechnung-kurz strong { font-size: 17px; }
.rechnung-kurz .gut { color: var(--gut); font-weight: 600; }
.rechnung-kurz .warn { color: var(--hinweis); font-weight: 600; }

@media (max-width: 720px) {
  .anfrage { padding-top: 24px; }
  .anfrageform .chipgruppe .chips, .anfrageform .einzug { padding-left: 0; }
  .anfrageform textarea.einzug { padding-left: 14px; margin-left: 0; width: 100%; }
  .chip > span { padding: 8px 14px; }
  .fragekarte { padding: 16px; }
  .offerte-editor .listefeld.s3 .listezeile { grid-template-columns: minmax(0, 1fr); }
  .sprung { position: static; }
}
