/* =========================================================================
   Lab „Fundus“ – Web-Trend-Bibliothek (Galerie und Detailseiten).
   Erzeugt von werkzeug/fundus.py; Verhalten in assets/js/fundus.js.
   Die Seite benutzt selbst, was der Fundus empfiehlt: Grotesk + Mono-Label,
   eine Kurve (expo.out) und eine Dauer für sichtbare Bewegung, clip-path
   statt Fades, Glas nur in der Leiste.
   ========================================================================= */

@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-ext-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geist-mono-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geist-mono-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  --grund: #0b0b0c;
  --flaeche: #141518;
  --flaeche-2: #1c1d21;
  --linie: rgba(245, 245, 247, .12);
  --linie-stark: rgba(245, 245, 247, .24);
  --linie-bedien: rgba(245, 245, 247, .42);
  --text: #f5f5f7;
  --leise: rgba(245, 245, 247, .64);
  --dim: rgba(245, 245, 247, .5);
  --eis: #34a7b9;
  --eis-hell: #6fd0de;
  --nein: #e2826b;

  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --serif: 'Instrument Serif', Georgia, serif;

  /* Bewegungssprache: eine Kurve, eine Dauer (Messung: 6 von 23 Award-Seiten) */
  --kurve-seite: cubic-bezier(0.16, 1, 0.3, 1);
  --dauer-seite: .9s;
  --ui: 150ms cubic-bezier(0.4, 0, 0.2, 1);

  --rand: clamp(16px, 4vw, 56px);
  --leiste-h: 52px;
  --r: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { background: var(--grund); color: var(--text); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--leiste-h) + 80px); }
body { font: 400 16px/1.55 var(--sans); min-height: 100svh; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img, svg, iframe { display: block; max-width: 100%; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--eis); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--eis); color: var(--grund); }

.mono { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3; }
.klein { font-size: 13px; color: var(--dim); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--text); color: var(--grund); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.sprung:focus { top: 12px; }

/* ---------- Seitenwechsel (gleiche Herkunft, ab Chrome 126 / Safari 18.2) ---------- */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .7s; animation-timing-function: var(--kurve-seite); }
::view-transition-old(root) { animation: .35s var(--kurve-seite) both ft-raus; }
::view-transition-new(root) { animation: .7s var(--kurve-seite) both ft-rein; }
@keyframes ft-raus { to { opacity: 0; } }
@keyframes ft-rein { from { opacity: 0; translate: 0 24px; } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ---------- Leiste ---------- */
.leiste {
  position: fixed; inset: 0 0 auto; z-index: 20; height: var(--leiste-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 var(--rand);
  background: rgba(11, 11, 12, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--linie);
  view-transition-name: leiste;
}
.leiste a { text-decoration: none; }
.leiste__lab { justify-self: start; font-size: 14px; color: var(--leise); transition: color var(--ui); }
.leiste__lab:hover { color: var(--text); }

/* ---------- Intro ---------- */
.intro { padding: calc(var(--leiste-h) + clamp(28px, 6vw, 72px)) var(--rand) clamp(20px, 3vw, 40px); }
.intro__wort {
  font-weight: 600; letter-spacing: -.055em; line-height: .8;
  font-size: var(--wort, 26.5vw); margin: .06em 0 .1em -.04em; white-space: nowrap;
}
.intro__maske { display: block; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.intro__maske > span { display: inline-block; }
.js:not(.reduziert) .intro__maske > span { animation: ft-hoch 1.3s var(--kurve-seite) .1s both; }
@keyframes ft-hoch { from { translate: 0 105%; } }
.intro__text { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.25; letter-spacing: -.012em; max-width: 44ch; text-wrap: pretty; margin-top: clamp(8px, 1.2vw, 18px); }
.js:not(.reduziert) .intro__text { animation: ft-blende 1s var(--kurve-seite) .15s both; }
.intro__text em { font-family: var(--serif); font-style: italic; font-size: 1.12em; letter-spacing: -.01em; color: var(--eis-hell); }
@keyframes ft-blende { from { opacity: 0; translate: 0 18px; } }

/* ---------- Filter ---------- */
.filter {
  position: sticky; top: var(--leiste-h); z-index: 10;
  padding: 12px var(--rand) 10px; background: rgba(11, 11, 12, .97);
  border-bottom: 1px solid var(--linie);
}
.filter__zeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.suche { flex: 1 1 auto; max-width: 420px; }
.suche input {
  width: 100%; height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--linie-bedien); background: var(--flaeche); color: var(--text);
  font: 400 16px var(--sans); transition: border-color var(--ui);
}
.suche input::placeholder { color: var(--dim); }
.suche input:focus { outline: none; border-color: var(--eis); }
.suche input:focus-visible { outline: 2px solid var(--eis); outline-offset: 2px; }
.filter__chip, .filter__auf {
  flex: 0 0 auto; height: 38px; padding: 0 14px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--linie-bedien); font-size: 14px; display: inline-flex; align-items: center; gap: 8px;
  transition: background var(--ui), color var(--ui), border-color var(--ui);
}
.filter__chip:hover, .filter__auf:hover { border-color: var(--linie-stark); }
.filter__chip[aria-pressed='true'] { background: var(--text); color: var(--grund); border-color: var(--text); }
.filter__auf { font-weight: 500; }
.filter__auf[aria-expanded='true'] { background: var(--flaeche-2); }
.filter__aktiv:not(:empty) { background: var(--eis); color: var(--grund); border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px; font: 600 11px/20px var(--mono); text-align: center; }
.filter__tafel { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 28px; padding: 16px 0 8px; }
.filter__tafel[hidden] { display: none; }
.filter__gruppe { border: 0; padding: 0; min-width: 0; }
.filter__gruppe legend { color: var(--leise); font-size: 14px; margin-bottom: 10px; padding: 0; }
.filter__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter__chip { height: 32px; font-size: 13px; padding: 0 12px; }
.filter__stand { color: var(--leise); font-size: 15px; margin-top: 10px; display: flex; gap: 14px; align-items: center; }
.filter__ende { grid-column: 1 / -1; }
.filter__zeigen { height: 40px; padding: 0 18px; border-radius: 999px; background: var(--text); color: var(--grund); font-weight: 600; font-size: 15px; }
.kapitel { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 10px calc(var(--rand) * -1) 0; padding: 0 var(--rand); mask-image: linear-gradient(90deg, transparent, #000 var(--rand), #000 calc(100% - 40px), transparent); }
.kapitel::-webkit-scrollbar { display: none; }
.kapitel a { flex: none; font-size: 15px; padding: 6px 12px; border-radius: 999px; color: var(--leise); white-space: nowrap; text-decoration: none; transition: color var(--ui), background var(--ui); }
.kapitel a:hover { color: var(--text); }
.kapitel a[aria-current] { background: var(--text); color: var(--grund); }
.kapitel a[hidden] { display: none; }
.filter__stand[hidden] { display: none; }
.filter__stand [data-anzahl] { color: var(--text); }
.filter__weg, .leer button { color: var(--eis-hell); text-decoration: underline; text-underline-offset: 3px; font: inherit; letter-spacing: inherit; text-transform: inherit; }

/* ---------- Galerie ---------- */
.muster { padding: 0 var(--rand) 80px; }
.abschnitt { padding-top: clamp(40px, 6vw, 72px); }
.abschnitt[hidden] { display: none; }
.abschnitt__titel { font-size: clamp(26px, 3.2vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1; padding-bottom: 18px; border-bottom: 1px solid var(--linie); margin-bottom: 24px; scroll-margin-top: calc(var(--leiste-h) + 80px); }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 36px 22px; }
.karte { min-width: 0; }
.karte[hidden] { display: none; }
.karte__link { display: block; text-decoration: none; }
.karte__name { display: block; padding-top: 14px; font-size: 19px; font-weight: 600; letter-spacing: -.012em; line-height: 1.2; text-wrap: balance; transition: color var(--ui); }
.karte__link:hover .karte__name, .karte__link:focus-visible .karte__name { color: var(--eis-hell); }

.chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--linie); font: 500 11px/1 var(--mono); letter-spacing: .02em; color: var(--leise); white-space: nowrap; }

/* Vorschau: Kurven-Tafel, darüber (falls vorhanden) die Live-Demo */
.vorschau { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: clip; background: var(--flaeche); border: 1px solid var(--linie); isolation: isolate; transition: border-color var(--ui); }
.karte__link:hover .vorschau { border-color: var(--linie-stark); }
.vorschau__rahmen { position: absolute; inset: 0; z-index: 2; }
.vorschau__rahmen iframe { position: absolute; left: 0; top: 0; width: 960px; height: 720px; border: 0; max-width: none; transform-origin: 0 0; scale: var(--s, .3); pointer-events: none; opacity: 0; transition: opacity .6s var(--kurve-seite); background: #0e0e10; }
.vorschau--live.geladen iframe { opacity: 1; }

.tafel { position: absolute; inset: 0; background:
  linear-gradient(var(--linie) 1px, transparent 1px) 0 0 / 100% 25%,
  linear-gradient(90deg, var(--linie) 1px, transparent 1px) 0 0 / 25% 100%;
  background-position: -1px -1px; opacity: .9; }
.tafel__kurve, .kurvenbild__kurve { position: absolute; inset: 16% 14% 24%; display: block; }
.tafel__kurve svg, .kurvenbild__kurve svg { width: 100%; height: 100%; overflow: visible; }
.tafel__kurve__achse, .kurvenbild__kurve__achse { stroke: var(--linie-stark); stroke-dasharray: 3 4; fill: none; stroke-width: 1; }
.tafel__kurve__linie, .kurvenbild__kurve__linie { stroke: var(--eis); fill: none; stroke-width: 2; stroke-linecap: round; }
.tafel--leer { display: grid; place-items: center; }

/* Der Punkt fährt die Kurve ab: außen linear (Zeit), innen mit der Kurve (Weg) */
.bahn { position: absolute; left: 0; right: 0; container-type: size; pointer-events: none; }
.bahn__x { position: absolute; left: 0; bottom: 0; width: 0; height: 0; }
.bahn__punkt { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px rgba(52, 167, 185, .35); }
.tafel .bahn__x { transition: translate 0s linear; }
.tafel .bahn__punkt { transition: translate 0s; }
.karte__link:hover .tafel .bahn__x, .karte__link:focus-visible .tafel .bahn__x, .tafel.spielt .bahn__x { translate: 100cqw 0; transition: translate var(--dauer) linear; }
.karte__link:hover .tafel .bahn__punkt, .karte__link:focus-visible .tafel .bahn__punkt, .tafel.spielt .bahn__punkt { translate: 0 -100cqh; transition: translate var(--dauer) var(--kurve); }

/* ---------- Detailseite ---------- */
.detail { padding: calc(var(--leiste-h) + clamp(28px, 5vw, 64px)) var(--rand) 40px; max-width: 1480px; margin: 0 auto; }
.detail__kopf { display: grid; gap: 14px; margin-bottom: clamp(24px, 4vw, 40px); }
.detail__titel { font-size: clamp(34px, 4.4vw, 68px); font-weight: 600; letter-spacing: -.04em; line-height: .96; max-width: 16ch; text-wrap: balance; hyphens: auto; }
.detail__kurz { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.4; color: var(--leise); max-width: 68ch; text-wrap: pretty; }
.js:not(.reduziert) .detail__kopf > * { animation: ft-blende .9s var(--kurve-seite) both; }
.js:not(.reduziert) .detail__kopf > :nth-child(2) { animation-delay: .05s; }

.buehne { margin-bottom: clamp(40px, 6vw, 80px); }
.buehne__flaeche { position: relative; aspect-ratio: 16 / 10; max-height: calc(100svh - var(--leiste-h) - 96px); width: 100%; margin-inline: auto; border-radius: 18px; overflow: clip; background: #0e0e10; border: 1px solid var(--linie); transition: width .6s var(--kurve-seite); }
.buehne__flaeche iframe { width: 100%; height: 100%; border: 0; }
.buehne.telefon .buehne__flaeche { width: min(390px, 100%); aspect-ratio: 390 / 760; max-height: none; }
.buehne--offen .buehne__flaeche .vorschau { position: absolute; inset: 0; aspect-ratio: auto; border: 0; border-radius: 0; }
.buehne--offen .tafel__kurve { inset: 18% 22% 26%; }
.buehne__werkzeug { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.buehne__wann { margin: -2px 0 14px; font-size: 16px; line-height: 1.45; color: var(--leise); max-width: 70ch; }
.buehne__werkzeug > * { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linie-bedien); display: inline-flex; align-items: center; justify-content: center; min-width: 34px; text-decoration: none; font-size: 14px; color: var(--leise); transition: color var(--ui), background var(--ui), border-color var(--ui); }
.buehne__werkzeug > .buehne__varianten { justify-content: flex-start; padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.buehne__varianten::-webkit-scrollbar { display: none; }
.buehne__varianten button { flex: none; white-space: nowrap; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 14px; color: var(--leise); transition: color var(--ui), background var(--ui); }
.buehne__varianten button:hover { color: var(--text); }
.buehne__varianten button[aria-pressed='true'] { background: var(--text); color: var(--grund); }
.buehne__werkzeug > *:hover { color: var(--text); border-color: var(--linie-stark); }
.buehne__werkzeug [aria-pressed='true'] { background: var(--text); color: var(--grund); border-color: var(--text); }
.buehne__werkzeug a { margin-left: auto; }
.buehne__werkzeug [data-aktion] { padding: 0; font-size: 16px; }
.buehne__hinweis { margin-top: 12px; color: var(--dim); }

.detail__spalten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.block { border-top: 1px solid var(--linie); padding: 22px 0 30px; }
.block__titel { font-size: 20px; font-weight: 600; letter-spacing: -.012em; color: var(--text); margin-bottom: 10px; }
.block p strong { font-weight: 600; color: var(--text); }
.block code { font-family: var(--mono); font-size: .84em; hyphens: none; overflow-wrap: anywhere; padding: .08em .35em; border-radius: 5px; background: var(--flaeche); color: #d9dde2; }
.block--umsetzung p { hyphens: manual; }
.block--start { border-top: 0; padding-top: 0; }
.block p, .block li { font-size: 17px; line-height: 1.62; max-width: 66ch; text-wrap: pretty; hyphens: auto; }
.block p + p, .block p + ol, .block ol + p { margin-top: .8em; }
.detail__seite .block p, .detail__seite .block li { font-size: 15px; }
.schritte { counter-reset: s; display: grid; gap: 12px; }
.schritte li { counter-increment: s; position: relative; padding-left: 44px; }
.schritte li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: .25em; font: 500 12px var(--mono); color: var(--eis-hell); letter-spacing: .08em; }
.varianten { display: grid; gap: 8px; }
.varianten li { padding-left: 20px; position: relative; }
.varianten li::before { content: ''; position: absolute; left: 0; top: .78em; width: 8px; height: 1px; background: var(--eis); }
.paar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.block--ja .block__titel::before, .block--nein .block__titel::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--eis); }
.block--nein .block__titel::before { background: var(--nein); }


.kurvenbild { position: relative; aspect-ratio: 1.5; border-radius: 12px; background: var(--flaeche); border: 1px solid var(--linie); margin-bottom: 14px; }
.kurvenbild__kurve { inset: 14% 10% 28%; }
.kurvenbild figcaption { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; justify-content: space-between; gap: 8px; color: var(--leise); font-size: 13px; letter-spacing: .02em; text-transform: none; }
.kurvenbild .bahn__x { animation: ft-x calc(var(--dauer) / .62) linear infinite; }
.kurvenbild .bahn__punkt { animation: ft-y calc(var(--dauer) / .62) var(--kurve) infinite; }
@keyframes ft-x { 0% { translate: 0 0; } 62%, 100% { translate: 100cqw 0; } }
@keyframes ft-y { 0% { translate: 0 0; } 62%, 100% { translate: 0 -100cqh; } }
.reduziert .kurvenbild .bahn__x, .reduziert .kurvenbild .bahn__punkt { animation: none; }

.links { display: grid; gap: 8px; }
.links a { font-weight: 600; text-decoration: none; text-underline-offset: 3px; }
.links a:hover { text-decoration: underline; color: var(--eis-hell); }
.links li { font-size: 15px !important; }

.code { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--linie); padding-top: 22px; }
.code__kopf { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.code__titel { font-size: 15px; font-weight: 600; }
.code__knoepfe { display: flex; gap: 6px; }
.code__knoepfe > * { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linie-stark); display: inline-flex; align-items: center; text-decoration: none; font-size: 14px; transition: background var(--ui), color var(--ui); }
.code__knoepfe > *:hover { background: var(--text); color: var(--grund); }
.code__text { margin-top: 14px; }
.code__text { max-height: 72svh; overflow: auto; background: #070708; border: 1px solid var(--linie); border-radius: 14px; padding: 20px 22px; font: 400 13px/1.65 var(--mono); color: #cfd3d8; tab-size: 2; scrollbar-color: var(--linie-stark) transparent; }
code { font-family: var(--mono); font-size: .9em; }

.blaettern { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(48px, 7vw, 96px); border-top: 1px solid var(--linie); padding-top: 24px; }
.blaettern a { display: block; text-decoration: none; font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; text-wrap: balance; padding: 20px 22px; border-radius: var(--r); background: var(--flaeche); transition: background var(--ui); }
.blaettern a:hover { background: var(--flaeche-2); }
.blaettern__nach { text-align: right; }

/* ---------- Fuß ---------- */
.fuss { padding: 32px var(--rand) 40px; border-top: 1px solid var(--linie); display: grid; gap: 10px; color: var(--dim); font-size: 14px; }
.fuss a { color: var(--leise); text-underline-offset: 3px; }
.fuss a:hover { color: var(--text); }
.leer { padding: 60px 0; color: var(--leise); font-size: 18px; }
.leer[hidden] { display: none; }
.leer__wege { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.leer__wege a { padding: 8px 16px; border: 1px solid var(--linie-bedien); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 16px; }
.leer__wege a:hover { background: var(--text); color: var(--grund); }

/* ---------- Kleinere Bildschirme ---------- */
@media (max-width: 1080px) {
  .detail__spalten { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --leiste-h: 48px; }
  .filter__zeile { flex-wrap: wrap; }
  .suche { flex: 1 1 auto; order: 1; }
  .suche input, .suche input:focus { width: 100%; }
  .filter__auf { order: 2; }
  .paar, .blaettern { grid-template-columns: 1fr; }
  .blaettern__nach { text-align: left; }
  .buehne__flaeche { aspect-ratio: 4 / 5; }
  .buehne__werkzeug a { margin-left: 0; }
  .leiste { grid-template-columns: auto minmax(0, 1fr) auto; }
  .leiste__lab { white-space: nowrap; }
}

/* Reduzierte Bewegung: keine Wege, nur Zustände */
.reduziert *, .reduziert *::before, .reduziert *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }

/* ---------- Bereiche: Techniken | Bilder ---------- */
.bereiche { display: flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--linie); border-radius: 999px; }
.bereiche__a { padding: 6px 13px; border-radius: 999px; font-size: 14px; color: var(--dim); transition: color var(--ui), background var(--ui); }
.bereiche__a:hover { color: var(--text); }
.bereiche__a[aria-current="page"] { background: var(--text); color: var(--grund); }
.bereiche__a[hidden] { display: none; }

/* ---------- Bildfundus (nur lokal) ---------- */
.bildfundus { margin: 0 var(--rand) clamp(28px, 4vw, 48px); padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--linie); border-radius: var(--r); background: rgba(255, 255, 255, .02); }
.bildfundus[hidden], .bildfundus-streifen[hidden] { display: none; }
.bildfundus__kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; text-decoration: none; color: var(--text); }
.bildfundus__kopf:hover .bildfundus__los { background: var(--text); color: var(--grund); border-color: var(--text); }
.bildfundus__titel { font: 500 clamp(20px, 2.2vw, 28px)/1.15 var(--sans); letter-spacing: -.015em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.bildfundus__los { color: var(--text); font-size: 18px; line-height: 1; padding: 9px 14px; border: 1px solid var(--linie); border-radius: 999px; transition: border-color var(--ui), background var(--ui); }
.bildfundus__reihe { margin-top: 18px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.bildfundus__reihe li { flex: none; max-width: 340px; }
.bildfundus__reihe img { height: clamp(130px, 13vw, 190px) !important; width: auto; max-height: none !important; aspect-ratio: auto !important; }
.bildfundus__reihe::-webkit-scrollbar { display: none; }
.bildfundus__reihe a, .bildfundus-streifen a { display: block; text-decoration: none; color: var(--dim); }
.bildfundus__reihe img, .bildfundus-streifen img { width: 100%; height: auto; max-height: 220px; object-fit: cover; border-radius: 8px; background: var(--flaeche, #141518); transition: transform .9s var(--kurve-seite), filter var(--ui); }
.bildfundus__reihe a:hover img, .bildfundus-streifen a:hover img { transform: scale(1.03); }
.bildfundus-streifen { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--linie); }
.bildfundus-streifen > p.mono { font-size: 11px; color: var(--dim); }
.bildfundus-streifen ul { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.bildfundus-streifen img { aspect-ratio: 16 / 10 !important; }
@media (max-width: 720px) {
  .bereiche__a { padding: 5px 9px; }
}

/* ---------- Rezepte (/lab/fundus/rezepte/) ---------- */
.rz-m { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 4px 11px; margin: 0 6px 6px 0; border: 1px solid var(--linie-stark); border-radius: 999px; font-size: 13.5px; line-height: 1.3; text-decoration: none; color: var(--text); transition: background var(--ui), border-color var(--ui), color var(--ui); }
a.rz-m:hover { background: var(--text); color: var(--grund); border-color: var(--text); }

.rz-basis { margin: 0 var(--rand) clamp(28px, 4vw, 48px); padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--linie); border-radius: var(--r); background: rgba(255, 255, 255, .02); }
.rz-basis__titel { font: 500 clamp(20px, 2.2vw, 28px)/1.15 var(--sans); letter-spacing: -.015em; margin-bottom: 14px; }

.rz-uebersicht { padding: 0 var(--rand); }
.rz-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.rz-karte { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; height: 100%; padding: 16px 18px 0; border-radius: var(--r); background: var(--flaeche); text-decoration: none; overflow: hidden; transition: background var(--ui); }
.rz-karte:hover { background: var(--flaeche-2); }
.rz-karte__aa { font-size: 76px; line-height: 1; letter-spacing: -.03em; font-weight: 500; margin: 10px 0 6px; transform-origin: left bottom; transition: transform var(--dauer-seite) var(--kurve-seite); }
.rz-karte:hover .rz-karte__aa { transform: scale(1.08); }
.rz-karte__name { font-size: 19px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; padding-bottom: 20px; }
.rz-streifen { display: flex; height: 10px; margin: auto -18px 0; flex: none; }
.rz-streifen span { flex: 1; }

.rz-liste { padding: clamp(40px, 6vw, 80px) var(--rand) 0; display: grid; gap: clamp(56px, 8vw, 120px); }
.rz { scroll-margin-top: calc(var(--leiste-h) + 16px); border-top: 1px solid var(--linie-stark); padding-top: 22px; }
.rz__kopf { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 980px; }
.rz__titel { font: 600 clamp(34px, 5vw, 72px)/.98 var(--sans); letter-spacing: -.04em; text-wrap: balance; }
.rz__branche { font-size: clamp(16px, 1.4vw, 19px); color: var(--leise); }
.rz__kurz { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; max-width: 62ch; text-wrap: pretty; margin-top: 6px; }
.rz__drei { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: clamp(18px, 3vw, 44px); margin-top: clamp(26px, 4vw, 44px); }
.rz__aufbau { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(18px, 3vw, 44px); margin-top: clamp(10px, 2vw, 24px); }
.rz .block { margin-top: 0; }

.rz-schrift { padding: 18px 20px 20px; border-radius: var(--r); background: #f3f1ec; color: #1a1918; display: grid; gap: 12px; margin-bottom: 14px; }
.rz .rz-schrift .rz-schrift__h { font-size: clamp(30px, 3.2vw, 46px); line-height: 1; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.rz .rz-schrift .rz-schrift__t { font-size: 16px; line-height: 1.5; color: inherit; font-weight: 400; max-width: 46ch; }
.rz .rz-schrift .rz-schrift__a { font-size: 12px; color: inherit; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.rz-werte { display: grid; gap: 6px; margin: 4px 0 10px; }
.rz-werte > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: baseline; border-bottom: 1px solid var(--linie); padding-bottom: 6px; }
.rz-werte dt, .rz-bereiche dt, .rz-label { font-size: 14px; color: var(--dim); }
.rz-werte dd { font-size: 15px; }
.rz-werte dd .rz-m { margin: 0; }

.rz-farben { display: grid; gap: 8px; margin-bottom: 12px; }
.rz-farben li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; }
.rz-farben__f { height: 30px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.rz-farben .mono { font-size: 13px; letter-spacing: .04em; }

.rz .kurvenbild { margin-bottom: 12px; }
.rz-sig, .rz-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin-bottom: 8px; }
.rz-sig > .rz-label, .rz-hero > .rz-label { width: 110px; flex: none; margin-bottom: 6px; }
.rz-hero__oder { width: auto !important; margin: 0 10px 6px 4px; }
.rz-sig .rz-m { border-color: var(--eis); }
.rz-sek { counter-reset: sek; display: grid; gap: 0; margin-top: 16px; border-top: 1px solid var(--linie); }
.rz-sek li { display: grid; grid-template-columns: minmax(140px, .8fr) 1.6fr; gap: 10px; align-items: baseline; padding: 10px 0 4px; border-bottom: 1px solid var(--linie); }
.rz-sek__zweck { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; padding-bottom: 6px; }
.rz-bereiche { display: grid; gap: 4px; margin-top: 18px; }
.rz-bereiche > div { display: grid; grid-template-columns: 124px 1fr; gap: 10px; align-items: baseline; }
.rz-nicht { display: grid; gap: 10px; }
.rz-nicht li { display: grid; gap: 4px; font-size: 15px; color: var(--leise); line-height: 1.45; }
.rz-nicht li > span { display: block; }
.rz-nicht .rz-m { margin-bottom: 4px; color: var(--leise); }
.rz .block .klein, .rz-basis .klein { font-size: 14px; line-height: 1.5; color: var(--dim); }
.rz .block .rz-nicht li { font-size: 15px; }
.rz-nicht .rz-m { border-color: rgba(232, 116, 100, .55); }
.rz__hoch { justify-self: end; font-size: 15px; color: var(--leise); text-decoration: none; }
.rz__hoch:hover { color: var(--text); }
.rz-uebersicht + .rz-basis { margin-top: clamp(28px, 4vw, 48px); }
.rz-mehr { margin-top: 14px; border-top: 1px solid var(--linie); padding-top: 12px; }
.rz-mehr summary { cursor: pointer; color: var(--leise); font-size: 15px; list-style: none; display: flex; justify-content: space-between; }
.rz-mehr summary::after { content: '+'; font-size: 14px; }
.rz-mehr[open] summary::after { content: '−'; }
.rz-mehr summary::-webkit-details-marker { display: none; }
.rz-mehr > ul { margin-top: 12px; }

@media (max-width: 1080px) {
  .rz__drei { grid-template-columns: 1fr 1fr; }
  .rz__drei > :first-child { grid-column: 1 / -1; }
  .rz__aufbau { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .rz__drei { grid-template-columns: 1fr; }
  .rz-sek li { grid-template-columns: 1fr; gap: 4px; }
  .rz-bereiche > div, .rz-werte > div { grid-template-columns: 96px 1fr; }
  .rz-sig > .rz-label, .rz-hero > .rz-label { width: 100%; }
  .rz-raster { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rz-karte { padding: 12px 12px 0; }
  .rz-karte__aa { font-size: 44px; margin: 4px 0 2px; }
  .rz-karte__name { font-size: 15px; padding-bottom: 12px; }
  .rz-streifen { margin: auto -12px 0; height: 8px; }
}

/* Touch: ausreichend große Ziele; Telefon-Schalter ohne Wirkung auf schmalen Bildschirmen */
@media (pointer: coarse) {
  .filter__chip { height: 40px; }
  .buehne__werkzeug > * { height: 44px; min-width: 44px; }
  .buehne__varianten button { height: 36px; }
  .rz-m { min-height: 40px; }
}
@media (max-width: 760px) {
  .buehne__werkzeug > .buehne__varianten { flex: 1 1 100%; }
}
@media (max-width: 640px) {
  [data-schalter="telefon"] { display: none; }
}
.rz-m__v { color: var(--leise); }
a.rz-m:hover .rz-m__v { color: inherit; }
.rz-optional { display: flex; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.rz-optional > .rz-label { width: 110px; flex: none; margin-bottom: 6px; }

/* ---------- Merkliste, Bauauftrag, Rezept-Werkzeug ---------- */
.merk-kopf { display: inline-flex; align-items: center; gap: 6px; }
.merk-kopf__zahl { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--text); color: var(--grund); font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.merk-an { margin-left: auto; }
.merk-an[aria-pressed='true'] { color: var(--eis-hell); }
.merk { width: min(560px, calc(100vw - 32px)); max-height: min(80vh, 720px); margin: auto; padding: 0; border: 1px solid var(--linie-stark); border-radius: 18px; background: var(--flaeche); color: var(--text); overflow: auto; }
.merk::backdrop { background: rgba(0, 0, 0, .6); }
.merk[open] { animation: merk-auf .5s var(--kurve-seite); }
@keyframes merk-auf { from { opacity: 0; transform: translateY(12px); } }
.merk__kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 8px; position: sticky; top: 0; background: var(--flaeche); }
.merk__kopf h2 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.merk__zu { width: 44px; height: 44px; border-radius: 999px; font-size: 24px; line-height: 1; color: var(--leise); }
.merk__zu:hover { color: var(--text); background: var(--flaeche-2); }
.merk__liste { list-style: none; margin: 0; padding: 0 22px; }
.merk__liste li { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--linie); }
.merk__liste a { flex: 1; padding: 12px 0; color: var(--text); text-decoration: none; font-size: 17px; line-height: 1.35; }
.merk__liste a:hover { color: var(--eis-hell); }
.merk__v { display: block; color: var(--leise); font-size: 14px; }
.merk__weg { width: 44px; height: 44px; flex: none; border-radius: 999px; color: var(--leise); font-size: 20px; }
.merk__weg:hover { color: var(--nein); background: var(--flaeche-2); }
.merk__leer { padding: 8px 22px 4px; color: var(--leise); font-size: 16px; line-height: 1.5; }
.merk__aktionen { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 22px 6px; }
.merk__knopf, .rz-knopf { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--linie-bedien); color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; transition: background var(--ui), color var(--ui), border-color var(--ui); }
.merk__knopf:hover, .rz-knopf:hover { border-color: var(--text); }
.merk__knopf--haupt, .rz-knopf--haupt { background: var(--text); color: var(--grund); border-color: var(--text); font-weight: 600; }
.merk__knopf--haupt:hover, .rz-knopf--haupt:hover { background: var(--eis-hell); border-color: var(--eis-hell); }
.merk__knopf--leise { border-color: transparent; color: var(--leise); }
.merk__hinweis { padding: 8px 22px 20px; color: var(--leise); font-size: 14px; line-height: 1.45; }
.rz__werkzeug { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .merk[open] { animation: none; } }
.rz-finder { margin: 0 var(--rand) 22px; }
.rz-finder__titel { font-size: clamp(20px, 2vw, 24px); font-weight: 600; letter-spacing: -.01em; margin-bottom: 12px; }
.rz-finder__zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.rz-finder__zeile .suche { flex: 1 1 280px; order: 0; }
.rz-finder__ziele { order: 1; }
.rz-finder__ziele { display: flex; flex-wrap: wrap; gap: 6px; }
.rz-finder__stand { color: var(--leise); font-size: 15px; margin-top: 10px; min-height: 1.4em; }
.rz-raster > li[hidden] { display: none; }
.rz-karte__treffer { font-size: 14px; color: var(--eis-hell); margin-top: -14px; padding-bottom: 16px; }
@media (pointer: coarse) { .rz-finder__ziele .filter__chip { height: 44px; } }

/* ---------- Audit 02.11.: Standbilder, Live-Region, Touch, Hover ---------- */
.vorschau__bild { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.vorschau--bild .tafel { display: none; }
.filter__stand--still { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
.filter__still[hidden] { display: none; }
.rz-m { flex-wrap: wrap; }
.rz-m__v { white-space: normal; }
.rz .rz-schrift .rz-schrift__a[data-schreib] { text-transform: none; letter-spacing: 0; font-size: 26px; opacity: 1; }
.kurvenbild .bahn__x, .kurvenbild .bahn__punkt { animation-iteration-count: 3; }
.bereiche__a { color: var(--leise); }
html { scroll-padding-top: calc(var(--leiste-h) + 130px); }
@media (max-width: 760px) { .bereiche { justify-self: end; } }
@media (pointer: coarse) {
  .kapitel a { min-height: 44px; display: inline-flex; align-items: center; }
  .bereiche__a { min-height: 40px; display: inline-flex; align-items: center; }
  .code__knoepfe > * { height: 44px; }
  .leiste__lab { min-height: 44px; display: inline-flex; align-items: center; padding-right: 8px; }
  .buehne__varianten button { height: 44px; }
}
/* Hover nur mit Maus: auf Touch bleibt sonst der Hover-Zustand nach dem Tippen hängen */
@media (hover: none) {
  .karte__link:hover .karte__name { color: inherit; }
  .karte__link:hover .vorschau { border-color: var(--linie); }
  .rz-karte:hover { background: var(--flaeche); }
  .rz-karte:hover .rz-karte__aa { transform: none; }
  .blaettern a:hover { background: transparent; }
  a.rz-m:hover { background: transparent; color: inherit; border-color: var(--linie-stark); }
  a.rz-m:hover .rz-m__v { color: var(--leise); }
}
.rz-liste--eins { padding-top: calc(var(--leiste-h) + clamp(28px, 5vw, 64px)); padding-bottom: clamp(40px, 6vw, 80px); }
.rz-liste--eins .blaettern { margin-top: clamp(32px, 5vw, 64px); }
.rz-liste--eins .rz__hoch { display: none; }
.rz-liste--eins > .rz { border-top: 0; padding-top: 0; }

/* ---------- Starter-Seiten ---------- */
.st-raster { list-style: none; margin: 0; padding: 0 var(--rand) clamp(48px, 7vw, 96px); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.st-karte { display: flex; flex-direction: column; gap: 10px; }
.st-karte__link { display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none; }
.st-karte__bild { display: block; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: clip; background: var(--flaeche); border: 1px solid var(--linie); }
.st-karte__bild img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform var(--dauer-seite) var(--kurve-seite); }
.st-karte__name { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.015em; margin-top: 8px; }
.st-karte__zusatz { font-size: 17px; color: var(--leise); }
.st-karte__rezept { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--linie-bedien); color: var(--text); font-size: 15px; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .st-karte__link:hover .st-karte__bild img { transform: scale(1.03); }
  .st-karte__link:hover .st-karte__name { color: var(--eis-hell); }
  .st-karte__rezept:hover { border-color: var(--text); }
}
.merk-kopf__stern { display: none; }
@media (max-width: 480px) {
  .merk-kopf__wort { display: none; }
  .merk-kopf__stern { display: inline; }
  .bereiche__a { padding-inline: 10px; }
}
.filter__wahl { height: 40px; max-width: 100%; padding: 0 36px 0 14px; border-radius: 999px; border: 1px solid var(--linie-bedien); background: var(--flaeche); color: var(--text); font: 400 15px var(--sans); appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.filter__wahl:focus-visible { outline: 2px solid var(--eis); outline-offset: 2px; }
@media (pointer: coarse) { .filter__wahl { height: 44px; } }

/* ---------- Entwurf (/lab/fundus/entwurf/): Briefing → Rezept → drei Richtungen ---------- */
.ew-brief { margin: 0 var(--rand) clamp(28px, 4vw, 48px); padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--linie); border-radius: var(--r); background: rgba(255, 255, 255, .02); }
.ew-brief__titel, .ew-richtungen__titel, .ew-ki__titel { font: 500 clamp(20px, 2.2vw, 28px)/1.15 var(--sans); letter-spacing: -.015em; margin-bottom: 14px; }
.ew-brief__raster { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.ew-feld { display: grid; gap: 8px; min-width: 0; align-content: start; }
.ew-feld--breit { grid-column: 1 / -1; }
.ew-label { font-size: 14px; color: var(--leise); }
.ew-opt { color: var(--dim); }
.ew-eingabe { width: 100%; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--linie-bedien); background: var(--flaeche); color: var(--text); font: 400 16px var(--sans); transition: border-color var(--ui); }
.ew-eingabe::placeholder { color: var(--dim); }
.ew-eingabe:focus { outline: none; border-color: var(--eis); }
.ew-eingabe:focus-visible { outline: 2px solid var(--eis); outline-offset: 2px; }
.ew-hilfe { font-size: 15px; color: var(--leise); line-height: 1.45; min-height: 1.4em; }
.ew-hilfe[hidden] { display: none; }
.ew-rezepte { display: flex; flex-wrap: wrap; gap: 6px; }
.ew-rezepte[hidden] { display: none; }
.ew-chip__v { color: inherit; opacity: .7; }
.ew-stimmung { margin-top: 2px; }
.ew-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--linie); border-radius: 999px; justify-self: start; max-width: 100%; }
.ew-seg__k { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; color: var(--leise); white-space: nowrap; transition: color var(--ui), background var(--ui); }
.ew-seg__k:hover { color: var(--text); }
.ew-seg__k[aria-pressed='true'] { background: var(--text); color: var(--grund); }
.ew-rezeptwahl { border-top: 1px solid var(--linie); padding-top: 18px; }
.ew-rezeptwahl__zeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ew-rezeptwahl__zeile .filter__wahl { flex: 1 1 280px; height: 44px; }
.ew-brief__ende { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ew-brief__ende [hidden] { display: none; }

.ew-richtungen { padding: 0 var(--rand); }
.ew-richtungen[hidden] { display: none; }
.ew-richtungen__kopf { max-width: 980px; margin-bottom: clamp(18px, 2.4vw, 28px); }
.ew-richtungen__titel { font: 600 clamp(30px, 4vw, 56px)/1 var(--sans); letter-spacing: -.035em; margin-bottom: 10px; }
.ew-richtungen__titel:focus-visible { outline-offset: 6px; }
.ew-richtungen__text { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.45; color: var(--leise); max-width: 70ch; text-wrap: pretty; }
.ew-richtungen__text a { color: var(--text); text-underline-offset: 3px; }
.ew-drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); align-items: start; }
.ew-karte { display: grid; gap: 14px; padding: 18px 18px 20px; border-radius: var(--r); background: var(--flaeche); min-width: 0; }
.js:not(.reduziert) .ew-karte { animation: ft-blende .9s var(--kurve-seite) both; }
.js:not(.reduziert) .ew-karte:nth-child(2) { animation-delay: .08s; }
.js:not(.reduziert) .ew-karte:nth-child(3) { animation-delay: .16s; }
.ew-karte__kopf { display: grid; gap: 6px; }
.ew-karte__nr { color: var(--eis-hell); }
.ew-karte__titel { font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.ew-karte__kurz { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: .78em; letter-spacing: -.01em; color: var(--leise); margin-top: 4px; }
.ew-karte__haltung { font-size: 15.5px; line-height: 1.5; color: var(--leise); text-wrap: pretty; }
.ew-karte__probehinweis { line-height: 1.45; margin-top: -6px; }
.ew-karte__probehinweis[hidden] { display: none; }
.ew-karte .block { padding: 16px 0 6px; }
.ew-karte .block__titel { font-size: 16px; }
.ew-karte .block li { font-size: 14.5px; line-height: 1.5; }
.ew-karte .block--nein .block__titel::before { background: var(--nein); }
.ew-werte { display: grid; gap: 6px; border-top: 1px solid var(--linie); padding-top: 12px; }
.ew-werte > div { display: grid; grid-template-columns: 82px 1fr; gap: 10px; align-items: baseline; border-bottom: 1px solid var(--linie); padding-bottom: 8px; }
.ew-werte dt { font-size: 13px; color: var(--dim); }
.ew-werte dd { font-size: 14.5px; line-height: 1.5; color: var(--leise); }
.ew-werte dd .rz-m { margin: 2px 6px 2px 0; font-size: 13px; min-height: 28px; }
.ew-farben { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 6px; }
.ew-farben i { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.ew-status { display: inline-block; margin: 2px 0; font-size: 12.5px; color: var(--leise); }
.ew-status--rezept, .ew-status--rezept-variante { color: var(--eis-hell); }
.ew-status--abweichung { color: var(--nein); }
.ew-sek { margin-top: 6px; }
.ew-sek li { grid-template-columns: minmax(100px, .7fr) 1.3fr; padding: 8px 0 2px; }
.ew-sek .rz-sek__zweck { font-size: 14px; }
.ew-sek .rz-m { font-size: 13px; min-height: 28px; margin-bottom: 4px; }
.ew-karte__aktionen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ew-karte__aktionen .rz-knopf { min-height: 40px; padding: 0 14px; font-size: 14px; }

/* Vorschau: Mini-Hero in Schriften und Farben des Rezepts, Größen in Container-Einheiten */
.ew-karte__probe { container-type: inline-size; }
.ew-probe { position: relative; aspect-ratio: 16 / 11; border-radius: 10px; overflow: clip; background: var(--bg); color: var(--fg); display: flex; flex-direction: column; justify-content: space-between; padding: 5cqi; isolation: isolate; }
.ew-probe p { max-width: none; color: inherit; }
.ew-probe__meta { font-size: 2.9cqi; opacity: .72; letter-spacing: .01em; line-height: 1.3; }
.ew-probe__h { line-height: .96; letter-spacing: -.03em; font-weight: 500; text-wrap: balance; hyphens: manual; overflow-wrap: anywhere; }
.ew-probe__h--wort { font-size: 12.5cqi; letter-spacing: -.045em; margin: 3cqi 0; }
.ew-probe__h--bild { font-size: 7.5cqi; max-width: 80%; }
.ew-probe__h--raster { font-size: 6.2cqi; margin-bottom: 2.4cqi; }
.ew-probe__t { font-size: 3.1cqi; line-height: 1.4; opacity: .85; max-width: 32ch; }
.ew-probe__fuss { display: flex; justify-content: space-between; align-items: flex-end; gap: 4cqi; }
.ew-probe__knopf { display: inline-flex; align-items: center; height: 7.2cqi; padding: 0 3.6cqi; font-size: 3cqi; font-weight: 500; white-space: nowrap; flex: none; margin-top: 3cqi; }
.ew-probe--bild { padding: 0; }
.ew-probe__bild { position: absolute; inset: 0; z-index: -1; display: grid; place-items: start end; padding: 3cqi 4cqi;
  background: linear-gradient(160deg, color-mix(in oklab, var(--bg), var(--gr) 22%) 0%, var(--bg) 55%, color-mix(in oklab, var(--bg), #000 35%) 100%); }
.ew-probe__bild::before { content: ''; position: absolute; inset: 0; opacity: .18; mix-blend-mode: soft-light; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ew-probe__bild::after { content: ''; position: absolute; left: 12%; right: -20%; top: 18%; height: 54%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--gr), transparent 70%), transparent); filter: blur(2cqi); }
.ew-probe__bildwort { font-size: 2.6cqi; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
.ew-probe--bild .ew-probe__inhalt { position: relative; margin-top: auto; padding: 5cqi; background: linear-gradient(transparent, color-mix(in oklab, var(--bg), #000 40%)); display: grid; gap: 1.6cqi; justify-items: start; }
.ew-probe--bild .ew-probe__knopf { margin-top: 1.6cqi; }
.ew-probe--raster { gap: 3cqi; }
.ew-probe__kopfzeile { display: flex; justify-content: space-between; font-size: 2.7cqi; letter-spacing: .06em; text-transform: uppercase; opacity: .7; padding-bottom: 2cqi; border-bottom: 1px solid var(--li); }
.ew-probe__spalten { display: grid; grid-template-columns: 1.4fr 1fr; gap: 5cqi; align-items: start; flex: 1; }
.ew-probe__index { font-size: 3cqi; line-height: 1.35; border-top: 1px solid var(--li); }
.ew-probe__index li { display: grid; grid-template-columns: 6cqi 1fr; gap: 1cqi; padding: 1.6cqi 0; border-bottom: 1px solid var(--li); }
.ew-probe__index li span:first-child { opacity: .55; font-variant-numeric: tabular-nums; }

.ew-karte__ki { display: grid; gap: 8px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--linie-stark); background: rgba(52, 167, 185, .06); }
.ew-karte__ki[hidden] { display: none; }
.ew-ki__begruendung { font-size: 15px; line-height: 1.5; }
.ew-ki__sektionen { display: grid; gap: 6px; font-size: 14px; line-height: 1.45; color: var(--leise); }
.ew-ki__sektionen strong { color: var(--text); font-weight: 600; }
.ew-ki__bilder { font-size: 14px; line-height: 1.45; color: var(--leise); }
.ew-ki__stand { font-size: 14.5px; color: var(--leise); }
.ew-ki__stand--fehler { color: var(--nein); }

.ew-ki { margin-top: clamp(28px, 4vw, 48px); padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--linie); border-radius: var(--r); background: rgba(255, 255, 255, .02); max-width: 980px; }
.ew-ki__text { font-size: 16px; line-height: 1.5; color: var(--leise); max-width: 66ch; text-wrap: pretty; }
.ew-ki__wege { display: grid; gap: 8px; margin: 14px 0 0; padding-left: 20px; list-style: decimal; font-size: 15.5px; line-height: 1.5; color: var(--leise); }
.ew-ki__wege strong { color: var(--text); font-weight: 600; }
.ew-ki__api { margin-top: 16px; border-top: 1px solid var(--linie); padding-top: 12px; }
.ew-ki__api summary { cursor: pointer; color: var(--leise); font-size: 15px; list-style: none; display: flex; justify-content: space-between; }
.ew-ki__api summary::after { content: '+'; }
.ew-ki__api[open] summary::after { content: '−'; }
.ew-ki__api summary::-webkit-details-marker { display: none; }
.ew-ki__felder { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px 20px; margin: 14px 0 10px; align-items: end; }
.ew-merken { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; font-size: 15px; color: var(--leise); }
.ew-merken input { width: 18px; height: 18px; accent-color: var(--eis); }
.ew-wie { margin-top: clamp(28px, 4vw, 48px); }
.ew-wie__liste li { font-size: 16px; line-height: 1.55; color: var(--leise); max-width: 70ch; }
.ew-wie__liste em { font-style: normal; color: var(--text); font-weight: 600; }

@media (max-width: 1180px) { .ew-drei { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .ew-brief__raster, .ew-drei, .ew-ki__felder { grid-template-columns: 1fr; }
  .ew-sek li { grid-template-columns: 1fr; gap: 2px; }
  .ew-werte > div { grid-template-columns: 70px 1fr; }
}
@media (pointer: coarse) { .ew-seg__k { height: 44px; } .ew-karte__aktionen .rz-knopf { min-height: 44px; } }
@media (hover: none) { .ew-seg__k:hover { color: var(--leise); } }
/* Vier Bereiche in der Leiste: auf schmalen Bildschirmen enger, zur Not scrollbar statt breiter als die Seite */
@media (max-width: 760px) {
  .bereiche { max-width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .bereiche::-webkit-scrollbar { display: none; }
  .bereiche__a { white-space: nowrap; flex: none; }
}
@media (max-width: 480px) {
  .bereiche__a { padding-inline: 8px; font-size: 13px; }
  .leiste { gap: 10px; }
}
.ew-brief__raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ew-rezeptwahl__zeile .filter__wahl { width: 100%; min-width: 0; max-width: 100%; flex: 1 1 200px; }
@media (max-width: 760px) { .ew-brief__raster { grid-template-columns: minmax(0, 1fr); } }
