/*
Theme Name: Hausi
Description: App-Hülle für Hausi (Geld und Haushalt für zwei). Gestaltung: Stil-System „GROSSDENKEN Werkstatt“, Entwurf B (S820), Ergänzung V1 (S825).
Version: 1.0.0
Author: GROSSDENKEN
Requires PHP: 8.1
*/

/* ------------------------------------------------------------------ Schriften (selbst gehostet, OFL) */
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/inter-tight-var-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/inter-tight-var-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/poppins-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/poppins-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/poppins-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/poppins-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Poppins';font-style:normal;font-weight:800;font-display:swap;src:url(fonts/poppins-800-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Poppins';font-style:normal;font-weight:800;font-display:swap;src:url(fonts/poppins-800-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ------------------------------------------------------------------ Tokens (tokens.json, hell und dunkel) */
:root{
  --grund:#E9E8E2;--flaeche:#F4F3EF;--flaeche2:#DEDDD5;--linie:#CFCEC4;
  --tinte:#1C1D1A;--ruhig:#62655C;--auf-tinte:#F4F3EF;
  --heat:linear-gradient(95deg,#ff3c8b 0%,#ff5a6e 38%,#ff7a4d 70%,#ffaa3c 100%);--auf-heat:#1C1D1A;
  --reif:#55704A;--auf-reif:#FFFFFF;--fokus:#1C1D1A;--neutral:rgba(98,101,92,.55);
  --schatten:0 1px 1px rgba(28,29,26,.05),0 10px 30px rgba(28,29,26,.08);
  --schatten-blatt:0 -8px 40px rgba(28,29,26,.18);--schleier:rgba(28,29,26,.42);--dock:rgba(233,232,226,.92);
  --anzeige:'Poppins',system-ui,sans-serif;--bedienung:'Inter Tight',system-ui,-apple-system,sans-serif;
  --p1:var(--p1-h,#7a5cd8);--p1-text:var(--p1-text-h,#6a4fc4);--p1-auf:var(--p1-auf-h,#FFFFFF);
  --p2:var(--p2-h,#d89020);--p2-text:var(--p2-text-h,#8a5a08);--p2-auf:var(--p2-auf-h,#1C1D1A);
  --unten:max(8px,env(safe-area-inset-bottom));--dock-h:calc(49px + var(--unten));
  color-scheme:light dark;
}
@media (prefers-color-scheme:dark){:root{
  --grund:#131316;--flaeche:#1A1A1F;--flaeche2:#232328;--linie:rgba(255,255,255,.08);
  --tinte:#F1F1F3;--ruhig:#B8B8BE;--auf-tinte:#131316;--auf-heat:#131316;
  --reif:#8CA97E;--auf-reif:#131316;--fokus:#F1F1F3;--neutral:rgba(184,184,190,.5);
  --schatten:0 1px 0 rgba(255,255,255,.04) inset,0 6px 18px rgba(0,0,0,.55);
  --schatten-blatt:0 -8px 40px rgba(0,0,0,.6);--schleier:rgba(0,0,0,.6);--dock:rgba(19,19,22,.92);
  --p1:var(--p1-d,#b78bff);--p1-text:var(--p1-text-d,#b78bff);--p1-auf:var(--p1-auf-d,#131316);
  --p2:var(--p2-d,#ffc34d);--p2-text:var(--p2-text-d,#ffc34d);--p2-auf:var(--p2-auf-d,#131316);
}}

/* ------------------------------------------------------------------ Grundlage */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--grund);color:var(--tinte);font-family:var(--bedienung);font-size:16px;line-height:1.35;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;overscroll-behavior-y:none}
button,input,select,textarea{font:inherit;color:inherit;letter-spacing:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin:0}
:focus{outline:none}
:focus-visible{outline:2px solid var(--fokus);outline-offset:2px}
svg{display:block;flex-shrink:0}
.unsichtbar{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}

/* ------------------------------------------------------------------ Seite */
.seite{padding:max(14px,env(safe-area-inset-top)) 20px calc(var(--dock-h) + 60px + 36px);min-height:100dvh}
.seite.ohne-knopf{padding-bottom:calc(var(--dock-h) + 24px)}
.kopf{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:12px 0 18px}
.kopf .wort{font-family:var(--anzeige);font-size:22px;font-weight:700}
.kopf .datum{font-size:14px;color:var(--ruhig);font-weight:500}
.seitenkopf{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:12px 0 12px}
.titel{font-family:var(--anzeige);font-size:28px;line-height:34px;font-weight:700;margin:0 2px}
.untertitel{margin:0 2px;font-size:14px;color:var(--ruhig)}
.zurueck{display:inline-flex;align-items:center;gap:4px;min-height:44px;margin:4px 0 0 -8px;padding:0 8px;background:none;border:0;font-size:15px;font-weight:600;color:var(--tinte)}
.abschnitt{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:24px 4px 10px}
.abschnitt h2{font-family:var(--anzeige);font-size:17px;line-height:22px;font-weight:600}
.abschnitt .rechts{font-size:14px;color:var(--ruhig)}
.abschnitt a.rechts,.abschnitt button.rechts{display:inline-flex;align-items:center;justify-content:flex-end;min-height:44px;min-width:44px;margin:-12px 0;font-weight:700;color:var(--tinte);background:none;border:0;padding:0}
.platte{background:var(--flaeche);border-radius:20px;box-shadow:var(--schatten)}
.legende{margin:10px 4px 6px;font-size:13px;color:var(--ruhig)}
.fuss{margin:12px 4px 0;font-size:13px;color:var(--ruhig);line-height:1.5}
.verweis{color:var(--tinte);font-weight:700;text-decoration:underline;text-underline-offset:3px;padding:15px 6px;margin:-15px -6px;background:none;border:0;font-size:inherit}
.offline{display:flex;align-items:center;gap:8px;margin:0 2px 12px;font-size:14px;color:var(--ruhig)}
.leer{padding:20px;font-size:16px;line-height:1.5;color:var(--ruhig)}
.leer p+*{margin-top:14px}

/* ------------------------------------------------------------------ Saldo-Karte (Kern-Kasten) */
.saldo{padding:20px 22px}
.saldo-kopf{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.saldo-kopf .richtung{margin-top:1px}
.saldo-satz{font-family:var(--anzeige);font-size:20px;line-height:26px;font-weight:600}
.saldo-zahl{font-family:var(--anzeige);font-size:52px;line-height:1.1;font-weight:800;letter-spacing:-.02em;margin:6px 0 10px;white-space:nowrap;font-variant-numeric:tabular-nums}
.saldo-zahl.gross{font-size:44px}.saldo-zahl.sehr-gross{font-size:38px}
.saldo-meta{font-size:14px;color:var(--ruhig)}
.quitt{font-family:var(--anzeige);font-size:40px;line-height:1.1;font-weight:800;letter-spacing:-.02em}
.saldo .text{margin:10px 0 0;font-size:16px;line-height:1.5;color:var(--ruhig)}
.saldo-kompakt{display:flex;flex-direction:column;gap:6px;padding:14px 18px;margin-bottom:10px}
.saldo-kompakt .zeile2{display:flex;justify-content:space-between;align-items:center;gap:12px}
.saldo-kompakt .satz{font-family:var(--anzeige);font-size:15px;font-weight:600}
.saldo-kompakt .zahl{font-family:var(--anzeige);font-size:30px;font-weight:800;letter-spacing:-.01em;white-space:nowrap;font-variant-numeric:tabular-nums}

/* ------------------------------------------------------------------ Personen-Marke */
.marke{display:inline-flex;align-items:center;justify-content:center;height:24px;min-width:24px;padding:0 4px;border-radius:6px;font-family:var(--anzeige);font-weight:700;font-size:12px;line-height:1;flex-shrink:0}
.marke.p1{background:var(--p1);color:var(--p1-auf)}
.marke.p2{background:var(--p2);color:var(--p2-auf)}
.marke.m18{height:18px;min-width:18px;font-size:11px;padding:0 3px}
.marke.m20{height:20px;min-width:20px;font-size:11px}
.marke.m16{height:16px;min-width:16px;font-size:10px;padding:0 3px}
.marke.m26{height:26px;min-width:26px;font-size:12px}
.marke.m40{height:40px;min-width:40px;font-size:18px;border-radius:9px}
.marke.beide{padding:0;overflow:hidden;background:none}
.marke.beide span{display:inline-flex;align-items:center;justify-content:center;height:100%;min-width:17px;padding:0 3px;font-size:11px}
.marke.beide .eins{background:var(--p1);color:var(--p1-auf)}.marke.beide .zwei{background:var(--p2);color:var(--p2-auf)}
.richtung{display:inline-flex;align-items:center;gap:6px;color:var(--ruhig);flex-shrink:0}

/* ------------------------------------------------------------------ Zeilen (Aufgaben) */
.zeile{display:flex;align-items:center;gap:12px;min-height:64px;padding:0 16px 0 18px;border-bottom:1px solid var(--linie);cursor:pointer}
.zeile:last-child{border-bottom:0}
.zeile .inhalt{flex-grow:1;display:flex;flex-direction:column;gap:2px;min-width:0;padding:8px 0}
.zeile .t{font-size:16px;font-weight:600;overflow-wrap:anywhere}
.zeile.fertig .t{color:var(--ruhig)}
.zeile .m{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--ruhig);min-width:0}
.zeile .m span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zeile .m.ueber span:last-child{color:var(--tinte);font-weight:700}
.zeile.stumm{cursor:default}
.aufwand{width:24px;display:flex;justify-content:flex-end;flex-shrink:0}
.aufwand i{display:flex;height:6px;border-radius:3px;overflow:hidden}
.aufwand i b{flex:1}
.haken{width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:none;border:0;padding:0;margin-right:-10px;flex-shrink:0}
.haken span{width:28px;height:28px;border:2px solid var(--ruhig);border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background .15s,border-color .15s}
.haken.fertig span{background:var(--reif);border-color:var(--reif);color:var(--auf-reif)}
.haken:disabled{cursor:default}

/* ------------------------------------------------------------------ Einträge (Finanzen) */
.liste{list-style:none;margin:0;padding:2px 0}
.eintrag{display:flex;align-items:center;gap:12px;min-height:64px;padding:6px 16px;border-bottom:1px solid var(--linie);cursor:pointer}
.eintrag:last-child{border-bottom:0}
.eintrag .k{width:34px;display:flex;flex-shrink:0}
.eintrag .inhalt{flex-grow:1;min-width:0;display:flex;flex-direction:column}
.eintrag .t{font-size:15px;font-weight:600;line-height:20px;overflow-wrap:anywhere}
.eintrag .m{font-size:13px;line-height:17px;color:var(--ruhig)}
.eintrag .b{font-size:15px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.eintrag .b.p1{color:var(--p1-text)}.eintrag .b.p2{color:var(--p2-text)}.eintrag .b.null{color:var(--ruhig)}
.eintrag.wartet .m:last-child{color:var(--tinte);font-weight:600}
.eintrag .spalte{display:none}

/* ------------------------------------------------------------------ Knöpfe */
.aktion{position:fixed;left:20px;right:20px;bottom:calc(var(--dock-h) + 16px);z-index:20}
.heat{height:60px;width:100%;border:0;border-radius:14px;background:var(--heat);color:var(--auf-heat);display:flex;align-items:center;justify-content:center;gap:10px;font-size:17px;font-weight:700;line-height:22px;padding:0 20px;text-align:center}
.heat:disabled{opacity:.55;cursor:default}
.zweit{height:56px;width:100%;border-radius:14px;border:1.5px solid var(--tinte);background:transparent;color:var(--tinte);display:flex;align-items:center;justify-content:center;gap:8px;font-size:16px;font-weight:600;padding:0 16px;text-align:center}
.text-knopf{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px;background:none;border:0;padding:0 8px;font-size:16px;font-weight:600;color:var(--tinte)}
.knopfreihe{display:flex;flex-direction:column;gap:10px}
.knopfreihe .text-knopf{align-self:center}

/* ------------------------------------------------------------------ Dock */
.dock{position:fixed;left:0;right:0;bottom:0;height:var(--dock-h);background:var(--dock);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid var(--linie);display:flex;gap:6px;padding:4px 10px var(--unten);z-index:30}
.dock a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:12px;color:var(--ruhig);font-size:12px;line-height:16px;font-weight:600;min-height:44px}
.dock a[aria-current="page"]{background:var(--flaeche2);color:var(--tinte)}

/* ------------------------------------------------------------------ Hinweis unten (Rückgängig) */
.hinweis{position:fixed;left:20px;right:20px;bottom:calc(var(--dock-h) + 16px + 60px + 12px);min-height:52px;background:var(--tinte);color:var(--auf-tinte);border-radius:14px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 6px 4px 16px;font-size:15px;font-weight:600;box-shadow:var(--schatten);z-index:45}
.hinweis.ohne-knopf{bottom:calc(var(--dock-h) + 16px)}
.hinweis.im-blatt{bottom:calc(max(16px,env(safe-area-inset-bottom)) + 60px + 12px)}
.hinweis span{overflow-wrap:anywhere}
.hinweis button{background:none;border:0;color:var(--auf-tinte);font-size:15px;font-weight:700;text-decoration:underline;min-height:44px;min-width:44px;padding:0 10px;flex-shrink:0}

/* ------------------------------------------------------------------ Blätter */
.schleier{position:fixed;inset:0;background:var(--schleier);z-index:60}
.blatt{position:fixed;left:0;right:0;bottom:0;max-height:calc(100dvh - 32px);overflow-y:auto;-webkit-overflow-scrolling:touch;background:var(--flaeche);border-radius:28px 28px 0 0;box-shadow:var(--schatten-blatt);padding:12px 20px calc(20px + env(safe-area-inset-bottom));z-index:61}
.blatt:focus,.blatt:focus-visible{outline:none}
.blatt .griff{display:block;width:40px;height:5px;border-radius:3px;background:var(--linie);margin:0 auto 18px}
.blatt h2.blatt-titel{font-family:var(--anzeige);font-size:22px;line-height:28px;font-weight:700;overflow-wrap:anywhere}
.blatt-kopf{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.blatt .fliess{font-size:15px;line-height:1.5;color:var(--ruhig)}
.blatt .gross-zahl{font-family:var(--anzeige);font-size:48px;line-height:1.15;font-weight:800;letter-spacing:-.02em;white-space:nowrap}
.blatt .zeilen{margin:16px 0;border-top:1px solid var(--linie)}
.blatt .zeilen div{display:flex;justify-content:space-between;gap:16px;padding:12px 2px;border-bottom:1px solid var(--linie);font-size:15px}
.blatt .zeilen span:first-child{color:var(--ruhig)}
.blatt .zeilen span:last-child{text-align:right;font-weight:600;overflow-wrap:anywhere}
.blatt .protokoll{margin:4px 2px 18px;font-size:13px;line-height:1.6;color:var(--ruhig)}
.blatt .hinweis-text{margin:0 0 16px;padding:12px 14px;border-radius:14px;background:var(--flaeche2);font-size:14px;line-height:1.5}

/* Formular-Blatt: ganzer Bildschirm auf Stein, Speichern unten fest */
.blatt.formular{top:0;max-height:none;background:var(--grund);border-radius:0;padding:max(8px,env(safe-area-inset-top)) 20px calc(max(16px,env(safe-area-inset-bottom)) + 60px + 24px)}
.formular-kopf{display:flex;align-items:center;justify-content:space-between;height:52px;margin:0 -10px 8px}
.formular-kopf .schliessen{width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:none;border:0;padding:0}
.formular-kopf .luecke{width:44px}
.formular .speichern{position:fixed;left:0;right:0;bottom:0;padding:28px 20px max(16px,env(safe-area-inset-bottom));background:linear-gradient(to bottom,transparent,var(--grund) 28px);pointer-events:none;z-index:62}
.formular .speichern button{pointer-events:auto}
.formular form,.formular .felder{display:flex;flex-direction:column;gap:16px}

/* ------------------------------------------------------------------ Eingaben */
.umschalter{display:flex;padding:3px;border-radius:12px;background:var(--flaeche2)}
.umschalter button{flex:1;min-width:94px;height:44px;border:0;border-radius:9px;background:transparent;color:var(--ruhig);font-size:14px;font-weight:600;padding:0 12px;white-space:nowrap}
.umschalter button[aria-pressed="true"]{background:var(--flaeche);color:var(--tinte);box-shadow:var(--schatten);font-weight:700}
.feld{display:flex;flex-direction:column}
.label{display:block;font-size:14px;font-weight:600;margin:0 0 6px 2px}
.hilfe{font-size:13px;line-height:1.45;color:var(--ruhig);margin:6px 2px 0}
.eingabe{width:100%;height:50px;border:1.5px solid var(--linie);border-radius:14px;padding:0 14px;background:var(--flaeche);color:var(--tinte);font-size:16px;-webkit-appearance:none;appearance:none}
.eingabe:focus{border-color:var(--tinte)}
.eingabe.klein{width:92px;text-align:center;font-weight:700}
textarea.eingabe{height:auto;min-height:84px;padding:12px 14px;line-height:1.45;resize:vertical}
input[type="date"].eingabe{line-height:46px}
.betrag-feld{display:flex;flex-direction:column;align-items:center}
.betrag-feld label{font-size:14px;font-weight:600;color:var(--ruhig)}
.betrag-zeile{display:flex;align-items:baseline;justify-content:center;gap:6px;max-width:100%}
.betrag-eingabe{width:7ch;min-width:3ch;max-width:100%;border:0;padding:0;background:transparent;color:var(--tinte);font-family:var(--anzeige);font-size:50px;font-weight:800;letter-spacing:-.02em;text-align:right;font-variant-numeric:tabular-nums}
.betrag-eingabe::placeholder{color:var(--linie)}
.betrag-eingabe:focus,.betrag-eingabe:focus-visible{outline:none;box-shadow:0 2px 0 var(--linie)}
.betrag-eingabe{caret-color:var(--tinte)}
.betrag-zeichen{font-family:var(--anzeige);font-size:34px;font-weight:800}
.fehler{margin:6px 2px 0;font-size:14px;font-weight:700;display:flex;gap:6px;align-items:flex-start}
.kacheln{display:flex;gap:8px}
.kacheln.zwei{display:grid;grid-template-columns:1fr 1fr}
.kacheln.drei{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.kachel{flex:1;min-width:0;height:64px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:9px 10px;border:1.5px solid var(--linie);border-radius:14px;background:var(--flaeche);color:var(--tinte);font-size:14px;font-weight:600;text-align:left}
.kachel .w{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kachel[aria-pressed="true"]{background:var(--tinte);border-color:var(--tinte);color:var(--auf-tinte)}
.kachel:disabled{opacity:.4;cursor:not-allowed}
.kachel-hinweis{font-size:12px;color:var(--ruhig);margin:4px 2px 0}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.chips.oben{margin-top:0}
.chip{height:44px;padding:0 14px;border:0;border-radius:10px;background:var(--flaeche2);color:var(--tinte);font-size:14px;font-weight:600;white-space:nowrap}
.chip[aria-pressed="true"]{background:var(--tinte);color:var(--auf-tinte)}
.tage{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.tage button{height:44px;border:1.5px solid var(--linie);border-radius:10px;background:var(--flaeche);font-size:14px;font-weight:600;padding:0}
.tage button[aria-pressed="true"]{background:var(--tinte);border-color:var(--tinte);color:var(--auf-tinte)}
.stepper{display:flex;align-items:center;gap:10px}
.stepper button{width:48px;height:48px;border-radius:14px;border:1.5px solid var(--linie);background:var(--flaeche);display:flex;align-items:center;justify-content:center;padding:0}
.stepper .wert{min-width:120px;text-align:center;font-weight:700;font-size:16px}
.einstellung{border-radius:14px;background:var(--flaeche);overflow:hidden}
.einstellung .reihe{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:0 16px;font-size:15px;border-bottom:1px solid var(--linie);width:100%;background:none;border-left:0;border-right:0;border-top:0;text-align:left;color:var(--tinte)}
.einstellung .reihe:last-child{border-bottom:0}
.einstellung .reihe .ruhig{color:var(--ruhig)}
.einstellung .aufklapp{padding:12px 16px 16px;border-bottom:1px solid var(--linie);display:flex;flex-direction:column;gap:12px}
.einstellung .aufklapp:last-child{border-bottom:0}
.wirkung{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:14px;background:var(--flaeche2);min-height:52px}
.wirkung span.satz{font-family:var(--anzeige);font-size:15px;line-height:21px;font-weight:600}
.wirkung.leer span.satz{font-family:var(--bedienung);font-weight:500;color:var(--ruhig)}
.schalter{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:0 16px;border-radius:14px;background:var(--flaeche);width:100%;border:0;text-align:left;font-size:15px;font-weight:600}
.schalter i{width:44px;height:28px;border-radius:14px;background:var(--linie);position:relative;flex-shrink:0;transition:background .15s}
.schalter i::after{content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:var(--flaeche);transition:transform .15s}
.schalter[aria-checked="true"] i{background:var(--tinte)}
.schalter[aria-checked="true"] i::after{transform:translateX(16px)}

/* ------------------------------------------------------------------ Woche (Haushalt) */
.woche{display:flex;gap:2px}
.tag{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 0;border-radius:12px;background:transparent;border:0;min-width:0}
.tag.heute{background:var(--flaeche2)}
.tag[aria-pressed="true"]{box-shadow:inset 0 0 0 1.5px var(--tinte)}
.tag .n{font-size:13px;font-weight:600}.tag.heute .n{font-weight:700}
.tag .d{font-size:12px;color:var(--ruhig)}
.saeule{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:38px;gap:2px}
.saeule i{display:block;width:14px;border-radius:2px}
.saeule i.p1{background:var(--p1)}.saeule i.p2{background:var(--p2)}.saeule i.egal{background:var(--neutral)}
.woche-legende{margin:8px 4px 0;font-size:12px;color:var(--ruhig);display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center}
.woche-legende span{display:inline-flex;gap:5px;align-items:center}
.woche-legende i.egal{display:inline-block;width:10px;height:10px;border-radius:2px;background:var(--neutral)}
.verweise{display:flex;gap:18px;margin:10px 4px 0;flex-wrap:wrap}
.verweise .verweis{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;margin:0 -4px;font-size:14px}

/* ------------------------------------------------------------------ Fairness (30 Tage, neutral) */
.bilanz{padding:16px 18px;display:flex;flex-direction:column;gap:12px}
.bilanz .reihe{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;font-size:14px}
.bilanz .balken{height:10px;border-radius:5px;background:var(--flaeche2);overflow:hidden}
.bilanz .balken i{display:block;height:100%;border-radius:5px;background:var(--neutral)}
.bilanz .zahl{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}

/* ------------------------------------------------------------------ Mehr */
.mehr-gruppe{margin-bottom:22px}
.mehr-gruppe h2{font-family:var(--anzeige);font-size:17px;font-weight:600;margin:0 4px 10px}
.mehr-zeile{display:flex;align-items:center;gap:12px;min-height:56px;padding:8px 16px;border-bottom:1px solid var(--linie);width:100%;background:none;border-left:0;border-right:0;border-top:0;text-align:left;color:var(--tinte);font-size:16px}
.mehr-zeile:last-child{border-bottom:0}
.mehr-zeile .inhalt{flex-grow:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.mehr-zeile .t{font-weight:600;overflow-wrap:anywhere}
.mehr-zeile .m{font-size:14px;color:var(--ruhig);overflow-wrap:anywhere}
.mehr-zeile .wert{font-size:15px;color:var(--ruhig);white-space:nowrap}
.mehr-zeile.aus{cursor:default}
.ueber-text{font-size:14px;line-height:1.55;color:var(--ruhig);padding:14px 16px}

/* ------------------------------------------------------------------ Anmelden, Einrichten, Einladung */
.tor{min-height:100dvh;display:flex;flex-direction:column;padding:max(24px,env(safe-area-inset-top)) 20px max(24px,env(safe-area-inset-bottom))}
.tor-raster{flex:1;display:flex;flex-direction:column}
.tor .mitte{flex:1;display:flex;flex-direction:column;justify-content:center;gap:10px;padding:24px 0}
.tor .symbol{width:96px;height:96px;border-radius:22px;box-shadow:var(--schatten);margin-bottom:14px}
.tor h1{font-family:var(--anzeige);font-size:40px;line-height:1.1;font-weight:800;letter-spacing:-.02em}
.tor h1.mittel{font-size:28px;line-height:34px;font-weight:700;letter-spacing:0}
.tor .claim{font-size:17px;color:var(--ruhig)}
.tor .unten{display:flex;flex-direction:column;gap:10px}
.tor .meldung{padding:12px 14px;border-radius:14px;background:var(--flaeche2);font-size:15px;line-height:1.45}
.tor .fortschritt{font-size:14px;font-weight:600;color:var(--ruhig);margin-bottom:4px}
.tor form{display:flex;flex-direction:column;gap:16px}
.vorschau-marke{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;background:var(--flaeche)}
.vorschau-marke .name{font-weight:700}
.schritte{display:flex;flex-direction:column;gap:14px;margin:8px 0 4px;padding:0;list-style:none;counter-reset:s}
.schritte li{display:flex;gap:12px;align-items:flex-start;font-size:16px;line-height:1.45}
.schritte li b{flex-shrink:0;width:28px;height:28px;border-radius:8px;background:var(--flaeche2);display:inline-flex;align-items:center;justify-content:center;font-family:var(--anzeige);font-size:14px}
.link-feld{display:flex;gap:8px}
.link-feld input{flex:1;min-width:0}
.icon-vorschau{width:64px;height:64px;border-radius:15px;box-shadow:var(--schatten)}

/* ------------------------------------------------------------------ Kassenzettel (S825) */
.aktion.mit-kamera{display:flex;gap:10px;align-items:stretch}
.aktion.mit-kamera .heat{flex:1;min-width:0}
.kamera{flex:0 0 60px;width:60px;height:60px;border-radius:14px;border:1.5px solid var(--tinte);background:var(--grund);color:var(--tinte);display:flex;align-items:center;justify-content:center;padding:0}
.kz-foto{border-radius:14px;overflow:hidden;background:var(--flaeche2)}
.kz-foto img{display:block;width:100%;max-height:260px;object-fit:cover;object-position:center top}
.kz-foto.gross img{max-height:none;object-fit:contain}
.kz-form{display:flex;flex-direction:column;gap:14px;margin-top:14px}
.kz-liest{display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:14px;background:var(--flaeche2);font-size:15px;line-height:1.45}
.kz-liest p{margin:0}
.kz-liest .balken{display:block;height:4px;border-radius:2px;background:var(--linie);overflow:hidden;position:relative}
.kz-liest .balken::after{content:"";position:absolute;top:0;bottom:0;left:0;width:35%;border-radius:2px;background:var(--tinte);animation:kz-lauf 1.4s ease-in-out infinite}
@keyframes kz-lauf{0%{transform:translateX(-100%)}100%{transform:translateX(300%)}}
.zettel-knopf{height:48px;font-size:15px}
.zettel-kopf{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:14px;background:var(--flaeche)}
.zettel-bild{flex:0 0 auto;width:44px;height:58px;padding:0;border:0;border-radius:8px;overflow:hidden;background:var(--flaeche2)}
.zettel-bild img{display:block;width:100%;height:100%;object-fit:cover}
.zettel-text{display:flex;flex-direction:column;min-width:0;font-size:15px}
.zettel-text .hilfe{margin:2px 0 0}
.zettel-hinweis{margin:0}
.label-zeile{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 2px}
.label-zeile .label{margin-bottom:0}
.text-knopf.klein{font-size:14px;padding:0 4px;text-decoration:underline}
.nach-posten{margin-top:4px}
.posten-summen{display:flex;flex-wrap:wrap;gap:6px 14px;margin:2px 2px 8px;font-size:14px;font-weight:600}
.posten-summen span{display:inline-flex;align-items:center;gap:6px}
.posten-liste{padding:2px 0}
.posten-zeile{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:6px 14px;background:none;border:0;border-bottom:1px solid var(--linie);text-align:left;color:var(--tinte);font-size:15px}
.posten-zeile:last-child{border-bottom:0}
.posten-zeile .n{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.posten-zeile .c{font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}
.posten-zeile .wer{flex:0 0 96px;display:flex;align-items:center;justify-content:flex-end;gap:5px;font-size:13px;color:var(--ruhig);white-space:nowrap;overflow:hidden}
.posten-zeile .wer span:last-child{overflow:hidden;text-overflow:ellipsis}
.posten-mehr{width:100%;justify-content:center}
.posten-block{margin:14px 0 4px}
.posten-gruppe{display:flex;align-items:center;gap:6px;margin:10px 2px 2px;font-size:14px;font-weight:700}
.zeilen.eng{margin:0 0 6px}
.blatt .zeilen.eng div{padding:7px 2px;font-size:14px}
.posten-details{margin-top:8px}
.posten-details summary{display:flex;align-items:center;gap:6px;min-height:44px;font-size:14px;font-weight:600;cursor:pointer;list-style:none}
.posten-details summary::-webkit-details-marker{display:none}
.beleg-bild{border-radius:14px;overflow:hidden;background:var(--flaeche2)}
.beleg-bild img{display:block;width:100%;height:auto}

/* ------------------------------------------------------------------ Breite Bildschirme: volle Breite, Leiste links */
@media (min-width:700px){
  .dock{top:0;right:auto;width:96px;height:auto;flex-direction:column;justify-content:flex-start;gap:8px;padding:max(20px,env(safe-area-inset-top)) 10px 20px;border-top:0;border-right:1px solid var(--linie)}
  .dock a{flex:0 0 auto;height:68px}
  .seite{margin-left:96px;padding:28px 36px 48px;min-height:100dvh}
  .seite.ohne-knopf{padding-bottom:48px}
  .aktion{position:static;flex-shrink:0}
  .aktion .heat{width:auto;min-width:240px;padding:0 28px}
  .kopf{margin-top:0}
  .seitenkopf{margin-top:0;margin-bottom:18px}
  .kopfzeile{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px}
  .kopfzeile .kopf{margin:0}
  .raster{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:28px;align-items:start}
  .raster .abschnitt:first-child{margin-top:0}
  .raster-haushalt{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:start}
  .raster-mehr{display:grid;grid-template-columns:repeat(auto-fill,minmax(380px,1fr));gap:6px 28px;align-items:start}
  .eintrag{padding:8px 22px}
  .eintrag .spalte{display:block;width:22%;min-width:140px;font-size:14px;color:var(--ruhig)}
  .eintrag .inhalt .m.nur-schmal{display:none}
  .hinweis{left:128px;right:auto;width:440px;bottom:28px}
  .hinweis.ohne-knopf,.hinweis.im-blatt{bottom:28px}
  .blatt{left:auto;top:0;right:0;bottom:0;width:min(540px,100vw);max-height:none;border-radius:28px 0 0 28px;padding:28px 32px}
  .blatt .griff{display:none}
  .blatt.formular{width:min(560px,100vw);border-radius:0;padding:24px 32px 28px;background:var(--grund);border-left:1px solid var(--linie)}
  .formular .speichern{position:static;margin-top:24px;padding:0;background:none}
  .blatt.formular .hinweis{position:static}
  .tor{max-width:none;padding:48px 10vw}
  .tor-raster{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8vw;align-items:center;flex:1}
  .tor .mitte{padding:0}
}
@media (min-width:1200px){
  .seite{padding:36px 56px 56px}
  .raster{grid-template-columns:minmax(0,4fr) minmax(0,6fr)}
}
