:root {
  --bg: #f3eee3; --flaeche: #faf7f0; --text: #27231e; --leise: #675f53; --linie: #d8cfbd;
  --akzent: #2b5b49; --akzent-text: #fbf8f1; --fehler: #a3281f; --fehler-bg: #f6e0dc; --ok: #2b5b49;
  --fokus: #b9852a; --radius: 6px;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --nav-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1a17; --flaeche: #24221e; --text: #ece6d9; --leise: #a49b8b; --linie: #3d3a33;
    --akzent: #8cc2a8; --akzent-text: #14211b; --fehler: #ff9d92; --fehler-bg: #3b1e1b; --ok: #8cc2a8; --fokus: #e0b35a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--sans); }
h1, h2 { font-family: var(--display); font-weight: 600; line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.25rem; }
p { margin: 0 0 .75rem; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprung { position: absolute; left: -999px; top: 0; background: var(--flaeche); padding: .75rem 1rem; z-index: 10; }
.sprung:focus { left: 0; }
.marke { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--leise); margin-bottom: .5rem; }
.leise { color: var(--leise); }
[hidden] { display: none !important; }

.knopf { min-height: 48px; padding: 0 1.25rem; border: 1.5px solid var(--text); border-radius: var(--radius); background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.knopf.primaer { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.knopf:active { transform: translateY(1px); }
.feld { display: block; margin-bottom: 1rem; }
.feld span { display: block; font-size: .85rem; color: var(--leise); margin-bottom: .25rem; }
input[type=text], input[type=email], input[type=password] { width: 100%; min-height: 48px; padding: 0 .75rem; border: 1.5px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); color: var(--text); font: inherit; }
.fehler { color: var(--fehler); background: var(--fehler-bg); border-left: 4px solid var(--fehler); padding: .5rem .75rem; border-radius: 2px; }
.fehler::before { content: "Fehler: "; font-weight: 700; }
.ok { color: var(--ok); border-left: 4px solid var(--ok); padding: .25rem .75rem; }
.ok::before { content: "✓ "; }
.zeile { display: flex; gap: .5rem; align-items: stretch; margin: .75rem 0; }
.zeile input { flex: 1; min-width: 0; }

/* Anmeldung und Einrichtung */
.auth, .onboarding { max-width: 34rem; margin: 0 auto; padding: max(2rem, env(safe-area-inset-top)) 1rem 3rem; }
.auth-kopf { border-left: 4px solid var(--akzent); padding-left: 1rem; margin-bottom: 1.5rem; }
.auth-form .knopf { width: 100%; }
.einfuehrung { padding-top: 2rem; }
.einfuehrung h1 { font-size: 2.4rem; }

/* Lebensbereiche */
.abschnitt { margin-top: 1.5rem; }
.karten { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.bereich-karte { position: relative; display: flex; align-items: center; gap: .5rem; min-height: 56px; padding: .5rem .75rem; text-align: left; font: inherit; color: var(--text); background: var(--flaeche); border: 1.5px solid var(--linie); border-radius: var(--radius); cursor: pointer; }
.bereich-karte.an { border-color: var(--akzent); background: color-mix(in srgb, var(--akzent) 14%, var(--flaeche)); font-weight: 600; }
.bereich-karte .emoji { font-size: 1.4rem; }
.haken { margin-left: auto; color: var(--akzent); font-weight: 700; }
.regler { display: grid; gap: .75rem; margin: 1rem 0; }
.regler-zeile { border: 0; border-top: 1px solid var(--linie); padding: .75rem 0 0; margin: 0; }
.regler-zeile legend { font-weight: 600; padding: 0 .5rem 0 0; float: left; width: 100%; margin-bottom: .25rem; }
.schieber { display: flex; align-items: center; gap: .75rem; clear: both; min-height: 44px; }
.schieber input { flex: 1; accent-color: var(--akzent); height: 28px; }
.schieber output { width: 2ch; font-weight: 700; font-variant-numeric: tabular-nums; }
.farben { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }
.farbe { width: 44px; height: 44px; border-radius: 50%; border: 3px solid transparent; box-shadow: inset 0 0 0 2px var(--bg); cursor: pointer; padding: 0; }
.farbe.an { border-color: var(--text); }
.farbe.an::after { content: "✓"; color: #fff; font-weight: 700; text-shadow: 0 0 2px #000; }

/* Rahmen und Navigation */
.rahmen { min-height: 100dvh; }
.nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; display: flex; background: var(--flaeche); border-top: 1px solid var(--linie); padding-bottom: env(safe-area-inset-bottom); }
.nav a { flex: 1; min-height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--leise); text-decoration: none; font-size: .7rem; border-top: 3px solid transparent; }
.nav a[aria-current] { color: var(--akzent); border-top-color: var(--akzent); font-weight: 700; }
.nav a[data-route=einstellungen] { position: fixed; top: max(.5rem, env(safe-area-inset-top)); right: .5rem; flex: none; width: 48px; min-height: 48px; border: 0; }
.nav a[data-route=einstellungen] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.kopf-marke, .nav-abstand { display: none; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#inhalt { padding: max(1rem, env(safe-area-inset-top)) 1rem calc(var(--nav-h) + 2rem + env(safe-area-inset-bottom)); max-width: 46rem; margin: 0 auto; outline: none; }
.seite h1 { padding-right: 3.5rem; }
.leer { border: 1.5px dashed var(--linie); border-radius: var(--radius); padding: 2rem 1rem; color: var(--leise); text-align: center; }
.block { border-top: 1px solid var(--linie); padding: 1.25rem 0; }

@media (min-width: 900px) {
  .nav { top: 0; bottom: auto; right: auto; width: 15rem; height: 100dvh; flex-direction: column; border-top: 0; border-right: 1px solid var(--linie); padding: 1.5rem .75rem; }
  .nav a { flex: none; flex-direction: row; justify-content: flex-start; gap: .75rem; min-height: 48px; padding: 0 .75rem; font-size: 1rem; border-top: 0; border-left: 3px solid transparent; }
  .nav a[aria-current] { border-left-color: var(--akzent); }
  .nav a[data-route=einstellungen] { position: static; width: auto; border-left: 3px solid transparent; }
  .nav a[data-route=einstellungen] span { position: static; width: auto; height: auto; clip: auto; }
  .kopf-marke { display: block; margin: 0 0 1.5rem .75rem; }
  .nav-abstand { display: block; flex: 1; }
  #inhalt { margin-left: 15rem; max-width: none; padding: 2rem 2.5rem; }
  #inhalt > * { max-width: 46rem; }
  .karten { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Aufgaben */
.chips { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem 0 .75rem; margin: 0 -1rem; padding-inline: 1rem; scrollbar-width: none; }
.chip { flex: none; min-height: 44px; padding: 0 1rem; border: 1.5px solid var(--linie); border-radius: 22px; background: transparent; color: var(--text); font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.chip[aria-pressed=true] { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); font-weight: 600; }
.zaehler { background: var(--fehler); color: #fff; border-radius: 10px; min-width: 20px; padding: 0 6px; font-size: .75rem; line-height: 20px; text-align: center; }
.filter, select, textarea, input[type=date], input[type=time], input[type=number] { width: 100%; min-height: 48px; padding: 0 .75rem; border: 1.5px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); color: var(--text); font: inherit; }
textarea { padding: .6rem .75rem; min-height: 80px; }
.filter { margin-bottom: .75rem; }
.aufgaben { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--linie); }
.aufgabe, .passt-zeile { display: flex; gap: .5rem; align-items: flex-start; padding: .5rem 0; border-bottom: 1px solid var(--linie); }
.aufgaben > .leer { border: 1.5px dashed var(--linie); margin-top: 1rem; }
.haken-knopf { flex: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; position: relative; color: var(--akzent-text); font-weight: 700; }
.haken-knopf::before { content: ""; position: absolute; inset: 11px; border: 2px solid var(--leise); border-radius: 50%; }
.haken-knopf:active::before { background: color-mix(in srgb, var(--akzent) 30%, transparent); }
.erledigt .haken-knopf::before { background: var(--akzent); border-color: var(--akzent); }
.erledigt .titel-knopf { text-decoration: line-through; color: var(--leise); }
.aufgabe-text { flex: 1; min-width: 0; }
.titel-knopf { display: block; width: 100%; min-height: 44px; padding: 0; text-align: left; background: none; border: 0; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; overflow-wrap: anywhere; }
.meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: .8rem; color: var(--leise); margin-top: -.25rem; }
.abzeichen { border-left: 4px solid var(--c); padding-left: .4rem; color: var(--text); }
.warum-knopf { min-height: 44px; padding: 0; background: none; border: 0; color: var(--akzent); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; margin-right: 1rem; }
.warum { background: var(--flaeche); border-left: 3px solid var(--akzent); padding: .5rem .75rem; font-size: .875rem; margin-bottom: .5rem; }
.warum ul { margin: 0; padding-left: 1.1rem; } .warum-titel { font-weight: 700; margin-bottom: .25rem; }
.klein { font-size: .8rem; }
.fab { position: fixed; right: 1rem; bottom: calc(var(--nav-h) + 1rem + env(safe-area-inset-bottom)); z-index: 6; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--akzent); color: var(--akzent-text); font-size: 2rem; line-height: 1; cursor: pointer; }
.dialog { width: min(32rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 2rem); border: 1.5px solid var(--text); border-radius: var(--radius); background: var(--bg); color: var(--text); padding: 1rem; }
.dialog::backdrop { background: rgba(0, 0, 0, .5); }
.dialog-knoepfe { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.knopf.gefahr { color: var(--fehler); border-color: var(--fehler); margin-left: auto; }
.gruppe { border: 1.5px solid var(--linie); border-radius: var(--radius); margin: 0 0 1rem; padding: .25rem .75rem .75rem; }
.gruppe .zeile { margin: .25rem 0; align-items: center; } .gruppe .zeile.aus { opacity: .6; }
.zentriert { align-self: center; }
.wochentage { display: flex; flex-wrap: wrap; gap: .25rem; }
.tag-wahl span { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid var(--linie); border-radius: 50%; cursor: pointer; }
.tag-wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tag-wahl input:checked + span { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); }
.tag-wahl input:focus-visible + span { outline: 3px solid var(--fokus); outline-offset: 2px; }
.abhaken-zeile { display: flex; align-items: center; gap: .75rem; min-height: 48px; }
.abhaken-zeile input { width: 24px; height: 24px; accent-color: var(--akzent); }
.zeile .feld { flex: 1; }
#toast { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + 5rem + env(safe-area-inset-bottom)); z-index: 20; display: flex; flex-direction: column; align-items: center; gap: .5rem; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 1rem; background: var(--text); color: var(--bg); padding: .25rem .5rem .25rem 1rem; border-radius: var(--radius); max-width: calc(100vw - 2rem); }
.toast-knopf { min-height: 44px; padding: 0 .75rem; background: none; border: 0; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
@media (min-width: 900px) { .fab { bottom: 1.5rem; right: 1.5rem; } #toast { bottom: 2rem; left: 15rem; } .chips { margin: 0; padding-inline: 0; flex-wrap: wrap; } }
.gruppe input[type=number] { flex: none; width: 5rem; text-align: center; }

/* Heute */
.datum { margin: 0; color: var(--leise); }
.seite h2 { font-size: 1.05rem; margin: 1.5rem 0 .25rem; }
.leise { color: var(--leise); margin: .25rem 0; }
.liste-schlicht { list-style: none; margin: .25rem 0; padding: 0; }
.liste-schlicht li { padding: .4rem 0; border-bottom: 1px solid var(--linie); }
.zaehler-reihe { display: flex; gap: .75rem; margin-top: .75rem; }
.zaehl-kachel { flex: 1; min-height: 48px; padding: .6rem .8rem; border: 1.5px solid var(--linie); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.zaehl-kachel strong { font-size: 1.4rem; margin-right: .25rem; }
a.knopf { display: inline-flex; align-items: center; margin-top: 1.5rem; text-decoration: none; }
a.titel-knopf { display: flex; align-items: center; text-decoration: none; }

/* Einkauf */
.einkauf-neu { display: flex; gap: .5rem; margin: 1rem 0 .5rem; }
.einkauf-neu input { flex: 1; min-width: 0; min-height: 48px; padding: 0 .75rem; border: 1.5px solid var(--text); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; }
.haeufig h2, .abteilung h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--leise); margin: 1rem 0 .25rem; }
.artikelliste { list-style: none; margin: 0 0 .5rem; padding: 0; border-top: 1px solid var(--linie); }
.artikel { display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid var(--linie); }
.ek-haken { flex: none; width: 48px; height: 48px; border: 0; background: transparent; color: var(--akzent-text); cursor: pointer; position: relative; font: inherit; font-weight: 700; }
.ek-haken::before { content: ''; position: absolute; inset: 9px; border: 2px solid var(--text); border-radius: 8px; }
.ek-haken[aria-checked=true]::before { background: var(--akzent); border-color: var(--akzent); }
.ek-haken { z-index: 0; } .ek-haken[aria-checked=true] { z-index: 0; }
.artikel-text { flex: 1; min-width: 0; min-height: 48px; text-align: left; border: 0; background: transparent; color: var(--text); font: inherit; cursor: pointer; padding: .25rem 0; }
.artikel-notiz { display: block; font-size: .85rem; }
.artikel.erledigt .artikel-name { text-decoration: line-through; color: var(--leise); }
.abteilung > .knopf { margin-top: .5rem; }
.abt-liste { list-style: none; margin: 0; padding: 0; }
.abt-liste li { display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid var(--linie); padding: .25rem 0; }
.abt-liste li span { flex: 1; }
.schluessel-liste { list-style: none; margin: 0 0 .75rem; padding: 0; }
.schluessel-liste li { display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid var(--linie); padding: .35rem 0; }
.schluessel-liste li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
pre.code { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .85rem; padding: .6rem; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); user-select: all; }
.chip:disabled { opacity: .4; cursor: default; }

/* Küche: Vorrat und Rezepte */
.vorrat-neu { display: grid; gap: .5rem; margin: .5rem 0 1rem; }
.vorrat-neu input, .vorrat-neu select, .rezept-suche, .ort-neu input, .feld textarea { min-height: 48px; padding: .5rem .75rem; border: 1.5px solid var(--text); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; min-width: 0; }
.feld textarea { width: 100%; }
.zeile-eng { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.zeile-eng .schmal { width: 100%; }
.vorrat-zeile { display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid var(--linie); flex-wrap: wrap; }
.vorrat-zeile .artikel-text { flex: 1 1 12rem; }
.aktionen { display: flex; gap: .4rem; }
.mhd { display: block; font-size: .8rem; color: var(--leise); }
.mhd-abgelaufen { color: var(--fehler); font-weight: 700; }
.mhd-bald { color: #8a5a00; font-weight: 700; }
.mhd-woche { color: var(--text); font-weight: 600; }
@media (prefers-color-scheme: dark) { .mhd-bald { color: var(--fokus); } }
.ort-neu { display: flex; gap: .5rem; margin-top: 1.5rem; }
.ort-neu input { flex: 1; }
.rezept-kopf { display: flex; gap: .5rem; margin: .75rem 0; }
.rezept-suche { flex: 1; }
.rezept-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.rezept-karte { width: 100%; min-height: 48px; display: grid; gap: .1rem; text-align: left; padding: .6rem .8rem; border: 1.5px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); color: var(--text); font: inherit; cursor: pointer; }
.rezept-titel { font-weight: 700; }
.ok { color: var(--ok); font-weight: 600; }
.fehlt { color: var(--fehler); }
.schritte { padding-left: 1.25rem; }
.zutaten li { padding: .1rem 0; }
.dialog { overflow-y: auto; }
.dialog h3 { font-size: 1rem; margin: 1rem 0 .25rem; }

/* Termine */
.termine-kopf { display: flex; gap: .5rem; align-items: flex-start; justify-content: space-between; }
.termine-kopf .chips { flex: 1; margin-right: 0; }
.tag h2 { font-size: 1.05rem; margin: 1.25rem 0 .25rem; }
.tag-heute { color: var(--akzent); }
.termin { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0 .5rem; width: 100%; min-height: 48px; text-align: left; font: inherit; color: var(--text); background: transparent; border: 0; border-left: 4px solid var(--c); padding: .35rem .5rem; cursor: pointer; }
.termin-zeit { color: var(--leise); font-variant-numeric: tabular-nums; }
.termin-ort { grid-column: 2; }
.termine li { padding: 0; }
.navi { display: flex; align-items: center; gap: .5rem; margin: .25rem 0 .5rem; }
.navi-titel { flex: 1; text-align: center; }
.monat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: .5rem; }
.monat-kopf { text-align: center; font-size: .8rem; color: var(--leise); }
.monat-tag { min-height: 48px; border: 1px solid var(--linie); border-radius: var(--radius); background: transparent; color: var(--text); font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: .2rem 0; cursor: pointer; }
.monat-tag.fremd { opacity: .45; }
.monat-tag.heute { border-color: var(--akzent); font-weight: 700; }
.monat-tag.gewaehlt { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); }
.punkte { display: flex; gap: 2px; min-height: 6px; }
.punkte i { width: 6px; height: 6px; border-radius: 50%; display: block; }
.kalender-panel { margin-top: 2rem; border-top: 1px solid var(--linie); padding-top: .5rem; }
.kalender-panel summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.kal-zeile { display: block; }
.kal-name { display: flex; align-items: center; gap: .5rem; border-left: 4px solid var(--c); padding-left: .5rem; min-height: 48px; }
.kal-name input { width: 24px; height: 24px; }
.kal-meta { margin: 0 0 .25rem .5rem; font-size: .85rem; overflow-wrap: anywhere; }
.kal-knoepfe { display: flex; gap: .5rem; flex-wrap: wrap; margin: .25rem 0 .5rem; }
.kal-knoepfe .knopf.gefahr { margin-left: 0; }
.zeile-check { display: flex; align-items: center; gap: .5rem; min-height: 48px; }
.zeile-check span { margin: 0; }
.zeile-check input { width: 24px; height: 24px; }
.dialog input:not([type=checkbox]), .kalender-panel form input { width: 100%; min-height: 48px; padding: 0 .75rem; border: 1.5px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); color: var(--text); font: inherit; }
.dialog input:disabled, .dialog textarea:disabled { opacity: .7; }
.termine-kopf { flex-direction: column; align-items: stretch; }
.termine-kopf .chips { margin-right: -1rem; }
.termin { grid-template-columns: 7rem 1fr; }
.termin-zeit { white-space: nowrap; }

/* Offline (Phase 7) */
.offline-leiste { position: sticky; top: 0; z-index: 8; padding: .5rem 1rem; background: var(--text); color: var(--bg); font-size: .9rem; text-align: center; }
.artikel.wartet .artikel-name::after { content: ' ⟳'; color: var(--leise); }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.zeile-haken { display: flex; align-items: center; gap: .75rem; min-height: 44px; }
.zeile-haken input { width: 24px; height: 24px; flex: none; }

/* Teilen: Räume, Mitglieder, Einladung */
.raum-abzeichen { font-size: .8rem; }
.raumfilter { margin-top: .25rem; }
.raum-karte { border: 1.5px solid var(--linie); border-radius: var(--radius); margin: .75rem 0; padding: .25rem .75rem; }
.raum-karte > summary { min-height: 48px; display: flex; align-items: center; gap: .5rem; cursor: pointer; font-weight: 600; }
.raum-karte h3 { font-size: .95rem; margin: 1rem 0 .25rem; }
.mitglieder-liste { list-style: none; margin: 0; padding: 0; }
.mitglieder-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; min-height: 48px; border-bottom: 1px solid var(--linie); }
.mitglieder-liste .name { flex: 1; min-width: 8rem; }
.einladung-box { background: var(--flaeche); border-radius: var(--radius); padding: .75rem; margin: .5rem 0; }
.einladung-box input { width: 100%; min-height: 48px; padding: 0 .75rem; border: 1.5px solid var(--linie); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; }
.einladung-box img.qr { display: block; width: 200px; height: 200px; margin: .75rem auto; background: #fff; padding: 8px; border-radius: var(--radius); }
.module-wahl { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.einladung-seite { max-width: 28rem; }

/* Suche und Daten (Phase 10) */
input[type=search] { width: 100%; min-height: 48px; padding: 0 .75rem; font: inherit; border: 1px solid var(--linie); border-radius: .6rem; background: var(--flaeche); color: inherit; }
.such-treffer { display: flex; flex-direction: column; gap: .1rem; min-height: 44px; justify-content: center; color: inherit; text-decoration: none; }
.such-treffer:hover span:first-child { text-decoration: underline; }
.energie { margin: .75rem 0 .25rem; }
.energie p { margin: 0 0 .35rem; }

/* ADHS: Anfangen */
.ruhige-karte { display: block; margin: .75rem 0; padding: .9rem 1rem; border: 1.5px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); color: var(--text); text-decoration: none; }
.titel-klein { margin: .25rem 0 0; font-size: .8rem; color: var(--leise); }
.titel-text { margin: .5rem 0 .25rem; font-weight: 600; overflow-wrap: anywhere; }
.neu-planen { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.klein-knopf { min-height: 44px; padding: 0 .9rem; font-size: .9rem; }
.timer-wahl { display: flex; gap: .5rem; align-items: stretch; margin: .25rem 0 .5rem; }
.timer-wahl .knopf { min-height: 44px; padding: 0 1rem; font-size: .9rem; }
.timer-wahl select.timer-dauer { width: auto; min-height: 44px; }
.timer-leiste { position: sticky; top: 0; z-index: 8; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; padding: .4rem 1rem; background: var(--akzent); color: var(--akzent-text); }
.timer-titel { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.timer-rest { font-variant-numeric: tabular-nums; }
.timer-stopp { min-height: 44px; padding: 0 .75rem; border: 1.5px solid currentColor; border-radius: var(--radius); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.timer-leiste progress { flex-basis: 100%; width: 100%; height: 6px; appearance: none; border: 0; background: color-mix(in srgb, var(--akzent-text) 30%, transparent); border-radius: 3px; overflow: hidden; }
.timer-leiste progress::-webkit-progress-bar { background: transparent; }
.timer-leiste progress::-webkit-progress-value { background: var(--akzent-text); transition: width 1s linear; }
.timer-leiste progress::-moz-progress-bar { background: var(--akzent-text); }
.fokus-zurueck { display: inline-flex; align-items: center; min-height: 44px; color: var(--akzent); }
.fokus-karte { margin: 1rem 0; padding: 1.5rem 1rem; border: 1.5px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); }
.fokus-titel-klein { margin: 0 0 .5rem; font-size: .9rem; color: var(--leise); overflow-wrap: anywhere; }
.fokus-hauptzeile { margin: 0 0 1rem; font-family: var(--display); font-size: 1.7rem; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }
.fokus-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.fokus-knoepfe .knopf { flex: 1 1 auto; padding: 0 .75rem; }

/* ADHS: Dranbleiben */
.zeile-knoepfe { display: flex; flex-wrap: wrap; align-items: stretch; gap: .5rem; margin: .5rem 0; }
.zeile-knoepfe .knopf, .zeile-knoepfe a.knopf { flex: 1; display: inline-flex; align-items: center; justify-content: center; margin-top: 0; }
.geschafft { margin: .5rem 0; color: var(--leise); }
.ruhige-karte a { color: var(--text); display: block; min-height: 44px; display: flex; align-items: center; }
.hinweis-ruhig { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .75rem; margin: .5rem 0; padding: .25rem .75rem; border-left: 3px solid var(--linie); color: var(--leise); font-size: .875rem; }
.haken-knopf.fertig::before { background: var(--akzent); border-color: var(--akzent); animation: haken-pop 420ms ease-out; }
.haken-knopf.fertig::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; animation: haken-pop 420ms ease-out; }
.knopf.fertig { animation: haken-pop 420ms ease-out; }
@keyframes haken-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .haken-knopf.fertig::before, .haken-knopf.fertig::after, .knopf.fertig { animation: none; } }

/* Wegzeit (Phase 16b) */
.unterwegs { margin: 1rem 0; }
.unterwegs-zu { border: 1.5px solid var(--linie); border-radius: var(--radius); padding: 0 1rem; background: var(--flaeche); }
.unterwegs-zu > summary, .warum-fruh > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.unterwegs-zu[open] { padding-bottom: .75rem; }
.unterwegs-kopf { margin: 0 0 .25rem; font-size: 1.05rem; overflow-wrap: anywhere; }
.unterwegs-karte p { margin: .25rem 0; }
.unterwegs-regen { color: var(--text); border-left: 3px solid var(--fokus); padding-left: .6rem; }
.warum-fruh > summary { font-weight: 400; color: var(--akzent); text-decoration: underline; font-size: .9rem; }
.warum-fruh ul { margin: 0 0 .5rem; padding-left: 1.1rem; font-size: .9rem; }
.unterwegs-steuerung > p { margin: .5rem 0 .25rem; }
.hinweis-ruhig { margin: .5rem 0; padding: .5rem .75rem; border-left: 3px solid var(--linie); background: var(--flaeche); color: var(--leise); }
.passt-karte p { margin: 0 0 .25rem; }
.passt-liste { margin-top: .25rem; }
.wagen-heute { margin: .5rem 0; }
.ort-suche-zeile { display: flex; gap: .5rem; align-items: stretch; margin: .5rem 0; }
.ort-suche-zeile input { flex: 1; min-width: 0; min-height: 48px; padding: 0 .75rem; border: 1.5px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); color: var(--text); font: inherit; }
.treffer { list-style: none; margin: 0; padding: 0; }
.treffer li { border-bottom: 1px solid var(--linie); }
.treffer-knopf { display: block; width: 100%; min-height: 48px; padding: .5rem 0; text-align: left; background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; overflow-wrap: anywhere; }
.vm-liste { list-style: none; margin: 0 0 .75rem; padding: 0; }
.vm-eintrag { padding: .5rem 0; border-bottom: 1px solid var(--linie); }
.vm-text p { margin: 0; font-size: .875rem; overflow-wrap: anywhere; }
.vm-knoepfe { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.abzeichen-klein { margin-left: .5rem; padding: 1px 8px; border-radius: 10px; font-size: .75rem; background: var(--akzent); color: var(--akzent-text); }
.vm-form { border: 1.5px solid var(--linie); border-radius: var(--radius); padding: 1rem; margin: .75rem 0; background: var(--flaeche); }
.vm-form h3 { margin-top: 0; }
.feld-gruppe { border: 1px solid var(--linie); border-radius: var(--radius); padding: .5rem .75rem; margin: 0 0 1rem; }
.feld-gruppe legend { padding: 0 .25rem; color: var(--leise); font-size: .85rem; }
.datenschutz { font-size: .85rem; color: var(--leise); border-left: 3px solid var(--linie); padding-left: .75rem; }
#unterwegs h3 { font-size: 1rem; margin: 1rem 0 .25rem; }
