/* =========================================================
   DANCE IMPACT — Winter Weekend 2026
   Design system matched to the existing danceimpact.de brand:
   off-white/grey base, black/white monochrome, pill buttons with
   the signature cut corner (99px 99px 99px 0), Montserrat uppercase.
   ========================================================= */

:root {
  --bg: #f2f1ee;
  --bg-black: #0a0a0a;
  --fg: #0a0a0a;
  --fg-muted: #63666b;
  --fg-on-black: #f2f1ee;
  --line: rgba(10, 10, 10, 0.14);
  --line-strong: rgba(10, 10, 10, 0.55);
  --card-bg: #ffffff;
  --radius-pill: 99px 99px 99px 0px;
  --radius: 4px;
  --container: 1160px;
  --nav-h: 112px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark mode: manual toggle (see #themeToggle in the nav + main.js), not
   just prefers-color-scheme — the theme-init script in each page's
   <head> applies this attribute before first paint (avoids a flash of
   the wrong theme), falling back to the OS preference only on a first
   visit with nothing saved yet. --bg-black/--fg-on-black stay put on
   purpose: the footer (the only .on-black user) is meant to read as a
   fixed dark accent in both themes, not something that "flips" —
   everything else (including the CTA band) uses --bg/--fg and adapts
   normally. */
:root[data-theme="dark"] {
  --bg: #0e0e0e;
  --fg: #f2f1ee;
  --fg-muted: #9a9a9d;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.4);
  --card-bg: #1c1c1c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin: 0;
  text-transform: uppercase;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--line-strong);
}
.eyebrow.center { justify-content: center; }

.section-head { max-width: 620px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-top: 12px; }
.section-head p { color: var(--fg-muted); margin-top: 14px; font-size: 1.02rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

section { padding: 88px 0; }
.on-black { background: var(--bg-black); color: var(--fg-on-black); }
.on-black .eyebrow, .on-black .eyebrow::before { color: rgba(242,241,238,0.5); background: rgba(242,241,238,0.3); }
.on-black .section-head p { color: rgba(242,241,238,0.62); }

.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}
.on-black .rule { border-top-color: rgba(242,241,238,0.16); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 2px solid var(--fg);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover, .btn-primary:active { background: #545454; }
/* In dark mode .btn-primary is already light-on-dark (var(--fg) is the
   light tone there) — hovering/pressing to the same mid-grey used in
   light mode reads as too dark against a dark page (no explicit :active
   rule before this meant the browser's own default took over while
   pressed, which looked wrong in dark mode). Softens toward light grey
   instead, same idea as .on-black's button just below. */
:root[data-theme="dark"] .btn-primary:hover,
:root[data-theme="dark"] .btn-primary:active { background: #d8d6d0; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn-ghost:hover, .btn-ghost:active { background: var(--fg); color: var(--bg); }
.on-black .btn-primary { background: var(--fg-on-black); color: var(--bg-black); border-color: var(--fg-on-black); }
.on-black .btn-primary:hover, .on-black .btn-primary:active { background: #d8d6d0; }
.on-black .btn-ghost { color: var(--fg-on-black); border-color: var(--fg-on-black); }
.on-black .btn-ghost:hover, .on-black .btn-ghost:active { background: var(--fg-on-black); color: var(--bg-black); }
.btn-small { padding: 9px 18px; font-size: 0.74rem; }

/* ---------- Nav ---------- */
/* Behaviour modelled on fivelovestories.de: transparent + fades in over
   the hero, becomes a solid blurred bar once scrolled. Pages without a
   hero (line-up/timetable/info/bestellung/…) use .site-nav--static to
   start solid immediately instead. */
@keyframes navFadeIn { from { opacity: 0; } to { opacity: 1; } }

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  opacity: 0;
  animation: navFadeIn 0.7s ease 0.1s forwards;
  transition: height 0.35s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
/* Nav content lines up with the same max-width as the footer/sections
   (.container) instead of stretching edge-to-edge. */
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Shrinks into a compact glass bar once scrolled — height only, .nav-h
   stays put so page-header/hero offsets (measured for the tall, resting
   state) don't jump. */
.site-nav.is-scrolled {
  height: 76px;
  background: rgba(242, 241, 238, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 10px 30px rgba(10,10,10,0.07);
}
:root[data-theme="dark"] .site-nav.is-scrolled {
  background: rgba(14, 14, 14, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 10px 30px rgba(0,0,0,0.4);
}
.site-nav--static {
  background: var(--bg);
  border-bottom-color: var(--line);
  opacity: 1;
  animation: none;
}
.nav-logo-img { height: 42px; width: auto; transition: height 0.35s var(--ease); }
.site-nav.is-scrolled .nav-logo-img { height: 32px; }
/* The logo PNGs are flat black glyphs — invert them for dark mode
   instead of shipping/swapping a second asset. */
:root[data-theme="dark"] .nav-logo-img { filter: invert(1); }

.nav-links { display: flex; align-items: center; gap: 8px; position: relative; }
.nav-links a:not(.btn) {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 10px 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  border-radius: 999px;
}
.nav-links .btn { margin-left: 10px; }

/* Dark/light toggle — sits as its own utility icon after "Ticket
   sichern" (the actual nav ends on the CTA), not mixed into the
   Line-Up/Timetable link group. Shows the icon for the CURRENTLY active
   theme; main.js just flips the `data-theme` attribute + persists it. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: 10px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.theme-toggle:hover { background: rgba(10, 10, 10, 0.08); }
:root[data-theme="dark"] .theme-toggle:hover { background: rgba(255, 255, 255, 0.1); }
.theme-icon { width: 17px; height: 17px; }
.theme-icon--moon { display: none; }
:root[data-theme="dark"] .theme-icon--sun { display: none; }
:root[data-theme="dark"] .theme-icon--moon { display: block; }

/* "Ticket sichern": stays a solid, clearly-visible pill at all times —
   just softens from black to grey on hover (same as .btn-primary
   elsewhere), no transparent/outline-only state that could look like the
   button vanished against the nav's own light background. */
.nav-links .btn-primary:hover {
  box-shadow: 0 6px 18px rgba(10, 10, 10, 0.12);
}

/* Sliding pill indicator — glides between nav items on hover and settles
   under the current page when the pointer leaves. Positioned/animated in
   main.js; a light grey (not solid black — keeps link text readable
   without needing a colour swap). */
.nav-pill {
  position: absolute;
  top: 0; left: 0;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.08);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.35s var(--ease), width 0.35s var(--ease), height 0.35s var(--ease), opacity 0.2s var(--ease);
}
.nav-pill.is-visible { opacity: 1; }
/* No-JS fallback (JS disabled): keep a plain hover/current highlight. */
.no-js .nav-links a:not(.btn):hover { background: rgba(10,10,10,0.08); }
.no-js .nav-links a:not(.btn)[aria-current="page"] { background: rgba(10,10,10,0.08); }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--fg);
  border: none;
  cursor: pointer;
  z-index: 40;
  transition: background 0.2s var(--ease);
}
.nav-toggle:hover { background: #2a2a2a; }
.nav-toggle span {
  width: 18px; height: 2px;
  background: var(--bg);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Page header (Line-up / Timetable / Info etc.) ---------- */
.page-header {
  padding: calc(var(--nav-h) + 50px) 28px 56px;
  text-align: center;
  background: var(--bg);
}
.page-header h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin-top: 14px; }
.page-header .lede {
  margin-top: 18px;
  color: var(--fg-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

/* ---------- Hero ---------- */
/* No forced min-height: the block sizes to its (now compact) content so
   the teacher-name ticker right below it stays on-screen on ordinary
   laptop/desktop viewport heights instead of always being scrolled away. */
.hero {
  position: relative;
  /* Fills most (not all) of the viewport, so the teacher-ticker below it
     lands near the bottom of the first screen instead of floating in the
     middle — without the old hard 100vh that pushed it off-screen. */
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 32px) 28px 48px;
  background: var(--bg);
}
/* .hero-grid also carries .container in the markup, so its width/padding
   match .nav-inner exactly — the collage lines up under the nav logo and
   the content column lines up under "Ticket sichern" (see the
   space-between rule below, at the row-layout breakpoint). */
.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-content { text-align: center; }
.hero-logo {
  width: min(170px, 40vw);
  margin: 0 auto 16px;
}

/* Trainer-photo pinwheel — placeholder colours until real line-up photos
   land (see TODO in index.html). Each .petal-shape is one flat-coloured
   triangle; swap `background` for `background-image` per petal once you
   have a cropped trainer photo for that slot. */
.hero-collage { display: none; }
.collage-pinwheel {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}
.petal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
}
.petal-shape {
  position: absolute;
  width: 132px;
  height: 168px;
  transform: translate(-50%, -96%);
  clip-path: polygon(50% 100%, 3% 4%, 97% 4%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 40px;
}
.petal-shape svg { width: 30px; height: 30px; opacity: 0.55; }
.petal:nth-child(1) { transform: rotate(0deg); }
.petal:nth-child(2) { transform: rotate(72deg); }
.petal:nth-child(3) { transform: rotate(144deg); }
.petal:nth-child(4) { transform: rotate(216deg); }
.petal:nth-child(5) { transform: rotate(288deg); }
.petal:nth-child(1) .petal-shape { background: #cf4d46; }
.petal:nth-child(2) .petal-shape { background: #3f8fa3; }
.petal:nth-child(3) .petal-shape { background: #7c5a9e; }
.petal:nth-child(4) .petal-shape { background: #d99a44; }
.petal:nth-child(5) .petal-shape { background: #d3b23e; }
.petal-shape > * { transform: rotate(calc(-1 * var(--petal-angle, 0deg))); }
.petal:nth-child(1) .petal-shape > * { --petal-angle: 0deg; }
.petal:nth-child(2) .petal-shape > * { --petal-angle: 72deg; }
.petal:nth-child(3) .petal-shape > * { --petal-angle: 144deg; }
.petal:nth-child(4) .petal-shape > * { --petal-angle: 216deg; }
.petal:nth-child(5) .petal-shape > * { --petal-angle: 288deg; }

.collage-names {
  margin-top: 18px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  line-height: 1.9;
}
.hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  color: var(--fg-muted);
  margin-bottom: 14px;
}
.hero-headline {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 800;
  /* VHS/RGB nostalgia touch: a subtle magenta/cyan colour-fringe, like a
     mistracked tape — kept light so the text stays crisp and readable. */
  text-shadow: -1.5px 0 rgba(233, 30, 99, 0.45), 1.5px 0 rgba(0, 209, 255, 0.45);
}
.hero-date {
  margin-top: 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}
.hero-sub {
  margin-top: 24px;
  font-size: 1.06rem;
  color: var(--fg-muted);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Countdown — no boxes, reads as a typographic extension of the headline
   (same weight/family, same VHS colour-fringe) rather than a separate
   widget. Units are just divided by thin hairlines. */
.countdown {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}
.countdown-unit {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.countdown-unit:first-child { padding-left: 0; border-left: none; }
.countdown-num {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: -1.5px 0 rgba(233, 30, 99, 0.4), 1.5px 0 rgba(0, 209, 255, 0.4);
}
.countdown-label {
  display: block;
  margin-top: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.countdown-label {
  display: block;
  margin-top: 4px;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* Desktop hero: currently text-only (no photo yet), so just centered.
   Once a real teacher/event photo replaces the old placeholder, put
   .hero-collage back in the markup and switch this to
   `justify-content: space-between` with `.hero-collage { display: block;
   flex: 0 0 300px; }` for the two-column side-by-side layout. */
@media (min-width: 981px) {
  .hero-grid { flex-direction: row; align-items: center; justify-content: center; gap: 40px; }
  .hero-content { flex: 0 1 520px; }
}

/* ---------- Marquee ---------- */
.marquee-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg);
}
.marquee-track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--fg);
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  gap: 26px;
}
.marquee-track span::after { content: '\2726'; color: var(--fg-muted); font-size: 0.9rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Value props ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.value-card {
  padding: 8px 32px 8px 0;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.value-card:not(:first-child) { border-left: 1px solid var(--line); padding-left: 32px; }
.value-card .value-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
}
.value-card h3 { margin-top: 14px; font-size: 1.18rem; }
.value-card p { margin-top: 12px; color: var(--fg-muted); font-size: 0.97rem; text-transform: none; }

/* ---------- Line-up ---------- */
.lineup-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.lineup-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--line-strong);
}
.lineup-card img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: grayscale(100%); }

/* "Taped-up poster" corner flag — for real trainer cards later (see TODO
   in line-up.html) and reused on the scratch cards below. */
.lineup-card .tape {
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 56px; height: 20px;
  background: rgba(242, 241, 238, 0.8);
  border: 1px solid var(--line-strong);
  z-index: 3;
}

/* Fixed light caption plate over the photo, independent of --bg/--fg —
   like a printed photo caption, it doesn't flip with the site theme. If
   .name/.style used the theme tokens they'd turn near-white-on-near-white
   in dark mode. */
.lineup-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(255,255,255,0.94) 0%, transparent 100%);
}
.lineup-info .name { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1rem; text-transform: uppercase; color: #0a0a0a; }
.lineup-info .style { margin-top: 4px; font-size: 0.78rem; color: rgba(10, 10, 10, 0.66); text-transform: none; }

/* Scratch-to-reveal placeholder cards: a coloured petal-icon "TBA" sits
   underneath a hand-drawn "Coming Soon!" scratch layer (painted onto the
   canvas in main.js). Colours cycle through the hero pinwheel's 5 petal
   colours so the two sections read as one system. */
.scratch-card { cursor: default; }
.scratch-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.scratch-card:nth-child(1) .scratch-reveal { background: #cf4d46; }
.scratch-card:nth-child(2) .scratch-reveal { background: #3f8fa3; }
.scratch-card:nth-child(3) .scratch-reveal { background: #7c5a9e; }
.scratch-card:nth-child(4) .scratch-reveal { background: #d99a44; }
.scratch-card:nth-child(5) .scratch-reveal { background: #d3b23e; }
.scratch-reveal .reveal-icon { width: 34px; height: 34px; opacity: 0.85; }
/* Once a real trainer photo is confirmed, the card stays a scratch-card
   (see line-up.html) but reveals a photo instead of a flat colour. */
.scratch-reveal.has-photo {
  background: none;
  display: block;
}
.scratch-reveal.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(100%);
}
.scratch-reveal .reveal-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: #fff;
}
.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
.scratch-canvas:active { cursor: grabbing; }
/* Quiet hint line, sitting right under the "TEACHER #N" canvas text
   (which itself is nudged up a bit — see .scratch-canvas paint() in
   main.js) — pulses gently to draw the eye without adding a big box. */
.scratch-hint {
  position: absolute;
  left: 50%; top: 66%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: scratchHintPulse 1.8s ease-in-out infinite;
  transition: opacity 0.3s var(--ease);
}
.scratch-hint svg { width: 14px; height: 14px; opacity: 0.7; }
.scratch-hint span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.6);
  white-space: nowrap;
}
.scratch-card.is-revealed .scratch-hint,
.scratch-card.is-scratching .scratch-hint {
  opacity: 0;
  animation: none;
}
@keyframes scratchHintPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scratch-hint { animation: none; }
}

/* Utility: screen-reader-only text — keeps info like the scratch cards'
   status available even though the visual reveal is a mouse/touch
   interaction. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Timetable ---------- */
.timetable-days {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
.timetable-day-head { text-align: center; margin-bottom: 34px; }
.timetable-day-head h3 {
  font-size: 1.4rem;
  letter-spacing: 0.16em;
}
.timetable-day-head .day-date-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.timetable-day-head .day-date-row::before,
.timetable-day-head .day-date-row::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}
.timetable-day-head .day-date {
  color: var(--fg-muted);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.timetable-slots { display: flex; flex-direction: column; gap: 18px; }
.timetable-slots li {
  display: flex;
  align-items: center;
  gap: 18px;
}
.timetable-slots li.checkin {
  gap: 14px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  text-transform: none;
  color: var(--fg-muted);
  font-size: 0.95rem;
}
.timetable-slots li.checkin .time {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--fg);
}
.slot-thumb {
  flex-shrink: 0;
  width: 68px; height: 68px;
  border-radius: var(--radius);
  background: var(--bg-black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.slot-thumb svg { width: 30px; height: 30px; opacity: 0.9; }
.slot-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }
.slot-info { display: flex; flex-direction: column; gap: 4px; }
.slot-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
}
.slot-time { font-size: 0.9rem; color: var(--fg-muted); text-transform: none; }

/* ---------- Editions ---------- */
.editions-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}
.edition-card {
  flex: 0 0 210px;
  aspect-ratio: 4 / 5;
  background: var(--card-bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.edition-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); opacity: 0.9; }
.edition-card span {
  position: relative;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.92rem;
}

/* ---------- Info / FAQ ---------- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.info-facts { display: grid; }
.info-fact {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.95rem;
}
.info-fact:first-child { border-top: none; }
.info-fact .label { color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; font-family: 'Montserrat', sans-serif; font-weight: 700; }
.info-fact .value { font-weight: 600; text-align: right; }

/* Plain checklist, e.g. "Was du mitbringen solltest" on info.html —
   dash-prefixed like the .eyebrow rule line, not a full custom icon set. */
.simple-list { display: flex; flex-direction: column; gap: 12px; }
.simple-list li { position: relative; padding-left: 22px; font-size: 0.98rem; }
.simple-list li::before { content: '—'; position: absolute; left: 0; color: var(--fg-muted); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  background: transparent;
  border: none;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
}
.faq-q .plus { font-size: 1.3rem; color: var(--fg-muted); transition: transform 0.3s var(--ease); flex-shrink: 0; }
.faq-item.is-open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a p { padding-bottom: 18px; color: var(--fg-muted); font-size: 0.95rem; text-transform: none; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band p { margin-top: 16px; opacity: 0.7; max-width: 480px; margin-left: auto; margin-right: auto; font-size: 1.02rem; }
.cta-actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.whatsapp-icon { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { padding: 60px 0 26px; background: var(--bg-black); color: var(--fg-on-black); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(242,241,238,0.16);
}
.footer-logo-img { height: 32px; margin-bottom: 18px; }
.footer-top p { color: rgba(242,241,238,0.6); font-size: 0.9rem; max-width: 300px; }
.footer-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242,241,238,0.5);
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 0.65; }
.footer-links svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(242,241,238,0.5);
  font-size: 0.84rem;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--fg-on-black); }

/* ---------- Legal pages (Impressum / Datenschutz / AGB) ---------- */
.legal-content { max-width: 720px; margin: 0 auto; padding-bottom: 40px; }
.legal-content h2 {
  font-size: 1.15rem;
  margin-top: 44px;
  margin-bottom: 14px;
  text-transform: none;
  letter-spacing: 0;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li {
  color: var(--fg-muted);
  font-size: 0.98rem;
  line-height: 1.75;
  text-transform: none;
  margin-bottom: 14px;
}
.legal-content ul { padding-left: 22px; list-style: disc; margin-bottom: 14px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { text-decoration: underline; color: var(--fg); }
.legal-content strong { color: var(--fg); font-weight: 700; }
.legal-content .legal-meta {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 40px;
}

/* ---------- Checkout ---------- */
.checkout-wrap { padding-top: calc(var(--nav-h) + 56px); padding-bottom: 100px; min-height: 100vh; background: var(--bg); }
.checkout-card { background: var(--card-bg); border: 1px solid var(--line); padding: 32px; }
/* Full container width, so the 4 ticket-type cards get enough room and
   don't look cramped. Used to be capped at 640px ("comfortable reading
   width") from when there was a side-by-side "which weekend" note card,
   but that made the Tickettyp grid feel squeezed once "Spende" became a
   4th option. */
.checkout-card--solo { width: 100%; }
.field { margin-bottom: 20px; }
/* Direct-child combinator on purpose: a plain ".field label" would also
   match the .ticket-type-card labels nested inside (.field > .ticket-types
   > label), and its specificity (0,1,1) beats .ticket-type-card's (0,1,0)
   — silently forcing those cards from flex back to block/inline layout. */
.field > label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.field input[type="text"], .field input[type="email"], .field input[type="number"], .field input[type="tel"] {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
}
.field input:focus { outline: none; border-color: var(--fg); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* Full-width on mobile (easy tap target); on desktop the card is now
   full container width (see .checkout-card--solo above), so a
   full-width button reads as oversized — auto-width + left-aligned
   there instead. */
.checkout-submit { width: 100%; }
@media (min-width: 721px) {
  .checkout-submit { width: auto; min-width: 260px; }
}

/* Three selectable ticket-type cards (Weekend / Day SA / Day SO). */
.ticket-types {
  display: grid;
  /* auto-fit instead of a fixed repeat(N, 1fr): the 4th "Spende" card
     (config.php -> donation) sits alongside the 3 real ticket types, and
     this keeps the grid from needing a manual column-count bump every
     time a card is added or removed. */
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 30px;
}
.ticket-type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 22px 12px 20px;
  text-align: center;
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.ticket-type-card:hover { transform: translateY(-2px); }
.ticket-type-card:has(input:checked) {
  border-color: var(--fg);
  background: var(--card-bg);
  box-shadow: 0 8px 20px rgba(10, 10, 10, 0.1);
}
.ticket-type-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ticket-type-card .tt-check {
  position: absolute;
  top: 10px; right: 10px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
  transition: border-color 0.2s, background 0.2s;
}
.ticket-type-card .tt-check::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--fg);
  transform: scale(0);
  transition: transform 0.15s var(--ease);
}
.ticket-type-card:has(input:checked) .tt-check { border-color: var(--fg); }
.ticket-type-card:has(input:checked) .tt-check::after { transform: scale(1); }
/* Order within the card, top to bottom: Name → Preis → Tag/Datum —
   price gets top billing since it's what people compare first. */
.ticket-type-card .tt-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  text-transform: uppercase;
}
/* Small solid pill, same idea as the site's other dark badges — shown
   only while the shared presale pool (config.php -> presale_limit) is
   still active for this type. */
.ticket-type-card .tt-presale-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ticket-type-card .tt-price {
  margin-top: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
}
/* Crossed-out regular price next to the active presale price — the
   "you're saving money right now" cue that goes with .tt-presale-badge. */
.ticket-type-card .tt-regular-price {
  margin-left: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: line-through;
  color: var(--fg-muted);
}
.ticket-type-card .tt-sublabel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  width: 100%;
  font-size: 0.78rem;
  color: var(--fg-muted);
}
/* Remaining count per type (not the total — see config.php comment on
   why total_limit itself never shows up here) — deliberately red and a
   size up from .tt-sublabel: this is the FOMO/urgency cue, not a quiet
   footnote. "Ausverkauft" reverts to muted grey instead (a dead end,
   not something to create urgency around). */
.ticket-type-card .tt-availability {
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #c0392b;
}
:root[data-theme="dark"] .ticket-type-card .tt-availability { color: #ff6b6b; }
.ticket-type-card.is-soldout {
  cursor: not-allowed;
  opacity: 0.5;
}
.ticket-type-card.is-soldout:hover { transform: none; }
.ticket-type-card.is-soldout .tt-availability { color: var(--fg-muted); }
@media (max-width: 560px) {
  .ticket-types { grid-template-columns: 1fr; }
  .ticket-type-card { flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 44px 16px 18px; text-align: left; }
  .ticket-type-card .tt-sublabel { margin-top: 2px; padding-top: 0; border-top: none; width: auto; }
  .ticket-type-card .tt-availability { margin-top: 2px; }
  .ticket-type-card .tt-check { top: 50%; transform: translateY(-50%); }
  .ticket-type-card:has(input:checked) .tt-check { transform: translateY(-50%); }
}

.pay-option {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.pay-option:has(input:checked) { border-color: var(--fg); background: rgba(10,10,10,0.03); }
.pay-option input { margin-top: 4px; accent-color: var(--fg); }
.pay-option .pay-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.96rem; }
.pay-option .pay-desc { margin-top: 4px; color: var(--fg-muted); font-size: 0.87rem; }
.pay-option .pay-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
}
.pay-tag.free { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pay-tag.fee { color: var(--fg-muted); }

.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

#orderSummary { margin-bottom: 24px; }
.order-line { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.93rem; color: var(--fg-muted); }
.order-line:first-child { border-top: none; }
.order-total {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--fg);
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 14px;
}
.checkout-note { margin-top: 18px; font-size: 0.82rem; color: var(--fg-muted); }
.order-error { color: #b3261e; font-size: 0.95rem; margin-bottom: 20px; }
:root[data-theme="dark"] .order-error { color: #ff8a80; }
.checkout-note a { text-decoration: underline; }

@media (max-width: 860px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Reveal on scroll ---------- */
.reveal-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-on-scroll.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .value-grid { grid-template-columns: 1fr; }
  .value-card:not(:first-child) { border-left: none; padding-left: 0; }
  .lineup-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  :root { --nav-h: 84px; }
  section { padding: 64px 0; }
  .nav-logo-img { height: 34px; }
  .nav-toggle { display: flex; }

  /* The sliding pill is a hover interaction — on touch there's no real
     "hover", so the mouseenter-triggered glide just fires right as the
     tap navigates away, reading as a stray flash instead of a smooth
     highlight. Drop it here and fall back to a plain static highlight
     on the current page instead (main.js still runs the same logic
     harmlessly, it just has nothing visible to move). */
  .nav-pill { display: none; }
  .nav-links a[aria-current="page"] { background: rgba(10, 10, 10, 0.08); }
  :root[data-theme="dark"] .nav-links a[aria-current="page"] { background: rgba(255, 255, 255, 0.1); }

  /* WhatsApp CTA: "Fragen? Schreibt uns auf WhatsApp" is too long for a
     mobile pill button — the icon already signals what it is, so just
     "WhatsApp" is enough. */
  .cta-whatsapp-long { display: none; }

  /* Always a solid bar on mobile — same reasoning as fivelovestories.de:
     no room for a transparent bar to float legibly, so it's constantly
     visible instead of fading in with the rest of the hero. */
  .site-nav {
    background: var(--bg);
    opacity: 1;
    animation: none;
    border-bottom-color: var(--line);
  }
  /* No backdrop-filter here on purpose: it creates a new containing
     block for position:fixed descendants, and .nav-links (the
     full-screen mobile menu) is a child of .site-nav — with blur on,
     the "fixed, inset:0" menu was resolving against this small bar's
     own box instead of the viewport, so it opened stuck in a sliver
     near the top instead of covering the screen. Solid opaque
     background gets the same "always legible" look without that trap. */
  .site-nav.is-scrolled {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 10px 30px rgba(10,10,10,0.05);
  }

  /* Full-screen overlay menu, matching fivelovestories.de's mobile nav. */
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 34px;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
    z-index: 35;
  }
  .nav-links.is-open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.4s var(--ease), visibility 0s linear 0s;
  }
  .nav-links a:not(.btn) {
    font-size: 1.1rem;
  }
  /* Match the plain links' size — .btn's own font-size (0.86rem) reads
     noticeably smaller than "Line Up"/"Timetable" at 1.1rem otherwise. */
  .nav-links .btn {
    margin: 10px 0 0;
    font-size: 1rem;
    padding: 16px 30px;
  }
  .theme-toggle { margin: 14px 0 0; width: 42px; height: 42px; }
  .theme-icon { width: 19px; height: 19px; }

  /* Modern touch: menu items stagger in slightly as the panel opens. */
  .nav-links li {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  }
  .nav-links.is-open li { opacity: 1; transform: none; }
  .nav-links.is-open li:nth-child(1) { transition-delay: 0.08s; }
  .nav-links.is-open li:nth-child(2) { transition-delay: 0.13s; }
  .nav-links.is-open li:nth-child(3) { transition-delay: 0.18s; }
  .nav-links.is-open li:nth-child(4) { transition-delay: 0.23s; }

  .timetable-days { grid-template-columns: 1fr; }
  .lineup-grid { grid-template-columns: 1fr; }

  /* Shrink enough that all 4 units fit on one line instead of the 4th
     ("Sek") wrapping onto an orphaned row of its own. */
  .countdown { gap: 14px; }
  .countdown-unit { padding-left: 12px; }
  .countdown-num { font-size: 1.5rem; }
  .countdown-label { font-size: 0.6rem; }
}
