/* Komod Festival 2027 · Öffentliches Design (Redesign nach layout-design_org, Phase 1).
   Tokens + Layout aus der Design-Übergabe (basis.css + layout.css), Pfade angepasst.
   Das Admin-Backend nutzt weiter base.css. */

/* Schriften: Overprint (Lizenz nur für Komod-Website), Rubik (OFL, selbst gehostet) */
@font-face { font-family: "Overprint"; src: url("/assets/fonts/overprint.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Rubik"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/rubik-400-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rubik"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/rubik-400-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/rubik-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/rubik-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/rubik-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/rubik-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --blau: #61799e;
  --gelb: #ffedb3;   /* Akzent, nur auf Blau, Tinte oder Foto */
  --tinte: #253939;
  /* Background */
  --grau: #d0d7d6;
  --hell: #e6eff1;
  --nebel: #b4cad0;
  --rand: clamp(16px, 2.4vw, 36px);
  --display: "Overprint", "Arial Black", system-ui, sans-serif;
  --text: "Rubik", system-ui, sans-serif;

  /* Schriftgrößen. clamp(min, fließend, max): wächst mit der Fensterbreite */
  --fs-seite: clamp(40px, 11vw, 176px);
  --fs-lead: clamp(24px, 2.6vw, 38px);
  --fs-lineup: clamp(26px, 4.6vw, 76px);
  --fs-menue: clamp(34px, 6vw, 72px);
  --fs-titel: clamp(34px, 5.4vw, 72px);
  --fs-countdown: clamp(36px, 5vw, 64px);
  --fs-hero-unten: clamp(30px, 3.7vw, 60px);
  --fs-kachel: clamp(32px, 3.4vw, 52px);
  --fs-stage: clamp(26px, 2.4vw, 40px);
  --fs-faq: clamp(20px, 2.2vw, 30px);
  --fs-ecken: clamp(17px, 1.8vw, 26px);
  --fs-knopf: 17px;
  --fs-klein: 15px;
  --fs-text-gross: 22px;
  --fs-text: 18px;

  /* Bewegung */
  --ease: cubic-bezier(.2, .7, .2, 1);
}
/* Layout und Komponenten des Dummys. Farben, Schriften, Größen: basis.css */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { background: var(--grau); color: var(--tinte); font-family: var(--text); font-size: var(--fs-text); line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
/* Hervorhebung im Fließtext in Overprint (Variante F, Alina 25.11.) */
strong, b { font-family: var(--display); font-weight: normal; }
img { display: block; max-width: 100%; }
svg { display: block; }
.caps { font-family: var(--display); text-transform: uppercase; letter-spacing: .01em; line-height: 1; }

/* ---------- Kopf (Blechsonne: Datum oben links / Earthy: Pillen rechts) ---------- */
.kopf { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; justify-content: space-between; align-items: flex-start; padding: var(--rand); pointer-events: none; transition: background .4s, padding .4s; }
.kopf > * { pointer-events: auto; }
.kopf.fest { background: color-mix(in srgb, var(--grau) 86%, transparent); backdrop-filter: blur(10px); padding-block: 12px; }
.kopf-logo { width: clamp(110px, 16vw, 220px); color: var(--hell); transition: color .4s, width .4s; }
.kopf-logo svg { width: 100%; height: auto; }
.kopf.fest .kopf-logo, .unterseite .kopf-logo { color: var(--blau); width: clamp(96px, 9vw, 132px); }
.pillen { display: flex; gap: 8px; align-items: center; }
/* Overprint sitzt bei line-height 1 zu hoch: Innenabstand oben größer, unten kleiner (Gesamthöhe gleich) */
.pille { font-family: var(--display); text-transform: uppercase; font-size: var(--fs-klein); line-height: 1; padding: 9.25px 13px 5.75px; border-radius: 999px; background: var(--hell); color: var(--blau); border: 0; cursor: pointer; transition: background .2s, color .2s; }
.pille:hover, .pille:focus-visible { background: var(--blau); color: var(--hell); }
.pille.voll { background: var(--blau); color: var(--hell); }
.pille.voll:hover { background: var(--tinte); }
.nur-mobil { display: none; }

/* ---------- Menü als große Liste (Blechsonne) ---------- */
.menue { position: fixed; inset: 0; z-index: 40; background: color-mix(in srgb, var(--tinte) 72%, transparent); backdrop-filter: blur(14px); color: var(--hell); display: grid; grid-template-columns: 1fr auto; padding: var(--rand); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.menue.offen { opacity: 1; visibility: visible; }
.menue-zu { position: absolute; top: var(--rand); right: var(--rand); }
.menue nav { grid-column: 2; align-self: center; text-align: right; }
.menue nav > a { display: block; font-family: var(--display); text-transform: uppercase; font-size: var(--fs-menue); line-height: 1.02; transition: color .2s, transform .3s; }
.menue nav > a:hover { color: var(--gelb); transform: translateX(-10px); }
.menue nav > a.aktiv { color: var(--gelb); } /* aktive Seite im Menü hervorgehoben (#56) */
.menue nav small { display: flex; gap: 18px; justify-content: flex-end; margin-top: 28px; font-family: var(--display); text-transform: uppercase; font-size: 14px; opacity: .8; flex-wrap: wrap; }
.menue nav small a:hover { color: var(--gelb); }
.menue-wort { position: absolute; left: var(--rand); bottom: var(--rand); width: min(36vw, 420px); color: var(--nebel); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: var(--hell); }
.hero-bild { position: absolute; inset: 0; background: center / cover no-repeat; transform: scale(1.06); animation: bild-rein 2.4s var(--ease) forwards; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s var(--ease); }
.hero-video.laeuft { opacity: 1; }
/* Schmetterling als Mauszeiger (nur Startseite, Desktop; Steuerung in main.js) */
.falter { position: fixed; left: 0; top: 0; z-index: 25; width: 84px; height: 84px; margin: -42px 0 0 -42px; color: var(--gelb); pointer-events: none; opacity: 0; transition: opacity .3s; will-change: transform; }
.falter.da { opacity: 1; }
.falter.fliegt { position: absolute; }   /* mobil: fliegt innerhalb des Heros, scrollt mit */
.falter svg { width: 100%; height: 100%; overflow: visible; }
.hero.mit-falter, .hero.mit-falter * { cursor: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(37,57,57,.25), transparent 20%, transparent 70%, rgba(37,57,57,.35)); }
.hero-unten { position: absolute; z-index: 2; left: var(--rand); right: var(--rand); bottom: var(--rand); display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; font-family: var(--display); font-size: var(--fs-hero-unten); line-height: 1; color: var(--hell); text-shadow: 0 1px 24px rgba(37,57,57,.3); }
@keyframes bild-rein { to { transform: scale(1); } }
@keyframes linie-rein { from { opacity: 0; transform: translateY(14px) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes drehen { to { transform: rotate(360deg); } }

/* ---------- Ticket-Block (Dekmantel) ---------- */
.flecken { position: relative; background: var(--grau); isolation: isolate; }
.flecken::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/assets/img/zweiton_1_grau.svg") center / cover no-repeat; }
.zt-2::before { background-image: url("/assets/img/zweiton_2_grau.svg"); }
.zt-3::before { background-image: url("/assets/img/zweiton_3_grau.svg"); }
.zt-4::before { background-image: url("/assets/img/zweiton_4_grau.svg"); }
.zt-nebel.zt-1::before { background-image: url("/assets/img/zweiton_1_nebel.svg"); }
.ticket { padding: clamp(64px, 10vw, 140px) var(--rand); display: grid; place-items: center; overflow-x: clip; }
.ticket-karte { position: relative; width: min(100%, 980px); background: var(--blau); color: var(--hell); text-align: center; padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 56px); border-radius: 6px; }
.ticket-karte .kicker { font-size: var(--fs-klein); color: var(--nebel); margin-bottom: 18px; }
.ticket-karte h2 { font-family: var(--display); text-transform: uppercase; font-weight: normal; font-size: var(--fs-titel); line-height: .98; }
.ticket-karte h2 em { font-style: normal; color: var(--gelb); }
.ticket-karte p { margin: 18px auto 0; max-width: 34em; font-size: var(--fs-text-gross); }
.countdown { display: flex; justify-content: center; gap: clamp(12px, 3vw, 36px); margin-top: 32px; }
.countdown div { min-width: 70px; }
.countdown b { display: block; font-family: var(--display); font-weight: normal; font-size: var(--fs-countdown); line-height: 1; color: var(--hell); font-variant-numeric: tabular-nums; }
.countdown span { font-family: var(--display); text-transform: uppercase; font-size: 12px; color: var(--nebel); }
.ticket-knoepfe { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.knopf { font-family: var(--display); text-transform: uppercase; font-size: var(--fs-knopf); line-height: 1; padding: 16px 24px 12px; border-radius: 999px; border: 2px solid var(--hell); color: var(--hell); transition: background .2s, color .2s; }
.knopf:hover { background: var(--hell); color: var(--blau); }
.knopf.gelb { background: var(--gelb); border-color: var(--gelb); color: var(--tinte); }
.knopf.gelb:hover { background: var(--hell); border-color: var(--hell); }
.ticket-falter { position: absolute; width: clamp(110px, 14vw, 190px); right: -4%; top: -22%; color: var(--blau); transform: rotate(14deg); }
.ticket-karte .hinweis { margin-top: 22px; font-size: var(--fs-text); color: var(--nebel); }

/* ---------- Abschnittskopf (Earthy: Ecken-Beschriftung) ---------- */
.abschnitt { padding: clamp(56px, 8vw, 120px) var(--rand); }
.ecken { display: flex; justify-content: space-between; font-family: var(--display); text-transform: uppercase; font-size: var(--fs-ecken); color: var(--blau); margin-bottom: clamp(28px, 4vw, 56px); }

/* ---------- Lineup (Spirale ZF 27) · nur in der Fassung komplett (vorlage.html, Block nur:komplett) ---------- */
.lineup { position: relative; }
.lineup-liste { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--rand); }
.lineup-liste ul { list-style: none; }
.lineup-liste ul:last-child { text-align: right; }
.lineup-liste li { font-family: var(--display); text-transform: uppercase; font-size: var(--fs-lineup); line-height: .98; color: var(--blau); transition: color .2s; cursor: default; }
.lineup-liste li:hover { color: var(--tinte); }
.lineup-liste li sup { font-size: .32em; vertical-align: .9em; margin-left: .2em; color: var(--nebel); }
.lineup-fuss { display: flex; justify-content: space-between; align-items: center; margin-top: clamp(32px, 4vw, 56px); font-family: var(--display); text-transform: uppercase; color: var(--blau); }
.lineup .swirlman { position: absolute; width: clamp(80px, 9vw, 130px); left: 50%; top: 56%; color: var(--blau); transform: translateX(-50%) rotate(-8deg); }

/* ---------- Stages ---------- */
.stages { background: var(--tinte); color: var(--hell); }
.stages .ecken { color: var(--nebel); }
.stage-reihe { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 27vw, 420px); gap: 14px; scroll-padding-inline: var(--rand); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; margin-inline: calc(var(--rand) * -1); padding-inline: var(--rand); scrollbar-width: thin; scrollbar-color: var(--blau) transparent; }
.stage { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; scroll-snap-align: start; }
.stage img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .6s; filter: saturate(.85); }
.stage:hover img { transform: scale(1.05); filter: saturate(1.05); }
.stage h3 { position: absolute; left: 16px; right: 16px; bottom: 14px; font-family: var(--display); text-transform: uppercase; font-weight: normal; font-size: var(--fs-stage); line-height: .95; color: var(--gelb); text-shadow: 0 2px 20px rgba(9,39,40,.45); }
/* Floor-Name je nach Foto in der Palettenfarbe mit dem besten Kontrast: Gelb, auf hellen Fotos Tinte */
.stage.dunkel h3 { color: var(--tinte); text-shadow: none; }

/* ---------- Mitmachen ---------- */
.mitmachen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kachel { position: relative; min-height: 340px; padding: 26px; border-radius: 4px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; overflow: hidden; transition: transform .3s; }
.kachel:hover { transform: translateY(-4px); }
.kachel h3 { font-family: var(--display); text-transform: uppercase; font-weight: normal; font-size: var(--fs-kachel); line-height: .95; }
.kachel p { max-width: min(22em, 62%); font-size: var(--fs-text-gross); }
.kachel > :not(.deko) { position: relative; z-index: 1; }
.kachel .pfeil { font-family: var(--display); text-transform: uppercase; font-size: var(--fs-klein); }
.kachel.k1 { background: var(--blau); color: var(--hell); }
.kachel.k2 { background: var(--hell); color: var(--blau); }
.kachel.k3 { background: var(--nebel); color: var(--tinte); }
.kachel .deko { position: absolute; right: -6%; bottom: -8%; width: 46%; opacity: .9; }
.k1 .deko { color: var(--nebel); }
.k2 .deko { color: var(--nebel); }
.k3 .deko { color: var(--hell); }

/* ---------- Bildband mit Linienzeichnung ---------- */
.bildband { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 8px; padding: 0 var(--rand); }
.bildband img { width: 100%; height: clamp(220px, 30vw, 440px); object-fit: cover; border-radius: 4px; }
.bildband .linie { position: absolute; width: clamp(160px, 22vw, 320px); left: 38%; top: -14%; color: var(--gelb); pointer-events: none; }
.bildband .linie svg path { stroke-width: 2.4; }

/* ---------- FAQ ---------- */
.faq { max-width: 1100px; }
.faq details { border-top: 2px solid var(--blau); }
.faq details:last-child { border-bottom: 2px solid var(--blau); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0 16px; font-family: var(--display); text-transform: uppercase; font-size: var(--fs-faq); color: var(--blau); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 40em; font-size: var(--fs-text-gross); }

/* ---------- Footer (Dekmantel: dicht, Großbuchstaben) ---------- */
.fuss { background: var(--blau); color: var(--hell); padding: clamp(48px, 6vw, 80px) var(--rand) 0; overflow: hidden; }
.fuss-spalten { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 28px; font-family: var(--display); text-transform: uppercase; font-size: var(--fs-klein); line-height: 1.35; }
.fuss-spalten h4 { font-weight: normal; color: var(--nebel); margin-bottom: 8px; font-size: 13px; }
.fuss-spalten a { display: block; }
.fuss-spalten a:hover { color: var(--gelb); }
.newsletter { display: flex; gap: 8px; margin-top: 10px; }
.newsletter input { flex: 1; min-width: 0; font: inherit; text-transform: none; font-family: var(--text); font-size: 16px; padding: 10px 14px; border-radius: 999px; border: 2px solid var(--hell); background: transparent; color: var(--hell); }
.newsletter input::placeholder { color: var(--nebel); }
.newsletter button { font-family: var(--display); text-transform: uppercase; font-size: var(--fs-klein); padding: 10px 16px 8px; border-radius: 999px; border: 0; background: var(--hell); color: var(--blau); cursor: pointer; }
.fuss-wort { width: calc(100% + 2 * var(--rand)); margin: clamp(40px, 6vw, 80px) calc(var(--rand) * -1) -3.2vw; color: var(--hell); }
.fuss-wort svg { width: 100%; height: auto; }

/* ---------- Impressionen (Startseite) ---------- */
.impressionen .bildband { padding: 0; }

/* ---------- Unterseiten: Kopf ---------- */
.seite-kopf { position: relative; overflow: hidden; padding: clamp(120px, 14vw, 190px) var(--rand) clamp(48px, 6vw, 88px); }
.seite-titel { font-family: var(--display); font-weight: normal; text-transform: uppercase; font-size: var(--fs-seite); line-height: .9; color: var(--blau); position: relative; z-index: 1; }
.lead { font-family: var(--display); font-size: var(--fs-lead); line-height: 1.15; max-width: 30ch; margin-top: clamp(20px, 2.4vw, 36px); position: relative; z-index: 1; }
.seite-deko { position: absolute; right: calc(var(--rand) * -0.5); bottom: -6%; width: clamp(160px, 26vw, 400px); color: var(--nebel); opacity: .85; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Unterseiten: Infos + Formular ---------- */
.spalten { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.info .faq ul { margin: 0 0 16px 1.1em; font-size: var(--fs-text-gross); max-width: 40em; }
.info .faq li { margin-top: 6px; }
.info .faq li::marker { color: var(--blau); }
.formular { position: sticky; top: 84px; background: var(--blau); color: var(--hell); border-radius: 6px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.formular h2 { font-family: var(--display); font-weight: normal; text-transform: uppercase; font-size: var(--fs-kachel); line-height: .95; }
.formular .hinweis { font-size: 16px; color: var(--nebel); margin-top: -8px; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feld { display: grid; gap: 6px; }
.feld > span, .formular legend { font-family: var(--display); text-transform: uppercase; font-size: 13px; color: var(--nebel); }
.feld input, .feld textarea { width: 100%; font-family: var(--text); font-size: 17px; padding: 11px 16px; border-radius: 999px; border: 2px solid var(--hell); background: transparent; color: var(--hell); }
.feld textarea { border-radius: 18px; resize: vertical; min-height: 64px; }
.feld input::placeholder, .feld textarea::placeholder { color: var(--nebel); }
.feld input:focus-visible, .feld textarea:focus-visible { outline: none; border-color: var(--gelb); }
.formular fieldset { border: 0; display: grid; gap: 8px; min-width: 0; }
.wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl label { position: relative; }
.wahl input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.wahl span { display: inline-block; font-family: var(--display); text-transform: uppercase; font-size: var(--fs-klein); line-height: 1; padding: 10.75px 14px 7.25px; border-radius: 999px; border: 2px solid var(--hell); transition: background .2s, color .2s, border-color .2s; }
.wahl input:checked + span { background: var(--gelb); border-color: var(--gelb); color: var(--tinte); }
.wahl input:focus-visible + span { outline: 2px solid var(--gelb); outline-offset: 2px; }
.haken-liste { display: grid; gap: 10px; }
.haken { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16px; line-height: 1.35; }
.haken input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--gelb); }
.haken a { text-decoration: underline; }
.formular .knopf { justify-self: start; cursor: pointer; margin-top: 4px; }

/* ---------- Festival ABC ---------- */
.suche { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; margin-top: clamp(24px, 3vw, 40px); max-width: 560px; }
.suche input { flex: 1; min-width: 0; font-family: var(--text); font-size: 18px; padding: 13px 20px; border-radius: 999px; border: 2px solid var(--blau); background: color-mix(in srgb, var(--hell) 55%, transparent); color: var(--tinte); }
.suche input:focus-visible { outline: none; border-color: var(--tinte); }
.suche output { font-family: var(--display); text-transform: uppercase; font-size: var(--fs-klein); color: var(--blau); white-space: nowrap; }
.abc-leiste { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 0; margin-bottom: clamp(24px, 3vw, 40px); background: var(--grau); }
.abc-leiste a { font-family: var(--display); font-size: 17px; line-height: 1; min-width: 36px; text-align: center; padding: 10px 8px 6px; border-radius: 999px; color: var(--blau); transition: background .2s, color .2s; }
.abc-leiste a:hover { background: var(--blau); color: var(--hell); }
.abc-gruppe { display: grid; grid-template-columns: clamp(64px, 12vw, 200px) minmax(0, 1fr); gap: var(--rand); scroll-margin-top: 130px; }
.abc-gruppe + .abc-gruppe { margin-top: clamp(28px, 4vw, 56px); }
.abc-buchstabe { font-family: var(--display); font-size: clamp(56px, 9vw, 150px); line-height: .8; color: var(--nebel); position: sticky; top: 130px; }
.abc .faq { max-width: none; }
.abc details { scroll-margin-top: 130px; }
.abc-text { padding-bottom: 22px; max-width: 46em; }
.abc-text p, .abc-text ul { font-size: var(--fs-text-gross); }
.abc-text p + p { margin-top: 10px; }
.abc-text ul { margin: 8px 0 0 1.1em; }
.abc-text a { color: var(--blau); text-decoration: underline; }

/* ---------- Einblenden beim Scrollen ---------- */
.rein { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.rein.da { opacity: 1; transform: none; }

/* ---------- Mobil ---------- */
@media (max-width: 820px) {
  :root { --fs-text: 17px; }
  .pillen .pille:not(.menue-auf):not(.voll) { display: none; }
  .nur-mobil { display: inline-block; }
  .hero-unten { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ticket-falter { right: -6%; top: -9%; width: 96px; }
  .lineup-liste { grid-template-columns: 1fr; }
  .lineup-liste ul:last-child { text-align: left; margin-top: 0; }
  .lineup .swirlman { display: none; }
  .stage-reihe { grid-auto-columns: 78vw; }
  .mitmachen { grid-template-columns: 1fr; }
  .kachel { min-height: 240px; }
  .bildband { grid-template-columns: 1fr 1fr; }
  .bildband img { height: 46vw; }
  .bildband .linie { left: 30%; top: -10%; width: 44vw; }
  .fuss-spalten { grid-template-columns: 1fr 1fr; }
  .fuss-spalten > div:first-child { grid-column: 1 / -1; }
  .spalten { grid-template-columns: 1fr; }
  .formular { position: static; }
  .zwei { grid-template-columns: 1fr; }
  .seite-deko { width: 42vw; bottom: -4%; }
  .abc-gruppe { grid-template-columns: 1fr; gap: 4px; }
  .abc-buchstabe { position: static; font-size: 64px; }
  .abc-leiste { top: 56px; overflow-x: auto; flex-wrap: nowrap; margin-inline: calc(var(--rand) * -1); padding-inline: var(--rand); scrollbar-width: none; }
  .menue nav { grid-column: 1 / -1; text-align: left; align-self: end; margin-bottom: 18vh; }
  .menue nav small { justify-content: flex-start; }
  .menue-wort { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rein { opacity: 1; transform: none; }
}

/* ---------- Ergänzungen für das Backend (CMS-Content, Formulare, Galerie) ---------- */

/* Fließtext aus Markdown (pages.content, artists_intro …) */
.rich-text { max-width: 46em; }
/* Code of Conduct: Absätze als große Statements (Lead-Stil), Hinweise und Kontakt klein */
.rich-text.coc { max-width: none; }
.rich-text.coc > p { font-family: var(--display); font-size: var(--fs-lead); line-height: 1.15; margin: 0 0 .9em; }
.rich-text.coc blockquote { margin: 0 0 2em; padding: 14px 18px; border-left: 4px solid var(--gelb); }
.rich-text.coc blockquote p, .rich-text.coc h2 ~ p { font-family: var(--text); font-size: var(--fs-text-gross); line-height: 1.45; }
.rich-text h2, .rich-text h3 { font-family: var(--display); font-weight: normal; text-transform: uppercase; line-height: .98; margin: 1.6em 0 .4em; }
.rich-text h2 { font-size: var(--fs-faq); }
.rich-text h3 { font-size: var(--fs-ecken); }
.rich-text p, .rich-text ul, .rich-text ol { margin: 0 0 1em; font-size: var(--fs-text-gross); }
.rich-text ul, .rich-text ol { margin-left: 1.1em; }
.rich-text li { margin-top: 6px; }
.rich-text li::marker { color: var(--blau); }
.rich-text a { color: var(--blau); text-decoration: underline; }
.rich-text img { border-radius: 4px; margin: 1em 0; }
.rich-text table { border-collapse: collapse; font-size: var(--fs-text); }
.rich-text th, .rich-text td { border: 1px solid var(--blau); padding: 8px 12px; text-align: left; }
.rich-text code { background: var(--hell); padding: 1px 6px; border-radius: 6px; }

/* Auswahlliste (Fallback bei vielen Optionen) */
.feld select { width: 100%; font-family: var(--text); font-size: 17px; padding: 11px 16px; border-radius: 999px; border: 2px solid var(--hell); background: transparent; color: var(--hell); }
.feld select option { color: var(--tinte); background: var(--hell); }

/* Upload-Feld */
.feld-upload input[type="file"] { color: var(--nebel); font-size: 16px; }
.feld-upload input[type="file"]::file-selector-button { font-family: var(--display); text-transform: uppercase; font-size: var(--fs-klein); line-height: 1; padding: 10px 16px 8px; border-radius: 999px; border: 2px solid var(--hell); background: transparent; color: var(--hell); cursor: pointer; margin-right: 14px; }

/* Feld-Hilfetext */
.feld-hinweis { font-size: 14px; color: var(--nebel); margin-top: -8px; }

/* Weeztix-Embed innerhalb der Ticket-Karte */
.ticket-embed { background: var(--hell); border-radius: 6px; padding: clamp(12px, 2vw, 24px); margin-top: 26px; text-align: left; }
.ticket-embed iframe { width: 100%; border: 0; }

/* Kleiner Link im Info-Spalten-Fuß */
.small-link a { color: var(--blau); text-decoration: underline; }

/* Meldungen */
.meldung { border-radius: 12px; padding: 14px 18px; font-size: 16px; line-height: 1.4; }
.meldung.fehler { background: var(--gelb); color: var(--tinte); }
.meldung.ok { background: var(--hell); color: var(--tinte); }
.info .meldung.fehler { color: var(--tinte); }

/* Zugangscode (Bestätigungs-/Bearbeitungsseite) */
.code-box { display: inline-block; font-family: var(--display); font-size: var(--fs-lead); letter-spacing: .08em; background: var(--gelb); color: var(--tinte); border-radius: 12px; padding: 16px 22px; margin: 18px 0; font-variant-numeric: tabular-nums; }

/* Galerie */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.album-card { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; display: flex; align-items: flex-end; padding: 18px; color: var(--hell); }
.album-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); filter: saturate(.85); }
.album-card:hover img { transform: scale(1.05); }
.album-card h3 { position: relative; z-index: 1; font-family: var(--display); text-transform: uppercase; font-weight: normal; font-size: var(--fs-stage); line-height: .95; text-shadow: 0 2px 20px rgba(9,39,40,.45); }
.album-card .anzahl { position: absolute; z-index: 1; top: 12px; left: 16px; font-family: var(--display); font-size: 13px; }
.leer { font-size: var(--fs-text-gross); color: var(--blau); }

@media (max-width: 820px) {
  .album-grid { grid-template-columns: 1fr 1fr; }
}


/* ---------- Eigener Ticketshop (/tickets/shop, Weeztix-API) ---------- */
.shop-kicker { font-size: var(--fs-klein); color: var(--blau); margin-bottom: 14px; position: relative; z-index: 1; }
.shop { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-bottom: 140px; }
.shop-schritt { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: normal; text-transform: uppercase; font-size: var(--fs-faq); line-height: 1; color: var(--blau); margin-top: 26px; }
.shop-schritt:first-child { margin-top: 0; }
.shop-nr { display: grid; place-items: center; width: 40px; height: 40px; padding-top: 4px; border-radius: 999px; background: var(--blau); color: var(--hell); font-size: var(--fs-text); flex: none; }
.shop-karten { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.shop-karte { position: relative; display: flex; flex-direction: column; gap: 8px; background: var(--hell); border: 2px solid transparent; border-radius: 6px; padding: 22px 18px 18px; transition: border-color .2s; }
.shop-karte.gross { border-color: var(--blau); }
.shop-karte.gewaehlt { border-color: var(--blau); background: color-mix(in srgb, var(--hell) 70%, var(--nebel)); }
.shop-karte.aus { opacity: .55; }
.shop-karte h3 { font-weight: normal; font-size: var(--fs-stage); color: var(--blau); }
.shop-marke { align-self: flex-start; font-size: 13px; padding: 7px 10px 4px; border-radius: 999px; background: var(--blau); color: var(--hell); }
.shop-datum { font-size: var(--fs-klein); color: var(--blau); margin-top: -4px; }
.shop-preis { font-size: var(--fs-klein); }
.shop-preis b { font-size: var(--fs-stage); color: var(--tinte); }
.shop-liste { list-style: none; display: grid; gap: 6px; font-size: var(--fs-klein); line-height: 1.35; margin-bottom: 10px; }
.shop-liste li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; }
.shop-liste .ja::before { content: "✓"; color: var(--blau); }
.shop-liste .nein::before { content: "×"; color: var(--blau); }
.shop-aus { font-size: var(--fs-klein); color: var(--blau); }
.menge { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.menge output { min-width: 1.6em; text-align: center; font-family: var(--display); font-size: var(--fs-text-gross); line-height: 1; padding-top: 4px; font-variant-numeric: tabular-nums; }
.menge-knopf { width: 44px; height: 44px; border-radius: 999px; border: 2px solid var(--blau); background: transparent; color: var(--blau); font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.menge-knopf.voll { background: var(--blau); color: var(--hell); }
.menge-knopf:hover:not(:disabled) { background: var(--tinte); border-color: var(--tinte); color: var(--hell); }
.menge-knopf:disabled { opacity: .35; cursor: default; }
.shop-info, .shop-hinweis { background: color-mix(in srgb, var(--hell) 60%, transparent); border-radius: 6px; padding: 14px 18px; font-size: var(--fs-klein); }
.shop-links { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 6px; }
.shop-links a, .shop-klein a { color: var(--blau); text-decoration: underline; }
.shop-wahl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.shop-option { position: relative; cursor: pointer; }
.shop-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.shop-option span { display: grid; gap: 4px; height: 100%; background: var(--hell); border: 2px solid transparent; border-radius: 6px; padding: 18px; font-size: var(--fs-klein); transition: border-color .2s, background .2s; }
.shop-option b { font-weight: normal; font-size: var(--fs-text-gross); color: var(--blau); }
.shop-option input:checked + span { border-color: var(--blau); }
.shop-option input:focus-visible + span { outline: 2px solid var(--tinte); outline-offset: 2px; }
.shop-fahrzeug { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: var(--hell); border-radius: 6px; padding: 14px 18px; font-size: var(--fs-klein); }
.shop-fahrzeug[hidden] { display: none; }
.shop-fahrzeug .menge { margin-top: 0; }
.shop-klein { font-size: var(--fs-klein); }
.shop-boxen { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.shop-box { display: flex; flex-direction: column; gap: 12px; background: var(--hell); border-radius: 6px; padding: clamp(20px, 2.4vw, 32px); font-size: var(--fs-klein); }
.shop-box h3 { font-weight: normal; font-size: var(--fs-stage); color: var(--blau); }
.shop-box ol { margin-left: 1.2em; display: grid; gap: 4px; }
.shop-box-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.shop .knopf { border-color: var(--blau); color: var(--blau); }
.shop .knopf:hover, .shop .knopf.voll { background: var(--blau); color: var(--hell); }
.shop .knopf.voll:hover { background: var(--tinte); border-color: var(--tinte); }
.shop-zeiten { max-width: none; margin-top: 26px; }
.shop-zeiten details { border-bottom: 2px solid var(--blau); }
.shop-zeiten-spalten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 22px; font-size: var(--fs-klein); }
.shop-zeiten-spalten h4 { font-weight: normal; color: var(--blau); margin-bottom: 6px; }
.shop-zeiten .shop-zeiten-spalten p { padding: 0; font-size: var(--fs-klein); }
.warenkorb { position: fixed; z-index: 20; right: var(--rand); bottom: var(--rand); display: flex; align-items: center; gap: 14px; background: var(--hell); border-radius: 999px; padding: 8px 8px 8px 22px; box-shadow: 0 6px 30px rgba(37,57,57,.18); font-size: var(--fs-klein); }
.warenkorb b { font-family: var(--display); font-weight: normal; }
.warenkorb .knopf { border-color: var(--blau); background: var(--blau); color: var(--hell); cursor: pointer; }
.warenkorb .knopf:disabled { opacity: .45; cursor: default; }
@media (max-width: 1100px) {
  .shop-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-karte.gross { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .shop-wahl, .shop-boxen, .shop-zeiten-spalten { grid-template-columns: 1fr; }
  .shop-karten { grid-template-columns: minmax(0, 1fr); }
  .shop-karte { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: center; }
  .shop-karte > * { grid-column: 1; }
  .shop-karte .menge { grid-column: 2; grid-row: 1 / span 6; margin-top: 0; }
  .shop-liste { margin-bottom: 0; }
  .warenkorb { left: var(--rand); justify-content: space-between; padding-left: 18px; }
  .warenkorb-zahl, .warenkorb .knopf { white-space: nowrap; }
  .warenkorb .gebuehr, .warenkorb .weiter { display: none; }
  .shop-marke { justify-self: start; }
}

/* Impressionen: Fotoband zum seitlichen Scrollen, jedes Foto behält sein Format (gleiche Höhe wie das frühere Bildband) */
.fotoband-huelle { position: relative; }
.fotoband { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--rand) * -1); padding: 0 var(--rand) 14px; scroll-padding-inline: var(--rand); scrollbar-width: thin; scrollbar-color: var(--blau) transparent; }
.fotoband img { flex: none; height: clamp(220px, 30vw, 440px); width: auto; border-radius: 4px; scroll-snap-align: start; }
.fotoband:focus-visible { outline: 2px solid var(--blau); outline-offset: 4px; }
.fotoband-huelle .linie { position: absolute; width: clamp(160px, 22vw, 320px); left: 38%; top: -34%; color: var(--gelb); pointer-events: none; }
.fotoband-huelle .linie svg path { stroke-width: 2.4; }
@media (max-width: 820px) {
  .fotoband img { height: 62vw; }
  .fotoband-huelle .linie { left: 30%; top: -15%; width: 44vw; }
}
/* Tickets-Seite: Infos links, Shop rechts (wie die Anmeldeformulare).
   Nicht sticky: der Weeztix-Shop ist höher als der Bildschirm. */
.tickets-spalten .shop-spalte { position: static; }
.shop-spalte h2 em { font-style: normal; color: var(--gelb); }
.shop-spalte > p { font-size: var(--fs-text-gross); }
.shop-spalte .ticket-embed { margin-top: 0; }
.shop-spalte .ticket-karte { width: 100%; }
@media (max-width: 820px) {
  .tickets-spalten .shop-spalte { order: -1; }
  .formular.shop-spalte { padding-inline: 10px; }
  .formular.shop-spalte h2, .formular.shop-spalte > p { padding-inline: 14px; }
  .ticket-embed { padding: 0; overflow: hidden; }
}
.tickets-kicker { position: relative; z-index: 1; font-size: var(--fs-klein); color: var(--blau); margin-bottom: 14px; }
.aufklapp-vorab { background: color-mix(in srgb, var(--hell) 60%, transparent); border-radius: 6px; padding: 14px 18px; margin-bottom: 26px; }
.aufklapp-vorab p { font-size: var(--fs-text); }
.aufklapp-faq { max-width: none; }
.aufklapp-faq details > .rich-text { padding-bottom: 22px; }
.aufklapp-faq .rich-text p, .aufklapp-faq .rich-text li { font-size: var(--fs-text); }
.aufklapp-faq .rich-text ol { margin: 8px 0 12px 1.2em; }
.aufklapp-vorab > :last-child { margin-bottom: 0; }
.aufklapp-faq details .rich-text p { padding: 0; }
