/* Webseite fürs Kirmesderby — Bildsprache der „Kirmesreise“-Konzeptszene:
   Zuckerwatte-Pastell, Gold/Messing, Kirschrot-Creme, Mint, Himmelblau.
   Zwei Fassungen: Tag (Standard) und Nacht. Welche gilt, setzt zeit.js als
   <html data-zeit="tag|nacht"> (Uhrzeit des Besuchers, Schalter oben überschreibt). */
:root {
  color-scheme: light;
  /* Festfarben (in beiden Fassungen gleich) */
  --gold: #ffc728; --gold-ink: #2a2105; --gold-hell: #fff2b0; --gold-tief: #b37a17;
  --kirsch: #e8304f; --rosa: #ff9ec7; --mint: #7fdcb8; --himmel: #8ccff5; --tinte: #4a2618;
  --yellow: #ffe60a; --blue: #2160dc; --red: #ee2121;
  --radius: 22px;

  /* Tag */
  --paper: #fff6e6; --card: #fffaf0; --ink: #4a2618; --soft: #6a3e2a; --faint: #7d4c33;
  --titel: #8a4b08;               /* Kartentitel, Akzentschrift auf hellem Grund */
  --hl: #c4183e;                  /* Hervorhebung (Kirschrot) */
  --sep: rgba(110,60,30,.16);
  --karte-rand: #d6a53a; --karte-halo: rgba(255,238,196,.75);
  --shadow: 0 1px 2px rgba(110,50,20,.08), 0 12px 28px rgba(150,80,40,.16);
  --glow: 0;
  --nav-bg: rgba(255,246,230,.92); --nav-ink: #4a2618; --nav-soft: #6a3e2a; --nav-rand: #d6a53a;
  --schalter-grund: rgba(180,120,40,.14); --schalter-rand: rgba(214,165,58,.7);
  --bg-hero:
    radial-gradient(520px 240px at 10% 6%, rgba(255,255,255,.95), transparent 70%),
    radial-gradient(420px 200px at 90% 26%, rgba(255,255,255,.8), transparent 70%),
    radial-gradient(360px 160px at 62% 4%, rgba(255,255,255,.7), transparent 70%),
    linear-gradient(180deg, #b9e0f8 0%, #e2ecfb 42%, #ffdce9 80%, #fff0dc 100%);
  --bg-steps: linear-gradient(180deg, #fff6e6 0%, #fff0e2 100%);
  --bg-gallery: linear-gradient(180deg, #d4f2e4 0%, #cde8fa 100%);
  --bg-features: linear-gradient(180deg, #ffeef4 0%, #fff6e6 100%);
  --bg-reise: radial-gradient(700px 360px at 90% 0%, rgba(255,158,199,.35), transparent 60%),
              linear-gradient(180deg, #cdeafb 0%, #ffe0ec 62%, #fff0dc 100%);
  --bg-trust: #fff6e6;
  --bg-final: radial-gradient(600px 300px at 15% 0%, rgba(255,255,255,.7), transparent 70%),
              linear-gradient(180deg, #ffd6e5 0%, #cfe9fb 100%);
  --bg-foot: #4a2618; --foot-ink: rgba(255,246,230,.82); --foot-hover: #fff;
  --badge-bg: rgba(255,255,255,.75); --badge-ink: #8a4b08; --badge-rand: #e0b13c;
  --ghost-rand: rgba(74,38,24,.45);
  --bulb-line: rgba(110,70,30,.45);
  --bahn: #ecdcae; --bahn-line: rgba(120,90,30,.28); --bahn-rand: #c9a85a;
  --nav-btn-bg: #fff6e6; --nav-btn-ink: #8a4b08;
  --leiste-grund: rgba(255,246,230,.94); --stern: #c8901f;
  --markise-hell: #fff6e6; --markise-dunkel: var(--kirsch); --markise-filter: none;
  --reise-chip: rgba(74,38,24,.78);
}
:root[data-zeit="nacht"] {
  color-scheme: dark;
  --paper: #121733; --card: #1c2250; --ink: #fff1d6; --soft: #e8d6bf; --faint: #c9bcc2;
  --titel: #f2c548; --hl: #ffc728;
  --sep: rgba(255,241,214,.14);
  --karte-rand: #f2c548; --karte-halo: rgba(255,200,90,.16);
  --shadow: 0 0 1.4em rgba(255,190,70,.22), 0 12px 28px rgba(0,0,0,.4);
  --glow: .45;
  --nav-bg: rgba(21,26,44,.9); --nav-ink: #ffffff; --nav-soft: rgba(255,255,255,.8); --nav-rand: rgba(242,197,72,.6);
  --schalter-grund: rgba(255,255,255,.08); --schalter-rand: rgba(242,197,72,.5);
  --bg-hero:
    radial-gradient(900px 520px at 85% -10%, rgba(255,199,40,.22), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(238,33,33,.18), transparent 60%),
    radial-gradient(1.6px 1.6px at 12% 34%, #fff, transparent 60%),
    radial-gradient(1.4px 1.4px at 31% 14%, #fff, transparent 60%),
    radial-gradient(1.8px 1.8px at 58% 26%, #ffe9b0, transparent 60%),
    radial-gradient(1.4px 1.4px at 74% 10%, #fff, transparent 60%),
    radial-gradient(1.6px 1.6px at 93% 40%, #fff, transparent 60%),
    linear-gradient(180deg, #151a2c 0%, #232b48 100%);
  --bg-steps: linear-gradient(180deg, #121733 0%, #171d42 100%);
  --bg-gallery: linear-gradient(180deg, #0d1126 0%, #151a3a 100%);
  --bg-features: linear-gradient(180deg, #171d42 0%, #121733 100%);
  --bg-reise: radial-gradient(800px 420px at 90% 0%, rgba(255,143,192,.20), transparent 60%),
              radial-gradient(700px 420px at 0% 100%, rgba(95,211,168,.14), transparent 60%),
              linear-gradient(180deg, #1d2145 0%, #2b2048 55%, #151a2c 100%);
  --bg-trust: #121733;
  --bg-final: linear-gradient(180deg, #232b48, #151a2c);
  --bg-foot: #0d1126; --foot-ink: rgba(255,255,255,.66); --foot-hover: #fff;
  --badge-bg: rgba(255,255,255,.10); --badge-ink: #ffc728; --badge-rand: transparent;
  --ghost-rand: rgba(255,255,255,.38);
  --bulb-line: rgba(255,255,255,.22);
  --bahn: #3a3322; --bahn-line: rgba(255,220,140,.22); --bahn-rand: #7a6532;
  --nav-btn-bg: rgba(21,26,44,.88); --nav-btn-ink: #ffc828;
  --leiste-grund: rgba(33,24,66,.92); --stern: #f2c548;
  --markise-hell: #f3e3cf; --markise-dunkel: #d02a4a; --markise-filter: brightness(.86);
  --reise-chip: rgba(21,26,44,.78);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.gold-schrift { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px;
  padding: calc(env(safe-area-inset-top) + 12px) 20px 12px;
  background: var(--nav-bg); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); color: var(--nav-ink);
  border-bottom: 2px solid var(--nav-rand); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; letter-spacing: -.2px; }
.brand img { border-radius: 7px; }
.nav nav { display: none; gap: 22px; margin-left: 12px; }
.nav nav a { text-decoration: none; color: var(--nav-soft); font-size: 14.5px; font-weight: 600; }
.nav nav a:hover { color: var(--nav-ink); text-decoration: underline; text-decoration-color: var(--karte-rand); text-underline-offset: 5px; }
.lang { margin-left: auto; text-decoration: none; color: var(--nav-soft); font-size: 14px; font-weight: 700;
  padding: 7px 11px; border: 1px solid var(--schalter-rand); border-radius: 999px; }
.lang:hover { color: var(--nav-ink); border-color: var(--karte-rand); }
.lang + .nav-cta { margin-left: 8px; }
.lang .short { display: none; }
.nav-cta { white-space: nowrap; }
.nav-cta { margin-left: auto; text-decoration: none; font-size: 14px; font-weight: 700; padding: 8px 14px;
  border-radius: 100px; background: linear-gradient(180deg, #ffe58a, #f2b92c); color: var(--gold-ink);
  box-shadow: 0 2px 0 #a7741a; }
@media (min-width: 760px) { .nav nav { display: flex; } }

/* Tag/Nacht-Schalter (baut zeit.js in die Navigation) */
.zeit-schalter { margin-left: auto; display: flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: var(--schalter-grund); border: 1px solid var(--schalter-rand); }
.zeit-schalter + .lang { margin-left: 0; }
.zeit-schalter button { font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1; border: 0; background: transparent;
  color: var(--nav-soft); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.zeit-schalter button[aria-pressed="true"] { background: linear-gradient(180deg, #ffe58a, #e3a92c); color: #4a2618;
  box-shadow: 0 1px 3px rgba(150,90,10,.4); }
.zeit-schalter button:focus-visible { outline: 2px solid var(--karte-rand); outline-offset: 2px; }
.zeit-schalter .z { display: none; font-size: 15px; }
@media (max-width: 520px) {
  .nav { gap: 8px; padding-left: 14px; padding-right: 14px; }
  .lang .long { display: none; }
  .lang .short { display: inline; }
  .lang { padding: 6px 9px; font-size: 13px; }
  .nav-cta { padding: 7px 11px; font-size: 13px; }
  .zeit-schalter button { padding: 6px 9px; }
  .zeit-schalter .t { display: none; }
  .zeit-schalter .z { display: inline; }
}
@media (max-width: 430px) {
  /* Name der Marke bleibt für Vorlese-Programme erhalten, nur nicht sichtbar */
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

.notice { background: linear-gradient(180deg, #ffd24a, #ffc728); color: var(--gold-ink); text-align: center; font-size: 14px; font-weight: 600;
  padding: 10px 16px; }
.notice a { font-weight: 800; text-decoration: none; }

/* ---------- Lichterkette (Birnchen) ---------- */
/* wie an der Bude: drei Reihen Birnen (Gold, Kirschrot, Rosa), die nacheinander aufleuchten */
.bulbs { position: relative; height: 22px; overflow: hidden;
  background: linear-gradient(var(--bulb-line), var(--bulb-line)) 0 4px / 100% 1px no-repeat; }
.bulbs::before, .bulbs::after, .bulbs i { content: ""; position: absolute; inset: 0; display: block;
  background-repeat: repeat-x; background-size: 54px 22px; animation: bulb-chase 1.5s linear infinite; }
.bulbs::before { background-image: radial-gradient(circle at 9px 12px, #ffc728 0 4.5px, rgba(255,199,40,.45) 5px, transparent 11px); }
.bulbs i { background-image: radial-gradient(circle at 27px 12px, #e63358 0 4.5px, rgba(230,51,88,.45) 5px, transparent 11px);
  animation-delay: -1s; }
.bulbs::after { background-image: radial-gradient(circle at 45px 12px, #ff8fc0 0 4.5px, rgba(255,143,192,.45) 5px, transparent 11px);
  animation-delay: -.5s; }
@keyframes bulb-chase { 0% { opacity: 1; } 30% { opacity: 1; } 38% { opacity: .22; } 92% { opacity: .22; } 100% { opacity: 1; } }
.bulbs.top { position: absolute; top: 0; left: 0; right: 0; }
@media (prefers-reduced-motion: reduce) {
  .bulbs::before, .bulbs::after, .bulbs i { animation: none; opacity: 1; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--ink); overflow: hidden; background: var(--bg-hero); }
.hero-inner { max-width: 1120px; margin: 0 auto; padding: 30px 20px 0; display: grid; gap: 34px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 100px;
  background: var(--badge-bg); color: var(--badge-ink); border: 1.5px solid var(--badge-rand); font-size: 13px; font-weight: 700; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: block;
  box-shadow: 0 0 0 4px rgba(255,199,40,.3); }
.hero h1 { font-size: clamp(38px, 7.5vw, 68px); line-height: 1.02; letter-spacing: -2px; margin: 18px 0 16px; font-weight: 800; }
.lead { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.5; color: var(--soft); max-width: 560px; margin: 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-grid; place-items: center; height: 54px; padding: 0 26px; border-radius: 100px;
  text-decoration: none; font-weight: 700; font-size: 16.5px; transition: transform .12s ease; }
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(180deg, #ee3d5b, #c4183e); color: #fff8e6;
  box-shadow: 0 3px 0 #8f1029, 0 0 0 2px #f2c548; }
.btn.ghost { border: 1.5px solid var(--ghost-rand); color: var(--ink); }
.fine { margin: 16px 0 0; font-size: 13.5px; color: var(--faint); max-width: 520px; }

/* Rechte Seite des Hero: kleine 3D-Bude (bude3d.js) neben dem Wurf-Video */
.hero-shots { position: relative; display: grid; justify-items: center; margin-bottom: -40px; }
.hero-shots .phone { width: 210px; }
.hero-shots .front { position: relative; z-index: 2; justify-self: end; margin: -36px 4% 0 0; }
/* Die Bude schwebt frei über dem Farbverlauf (durchsichtige Bilder bzw. Canvas), ohne Rahmen */
.bude3d { position: relative; width: min(100%, 460px); aspect-ratio: 9 / 7; }
.bude3d > img, .bude3d > canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bude3d > canvas { z-index: 1; }
/* Ränder weich ausblenden: Lichtschein und Schatten enden nie als sichtbare Kante */
.bude3d > img, .bude3d > canvas { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%); }
.bude3d > .bude3d-nacht { display: none; }
:root[data-zeit="nacht"] .bude3d > .bude3d-tag { display: none; }
:root[data-zeit="nacht"] .bude3d > .bude3d-nacht { display: block; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: end; padding-top: 56px; }
  .hero-copy { padding-bottom: 84px; }
  .hero-shots { display: block; height: 560px; }
  .hero-shots .bude3d { position: absolute; left: -4%; top: 0; width: 72%; }
  .hero-shots .phone { width: 250px; }
  .hero-shots .front { position: absolute; right: 0; bottom: 0; margin: 0; }
}
.phone { border-radius: 34px; padding: 8px; background: #0b0d16;
  box-shadow: 0 30px 60px rgba(40,20,10,.35), inset 0 0 0 1.5px rgba(255,255,255,.08); }
.phone img, .phone video { border-radius: 27px; }
.phone video { display: block; width: 100%; height: auto; aspect-ratio: 440 / 960; background: #0b0d16; }

/* ---------- Markise: rot-weiße Streifen mit Bogenkante als Trenner ---------- */
.markise { position: relative; z-index: 2; height: 40px; margin-bottom: -16px; filter: var(--markise-filter);
  background:
    linear-gradient(180deg, #fff2b0, #d89a26) 0 0 / 100% 5px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(0,0,0,.14)) 0 5px / 100% 100% no-repeat,
    repeating-linear-gradient(90deg, var(--markise-dunkel) 0 28px, var(--markise-hell) 28px 56px);
  -webkit-mask: linear-gradient(#000, #000) 0 0 / 100% 24px no-repeat,
                radial-gradient(circle at 14px 0, #000 13.5px, transparent 14.5px) 0 100% / 28px 16px repeat-x;
  mask: linear-gradient(#000, #000) 0 0 / 100% 24px no-repeat,
        radial-gradient(circle at 14px 0, #000 13.5px, transparent 14.5px) 0 100% / 28px 16px repeat-x; }
/* Wimpel hängen unter der Bogenkante */
/* (eigenes Element, weil die Maske der Markise alles außerhalb ihres Kastens abschneiden würde) */
.wimpel { position: absolute; left: 0; right: 0; top: 18px; height: 30px; pointer-events: none;
  background:
    linear-gradient(rgba(120,100,70,.55), rgba(120,100,70,.55)) 0 0 / 100% 2px no-repeat,
    conic-gradient(from -30deg at 15px 100%, #ffc728 0 60deg, transparent 0) 0 3px / 120px 26px repeat-x,
    conic-gradient(from -30deg at 45px 100%, #e63358 0 60deg, transparent 0) 0 3px / 120px 26px repeat-x,
    conic-gradient(from -30deg at 75px 100%, #ff8fc0 0 60deg, transparent 0) 0 3px / 120px 26px repeat-x,
    conic-gradient(from -30deg at 105px 100%, #5fd3a8 0 60deg, transparent 0) 0 3px / 120px 26px repeat-x; }

/* ---------- Abschnitte ---------- */
section { padding: 70px 20px; }
section.hero { padding: 0; }
/* Goldenes Schild statt schlichter Überschrift (Stil „★ Pferdederby ★“ der Konzeptszene) */
.kicker { position: relative; width: fit-content; max-width: 100%; margin: 0 auto 34px; padding: .5em 1.5em .55em;
  text-align: center; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700;
  font-size: clamp(20px, 3.8vw, 29px); line-height: 1.15; letter-spacing: 0; color: #4a1d0c;
  background: linear-gradient(180deg, #fff3bf, #f0c24e 55%, #d89a26);
  border: 2px solid #fff6d0; border-radius: 14px;
  box-shadow: 0 0 0 3px #a46d14, 0 10px 22px rgba(140,70,10,.28), 0 0 26px rgba(255,200,80,var(--glow)); }
.kicker::before { content: "★"; content: "★" / ""; margin-right: .6em; color: #a46d14; font-style: normal; }
.kicker::after { content: "★"; content: "★" / ""; margin-left: .6em; color: #a46d14; font-style: normal; }

/* ---------- Ablauf ---------- */
.steps { position: relative; background: var(--bg-steps); }
.steps ol { list-style: none; counter-reset: step; max-width: 1120px; margin: 0 auto; padding: 0;
  display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { counter-increment: step; position: relative; background: var(--card); border: 2px solid var(--karte-rand);
  border-radius: var(--radius); padding: 22px; box-shadow: 0 0 0 4px var(--karte-halo), var(--shadow);
  display: grid; gap: 6px; }
.steps li::before { content: counter(step); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #ff7a96, #c4183e 70%); color: #fff8e6; font-weight: 800;
  box-shadow: 0 0 0 3px #f2c548; margin-bottom: 6px; }
.steps b { font-size: 19px; font-family: Georgia, "Times New Roman", serif; font-style: italic; color: var(--titel); }
.steps span { color: var(--soft); }
em.y, em.b, em.r { font-style: normal; font-weight: 800; padding: 0 6px; border-radius: 6px; }
em.y { background: var(--yellow); color: #3a3400; }
em.b { background: var(--blue); color: #fff; }
em.r { background: var(--red); color: #fff; }

/* ---------- Galerie ---------- */
.gallery { background: var(--bg-gallery); color: var(--ink); padding-left: 0; padding-right: 0; }
.gallery .kicker { max-width: calc(100% - 40px); }
.gallery-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 20px 18px;
  scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.shot-card { flex: 0 0 auto; width: 230px; margin: 0; scroll-snap-align: center; }
.shot-card figcaption { margin-top: 12px; font-size: 14px; color: var(--soft); text-align: center; }
@media (min-width: 900px) { .gallery-track { justify-content: safe center; } }
.gallery-hint { text-align: center; color: var(--faint); font-size: 13px; margin: 8px 0 0; }
.gallery-hint .mouse { display: none; }
/* Maus (Windows, Mac ohne Touchpad-Gesten): Pfeile, Ziehen, Hinweis */
.gallery-wrap { position: relative; }
.gallery-nav { display: none; position: absolute; top: calc(50% - 40px); z-index: 2; width: 48px; height: 48px;
  border-radius: 50%; border: 2px solid var(--karte-rand); background: var(--nav-btn-bg); color: var(--nav-btn-ink);
  font: 700 30px/1 system-ui, sans-serif; cursor: pointer; box-shadow: 0 6px 20px rgba(60,30,10,.35);
  transition: opacity .2s, transform .15s; }
.gallery-nav:hover:not(:disabled) { transform: scale(1.08); }
.gallery-nav:disabled { opacity: 0; pointer-events: none; }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-track:focus-visible { outline: 2px solid var(--karte-rand); outline-offset: -2px; }
@media (any-hover: hover), (any-pointer: fine) {
  .gallery-wrap.scrollable .gallery-nav { display: block; }
  .gallery-track { cursor: grab; }
  .gallery-track.dragging { cursor: grabbing; scroll-snap-type: none; }
  .gallery-track.dragging img { pointer-events: none; }
  .gallery-hint .touch { display: none; }
  .gallery-hint .mouse { display: inline; }
}

/* ---------- Features: goldgerahmte Info-Karten ---------- */
.features { background: var(--bg-features); }
.cards { max-width: 1120px; margin: 0 auto; display: grid; gap: 24px 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { position: relative; background: var(--card); border: 2px solid var(--karte-rand); border-radius: var(--radius);
  padding: 28px 24px 24px;
  box-shadow: 0 0 0 4px var(--karte-halo), var(--shadow), inset 0 0 0 2px rgba(255,255,255,.4); }
/* bunte Birnchenkette auf der Oberkante (wie bei den Karten der Konzeptszene) */
.card::before { content: ""; position: absolute; left: 20px; right: 20px; top: -6px; height: 11px; pointer-events: none;
  background:
    radial-gradient(circle, #fff7d0 0 1.4px, #ffcf4a 1.6px 2.7px, transparent 3.4px) 0 50% / 80px 100% repeat-x,
    radial-gradient(circle, #ffe0ea 0 1.4px, #ff4d6d 1.6px 2.7px, transparent 3.4px) 16px 50% / 80px 100% repeat-x,
    radial-gradient(circle, #e9fff6 0 1.4px, #45dca8 1.6px 2.7px, transparent 3.4px) 32px 50% / 80px 100% repeat-x,
    radial-gradient(circle, #e8f6ff 0 1.4px, #4cb8ff 1.6px 2.7px, transparent 3.4px) 48px 50% / 80px 100% repeat-x,
    radial-gradient(circle, #fff0fb 0 1.4px, #ff7ad0 1.6px 2.7px, transparent 3.4px) 64px 50% / 80px 100% repeat-x; }
:root[data-zeit="nacht"] .card::before { filter: drop-shadow(0 0 4px rgba(255,220,120,.95)) brightness(1.15); }
.card b { display: block; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 21px;
  color: var(--titel); margin: 8px 0 6px; }
.card p { margin: 0; color: var(--soft); }
.ico { font-size: 30px; }

/* ---------- Vertrauen ---------- */
.trust { background: var(--bg-trust); display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  padding-left: max(20px, calc((100% - 1120px) / 2)); padding-right: max(20px, calc((100% - 1120px) / 2)); }
.trust > div { border-top: 3px solid var(--karte-rand); padding-top: 14px; }
.trust b { display: block; font-size: 17px; color: var(--titel); }
.trust span { color: var(--soft); font-size: 15px; }

/* ---------- Schluss ---------- */
.final { text-align: center; color: var(--ink); background: var(--bg-final); position: relative; padding-top: 84px; }
.final h2 { font-family: Georgia, "Times New Roman", serif; font-style: italic;
  font-size: clamp(28px, 5vw, 44px); margin: 0 0 10px; letter-spacing: -.5px; }
.final p { color: var(--soft); margin: 0; }
.final .ctas { justify-content: center; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 20px 40px;
  background: var(--bg-foot); color: var(--foot-ink); font-size: 13.5px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--foot-hover); text-decoration: underline; }
.laufband ~ .foot { padding-bottom: calc(40px + 46px + env(safe-area-inset-bottom)); }

/* Rennleiste: das Pferdchen läuft ruckend, Schritt für Schritt wie am Stand — wie im Spiel von rechts
   (Start) nach links (Ziel mit Glocke); das Emoji schaut nach links */
.bahn { position: relative; max-width: 1120px; height: 58px; margin: 34px auto 0; border-radius: 16px; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), var(--bahn-line) calc(10% - 2px) 10%),
    var(--bahn);
  border-bottom: 4px solid var(--bahn-rand); }
.bahn::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 8px;
  background: repeating-linear-gradient(180deg, var(--red) 0 8px, #fff 8px 16px); opacity: .85; }
.bahn-pferd { position: absolute; bottom: 4px; right: 14px; font-size: 34px; line-height: 1;
  animation: bahn-lauf 8s steps(10, end) infinite; }
.bahn-pferd i { display: block; font-style: normal; animation: bahn-hopp .5s steps(1, end) infinite; }
.bahn-ziel { position: absolute; left: 12px; bottom: 8px; font-size: 26px; line-height: 1; transform-origin: 50% 10%;
  animation: bahn-klingel 8s linear infinite; }
@keyframes bahn-lauf { 0% { right: 14px; } 80%, 100% { right: calc(100% - 96px); } }
@keyframes bahn-hopp { 0% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes bahn-klingel { 0%, 79% { transform: rotate(0); } 82% { transform: rotate(-22deg); } 86% { transform: rotate(18deg); }
  90% { transform: rotate(-12deg); } 94% { transform: rotate(6deg); } 97%, 100% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) {
  .bahn-pferd, .bahn-pferd i, .bahn-ziel { animation: none; }
  .bahn-pferd { right: 40%; }
}

/* ---------- Teaser: Bald die Kirmesreise ---------- */
.reise { position: relative; color: var(--ink); padding-top: 86px; background: var(--bg-reise); }
.reise-inner { max-width: 1120px; margin: 0 auto; }
.vorschau { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 100px;
  border: 1.5px dashed var(--karte-rand); color: var(--titel); font-size: 13px; font-weight: 800; letter-spacing: .4px; }
.reise h2 { font-family: Georgia, "Times New Roman", serif; font-style: italic;
  font-size: clamp(30px, 5.6vw, 54px); line-height: 1.04; letter-spacing: -.8px; margin: 16px 0 12px; font-weight: 700; }
.reise h2 span { color: var(--hl); }
.reise-lead { font-size: clamp(16.5px, 2.1vw, 19px); color: var(--soft); max-width: 680px; margin: 0; }
.reise-bilder { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin: 32px 0 24px; }
.reise-bilder figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: #0b0d16;
  border: 3px solid var(--karte-rand); box-shadow: 0 0 0 4px var(--karte-halo), 0 24px 50px rgba(60,30,20,.3); }
.reise-bilder img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.reise-bilder figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 100px;
  background: var(--reise-chip); color: #fff; font-size: 13.5px; font-weight: 700; backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); }
.reise-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.reise-liste li { background: var(--card); border: 2px solid var(--karte-rand); border-radius: 18px; padding: 18px;
  box-shadow: 0 0 0 3px var(--karte-halo); }
.reise-liste b { display: block; font-size: 17px; margin: 6px 0 4px; font-family: Georgia, "Times New Roman", serif; font-style: italic; color: var(--titel); }
.reise-liste span { color: var(--soft); font-size: 15px; }
.reise-liste .ico { display: block; }
.reise-fine { margin: 22px 0 0; font-size: 13.5px; color: var(--faint); max-width: 680px; }

/* ---------- Laufband unten (nur CSS-Animation) ---------- */
.laufband { position: fixed; left: 0; right: 0; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 9;
  width: min(1120px, calc(100% - 20px)); margin: 0 auto; height: 36px; display: flex; align-items: center; overflow: hidden;
  background: var(--leiste-grund); color: var(--ink); border: 2px solid var(--karte-rand); border-radius: 999px;
  box-shadow: 0 0 0 3px var(--karte-halo), 0 8px 22px rgba(60,30,10,.25); font-size: 14px; }
.laufband .spur { display: flex; flex: none; width: max-content; animation: laufband 80s linear infinite; }
.laufband:hover .spur, .laufband:focus-within .spur { animation-play-state: paused; }
.laufband .gruppe { display: flex; flex: none; align-items: center; white-space: nowrap; padding-left: 18px; }
.laufband .gruppe > span::after { content: "★"; content: "★" / ""; margin: 0 22px; color: var(--stern); }
.laufband b { color: var(--hl); }
:root[data-zeit="nacht"] .laufband b { color: #ff8fa6; }
@keyframes laufband { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  /* stehend: kein Lauf, die Meldungen stehen untereinander gruppiert am Seitenende */
  .laufband { position: static; height: auto; margin: 0 auto 18px; padding: 10px 16px; border-radius: 18px;
    width: min(1120px, calc(100% - 40px)); overflow: visible; justify-content: center; }
  .laufband .spur { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .laufband .gruppe { flex-wrap: wrap; justify-content: center; white-space: normal; padding-left: 0; row-gap: 4px; }
  .laufband .gruppe[aria-hidden="true"] { display: none; }
  .laufband ~ .foot { padding-bottom: 40px; }
}
