/* ==========================================================================
   Familienküche. Aussehen nach Vorlage: Poppins, viel Weiß, Karten in Mint
   und Anthrazit mit 24px Radius, schwarze Pillen als Knöpfe.
   Feste Skalen für Abstand, Radius, Höhe und Schrift.
   ========================================================================== */
:root {
  --bg:       #ffffff;
  --bg-2:     #f3f4f4;
  --bg-3:     #e9ebea;
  --mint:     #d9f2e8;
  --mint-2:   #c3e9d8;
  --dark:     #262626;
  --dark-2:   #333333;
  --ink:      #161616;
  --ink-2:    #6d6f6e;
  --ink-3:    #9a9c9b;
  --on-dark:  #ffffff;
  --on-dark-2:#c9cbca;
  --line:     #e9ebea;
  --yellow:   #f6d64a;
  --ok:       #2f7d4f;
  --ok-soft:  #e4f3ea;
  --warn:     #8a6410;
  --warn-soft:#fbf1cf;
  --stop:     #c8422f;
  --stop-soft:#fbe6e2;

  --r-s: 12px; --r-m: 20px; --r-l: 28px; --r-pill: 999px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --h-control: 52px; --h-chip: 40px; --h-nav: 68px; --avatar: 46px;
  --t-xs: 12px; --t-sm: 14px; --t-md: 16px; --t-lg: 22px; --t-xl: 30px; --t-xxl: 34px;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--t-sm)/1.5 var(--font);
  padding-bottom: calc(var(--h-nav) + var(--s6) + env(safe-area-inset-bottom, 0px));
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
h1 { font-size: var(--t-lg); }
h2 { font-size: var(--t-md); }
h3 { font-size: var(--t-sm); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--bg-2); padding: 1px 6px; border-radius: 6px; }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 var(--s5); }

/* ----- Große Überschrift: eine Zeile leicht, eine fett ------------------- */
.headline { font-size: var(--t-xxl); font-weight: 400; line-height: 1.15; letter-spacing: -.02em; }
.headline b { font-weight: 700; display: block; }
.headline--sm { font-size: var(--t-xl); }

/* ----- Kopf mit Avatar --------------------------------------------------- */
.top {
  padding-top: calc(var(--s4) + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; gap: var(--s3);
}
.avatar {
  width: var(--avatar); height: var(--avatar); border-radius: 50%; flex: none;
  background: var(--dark); color: var(--on-dark); display: grid; place-items: center;
  font-weight: 600; font-size: var(--t-md);
}
.top__name { font-weight: 600; font-size: var(--t-md); line-height: 1.2; }
.top__sub { color: var(--ink-2); font-size: var(--t-xs); }
.top__spacer { flex: 1; }
.circle {
  width: var(--avatar); height: var(--avatar); border-radius: 50%; flex: none;
  background: var(--bg-2); color: var(--ink); display: grid; place-items: center;
  border: 0; cursor: pointer; position: relative; text-decoration: none;
}
.circle--dark { background: var(--dark); color: var(--on-dark); }
.circle__dot { position: absolute; top: 11px; right: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--stop); border: 2px solid var(--bg-2); }

/* Seitenkopf mit Zurück-Kreis (Unterseiten) */
.pagehead { padding-top: calc(var(--s4) + env(safe-area-inset-top, 0px)); display: flex; align-items: center; gap: var(--s3); }
.pagehead .top__spacer { flex: 1; }

/* ----- Werte aus Apple Health, kompakt unter dem Namen --------------- */
.werte {
  display: flex; align-items: center; gap: var(--s4);
  margin-top: var(--s4); padding: var(--s3) var(--s4);
  background: var(--bg-2); border-radius: var(--r-pill);
  color: var(--ink); text-decoration: none; width: fit-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
}
.werte::-webkit-scrollbar { display: none; }
.werte__stueck { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--t-sm); white-space: nowrap; }
.werte__stueck em { font-style: normal; font-weight: 500; color: var(--ink-2); font-size: var(--t-xs); }
.werte svg { color: var(--ink-2); flex: none; }

/* ----- Assistent --------------------------------------------------------- */
.ask {
  display: flex; align-items: center; gap: var(--s2);
  background: var(--bg-2); border-radius: var(--r-pill); padding: 6px 6px 6px var(--s4);
  min-height: 60px;
}
.ask input {
  flex: 1; min-width: 0; border: 0; background: transparent; font: 400 var(--t-md)/1.3 var(--font);
  color: var(--ink); outline: none; padding: var(--s2) 0;
}
.ask input::placeholder { color: var(--ink-3); }
.ask button {
  width: 48px; height: 48px; border-radius: 50%; border: 0; flex: none;
  background: var(--dark); color: var(--on-dark); display: grid; place-items: center; cursor: pointer;
}
.ask button:active { background: var(--dark-2); }
.ask--busy button { opacity: .6; }
.ask .ask__mic { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.ask .ask__mic--an { background: var(--dark); border-color: var(--dark); color: #fff; animation: pulse 1.2s ease-in-out infinite; }
.ask .ask__mic--wartet { background: var(--mint); border-color: var(--mint-2); color: var(--ink); }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(217,242,232,.9); } }
@media (prefers-reduced-motion: reduce) { .ask .ask__mic--an { animation: none; } }
.ask__hint { margin: var(--s2) var(--s4) 0; font-size: var(--t-xs); color: var(--ink-2); }
.ask__hint--fehler { color: var(--stop); font-weight: 500; }

.chips { display: flex; gap: var(--s2); overflow-x: auto; padding: var(--s3) 0 var(--s1); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: var(--h-chip); padding: 0 var(--s4); border-radius: var(--r-pill);
  background: var(--bg-2); color: var(--ink); border: 0; font: 500 var(--t-xs)/1 var(--font);
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap;
}
.chip--dark { background: var(--dark); color: var(--on-dark); }

/* Persoenliche Tipps: ganzer Satz, darunter was passiert */
.tipps { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s3); }
.tipp {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  width: 100%; text-align: left; border: 0; cursor: pointer;
  background: var(--mint); border-radius: var(--r-m); padding: var(--s4);
  font: inherit; color: var(--ink);
}
.tipp:active { transform: translateY(1px); }
.tipp__satz { font-size: var(--t-sm); line-height: 1.45; }
.tipp__tun { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: var(--t-xs); }
.tipp:nth-child(2) { background: var(--bg-2); }
.chip[aria-current="true"] { background: var(--dark); color: var(--on-dark); }

.reply {
  background: var(--dark); color: var(--on-dark); border-radius: var(--r-m);
  padding: var(--s4) var(--s5); display: flex; gap: var(--s3); align-items: flex-start;
}
.reply svg { flex: none; margin-top: 2px; color: var(--mint); }
.reply__text { font-size: var(--t-sm); }
.reply__meta { color: var(--on-dark-2); font-size: var(--t-xs); margin-top: var(--s1); }
.fortschritt { height: 6px; border-radius: var(--r-pill); background: rgba(255,255,255,.14); overflow: hidden; margin-top: var(--s3); }
.fortschritt i { display: block; height: 100%; width: 0; background: var(--mint); border-radius: var(--r-pill); transition: width .5s ease; }
.reply__list { margin: var(--s2) 0 0; padding-left: var(--s4); color: var(--on-dark-2); font-size: var(--t-xs); }
.reply a { color: var(--mint); font-weight: 600; }
.reply--warten { animation: atmen 1.8s ease-in-out infinite; }
.reply--warten .reply__text { color: #fff; font-weight: 500; }
@keyframes atmen { 50% { box-shadow: 0 0 0 6px rgba(38,38,38,.07); } }
@media (prefers-reduced-motion: reduce) { .reply--warten { animation: none; } }
.reply__punkte { display: inline-flex; gap: 5px; flex: none; margin-top: 7px; }
.reply__punkte i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: denk 1.1s ease-in-out infinite; }
.reply__punkte i:nth-child(2) { animation-delay: .18s; }
.reply__punkte i:nth-child(3) { animation-delay: .36s; }
@keyframes denk { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .reply__punkte i { animation: none; opacity: .7; } }

/* Feld waehrend der Arbeit */
.ask--busy { opacity: 1; }
.ask--busy input::placeholder { color: var(--ink); font-weight: 500; }
.ask--busy input { color: var(--ink-3); }
.chip:disabled { opacity: .45; }

/* ----- Karten ------------------------------------------------------------ */
.card { background: var(--bg-2); border-radius: var(--r-m); padding: var(--s4) var(--s4); }
.card + .card { margin-top: var(--s3); }
.card--flat { background: var(--bg-2); }
.card--mint { background: var(--mint); }
.card--dark { background: var(--dark); color: var(--on-dark); }
.card--dark .muted, .card--dark .row__sub, .card--dark .row__side { color: var(--on-dark-2); }
.card--dark .row { border-color: rgba(255,255,255,.12); }
.card--warn { background: var(--warn-soft); }
.card--accent { background: var(--mint); }

.hero { border-radius: var(--r-l); padding: var(--s5); position: relative; overflow: hidden; }
.hero .headline { font-size: 28px; }
.hero__text { color: var(--ink-2); font-size: var(--t-xs); margin-top: var(--s2); max-width: 70%; }
.card--dark .hero__text { color: var(--on-dark-2); }
.hero__figure {
  position: absolute; right: -8px; bottom: -8px; width: 132px; height: 132px; border-radius: 50%;
  background: rgba(255,255,255,.55); display: grid; place-items: center; color: var(--ink);
}
.card--dark .hero__figure { background: rgba(255,255,255,.08); color: var(--on-dark); }
.hero__big { font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.hero__unit { font-size: var(--t-xs); font-weight: 500; color: var(--ink-2); }
.card--dark .hero__unit { color: var(--on-dark-2); }

.section { margin-top: var(--s6); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--s3); gap: var(--s3); }
.section__note { color: var(--ink-2); font-size: var(--t-xs); }

/* Wochenkarten nebeneinander */
.scroller { display: flex; gap: var(--s3); overflow-x: auto; padding: var(--s1) 0 var(--s3); scrollbar-width: none; margin: 0 calc(-1 * var(--s5)); padding-left: var(--s5); padding-right: var(--s5); }
.scroller::-webkit-scrollbar { display: none; }
.daycard {
  flex: 0 0 210px; border-radius: var(--r-l); padding: var(--s4) var(--s4) var(--s4);
  min-height: 190px; display: flex; flex-direction: column; text-align: left; border: 0;
  font: inherit; color: inherit; cursor: pointer; background: var(--mint);
}
.daycard--dark { background: var(--dark); color: var(--on-dark); }
.daycard--today { outline: 3px solid var(--yellow); outline-offset: 2px; }
.daycard--free { background: var(--bg-2); }
.daycard__wd { font-size: var(--t-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.daycard--dark .daycard__wd { color: var(--on-dark-2); }
.daycard__name { font-size: 19px; line-height: 1.2; margin-top: var(--s2); font-weight: 400; }
.daycard__name b { font-weight: 700; }
.daycard__meta { margin-top: auto; padding-top: var(--s3); font-size: var(--t-xs); color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; }
.daycard--dark .daycard__meta { color: var(--on-dark-2); }

/* ----- Kennzahlen -------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.stat__value { font-size: var(--t-lg); font-weight: 700; letter-spacing: -.02em; }
.stat__label { font-size: var(--t-xs); color: var(--ink-2); margin-top: 2px; }
.card--dark .stat__label { color: var(--on-dark-2); }
.bar { height: 6px; border-radius: var(--r-pill); background: rgba(0,0,0,.08); overflow: hidden; margin-top: var(--s3); }
.card--dark .bar { background: rgba(255,255,255,.14); }
.bar__fill { height: 100%; background: var(--dark); border-radius: var(--r-pill); }
.card--dark .bar__fill { background: var(--mint); }
.bar__fill--over { background: var(--stop); }

/* ----- Knöpfe (Pillen) --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5); border-radius: var(--r-pill); border: 0;
  background: var(--bg-3); color: var(--ink); font: 600 var(--t-sm)/1 var(--font);
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--dark); color: var(--on-dark); }
.btn--light { background: var(--bg); color: var(--ink); }
.card--dark .btn--primary { background: var(--bg); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); padding: 0 var(--s2); }
.btn--danger { background: var(--stop-soft); color: var(--stop); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; font-size: var(--t-xs); padding: 0 var(--s4); }
.btn-row { display: flex; gap: var(--s2); flex-wrap: wrap; }
.btn-row > .btn, .btn-row > form { flex: 1 1 140px; }

/* ----- Zeilen ------------------------------------------------------------ */
.row {
  display: flex; align-items: center; gap: var(--s3); width: 100%; padding: var(--s3) 0; text-align: left;
  background: none; border: 0; border-bottom: 1px solid rgba(0,0,0,.06); color: inherit; font: inherit; cursor: pointer;
}
.row:last-child { border-bottom: 0; }
.row__main { flex: 1; min-width: 0; }
.row__title { font-weight: 500; overflow-wrap: anywhere; }
.row__sub { color: var(--ink-2); font-size: var(--t-xs); margin-top: 2px; }
.row__side { color: var(--ink-2); font-size: var(--t-xs); white-space: nowrap; text-align: right; }
.row--static { cursor: default; }
.row--done .row__title { color: var(--ink-3); text-decoration: line-through; }

.day { display: flex; gap: var(--s3); align-items: stretch; }
.day__date { width: 52px; flex: none; text-align: center; display: flex; flex-direction: column; justify-content: center; border-radius: var(--r-s); background: var(--bg); padding: var(--s2) 0; }
.day__wd { font-size: 11px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.day__num { font-weight: 700; font-size: var(--t-sm); }
.day--today .day__date { background: var(--dark); color: #fff; }
.day--today .day__wd { color: var(--on-dark-2); }

/* Kleiner Zustandspunkt, ruhig statt bunt */
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--bg-3); }
.dot--fertig { background: var(--ok); }
.dot--laeuft { background: var(--yellow); animation: pulse-dot 1.2s ease-in-out infinite; }
.dot--getrennt, .dot--fehler { background: var(--stop); }
.dot--leer { background: var(--ink-3); }
@keyframes pulse-dot { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dot--laeuft { animation: none; } }

/* Snack-Kombination als Karte zum Antippen */
.snack {
  display: flex; flex-direction: column; gap: var(--s2); width: 100%;
  text-align: left; border: 0; cursor: pointer; font: inherit; color: inherit;
  background: var(--bg-2); border-radius: var(--r-m); padding: var(--s4);
}
.snack:active { transform: translateY(1px); }
.snack__kopf { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.snack__name { font-weight: 600; font-size: var(--t-md); }
.snack__werte { font-size: var(--t-xs); color: var(--ink-2); white-space: nowrap; }
.snack__zutaten { font-size: var(--t-xs); color: var(--ink-2); }
.snack__fuss { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s1); }
.snack__plus { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px;
               border-radius: 50%; background: var(--dark); color: #fff; flex: none; }
.snack .tag { background: var(--bg); }

/* Tauschvorschlag: alt durchgestrichen, neu darunter */
.tausch {
  display: flex; align-items: center; gap: var(--s3);
  background: var(--bg-2); border-radius: var(--r-m); padding: var(--s4); cursor: pointer;
}
.tausch input { width: 22px; height: 22px; accent-color: var(--dark); flex: none; }
.tausch__inhalt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tausch__zutat { font-weight: 600; font-size: var(--t-sm); }
.tausch__alt { font-size: var(--t-xs); color: var(--ink-3); text-decoration: line-through; }
.tausch__neu { font-size: var(--t-xs); color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.tausch__spar { text-align: right; flex: none; }
.tausch__spar b { display: block; font-size: var(--t-sm); }
.tausch__spar em { font-style: normal; font-size: 11px; color: var(--ok); font-weight: 600; }

/* ----- Marken ------------------------------------------------------------ */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: 600; white-space: nowrap; background: var(--bg); color: var(--ink-2); }
.tag--warn { background: var(--warn-soft); color: var(--warn); }
.tag--ok { background: var(--ok-soft); color: var(--ok); }
.tag--stop { background: var(--stop-soft); color: var(--stop); }

/* ----- Prüfhinweis, deutlich --------------------------------------------- */
.notice { display: flex; gap: var(--s3); align-items: flex-start; border-radius: var(--r-m); padding: var(--s4); background: var(--warn-soft); }
.notice__title { font-weight: 600; font-size: var(--t-md); }
.notice__text { color: #5e4a12; margin-top: var(--s1); font-size: var(--t-sm); }
.notice--stop { background: var(--stop-soft); }
.notice--stop .notice__text { color: #7d2c21; }
.notice svg { flex: none; color: var(--warn); margin-top: 2px; }
.notice--stop svg { color: var(--stop); }

/* ----- Formulare --------------------------------------------------------- */
label { display: block; font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); margin-bottom: var(--s1); }
input[type="text"], input[type="number"], input[type="password"], input[type="date"], select, textarea {
  width: 100%; min-height: var(--h-control); padding: 0 var(--s4); border: 0; border-radius: var(--r-s);
  background: var(--bg-2); color: var(--ink); font: 400 var(--t-md)/1.4 var(--font);
}
textarea { padding: var(--s3) var(--s4); min-height: 84px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .row:focus-visible, .daycard:focus-visible, .chip:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; }
.field + .field { margin-top: var(--s3); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: var(--s2); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 var(--s2); border-radius: var(--r-pill); background: var(--bg-2); font-size: var(--t-xs); font-weight: 600; text-align: center; cursor: pointer; }
.choice input:checked + span { background: var(--dark); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--dark); outline-offset: 2px; }
.switch { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.switch:last-of-type { border-bottom: 0; }
.switch input { width: 22px; height: 22px; accent-color: var(--dark); flex: none; }
.switch label { margin: 0; font-size: var(--t-sm); color: var(--ink); font-weight: 500; }

/* ----- Overlay ----------------------------------------------------------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(22,22,22,.5); display: flex; align-items: flex-end; justify-content: center; }
.overlay[hidden] { display: none !important; }
.sheet { width: 100%; max-width: 640px; max-height: 92vh; background: var(--bg); border-radius: var(--r-l) var(--r-l) 0 0; display: flex; flex-direction: column; animation: rise .18s ease-out; }
@keyframes rise { from { transform: translateY(18px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.sheet__head { display: flex; align-items: center; gap: var(--s3); padding: var(--s4) var(--s5); position: sticky; top: 0; background: var(--bg); border-radius: var(--r-l) var(--r-l) 0 0; }
.sheet__head h2 { flex: 1; font-size: var(--t-lg); }
.sheet__body { overflow-y: auto; padding: 0 var(--s5) calc(var(--s6) + env(safe-area-inset-bottom, 0px)); -webkit-overflow-scrolling: touch; }
.icon-btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bg-2); color: var(--ink); cursor: pointer; }

/* ----- Navigation: helle Pille, aktiver Punkt dunkel ---------------------
   Hell, damit sie sich von den dunklen Karten abhebt. Darunter ein weicher
   Verlauf ins Weiß, damit Inhalt nicht durch die Pille scheint. */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: center;
       padding: var(--s6) var(--s5) calc(var(--s4) + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1;
               background: linear-gradient(to top, rgba(255,255,255,.98) 45%, rgba(255,255,255,0)); }
.nav__in { pointer-events: auto; display: flex; gap: var(--s1); background: rgba(255,255,255,.96);
           -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
           border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px;
           box-shadow: 0 10px 30px rgba(22,22,22,.14); }
.nav a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.nav a[aria-current="page"] { background: var(--dark); color: var(--on-dark); }
.nav a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ----- Sichtbares Arbeiten ---------------------------------------------- */
.ladebalken { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 90; background: var(--bg-3); overflow: hidden; }
.ladebalken i { display: block; height: 100%; width: 45%; border-radius: var(--r-pill);
                background: linear-gradient(90deg, var(--mint), var(--dark));
                animation: laufen 1.05s ease-in-out infinite; }
@keyframes laufen { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }

.spinner { width: 15px; height: 15px; flex: none; border-radius: 50%;
           border: 2px solid currentColor; border-top-color: transparent;
           animation: dreht .7s linear infinite; }
@keyframes dreht { to { transform: rotate(360deg); } }
.btn--arbeitet { opacity: .9; cursor: progress; }
.gesperrt { pointer-events: none; opacity: .5; transition: opacity .2s ease; }
@media (prefers-reduced-motion: reduce) {
  .ladebalken i { animation-duration: 2.4s; }
  .spinner { animation-duration: 1.6s; }
}

/* Eingeklappte Liste: was man selten braucht, bleibt zu */
.klapp summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  list-style: none; cursor: pointer; padding: var(--s4); background: var(--bg-2);
  border-radius: var(--r-m); font-weight: 600; font-size: var(--t-sm);
}
.klapp summary::-webkit-details-marker { display: none; }
.klapp[open] summary { border-radius: var(--r-m) var(--r-m) 0 0; }
.klapp summary svg { transition: transform .2s ease; color: var(--ink-2); }
.klapp[open] summary svg { transform: rotate(90deg); }

/* ----- Meldungen --------------------------------------------------------- */
.flash { padding-top: var(--s3); }
.flash__item { border-radius: var(--r-m); padding: var(--s3) var(--s4); font-weight: 500; background: var(--mint); color: var(--ink); }
.flash__item--error { background: var(--stop-soft); color: #7d2c21; }

.verblasst { opacity: 0; transform: translateY(-6px); transition: opacity .4s ease, transform .4s ease; }
@media (prefers-reduced-motion: reduce) { .verblasst { transition: none; } }

.empty { text-align: center; color: var(--ink-2); padding: var(--s6) var(--s4); }
.empty h2 { margin-bottom: var(--s2); color: var(--ink); }
.list-reset { list-style: none; margin: 0; padding: 0; }
.muted { color: var(--ink-2); }
.strong { font-weight: 600; }
.mt2 { margin-top: var(--s2); } .mt3 { margin-top: var(--s3); } .mt4 { margin-top: var(--s4); } .mt5 { margin-top: var(--s5); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
