/* Cockpit, Entwurf A „Glas“: heller warmer Verlauf, Milchglas-Karten, Seitenleiste am Rechner, Tabbar am Handy.
   Keine externen Schriften oder Skripte (CSP 'self'). Kontraste auf dem hellsten Glas gemessen (WCAG AA). */
:root {
  color-scheme: light;
  --text: #1d1d1f; --text-2: #5c5c61; --text-3: #66666b;
  --glas: rgb(255 255 255 / .58); --glas-stark: rgb(255 255 255 / .78);
  --rand: rgb(255 255 255 / .75); --linie: rgb(0 0 0 / .07);
  --orange: #f07c1a; --orange-text: #a3520b; --rot: #c8000f; --gruen: #1f7a35; --blau: #0a5fcc;
  --radius: 22px; --schatten: 0 1px 1px rgb(0 0 0 / .03), 0 8px 28px rgb(31 38 57 / .08);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  color: var(--text); -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: #f4f3f0; overflow-x: hidden; }
body::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 30vmax at 12% 8%, rgb(255 179 112 / .55), transparent 70%),
    radial-gradient(34vmax 28vmax at 92% 18%, rgb(160 200 255 / .55), transparent 70%),
    radial-gradient(40vmax 30vmax at 70% 95%, rgb(255 214 170 / .45), transparent 70%),
    radial-gradient(30vmax 26vmax at 8% 90%, rgb(200 222 255 / .5), transparent 70%);
  filter: blur(8px);
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blau); outline-offset: 3px; border-radius: 12px; }
.sprung { position: absolute; left: 16px; top: -60px; padding: 10px 14px; background: #fff; color: var(--text); border-radius: 12px; z-index: 10; }
.sprung:focus { top: 16px; }

.glas { background: var(--glas); border: 1px solid var(--rand); box-shadow: var(--schatten); border-radius: var(--radius);
  backdrop-filter: blur(28px) saturate(1.8); -webkit-backdrop-filter: blur(28px) saturate(1.8); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glas { background: rgb(255 255 255 / .92); }
}

/* Rahmen: Seitenleiste und Inhalt */
.rahmen { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 24px; padding: 24px; min-height: 100vh; }
.leiste { position: sticky; top: 24px; height: calc(100vh - 48px); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.marke { display: flex; align-items: center; gap: 12px; padding: 4px 10px 20px; }
.marke img { width: 40px; height: auto; }
.marke strong, .login .marke strong { display: block; font-size: 15px; letter-spacing: -.01em; }
.marke span { font-size: 12px; color: var(--text-2); }
.leiste nav { display: flex; flex-direction: column; gap: 2px; }
.leiste nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.leiste nav a:hover { background: rgb(255 255 255 / .5); }
.leiste nav a svg { width: 20px; height: 20px; color: var(--text-2); flex: none; }
.leiste nav a[aria-current="page"] { background: var(--glas-stark); box-shadow: 0 1px 3px rgb(0 0 0 / .06); }
.leiste nav a[aria-current="page"] svg { color: var(--orange-text); }
.leiste .zahl { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.fuss { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 6px 4px 10px; border-top: 1px solid var(--linie); }
.wer { min-width: 0; flex: 1; }
.wer strong { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wer small { display: block; color: var(--text-2); font-size: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 650;
  color: #fff; background: linear-gradient(160deg, #b0600f, #8a4306); flex: none; }
.abmelden { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); cursor: pointer; }
.abmelden:hover { background: rgb(255 255 255 / .6); color: var(--text); }
.abmelden svg { width: 20px; height: 20px; }
.nur-handy { display: none; }

main { padding: 18px 8px 40px; max-width: 1120px; min-width: 0; }
.oben { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.datum { font-size: 13px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.demo, .bald { font-size: 11.5px; font-weight: 650; letter-spacing: .02em; text-transform: none; padding: 3px 9px; border-radius: 999px;
  background: rgb(255 255 255 / .8); color: var(--orange-text); border: 1px solid rgb(163 82 11 / .25); vertical-align: middle; }
h1 { font-size: 40px; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 6px; font-weight: 700; }
.unter { color: var(--text-2); font-size: 16px; margin: 0 0 28px; }
h2 { font-size: 20px; letter-spacing: -.02em; margin: 0 0 14px; font-weight: 650; display: flex; align-items: center; gap: 10px; }
section { margin-bottom: 32px; }
.meldung { padding: 14px 18px; color: var(--rot); font-weight: 600; margin: 0 0 24px; }

/* Lage */
.zahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.zahl-karte { padding: 18px 20px; text-decoration: none; color: inherit; display: block; }
.zahl-karte .titel { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.zahl-karte .titel i { width: 8px; height: 8px; border-radius: 50%; background: var(--blau); flex: none; }
.zahl-karte b { display: block; font-size: 34px; letter-spacing: -.03em; margin: 10px 0 2px; font-weight: 650; font-variant-numeric: tabular-nums; }
.zahl-karte small { color: var(--text-3); font-size: 13px; display: block; min-height: 1.3em; }
.warn .titel i { background: var(--rot); } .warn b { color: var(--rot); }
.orange .titel i { background: var(--orange); }
.gruen .titel i { background: var(--gruen); }

/* Braucht dich, Schnell anlegen */
.zwei { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; }
.liste { padding: 6px 0; }
.eintrag { display: flex; align-items: center; gap: 14px; padding: 14px 20px; color: inherit; text-decoration: none; }
a.eintrag:hover { background: rgb(255 255 255 / .35); }
.eintrag + .eintrag { border-top: 1px solid var(--linie); }
.symbol { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; color: #fff; }
.symbol svg { width: 20px; height: 20px; }
.eintrag .text { flex: 1; min-width: 0; font-size: 15px; }
.eintrag strong { display: block; font-size: 15px; font-weight: 600; }
.eintrag .text span { font-size: 13.5px; color: var(--text-2); }
.eintrag .wann { font-size: 12.5px; color: var(--text-3); text-align: right; }
.aktionen { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aktion { padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; font: inherit; font-size: 14.5px; font-weight: 600; text-align: left; color: var(--text); }
.aktion:disabled { cursor: default; }
.aktion:disabled .symbol { opacity: .55; }
.aktion .symbol { width: 34px; height: 34px; border-radius: 10px; }
.notiz { color: var(--text-2); margin: 14px 2px 0; font-size: 13px; }

/* Werkzeuge */
.werkzeuge { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.werkzeug { padding: 20px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 16px; min-height: 150px; }
.werkzeug .symbol { width: 48px; height: 48px; border-radius: 14px; }
.werkzeug .symbol svg { width: 24px; height: 24px; }
.werkzeug strong { font-size: 16px; font-weight: 650; letter-spacing: -.01em; display: block; }
.werkzeug div span { font-size: 13.5px; color: var(--text-2); margin-top: 2px; display: block; }
.werkzeug .pfeil { margin-top: auto; font-size: 13px; color: var(--orange-text); font-weight: 600; }
.stand { color: var(--text-2); font-size: 12.5px; margin: 0; }

/* Farbflächen der Symbole: weiße Striche, an der hellsten Stelle mindestens 3:1 (Initialen im Avatar 4,6:1) */
.s-orange { background: linear-gradient(160deg, #d9782c, #b0600f); }
.s-blau { background: linear-gradient(160deg, #2f8fe0, #0a5fcc); }
.s-gruen { background: linear-gradient(160deg, #3aa860, #1f7a35); }
.s-grau { background: linear-gradient(160deg, #8a8a93, #636366); }
.s-indigo { background: linear-gradient(160deg, #9080ff, #5240d6); }
.s-rot { background: linear-gradient(160deg, #e0443a, #c8000f); }

.tabbar { display: none; }

/* Anmeldung */
.login-seite { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; }
.login { width: 100%; max-width: 400px; padding: 28px 28px 24px; }
.login .marke { padding: 0 0 18px; }
.login h1 { font-size: 30px; margin-bottom: 4px; }
.login .unter { margin-bottom: 20px; font-size: 15px; }
.login label { display: block; margin: 0 0 14px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.login input:not([type=checkbox]) { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text);
  border: 1px solid rgb(0 0 0 / .14); border-radius: 12px; background: rgb(255 255 255 / .85); }
.login input:not([type=checkbox]):focus-visible { outline: 2px solid var(--blau); outline-offset: 1px; }
.login .haken { display: flex; gap: 10px; align-items: center; font-weight: 500; color: var(--text); }
.login .haken input { width: 18px; height: 18px; accent-color: var(--text); }
.fehler { color: var(--rot); font-size: 14px; font-weight: 600; margin: 0 0 14px; }
.knopf { font: inherit; font-size: 15px; font-weight: 600; border: 0; border-radius: 999px; padding: 13px 18px; color: #fff; background: var(--text); cursor: pointer; width: 100%; }
.knopf:disabled { opacity: .6; cursor: default; }
.login .klein { margin: 16px 0 0; font-size: 12.5px; color: var(--text-2); text-align: center; }

@media (max-width: 760px) {
  .rahmen { display: block; padding: 0; }
  .leiste { display: none; }
  main { padding: calc(24px + env(safe-area-inset-top)) 16px calc(120px + env(safe-area-inset-bottom)); }
  .nur-handy { display: grid; margin-left: auto; }
  h1 { font-size: 32px; }
  .zahlen { grid-template-columns: 1fr 1fr; gap: 12px; }
  .zahl-karte { padding: 16px; }
  .zahl-karte b { font-size: 28px; }
  .zwei, .werkzeuge { grid-template-columns: 1fr; }
  .werkzeug { min-height: 0; flex-direction: row; align-items: center; }
  .werkzeug .pfeil, .eintrag .wann { display: none; }
  .tabbar { display: flex; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom));
    padding: 6px; gap: 2px; border-radius: 999px; max-width: calc(100vw - 24px); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--text-2); text-decoration: none; min-width: 58px; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { background: rgb(255 255 255 / .88); color: var(--orange-text); }
}
@media (max-width: 360px) { .zahlen { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) {
  .zahl-karte, .werkzeug, a.eintrag { transition: transform .2s cubic-bezier(.2, .8, .2, 1), background-color .2s; }
  .zahl-karte:hover, .werkzeug:hover { transform: translateY(-2px); }
}
