/* Fanbingo – Webseite. Farben, Schrift und Animationen folgen docs/design.md („Stadionabend“). */

@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

/* Dark ist Standard (wie in der App), Light folgt der Systemeinstellung. */
:root {
  color-scheme: dark light;
  --bg: #0a1810;
  --stripe: rgba(255, 255, 255, 0.028);
  --surface: #12261a;
  --surface-2: #183223;
  --text: #f2f6f0;
  --muted: #a9bcad;
  --outline: #4f6b58;
  --line: rgba(79, 107, 88, 0.45);
  --accent: #ffd23f;
  --accent-text: #ffd23f;
  --on-accent: #10241a;
  --grass: #2fbf5b;
  --grass-text: #2fbf5b;
  --board: #061009;
  --board-cell: #13261a;
  --focus: #6fb1ff;
  --ticket: #f6f8f2;
  --ticket-head: #46594b;
  --ticket-rule: #c3cec0;
  --cell-text: #10241a;
  --beam: rgba(255, 244, 200, 0.13);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --page: 1160px;
  --spring: cubic-bezier(.2, .9, .3, 1.25);
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #e4ede3;
    --stripe: rgba(0, 80, 20, 0.045);
    --surface: #ffffff;
    --surface-2: #f3f7f2;
    --text: #0e2016;
    --muted: #46594b;
    --outline: #6f8777;
    --line: rgba(70, 89, 75, 0.25);
    --accent-text: #6e4d00;
    --grass-text: #156b34;
    --focus: #1d6fe0;
    --beam: rgba(255, 210, 63, 0.16);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: repeating-linear-gradient(180deg, transparent 0 64px, var(--stripe) 64px 128px);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 14px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ================= Kopfzeile ================= */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; transition: transform .4s var(--spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.brand span { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: .02em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); padding: 10px 12px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.header-clock { display: none; align-items: center; gap: 3px; margin-left: 8px; }
@media (min-width: 760px) { .header-clock { display: inline-flex; } }
@media (max-width: 420px) { .brand span { display: none; } .nav a { padding: 10px; font-size: 1.05rem; } }

/* Lesefortschritt als Spielverlauf */
.progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--accent); }

/* ================= Typografie ================= */

h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(3rem, 8.4vw, 5.8rem); text-transform: uppercase; }
h2 { font-weight: 800; font-size: clamp(2.2rem, 5.4vw, 3.4rem); text-transform: uppercase; }
h3 { font-weight: 700; font-size: 1.55rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 34em; }
.eyebrow { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }
.hl { color: var(--accent); }
@media (prefers-color-scheme: light) { .hl { color: inherit; background: linear-gradient(transparent 62%, var(--accent) 62%); } }

/* Zeilen der Überschrift fahren von unten ein */
.rise { display: block; overflow: hidden; padding-bottom: .04em; }
.rise > span { display: inline-block; }
.js .rise > span { transform: translateY(105%); transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.js .loaded .rise > span { transform: none; }
.js .loaded .rise:nth-child(2) > span { transition-delay: .08s; }
.js .loaded .rise:nth-child(3) > span { transition-delay: .16s; }

/* ================= Buttons ================= */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border-radius: 14px; overflow: hidden; cursor: pointer;
  font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; background: none;
  transition: transform .25s var(--spring), box-shadow .25s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 3px 0 #b38e00; }
.btn-primary:active { box-shadow: 0 1px 0 #b38e00; }
.btn-secondary { border-color: var(--outline); color: var(--text); }
.btn-secondary:hover { border-color: var(--text); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-family: var(--body); font-weight: 500; font-size: .72rem; letter-spacing: 0; text-transform: none; opacity: .8; line-height: 1.1; }
.btn .two-line { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 1.05rem; border-radius: 12px; }

/* ================= Fallblatt (Anzeigetafel) ================= */

.flaps { display: inline-flex; gap: 3px; perspective: 400px; }
.flap {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.15em; height: 1.45em; padding: 0 .12em; border-radius: .16em;
  background: var(--board-cell); color: var(--accent); font-family: var(--display); font-weight: 700; line-height: 1;
  box-shadow: inset 0 -0.72em 0 rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .05);
  transform-style: preserve-3d;
}
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .55); }
.flap.out { animation: flap-out .16s ease-in forwards; }
.flap.in { animation: flap-in .2s ease-out; }
@keyframes flap-out { to { transform: rotateX(-90deg); } }
@keyframes flap-in { from { transform: rotateX(90deg); } to { transform: rotateX(0); } }
.header-clock .flap { font-size: 1.1rem; }
.header-clock .unit { font-family: var(--display); font-weight: 700; color: var(--muted); margin-left: 2px; }

/* ================= Hero ================= */

.hero { position: relative; padding: 48px 0 80px; overflow: hidden; isolation: isolate; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1fr 1fr; } .hero { padding: 72px 0 104px; } }
.hero .lead { margin-bottom: 28px; }
.hero .note { margin-top: 16px; font-size: .95rem; color: var(--muted); }

/* Flutlicht: zwei Lichtkegel von oben, die langsam schwenken */
.floodlights { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.beam {
  position: absolute; top: -30%; width: 70vmax; height: 140%;
  background: conic-gradient(from 180deg at 50% 0%, transparent 168deg, var(--beam) 176deg, var(--beam) 184deg, transparent 192deg);
  filter: blur(6px); transform-origin: 50% 0;
}
.beam.l { left: -20vmax; transform: rotate(-28deg); }
.beam.r { right: -20vmax; transform: rotate(28deg); }
.lamp { position: absolute; top: -40px; width: 160px; height: 80px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 250, 220, .5), transparent); filter: blur(8px); }
.lamp.l { left: 6%; } .lamp.r { right: 6%; }
@media (prefers-color-scheme: light) { .lamp { opacity: .4; } }
@keyframes sway-l { 0%, 100% { transform: rotate(-30deg); } 50% { transform: rotate(-20deg); } }
@keyframes sway-r { 0%, 100% { transform: rotate(30deg); } 50% { transform: rotate(21deg); } }

/* BINGO-Kacheln */
.bingo-tiles { display: flex; width: max-content; gap: 6px; margin-bottom: 18px; perspective: 600px; }
.bingo-tiles span {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 48px; border-radius: 8px;
  background: var(--board); color: var(--accent); font-family: var(--display); font-weight: 800; font-size: 1.9rem;
  box-shadow: inset 0 -24px 0 rgba(255, 255, 255, .03), 0 6px 16px rgba(0, 0, 0, .25); position: relative;
}
.bingo-tiles span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .6); }
.js .bingo-tiles span { transform: rotateX(-100deg); opacity: 0; }
.js .loaded .bingo-tiles span { animation: tile-in .55s var(--spring) forwards; animation-delay: calc(var(--i) * 80ms + .2s); }
@keyframes tile-in { 0% { transform: rotateX(-100deg); opacity: 0; } 100% { transform: rotateX(0); opacity: 1; } }

/* ================= Handy mit Live-Demo ================= */

.stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.stage::before {
  content: ""; position: absolute; left: 50%; top: 45%; width: 520px; height: 520px; max-width: 140%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(47, 191, 91, .28), transparent 70%); z-index: -1; pointer-events: none;
}
.phone {
  --pc: #f2f6f0;
  position: relative; width: min(100%, 360px); aspect-ratio: 360 / 740; container-type: inline-size;
  border-radius: 52px; padding: 11px; background: linear-gradient(145deg, #2a3a30, #050a07 40%, #1d2a22);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .08) inset, 0 40px 80px -20px rgba(0, 0, 0, .6), 0 18px 36px -18px rgba(0, 0, 0, .5);
  transform: perspective(1400px) rotateY(var(--ry, -10deg)) rotateX(var(--rx, 4deg));
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.screen {
  position: relative; height: 100%; border-radius: 42px; overflow: hidden; color: #f2f6f0;
  background: #0a1810 repeating-linear-gradient(180deg, transparent 0 9cqi, rgba(255, 255, 255, .028) 9cqi 18cqi);
  display: flex; flex-direction: column; padding: 13cqi 3.6cqi 3.6cqi; gap: 2.6cqi;
}
.island { position: absolute; top: 3cqi; left: 50%; width: 30cqi; height: 8.4cqi; transform: translateX(-50%); background: #000; border-radius: 99px; z-index: 6; }

/* Anzeigetafel oben */
.p-board { display: flex; align-items: center; justify-content: space-between; gap: 2cqi; background: #061009; border-radius: 4.4cqi; padding: 2.2cqi 3cqi; }
.p-board img { width: 8.4cqi; height: 8.4cqi; border-radius: 2cqi; }
.p-board .flaps { font-size: 6.4cqi; gap: .8cqi; }
.p-board .flap { box-shadow: inset 0 -0.72em 0 rgba(0, 0, 0, .22); }
.p-min { display: flex; align-items: center; gap: 1cqi; font-family: var(--display); font-weight: 700; }
.p-min .tick { color: #a9bcad; font-size: 5cqi; }
.p-pts { font-family: var(--display); font-weight: 700; font-size: 5.4cqi; color: #ffd23f; min-width: 14cqi; text-align: right; }
.p-pts small { color: #a9bcad; font-size: .75em; margin-left: .3em; }

/* Spielerleiste */
.p-chips { display: flex; gap: 1.6cqi; }
.p-chip {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: .4cqi; padding: 1.6cqi 2.2cqi; border-radius: 3.4cqi;
  background: #12261a; border: .6cqi solid transparent; cursor: pointer; text-align: left; transition: transform .35s var(--spring), border-color .2s;
}
.p-chip .nm { display: flex; align-items: center; gap: 1.4cqi; font-family: var(--display); font-weight: 700; font-size: 4.4cqi; line-height: 1; }
.p-chip .jersey { width: 3.8cqi; height: 3.8cqi; flex: none; border-radius: 1cqi 1cqi 1.4cqi 1.4cqi; background: var(--j); clip-path: polygon(22% 0, 78% 0, 100% 22%, 86% 38%, 86% 100%, 14% 100%, 14% 38%, 0 22%); }
.p-chip .st { font-size: 2.9cqi; color: #a9bcad; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.3em; }
.p-chip .st.hot { color: #ffd23f; font-weight: 700; }
.p-chip .st.win { color: #2fbf5b; font-weight: 700; }
.p-chip[aria-pressed="true"] { border-color: var(--j); }
.p-chip[aria-pressed="true"] .nm { font-weight: 800; }
.p-chip.pulse { animation: chip-pulse .35s var(--spring); }
@keyframes chip-pulse { 50% { transform: scale(1.08); } }

/* Ticket */
.p-pager { position: relative; flex: 1; perspective: 1200px; }
.ticket {
  position: relative; background: var(--ticket); color: var(--cell-text); border-radius: 5cqi; padding: 3cqi 2.6cqi 2.6cqi;
  box-shadow: 0 3.4cqi 8cqi rgba(0, 0, 0, .35);
}
.ticket::before, .ticket::after { content: ""; position: absolute; top: 7.2cqi; width: 5cqi; height: 5cqi; border-radius: 50%; background: #0a1810; }
.ticket::before { left: -2.5cqi; } .ticket::after { right: -2.5cqi; }
.ticket-head {
  display: flex; justify-content: space-between; gap: 2cqi; padding: 0 1.4cqi 2.6cqi; margin-bottom: 2.6cqi;
  font-family: var(--display); font-weight: 700; font-size: 3.4cqi; letter-spacing: .08em; text-transform: uppercase; color: var(--ticket-head);
  border-bottom: .5cqi dashed var(--ticket-rule);
}
.ticket-head b { color: var(--j); }
.ticket.deal { animation: deal .6s var(--spring) both; transform-origin: 50% 50%; }
@keyframes deal { from { transform: rotateY(-90deg); opacity: .2; } to { transform: rotateY(0); opacity: 1; } }
.ticket.slide-l { animation: slide-l .32s cubic-bezier(.2, .8, .2, 1) both; }
.ticket.slide-r { animation: slide-r .32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes slide-l { from { transform: translateX(40%); opacity: 0; } }
@keyframes slide-r { from { transform: translateX(-40%); opacity: 0; } }

.grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4cqi; }
.cell {
  position: relative; aspect-ratio: 1; border-radius: 2.8cqi; display: flex; align-items: center; justify-content: center;
  padding: 3.6cqi .8cqi 1.2cqi; text-align: center; cursor: pointer; overflow: visible;
  font-family: var(--display); font-weight: 600; font-size: 3.5cqi; line-height: 1.02; color: var(--cell-text); hyphens: manual;
  background: #fbfcf8; border: .4cqi solid #c9d3c6; transition: transform .15s;
}
.cell:active { transform: scale(.9); }
.cell .pts { position: absolute; top: .9cqi; right: 1.5cqi; font-size: 2.5cqi; font-weight: 700; color: #46594b; }
.cell .t { position: relative; z-index: 3; }
.cell.r2 { background: #f2f5f7; border: .55cqi solid #6f7b85; box-shadow: inset 0 0 0 .28cqi #fff; }
.cell.r3 { background: #fff4d2; border: .55cqi solid #a87700; }
.cell.r3 .pts { color: #6e4d00; }
.cell.r5 { background: linear-gradient(115deg, #f6e6ff 0%, #e0f1ff 35%, #fff2cf 62%, #e4fbe7 100%); background-size: 220% 220%; border: .55cqi solid #7b4fcf; }
.cell.r5 .pts { color: #4e2a9a; }
.stamp { position: absolute; inset: 1.9cqi; z-index: 1; pointer-events: none; opacity: .55; }
.stamp svg { width: 100%; height: 100%; overflow: visible; }
.stamp.land { animation: stamp .45s var(--spring) both; }
.stamp.lift { animation: lift .2s ease-in forwards; }
@keyframes stamp { 0% { transform: scale(2.3) rotate(-14deg); opacity: 0; } 60% { transform: scale(.88) rotate(-14deg); opacity: .6; } 100% { transform: scale(1) rotate(-14deg); opacity: .55; } }
@keyframes lift { to { transform: scale(1.2) rotate(-14deg); opacity: 0; } }
.stamp { transform: rotate(-14deg); }
.cell.near { border-style: dashed; border-color: #a87700; }
.cell.near::before { content: ""; position: absolute; inset: -.6cqi; border-radius: 3.2cqi; box-shadow: 0 0 0 .8cqi rgba(255, 190, 0, .6), 0 0 4cqi rgba(255, 190, 0, .6); opacity: .6; pointer-events: none; }
.cell.bump { animation: bump .3s var(--spring); }
@keyframes bump { 50% { transform: scale(1.1); } }
.lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.lines line { vector-effect: non-scaling-stroke; }
.lines .seam { stroke: #fff; stroke-width: 3.2cqi; stroke-linecap: round; opacity: .9; }
.lines .stroke { stroke: var(--j); stroke-width: 1.8cqi; stroke-linecap: round; }
.lines .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .5s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Funken */
.spark { position: absolute; left: 50%; top: 50%; width: 1.6cqi; height: 1.6cqi; margin: -.8cqi; border-radius: 50%; background: var(--c, #ffbe00); z-index: 4; pointer-events: none; box-shadow: 0 0 2cqi var(--c, #ffbe00); animation: spark .65s ease-out forwards; }
@keyframes spark { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--x), var(--y)) scale(.3); opacity: 0; } }

/* Untere Leiste */
.p-bar { display: flex; gap: 2cqi; margin-top: auto; }
.p-bar button { height: 13cqi; border-radius: 3.8cqi; font-family: var(--display); font-weight: 800; font-size: 4.8cqi; letter-spacing: .03em; text-transform: uppercase; cursor: pointer; transition: transform .15s; }
.p-bar button:active { transform: scale(.95); }
.p-undo { flex: 1; background: transparent; border: .5cqi solid #4f6b58; color: #f2f6f0; }
.p-event { flex: 1.5; background: #ffd23f; color: #10241a; border: 0; }

/* Hinweis */
.p-toast {
  position: absolute; left: 3.6cqi; right: 3.6cqi; bottom: 19cqi; z-index: 5; display: flex; align-items: center; gap: 2cqi;
  background: #10241a; color: #fff; border-radius: 3.4cqi; padding: 2.8cqi 3.4cqi; font-size: 3.6cqi; box-shadow: 0 3cqi 8cqi rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(4.4cqi); transition: opacity .25s, transform .25s cubic-bezier(.2, .8, .2, 1); pointer-events: none;
}
.p-toast.show { opacity: 1; transform: none; }
.p-toast .msg { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-toast .msg b { font-weight: 700; }
.p-toast .min { font-family: var(--display); font-weight: 700; color: #a9bcad; }
.p-toast .act { font-family: var(--display); font-weight: 800; color: #ffd23f; text-transform: uppercase; letter-spacing: .04em; }

/* SENSATION!-Banner */
.p-sensation {
  position: absolute; left: -10%; right: -10%; top: 42%; z-index: 7; padding: 3cqi 0; text-align: center; pointer-events: none;
  background: linear-gradient(90deg, #6a3fc4, #2563a8); color: #fff; font-family: var(--display); font-weight: 800; font-size: 11cqi; letter-spacing: .1em;
  transform: rotate(-6deg) translateX(-130%); box-shadow: 0 3cqi 10cqi rgba(40, 20, 90, .5);
}
.p-sensation.go { animation: sensation 1.9s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes sensation { 0% { transform: rotate(-6deg) translateX(-130%); } 18% { transform: rotate(-6deg) translateX(0); } 80% { transform: rotate(-6deg) translateX(0); } 100% { transform: rotate(-6deg) translateX(130%); } }

/* Bingo-Dialog */
.p-dialog { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; padding: 6cqi; background: rgba(5, 14, 9, .8); opacity: 0; pointer-events: none; transition: opacity .2s; }
.p-dialog.show { opacity: 1; pointer-events: auto; }
.p-dialog .box { width: 100%; background: #12261a; border-radius: 6.6cqi; padding: 6cqi 5cqi; text-align: center; transform: scale(.6); transition: transform .5s var(--spring); }
.p-dialog.show .box { transform: scale(1); }
.p-dialog .tiles { display: flex; justify-content: center; gap: 1.4cqi; perspective: 500px; margin-bottom: 4cqi; }
.p-dialog .tiles span {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 12cqi; height: 15cqi; border-radius: 2cqi;
  background: #061009; color: #ffd23f; font-family: var(--display); font-weight: 800; font-size: 11cqi; transform: rotateX(-100deg); opacity: 0;
}
.p-dialog .tiles span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .6); }
.p-dialog.show .tiles span { animation: tile-in .5s var(--spring) forwards; animation-delay: calc(var(--i) * 80ms + .15s); }
.p-dialog .who { font-family: var(--display); font-weight: 800; font-size: 10cqi; text-transform: uppercase; line-height: 1; margin-bottom: 1.6cqi; }
.p-dialog .meta { color: #a9bcad; font-size: 3.8cqi; margin-bottom: 5cqi; }
.p-dialog .go { width: 100%; height: 12cqi; border: 0; border-radius: 3.8cqi; background: #ffd23f; color: #10241a; font-family: var(--display); font-weight: 800; font-size: 4.8cqi; text-transform: uppercase; cursor: pointer; }

.stage-ctrl { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .9rem; flex-wrap: wrap; justify-content: center; }
.stage-ctrl .hint { display: inline-flex; align-items: center; gap: 6px; }
.stage-ctrl .hint::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grass); box-shadow: 0 0 0 0 rgba(47, 191, 91, .7); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(47, 191, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 191, 91, 0); } }
.ctrl-btn { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--outline); background: var(--surface); cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.ctrl-btn:hover { border-color: var(--text); }
.ctrl-btn svg { width: 14px; height: 14px; }

/* ================= LED-Bande ================= */

.led {
  position: relative; background: #050c08; border-top: 3px solid #1b2b21; border-bottom: 3px solid #1b2b21; overflow: hidden;
  padding: 14px 0; transform: skewY(-1.6deg); margin: 12px 0; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5);
}
.led::after {
  /* LED-Raster */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, transparent 1.1px, rgba(5, 12, 8, .75) 1.4px) 0 0 / 4px 4px;
}
.led-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.led:hover .led-track, .led.paused .led-track { animation-play-state: paused; }
.led-track span { flex: none; padding-right: 48px; font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: .08em; text-transform: uppercase; color: #ffd23f; text-shadow: 0 0 12px rgba(255, 210, 63, .7); white-space: nowrap; }
.led-track i { font-style: normal; color: #2fbf5b; text-shadow: 0 0 12px rgba(47, 191, 91, .7); }
.led-track em { font-style: normal; color: #c9a6ff; text-shadow: 0 0 12px rgba(160, 110, 255, .8); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================= Abschnitte ================= */

section { padding: 88px 0; position: relative; }
section.alt { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.section-head { max-width: 42em; margin-bottom: 44px; }
.section-head p { color: var(--muted); }

/* Einblenden beim Scrollen */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* --- Ein Tipp, alle Karten --- */
.onetap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .onetap { grid-template-columns: .9fr 1.1fr; } }
.fan { position: relative; height: 380px; display: flex; justify-content: center; align-items: center; }
.mini {
  position: absolute; width: 210px; background: var(--ticket); color: var(--cell-text); border-radius: 14px; padding: 10px 9px 9px; box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
  transition: transform .9s var(--spring);
}
.mini .head { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 800; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; padding: 0 4px 8px; margin-bottom: 8px; border-bottom: 2px dashed var(--ticket-rule); }
.mini .head .jersey { width: 13px; height: 13px; background: var(--j); clip-path: polygon(22% 0, 78% 0, 100% 22%, 86% 38%, 86% 100%, 14% 100%, 14% 38%, 0 22%); }
.mini .g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mini .c { position: relative; aspect-ratio: 1; border-radius: 8px; background: #fbfcf8; border: 1.5px solid #c9d3c6; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px; font-family: var(--display); font-weight: 600; font-size: .78rem; line-height: 1; }
.mini .c.r2 { background: #f2f5f7; border: 2px solid #6f7b85; }
.mini .c.r3 { background: #fff4d2; border: 2px solid #a87700; }
.mini .c.hit { border-color: var(--j); }
.mini .c .stamp { inset: 5px; }
.mini .c .t { position: relative; z-index: 2; }
.mini.m1 { --j: #e4572e; transform: translate(-175px, 20px) rotate(-9deg); }
.mini.m2 { --j: #2e7fd6; transform: translate(0, -18px) rotate(1deg); z-index: 2; }
.mini.m3 { --j: #7b4fcf; transform: translate(175px, 24px) rotate(8deg); }
@media (max-width: 640px) {
  .fan { height: 330px; }
  .mini { width: 160px; }
  .mini .c { font-size: .64rem; }
  .mini.m1 { transform: translate(-100px, 24px) rotate(-9deg); }
  .mini.m3 { transform: translate(100px, 28px) rotate(8deg); }
}
.js .fan:not(.dealt) .mini { transform: translate(0, 60px) rotate(0) scale(.9); }
.event-pill {
  position: absolute; top: 0; left: 50%; z-index: 5; transform: translate(-50%, -30px) scale(.6); opacity: 0;
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 12px 30px -8px rgba(255, 210, 63, .7); transition: transform .5s var(--spring), opacity .3s;
}
.event-pill .min { background: var(--on-accent); color: var(--accent); border-radius: 999px; padding: 2px 10px; font-size: 1.05rem; }
.event-pill.show { transform: translate(-50%, -10px) scale(1); opacity: 1; }
.tap-ripple { position: absolute; left: 50%; top: 20px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; border: 3px solid var(--accent); opacity: 0; pointer-events: none; }
.tap-ripple.go { animation: ripple 1s ease-out; }
@keyframes ripple { from { transform: scale(.4); opacity: 1; } to { transform: scale(14); opacity: 0; } }
.onetap-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.onetap-list li { display: flex; gap: 14px; align-items: flex-start; }
.onetap-list li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--grass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23062010' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat; }

/* --- Schritte --- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { border-top: 2px solid var(--outline); padding-top: 22px; }
.steps li .flaps { font-size: 2.4rem; margin-bottom: 16px; }
.steps p { color: var(--muted); margin: 0; max-width: 30em; }

/* --- Seltenheit --- */
.rarities { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); perspective: 900px; }
@media (min-width: 860px) { .rarities { grid-template-columns: repeat(4, 1fr); } }
.rarity {
  --mx: 50%; --my: 50%;
  position: relative; color: var(--cell-text); border-radius: 20px; padding: 20px; min-height: 210px; display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer; text-align: left; overflow: hidden; transform-style: preserve-3d;
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); font: inherit;
}
.rarity:hover { box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .6); }
.rarity.tilting { transition: transform .08s linear, box-shadow .3s; }
.rarity::after {
  /* Glanzlicht folgt dem Zeiger */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .7), transparent 45%);
  mix-blend-mode: soft-light;
}
.rarity:hover::after { opacity: 1; }
.rarity b { font-family: var(--display); font-weight: 800; font-size: 3.4rem; line-height: 1; }
.rarity h3 { font-size: 1.5rem; margin: 0 0 4px; }
.rarity p { margin: 0; font-size: .95rem; color: #2b4636; }
.rarity .tap { position: absolute; top: 18px; right: 18px; font-family: var(--display); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: #46594b; opacity: .7; }
.rarity .stamp { inset: auto; width: 96px; height: 96px; right: 14px; top: 40px; opacity: .5; }
.rarity.r1 { background: #fbfcf8; border: 1.5px solid #c9d3c6; }
.rarity.r2 { background: #f2f5f7; border: 2px solid #6f7b85; }
.rarity.r3 { background: #fff4d2; border: 2px solid #a87700; }
.rarity.r3 b { color: #6e4d00; }
.rarity.r5 { background: linear-gradient(115deg, #f6e6ff 0%, #e0f1ff 35%, #fff2cf 62%, #e4fbe7 100%); background-size: 220% 220%; border: 2px solid #7b4fcf; }
.rarity.r5 b { color: #4e2a9a; }
.rarity.r5::before {
  /* Holo-Schimmer, folgt dem Zeiger */
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .5;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 120, 220, .5) 36%, rgba(120, 220, 255, .5) 46%, rgba(255, 240, 140, .5) 56%, transparent 72%);
  background-size: 250% 250%; background-position: var(--mx) var(--my);
}
.rarity .spark { width: 9px; height: 9px; margin: -4.5px; box-shadow: 0 0 10px var(--c); }
.rarity-banner {
  position: absolute; left: -10%; right: -10%; top: 44%; padding: 8px 0; text-align: center; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, #6a3fc4, #2563a8); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: .1em;
  transform: rotate(-6deg) translateX(-130%);
}
.rarity-banner.go { animation: sensation 1.9s cubic-bezier(.2, .8, .2, 1) forwards; }

/* --- Funktionen --- */
/* Schlichte Liste statt Karten: Titel links, Text rechts, Trennlinien wie in einer Tabelle. */
.features { margin: 0; border-bottom: 1px solid var(--line); }
.feature { display: grid; gap: 4px 32px; padding: 18px 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: baseline; } }
.feature dt { font-family: var(--display); font-weight: 700; font-size: 1.55rem; line-height: 1.1; }
.feature dd { margin: 0; color: var(--muted); max-width: 38em; }

/* --- Spielarten: ein Gerät / online --- */
.ways { display: grid; gap: 32px; }
@media (min-width: 760px) {
  .ways { grid-template-columns: 1fr 1fr; gap: 0; }
  .way + .way { border-left: 1px solid var(--line); padding-left: 40px; }
  .way:first-child { padding-right: 40px; }
}
.way p { color: var(--muted); margin: 0; max-width: 32em; }
.ways-note { margin: 32px 0 44px; max-width: 42em; }

/* --- Anzeigetafel --- */
.board { position: relative; background: var(--board); color: #f2f6f0; border-radius: 22px; padding: 36px 28px; display: grid; gap: 28px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); overflow: hidden; }
.board::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, rgba(255, 255, 255, .035) 1px, transparent 1.4px) 0 0 / 6px 6px; }
@media (min-width: 760px) { .board { grid-template-columns: repeat(3, 1fr); } }
.board .stat { text-align: center; position: relative; }
.board .flaps { font-size: 3.4rem; margin-bottom: 10px; }
.board .label { display: block; color: #a9bcad; font-size: 1rem; }
.board-title { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a9bcad; font-size: .95rem; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }

/* --- CTA --- */
.cta { text-align: center; overflow: hidden; }
.cta .btns { justify-content: center; margin-top: 28px; }
.cta-icon { position: relative; width: 128px; height: 128px; margin: 0 auto 28px; border-radius: 30px; overflow: hidden; box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .55); }
.cta-icon img { width: 100%; height: 100%; }
.cta p { color: var(--muted); max-width: 32em; margin-left: auto; margin-right: auto; }

/* Animationen nur ohne „Bewegung reduzieren“ */
@media (prefers-reduced-motion: no-preference) {
  .beam.l { animation: sway-l 14s ease-in-out infinite; }
  .beam.r { animation: sway-r 17s ease-in-out infinite; }
  .cell.r5, .rarity.r5 { animation: holo 5s ease-in-out infinite alternate; }
  .cell.near::before { animation: breathe 2.4s ease-in-out infinite; }
  .cta-icon { animation: bob 6s ease-in-out infinite; }
}
@keyframes holo { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes breathe { 0%, 100% { opacity: 0; } 50% { opacity: .6; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }

/* Ruhiger Ersatz bei reduzierter Bewegung (design.md §6) */
@media (prefers-reduced-motion: reduce) {
  .led-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .led-track span:nth-child(n+2) { display: none; }
  .js .reveal { transform: none; transition: opacity .2s; }
  .js .rise > span { transform: none; transition: none; }
  .js .bingo-tiles span { transform: none; opacity: 1; animation: none !important; }
  .stamp.land { animation: fade-in .2s both; }
  .stamp.lift { animation: fade-out .2s forwards; }
  .ticket.deal, .ticket.slide-l, .ticket.slide-r { animation: fade-in .2s both; }
  .p-sensation.go, .rarity-banner.go { animation: banner-fade 1.9s forwards; transform: rotate(-6deg); }
  .p-dialog .box, .p-dialog.show .box { transform: none; transition: none; }
  .p-dialog.show .tiles span { animation: fade-in .2s forwards; transform: none; }
  .lines .draw { animation: none; stroke-dashoffset: 0; }
  .flap.out, .flap.in, .p-chip.pulse, .cell.bump { animation: none; }
  .phone { transform: none !important; }
  .mini, .event-pill { transition: opacity .2s; }
  .js .fan:not(.dealt) .mini { opacity: 0; }
  .tap-ripple.go { animation: none; }
  .rarity { transform: none !important; }
  .stage-ctrl .hint::before, .board-title .live::before { animation: none; }
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes banner-fade { 0% { opacity: 0; } 15%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* Konfetti */
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* ================= Unterseiten ================= */

.page-hero { position: relative; padding: 64px 0 28px; isolation: isolate; }
.page-hero .lead { margin: 0; }
.page-hero h1 { font-size: clamp(2.8rem, 7.4vw, 5rem); }
.page-hero-flood { position: absolute; inset: 0 0 auto; height: 420px; overflow: hidden; z-index: -1; pointer-events: none; }
.prose { max-width: 46em; }
.prose h2 { margin-top: 64px; font-size: clamp(1.9rem, 4.5vw, 2.6rem); display: flex; align-items: center; gap: 14px; scroll-margin-top: 90px; }
.prose h2 .flaps { font-size: .8em; }
.prose h3 { margin-top: 28px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--grass-text); font-weight: 700; }
.muted { color: var(--muted); }

.toc { background: var(--surface); border-radius: 20px; padding: 22px 26px; margin: 28px 0 8px; border: 1px solid var(--line); }
.toc strong { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; }
.toc ol { margin: 10px 0 0; columns: 2; column-gap: 32px; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.toc a { text-decoration: none; display: inline-block; padding: 3px 0; transition: transform .2s, color .2s; }
.toc a:hover { color: var(--accent-text); transform: translateX(4px); }

.tip { position: relative; border-left: 4px solid var(--accent); background: var(--surface); padding: 18px 22px; border-radius: 0 16px 16px 0; margin: 22px 0; }
.tip p:last-child { margin: 0; }

table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 1rem; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
tbody tr { transition: background-color .2s; }
tbody tr:hover { background: var(--surface); }
.table-scroll { overflow-x: auto; }
.rt { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 8px; }
.rt.r1 { background: #fbfcf8; border: 1.5px solid #c9d3c6; }
.rt.r2 { background: #f2f5f7; border: 2px solid #6f7b85; }
.rt.r3 { background: #fff4d2; border: 2px solid #a87700; }
.rt.r5 { background: linear-gradient(115deg, #f6e6ff, #e0f1ff, #fff2cf, #e4fbe7); border: 2px solid #7b4fcf; }
.rt.rj { background: #177a3b; border: 2px solid #156b34; }

.key { display: inline-block; padding: 1px 9px; border-radius: 7px; background: var(--surface); border: 1px solid var(--outline); box-shadow: 0 2px 0 var(--outline); font-family: var(--display); font-weight: 700; letter-spacing: .03em; font-size: .98em; white-space: nowrap; }
.key.primary { background: var(--accent); color: var(--on-accent); border-color: #c9a10f; box-shadow: 0 2px 0 #b38e00; }

/* Gewinnmodi als Mini-Raster */
.modes { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin: 14px 0 22px; }
.mode { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-align: center; }
.mode .mg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; width: 72px; margin: 0 auto 10px; }
.mode .mg i { aspect-ratio: 1; border-radius: 3px; background: color-mix(in srgb, var(--muted) 30%, transparent); }
.mode .mg i.on { background: var(--grass); }
.mode b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; }
.mode span { font-size: .85rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .reveal.in .mode .mg i.on { animation: pop-in .4s var(--spring) both; animation-delay: calc(var(--k) * 45ms + .2s); }
}
@keyframes pop-in { from { transform: scale(0); } }

/* FAQ */
.faq-search { position: relative; margin: 28px 0 8px; }
.faq-search input {
  width: 100%; min-height: 56px; padding: 0 18px 0 50px; border-radius: 16px; border: 1.5px solid var(--outline); background: var(--surface); color: var(--text); font: inherit; font-size: 1.05rem;
}
.faq-search input::placeholder { color: var(--muted); }
.faq-search svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--muted); }
.faq-empty { color: var(--muted); display: none; padding: 20px 0; }
.faq-group { margin-top: 48px; }
.faq-group h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
details { background: var(--surface); border-radius: 16px; margin-bottom: 10px; border: 1px solid var(--line); transition: border-color .2s, transform .3s var(--spring); }
details:hover { border-color: var(--outline); }
details[open] { border-color: var(--grass); }
summary { cursor: pointer; list-style: none; padding: 16px 56px 16px 20px; position: relative; font-weight: 650; min-height: 56px; display: flex; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 14px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; background: var(--board-cell); color: var(--accent);
  font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1; transition: transform .35s var(--spring);
}
details[open] summary::after { transform: rotate(135deg); }
details > div { padding: 0 20px 18px; color: var(--muted); }
details > div p:last-child { margin: 0; }
details.opening > div { animation: faq-open .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { details.opening > div { animation: fade-in .2s; } }
mark { background: color-mix(in srgb, var(--accent) 45%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ================= Fußzeile ================= */

.site-footer { padding: 44px 0 52px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer a { text-decoration: none; display: inline-block; padding: 6px 0; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer p { margin: 0; max-width: 34em; }

/* ================= Einladung (/join/<code>) ================= */

.join { padding-top: 64px; padding-bottom: 72px; max-width: 760px; }
.join-code { display: flex; flex-direction: column; gap: 10px; margin: 28px 0 8px; }
.join-code[hidden] { display: none; }
.join-label { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.join-flaps { display: flex; flex-wrap: wrap; gap: .35em; font-size: clamp(2.4rem, 10vw, 4rem); }
.join-invalid { border-left: 4px solid var(--accent); padding: 4px 0 4px 16px; margin: 24px 0; }
.join-steps { margin: 32px 0; padding-left: 1.3em; display: grid; gap: 12px; max-width: 36em; }
.join-steps li { padding-left: 4px; }
.join-note { color: var(--muted); font-size: .95rem; margin-top: 28px; max-width: 36em; }
.lang-switch { display: flex; justify-content: flex-end; gap: 4px; margin-bottom: 8px; }
.lang-switch[hidden] { display: none; }
.lang-switch button { font: inherit; font-size: .95rem; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; }
.lang-switch button[aria-pressed="true"] { color: var(--text, inherit); border-color: currentColor; font-weight: 600; }
.lang-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Kontakt & Rechtliches */
.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 32px 0 8px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.contact-card h2 { margin: 0 0 8px; font-size: 1.6rem; }
.contact-card p { margin: 0 0 14px; color: var(--muted); }
.contact-card .btn { max-width: 100%; }
.contact-mail { font-weight: 600; overflow-wrap: anywhere; }
.legal h2 { margin-top: 48px; font-size: clamp(1.6rem, 3.6vw, 2.1rem); }
.legal h3 { font-size: 1.25rem; }
.legal address { font-style: normal; margin: 0 0 1em; }
.legal .stand { margin-top: 48px; color: var(--muted); font-size: .95rem; }
.lang-switch { margin-top: 18px; font-size: .95rem; color: var(--muted); }
