@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-display-latin.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Markenfarben. Im dunklen Modus traegt Navy den Grund und Creme den Akzent,
     im hellen Modus tauschen die beiden ihre Rollen. */
  --grund-tief: #0e2334;
  --grund:      #16324a;
  --flaeche:    #1a3a54;
  --flaeche-2:  #1d3f5c;
  --rand:       #27506f;
  --rand-stark: #35648a;
  --rand-leise: rgb(39 80 111 / 0.5);

  --akzent:        #efe3b8;
  --akzent-hell:   #f7f1d9;
  --akzent-tief:   #d9c98f;
  --akzent-schwach: rgb(239 227 184 / 0.12);
  --auf-akzent:    #0e2334;

  --text:           #e6edf3;
  --text-gedaempft: #a3b8cc;
  --text-leise:     #91a9bf;
  --ueberschrift:   #f7f1d9;

  --kopf-grund: rgb(22 50 74 / 0.92);
  --schatten: 0 18px 48px rgb(6 18 28 / 0.45);

  --feld-grund: #0e2334;

  --gefahr-text: #f0a8a0;
  --gefahr-rand: #7d4139;
  --gefahr-flaeche: rgb(125 65 57 / 0.22);
  --warnung-text: #e8c07d;
  --warnung-flaeche: rgb(191 140 60 / 0.2);

  /* Ein Radius-System: Flaechen 12px, Chips als Pille. */
  --radius: 12px;
  --radius-gross: 18px;
  --radius-pille: 999px;

  --spur: 1px solid var(--rand);

  --breite: 1360px;
  --uebergang: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  --serif: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
  --sans: 'Geist', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
}

/* Heller Modus: warmer Sandton statt Navy, Navy wird zum Akzent. */
:root[data-theme='hell'] {
  color-scheme: light;

  --grund-tief: #e6d9be;
  --grund:      #f3ead6;
  --flaeche:    #ece0c8;
  --flaeche-2:  #e6d8bc;
  --rand:       #d3c2a0;
  --rand-stark: #8a7148;
  --rand-leise: rgb(185 163 123 / 0.45);

  --akzent:        #16324a;
  --akzent-hell:   #102639;
  --akzent-tief:   #3d6485;
  --akzent-schwach: rgb(22 50 74 / 0.09);
  --auf-akzent:    #f7f1d9;

  --text:           #2b2519;
  --text-gedaempft: #5c5140;
  --text-leise:     #635541;
  --ueberschrift:   #16324a;

  --kopf-grund: rgb(243 234 214 / 0.92);
  --schatten: 0 18px 48px rgb(90 70 40 / 0.18);

  --feld-grund: #fbf7ed;

  --gefahr-text: #8c2f22;
  --gefahr-rand: #c98a7d;
  --gefahr-flaeche: rgb(140 47 34 / 0.1);
  --warnung-text: #7a5312;
  --warnung-flaeche: rgb(122 83 18 / 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--grund);
  transition: background-color var(--uebergang), color var(--uebergang);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: balance;
  color: var(--ueberschrift);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

p { margin: 0 0 1rem; max-width: 68ch; text-wrap: pretty; }

a { color: var(--akzent); text-decoration-color: color-mix(in srgb, var(--akzent) 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--akzent); }

img { max-width: 100%; height: auto; display: block; }

/* Platzhalter, solange noch kein Foto hinterlegt ist */
.platzhalter { width: 100%; height: 100%; }
.platzhalter svg { width: 100%; height: 100%; display: block; object-fit: cover; }

:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--akzent); color: var(--auf-akzent);
  padding: 0.7rem 1.2rem; border-radius: var(--radius); font-weight: 600;
  transition: top var(--uebergang);
}
.skip-link:focus { top: 1rem; }

.huelle {
  width: min(100% - 2.5rem, var(--breite));
  margin-inline: auto;
}

/* ---------- Kopfzeile ---------- */

.kopf {
  position: sticky; top: 0; z-index: 40;
  background: var(--kopf-grund);
  backdrop-filter: blur(12px);
  border-bottom: var(--spur);
}

.kopf__inhalt {
  display: flex; align-items: center;
  gap: 1.5rem; height: 72px;
}

.marke {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  color: var(--akzent-hell); text-decoration: none; white-space: nowrap;
}
.marke:hover { color: var(--akzent); }

.nav { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }

.nav a {
  color: var(--text-gedaempft); text-decoration: none;
  font-size: 0.94rem; font-weight: 500; white-space: nowrap;
  transition: color var(--uebergang);
}
.nav a:hover, .nav a[aria-current='page'] { color: var(--akzent); }

.nav-schalter {
  display: none; background: none; border: var(--spur); color: var(--text);
  border-radius: var(--radius); padding: 0.5rem 0.75rem; cursor: pointer;
  font: inherit; touch-action: manipulation;
}

@media (max-width: 860px) {
  .nav-schalter { display: block; }
  .nav {
    position: absolute; inset-inline: 0; top: 72px; margin-left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--flaeche); border-bottom: var(--spur);
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--rand-leise); }
}

/* ---------- Held ---------- */

.held {
  display: grid;
  grid-template-columns: 1.05fr 1fr 120px;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem);
}

.held__bild {
  position: relative;
  border-radius: var(--radius-gross);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--flaeche-2);
  box-shadow: var(--schatten);
}
.held__bild img { width: 100%; height: 100%; object-fit: cover; }

.held__text { max-width: 34rem; }

.held h1 { margin-bottom: 1.25rem; }

.held__vorspann {
  color: var(--text-gedaempft);
  font-size: 1.08rem;
  margin-bottom: 2rem;
}

.rail { display: grid; gap: 0.75rem; align-content: center; }

.rail a {
  display: block; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1; background: var(--flaeche-2);
  transition: transform var(--uebergang), opacity var(--uebergang);
  opacity: 0.78;
}
.rail a:hover { transform: translateY(-3px); opacity: 1; }
.rail img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1100px) {
  .held { grid-template-columns: 1fr 1fr; }
  .rail { display: none; }
}

@media (max-width: 760px) {
  .held { grid-template-columns: 1fr; gap: 2rem; padding-block: 2rem 3rem; }
  .held__bild { aspect-ratio: 3 / 2; }
}

/* ---------- Schaltflaechen ---------- */

.knopf {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--akzent); color: var(--auf-akzent);
  border: 1px solid var(--akzent); border-radius: var(--radius);
  padding: 0.85rem 1.6rem; font: inherit; font-weight: 600; font-size: 0.98rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  touch-action: manipulation;
  transition: transform var(--uebergang), background-color var(--uebergang);
}
.knopf:hover { background: var(--akzent-hell); }
.knopf:active { transform: translateY(1px); }

.knopf--rand {
  background: transparent; color: var(--akzent);
  border-color: var(--rand-stark);
}
.knopf--rand:hover { background: var(--akzent-schwach); border-color: var(--akzent); }

/* ---------- Abschnitte ---------- */

.abschnitt { padding-block: clamp(3rem, 6vw, 5.5rem); }
.abschnitt--linie { border-top: var(--spur); }

.abschnitt__kopf { margin-bottom: 2.5rem; }

.marke-klein {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--text-leise); font-weight: 600; margin-bottom: 0.75rem;
  display: block;
}

/* ---------- Kategorie-Kacheln: eine grosse, zwei kleine ---------- */

.kategorien {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: repeat(2, minmax(170px, 1fr));
  gap: 1rem;
}
.kategorien > :first-child { grid-row: span 2; }

.kachel {
  position: relative; display: flex; align-items: flex-end;
  border-radius: var(--radius-gross); overflow: hidden;
  background: var(--flaeche-2); color: var(--text);
  text-decoration: none; min-height: 170px;
  transition: transform var(--uebergang);
}
.kachel:hover { transform: translateY(-4px); }
.kachel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.kachel__inhalt {
  position: relative; padding: 1.5rem;
  background: linear-gradient(to top, color-mix(in srgb, var(--grund-tief) 92%, transparent), transparent);
  width: 100%;
}
.kachel h3 { margin-bottom: 0.15rem; }
.kachel span { color: var(--text-gedaempft); font-size: 0.9rem; }

@media (max-width: 760px) {
  .kategorien { grid-template-columns: 1fr; grid-template-rows: none; }
  .kategorien > :first-child { grid-row: auto; }
}

/* ---------- Rezeptraster ---------- */

.raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.75rem 1.5rem;
}

.rezept-karte {
  display: flex; flex-direction: column;
  color: inherit; text-decoration: none;
  transition: transform var(--uebergang);
}
.rezept-karte:hover { transform: translateY(-4px); }

.rezept-karte__bild {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--flaeche-2); margin-bottom: 0.9rem;
}
.rezept-karte__bild img { width: 100%; height: 100%; object-fit: cover; }

.rezept-karte h3 {
  font-size: 1.2rem; margin-bottom: 0.4rem;
  transition: color var(--uebergang);
}
.rezept-karte:hover h3 { color: var(--akzent); }

.karte-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.85rem;
  color: var(--text-leise); font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- Naehrwert-Chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }

.chip {
  display: inline-flex; align-items: baseline; gap: 0.35rem;
  background: var(--flaeche-2); border: 1px solid var(--rand);
  border-radius: var(--radius-pille); padding: 0.35rem 0.85rem;
  font-size: 0.85rem; color: var(--text-gedaempft);
  font-variant-numeric: tabular-nums;
}
.chip b { color: var(--akzent); font-weight: 600; }
.chip--stark { background: var(--akzent-schwach); border-color: var(--akzent-tief); }

/* ---------- Rezeptdetail ---------- */

.rezept-kopf {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem;
  align-items: center; padding-block: clamp(2rem, 4vw, 3.5rem);
}
.rezept-kopf__bild {
  border-radius: var(--radius-gross); overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--flaeche-2); box-shadow: var(--schatten);
}
.rezept-kopf__bild img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .rezept-kopf { grid-template-columns: 1fr; gap: 1.75rem; }
}

.rezept-spalten {
  display: grid; grid-template-columns: minmax(240px, 0.72fr) 1.28fr;
  gap: 3.5rem; align-items: start;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: var(--spur);
}

@media (max-width: 860px) {
  .rezept-spalten { grid-template-columns: 1fr; gap: 2.25rem; }
}

.zutaten { list-style: none; padding: 0; margin: 0; }
.zutaten li {
  display: flex; gap: 0.75rem; align-items: baseline;
  padding: 0.6rem 0;
}
.zutaten li + li { border-top: 1px solid var(--rand-leise); }
.zutaten li::before {
  content: ''; flex: none; width: 5px; height: 5px; margin-top: 0.55rem;
  border-radius: 50%; background: var(--akzent-tief);
}

.schritte { list-style: none; counter-reset: schritt; padding: 0; margin: 0; }
.schritte li {
  counter-increment: schritt; position: relative;
  padding-left: 3.25rem; padding-bottom: 1.6rem;
}
.schritte li::before {
  content: counter(schritt); position: absolute; left: 0; top: -0.1rem;
  width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--rand-stark);
  font-family: var(--serif); font-size: 1.05rem; color: var(--akzent);
  font-variant-numeric: tabular-nums;
}
.schritte li:not(:last-child)::after {
  content: ''; position: absolute; left: 1.125rem; top: 2.4rem; bottom: 0.35rem;
  width: 1px; background: var(--rand-leise);
}
.schritte p { margin: 0; }

/* Umschalter Portion / Gesamt */
.umschalter {
  display: inline-flex; background: var(--flaeche-2);
  border: 1px solid var(--rand); border-radius: var(--radius-pille);
  padding: 3px; gap: 2px;
}
.umschalter button {
  border: 0; background: none; color: var(--text-gedaempft);
  font: inherit; font-size: 0.85rem; font-weight: 500;
  padding: 0.4rem 1rem; border-radius: var(--radius-pille);
  cursor: pointer; touch-action: manipulation;
  transition: background-color var(--uebergang), color var(--uebergang);
}
.umschalter button[aria-pressed='true'] { background: var(--akzent); color: var(--auf-akzent); }

.hinweis {
  border-left: 2px solid var(--akzent-tief);
  padding: 0.15rem 0 0.15rem 1rem;
  color: var(--text-leise); font-size: 0.88rem;
  margin-top: 2rem;
}

.entwurf-band {
  background: var(--akzent-schwach);
  border: 1px solid var(--akzent-tief);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem; margin-bottom: 1.5rem;
  color: var(--akzent-hell); font-size: 0.9rem;
}

/* ---------- Fusszeile ---------- */

.fuss {
  border-top: var(--spur); background: var(--grund-tief);
  padding-block: 3rem 2rem; margin-top: 4rem;
}
.fuss__raster {
  display: grid; grid-template-columns: 1.4fr repeat(2, minmax(140px, 1fr));
  gap: 2.5rem; margin-bottom: 2.5rem;
}
.fuss h4 {
  font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--text-leise); margin-bottom: 1rem;
}
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.fuss a { color: var(--text-gedaempft); text-decoration: none; font-size: 0.92rem; }
.fuss a:hover { color: var(--akzent); }
.fuss__unten {
  border-top: 1px solid var(--rand-leise); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  color: var(--text-leise); font-size: 0.85rem;
}

@media (max-width: 760px) {
  .fuss__raster { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Leerer Zustand ---------- */

.leer {
  border: 1px dashed var(--rand-stark); border-radius: var(--radius-gross);
  padding: 3rem 2rem; text-align: center; color: var(--text-gedaempft);
}
.leer p { margin-inline: auto; }

/* ---------- Filterleiste ---------- */

.filter { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.filter a {
  border: 1px solid var(--rand); border-radius: var(--radius-pille);
  padding: 0.45rem 1.1rem; font-size: 0.9rem; text-decoration: none;
  color: var(--text-gedaempft);
  transition: border-color var(--uebergang), color var(--uebergang);
}
.filter a:hover { border-color: var(--akzent-tief); color: var(--akzent); }
.filter a[aria-current='page'] { background: var(--akzent); border-color: var(--akzent); color: var(--auf-akzent); font-weight: 600; }

/* ---------- Beitragsteaser ---------- */

.beitraege { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.beitrag { display: flex; flex-direction: column; gap: 0.75rem; text-decoration: none; color: inherit; }
.beitrag__bild { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--flaeche-2); }
.beitrag__bild img { width: 100%; height: 100%; object-fit: cover; }
.beitrag h3 { font-size: 1.3rem; margin: 0; transition: color var(--uebergang); }
.beitrag:hover h3 { color: var(--akzent); }

/* ---------- Fliesstext aus dem Backend ---------- */

.fliesstext { max-width: 68ch; }
.fliesstext h2 { margin-top: 2.5rem; }
.fliesstext h3 { margin-top: 2rem; }
.fliesstext ul, .fliesstext ol { padding-left: 1.25rem; }
.fliesstext li { margin-bottom: 0.5rem; }
.fliesstext img { border-radius: var(--radius); margin-block: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Formulare: Kontakt und Verwaltung ---------- */

.formular { max-width: 52rem; }

.feld { display: grid; gap: 0.4rem; margin-bottom: 1.5rem; }
.feld label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.feld small { color: var(--text-leise); font-size: 0.82rem; line-height: 1.5; }

.feld input[type='text'], .feld input[type='email'], .feld input[type='password'],
.feld input[type='number'], .feld input[type='file'], .feld select, .feld textarea {
  width: 100%;
  background: var(--feld-grund);
  color: var(--text);
  border: 1px solid var(--rand-stark);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  font: inherit; font-size: 0.96rem;
}
.feld textarea { resize: vertical; line-height: 1.6; font-size: 0.94rem; }
.feld select { appearance: none; background-image: none; }
.feld input::placeholder, .feld textarea::placeholder { color: var(--text-leise); }

.feld input:hover, .feld select:hover, .feld textarea:hover { border-color: var(--rand); }
.feld input:focus-visible, .feld select:focus-visible, .feld textarea:focus-visible {
  outline: 2px solid var(--akzent); outline-offset: 1px; border-color: var(--akzent);
}

.feld-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; }
.feld-reihe .feld { margin-bottom: 0; }

.feldgruppe {
  border: var(--spur); border-radius: var(--radius-gross);
  padding: 1.5rem; margin-bottom: 1.75rem;
}
.rechner-formular .feldgruppe { padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; }
.rechner-formular .formular__fuss { padding-top: 1.25rem; margin-top: 1.5rem; }
.feldgruppe legend {
  padding-inline: 0.6rem; font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-leise);
}

.haken { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; font-size: 0.92rem; margin-top: 0.75rem; }
.haken input { width: 1.1rem; height: 1.1rem; accent-color: var(--akzent); }

.feld-fehler {
  background: var(--gefahr-flaeche); border: 1px solid var(--gefahr-rand);
  border-radius: var(--radius); padding: 0.75rem 1rem;
  color: var(--gefahr-text); font-size: 0.9rem; margin-bottom: 1.25rem;
}

.formular__fuss {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  border-top: var(--spur); padding-top: 1.75rem; margin-top: 2.5rem;
}

/* ---------- Werkzeuge im Kopf: Design-Umschalter und Menue ---------- */

.kopf__werkzeuge { display: flex; align-items: center; gap: 0.6rem; margin-left: 1.5rem; }

.design-schalter {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: transparent; color: var(--text-gedaempft);
  border: var(--spur); border-radius: var(--radius-pille);
  padding: 0.42rem 0.95rem; font: inherit; font-size: 0.86rem; font-weight: 500;
  cursor: pointer; white-space: nowrap; touch-action: manipulation;
  transition: color var(--uebergang), border-color var(--uebergang), background-color var(--uebergang);
}
.design-schalter:hover { color: var(--akzent); border-color: var(--akzent-tief); }

.design-schalter::before {
  content: ''; width: 0.78rem; height: 0.78rem; border-radius: 50%;
  border: 1.5px solid currentColor;
  /* Halbmond im dunklen, volle Scheibe im hellen Modus */
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
:root[data-theme='hell'] .design-schalter::before { background: currentColor; }

@media (max-width: 460px) {
  .design-schalter__text { display: none; }
  .design-schalter { padding: 0.42rem 0.6rem; }
}

/* ---------- Bewegtbild im Heldenbereich ---------- */

.held__video { width: 100%; height: 100%; object-fit: cover; display: block; }

.held__steuerung {
  position: absolute; right: 0.85rem; bottom: 0.85rem; z-index: 2;
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  border-radius: 50%; cursor: pointer; touch-action: manipulation;
  background: rgb(14 35 52 / 0.55); color: #f7f1d9;
  border: 1px solid rgb(247 241 217 / 0.35);
  backdrop-filter: blur(6px);
  transition: background-color var(--uebergang), transform var(--uebergang);
}
.held__steuerung:hover { background: rgb(14 35 52 / 0.78); }
.held__steuerung:active { transform: scale(0.94); }

/* Pausenbalken, solange das Video laeuft */
.held__steuerung-symbol {
  width: 0.7rem; height: 0.8rem;
  border-left: 3px solid currentColor; border-right: 3px solid currentColor;
}
/* Dreieck, sobald es steht */
.held__steuerung[data-laeuft='false'] .held__steuerung-symbol {
  width: 0; height: 0; border: 0;
  border-left: 0.68rem solid currentColor;
  border-top: 0.42rem solid transparent;
  border-bottom: 0.42rem solid transparent;
  margin-left: 0.18rem;
}

/* ---------- Brotkrumen ---------- */

.brotkrumen { padding-top: 1.5rem; }
.brotkrumen ol {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem;
  list-style: none; padding: 0; margin: 0;
  font-size: 0.86rem; color: var(--text-leise);
}
.brotkrumen li { display: flex; align-items: center; gap: 0.75rem; }
.brotkrumen li + li::before { content: '›'; color: var(--rand-stark); }
.brotkrumen a { color: var(--text-gedaempft); text-decoration: none; }
.brotkrumen a:hover { color: var(--akzent); text-decoration: underline; }
.brotkrumen [aria-current='page'] { color: var(--text-leise); }

.stand {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rand-leise);
  color: var(--text-leise); font-size: 0.84rem;
}

/* ---------- Bedarfsrechner ---------- */

/* Der Rechner arbeitet mit engeren Abstaenden als der Rest der Seite:
   hier steht viel untereinander, das sonst zu langem Scrollen fuehrt. */
.rechner-kopf { padding-block: clamp(2rem, 4vw, 3rem) 1.25rem; }
.rechner-kopf--schmal { padding-block: clamp(1.5rem, 3vw, 2.25rem) 0; }
.rechner-kopf--schmal h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.rechner-vorspann {
  color: var(--text-gedaempft); font-size: 1.05rem;
  line-height: 1.65; max-width: 56ch; margin-top: 1rem;
}

#ergebnis .abschnitt,
.rechner-fuss .abschnitt { padding-block: clamp(2rem, 3.5vw, 2.75rem); }
#ergebnis .abschnitt__kopf { margin-bottom: 1.5rem; }

.rechner-formular { max-width: none; }

/* Auswahl als Kacheln. Der Radioknopf bleibt sichtbar, damit die Auswahl
   auch ohne :has()-Unterstuetzung erkennbar ist. */
.wahl__hinweis {
  color: var(--text-leise); font-size: 0.86rem;
  max-width: 62ch; margin: 0 0 1.25rem;
}
.wahl__raster {
  display: grid; gap: 0.75rem;
  /* auto-fill statt auto-fit: zwei Kacheln sollen nicht ueber die ganze
     Zeile gezogen werden, nur weil es nur zwei sind. */
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.wahl__kachel {
  display: grid; gap: 0.3rem;
  grid-template-columns: auto 1fr;
  grid-template-areas: 'knopf titel' '. text';
  align-items: start;
  background: var(--feld-grund);
  border: 1px solid var(--rand-stark);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  transition: border-color var(--uebergang), background var(--uebergang);
}
.wahl__kachel:hover { border-color: var(--akzent-tief); }
.wahl__kachel input {
  grid-area: knopf;
  width: 1rem; height: 1rem; margin: 0.15rem 0.6rem 0 0;
  accent-color: var(--akzent);
}
.wahl__titel { grid-area: titel; font-weight: 600; font-size: 0.95rem; color: var(--text); }
.wahl__text { grid-area: text; color: var(--text-leise); font-size: 0.84rem; line-height: 1.5; }

.wahl__kachel:has(input:checked) {
  border-color: var(--akzent);
  background: var(--akzent-schwach);
}
/* Auf der getoenten Flaeche der gewaehlten Kachel traegt der leise Ton nicht mehr. */
.wahl__kachel:has(input:checked) .wahl__text { color: var(--text-gedaempft); }
.wahl__kachel:has(input:focus-visible) {
  outline: 2px solid var(--akzent); outline-offset: 2px;
}

.feld__mit-einheit { display: flex; align-items: center; gap: 0.6rem; }
.feld__mit-einheit input { flex: 1 1 auto; min-width: 0; }
.feld__mit-einheit span { color: var(--text-leise); font-size: 0.9rem; flex: 0 0 auto; }

/* ---------- Ergebnisse ---------- */

.kennzahlen {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.kennzahlen--eng { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.kennzahl {
  background: var(--flaeche);
  border: var(--spur); border-radius: var(--radius-gross);
  padding: 1.1rem 1.2rem;
}
.kennzahl--stark { border-color: var(--akzent-tief); background: var(--akzent-schwach); }
.kennzahl__titel {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--text-leise); margin: 0 0 0.5rem;
}
.kennzahl__wert {
  font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1; color: var(--ueberschrift); margin: 0;
}
.kennzahl__wert span {
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500;
  color: var(--text-gedaempft); margin-left: 0.35rem;
}
.kennzahl__text {
  color: var(--text-gedaempft); font-size: 0.84rem;
  line-height: 1.45; margin: 0.55rem 0 0;
}

.warnband {
  background: var(--warnung-flaeche);
  border: 1px solid var(--akzent-tief);
  border-radius: var(--radius);
  padding: 1rem 1.25rem; margin-bottom: 2rem;
  color: var(--warnung-text); font-size: 0.92rem; line-height: 1.6;
}

.hinweis--gross { font-size: 0.92rem; line-height: 1.7; max-width: 78ch; margin-top: 0; }

/* ---------- Tagesvorschlag ---------- */

.tag-summe { margin-bottom: 2.5rem; }
.tag-summe__abgleich {
  color: var(--text-gedaempft); font-size: 0.92rem;
  line-height: 1.65; max-width: 68ch; margin: 1.25rem 0 0;
}

.mahlzeiten { display: grid; gap: 1rem; margin-top: 2rem; }

.mahlzeit {
  display: grid; gap: 1.25rem 1.5rem;
  grid-template-columns: 232px minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: 'bild kopf zutaten';
  align-items: start;
  background: var(--flaeche);
  border: var(--spur); border-radius: var(--radius-gross);
  padding: 1.25rem;
}
.mahlzeit__kopf { grid-area: kopf; }
.mahlzeit__zutaten { grid-area: zutaten; }

.mahlzeit__bild {
  grid-area: bild;
  display: block; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 4 / 3;
  background: var(--flaeche-2);
}
.mahlzeit__bild img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--uebergang);
}
.mahlzeit:hover .mahlzeit__bild img { transform: scale(1.03); }
.mahlzeit__kopf h3 { margin: 0.3rem 0 0.9rem; font-size: 1.3rem; }
.mahlzeit__kopf h3 a { color: var(--ueberschrift); text-decoration: none; }
.mahlzeit__kopf h3 a:hover { color: var(--akzent); }
.mahlzeit__zutaten h4 {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--text-leise);
  margin: 0 0 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
}
.mahlzeit__faktor {
  text-transform: none; letter-spacing: 0; font-weight: 500;
  border: 1px solid var(--rand-stark); color: var(--text-gedaempft);
  border-radius: var(--radius-pille); padding: 0.15rem 0.6rem; font-size: 0.72rem;
}
.mahlzeit .zutaten li { font-size: 0.9rem; padding-block: 0.45rem; }

/* ---------- Einkaufsliste ---------- */

.einkauf { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.einkauf__posten {
  display: grid; gap: 0.2rem 1.25rem;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  grid-template-areas: 'menge name' '. fuer';
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
}
.einkauf__posten + .einkauf__posten { margin-top: 0.2rem; }
.einkauf__posten--mehrfach {
  background: var(--akzent-schwach);
  border-color: var(--rand);
}
.einkauf__menge {
  grid-area: menge; font-weight: 600; color: var(--ueberschrift);
  font-size: 0.95rem; text-align: right;
}
.einkauf__name { grid-area: name; font-size: 0.95rem; color: var(--text); }
.einkauf__name small { display: block; color: var(--text-leise); font-size: 0.82rem; margin-top: 0.15rem; }
.einkauf__fuer { grid-area: fuer; color: var(--text-leise); font-size: 0.82rem; line-height: 1.5; }
/* Auf der getoenten Flaeche der mehrfach genutzten Posten reicht der leise Ton nicht. */
.einkauf__posten--mehrfach .einkauf__fuer,
.kennzahl--stark .kennzahl__titel { color: var(--text-gedaempft); }
.einkauf__fuer b { color: var(--text-gedaempft); font-weight: 600; }

.tag-wechsel {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  border-top: var(--spur); padding-top: 1.75rem; margin-top: 2.5rem;
}
.tag-wechsel span { color: var(--text-leise); font-size: 0.88rem; }

/* ---------- Erklaerungen ---------- */

.erklaerung {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.erklaerung article {
  border-top: 2px solid var(--rand-stark);
  padding-top: 1.1rem;
}
.erklaerung h3 { font-size: 1.05rem; margin: 0 0 0.6rem; }
.erklaerung p { color: var(--text-gedaempft); font-size: 0.9rem; line-height: 1.7; margin: 0; }

@media (max-width: 1080px) {
  .mahlzeit {
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-areas: 'bild kopf' 'bild zutaten';
  }
}

@media (max-width: 760px) {
  .mahlzeit {
    grid-template-columns: 1fr; gap: 1rem;
    grid-template-areas: 'bild' 'kopf' 'zutaten';
  }
  .mahlzeit__bild { max-height: 200px; }
  .einkauf__posten {
    grid-template-columns: 1fr;
    grid-template-areas: 'menge' 'name' 'fuer';
    gap: 0.15rem;
  }
  .einkauf__menge { text-align: left; font-size: 0.88rem; color: var(--text-gedaempft); }
}

/* ---------- Wasserabschnitt mit Bild ---------- */

.wasser {
  display: grid; gap: 1.5rem;
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: start;
}
.wasser__bild {
  margin: 0; overflow: hidden;
  border-radius: var(--radius-gross); aspect-ratio: 4 / 3;
  background: var(--flaeche-2); border: var(--spur);
}
.wasser__bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wasser__text {
  color: var(--text-gedaempft); font-size: 0.92rem;
  line-height: 1.6; max-width: 64ch; margin: 1.25rem 0 0;
}

@media (max-width: 860px) {
  .wasser { grid-template-columns: 1fr; }
  .wasser__bild { max-height: 220px; }
}

/* ---------- Ausklappbare Bloecke ---------- */

.ausklapp > summary {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem 1rem;
  cursor: pointer; list-style: none;
  padding: 0.35rem 0; border-radius: var(--radius);
}
.ausklapp > summary::-webkit-details-marker { display: none; }
.ausklapp > summary::after {
  content: ''; margin-left: auto; align-self: center;
  width: 0.55rem; height: 0.55rem;
  border-right: 2px solid var(--text-leise); border-bottom: 2px solid var(--text-leise);
  transform: rotate(45deg); transition: transform var(--uebergang);
}
.ausklapp[open] > summary::after { transform: rotate(-135deg); }
.ausklapp > summary:hover::after { border-color: var(--akzent); }
.ausklapp > summary:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }
.ausklapp > summary h2 { margin: 0; font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
.ausklapp__wink { color: var(--text-leise); font-size: 0.88rem; }
.ausklapp[open] > summary { margin-bottom: 1.75rem; }
