/* Abweichungen vom Paket (paket/alltagsduo.css, Jonathan 29.10.2026), Stand 30.10.2026, Agent „richtung“:
   1. --btn  #254E55 -> #0F4F55  (Marken-Petrol aus Logo, Reels, Mitmachen-Seite; AUFTRAG.md Abschnitt 4)
   2. --hero #254E55 -> #0F4F55  (dito)
   3. --sun  #F7CC62 -> #FFC94A  (Marken-Gelb aus dem Logo)
   Dunkle Ansicht unverändert: alle Paare gemessen mit werkzeug/kontrast.mjs (Weiß auf Petrol 9,25 · Gelb auf Petrol 6,04 ·
   dunkel: Gelb auf --hero 6,89 · --hero-ink auf --hero 8,92), kein Anpassungsbedarf.
   Sonst nichts geändert. Ergänzungen der Website stehen in site.css (Klassen mit Präfix ad-). */
/* Alltagsduo: Startpaket für die Website. Werte 1:1 aus der App (public/shared.css, public/app/app.css). */
/* Schrift selbst hosten, keine fremden Server (Nunito Sans, SIL Open Font License 1.1) */
@font-face { font-family: 'Nunito Sans'; src: url('fonts/NunitoSans-Variable.woff2') format('woff2'); font-weight: 200 1000; font-style: normal; font-display: swap; }

:root {
  /* Flächen und Text */
  --bg: #F5EFE6; --surface: #FFFBF5; --surface-2: #ECE3D6; --line: #DCCFBD; --field-line: #857260;
  --ink: #2B231D; --ink-2: #574839;
  /* Petrol: die einzige Akzentfarbe */
  --btn: #0F4F55; --btn-ink: #FFFFFF; --accent-soft: #DCE7E8; --hero: #0F4F55; --hero-ink: #FFFFFF;
  /* Logo-Gelb: nur als Fläche, nie als Schrift auf Sand */
  --sun: #FFC94A;
  /* Zustände */
  --ok: #2E6B47; --ok-bg: #E1ECDF; --warn: #A23B22; --warn-bg: #F6E2D9; --amber: #7A5200; --amber-bg: #F6E9C8;
  --blue-ink: #1F474E; --blue-bg: #DCE7E8; --rose-ink: #7A3B1E; --rose-bg: #F1E2D6;
  /* Form: jede Fläche hat unten links eine fast eckige Ecke (der Handballen) */
  --r: 22px; --r-sm: 16px; --flat: 7px;
  --shape: var(--r) var(--r) var(--r) var(--flat);
  --shape-sm: var(--r-sm) var(--r-sm) var(--r-sm) 6px;
  --shape-btn: 18px 18px 18px 6px;
  --shape-chip: 10px 10px 10px 3px;
  --font: 'Nunito Sans', 'Avenir Next', Avenir, 'Segoe UI', system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171310; --surface: #221C17; --surface-2: #2E2620; --line: #42372D; --field-line: #9A8774;
    --ink: #F3EBDF; --ink-2: #D2C4B2;
    --btn: #8CC6CC; --btn-ink: #0E2326; --accent-soft: #1F3538; --hero: #21444A; --hero-ink: #F3EBDF;
    --ok: #9ED6B0; --ok-bg: #1F3427; --warn: #FFA585; --warn-bg: #3D2219; --amber: #F0C76A; --amber-bg: #3A2E14;
    --blue-ink: #B3DADE; --blue-bg: #1F3538; --rose-ink: #F2C3A5; --rose-bg: #3A261C;
  }
}

/* Grundlage */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, p, li, label, .btn, .chip { overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(34px, 4.5vw, 42px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 23px; line-height: 1.25; font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 800; }
.lead { font-size: 19px; color: var(--ink-2); }
.fine { font-size: 18px; line-height: 1.45; color: var(--ink-2); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)); }
:focus-visible { outline: 3px solid var(--btn); outline-offset: 3px; }
.hero :focus-visible { outline-color: var(--hero-ink); }
.ic { flex: none; display: block; }

/* Flächen: ohne Schatten, nur durch den Farbton getrennt */
.card { background: var(--surface); border-radius: var(--shape); padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hero { background: var(--hero); color: var(--hero-ink); border-radius: var(--shape); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.hero h2 { font-size: 28px; letter-spacing: -.02em; }

/* Knöpfe: mindestens 56 px hoch (klein 48 px), Verb auf dem Knopf */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 24px; border: 0; border-radius: var(--shape-btn); background: var(--btn); color: var(--btn-ink); font: 800 18px/1.2 var(--font); text-align: center; text-decoration: none; cursor: pointer; transition: filter .15s; }
.btn:hover { filter: brightness(1.15); }
.btn:active { filter: brightness(.9); }
.btn.alt { background: var(--surface-2); color: var(--ink); }
.btn.danger { background: var(--warn-bg); color: var(--warn); }
.btn[disabled] { background: var(--surface-2); color: var(--ink-2); cursor: not-allowed; filter: none; }
.btn.sm { min-height: 48px; font-size: 17px; padding: 0 20px; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btns .btn { flex: 1; min-width: 150px; }
/* Handschlag: zwei Knöpfe nebeneinander zeigen sich die eckigen Ecken */
.btns .btn + .btn { border-radius: 18px 18px 6px 18px; }
.link { display: inline-flex; align-items: center; min-height: 48px; color: var(--btn); font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.link:hover { text-decoration-thickness: 3px; }

/* Kennzeichen: klein, eckig, keine Pillen */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 11px; border-radius: var(--shape-chip); font-size: 15px; font-weight: 800; background: var(--surface-2); color: var(--ink-2); }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.amber { background: var(--amber-bg); color: var(--amber); }
.chip.blue { background: var(--blue-bg); color: var(--blue-ink); }
.chip.rose { background: var(--rose-bg); color: var(--rose-ink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* Eingaben */
.fld { display: flex; flex-direction: column; gap: 8px; }
.fld label { font-size: 18px; font-weight: 800; color: var(--ink-2); }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 56px; padding: 14px; border: 2px solid var(--field-line); border-radius: 16px 16px 16px 6px; background: var(--surface-2); color: var(--ink); font: 18px/1.5 var(--font); outline: 0; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--btn); box-shadow: inset 0 0 0 1px var(--btn); }
.err { color: var(--warn); font-weight: 700; font-size: 18px; }
.ck { display: flex; gap: 14px; align-items: flex-start; min-height: 48px; padding: 10px 0; font-size: 18px; line-height: 1.45; cursor: pointer; }
.ck .bx { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 2.5px solid var(--ink-2); border-radius: 9px 9px 9px 3px; color: transparent; }
.ck[aria-checked="true"] .bx { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.ck i { display: block; font-style: normal; color: var(--ink-2); }

/* Umschalter (zwei oder drei Teile) */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--shape); }
.seg button { min-height: 52px; border: 0; border-radius: 16px 16px 16px 6px; background: none; color: var(--ink-2); font: 800 17px var(--font); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }

/* Fortschritt, z. B. Minijob-Grenze oder Budget */
.bar { height: 14px; border-radius: 7px 7px 7px 2px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: var(--btn); }
.bar span.near { background: var(--amber); }
.bar span.over { background: var(--warn); }

/* Helfer-Karte */
.post { background: var(--surface); border-radius: var(--shape); overflow: hidden; display: flex; flex-direction: column; }
.post .hd { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.post .hd b { display: block; font-size: 19px; }
.post .hd small { display: block; font-size: 17px; color: var(--ink-2); }
.post .ph { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; background: var(--blue-bg); }
.post .ft { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; }
.post .line { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.avr { display: grid; place-items: center; flex: none; padding: 2.5px; border-radius: 50%; background: var(--btn); overflow: hidden; }
.avr img, .avr span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); display: grid; place-items: center; font-weight: 800; color: var(--blue-ink); background: var(--blue-bg); }
.fav { width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 16px 16px 16px 6px; background: var(--accent-soft); color: var(--btn); cursor: pointer; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }

/* Listeneintrag */
.item { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border-radius: var(--shape); }
.item .tx { flex: 1; min-width: 0; }
.item b { display: block; font-size: 19px; }
.item small { display: block; font-size: 17px; color: var(--ink-2); }

/* Kurze Rückmeldung */
.toast { display: inline-block; padding: 14px 22px; border-radius: 18px 18px 18px 6px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 17px; }

/* Weniger Bewegung, mehr Kontrast */
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (prefers-contrast: more) { :root:root { --ink-2: var(--ink); --line: var(--field-line); } }
