/* Brilumo Piloten H1 bis H3 (2026-11-01). Gemeinsame Basis: Schriften, Papierkoernung, Knoepfe.
   Schriften lokal aus /fonts/fonts.css (Fraunces, Mona Sans, Caveat; alle SIL OFL).
   Bilder: nur echte Prism-Stilbeispiele (/prism/stil-beispiele/), Text nur echte Lantern-Ausgabe.
   Bewegung: transform und opacity, bei weniger Bewegung nur Deckkraft. Nicht live. */

:root {
  --anzeige: 'Fraunces', Georgia, serif;
  --text: 'Mona Sans', system-ui, sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
  --rand: clamp(16px, 5vw, 72px);
  --breite: 1240px;
  --aus: cubic-bezier(0.23, 1, 0.32, 1);
  --inaus: cubic-bezier(0.77, 0, 0.175, 1);
  --korn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 24px; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--text); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; touch-action: manipulation; min-height: 100vh; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; border-radius: 6px; }
main:focus { outline: none; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung { position: absolute; left: 12px; top: -64px; z-index: 99; padding: 10px 16px; border-radius: 10px; background: #fff; color: #111; font-weight: 600; text-decoration: none; }
.sprung:focus { top: 12px; }

/* Papierkoernung ueber der ganzen Seite, sehr leise */
.korn::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; background-image: var(--korn); opacity: 0.07; mix-blend-mode: multiply; }

/* ── Knopf Licht (Friedrich 2026-11-02: „ab jetzt überall solche Buttons in unserer Farbe“) ──
   Nach dem Reel @motion_ui_interface „Same button. Six decisions.“, in Brilumo-Farben:
   01 Größe: mindestens 48 px hoch, 24 px seitlich. 02 Beschriftung: 17 px halbfett, Verb plus Objekt.
   03 Kontrast: Creme auf Tinte, Kante in Kupfer. 04 Tiefe: Licht von oben, Oberkante hell, Mulde
   rundherum, Schatten fällt nach unten. 05 Pille (Radius = Höhe / 2), ein Symbol, 10 px Abstand.
   06 Bewegung: Rand leuchtet in 200 ms, Druck sinkt 1 px in 120 ms, Klick zeigt sofort den Kreisel.
   Symbol und Kreisel setzt piloten.js. .zweit ist der leise Nebenknopf ohne Füllung. */
.knopf-licht {
  --fuellung-oben: #24363C; --fuellung-unten: #131E22; --schrift-licht: #F4EDDE; --kupfer-licht: #D88A5C;
  --spur: rgba(8, 13, 15, 0.32);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 1.5px solid transparent; border-radius: 999px;
  background:
    linear-gradient(180deg, var(--fuellung-oben), var(--fuellung-unten)) padding-box,
    linear-gradient(90deg, var(--kupfer-licht) 0 14%, rgba(244, 237, 222, 0.42) 34% 66%, var(--kupfer-licht) 86% 100%) border-box;
  color: var(--schrift-licht); font: 600 1.0625rem/1 var(--text); letter-spacing: 0; text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -3px 8px rgba(0, 0, 0, 0.28), 0 0 0 6px var(--spur), 0 0 0 7px var(--spur-kante, rgba(255, 255, 255, 0.06)), 0 8px 24px -4px rgba(0, 0, 0, 0.45);
  transition: transform 120ms var(--aus), box-shadow 120ms var(--aus);
  -webkit-tap-highlight-color: transparent;
}
.knopf-licht::before { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; border: 1.5px solid var(--kupfer-licht); box-shadow: 0 0 18px rgba(216, 138, 92, 0.38); opacity: 0; transition: opacity 200ms ease; pointer-events: none; }
.knopf-licht.gross { min-height: 56px; padding: 0 28px; font-size: 1.125rem; }
.knopf-licht.klein { min-height: 44px; padding: 0 18px; font-size: 0.98rem; gap: 8px; }
.knopf-licht.klein .symbol, .knopf-licht.klein .kreisel { width: 18px; height: 18px; }
.knopf-licht .symbol { width: 20px; height: 20px; flex: none; color: var(--kupfer-licht); }
.knopf-licht .kreisel { display: none; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid rgba(244, 237, 222, 0.25); border-top-color: var(--kupfer-licht); animation: kreiseln 700ms linear infinite; }
.knopf-licht.laedt .symbol { display: none; }
.knopf-licht.laedt .kreisel { display: block; }
@keyframes kreiseln { to { transform: rotate(360deg); } }
@media (hover: hover) and (pointer: fine) { .knopf-licht:hover::before { opacity: 1; } }
.knopf-licht:focus-visible { outline: 2px solid #E6B866; outline-offset: 9px; }
.knopf-licht:active, .knopf-licht.laedt { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -2px 6px rgba(0, 0, 0, 0.3), 0 -1px 0 6px var(--spur), 0 -1px 0 7px var(--spur-kante, rgba(255, 255, 255, 0.06)), 0 4px 12px -4px rgba(0, 0, 0, 0.45); }
.knopf-licht:disabled { opacity: 0.4; cursor: default; transform: none; }
.knopf-licht:disabled::before { opacity: 0; }
/* Nebenknopf: keine Füllung, Rand in Schriftfarbe, gleiche Maße und Bewegung */
.knopf-licht.zweit { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 45%, transparent); box-shadow: none; }
.knopf-licht.zweit:active { box-shadow: none; }
/* Auf hellem Grund ist die Mulde heller, sonst wirkt sie wie ein Loch */
.hell .knopf-licht, .knopf-licht.auf-hell { --spur: rgba(24, 36, 40, 0.1); --spur-kante: rgba(255, 255, 255, 0.5); }

/* ── Karte Licht (Friedrich 2026-11-02: Karten „ähnlich wie die Buttons“) ──
   Gleiche Bauteile wie .knopf-licht: Füllung mit heller Oberkante, Kupferrand an zwei Ecken,
   Mulde rundherum, Schatten nach unten, Rand leuchtet beim Darüberfahren. --fuellung-oben/-unten
   färbt die Karte je Produkt (Lantern Nachtblau, Prism Grün). .mulde ist ein eingelassenes Feld
   für Beispiele. Neigung zur Maus setzt piloten.js bei [data-neigen], nur mit Maus. */
.karte-licht {
  --fuellung-oben: #24363C; --fuellung-unten: #121C20; --kupfer-licht: #D88A5C; --spur: rgba(6, 10, 12, 0.38);
  position: relative; border-radius: 28px; padding: 28px; color: #F4EDDE;
  border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, var(--fuellung-oben), var(--fuellung-unten)) padding-box,
    linear-gradient(135deg, var(--kupfer-licht) 0 9%, rgba(244, 237, 222, 0.32) 26% 74%, var(--kupfer-licht) 91% 100%) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -10px 30px rgba(0, 0, 0, 0.25), 0 0 0 8px var(--spur), 0 0 0 9px rgba(255, 255, 255, 0.06), 0 28px 50px -18px rgba(0, 0, 0, 0.7);
  transform: perspective(900px) rotateX(var(--nx, 0deg)) rotateY(var(--ny, 0deg)) translateY(var(--hoch, 0px)) scale(var(--gross, 1));
  transition: transform 260ms var(--aus);
}
.karte-licht::before { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; border: 1.5px solid var(--kupfer-licht); box-shadow: 0 0 26px rgba(216, 138, 92, 0.3); opacity: 0; transition: opacity 200ms ease; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .karte-licht:hover { --hoch: -3px; } .karte-licht:hover::before { opacity: 1; } }
/* Produktfarben (Friedrich 2026-11-03): Lantern warmes Orange wie die Flamme, Prism Rubin (Grün gehört dem
   Wichtel-Spezial, Pflaume Halloween), „Du“ helles Papier. */
.karte-licht.lantern { --fuellung-oben: #7A4518; --fuellung-unten: #2F1709; --kupfer-licht: #F2B066; }
.karte-licht.prism { --fuellung-oben: #6B2234; --fuellung-unten: #2E0E17; --kupfer-licht: #E59A8C; }
.karte-licht.du { --fuellung-oben: #F6EEDD; --fuellung-unten: #E6D6B8; --kupfer-licht: #B8713F; --spur: rgba(6, 10, 12, 0.45); color: #2A2118; }
.karte-licht.du .marke { background: rgba(60, 38, 18, 0.1); box-shadow: inset 0 1px 2px rgba(60, 38, 18, 0.25); }
.karte-licht.du .marke svg { color: #9A5A2C; }
.karte-licht.du .mulde { background: rgba(60, 38, 18, 0.08); box-shadow: inset 0 2px 6px rgba(60, 38, 18, 0.18), 0 1px 0 rgba(255, 255, 255, 0.6); }
.karte-licht.du p, .karte-licht.du li { color: #3A2E22; }
.karte-licht .marke { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.28); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.08); font: 600 1.0625rem/1 var(--text); }
.karte-licht .marke svg { width: 20px; height: 20px; color: var(--kupfer-licht); }
.karte-licht .mulde { border-radius: 18px; padding: 18px 20px; background: rgba(0, 0, 0, 0.26); box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.07); }
.karte-licht .mulde img { display: block; width: 100%; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .karte-licht, .karte-licht::before { transition: none; } .karte-licht { transform: none; } }

/* Kopf beim Scrollen (Friedrich 2026-11-02: der obere Block soll sich abheben, sonst scheinen
   die Inhalte durch). piloten.js setzt .fest ab 12 px Scrollweg. Farbe je Seite über --kopf-grund. */
.kopf { transition: background-color 200ms ease, box-shadow 200ms ease; }
.kopf.fest { background: var(--kopf-grund, rgba(12, 20, 40, 0.94)); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgba(216, 138, 92, 0.32), 0 14px 30px -14px rgba(0, 0, 0, 0.7); }

.kurz { font-size: 0.95rem; font-weight: 600; margin-top: 16px; }
.knopf-reihe { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; }

/* Ankommen: einmal je Seitenaufruf */
@keyframes kommen { from { opacity: 0; transform: translateY(14px); } }
@keyframes blenden { from { opacity: 0; } }
.kommt { animation: kommen 640ms var(--aus) both; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
/* Die Hauptüberschrift ist das größte Element im ersten Bildschirm (LCP). Sie gleitet nur und bleibt
   sichtbar, sonst zählt sie auf langsamen Handys erst nach der Einblendung (gemessen 2026-11-08: 3,2 und 4,1 s). */
@keyframes heben { from { transform: translateY(10px); } }
h1.kommt { animation-name: heben; animation-delay: 0ms; }
.wartet { opacity: 0; transform: translateY(18px); }
.zeigt { transition: opacity 600ms var(--aus), transform 600ms var(--aus); transition-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  .kommt { animation: blenden 200ms ease both; }
  .wartet { transform: none; }
  .zeigt { transition: opacity 200ms ease; transition-delay: 0ms; }
  .knopf-licht, .knopf-licht::before { transition: none; }
  .knopf-licht .kreisel { animation-duration: 2s; }
}

/* Schild „gratis“/„bald“, gemeinsam für Lantern-Piloten und Spezials */
.chip { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font: 700 0.78rem/1 var(--text); letter-spacing: 0.04em; text-transform: uppercase; color: #1B1206; background: linear-gradient(180deg, #F6CF8C, #E2A95A); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 0 3px rgba(4, 8, 16, 0.4); }

/* ── Spezials (spezials.js): Karten im Stil der Karte Licht, je Jahreszeit eingefärbt ── */
.spezial-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 440px)); justify-content: center; gap: 30px; margin-top: 40px; }
.spezial.karte-licht { gap: 14px; padding: 18px 18px 24px; }
.spezial.thema-advent { --fuellung-oben: #1E4536; --fuellung-unten: #0F2a20; }
.spezial.thema-ostern { --fuellung-oben: #3D4A63; --fuellung-unten: #222B40; }
.spezial.thema-halloween { --fuellung-oben: #3F2A3E; --fuellung-unten: #211523; }
.spezial-bild { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: rgba(0, 0, 0, 0.28); box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5); display: grid; place-items: center; }
.spezial-bild img { width: 100%; height: 100%; object-fit: cover; }
.spezial-zeichen { width: 74px; height: 92px; border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%; background: repeating-linear-gradient(-20deg, #F3C6D3 0 12px, #BFE3D2 12px 24px, #F6E3A1 24px 36px); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6); }
.thema-halloween .spezial-zeichen { width: 96px; height: 78px; border-radius: 48% 48% 44% 44%; background: radial-gradient(ellipse at 30% 50%, transparent 30%, rgba(0, 0, 0, 0.18) 31% 34%, transparent 35%), radial-gradient(ellipse at 70% 50%, transparent 30%, rgba(0, 0, 0, 0.18) 31% 34%, transparent 35%), radial-gradient(circle at 50% 40%, #FFB45C, #E2741E 70%); }
.spezial-kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 4px 6px 0; }
.spezial-kopf h3 { font: 600 1.45rem/1.15 var(--anzeige, Georgia, serif); }
.spezial > p { padding: 0 6px; color: #DCD2BF; }
.spezial .bruecke { color: var(--gold, #F0C27A); font-weight: 600; }
.spezial-knoepfe { display: flex; flex-wrap: wrap; gap: 14px 18px; padding: 6px 6px 0; margin-top: auto; }
.spezial.bald .spezial-bild { opacity: 0.8; }
.spezial-leiste { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 8px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.98rem; background: rgba(10, 30, 22, 0.75); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(240, 194, 122, 0.35), 0 10px 24px -12px rgba(0, 0, 0, 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); margin-bottom: 18px; transition: box-shadow 200ms ease; }
.spezial-leiste b { color: var(--gold, #F0C27A); text-decoration: underline; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .spezial-leiste:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(240, 194, 122, 0.8), 0 0 22px rgba(240, 194, 122, 0.25); } }
/* Große Spezial-Vorstellung (Galerie links, Inhalt rechts) */
.spezial-liste.mit-gross { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 440px)); }
.spezial-gross.karte-licht { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(22px, 3.5vw, 48px); padding: clamp(18px, 2.4vw, 28px); max-width: 1100px; justify-self: center; width: 100%; }
.spezial-liste.mit-gross { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.galerie { display: grid; gap: 14px; }
.galerie-haupt { width: 100%; height: auto; aspect-ratio: 640 / 716; object-fit: contain; border-radius: 16px; background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5), 0 24px 40px -24px rgba(0, 0, 0, 0.8); }
.galerie-leiste { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.galerie-knopf { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: rgba(0, 0, 0, 0.3); box-shadow: 0 0 0 2px transparent; opacity: 0.7; transition: opacity 160ms ease, box-shadow 160ms ease, transform 120ms var(--aus, ease-out); }
.galerie-knopf img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.galerie-knopf[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--gold, #F0C27A); }
.galerie-knopf:active { transform: scale(0.96); }
.galerie-knopf:focus-visible { outline: 2px solid var(--gold, #F0C27A); outline-offset: 2px; }
.spezial-text { display: flex; flex-direction: column; gap: 14px; }
.spezial-gross .spezial-kopf h3 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.spezial-text > p { color: #E2D9C6; font-size: 1.08rem; }
.spezial-punkte { list-style: none; display: grid; gap: 10px; }
.spezial-punkte li { position: relative; padding-left: 1.5em; color: #E2D9C6; }
.spezial-punkte li::before { content: ""; position: absolute; left: 0.2em; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold, #F0C27A); box-shadow: 0 0 8px rgba(240, 194, 122, 0.6); }
.spezial-gross .spezial-knoepfe { padding: 8px 0 0; }
@media (max-width: 860px) { .spezial-gross.karte-licht { grid-template-columns: 1fr; } }

/* Fächer: Blättern nur über den Karten, mit Knöpfen im Schild (Friedrich 2026-11-08) */
.faecher { touch-action: pan-y; }
.faecher:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 12px; }
.schild .blaettern { width: 36px; height: 36px; margin: 0 -8px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--gold); background: rgba(255, 255, 255, 0.06); cursor: pointer; transition: background-color 160ms ease, transform 160ms ease, opacity 160ms ease; }
.schild .blaettern svg { width: 18px; height: 18px; }
.schild .blaettern:hover:not(:disabled) { background: rgba(240, 194, 122, 0.18); }
.schild .blaettern:active:not(:disabled) { transform: scale(0.94); }
.schild .blaettern:disabled { opacity: 0.3; cursor: default; }
.schild .blaettern:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* Kleingedrucktes unter den Knöpfen: kursiv und hell statt klein und grau (Friedrich 2026-11-08) */
/* Runde 2 (Friedrich 2026-11-08: „deutlich größer, aufmerksamer, der Text ist wichtig“, weiße Texte schlecht lesbar):
   eigener dunkler Glasgrund mit goldenem Rand, damit die Schrift auf jedem Hintergrundbild steht */
.kurz { display: block; width: fit-content; max-width: min(46ch, 100%); padding: 12px 20px; border-radius: 16px;
  font: italic 500 clamp(1.15rem, 1.5vw, 1.32rem)/1.4 var(--anzeige); color: #F6E6C2;
  background: rgba(8, 12, 22, 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(240, 194, 122, 0.32), 0 10px 30px -12px rgba(0, 0, 0, 0.8);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); text-wrap: pretty; }
/* Weiße Druckschrift direkt auf Hintergrundbildern (Friedrich 2026-11-09: „sieht man immer noch schlecht“):
   gleicher dunkler Glasgrund wie die Hinweise, ohne Goldrand, hellere Farbe, etwas kräftiger */
.lead, .abschnitt > .unter, .spezials-h8 > .unter, .weg > p, .ziel p.leise, .schluss .ki {
  width: fit-content; max-width: min(62ch, 100%); padding: 12px 18px; border-radius: 14px;
  color: #F3EBDA; font-weight: 500; background: rgba(8, 12, 22, 0.64); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(244, 237, 222, 0.08), 0 10px 30px -14px rgba(0, 0, 0, 0.8); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); text-wrap: pretty; }
.abschnitt > .unter, .spezials-h8 > .unter, .weg > p, .ziel p.leise, .schluss .ki { margin-left: auto; margin-right: auto; }

/* hidden gewinnt immer, auch gegen .karte-licht ul { display: grid } und ähnliche (2026-11-09, Fund im Checkout) */
[hidden] { display: none !important; }
