/* =====================================================================
   M.Ai — Variante C · „Nachtwache“ (Überarbeitung)
   Ein Werk, ein Licht. Mobil zuerst (390 px), geprüft bis 320 px.
   Schriftgrade in rem: sie wachsen mit der Systemschrift.
   Regeln: Text steht nie auf einem Effekt. Karmin ist Zeichen (Linie,
   die misst, oder Etikett). Bernstein und Terrakotta sind nur Licht.
   Rund ist nur, was gedrückt wird.
   ===================================================================== */

:root {
  /* Grund und Schrift */
  --pech: #120F0D;
  --mahagoni: #1F1A17;
  --mahagoni-hell: #2A231F;
  --tabak: #4A3F37;
  --sand: #9B8F83;
  --elfenbein: #F1EADF;
  --text: #DDD4C7;
  --papier: #D8CFC1;
  /* Zeichen */
  --karmin: #B3262E;            /* Etikett (Fläche) */
  --karmin-linie: #E0434B;      /* Linie, die misst: 3,3 : 1 gegen ihre Spur */
  /* Bühne: rauchiges Nachtblau, nur dort */
  --nacht: #0E1826;
  --nacht-hell: #16263A;
  --rauch: #15171C;
  /* Licht: immer weich, nie Linie, Schrift oder Knopf */
  --bernstein: #E89F5B;
  --terrakotta: #C85A28;
  --glut: #FFF3D1;
  /* Kapitel „Für Erick“ */
  --erick-grund: #241A16;
  --erick-flaeche: #30231D;
  /* Linien */
  --linie: rgba(241, 234, 223, .14);
  --linie-stark: rgba(241, 234, 223, .28);
  --feld-linie: rgba(241, 234, 223, .42);     /* Kante von Eingabefeldern: 3,4 : 1 */

  /* dieselben Töne als Zahlen, für durchscheinende Flächen */
  --pech-rgb: 18, 15, 13; --mahagoni-rgb: 31, 26, 23; --erick-rgb: 36, 26, 22; --tief-rgb: 8, 6, 5;
  --bernstein-rgb: 232, 159, 91; --terrakotta-rgb: 200, 90, 40;
  /* Bühne: stehender Grund hinter den Werken, und dieselben Töne für den Spiegel (spiegel.js liest sie) */
  --buehne: radial-gradient(120% 90% at 50% 0%, var(--nacht-hell) 0%, var(--nacht) 45%, var(--pech) 100%);
  --sp-oben: #16263A; --sp-mitte: #0E1826; --sp-horizont: #C85A28; --sp-horizont-kraft: 0;
  --schleier-kraft: .4;        /* wie stark der Grundton das Korn zudeckt */
  --horizont: none;            /* warmer Schein am unteren Bildrand (nur Fassung „Dämmerung“) */

  --korn: url("korn.png?v=2");
  --serif: 'Bodoni Moda', 'Bodoni 72', 'Didot', 'Bodoni MT', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --grotesk: 'Hanken Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --rand: 20px;
  --kopf: 50px;
  --unten: 92px;                /* Platz für die untere Pille */
  --abschnitt: 80px;
  --weich: cubic-bezier(.22, .61, .21, 1);
  --dauer: 460ms;
  --streifen: 7;                /* Streifen je Karte in der Schau */
}
@media (max-width: 359px) { :root { --rand: 16px; } }
@media (min-width: 760px) { :root { --rand: 40px; --abschnitt: 120px; } }
@media (min-width: 900px) { :root { --kopf: 64px; --unten: 0px; } }
@media (min-width: 1200px) { :root { --rand: 64px; --abschnitt: 152px; } }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; background: var(--pech); scroll-padding-top: var(--kopf); scroll-padding-bottom: calc(var(--unten) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text);
  /* Filmkorn: stehende Kachel im Grund, unter allem Text */
  background: linear-gradient(rgba(var(--pech-rgb), var(--schleier-kraft)), rgba(var(--pech-rgb), var(--schleier-kraft))), var(--korn) 0 0 / 128px 128px, var(--pech);
  font: 400 1.0625rem/1.6 var(--grotesk); font-optical-sizing: auto; font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--kopf);
}
body.ist-gesperrt, html.hat-blatt body { overflow: hidden; }
main { display: block; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, .riesig, .gross, .titel, .zitat { overflow-wrap: break-word; }
:focus-visible { outline: 2px solid var(--elfenbein); outline-offset: 3px; }
::selection { background: var(--elfenbein); color: var(--pech); }

.sprung { position: fixed; left: 12px; top: -80px; z-index: 200; background: var(--elfenbein); color: var(--pech); padding: 12px 16px; }
.sprung:focus { top: 12px; }
.nur-lesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rand { padding-left: var(--rand); padding-right: var(--rand); }
.breite { max-width: 1560px; margin-left: auto; margin-right: auto; }
.nw { white-space: nowrap; }

/* einspaltige Raster dürfen nie breiter werden als ihr Platz */
.liste-raster, .erick-raster, .erick-wort, .erick-zahl, .formular, .anfrage, .kauf, .kauf-schild, .schild, .detail, .feld, .seitenkopf, .band, .abschnitt,
.e-teil, .e-kopf, .e-seite, .regeln, .weg-teil, .ehren, .gedanken, .titelblatt, .satz, .regal, .kontakt-seite, .kontakt-block, .einstieg-text,
.portal-kopf, .leiter-kopf, .haeng, .ware, .etappen, .etappe, .rechnung, .bestaetigung, .vertrauen, .db-blatt { grid-template-columns: minmax(0, 1fr); }

/* ---------- Schriftstufen ------------------------------------------- */
.klein {
  font: 500 0.75rem/1.4 var(--grotesk); letter-spacing: .14em; text-transform: uppercase; color: var(--sand);
  font-variant-numeric: tabular-nums;
}
.klein--hell { color: var(--elfenbein); }
.nr { font: 400 0.9375rem/1 var(--serif); font-style: italic; color: var(--sand); letter-spacing: .02em; white-space: nowrap; }
.nr b { font-style: normal; font-weight: 400; color: var(--elfenbein); margin-left: .25em; font-variant-numeric: lining-nums tabular-nums; }
.ziffer-klein { font: 400 0.9375rem/1 var(--serif); color: var(--sand); font-variant-numeric: lining-nums tabular-nums; }

.riesig, .gross, .titel, .zitat, .ziffer { font-family: var(--serif); font-weight: 400; color: var(--elfenbein); font-variant-numeric: lining-nums; }
.riesig { font-size: clamp(min(3.625rem, 16vw), 17.5vw, 14.5rem); line-height: .88; letter-spacing: -.025em; }
.gross { font-size: clamp(min(2.25rem, 10vw), 10.2vw, 4.75rem); line-height: 1.02; letter-spacing: -.012em; text-wrap: balance; }
.gross em, .zitat em, .titel em, .riesig em { font-style: italic; font-weight: 400; }
.titel { font-size: clamp(1.75rem, 6vw, 3.5rem); line-height: 1.06; letter-spacing: -.008em; text-wrap: balance; }
.titel--klein { font-size: clamp(1.4375rem, 3.4vw, 2.125rem); line-height: 1.14; }
.zitat { font-size: clamp(1.625rem, 5.2vw, 3.75rem); line-height: 1.12; letter-spacing: -.008em; text-wrap: balance; }
.ziffer { font-size: clamp(3.25rem, 13vw, 8.25rem); line-height: .9; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.vorspann { font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.52; color: var(--text); max-width: 34em; }
.lauf { max-width: 36em; }
.lauf p + p { margin-top: 1.05em; }
.leise { color: var(--sand); }
.hinweis { font-size: 0.875rem; line-height: 1.5; color: var(--sand); }
/* Ausgleich für das Paar „We“, „Wo“ in großen Graden */
.kn { margin-right: -.07em; }

/* ---------- Bedienelemente (rund ist nur, was gedrückt wird) --------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 10px;
  min-height: 52px; padding: 8px 26px; border-radius: 999px;
  font: 500 0.9375rem/1.15 var(--grotesk); letter-spacing: .01em; text-align: center;
  border: 1px solid var(--feld-linie); color: var(--elfenbein); background: transparent;
  transition: background-color .25s, color .25s, border-color .25s;
}
.knopf--hell { background: var(--elfenbein); border-color: var(--elfenbein); color: var(--pech); font-weight: 600; }
.knopf--hell span { font-weight: 400; font-variant-numeric: tabular-nums; }
.knopf--voll { width: 100%; }
.knopf--frei { white-space: normal; padding-top: 8px; padding-bottom: 8px; }
.knopf[disabled] { opacity: .5; cursor: default; }
@media (hover: hover) {
  .knopf:hover { border-color: var(--elfenbein); }
  .knopf--hell:hover { background: #fff8ec; }
}
.textlink {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font: 500 0.9375rem/1.2 var(--grotesk); color: var(--elfenbein);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--feld-linie);
}
.textlink::after { content: "→"; text-decoration: none; display: inline-block; transition: transform .3s var(--weich); }
.textlink--zurueck::after { content: none; }
.textlink--zurueck::before { content: "←"; }
@media (hover: hover) { .textlink:hover { text-decoration-color: var(--elfenbein); } .textlink:hover::after { transform: translateX(4px); } }

.rund {
  width: 48px; height: 48px; border-radius: 50%; flex: none; display: inline-grid; place-items: center;
  border: 1px solid var(--feld-linie); color: var(--elfenbein); background: var(--pech);
  transition: transform var(--dauer) var(--weich), border-color .25s;
}
.rund svg { width: 18px; height: 18px; }
.rund[aria-disabled="true"] { opacity: .35; cursor: default; }

.etikett {
  display: inline-block; background: var(--karmin); color: var(--elfenbein);
  font: 600 0.75rem/1 var(--grotesk); letter-spacing: .13em; text-transform: uppercase;
  padding: 8px 10px 7px; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(241, 234, 223, .38);
}
/* Zustand: immer das Wort, das Zeichen davor ist nur Form */
.zustand {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font: 500 0.875rem/1.1 var(--grotesk); letter-spacing: .02em; color: var(--elfenbein);
}
.zustand::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.zustand[data-zustand="verfuegbar"]::before { background: currentColor; }
.zustand[data-zustand="reserviert"]::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.zustand[data-zustand="verkauft"] { color: var(--sand); }
.zustand[data-zustand="nicht-verkaeuflich"]::before { height: 0; border-radius: 0; border-width: 1.5px 0 0; width: 11px; }
.zustand[data-zustand="in-arbeit"]::before { border-style: dotted; }

/* Maßlinie: Karmin misst, eine helle Marke zeigt das Ende (auch bei Rot-Schwäche) */
.mass { position: relative; height: 4px; background: var(--linie); overflow: hidden; }
.mass i { position: absolute; inset: 0; background: var(--karmin-linie); transform-origin: left center; transform: scaleX(var(--anteil, 0)); }
.mass::after { content: ""; position: absolute; inset: 0; border-right: 2px solid var(--elfenbein); transform: translateX(calc((var(--anteil, 0) - 1) * 100%)); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 17px; border-radius: 999px;
  border: 1px solid var(--feld-linie); font: 500 0.875rem/1.15 var(--grotesk); color: var(--text); white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s;
}
.chip small { font-size: 0.875rem; color: var(--sand); font-variant-numeric: tabular-nums; }
.chip[aria-current="true"], .chip[aria-pressed="true"], .wahl input:checked + .chip { background: var(--elfenbein); border-color: var(--elfenbein); color: var(--pech); }
.chip[aria-current="true"] small, .wahl input:checked + .chip small { color: #4a3f37; }
.wahl { position: relative; display: inline-flex; max-width: 100%; }
.wahl .chip { white-space: normal; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 2px 8px; }
.wahl input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.wahl input:focus-visible + .chip { outline: 2px solid var(--elfenbein); outline-offset: 3px; }

/* Haarlinien-Tabelle (Wandschild, Datenblatt, Kasse) */
.zeilen { border-top: 1px solid var(--linie); }
.zeilen > div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 12px 0 11px; border-bottom: 1px solid var(--linie); min-height: 46px; }
.zeilen dt { font: 500 0.75rem/1.4 var(--grotesk); letter-spacing: .14em; text-transform: uppercase; color: var(--sand); flex: none; }
.zeilen dd { text-align: right; color: var(--elfenbein); font-size: 0.9688rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
.zeilen .ist-summe dd, .zeilen .ist-summe dt { color: var(--elfenbein); }
.zeilen .ist-summe dd { font: 400 1.5625rem/1.1 var(--serif); }

/* ---------- Kopf ---------------------------------------------------- */
.kopf {
  position: fixed; inset: 0 0 auto 0; height: var(--kopf); z-index: 60;
  background: linear-gradient(rgba(var(--pech-rgb), var(--schleier-kraft)), rgba(var(--pech-rgb), var(--schleier-kraft))), var(--korn) 0 0 / 128px 128px, var(--pech);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 var(--rand);
}
.wortmarke { font: 400 1.5625rem/1 var(--serif); letter-spacing: -.01em; color: var(--elfenbein); display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
/* Sergios eigener Schriftzug (Pfad aus app.js): Höhe in em, Farbe erbt */
.marke { display: block; height: .74em; width: auto; overflow: visible; }
.titel-marke .marke { height: auto; width: min(86%, 44rem); margin: .06em 0 .1em; }
.a-marke .marke { height: .8em; }
.kopf-nav, .kopf-rechts { display: none; }
.kopf-erick { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font: 500 0.875rem/1 var(--grotesk); letter-spacing: .03em; color: var(--elfenbein); }
.kopf-erick::before, .kopf-nav a[data-id="erick"]::before { content: ""; width: 14px; height: 3px; background: var(--karmin-linie); }
/* Kapitel-Fortschritt: die rote Linie an der Unterkante der Kopfleiste */
.fortschritt { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; display: flex; gap: 3px; }
.fortschritt span { flex: 1; background: var(--linie); position: relative; overflow: hidden; }
.fortschritt i { position: absolute; inset: 0; background: var(--karmin-linie); transform-origin: left center; transform: scaleX(var(--a, 0)); }
.fortschritt span.laeuft::after { content: ""; position: absolute; inset: 0; border-right: 2px solid var(--elfenbein); transform: translateX(calc((var(--a, 0) - 1) * 100%)); }
.fortschritt.gibt-ab i { transition: transform .7s var(--weich); }
.fortschritt.ist-auftakt span { --a: 1 !important; }

@media (min-width: 900px) {
  .kopf-erick { display: none; }
  .kopf-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 44px); }
  .kopf-nav a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font: 500 0.875rem/1 var(--grotesk); letter-spacing: .03em; color: var(--text); position: relative; }
  .kopf-nav a[aria-current="page"] { color: var(--elfenbein); }
  .kopf-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--elfenbein); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--weich); }
  .kopf-nav a[aria-current="page"]::after, .kopf-nav a:hover::after { transform: scaleX(1); }
  .kopf-rechts { display: flex; align-items: center; gap: 22px; }
  .kopf-korb { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 500 0.875rem/1 var(--grotesk); color: var(--elfenbein); }
  .kopf-korb b { font-weight: 500; font-variant-numeric: tabular-nums; display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 12px; border: 1px solid var(--feld-linie); font-size: 0.75rem; }
}

.sprachen { display: flex; gap: 0; margin-left: -12px; }
.kopf .sprachen { margin-left: 0; }
.sprachen button { min-width: 44px; min-height: 44px; font: 500 0.75rem/1 var(--grotesk); letter-spacing: .12em; color: var(--sand); }
.sprachen button[aria-pressed="true"] { color: var(--elfenbein); text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Untere Pille (mobil) ------------------------------------ */
.pille {
  position: fixed; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 55;
  display: flex; justify-content: center; align-items: center; gap: 8px; padding: 0 16px; pointer-events: none;
}
.pille > * { pointer-events: auto; }
.pille-bahn {
  display: flex; align-items: center; height: 56px; padding: 0 6px; border-radius: 28px;
  background: var(--mahagoni-hell); border: 1px solid var(--linie-stark); box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
}
.pille-bahn a, .pille-bahn button {
  display: inline-flex; align-items: center; justify-content: center; height: 44px; min-width: 44px; padding: 0 16px; border-radius: 22px;
  font: 500 0.9062rem/1 var(--grotesk); color: var(--text); white-space: nowrap;
}
.pille-bahn a[aria-current="page"] { background: var(--pech); color: var(--elfenbein); }
.pille-kreis {
  position: relative; width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--mahagoni-hell); border: 1px solid var(--linie-stark); color: var(--elfenbein); box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
}
.pille-kreis svg { width: 20px; height: 20px; }
.pille-kreis b { position: absolute; top: 7px; right: 7px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--elfenbein); color: var(--pech); font: 600 0.6875rem/1.125rem var(--grotesk); text-align: center; font-variant-numeric: tabular-nums; }
.pille-kreis b[data-leer] { display: none; }
.pille-kauf {
  flex: 1; min-width: 0; height: 56px; border-radius: 28px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--elfenbein); color: var(--pech); font: 600 0.9375rem/1 var(--grotesk); white-space: nowrap; padding: 0 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55); overflow: hidden; text-overflow: ellipsis;
}
.pille-kauf span { font-weight: 400; font-variant-numeric: tabular-nums; }
.pille--kauf { justify-content: space-between; max-width: 520px; margin: 0 auto; }
@media (max-width: 359px) { .pille { padding: 0 10px; gap: 6px; } .pille-bahn a, .pille-bahn button { padding: 0 11px; font-size: 0.875rem; } .pille-kreis { width: 52px; height: 52px; } }
@media (min-width: 900px) { .pille { display: none; } }

/* ---------- Vollbild-Menü ------------------------------------------- */
.menue {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column;
  background: linear-gradient(rgba(var(--pech-rgb), var(--schleier-kraft)), rgba(var(--pech-rgb), var(--schleier-kraft))), var(--korn) 0 0 / 128px 128px, var(--pech);
  padding: 0 var(--rand) calc(20px + env(safe-area-inset-bottom, 0px)); overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--weich), visibility 0s .4s;
}
.menue.ist-offen { opacity: 1; visibility: visible; transition: opacity .4s var(--weich); }
.menue-kopf { height: var(--kopf); flex: none; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--linie); }
.menue-zu { min-height: 44px; min-width: 44px; font: 500 0.875rem/1 var(--grotesk); letter-spacing: .04em; color: var(--elfenbein); padding: 0 2px; }
.menue-liste { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 18px 0; }
.menue-liste a {
  display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: baseline; column-gap: 6px; padding: 9px 0 10px; border-bottom: 1px solid var(--linie);
  opacity: 0; transform: translateY(16px); transition: opacity .5s var(--weich), transform .5s var(--weich);
}
.menue.ist-offen .menue-liste a { opacity: 1; transform: none; transition-delay: calc(60ms * var(--i) + 80ms); }
.menue-liste .ziffer-klein { font-size: 0.875rem; font-style: italic; }
.menue-liste strong { font: 400 clamp(2.25rem, 11vw, 4rem)/1.04 var(--serif); letter-spacing: -.015em; color: var(--elfenbein); grid-column: 2; }
.menue-liste a[aria-current="page"] strong { font-style: italic; }
.menue-liste small { grid-column: 2; font: 400 0.875rem/1.4 var(--grotesk); color: var(--sand); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 4px; }
.menue-fuss { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.menue-fuss .klein { letter-spacing: .1em; }

/* ---------- Warenkorb ----------------------------------------------- */
.schleier { position: fixed; inset: 0; z-index: 85; background: rgba(var(--tief-rgb), .74); opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.schleier.ist-offen { opacity: 1; visibility: visible; transition: opacity .4s; }
.korb {
  position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; max-height: 88vh; max-height: 88svh; display: flex; flex-direction: column;
  background: linear-gradient(rgba(var(--mahagoni-rgb), var(--schleier-kraft)), rgba(var(--mahagoni-rgb), var(--schleier-kraft))), var(--korn) 0 0 / 128px 128px, var(--mahagoni);
  border-top: 1px solid var(--linie-stark);
  transform: translateY(104%); visibility: hidden; transition: transform var(--dauer) var(--weich), visibility 0s var(--dauer);
}
.korb.ist-offen { transform: none; visibility: visible; transition: transform var(--dauer) var(--weich); }
.korb-kopf { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 16px var(--rand) 12px; border-bottom: 1px solid var(--linie); }
.korb-kopf h2 { font: 400 1.75rem/1 var(--serif); color: var(--elfenbein); }
.korb-inhalt { overflow-y: auto; overscroll-behavior: contain; padding: 4px var(--rand) calc(22px + env(safe-area-inset-bottom, 0px)); -webkit-overflow-scrolling: touch; }
.korb-leer { padding: 34px 0 20px; }
.korb-leer p { font: 400 1.625rem/1.15 var(--serif); color: var(--elfenbein); margin-bottom: 18px; }
.posten { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 14px; padding: 18px 0; border-bottom: 1px solid var(--linie); align-items: start; }
.posten-bild { grid-row: span 3; width: 64px; height: 80px; background: var(--pech); display: grid; place-items: center; }
.posten-bild img { max-width: 52px; max-height: 68px; width: auto; height: auto; }
.posten h3 { font: 400 1.1875rem/1.2 var(--serif); color: var(--elfenbein); }
.posten-preis { font: 400 1.1875rem/1.2 var(--serif); color: var(--elfenbein); font-variant-numeric: tabular-nums lining-nums; text-align: right; white-space: nowrap; }
.posten p { grid-column: 2 / 4; font-size: 0.875rem; line-height: 1.4; color: var(--sand); }
.posten-fuss { grid-column: 2 / 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.menge { display: inline-flex; align-items: center; border: 1px solid var(--feld-linie); border-radius: 22px; height: 44px; }
.menge button { width: 44px; height: 44px; font-size: 1.125rem; color: var(--elfenbein); border-radius: 22px; }
.menge output { min-width: 22px; text-align: center; font-size: 0.9375rem; font-variant-numeric: tabular-nums; color: var(--elfenbein); }
.posten-weg { min-height: 44px; font-size: 0.875rem; color: var(--sand); text-decoration: underline; text-underline-offset: 5px; }
.korb-summe { margin-top: 18px; }
.korb-summe .zeilen { border-top: 0; }
.korb-zahlen { display: grid; gap: 10px; margin-top: 20px; }
.korb .hinweis { margin-top: 14px; }
.korb-spende { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--linie); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 16px; }
.korb-spende .hinweis { margin: 0; }
@media (min-width: 900px) {
  .korb { left: auto; top: 0; width: 440px; max-height: none; border-top: 0; border-left: 1px solid var(--linie-stark); transform: translateX(104%); }
  .korb-kopf { padding: 22px 32px 18px; }
  .korb-inhalt { padding: 4px 32px 32px; }
}

/* ---------- Fuß ------------------------------------------------------ */
.fuss { border-top: 1px solid var(--linie); padding: 44px var(--rand) calc(var(--unten) + 30px); }
.fuss-raster { display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr); }
.fuss-marke .wortmarke { font-size: 2.5rem; min-height: 0; }
.fuss-marke p { margin-top: 8px; }
.fuss h2 { margin-bottom: 6px; }
.fuss-bereiche { display: none; }
.fuss-kanaele ul { display: flex; flex-wrap: wrap; gap: 0 22px; }
.fuss li a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-size: 0.9375rem; color: var(--text); }
.fuss li small { color: var(--sand); font-size: 0.875rem; margin-left: 8px; }
.fuss-liste p { font-size: 0.9375rem; color: var(--text); max-width: 26em; }
.fuss-liste .feldzeile input { font-size: clamp(1.3125rem, 2.2vw, 1.625rem); }
.fuss-ende { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--linie); display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; align-items: center; }
.fuss-recht { display: flex; flex-wrap: wrap; gap: 0 14px; margin-left: -6px; }
.fuss-recht a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 6px; font-size: 0.875rem; color: var(--sand); }
.fuss .beispiel { margin-top: 12px; max-width: 46em; }
@media (hover: hover) { .fuss a:hover { color: var(--elfenbein); } }
@media (min-width: 900px) {
  .fuss-raster { grid-template-columns: 1.3fr 1.4fr .8fr .9fr; gap: 40px; }
  .fuss-bereiche { display: block; }
  .fuss-kanaele ul { display: block; }
  .fuss { padding-top: 80px; }
}
body[data-seite="kontakt"] .fuss-liste, body[data-seite="kontakt"] .fuss-kanaele { display: none; }

/* ---------- Liste (Anmeldung) --------------------------------------- */
.liste { padding: var(--abschnitt) var(--rand); border-top: 1px solid var(--linie); }
.liste-raster { display: grid; gap: 26px; }
.liste h2 { margin: 12px 0 10px; }
.feldzeile { display: flex; align-items: flex-end; gap: 12px; border-bottom: 1px solid var(--feld-linie); padding-bottom: 8px; }
.feldzeile:focus-within { border-bottom-color: var(--elfenbein); box-shadow: 0 1px 0 var(--elfenbein); }
.feldzeile input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--elfenbein); padding: 8px 0 4px; min-height: 52px;
  font: 400 clamp(1.4375rem, 4.4vw, 2.5rem)/1.1 var(--serif); letter-spacing: -.01em; border-radius: 0;
}
.feldzeile input::placeholder { color: var(--sand); opacity: 1; font-style: italic; }
.feldzeile button { flex: none; min-height: 44px; font: 500 0.9375rem/1 var(--grotesk); color: var(--elfenbein); padding: 0 2px 6px; white-space: nowrap; }
.feldzeile button::after { content: " →"; }
.liste-ok { display: none; font: 400 clamp(1.4375rem, 4vw, 2.25rem)/1.15 var(--serif); color: var(--elfenbein); }
.liste-form.ist-fertig .feldzeile, .liste-form.ist-fertig .hinweis { display: none; }
.liste-form.ist-fertig .liste-ok { display: block; }
.liste-form .hinweis { margin-top: 10px; }
.liste-form .hinweis.ist-fehler { color: var(--elfenbein); }
.liste-form .hinweis.ist-fehler::before { content: "— "; }
@media (min-width: 900px) { .liste-raster { grid-template-columns: 5fr 7fr; gap: 64px; align-items: end; } }

/* ---------- Bühne: Nachtblau, Lichthof, Werk nie beschnitten ---------- */
.nacht {
  background: var(--korn) 0 0 / 128px 128px, var(--buehne);
}
.passung { container-type: size; display: grid; place-items: center; position: relative; }
.passung-bild { position: relative; z-index: 1; width: 84%; width: min(var(--bmax, 100cqw), calc(var(--hmax, 100cqh) * var(--f, .8))); aspect-ratio: var(--f, .8); }
.passung-bild img { width: 100%; height: 100%; object-fit: contain; box-shadow: 0 34px 60px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 243, 209, .06); }
/* Lichthof: warmes Licht hinter dem Werk, nie darauf */
.spot { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 52% at 50% 50%, rgba(var(--bernstein-rgb), .24), rgba(var(--terrakotta-rgb), .09) 50%, transparent 76%),
    radial-gradient(ellipse 34% 9% at 50% 97%, rgba(0, 0, 0, .5), transparent 70%);
}

/* =====================================================================
   DIE SCHAU — waagerecht wischbare Karten vor der Bühne
   Eine echte, nativ scrollende Liste aus Schaltflächen; die Bewegung der
   Karten wird aus Scrollposition und -tempo abgeleitet (schau in app.js).
   ===================================================================== */
.schau { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.schau-buehne {
  position: relative; flex: 1 1 auto; min-height: 270px; max-height: 62vh; max-height: 62svh; overflow: hidden; isolation: isolate;
  container-type: size;
}
.schau-buehne canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 900ms var(--weich); pointer-events: none; }
.schau-buehne.lebt canvas { opacity: 1; }
.lichthof { position: absolute; inset: 0; z-index: 0; pointer-events: none; transition: opacity 900ms;
  background: radial-gradient(ellipse 50% 54% at 50% 50%, rgba(var(--bernstein-rgb), .26), rgba(var(--terrakotta-rgb), .1) 50%, transparent 76%); }
.schau-buehne.lebt .lichthof { opacity: 0; }
/* Standbild des Spiegels (ohne WebGL oder bei „Bewegung reduzieren“) */
.spiegel::before {
  content: ""; position: absolute; inset: 0; z-index: 0; transition: opacity 900ms;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800' preserveAspectRatio='xMidYMid slice'%3E%3Cdefs%3E%3Cfilter id='w' x='-10%25' y='-10%25' width='120%25' height='120%25'%3E%3CfeGaussianBlur stdDeviation='10'/%3E%3C/filter%3E%3Cfilter id='f' x='-10%25' y='-10%25' width='120%25' height='120%25'%3E%3CfeGaussianBlur stdDeviation='3.2'/%3E%3C/filter%3E%3Cpath id='a' d='M-60 250C120 120 260 330 420 240S700 60 880 170'/%3E%3Cpath id='b' d='M-40 650C140 530 300 730 470 640S720 510 860 600'/%3E%3Cpath id='c' d='M640 -40C540 160 760 300 670 470S580 700 720 860'/%3E%3Cpath id='d' d='M110 -40C210 140 30 300 120 460S230 690 80 860'/%3E%3C/defs%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cg filter='url(%23w)' opacity='.42' stroke-width='15'%3E%3Cg stroke='%23E64833' transform='translate(0 9)'%3E%3Cuse href='%23a'/%3E%3Cuse href='%23b'/%3E%3Cuse href='%23c'/%3E%3Cuse href='%23d'/%3E%3C/g%3E%3Cg stroke='%235CE1E6' transform='translate(0 -9)' opacity='.6'%3E%3Cuse href='%23a'/%3E%3Cuse href='%23b'/%3E%3Cuse href='%23c'/%3E%3Cuse href='%23d'/%3E%3C/g%3E%3C/g%3E%3Cg filter='url(%23f)' stroke='%23E89F5B'%3E%3Cuse href='%23a' stroke-width='5' opacity='.7'/%3E%3Cuse href='%23b' stroke-width='6' opacity='.8'/%3E%3Cuse href='%23c' stroke-width='4' opacity='.45'/%3E%3Cuse href='%23d' stroke-width='3.5' opacity='.35'/%3E%3C/g%3E%3Cg stroke='%23FFF3D1' stroke-width='1.4' opacity='.55'%3E%3Cuse href='%23a'/%3E%3Cuse href='%23b'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat;
}
.spiegel.lebt::before { opacity: 0; }

.schau-band {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; gap: 20px; margin: 0; padding: 0 50%; padding: 0 50cqw;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.schau-band::-webkit-scrollbar { display: none; }
.schau-band.wird-gezogen { scroll-snap-type: none; cursor: grabbing; }
.schau-platz { flex: none; scroll-snap-align: center; width: 62%; width: clamp(46cqw, calc(80cqh * var(--f, .8)), 72cqw); aspect-ratio: var(--f, .8); }
.schau-karte { display: block; width: 100%; height: 100%; position: relative; -webkit-tap-highlight-color: transparent; }
.schau-karte:focus-visible { outline-offset: 6px; }
.schau-blatt {
  display: block; width: 100%; height: 100%; position: relative; transform-style: preserve-3d; will-change: transform;
  transform: perspective(1100px) translate3d(0, var(--ty, 0px), var(--z, 0px)) rotateY(var(--ry, 0deg)) rotateZ(var(--rz, 0deg));
}
.schau-karte::before { /* Schatten unter der schwebenden Karte: flach dahinter, nicht im Raum der Streifen */
  content: ""; position: absolute; left: 2%; right: 2%; top: 88%; height: 20%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0, 0, 0, .6), transparent 72%);
}
.schau-blatt img { position: relative; width: 100%; height: 100%; object-fit: contain;
  /* feiner prismatischer Saum an den Kartenkanten */
  box-shadow: -1px 0 0 rgba(92, 225, 230, .5), 1px 0 0 rgba(var(--bernstein-rgb), .7), 0 0 0 1px rgba(255, 243, 209, .07); }
.schau-blatt.hat-falten img { opacity: 0; }
/* Karten außerhalb der Bühne: flaches Bild, keine Streifen (spart Ebenen auf dem Handy) */
.schau-blatt.fern .falte { display: none; }
.schau-blatt.hat-falten.fern img { opacity: 1; }
/* Die Karte als biegsames Blatt: senkrechte Streifen, von der Mitte aus verkettet */
.falte { position: absolute; inset: 0; transform-style: preserve-3d; }
.s { position: absolute; top: 0; height: 100%; display: block; transform-style: preserve-3d; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background-image: var(--bild); background-repeat: no-repeat; background-size: calc(var(--streifen) * 100%) 100%;
  background-position: calc(var(--i) / (var(--streifen) - 1) * 100%) 0; }
.s::after { content: ""; position: absolute; inset: 0; background: #070B12; opacity: calc(var(--dk, 0) + var(--fa, 0) * var(--n, 0)); }
.s-m { left: calc(100% * 3 / 7); width: calc(100% / 7 + .6px); --fa: 0; }
.s-r { --fa: var(--fr, 0); transform-origin: 0 50%; transform: rotateY(var(--br, 0deg)); }
.s-l { --fa: var(--fl, 0); transform-origin: 100% 50%; transform: rotateY(calc(var(--bl, 0deg) * -1)); }
.falte > .s-r { left: calc(100% * 4 / 7); width: calc(100% / 7 + .6px); }
.s-r > .s-r { left: calc(100% - .6px); width: 100%; }
.falte > .s-l { left: calc(100% * 2 / 7 - .6px); width: calc(100% / 7 + .6px); }
.s-l > .s-l { right: calc(100% - .6px); width: 100%; }
.s-rand-l { box-shadow: -1px 0 0 rgba(92, 225, 230, .55); }
.s-rand-r { box-shadow: 1px 0 0 rgba(var(--bernstein-rgb), .75); }

.schau-pfeil { position: absolute; z-index: 2; top: 50%; margin-top: -26px; width: 52px; height: 52px; display: none; }
.schau-pfeil--vor { left: 16px; } .schau-pfeil--nach { right: 16px; }
@media (min-width: 900px) { .schau-pfeil { display: inline-grid; } }

/* Angaben der mittleren Karte: auf deckendem Grund unter der Bühne */
.schau-schild { flex: none; padding: 12px var(--rand) 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; }
.schau-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 24px; }
.schau-teile { display: inline-flex; align-items: center; gap: 10px; }
.schau-teile i { display: flex; gap: 3px; }
.schau-teile i b { width: 14px; height: 2px; background: var(--linie-stark); }
.schau-teile i b.an { background: var(--elfenbein); }
.schau-titel { font: 400 clamp(1.625rem, 7.6vw, 2rem)/1.08 var(--serif); letter-spacing: -.01em; color: var(--elfenbein); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schau-titel em { font-style: italic; color: var(--sand); font-size: .7em; margin-left: .35em; }
.schau-angaben { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-height: 26px; }
.schau-angaben strong { font: 400 1.25rem/1 var(--serif); color: var(--elfenbein); font-variant-numeric: lining-nums tabular-nums; }
.schau-angaben .etikett { font-size: 0.75rem; padding: 6px 8px 5px; }
.schau-aktion { display: flex; gap: 8px; margin-top: 8px; }
.schau-aktion .knopf { padding: 8px 18px; }
.schau-aktion .knopf--hell { flex: 1 1 auto; min-width: 0; }

/* =====================================================================
   START
   ===================================================================== */
.einstieg { display: grid; grid-template-columns: minmax(0, 1fr); }
/* Erster Bildschirm: Bühne, Angaben, Hauptaktion; die Pille hat ihren eigenen Platz */
.einstieg-oben { display: flex; flex-direction: column; height: calc(100vh - var(--kopf)); height: calc(100svh - var(--kopf)); min-height: 470px; max-height: 940px; padding-bottom: var(--unten); }
.einstieg-text { padding-top: 26px; padding-bottom: 20px; display: grid; gap: 18px; }
.kopfzeile { display: flex; justify-content: space-between; align-items: center; gap: 4px 16px; flex-wrap: wrap; }
.kopfzeile .klein { letter-spacing: .09em; }
.titelblatt-leiste.kopfzeile .klein { letter-spacing: .09em; }
@media (min-width: 900px) {
  .einstieg { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); height: calc(100vh - var(--kopf)); min-height: 620px; max-height: 1100px; }
  .einstieg-oben { grid-column: 2; grid-row: 1; height: auto; min-height: 0; max-height: none; padding-bottom: 0; }
  .einstieg-text { grid-column: 1; grid-row: 1; align-content: end; padding-top: 40px; padding-bottom: 44px; gap: 28px; }
  .einstieg .gross { font-size: clamp(2.75rem, 4.7vw, 4.875rem); }
  .einstieg .schau-buehne { max-height: none; }
  .einstieg .schau-platz { width: clamp(26cqw, calc(76cqh * var(--f, .8)), 60cqw); }
  .schau-schild { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; column-gap: 32px; padding-top: 16px; padding-bottom: 20px; }
  .schau-kopf, .schau-titel, .schau-angaben { grid-column: 1; }
  .schau-titel { font-size: clamp(1.625rem, 2.1vw, 2rem); }
  .schau-aktion { grid-column: 2; grid-row: 1 / 4; align-self: center; margin-top: 0; }
  .schau-aktion .knopf { padding: 8px 26px; white-space: nowrap; }
}

/* ---------- Drei Worte + die nummerierte Reihe (bleibt) -------------- */
.portal { padding: 56px 0 0; }
.portal-kopf { display: grid; gap: 14px; padding-bottom: 30px; }
.dreiworte { display: flex; flex-wrap: wrap; column-gap: .28em; }
.dreiworte span:nth-child(2) { font-style: italic; }
.portal-liste { border-top: 1px solid var(--linie); }
.portal-liste a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 16px; padding: 20px var(--rand) 22px; border-bottom: 1px solid var(--linie);
  transition: background-color .35s;
}
.portal-nr { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; min-height: 28px; }
.portal-liste strong { font: 400 clamp(2.375rem, 11.4vw, 3.75rem)/1 var(--serif); letter-spacing: -.02em; color: var(--elfenbein); }
.portal-liste small { grid-column: 1; font-size: 0.9062rem; color: var(--sand); line-height: 1.4; }
.portal-liste .pfeil { grid-column: 2; grid-row: 2 / 4; align-self: center; font-size: 1.375rem; color: var(--elfenbein); transition: transform .4s var(--weich); }
@media (hover: hover) { .portal-liste a:hover { background: var(--mahagoni); } .portal-liste a:hover .pfeil { transform: translateX(6px); } }
@media (min-width: 900px) {
  .portal { padding-top: var(--abschnitt); }
  .portal-kopf { grid-template-columns: 5fr 7fr; align-items: end; padding-bottom: 56px; }
  .portal-liste { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--linie); }
  .portal-liste a { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; min-height: 360px; padding: 22px 22px 26px; border-bottom: 0; border-right: 1px solid var(--linie); align-items: start; height: 100%; }
  .portal-liste li:last-child a { border-right: 0; padding-right: var(--rand); }
  .portal-liste li:first-child a { padding-left: var(--rand); }
  .portal-liste strong { grid-row: 3; font-size: clamp(2.125rem, 3.5vw, 3.625rem); align-self: end; }
  .portal-liste small { grid-row: 4; margin-top: 8px; min-height: 2.8em; }
  .portal-liste .pfeil { grid-column: 1; grid-row: 2; align-self: start; margin-top: 18px; }
}

/* ---------- Für Erick auf der Startseite (wärmerer Grund, kein Lichthof) */
.erick-kapitel { margin-top: var(--abschnitt); padding: 64px var(--rand); background: linear-gradient(rgba(var(--erick-rgb), var(--schleier-kraft)), rgba(var(--erick-rgb), var(--schleier-kraft))), var(--korn) 0 0 / 128px 128px, var(--erick-grund); }
.erick-raster { display: grid; gap: 28px; }
.erick-wort { display: grid; gap: 14px; justify-items: start; }
.erick-satz { font: 500 clamp(1.5rem, 2.6vw, 2.25rem)/1.2 var(--serif); color: var(--elfenbein); max-width: 24em; text-wrap: balance; }
.erick-wort .vorspann { font-size: 1.125rem; line-height: 1.55; }
.erick-foto { display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr); gap: 16px; align-items: end; }
.erick-foto img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.erick-foto figcaption { font-size: 0.875rem; line-height: 1.5; color: var(--sand); }
.erick-zahl { display: grid; gap: 12px; align-content: start; }
.erick-zahl .ziffer { font-size: clamp(3.125rem, 9vw, 6.5rem); }
.erick-zahl .ziffer small, .e-stand .ziffer small { font-size: .42em; letter-spacing: 0; margin-left: .12em; }
.etappen { display: grid; gap: 20px; margin: 8px 0 6px; }
.etappe { display: grid; gap: 7px; }
.etappe-kopf { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.etappe-kopf strong { font: 500 0.875rem/1.2 var(--grotesk); color: var(--elfenbein); }
.etappe h3 { font: 400 1.375rem/1.2 var(--serif); color: var(--elfenbein); }
.etappe p { font-size: 0.9375rem; line-height: 1.45; color: var(--text); }
.etappe .etappe-betrag { font-size: 0.875rem; color: var(--elfenbein); font-variant-numeric: tabular-nums; }
.etappe .mass { margin-top: 3px; }
.erick-rechnung { font-size: 0.9375rem; line-height: 1.5; color: var(--text); border-top: 1px solid var(--linie); padding-top: 12px; }
.erick-rechnung strong { color: var(--elfenbein); font-weight: 600; }
.erick-aktion { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; margin-top: 6px; }
@media (min-width: 900px) {
  .erick-kapitel { padding-top: 110px; padding-bottom: 110px; }
  .erick-raster { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 80px; row-gap: 44px; align-items: start; }
  .erick-wort { grid-column: 1; }
  .erick-foto { grid-column: 2; grid-row: 1 / 3; grid-template-columns: minmax(0, 1fr); align-self: stretch; align-content: start; }
  .erick-zahl { grid-column: 1; max-width: 640px; }
}

/* ---------- Preisleiter ---------------------------------------------- */
.leiter { padding: var(--abschnitt) 0 0; }
.leiter-kopf { display: grid; gap: 14px; padding-bottom: 28px; }
.sprossen { border-top: 1px solid var(--linie); }
.sprosse {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(76px, auto); align-items: center; gap: 2px 14px; padding: 14px var(--rand); border-bottom: 1px solid var(--linie);
  min-height: 96px; transition: background-color .35s;
}
.sprosse-bild { grid-row: 1 / 3; width: 56px; height: 68px; display: grid; place-items: center; background: var(--mahagoni); }
.sprosse-bild img { max-width: 44px; max-height: 56px; width: auto; height: auto; }
.sprosse h3 { font: 400 1.375rem/1.1 var(--serif); color: var(--elfenbein); align-self: end; overflow-wrap: anywhere; }
.sprosse p { grid-column: 2; font-size: 0.875rem; line-height: 1.4; color: var(--sand); align-self: start; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sprosse-preis { grid-column: 3; grid-row: 1 / 3; text-align: right; font: 400 1.3125rem/1.1 var(--serif); color: var(--elfenbein); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.sprosse-preis small { display: block; font: 500 0.75rem/1.5 var(--grotesk); letter-spacing: .12em; text-transform: uppercase; color: var(--sand); }
@media (hover: hover) { .sprosse:hover { background: var(--mahagoni); } }
.leiter-fuss { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; }
@media (min-width: 900px) {
  .leiter-kopf { grid-template-columns: 5fr 7fr; align-items: end; padding-bottom: 56px; }
  .sprossen { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; border-top: 0; border-bottom: 1px solid var(--linie); padding: 0 var(--rand); }
  /* gestufte Bänder: jede Sprosse steht höher als die vorige */
  .sprosse { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; align-content: start; gap: 8px; padding: 22px 22px 24px; border-bottom: 0; border-left: 1px solid var(--linie); border-top: 1px solid var(--linie); min-height: calc(250px + var(--stufe) * 46px); background: rgba(var(--mahagoni-rgb), calc(var(--stufe) * .2)); }
  .sprosse:last-child { border-right: 1px solid var(--linie); }
  .sprosse-bild { grid-row: auto; width: 84px; height: 100px; margin-bottom: 8px; }
  .sprosse-bild img { max-width: 68px; max-height: 84px; }
  .sprosse h3 { align-self: start; font-size: 1.625rem; }
  .sprosse p { grid-column: 1; }
  .sprosse-preis { grid-column: 1; grid-row: 4; text-align: left; font-size: 2.125rem; }
}

/* ---------- Zwischenruf: der Spiegel nur als Schimmer ----------------- */
.ruf { padding: var(--abschnitt) var(--rand); }
.ruf-kopf { margin-bottom: 20px; }
.ruf .zitat { font-size: clamp(min(1.9375rem, 9vw), 7.4vw, 6.5rem); line-height: 1.03; max-width: 15em; }
.ruf-raum {
  height: clamp(40px, 6vw, 72px); overflow: hidden; margin-top: .1em; opacity: .12; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 62%); mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
}
.ruf-spiegel { transform: scaleY(-1); filter: blur(2px); }

/* =====================================================================
   SEITENKOPF (Unterseiten)
   ===================================================================== */
.seitenkopf { padding: 26px var(--rand) 22px; display: grid; gap: 14px; }
.seitenkopf-zeile { display: flex; justify-content: space-between; align-items: center; gap: 4px 16px; flex-wrap: wrap; min-height: 32px; }
@media (min-width: 900px) {
  .seitenkopf { padding-top: 64px; padding-bottom: 44px; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; align-items: end; gap: 18px 64px; }
  .seitenkopf-zeile, .seitenkopf .riesig, .seitenkopf .werkzeug { grid-column: 1 / -1; }
  .seitenkopf .vorspann { grid-column: 1; }
}
/* Filter als eine waagerecht wischbare Zeile, daneben der Umschalter */
.werkzeug { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.filter { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--rand) * -1); padding: 3px var(--rand); }
.filter::-webkit-scrollbar { display: none; }
.filter .chip { flex: none; }
.filter-reihe { font-size: 0.9375rem; color: var(--sand); max-width: 34em; }
.ansicht { display: inline-flex; align-self: start; justify-self: start; border: 1px solid var(--feld-linie); border-radius: 999px; padding: 3px; }
.ansicht a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 76px; padding: 0 18px; border-radius: 999px; font: 500 0.875rem/1 var(--grotesk); color: var(--text); }
.ansicht a[aria-current="true"] { background: var(--elfenbein); color: var(--pech); }
@media (min-width: 900px) { .werkzeug { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 32px; } .werkzeug .filter-reihe { grid-column: 1 / -1; } .filter { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } }

/* ---------- Werke: Index (Standard) ----------------------------------- */
.index { border-top: 1px solid var(--linie); margin-bottom: var(--abschnitt); }
.zeile {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-rows: auto auto auto; column-gap: 14px; row-gap: 1px; align-items: center;
  padding: 10px var(--rand); min-height: 100px; border-bottom: 1px solid var(--linie); transition: background-color .3s;
}
.zeile-bild { grid-row: 1 / 4; width: 64px; height: 80px; display: grid; place-items: center; background: var(--mahagoni); }
.zeile-bild img { max-width: 56px; max-height: 72px; width: auto; height: auto; }
.zeile[data-zustand="verkauft"] .zeile-bild img { filter: saturate(.7) brightness(.85); }
.zeile-nr { grid-column: 2; grid-row: 1; align-self: center; }
.zeile .zustand { grid-column: 3; grid-row: 1; justify-self: end; align-self: center; }
.zeile-titel { grid-column: 2 / 4; grid-row: 2; font: 400 1.375rem/1.14 var(--serif); color: var(--elfenbein); overflow-wrap: break-word; padding: 2px 0 1px; }
.zeile-technik { grid-column: 2; grid-row: 3; align-self: start; font-size: 0.875rem; line-height: 1.35; color: var(--sand); }
.zeile-preis { grid-column: 3; grid-row: 3; align-self: end; text-align: right; font: 400 1.3125rem/1.1 var(--serif); color: var(--elfenbein); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.zeile .etikett { grid-column: 2 / 4; grid-row: 4; justify-self: start; margin-top: 6px; }
.index--innen { margin-bottom: 0; }
.index--innen .zeile { padding-left: 0; padding-right: 0; }
.zeile[data-zustand="verkauft"] .zeile-preis { color: var(--sand); }
@media (hover: hover) { .zeile:hover { background: var(--mahagoni); } }
@media (max-width: 359px) { .zeile { grid-template-columns: 52px minmax(0, 1fr) auto; column-gap: 10px; } .zeile-bild { width: 52px; height: 68px; } .zeile-bild img { max-width: 46px; max-height: 60px; } .zeile-titel { font-size: 1.25rem; } }
@media (min-width: 900px) {
  .zeile { grid-template-columns: 84px 64px minmax(0, 5fr) minmax(0, 4fr) minmax(140px, 2fr) minmax(110px, auto); grid-template-rows: auto auto; align-content: center; column-gap: 28px; min-height: 124px; padding-top: 12px; padding-bottom: 12px; }
  .zeile-bild { grid-row: 1 / 3; grid-column: 1; width: 84px; height: 100px; }
  .zeile-bild img { max-width: 72px; max-height: 88px; }
  .zeile-nr { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .zeile-titel { grid-column: 3; grid-row: 1; font-size: clamp(1.625rem, 2.4vw, 2.25rem); align-self: center; }
  .zeile .etikett { grid-column: 3; grid-row: 2; margin-top: 2px; }
  .zeile:not(:has(.etikett)) .zeile-titel { grid-row: 1 / 3; }
  .zeile-technik { grid-column: 4; grid-row: 1 / 3; align-self: center; font-size: 0.9375rem; }
  .zeile .zustand { grid-column: 5; grid-row: 1 / 3; justify-self: start; align-self: center; }
  .zeile-preis { grid-column: 6; grid-row: 1 / 3; align-self: center; font-size: 1.625rem; }
}
.leer { padding: 40px var(--rand) 80px; }
.seitenkopf--knapp { padding-top: 16px; padding-bottom: 14px; gap: 10px; }
.seitenkopf--knapp .vorspann, .seitenkopf--knapp .filter-reihe { display: none; }
.werke-schau { display: flex; flex-direction: column; margin-bottom: 40px; border-top: 1px solid var(--linie); }
.werke-schau .schau-buehne { flex: none; height: 50vh; height: 50svh; min-height: 300px; max-height: 560px; }
@media (min-width: 900px) { .seitenkopf--knapp { padding-top: 32px; } .werke-schau { margin-bottom: var(--abschnitt); } .werke-schau .schau-buehne { height: 62vh; max-height: 680px; } .werke-schau .schau-platz { width: clamp(20cqw, calc(78cqh * var(--f, .8)), 44cqw); } }

/* Karte mit Werk (Werkreihe für Erick, Vorschau) */
.haeng { display: grid; gap: 14px; }
.haeng-buehne { position: relative; display: grid; place-items: center; padding: 22px 0 26px; }
.haeng-buehne img { position: relative; z-index: 1; width: auto; height: auto; max-width: 82%; max-height: 56vh; max-height: 56svh; box-shadow: 0 34px 60px -18px rgba(0, 0, 0, .78), 0 0 0 1px rgba(241, 234, 223, .05); }
.haeng-schild { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: baseline; border-top: 1px solid var(--linie); padding-top: 12px; }
.haeng-schild h3 { grid-column: 1 / -1; }
.haeng-schild h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.haeng-schild .haeng-technik { grid-column: 1; font-size: 0.9375rem; line-height: 1.45; color: var(--sand); }
.haeng-schild .haeng-technik span { white-space: nowrap; }
.haeng-schild .haeng-preis { grid-column: 2; font: 400 1.375rem/1.1 var(--serif); color: var(--elfenbein); font-variant-numeric: lining-nums tabular-nums; text-align: right; white-space: nowrap; }

/* Verweis-Band */
.band { border-top: 1px solid var(--linie); padding: 52px var(--rand); display: grid; gap: 14px; }
.band .titel { max-width: 18em; }
.band-aktion { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; }
@media (min-width: 900px) { .band { grid-template-columns: 7fr 5fr; align-items: end; padding-top: 88px; padding-bottom: 88px; } .band-aktion { justify-content: flex-end; } .band > .klein { grid-column: 1 / -1; } }

/* =====================================================================
   WERKDETAIL (ganze Werkseite)
   ===================================================================== */
.detail-kopf { padding: 4px var(--rand) 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; }
.detail { display: grid; }
.detail-buehne { position: relative; height: clamp(320px, 58vh, 720px); height: clamp(320px, 58svh, 720px); --bmax: 84cqw; --hmax: 86cqh; }
.schild { padding: 20px var(--rand) 0; display: grid; gap: 14px; }
.schild-oben { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.schild h1 { font-size: clamp(2.375rem, 10.5vw, 4.5rem); line-height: .98; letter-spacing: -.018em; }
.schild-jahr { font: italic 400 1.3125rem/1.1 var(--serif); color: var(--sand); }
.schild-erick { display: grid; gap: 10px; justify-items: start; padding: 12px 0 2px; }
.schild-erick p { font-size: 0.9375rem; line-height: 1.5; color: var(--text); }
.schild-ehre { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.schild-ehre p { color: var(--elfenbein); font: italic 400 1.1875rem/1.3 var(--serif); }
.schild-aktion { display: grid; gap: 10px; margin-top: 6px; }
.schild-liste { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; border: 1px solid var(--linie-stark); padding: 16px 16px 14px; background: var(--mahagoni); }
.schild-liste .feldzeile input { font-size: 1.375rem; min-height: 48px; }
@media (max-width: 899px) { body.hat-kaufleiste .nur-breit { display: none; } }
@media (min-width: 900px) {
  .detail { grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); column-gap: 56px; padding: 0 var(--rand); align-items: start; }
  .detail-buehne { height: calc(100vh - var(--kopf) - 96px); min-height: 520px; max-height: 900px; position: sticky; top: calc(var(--kopf) + 24px); --bmax: 78cqw; --hmax: 88cqh; }
  .schild { padding: 40px 0 0; }
  .schild h1 { font-size: clamp(2.75rem, 4.4vw, 4.25rem); }
}
.abschnitt { padding: 52px var(--rand) 0; display: grid; gap: 18px; }
.abschnitt--linie { border-top: 1px solid var(--linie); margin-top: 52px; }
.detail-teile { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .detail-teile .abschnitt { padding-left: 0; padding-right: 0; padding-top: 44px; }
  .detail-teile .abschnitt--linie { margin-top: 44px; }
}
/* Vertrauen: so läuft der Kauf, Zertifikat, Auszeichnungen */
.vertrauen { display: grid; gap: 16px; }
.ablauf { border-top: 1px solid var(--linie); counter-reset: schritt; }
.ablauf li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 8px; padding: 12px 0 11px; border-bottom: 1px solid var(--linie); align-items: baseline; counter-increment: schritt; }
.ablauf li::before { content: counter(schritt); grid-row: 1 / 3; font: 400 1.375rem/1 var(--serif); color: var(--sand); font-variant-numeric: lining-nums; }
.ablauf strong { font: 400 1.25rem/1.2 var(--serif); color: var(--elfenbein); }
.ablauf span { grid-column: 2; overflow-wrap: anywhere; font-size: 0.9375rem; line-height: 1.45; color: var(--text); }
.belege { font-size: 0.9375rem; line-height: 1.5; color: var(--text); display: grid; gap: 4px; }
.belege li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; }
.belege b { font-weight: 400; color: var(--sand); font-variant-numeric: tabular-nums; }
.beigaben { display: grid; gap: 0; border-top: 1px solid var(--linie); }
.beigabe { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 8px; padding: 14px 0; border-bottom: 1px solid var(--linie); align-items: baseline; }
.beigabe h3 { font: 400 1.375rem/1.15 var(--serif); color: var(--elfenbein); }
.beigabe p { grid-column: 2; font-size: 0.9688rem; line-height: 1.5; color: var(--text); }
.verweis { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 16px; background: var(--mahagoni); border: 1px solid var(--linie); }
.verweis-bild { grid-row: 1 / 4; width: 76px; height: 96px; display: grid; place-items: center; background: var(--pech); }
.verweis-bild img { max-width: 60px; max-height: 80px; width: auto; height: auto; }
.verweis :is(h2, h3, h4) { font: 400 1.375rem/1.15 var(--serif); color: var(--elfenbein); align-self: end; }
.verweis p { font-size: 0.9375rem; color: var(--text); }
.verweis .textlink { align-self: start; }
.blaettern { margin-top: 64px; border-top: 1px solid var(--linie); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.blaettern a, .blaettern button { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 18px var(--rand) 20px; min-height: 104px; align-content: center; align-items: center; text-align: left; }
.blaettern a + a, .blaettern button + button { border-left: 1px solid var(--linie); grid-template-columns: minmax(0, 1fr) 44px; text-align: right; }
.blaettern .b-bild { grid-row: 1 / 3; width: 44px; height: 56px; display: grid; place-items: center; background: var(--mahagoni); }
.blaettern .b-bild img { max-width: 38px; max-height: 50px; width: auto; height: auto; }
.blaettern a + a .b-bild, .blaettern button + button .b-bild { grid-column: 2; }
.blaettern .klein { align-self: end; }
.blaettern strong { align-self: start; font: 400 clamp(1.1875rem, 2.4vw, 1.875rem)/1.1 var(--serif); color: var(--elfenbein); overflow-wrap: anywhere; }
@media (hover: hover) { .blaettern a:hover, .blaettern button:hover { background: var(--mahagoni); } }

/* =====================================================================
   DAS DATENBLATT — die Karte klappt an Ort und Stelle auf (natives <dialog>)
   ===================================================================== */
.db { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); overflow: hidden; }
.db::backdrop { background: rgba(var(--tief-rgb), .8); }
.db-grund { position: absolute; inset: 0; background: linear-gradient(rgba(var(--mahagoni-rgb), var(--schleier-kraft)), rgba(var(--mahagoni-rgb), var(--schleier-kraft))), var(--korn) 0 0 / 128px 128px, var(--mahagoni); transition: opacity 320ms var(--weich); }
.db-rahmen { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); }
.db-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 0 8px 0 var(--rand); border-bottom: 1px solid var(--linie-stark); transition: opacity 320ms var(--weich); }
.db-kopf-links { display: flex; align-items: center; gap: 14px; min-width: 0; }
.db-kopf-rechts { display: flex; align-items: center; gap: 2px; }
.db-kopf button { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; color: var(--elfenbein); font: 500 0.875rem/1 var(--grotesk); padding: 0 8px; border-radius: 22px; }
.db-kopf button[aria-disabled="true"] { opacity: .35; }
.db-koerper { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.db-bild { position: relative; height: 42vh; height: 42svh; min-height: 220px; --bmax: 86cqw; --hmax: 86cqh; }
.db-bild .passung-bild img { transform-origin: 0 0; }
.db-blatt { display: grid; gap: 14px; padding: 18px var(--rand) 28px; transition: opacity 360ms var(--weich) 90ms, transform 460ms var(--weich) 90ms; }
.db-titel { font: 400 clamp(2.125rem, 9.4vw, 3.5rem)/1 var(--serif); letter-spacing: -.016em; color: var(--elfenbein); outline: 0; }
.db-gedanke { font: 400 clamp(1.375rem, 2.4vw, 1.75rem)/1.2 var(--serif); color: var(--elfenbein); text-wrap: balance; }
.db-beilage { font-size: 0.9688rem; line-height: 1.5; color: var(--text); }
.db-blatt h3.klein { margin-top: 12px; }
.db-fuss { display: flex; flex-wrap: wrap; gap: 0 24px; }
.db .blaettern { margin-top: 8px; margin-left: calc(var(--rand) * -1); margin-right: calc(var(--rand) * -1); }
.db-aktion { padding: 10px var(--rand) calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--linie-stark); display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; background: var(--mahagoni); transition: opacity 320ms var(--weich); }
/* Zustand vor dem Aufklappen: nur das Werk ist da, das Blatt entfaltet sich */
.db.kommt .db-grund, .db.kommt .db-kopf, .db.kommt .db-aktion, .db.geht .db-grund, .db.geht .db-kopf, .db.geht .db-aktion { opacity: 0; }
.db.kommt .db-blatt, .db.geht .db-blatt { opacity: 0; transform: translateY(26px); }
.db.kommt::backdrop, .db.geht::backdrop { background: transparent; }
.db-bild.nacht { background: none; }
.db-bild::before { content: ""; position: absolute; inset: 0; transition: opacity 320ms var(--weich);
  background: var(--korn) 0 0 / 128px 128px, var(--buehne); }
.db-bild .spot { transition: opacity 320ms var(--weich); }
.db.kommt .db-bild::before, .db.geht .db-bild::before, .db.kommt .spot, .db.geht .spot { opacity: 0; }
@media (min-width: 900px) {
  .db-grund, .db-rahmen { inset: 5vh max(3vw, calc((100vw - 1240px) / 2)); }
  .db-rahmen { grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .db-kopf { grid-column: 1 / -1; padding: 0 12px 0 28px; min-height: 60px; }
  .db-koerper { display: contents; }
  .db-bild { grid-column: 1; grid-row: 2; height: auto; min-height: 0; z-index: 2; }
  .db-blatt { grid-column: 2; grid-row: 2; overflow-y: auto; overscroll-behavior: contain; padding: 30px 32px 110px; align-content: start; }
  .db-aktion { grid-column: 2; grid-row: 2; align-self: end; z-index: 3; padding: 12px 32px 16px; }
  .db .blaettern { margin-left: -32px; margin-right: -32px; }
  .db .blaettern a, .db .blaettern button { padding-left: 32px; padding-right: 32px; }
}

/* =====================================================================
   EDITIONEN
   ===================================================================== */
.regal { padding: 10px var(--rand) var(--abschnitt); display: grid; gap: 44px; }
.ware { display: grid; gap: 14px; }
.ware-buehne { position: relative; display: grid; place-items: center; height: clamp(240px, 74vw, 340px); }
.ware-schild { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 16px; align-items: baseline; border-top: 1px solid var(--linie); padding-top: 12px; }
.ware-schild .kopfzeile { grid-column: 1 / -1; }
.ware-schild h2 { grid-column: 1; }
.ware-schild h2 a { display: inline-flex; align-items: center; min-height: 44px; }
.ware-schild h2 small, .kauf-schild h1 small, .posten h3 small, .verweis :is(h2, h3, h4) small { display: block; font: italic 400 .7em/1.2 var(--serif); color: var(--sand); letter-spacing: 0; }
.ware-preis { grid-column: 2; font: 400 1.5rem/1.1 var(--serif); color: var(--elfenbein); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.ware-schild p { grid-column: 1 / -1; font-size: 0.9375rem; line-height: 1.45; color: var(--sand); max-width: 30em; }
.ware-schild .etikett { justify-self: start; grid-column: 1 / -1; margin-top: 4px; }
.auflage { grid-column: 1 / -1; display: grid; gap: 8px; margin-top: 6px; }
.auflage-teile { display: flex; gap: 4px; }
.auflage-teile i { flex: 1; height: 3px; background: var(--linie-stark); }
.auflage-teile i.frei { background: var(--elfenbein); }
.auflage p { font-size: 0.875rem; color: var(--text); }
@media (min-width: 900px) {
  .regal { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 110px; padding-top: 30px; align-items: start; }
  .ware:nth-child(4n+1) { grid-column: 1 / span 5; }
  .ware:nth-child(4n+2) { grid-column: 7 / span 6; margin-top: 150px; }
  .ware:nth-child(4n+3) { grid-column: 2 / span 6; }
  .ware:nth-child(4n+4) { grid-column: 9 / span 4; margin-top: 120px; }
  .ware-buehne { height: clamp(340px, 34vw, 500px); }
}

/* Produkt-Stellvertreter (Druck, Leinwand, Tasche): gedämpftes Papier, damit das Original das Hellste bleibt */
.produkt { position: relative; z-index: 1; height: 82%; aspect-ratio: var(--pf, .8); display: grid; place-items: center; max-width: 86%; }
.produkt-blatt { position: relative; width: 100%; height: 100%; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; box-shadow: 0 34px 60px -18px rgba(0, 0, 0, .78); }
.produkt-blatt img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; box-shadow: none; }
.produkt--druck .produkt-blatt, .produkt--limitiert .produkt-blatt { background: linear-gradient(180deg, rgba(var(--pech-rgb), 0), rgba(var(--pech-rgb), .18)), var(--papier); padding: 9% 9% 12%; transition: border-color .4s; border: 0 solid transparent; }
.produkt--druck[data-rahmen="Rahmen Eiche"] .produkt-blatt { border: 9px solid #A9825A; box-shadow: 0 34px 60px -18px rgba(0, 0, 0, .78), inset 0 0 0 1px rgba(0, 0, 0, .25); }
.produkt--druck[data-rahmen="Rahmen Schwarz"] .produkt-blatt { border: 9px solid #0B0908; box-shadow: 0 34px 60px -18px rgba(0, 0, 0, .78), 0 0 0 1px rgba(241, 234, 223, .16), inset 0 0 0 1px rgba(0, 0, 0, .4); }
.produkt--limitiert .produkt-blatt::after { content: attr(data-vermerk); position: absolute; left: 9%; right: 9%; bottom: 3.6%; font: italic 400 clamp(0.5625rem, 2.6cqw, 0.8125rem)/1 var(--serif); color: #4f463e; }
.produkt--limitiert .produkt-blatt { container-type: inline-size; }
.produkt--leinwand .produkt-blatt { box-shadow: 0 34px 60px -18px rgba(0, 0, 0, .78), 7px 0 0 -1px rgba(0, 0, 0, .55), 8px 0 0 -1px rgba(241, 234, 223, .08); }
.produkt--tasche { height: 88%; aspect-ratio: .72; align-items: end; }
.produkt--tasche .produkt-blatt { height: 74%; background: linear-gradient(180deg, rgba(var(--pech-rgb), 0), rgba(var(--pech-rgb), .16)), #CFC6B7; padding: 15% 19% 21%; box-shadow: 0 34px 60px -18px rgba(0, 0, 0, .78), inset 0 -10px 24px rgba(74, 63, 55, .16); }
.produkt--tasche .produkt-blatt::before { content: ""; position: absolute; left: 29%; right: 29%; bottom: 99.5%; height: 31%; border: 6px solid #CFC6B7; border-bottom: 0; border-radius: 999px 999px 0 0; }

.regeln { border-top: 1px solid var(--linie); padding: var(--abschnitt) var(--rand); display: grid; gap: 24px; }
.regeln ol { border-top: 1px solid var(--linie); }
.regeln li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--linie); align-items: baseline; }
.regeln li p { font: 400 clamp(1.3125rem, 2.6vw, 2rem)/1.2 var(--serif); color: var(--elfenbein); }
@media (min-width: 900px) { .regeln { grid-template-columns: 4fr 8fr; column-gap: 64px; } }

/* ---------- Produktdetail ---------------------------------------------- */
.kauf { display: grid; }
.kauf-buehne { position: relative; display: grid; place-items: center; height: clamp(250px, 44vh, 520px); height: clamp(250px, 44svh, 520px); }
.kauf-schild { padding: 16px var(--rand) 0; display: grid; gap: 16px; }
.kauf-schild h1 { font-size: clamp(2.125rem, 9.4vw, 3.75rem); line-height: 1; letter-spacing: -.015em; }
.kauf-preis { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); padding: 12px 0 10px; }
.kauf-preis output { font: 400 2.625rem/1 var(--serif); color: var(--elfenbein); font-variant-numeric: lining-nums tabular-nums; }
.kauf-preis small { display: block; font-size: 0.875rem; color: var(--sand); text-align: right; }
.gruppe { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.gruppe legend { padding: 0; margin-bottom: 10px; }
.kauf-aktion { display: grid; gap: 10px; margin-top: 2px; }
.rechnung { display: grid; gap: 12px; background: var(--erick-grund); border: 1px solid var(--linie); padding: 20px 18px 18px; }
.rechnung .zeilen .an-erick dt, .rechnung .zeilen .an-erick dd { color: var(--elfenbein); }
.rechnung .zeilen .an-erick dd { font: 400 1.875rem/1 var(--serif); }
.rechnung .zeilen .an-erick dt { display: inline-flex; align-items: center; gap: 10px; }
.rechnung .zeilen .an-erick dt::before { content: ""; width: 18px; height: 3px; background: var(--karmin-linie); }
.rechnung-satz { font: 400 1.375rem/1.2 var(--serif); color: var(--elfenbein); }
@media (min-width: 900px) {
  .kauf { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); column-gap: 56px; padding: 0 var(--rand); align-items: start; }
  .kauf-buehne { height: calc(100vh - var(--kopf) - 96px); min-height: 520px; max-height: 860px; position: sticky; top: calc(var(--kopf) + 24px); }
  .kauf-schild { padding: 40px 0 0; }
  .kauf-schild h1 { font-size: clamp(2.5rem, 3.8vw, 3.625rem); }
}

/* =====================================================================
   FÜR ERICK (ganze Seite auf warmem Grund, ohne Blau, ohne Lichthof)
   ===================================================================== */
body[data-seite="erick"] { background: linear-gradient(rgba(var(--erick-rgb), var(--schleier-kraft)), rgba(var(--erick-rgb), var(--schleier-kraft))), var(--korn) 0 0 / 128px 128px, var(--erick-grund); }
body[data-seite="erick"] .kopf { background: linear-gradient(rgba(var(--erick-rgb), var(--schleier-kraft)), rgba(var(--erick-rgb), var(--schleier-kraft))), var(--korn) 0 0 / 128px 128px, var(--erick-grund); }
html:has(body[data-seite="erick"]) { background: var(--erick-grund); }
/* Erster Bildschirm: Foto, zwei Sätze, Stand, die Wege */
.e-kopf { padding: 14px var(--rand) 0; display: grid; gap: 12px; }
.e-kopf-titel { display: grid; gap: 8px; justify-items: start; }
.e-kopf .riesig { font-size: clamp(min(2.75rem, 12.5vw), 13vw, 10.5rem); line-height: .9; }
.e-vorstellung { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 14px; align-items: end; }
.e-vorstellung img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; max-height: 40vh; max-height: 40svh; }
.e-vorstellung p { font-size: 0.9688rem; line-height: 1.45; color: var(--text); }
.e-vorstellung p + p { margin-top: 8px; }
.e-kurzstand { display: grid; gap: 7px; }
.e-kurzstand p { font-size: 0.9062rem; line-height: 1.4; color: var(--elfenbein); font-variant-numeric: tabular-nums; }
.e-kurzstand p span { color: var(--sand); }
.e-wege-kurz { display: flex; flex-wrap: wrap; gap: 8px; }
.e-wege-kurz .chip { padding: 0 14px; }
.e-teil { padding: 60px var(--rand) 0; display: grid; gap: 20px; }
.e-teil--linie { border-top: 1px solid var(--linie); margin-top: 60px; }
.e-satz { font: 500 clamp(1.625rem, 3.2vw, 2.25rem)/1.2 var(--serif); color: var(--elfenbein); max-width: 24em; text-wrap: balance; }
.e-lauf p { font-size: 1.125rem; line-height: 1.55; color: var(--text); max-width: 34em; }
.e-lauf p + p { margin-top: 1em; }
.e-foto img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.e-foto figcaption { font-size: 0.875rem; line-height: 1.5; color: var(--sand); padding-top: 8px; }
.e-stand { display: grid; gap: 8px; }
/* Drei Wege: gleichrangige, ganz klickbare Zeilen */
.wege { border-top: 1px solid var(--linie); }
.weg a { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; padding: 18px 0 18px; min-height: 72px; border-bottom: 1px solid var(--linie); transition: background-color .3s; }
.weg strong { font: 400 clamp(1.625rem, 3vw, 2.125rem)/1.08 var(--serif); color: var(--elfenbein); }
.weg p { grid-column: 2; font-size: 1rem; line-height: 1.45; color: var(--text); }
.weg small { grid-column: 2; font-size: 0.875rem; color: var(--sand); }
.weg .pfeil { grid-column: 3; grid-row: 1 / 3; align-self: center; font-size: 1.375rem; color: var(--elfenbein); transition: transform .4s var(--weich); }
@media (hover: hover) { .weg a:hover .pfeil { transform: translateX(6px); } }
.e-reihe { display: grid; gap: 34px; }
.e-seite { margin-top: 60px; border-top: 1px solid var(--linie); padding: 48px var(--rand) 60px; display: grid; gap: 12px; justify-items: start; }
@media (min-width: 900px) {
  .e-kopf { padding-top: 48px; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 72px; row-gap: 22px; align-items: start; }
  .e-kopf > * { grid-column: 1; }
  .e-vorstellung { display: contents; }
  .e-vorstellung figure { grid-column: 2; grid-row: 1 / 6; }
  .e-vorstellung img { max-height: 70vh; }
  .e-vorstellung div { grid-column: 1; max-width: 34em; }
  .e-vorstellung p { font-size: 1.125rem; }
  .e-kurzstand { max-width: 560px; }
  .e-teil { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: 48px; padding-top: 96px; align-items: start; }
  .e-teil--linie { margin-top: 96px; }
  .e-teil > :not(h2) { grid-column: 2; }
  .e-teil > h2 { grid-column: 1; grid-row: 1 / span 8; position: sticky; top: calc(var(--kopf) + 28px); }
  .e-reihe { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
  .e-reihe .haeng-buehne img { max-height: 48vh; }
  .rechnung--breit, .e-stand-block { max-width: 620px; }
  .e-seite { padding-top: 80px; padding-bottom: 100px; }
}

/* =====================================================================
   M.AI (Identität) — bleibt, wie sie ist
   ===================================================================== */
.titelblatt { padding: 22px var(--rand) 0; display: grid; gap: 18px; }
.titelblatt-leiste { display: flex; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; border-top: 1px solid var(--linie-stark); border-bottom: 1px solid var(--linie-stark); padding: 9px 0 8px; }
.titelblatt .riesig { font-size: clamp(min(6.875rem, 36vw), 39vw, 26.25rem); line-height: .78; letter-spacing: -.05em; margin: 4px 0 0 -.03em; }
.titelblatt-bild { position: relative; height: clamp(360px, 64vh, 760px); height: clamp(360px, 64svh, 760px); --bmax: 86cqw; --hmax: 92cqh; --f: .8; }
.titelblatt-zeilen { display: grid; gap: 12px; padding-bottom: 6px; }
@media (min-width: 900px) {
  .titelblatt { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; padding-top: 40px; align-items: end; }
  .titelblatt-leiste { grid-column: 1 / -1; }
  .titelblatt .riesig { font-size: clamp(16.25rem, 30vw, 32.5rem); align-self: start; }
  .titelblatt-bild { grid-column: 2; grid-row: 2 / 4; height: min(78vh, 820px); }
  .titelblatt-zeilen { grid-column: 1; padding-bottom: 20px; }
}
.manifest { padding: var(--abschnitt) var(--rand) 0; }
.manifest-kopf { display: grid; gap: 10px; padding-bottom: 28px; }
.satz { display: grid; gap: 14px; padding: 34px 0 38px; border-top: 1px solid var(--linie); }
.satz-kopf { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.satz .lauf p { color: var(--text); }
.satz .lauf p:last-child { color: var(--elfenbein); }
@media (min-width: 900px) {
  .satz { grid-template-columns: minmax(0, 2fr) minmax(0, 5fr) minmax(0, 5fr); column-gap: 48px; padding: 56px 0 64px; align-items: start; }
  .satz-kopf { flex-direction: column; gap: 14px; }
}
.weg-teil { padding: var(--abschnitt) var(--rand) 0; display: grid; gap: 30px; }
.stationen { position: relative; display: grid; gap: 0; margin-left: 2px; border-left: 1px solid var(--linie-stark); }
.station { position: relative; padding: 0 0 44px 26px; display: grid; gap: 8px; }
.station::before { content: ""; position: absolute; left: -5px; top: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--pech); border: 1px solid var(--elfenbein); }
.station:last-child { padding-bottom: 6px; }
.station .ziffer { font-size: clamp(3.5rem, 8vw, 6.5rem); }
.station h3 { font: italic 400 1.5rem/1.15 var(--serif); color: var(--elfenbein); }
.station p { font-size: 1.0312rem; line-height: 1.55; color: var(--text); max-width: 32em; }
@media (min-width: 900px) {
  .weg-teil { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
  .weg-teil > header { position: sticky; top: calc(var(--kopf) + 32px); }
  .weg-schluss { grid-column: 2; }
}
.weg-teil header { display: grid; gap: 16px; }
.ehren { padding: var(--abschnitt) var(--rand) 0; display: grid; gap: 22px; }
.ehren ol { border-top: 1px solid var(--linie); }
.ehren li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; padding: 16px 0 15px; border-bottom: 1px solid var(--linie); align-items: baseline; }
.ehren li b { font: 400 1.375rem/1 var(--serif); color: var(--sand); font-variant-numeric: lining-nums tabular-nums; }
.ehren li span { font-size: 1.0312rem; line-height: 1.4; color: var(--elfenbein); }
@media (min-width: 900px) { .ehren { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; } }
.gedanken { padding: var(--abschnitt) var(--rand); display: grid; gap: 22px; }
.gedanken-liste { border-top: 1px solid var(--linie); }
.gedanke { border-bottom: 1px solid var(--linie); }
.gedanke summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 8px 12px; padding: 22px 0 22px; align-items: start; }
.gedanke summary::-webkit-details-marker { display: none; }
.gedanke summary .nr { grid-column: 1 / -1; }
.gedanke summary h3 { font: 400 clamp(1.625rem, 4vw, 3rem)/1.06 var(--serif); letter-spacing: -.01em; color: var(--elfenbein); text-wrap: balance; }
.gedanke summary p { grid-column: 1; font-size: 1rem; line-height: 1.5; color: var(--sand); max-width: 32em; }
.gedanke summary .rund { grid-column: 2; grid-row: 2; }
.gedanke[open] summary .rund { transform: rotate(45deg); }
.gedanke[open] summary p { display: none; }
.gedanke-text { padding: 0 0 34px; }
.gedanke-text p { font: 400 clamp(1.1875rem, 2vw, 1.375rem)/1.55 var(--serif); color: var(--elfenbein); max-width: 31em; }
.gedanke-text p + p { margin-top: 1em; }
.gedanke--schlicht summary { padding: 14px 0; align-items: center; }
.gedanke--schlicht summary h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); }
.gedanke--schlicht summary .rund { grid-row: 1; }
.gedanke--schlicht .gedanke-text p { font: 400 1.125rem/1.55 var(--grotesk); color: var(--text); max-width: 34em; }
@media (min-width: 900px) { .gedanken { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: start; } }

/* =====================================================================
   KONTAKT
   ===================================================================== */
.anfrage { padding: 8px var(--rand) var(--abschnitt); display: grid; gap: 48px; }
.formular { display: grid; gap: 22px; }
.feld { display: grid; gap: 6px; }
.feld label, .gruppe legend { font: 500 0.75rem/1.4 var(--grotesk); letter-spacing: .14em; text-transform: uppercase; color: var(--sand); }
.feld input, .feld textarea, .feld select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--feld-linie); border-radius: 0; color: var(--elfenbein);
  font: 400 clamp(1.3125rem, 2.6vw, 1.75rem)/1.25 var(--serif); padding: 8px 0 10px; min-height: 52px; outline: 0; -webkit-appearance: none; appearance: none;
}
.feld select { font-size: clamp(1.1875rem, 2.4vw, 1.625rem); background-image: linear-gradient(45deg, transparent 50%, var(--elfenbein) 50%), linear-gradient(135deg, var(--elfenbein) 50%, transparent 50%); background-position: calc(100% - 13px) 55%, calc(100% - 7px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 30px; text-overflow: ellipsis; }
.feld select option { background: var(--mahagoni); color: var(--elfenbein); font-family: var(--grotesk); font-size: 1rem; }
.feld textarea { resize: vertical; min-height: 110px; font: 400 1.125rem/1.5 var(--grotesk); }
.feld input:focus-visible, .feld textarea:focus-visible, .feld select:focus-visible { border-bottom-color: var(--elfenbein); box-shadow: 0 2px 0 var(--elfenbein); }
.feld-fehler { display: none; font-size: 0.875rem; color: var(--elfenbein); }
.feld.hat-fehler .feld-fehler { display: block; }
.feld.hat-fehler .feld-fehler::before { content: "— "; }
.feld[hidden] { display: none; }
.haken span { overflow-wrap: anywhere; }
.haken { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 44px; font-size: 0.9688rem; color: var(--text); cursor: pointer; }
.haken input { width: 22px; height: 22px; margin: 0; accent-color: var(--elfenbein); }
.formular-fuss { display: grid; gap: 12px; justify-items: start; }
.bestaetigung { display: grid; gap: 16px; justify-items: start; border-top: 1px solid var(--linie-stark); padding-top: 24px; }
.bestaetigung > * { width: 100%; }
.bezug { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 14px; background: var(--mahagoni); border: 1px solid var(--linie-stark); }
.bezug-bild { grid-row: 1 / 5; width: 84px; height: 106px; display: grid; place-items: center; background: var(--pech); }
.bezug-bild img { max-width: 70px; max-height: 92px; width: auto; height: auto; }
.bezug h2 { font: 400 1.625rem/1.08 var(--serif); color: var(--elfenbein); }
.bezug p { font-size: 0.9062rem; line-height: 1.4; color: var(--sand); }
.bezug .bezug-preis { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; color: var(--elfenbein); }
.bezug .bezug-preis strong { font: 400 1.3125rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.kontakt-seite { display: grid; gap: 34px; align-content: start; }
.kontakt-block { display: grid; gap: 10px; border-top: 1px solid var(--linie); padding-top: 16px; }
.kontakt-block li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; overflow-wrap: anywhere; padding: 10px 0; border-bottom: 1px solid var(--linie); font-size: 0.9688rem; }
.kontakt-block li span:last-child { color: var(--elfenbein); }
.kontakt-block .liste-form .feldzeile input { font-size: clamp(1.3125rem, 2.4vw, 1.75rem); }
@media (min-width: 900px) { .anfrage { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 96px; padding-top: 24px; } }

/* =====================================================================
   DER AUFTAKT — ein Editions-Etikett, gut eine Sekunde, endet von selbst
   ===================================================================== */
.auftakt {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: var(--rand); cursor: pointer;
  background: var(--korn) 0 0 / 128px 128px, var(--buehne);
  animation: auftakt-aus 440ms cubic-bezier(.6, 0, .3, 1) 760ms forwards;
}
.auftakt-linie { position: absolute; left: 0; right: 0; top: calc(var(--kopf) - 3px); height: 3px; background: var(--karmin-linie); transform-origin: left center; transform: scaleX(0); animation: auftakt-linie 720ms cubic-bezier(.3, .1, .3, 1) forwards; }
.auftakt-etikett { width: min(100%, 420px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--linie-stark); border-bottom: 1px solid var(--linie-stark); }
.auftakt-etikett > * { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0 9px; border-bottom: 1px solid var(--linie); }
.auftakt-etikett > *:last-child { border-bottom: 0; }
.a-marke { font: 400 2.75rem/1 var(--serif); color: var(--elfenbein); letter-spacing: -.01em; }
.a-zahl b { font: 400 clamp(6rem, 34vw, 9.25rem)/.86 var(--serif); color: var(--elfenbein); letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; }
.a-zahl span { text-align: right; align-self: end; padding-bottom: 6px; max-width: 9em; }
.a-code { height: 52px; align-items: stretch !important; padding: 10px 0 !important; }
.a-code i { flex: 1; background: repeating-linear-gradient(90deg, var(--elfenbein) 0 2px, transparent 2px 5px, var(--elfenbein) 5px 6px, transparent 6px 11px, var(--elfenbein) 11px 14px, transparent 14px 16px, var(--elfenbein) 16px 17px, transparent 17px 23px, var(--elfenbein) 23px 25px, transparent 25px 27px); opacity: .9; }
.a-code span { flex: none; align-self: center; }
.auftakt--halt, .auftakt--halt * { animation-play-state: paused !important; }
.auftakt--halt .auftakt-linie { animation: none; transform: scaleX(.64); }
@keyframes auftakt-aus { to { opacity: 0; visibility: hidden; transform: scale(1.45); } }
@keyframes auftakt-linie { to { transform: scaleX(1); } }
@keyframes schau-einzug { from { transform: scale(.9); opacity: .2; } to { transform: none; opacity: 1; } }
html.hat-auftakt .schau-band { animation: schau-einzug 700ms var(--weich) 640ms both; }

/* ---------- Einblenden (nur Start) ------------------------------------- */
.js .zeig { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--weich), transform 800ms var(--weich); }
.js .zeig.ist-da { opacity: 1; transform: none; }

/* ---------- Eigener Zeiger: das kubistische Auge, nur mit Maus --------- */
@media (hover: hover) and (pointer: fine) {
  .werk-link, .schau-karte, .zeile {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='30' viewBox='0 0 38 30'%3E%3Cpath d='M2 15 19 3l17 12-17 12z' fill='%23F1EADF' stroke='%23120F0D' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M2 15 19 3l17 12z' fill='%231E62B8'/%3E%3Ccircle cx='19' cy='15' r='6' fill='%23FFB703' stroke='%23120F0D' stroke-width='1.2'/%3E%3Ccircle cx='19' cy='15' r='2.3' fill='%23120F0D'/%3E%3C/svg%3E") 19 15, pointer;
  }
}

/* ---------- Bewegung reduzieren --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation-duration: 0s !important; animation-delay: 0s !important; }
  .js .zeig { opacity: 1; transform: none; }
  .schau-buehne canvas, .auftakt { display: none; }
  .schau-blatt { transform: none; }
  .schau-blatt.hat-falten img { opacity: 1; }
  .falte { display: none; }
  .schau-band { scroll-behavior: auto; }
}
@media print { .kopf, .pille, .menue, .korb, .schleier, .auftakt { display: none; } }


/* =====================================================================
   FARBFASSUNGEN — auf Sergios Wunsch (19.11.): „dumpfe Farben, die
   trotzdem leuchten“, Blau und Orange wie auf seinem Bild mit dem Hund.
   Gewählt über ?ton=… (ton.js setzt data-ton am <html>). Ohne Angabe
   gilt „daemmerung“. Aufbau, Schrift und Abstände sind in allen gleich.
     schwarz     der bisherige Stand: warmes Schwarz, Blau nur in der Bühne
     blau        Blaue Stunde: tiefes Nachtblau als Grund, Orange bleibt Licht
     daemmerung  nah am Bild: Blau wird Fläche, unten glüht der Horizont,
                 das Kapitel für Erick steht auf Terrakotta, feines helles Korn
   ===================================================================== */
html[data-ton="blau"] {
  --pech: #0A121D; --pech-rgb: 10, 18, 29;
  --mahagoni: #101C2C; --mahagoni-rgb: 16, 28, 44;
  --mahagoni-hell: #19293E;
  --tabak: #36485F;
  --sand: #9A9C9F;
  --nacht: #0F2C4C; --nacht-hell: #1A446A; --rauch: #0E1724;
  --bernstein: #E6975A; --bernstein-rgb: 230, 151, 90;
  --terrakotta: #C4572A; --terrakotta-rgb: 196, 87, 42;
  --erick-grund: #26170F; --erick-flaeche: #352015; --erick-rgb: 38, 23, 15;
  --tief-rgb: 4, 8, 14;
  --sp-oben: #1A446A; --sp-mitte: #0F2C4C;
}
html[data-ton="daemmerung"] {
  --pech: #0B1D33; --pech-rgb: 11, 29, 51;
  --mahagoni: #102A47; --mahagoni-rgb: 16, 42, 71;
  --mahagoni-hell: #173A5E;
  --tabak: #46627F;
  --sand: #A9B3BF;
  --nacht: #163E63; --nacht-hell: #1F5178; --rauch: #0D1626;
  --bernstein: #E5A25B; --bernstein-rgb: 229, 162, 91;
  --terrakotta: #D16634; --terrakotta-rgb: 209, 102, 52;
  --erick-grund: #5A2812; --erick-flaeche: #6B3118; --erick-rgb: 90, 40, 18;
  --tief-rgb: 5, 10, 18;
  --linie: rgba(241, 234, 223, .17); --linie-stark: rgba(241, 234, 223, .32);
  --buehne: linear-gradient(180deg, #123559 0%, #1F5178 38%, #2A4E6E 56%, #A9502A 80%, #6E2D14 90%, var(--pech) 100%);
  --sp-oben: #1F5178; --sp-mitte: #163E63; --sp-horizont: #C85C2C; --sp-horizont-kraft: .82;
  --korn: url("korn-fein.png?v=3"); --schleier-kraft: 0;
  --horizont: radial-gradient(120% 100% at 50% 118%, rgba(209, 102, 52, .50) 0%, rgba(184, 78, 34, .26) 34%, rgba(122, 49, 21, .10) 58%, transparent 76%);
}
/* Horizont: liegt fest am unteren Bildrand unter allem Inhalt, wie der Boden im Bild */
html[data-ton="daemmerung"] body { isolation: isolate; }
html[data-ton="daemmerung"] body::before { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 46vh; z-index: -1; pointer-events: none; background: var(--horizont); }
/* Auf Terrakotta braucht die leise Schrift mehr Licht, die Maßlinie ein helleres Rot */
html[data-ton="daemmerung"] .erick-kapitel, html[data-ton="daemmerung"] body[data-seite="erick"] { --sand: #D9C3B1; --text: #EFE4D6; --karmin-linie: #FF8A7A; --karmin: #8E1118; }
html[data-ton="daemmerung"] body[data-seite="erick"]::before { display: none; }

/* Umschalter der Fassungen: gehört nur zur Vorschau, nicht zur fertigen Seite */
.ton-wahl { margin: 26px 0 0; padding: 14px 0 4px; border-top: 1px dashed var(--linie-stark); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.ton-wahl .klein { margin-right: 8px; }
.ton-wahl a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--linie-stark); border-radius: 999px; font: 500 0.8125rem/1 var(--grotesk); color: var(--text); }
.ton-wahl a[aria-current="true"] { background: var(--elfenbein); color: #120F0D; border-color: var(--elfenbein); }
.ton-wahl i { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(241, 234, 223, .4); }

/* =====================================================================
   AQUA — der Wasser-Effekt über einem eigenen Bild (aqua.js)
   Das Bild steht immer; die Wasserfläche blendet darüber ein, sobald sie lebt.
   ===================================================================== */
[data-aqua] { position: relative; touch-action: pan-y; }
[data-aqua] > canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: 0; transition: opacity 900ms var(--weich); pointer-events: none; }
[data-aqua].lebt > canvas { opacity: 1; }
.banner { margin: 0 0 44px; }
.aqua { overflow: hidden; width: 100%; aspect-ratio: 4 / 5; max-height: 84vh; max-height: 84svh; background: var(--rauch); cursor: crosshair; }
.aqua > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; }
.portal:has(.banner) { padding-top: 0; }
@media (min-width: 760px) { .aqua { aspect-ratio: 16 / 9; } .banner { margin-bottom: 72px; } }
@media (min-width: 1200px) { .aqua { aspect-ratio: 21 / 9; max-height: 78vh; } }
