/* ============================================================
   VITAGNES – Mein Plan · Eukalyptus & Creme
   ============================================================ */
:root {
  --sage: #cfd9cf;
  --sage-soft: #e0e7df;
  --cream: #f7f6f1;
  --olive: #46645a;
  --olive-deep: #35504a;
  --herb: #5a786d;
  --ink: #28302b;
  --muted: #6e756e;
  --line: #e2e6df;
  --himbeer: #e0567e;   /* Akzent: lebendiges Himbeer-Pink */
  --rose-soft: #fce7ef;
  --radius: 16px;
  --shadow: 0 2px 12px rgba(40, 48, 43, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  padding-bottom: 84px; /* Platz für Tab-Leiste */
}

h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--olive-deep); font-weight: 600; }

button { font-family: 'Poppins', sans-serif; cursor: pointer; }

/* ---------- Header ---------- */
.app-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 14px 20px 10px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--olive-deep);
  display: block;
}
.brand-slogan {
  font-family: 'Pinyon Script', cursive;
  font-size: 1.05rem;
  color: var(--himbeer);
  display: block;
  margin-top: -2px;
}

/* ---------- Main ---------- */
.app-main { max-width: 560px; margin: 0 auto; padding: 20px 16px 40px; }

.screen-title { font-size: 1.5rem; margin-bottom: 4px; }
.screen-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }

/* ---------- Tab-Leiste ---------- */
.tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-around;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  z-index: 30;
}
.tab {
  background: none; border: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  padding: 6px 14px;
  border-radius: 12px;
  min-width: 64px;
}
.tab-icon { font-size: 1.3rem; }
.tab.active { color: var(--olive-deep); background: var(--sage-soft); font-weight: 500; }
.tabbar.hidden { display: none; }

/* ---------- Karten ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 14px;
}

/* ---------- Onboarding ---------- */
.ob-progress {
  height: 6px; background: var(--sage-soft);
  border-radius: 3px; margin-bottom: 26px; overflow: hidden;
}
.ob-progress-fill { height: 100%; background: var(--olive); border-radius: 3px; transition: width 0.3s; }

.ob-question { font-size: 1.45rem; margin-bottom: 6px; }
.ob-hint { color: var(--muted); font-size: 0.88rem; margin-bottom: 22px; }

.choice-list { display: flex; flex-direction: column; gap: 10px; }
.choice {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 1rem;
  text-align: left;
  color: var(--ink);
  display: flex; align-items: center; gap: 12px;
  transition: border-color 0.15s, background 0.15s;
}
.choice:active { background: var(--sage-soft); }
.choice.selected { border-color: var(--olive); background: var(--sage-soft); font-weight: 500; }
.choice-emoji { font-size: 1.3rem; }

.field-group { margin-bottom: 16px; }
.field-group label { display: block; font-size: 0.85rem; color: var(--herb); font-weight: 500; margin-bottom: 6px; }
.field-group input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.field-group input:focus { outline: none; border-color: var(--olive); }

.btn-row { display: flex; gap: 10px; margin-top: 26px; }
.btn {
  border: none;
  border-radius: 999px;
  padding: 15px 28px;
  font-size: 1rem;
  font-weight: 500;
}
.btn-primary { background: var(--olive); color: #fff; flex: 1; }
.btn-primary:active { background: var(--olive-deep); }
.btn-primary:disabled { background: var(--sage); color: #fff; cursor: default; }
.btn-ghost { background: none; color: var(--herb); border: 2px solid var(--line); }
.btn-small {
  border: 1.5px solid var(--line); background: #fff; color: var(--herb);
  border-radius: 999px; padding: 7px 14px; font-size: 0.8rem; font-weight: 500;
}
.btn-small:active { background: var(--sage-soft); }

/* ---------- Ergebnis-Screen ---------- */
.result-hero {
  text-align: center;
  padding: 26px 18px;
  background: linear-gradient(160deg, var(--sage-soft), #fff);
}
.result-kcal { font-family: 'Playfair Display', serif; font-size: 2.6rem; color: var(--olive-deep); font-weight: 700; }
.result-label { color: var(--muted); font-size: 0.85rem; }
.result-protein { font-size: 1.05rem; color: var(--herb); font-weight: 500; margin-top: 6px; }
.gold-stars { color: var(--himbeer); font-size: 1.2rem; letter-spacing: 4px; }

.bmi-scale { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin: 14px 0 4px; }
.bmi-seg { flex: 1; }
.bmi-seg.s1 { background: #a8c6e0; }
.bmi-seg.s2 { background: #9fbf9f; }
.bmi-seg.s3 { background: #e0cf9f; }
.bmi-seg.s4 { background: #dfae9c; }
.bmi-marker-row { position: relative; height: 18px; }
.bmi-marker { position: absolute; top: 0; transform: translateX(-50%); font-size: 0.85rem; }
.bmi-caption { display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--muted); }

.disclaimer {
  font-size: 0.75rem; color: var(--muted);
  background: var(--sage-soft);
  border-radius: 12px; padding: 12px 14px; margin-top: 16px; line-height: 1.5;
}

/* ---------- Plan ---------- */
.day-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 14px; -webkit-overflow-scrolling: touch; }
.day-tab {
  border: 1.5px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 12px; padding: 8px 0; min-width: 62px; flex: 0 0 auto;
  text-align: center; font-size: 0.75rem;
}
.day-tab .d-name { display: block; font-weight: 600; font-size: 0.8rem; }
.day-tab.active { background: var(--olive); border-color: var(--olive); color: #fff; }
.day-tab.done { border-color: var(--himbeer); }
.day-tab.done .d-check { color: var(--himbeer); }

.meal-card { display: flex; gap: 12px; align-items: flex-start; }
.meal-emoji { font-size: 1.7rem; line-height: 1; margin-top: 2px; }
.meal-info { flex: 1; }
.meal-type { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--herb); font-weight: 600; }
.meal-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--ink); margin: 2px 0 6px; cursor: pointer; }
.meal-macros { font-size: 0.75rem; color: var(--muted); }
.day-total { text-align: center; color: var(--herb); font-size: 0.85rem; margin: 6px 0 14px; }

.badge {
  display: inline-block; font-size: 0.68rem; font-weight: 500;
  background: var(--sage-soft); color: var(--olive-deep);
  border-radius: 999px; padding: 3px 10px; margin: 2px 4px 2px 0;
}
.badge.gold { background: var(--rose-soft); color: #c23a68; }

.done-btn {
  width: 100%; margin-top: 4px;
  background: #fff; border: 2px solid var(--line); color: var(--muted);
  border-radius: var(--radius); padding: 13px; font-size: 0.95rem; font-weight: 500;
}
.done-btn.done { background: var(--sage-soft); border-color: var(--himbeer); color: var(--olive-deep); }

/* ---------- Rezepte ---------- */
.filter-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
.filter-chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 7px 14px; font-size: 0.8rem; flex: 0 0 auto;
}
.filter-chip.active { background: var(--olive); border-color: var(--olive); color: #fff; }

.recipe-row { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.recipe-thumb {
  width: 52px; height: 52px; border-radius: 12px; flex: 0 0 auto;
  background: var(--sage-soft); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.recipe-row-title { font-family: 'Playfair Display', serif; font-size: 1rem; }
.recipe-row-meta { font-size: 0.75rem; color: var(--muted); }

/* Rezept-Detail */
.detail-header { margin-bottom: 12px; }
.detail-title { font-size: 1.5rem; margin-bottom: 8px; }
.ingredient { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.ingredient:last-child { border-bottom: none; }
.ingredient input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--olive); flex: 0 0 auto; }
.ingredient.checked span { text-decoration: line-through; color: var(--muted); }
.step { display: flex; gap: 12px; margin-bottom: 14px; font-size: 0.95rem; line-height: 1.55; }
.step-num {
  flex: 0 0 26px; height: 26px; border-radius: 50%;
  background: var(--olive); color: #fff; font-size: 0.85rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.blog-link { color: var(--herb); font-size: 0.85rem; }

/* Kochmodus */
.cookmode { text-align: center; padding: 30px 10px; }
.cookmode-step { font-size: 1.35rem; line-height: 1.6; margin: 26px 0; min-height: 130px; }
.cookmode-count { color: var(--muted); font-size: 0.9rem; }

/* ---------- Einkauf ---------- */
.shop-cat { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--olive-deep); margin: 18px 0 6px; }
.shop-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.shop-item input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--olive); flex: 0 0 auto; }
.shop-item.checked .shop-name { text-decoration: line-through; color: var(--muted); }
.shop-item .have-btn { margin-left: auto; }
.shop-item.have .shop-name { color: var(--muted); font-style: italic; }
.shop-qty { color: var(--herb); font-weight: 500; white-space: nowrap; }

/* ---------- Fortschritt ---------- */
.streak-hero { text-align: center; padding: 20px; }
.streak-num { font-family: 'Playfair Display', serif; font-size: 2.4rem; color: var(--olive-deep); font-weight: 700; }
.weight-form { display: flex; gap: 10px; align-items: center; }
.weight-form input { flex: 1; padding: 13px 14px; font-size: 1.05rem; border: 2px solid var(--line); border-radius: 12px; font-family: 'Poppins', sans-serif; }
.weight-form input:focus { outline: none; border-color: var(--olive); }
.chart-wrap { width: 100%; overflow: hidden; }
.weight-list-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.weight-list-item:last-child { border-bottom: none; }
.weight-delete { background: none; border: none; color: var(--muted); font-size: 0.9rem; }

/* ---------- Upsell ---------- */
.upsell {
  background: linear-gradient(140deg, var(--olive), var(--olive-deep));
  color: #fff; border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
}
.upsell h3 { color: #fff; font-size: 1.1rem; margin-bottom: 4px; }
.upsell p { font-size: 0.85rem; opacity: 0.9; margin-bottom: 10px; }
.upsell a { color: var(--himbeer); font-weight: 500; font-size: 0.9rem; text-decoration: none; }

/* ---------- Leer-Zustände ---------- */
.empty { text-align: center; color: var(--muted); padding: 40px 20px; font-size: 0.95rem; line-height: 1.6; }
.empty .big { font-size: 2.5rem; display: block; margin-bottom: 10px; }

/* ---------- Druck ---------- */
@media print {
  .app-header, .tabbar, .btn, .btn-small, .have-btn, .no-print { display: none !important; }
  body { background: #fff; padding: 0; }
  .card { box-shadow: none; border: none; padding: 6px 0; }
  .shop-item { border-bottom: 1px solid #ddd; }
}

@media (min-width: 700px) {
  .app-main { max-width: 640px; }
}

/* ---------- Rezept-Bilder ---------- */
.recipe-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.thumb-emoji { line-height: 1; }
.meal-thumb {
  width: 52px; height: 52px; border-radius: 12px; flex: 0 0 auto;
  background: var(--sage-soft); overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
}
.meal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-hero {
  height: 190px; border-radius: 16px; overflow: hidden; margin: 12px 0 6px;
  background: linear-gradient(160deg, var(--sage-soft), #fff);
  display: flex; align-items: center; justify-content: center;
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-emoji { font-size: 4rem; }

/* ============================================================
   Briefing V2 · Testwoche, Premium, Prognose, Fasten, Mein Tag
   ============================================================ */

/* Status-Chip im Header */
.app-header { position: sticky; }
.status-chip {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  border: 1.5px solid var(--line); background: #fff; color: var(--herb);
  border-radius: 999px; padding: 6px 12px; font-size: 0.72rem; font-weight: 500;
  white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis;
}
.status-chip.ist-premium { background: var(--olive); border-color: var(--olive); color: #fff; }
.status-chip.ist-test { border-color: var(--sage); background: var(--sage-soft); color: var(--olive-deep); }
.status-chip.ist-frei { border-color: var(--himbeer); color: var(--himbeer); }

/* Testwochen-Banner */
.test-banner {
  background: var(--sage-soft); border: 1px solid var(--sage);
  border-radius: 12px; padding: 11px 14px; font-size: 0.85rem; line-height: 1.5;
  color: var(--olive-deep); margin-bottom: 14px;
}
.test-banner.frei { background: var(--rose-soft); border-color: #f3c3d5; color: #a13458; }
.test-banner.bald { background: #fdf3e3; border-color: #eed9b4; color: #8a6420; }

/* Hinweis auf das kostenlose Konto */
.konto-tipp {
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; font-size: 0.85rem; line-height: 1.55; color: var(--ink);
  margin-bottom: 14px;
}
.konto-tipp b { color: var(--olive-deep); }
.konto-tipp-knoepfe {
  display: flex; align-items: center; gap: 14px; margin-top: 11px; flex-wrap: wrap;
}
.konto-tipp-knoepfe .btn { padding: 8px 16px; font-size: 0.84rem; }
.konto-tipp-knoepfe .test-link { color: var(--muted); font-size: 0.83rem; }

/* Einwilligungs-Häkchen auf der E-Mail-Seite */
.lead-haken {
  display: flex; align-items: flex-start; gap: 9px; margin-top: 12px;
  font-size: 0.85rem; line-height: 1.5; color: var(--ink); cursor: pointer;
}
.ob-anmelden {
  text-align: center; font-size: 0.86rem; color: var(--muted); margin-top: 18px;
}

/* Auswahl der Körpermaße im Fortschritt */
.mass-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 4px; }
.mass-chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 7px 14px; font-size: 0.8rem; font-weight: 500;
}
.mass-chip.active { background: var(--himbeer); border-color: var(--himbeer); color: #fff; }

/* Aufklappbare Nebensachen im Profil */
details.mehr { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
details.mehr > summary {
  cursor: pointer; list-style: none; font-size: 0.85rem; color: var(--herb);
  font-weight: 500; padding: 4px 0; display: flex; align-items: center; gap: 6px;
}
details.mehr > summary::-webkit-details-marker { display: none; }
details.mehr > summary::before { content: '▸'; font-size: 0.9rem; transition: transform 0.15s; }
details.mehr[open] > summary::before { transform: rotate(90deg); }

.lead-haken input { margin-top: 3px; width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--olive); }
.test-link { text-decoration: underline; cursor: pointer; font-weight: 500; }

/* Sanfte Hinweise (Tempo-Reduktion, Verlängerung) */
.hinweis-sanft {
  background: var(--sage-soft); border-left: 4px solid var(--olive);
  font-size: 0.88rem; line-height: 1.6;
}

/* Tempo-Regler */
.tempo-card { text-align: center; padding: 24px 20px; }
.tempo-wert { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; color: var(--olive-deep); }
.tempo-card input[type="range"] {
  width: 100%; margin: 20px 0 6px; accent-color: var(--olive); height: 32px;
}
.tempo-skala { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--muted); padding: 0 2px; }
.tempo-text { font-size: 0.85rem; color: var(--herb); margin-top: 12px; min-height: 1.4em; }

/* Essensfenster */
.fenster-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fenster-grid input[type="time"] {
  width: 100%; padding: 13px 12px; font-size: 1.05rem;
  font-family: 'Poppins', sans-serif; border: 2px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--ink);
}
.fenster-grid input[type="time"]:focus { outline: none; border-color: var(--olive); }
.snack-toggle { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; cursor: pointer; }
.snack-toggle input { width: 22px; height: 22px; accent-color: var(--olive); }

/* Fasten-Hinweis im Plan */
.fasten-hinweis {
  background: #fff; border: 1px dashed var(--sage);
  border-radius: 12px; padding: 9px 13px; font-size: 0.8rem;
  color: var(--herb); margin-bottom: 14px; line-height: 1.5;
}
.meal-zeit { font-weight: 500; color: var(--olive-deep); text-transform: none; letter-spacing: 0; margin-left: 4px; }

/* Ziel-Prognose */
.prognose-card { border-left: 5px solid var(--sage); }
.prognose-satz { font-size: 0.95rem; line-height: 1.6; margin-bottom: 12px; }
.slogan-abschluss {
  font-family: 'Pinyon Script', cursive; font-size: 1.7rem; color: var(--himbeer);
  text-align: center; margin: 22px 0 4px;
}
.chart-legende { display: flex; gap: 16px; justify-content: center; font-size: 0.75rem; color: var(--muted); margin-top: 6px; }
.chart-legende .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }

/* Premium-Screen */
.preis-hero { padding: 26px 18px 20px; }
.preis-zeile { margin: 6px 0 2px; }
.preis-gross { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; color: var(--olive-deep); }
.preis-einheit { font-size: 1rem; color: var(--muted); margin-left: 4px; }
.preis-vergleich { font-size: 0.82rem; color: var(--muted); }
.preis-garantie {
  margin-top: 14px; background: var(--rose-soft); color: #a13458;
  border-radius: 12px; padding: 11px 14px; font-size: 0.84rem; line-height: 1.55;
}
.premium-punkt { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.premium-punkt:last-of-type { border-bottom: none; }

/* Code-Eingabe */
.code-form { display: flex; gap: 8px; flex-wrap: wrap; }
.code-form input {
  flex: 1; min-width: 190px; padding: 13px 14px; font-size: 0.95rem;
  font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.06em;
  border: 2px solid var(--line); border-radius: 12px; text-transform: uppercase;
}
.code-form input:focus { outline: none; border-color: var(--olive); }
.code-form .btn { flex: 0 0 auto; }
.code-meldung { font-size: 0.85rem; margin-top: 10px; line-height: 1.5; min-height: 1.2em; }
.code-meldung.ok { color: var(--olive-deep); }
.code-meldung.fehler { color: #c0392b; }

/* Mein Tag */
.faktor-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.faktor-wert { font-size: 0.78rem; color: var(--herb); font-weight: 500; min-width: 86px; text-align: center; }

/* Archiv */
.archiv-row { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.archiv-pfeil { color: var(--herb); font-size: 1.1rem; }

/* Tab-Leiste: 5 Tabs */
.tab { min-width: 0; padding: 6px 8px; flex: 1; }
.tab-label { white-space: nowrap; }

/* Fixes: Flex-Shrink für Eingabefelder + Header-Layout mit Chip */
.weight-form input { min-width: 0; }
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
.app-header .brand { text-align: left; min-width: 0; }
.status-chip { position: static; transform: none; flex: 0 0 auto; max-width: 44vw; }
.status-chip { max-width: 54vw; }

/* ============================================================
   VITAGNES-Coach · täglicher Moment & Stimmung
   ============================================================ */
.coach-screen {
  min-height: 68vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 30px 10px;
}
.coach-slogan {
  font-family: 'Pinyon Script', cursive; font-size: 1.9rem; color: var(--himbeer);
}
.coach-frage {
  font-size: 1.5rem; margin: 14px 0 26px; max-width: 320px;
}
.coach-moods {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  width: 100%; max-width: 380px;
}
.coach-mood {
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 18px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 500; color: var(--ink);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.coach-mood:active { background: var(--sage-soft); border-color: var(--olive); transform: scale(0.97); }
.coach-mood-emoji { font-size: 2rem; line-height: 1; }
.coach-skip {
  margin-top: 26px; background: none; border: none; color: var(--muted);
  font-size: 0.82rem; text-decoration: underline;
}
.coach-emoji-gross { font-size: 3rem; margin-bottom: 18px; }
.coach-text {
  font-family: 'Playfair Display', serif; font-size: 1.35rem; line-height: 1.5;
  color: var(--olive-deep); max-width: 420px;
}
.coach-kontext {
  margin-top: 18px; background: var(--sage-soft); border-radius: 999px;
  padding: 9px 18px; font-size: 0.85rem; color: var(--olive-deep); font-weight: 500;
}
.mood-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.mood-day { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 0 0 auto; }
.mood-day-emoji { font-size: 1.25rem; }
.mood-day-date { font-size: 0.62rem; color: var(--muted); }

/* ============================================================
   Motion · Kalorien-Ring, Count-up, Stagger, Haken, Reveal
   ============================================================ */

/* Kalorien-Ring */
.ring-card { text-align: center; }
.ring-wrap { position: relative; width: 150px; height: 150px; margin: 4px auto 10px; }
.ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--sage-soft); stroke-width: 10; }
.ring-fill {
  fill: none; stroke: var(--olive); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1s cubic-bezier(.4, 0, .2, 1);
}
.ring-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.ring-kcal { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 700; color: var(--olive-deep); line-height: 1; }
.ring-label { font-size: 0.68rem; color: var(--muted); margin-top: 4px; max-width: 90px; line-height: 1.3; }

/* Makro-Balken */
.makro-zeile { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 0.8rem; }
.makro-zeile .mk-name { flex: 0 0 54px; text-align: left; color: var(--herb); font-weight: 500; }
.makro-zeile .mk-wert { flex: 0 0 auto; min-width: 74px; text-align: right; color: var(--ink); }
.mbar { flex: 1; height: 9px; background: var(--sage-soft); border-radius: 5px; overflow: hidden; }
.mbar-fill {
  height: 100%; width: 0; border-radius: 5px;
  transition: width 0.9s cubic-bezier(.4, 0, .2, 1);
}
.mb-eiweiss { background: var(--olive); }
.mb-kh { background: var(--herb); }
.mb-zucker { background: var(--himbeer); }

/* Gestaffelte Mahlzeiten-Karten */
.stagger { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s cubic-bezier(.4, 0, .2, 1); }
.stagger.stagger-in { opacity: 1; transform: none; }

/* Einkaufslisten-Haken mit Feder-Pop */
.shop-item input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; flex: 0 0 auto; cursor: pointer;
  border: 2px solid var(--herb); border-radius: 6px; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.shop-item input[type="checkbox"]:checked {
  background: var(--olive); border-color: var(--olive);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='M4.5 12.5l5 5L19.5 7'/%3E%3C/svg%3E");
  background-size: 78%; background-position: center; background-repeat: no-repeat;
}
.shop-item input.frisch:checked { animation: check-pop 0.45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes check-pop {
  0% { transform: scale(0.6); }
  55% { transform: scale(1.22); }
  100% { transform: scale(1); }
}
.shop-name { position: relative; }
.shop-item.checked .shop-name { text-decoration: none; }
.shop-item.checked .shop-name::after {
  content: ""; position: absolute; left: 0; top: 52%; height: 1.5px;
  background: var(--muted); width: 100%;
}
.shop-item.frisch.checked .shop-name::after { animation: strike 0.35s ease forwards; }
@keyframes strike { from { width: 0; } to { width: 100%; } }

/* Streak-Stern-Pop */
.star-pop { display: inline-block; animation: star-pop 0.6s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes star-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Sanftes Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* Bewegung reduzieren: alles sofort im Endzustand */
@media (prefers-reduced-motion: reduce) {
  .stagger, .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ring-fill, .mbar-fill { transition: none !important; }
  * { animation: none !important; }
}

/* ============================================================
   Mein Profil
   ============================================================ */
.brand {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.profil-titel { font-size: 1.1rem; margin-bottom: 12px; }
.profil-untertitel {
  font-family: 'Playfair Display', serif; font-size: 0.98rem;
  color: var(--olive-deep); margin: 18px 0 8px; font-weight: 600;
}
.profil-zeile {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem;
}
.profil-zeile:last-of-type { border-bottom: none; }
.profil-zeile span { color: var(--muted); }
.profil-zeile b { color: var(--ink); font-weight: 500; text-align: right; }
.profil-hero { background: linear-gradient(160deg, var(--sage-soft), #fff); }
.profil-info {
  font-size: 0.78rem; color: var(--muted); line-height: 1.55; margin-top: 12px;
}
.bmi-wert {
  font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700;
  color: var(--olive-deep); text-align: center; line-height: 1.1;
}

/* Körpermaße */
.mass-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-bottom: 14px; }
.mass-grid .field-group { margin-bottom: 0; }
.mass-grid input, #p-aktivitaet, #p-ziel, #p-email {
  width: 100%; padding: 13px 14px; font-size: 1.02rem;
  font-family: 'Poppins', sans-serif; border: 2px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--ink);
}
.mass-grid input::placeholder { font-size: 0.72rem; color: var(--muted); }
.mass-grid input:focus, #p-aktivitaet:focus, #p-ziel:focus, #p-email:focus {
  outline: none; border-color: var(--olive);
}
.mass-bewertung {
  border-radius: 12px; padding: 12px 14px; font-size: 0.88rem;
  line-height: 1.5; margin-bottom: 14px; background: var(--sage-soft); color: var(--olive-deep);
}
.mass-bewertung.bw-gut { background: var(--sage-soft); color: var(--olive-deep); }
.mass-bewertung.bw-mittel { background: #fdf4e3; color: #8a6a1f; }
.mass-bewertung.bw-hoch { background: var(--rose-soft); color: #a13458; }
.mass-verlauf { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.mass-diff {
  display: flex; justify-content: space-between; font-size: 0.85rem;
  padding: 6px 0; border-bottom: 1px solid var(--line);
}
.mass-diff span { color: var(--muted); }
.mass-diff b { font-weight: 600; }
.mass-diff b.runter { color: var(--olive); }
.mass-diff b.rauf { color: var(--himbeer); }

@media (max-width: 380px) {
  .mass-grid, .mass-verlauf { grid-template-columns: 1fr; }
}

/* Konto & Abgleich */
.konto-tabs { display: flex; gap: 8px; margin: 4px 0 16px; }
.konto-tab {
  flex: 1; border: 1.5px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 9px 10px; font-size: 0.82rem; font-family: inherit;
}
.konto-tab.active { background: var(--olive); border-color: var(--olive); color: #fff; font-weight: 500; }
.konto-link {
  color: var(--herb); text-decoration: underline; cursor: pointer; font-size: 0.82rem;
}
.konto-link.loeschen { color: var(--himbeer); }
#k-email, #k-pass, #k-alt, #k-neu, #np-pass, #np-pass2 {
  width: 100%; padding: 13px 14px; font-size: 1.02rem;
  font-family: 'Poppins', sans-serif; border: 2px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--ink);
}
#k-email:focus, #k-pass:focus, #k-alt:focus, #k-neu:focus, #np-pass:focus, #np-pass2:focus {
  outline: none; border-color: var(--olive);
}
.sync-status { font-size: 0.8rem; font-weight: 500; }
.sync-status.ist-ok { color: var(--olive); }
.sync-status.ist-laeuft { color: var(--muted); }
.sync-status.ist-fehler { color: var(--himbeer); }
.sync-status.ist-aus { color: var(--muted); }

.datei-feld {
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}
.datei-feld::file-selector-button {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  border: none;
  background: var(--sage-soft);
  color: var(--olive-deep);
  border-radius: 999px;
  padding: 8px 16px;
  margin-right: 12px;
  cursor: pointer;
}

/* ---------- Snack-Vorliebe (herzhaft / süß / Überraschung) ---------- */
.snack-art-hint {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 10px;
}
.snack-art-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.snack-art-chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.snack-art-chip.active {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
  font-weight: 600;
}


/* --- Schnellzugriff auf Ziel und Zielgewicht --- */
.profil-zeile.klickbar { cursor: pointer; border-radius: 8px; margin: 0 -8px; padding-left: 8px; padding-right: 8px; transition: background .15s ease; }
.profil-zeile.klickbar:hover, .profil-zeile.klickbar:active { background: rgba(224, 86, 126, .07); }
.profil-zeile.klickbar b { display: inline-flex; align-items: baseline; gap: 8px; }
.profil-zeile .aendern { font-style: normal; font-weight: 500; font-size: 12px; letter-spacing: .04em; color: #e0567e; border-bottom: 1px solid rgba(224, 86, 126, .45); }
.card.hervorheben { box-shadow: 0 0 0 2px #e0567e, 0 8px 24px rgba(224, 86, 126, .18); transition: box-shadow .3s ease; }
