/* ==========================================================================
   AGE-LAN – Website. Dunkel mit Gold und Rot, schlicht gehalten.
   Schriften liegen lokal in fonts/ (kein Google-Abruf → DSGVO).
   ========================================================================== */
@font-face { font-family: "Oswald"; font-weight: 500 600; font-display: swap; src: url("../fonts/oswald.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400 700; font-display: swap; src: url("../fonts/source-sans-3.woff2") format("woff2"); }
:root {
  --bg: #08090d;
  --bg2: #0f1118;
  --bg3: #161923;
  --karte: rgba(255, 255, 255, 0.035);
  --karte2: rgba(255, 255, 255, 0.06);
  --rand: rgba(255, 255, 255, 0.09);
  --rand2: rgba(232, 182, 76, 0.35);
  --text: #ece9e1;
  --leise: #9b9aa5;
  --leiser: #8d8c97; /* ≥ 4,5:1 auf Hintergrund, Karte und Karten-Tönung (vorher #6c6b76 = 3,2–3,8:1) */
  --gold: #e8b64c;
  --gold2: #f8dc95;
  --gold-dunkel: #8a6420;
  --rot: #d8343f;
  --rot2: #ff5a63;
  --gruen: #3fbf6f;
  --blau: #3d8bfd;
  --lila: #a259ff;
  --pink: #ff5fa2;
  --radius: 6px;
  --schatten: 0 8px 24px rgba(0, 0, 0, 0.4);
  --serif: "Oswald", "Arial Narrow", sans-serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(232, 182, 76, 0.18);
  /* Notch/abgerundete Ecken im Querformat (viewport-fit=cover) */
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
}
body::before { content: none; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.01em; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--rand); margin: 24px 0; }
.leise { color: var(--leise); }
.klein { font-size: 0.85em; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.gold { color: var(--gold); }
.rot { color: var(--rot2); }
.gruen { color: var(--gruen); }
.versteckt { display: none !important; }

/* ---------- Layout ---------- */
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
main { min-height: 70vh; padding-bottom: 80px; }
.abschnitt { padding: 56px 0 8px; }
.abschnitt-kopf { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.abschnitt-kopf h2 { margin: 0; }
.ueberzeile { font: 600 0.9rem/1.3 var(--sans); color: var(--gold); margin-bottom: 4px; display: block; }
.raster { display: grid; gap: 18px; }
.raster-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.raster-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.raster-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.zeile { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.zeile.ende { justify-content: flex-end; }
.zeile.zwischen { justify-content: space-between; }
.stapel > * + * { margin-top: 14px; }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: #0c0d11;
  border-bottom: 3px solid var(--rot);
}
.kopf-innen { display: flex; align-items: center; gap: 18px; height: 66px; }
.marke { display: flex; align-items: center; gap: 10px; color: var(--text); font: 600 1.35rem var(--serif); letter-spacing: 0.03em; white-space: nowrap; }
.marke b { color: var(--gold); font-weight: 700; }
.nav { display: flex; gap: 2px; margin-left: 12px; flex: 1; }
.nav a { color: var(--leise); padding: 8px 11px; font-weight: 600; font-size: 0.98rem; }
.nav a:hover { color: var(--text); background: var(--karte2); }
.nav a.aktiv { color: var(--text); background: none; box-shadow: inset 0 -3px 0 var(--gold); }
.kopf-rechts { display: flex; gap: 8px; align-items: center; }
.burger { display: none; background: none; border: 1px solid var(--rand); color: var(--text); border-radius: 10px; width: 42px; height: 42px; font-size: 1.2rem; cursor: pointer; }
.demo-band { background: repeating-linear-gradient(45deg, #2a2210, #2a2210 12px, #31270f 12px, #31270f 24px); color: var(--gold2); font-size: 0.83rem; padding: 7px 16px; text-align: center; border-bottom: 1px solid var(--rand2); }
.demo-band button { margin-left: 8px; }

@media (max-width: 900px) {
  .burger { display: inline-block; }
  /* max-height: quer (375 px hoch) passt das Menü sonst nicht unter den klebenden Kopf –
     Feinwert setzt app.js beim Aufklappen (--nav-max), Fallback: Bildschirm minus Kopf. */
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: var(--bg2); border-bottom: 1px solid var(--rand); padding: 10px 16px 16px; margin: 0;
    max-height: calc(100vh - 69px); max-height: var(--nav-max, calc(100dvh - 69px)); overflow-y: auto; overscroll-behavior: contain; }
  .nav.offen { display: flex; }
  .nav a { padding: 12px; }
  .kopf-rechts .knopf-text { display: none; }
  .kopf-innen { gap: 10px; }
}
.knopf-kurz { display: none; }
@media (max-width: 900px) { .kopf-rechts .knopf-kurz { display: inline; } }

/* ---------- Knöpfe & Formulare ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--rand); background: var(--karte2); color: var(--text);
  padding: 9px 18px; border-radius: 4px; font: 600 0.95rem var(--sans);
  cursor: pointer; transition: 0.15s; white-space: nowrap; text-decoration: none;
}
.knopf:hover { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.09); color: var(--text); }
.knopf:disabled { opacity: 0.45; cursor: not-allowed; }
/* Kauf-Knopf bei geschlossenem Ticketverkauf: sichtbar, aber ohne Wirkung (kein href, aria-disabled).
   Kein opacity – Schrift --leise bleibt ≥ 4,5:1 auf dem Hintergrund. */
.knopf.aus, .knopf.aus:hover { background: transparent; border: 1px dashed rgba(255, 255, 255, 0.18); color: var(--leise); cursor: not-allowed; }
.knopf.primaer {
  background: #e2ad44; color: #1c1305; border-color: #e2ad44;
}
.knopf.primaer:hover { background: #f0bd55; color: #1c1305; }
.knopf.rot { background: #c3262f; border-color: #c3262f; color: #fff; }
.knopf.gruen { background: #237a45; border-color: #237a45; color: #fff; } /* 5,3:1 (vorher #2f9d5a = 3,45:1) */
.knopf.gruen:hover { background: #1d6b3c; border-color: #1d6b3c; color: #fff; } /* 6,5:1 */
.knopf.geist { background: transparent; }
.knopf.klein { padding: 5px 11px; font-size: 0.85rem; }
.knopf.gross { padding: 12px 24px; font-size: 1.05rem; }
.knopf.voll { width: 100%; }

label.feld { display: block; }
label.feld > span { display: block; font-size: 0.82rem; color: var(--leise); margin-bottom: 6px; font-weight: 500; }
input, select, textarea {
  width: 100%; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--rand); color: var(--text);
  border-radius: 4px; padding: 9px 11px; font: 1rem var(--sans);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 182, 76, 0.15); }
textarea { min-height: 90px; resize: vertical; }
/* Aufgeklappte Auswahllisten: sonst hellgrau vom Betriebssystem */
select { color-scheme: dark; }
select option, select optgroup { background: var(--bg2); color: var(--text); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--gold); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 0.92rem; }
.check input { margin-top: 4px; flex: none; }
/* „Konto anlegen“/„Anmelden“ im Fließtext: Tippfläche ≥ 44 px hoch */
a[data-wechsel] { display: inline-block; padding: 12px 8px; }
/* Kleine Textlinks („Alle News“, „ändern“): Tippfläche ≥ 44 px hoch, Text bleibt bündig */
a.klein:not(.knopf) { display: inline-block; padding: 12px 0; }
.formular { display: grid; gap: 14px; }
.formular .zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .formular .zwei { grid-template-columns: 1fr; } }
.fehler-text { color: var(--rot2); font-size: 0.88rem; min-height: 1em; }

/* ---------- Karten ---------- */
.karte {
  background: #15161b;
  border: 1px solid #25262c; border-radius: var(--radius); padding: 20px;
  position: relative;
}
.karte.glanz { border-top: 3px solid var(--gold); }
.karte h3 { margin-bottom: 8px; }
.karte-kopf { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 12px; }

.abzeichen { display: inline-flex; align-items: center; gap: 6px; font: 600 0.8rem/1 var(--sans); padding: 4px 7px; border-radius: 3px; background: var(--karte2); border: 1px solid var(--rand); color: var(--leise); white-space: nowrap; }
.abzeichen.gold { color: var(--gold2); border-color: var(--rand2); background: rgba(232, 182, 76, 0.1); }
.abzeichen.gruen { color: #7ee2a4; border-color: rgba(63, 191, 111, 0.4); background: rgba(63, 191, 111, 0.1); }
.abzeichen.rot { color: #ff8d94; border-color: rgba(216, 52, 63, 0.45); background: rgba(216, 52, 63, 0.12); }
.abzeichen.blau { color: #8db9ff; border-color: rgba(61, 139, 253, 0.45); background: rgba(61, 139, 253, 0.12); }

/* ---------- Kopfbild + Eckdaten ---------- */
.kopfbild { background: #050505; border-bottom: 1px solid #222; }
.kopfbild img { display: block; width: 100%; max-height: 360px; object-fit: cover; object-position: center 40%; }
.eckdaten { padding: 26px 0 30px; border-bottom: 1px solid #222; background: #101116; }
.eckdaten-innen { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.eckdaten h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--gold2); }
.eck-zeile { margin: 4px 0 0; font-size: 1.1rem; }
/* ---------- Startseite: Hero mit Wappen ---------- */
.hero { position: relative; padding: 70px 0 60px; overflow: hidden; border-bottom: 1px solid var(--rand); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; /* nicht inset: erst ab Safari 14.1 */
  background:
    radial-gradient(600px 380px at 75% 40%, rgba(216, 52, 63, 0.28), transparent 70%),
    radial-gradient(500px 300px at 20% 70%, rgba(232, 182, 76, 0.14), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%23ffffff' stroke-opacity='0.035'/%3E%3C/svg%3E");
}
.hero-innen { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); margin-bottom: 0.15em; background: linear-gradient(180deg, #fff6dc, var(--gold) 60%, #b07b1f); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 30px rgba(232, 182, 76, 0.25)); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: var(--karte2); border: 1px solid var(--rand); font-weight: 500; font-size: 0.93rem; }
.hero-innen.einspaltig { grid-template-columns: minmax(0, 1fr); }
/* Rechte Spalte im Hero: die neuesten News (ersetzt das Wappen). Auf dem Handy steht der Block
   UNTER dem Hero-Text – so bleibt h1 auch quer (812×375) oben sichtbar. */
.hero-news { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hero-news h2 { margin: 0 0 2px; font-size: 0.9rem; letter-spacing: 0.04em; }
.hero-news-karte { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: var(--radius); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--rand); color: var(--text); transition: border-color 0.2s; min-width: 0; }
.hero-news-karte.mit-bild { grid-template-columns: 96px minmax(0, 1fr); }
.hero-news-karte:hover { border-color: var(--rand2); color: var(--text); }
.hero-news-karte img { width: 96px; height: 64px; object-fit: contain; background: #000; border-radius: 4px; display: block; }
.hero-news-karte time { display: block; color: var(--gold); font-size: 0.78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-news-karte b { display: block; line-height: 1.3; overflow-wrap: anywhere; }
.hero-news-karte span { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--leise); font-size: 0.88rem; margin-top: 2px; }
.hero-news > a.klein { align-self: flex-start; }
@keyframes drehen { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .hero-innen { grid-template-columns: minmax(0, 1fr); } .hero { padding-top: 36px; } }
@media (max-width: 860px) and (max-height: 500px) { .hero { padding-top: 20px; } }
@media (max-height: 500px) { .kopfbild img { max-height: 45vh; max-height: 45dvh; } }
.countdown { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.countdown div { min-width: 74px; text-align: center; padding: 12px 8px 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--rand); border-radius: 12px; }
.countdown b { display: block; font: 700 1.8rem/1 var(--serif); color: var(--gold2); }
.countdown span { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--leise); }
@media (max-width: 420px) { .countdown div { min-width: 0; flex: 1; } }
.highlight { display: flex; gap: 14px; align-items: flex-start; }
.highlight .ico { font-size: 1.6rem; width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 14px; background: rgba(232, 182, 76, 0.08); border: 1px solid var(--rand2); }
.highlight h3 { font-size: 1.02rem; margin: 4px 0 2px; }
.highlight p { margin: 0; color: var(--leise); font-size: 0.9rem; }
.news-karte { display: flex; flex-direction: column; color: var(--text); transition: 0.2s; }
.news-karte:hover { transform: translateY(-3px); border-color: var(--rand2); color: var(--text); }
.news-datum { display: flex; gap: 10px; align-items: center; color: var(--gold); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.news-karte h3 { font-size: 1.1rem; }
.news-karte p { color: var(--leise); font-size: 0.92rem; flex: 1; }
.app-kachel .ico { font-size: 1.8rem; line-height: 1; margin-bottom: 4px; }
.lan-kurz { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.lan-kurz figure { margin: 0; }
.lan-kurz img { width: 100%; border-radius: var(--radius); display: block; }
.lan-kurz figcaption { font-size: 0.88rem; color: var(--leise); margin-top: 6px; }
@media (max-width: 860px) { .lan-kurz { grid-template-columns: minmax(0, 1fr); } }
ul.haken { list-style: none; padding: 0; margin: 12px 0 16px; }
ul.haken li { padding: 6px 0 6px 22px; position: relative; border-bottom: 1px solid #222; }
ul.haken li::before { content: "\2713"; position: absolute; left: 2px; color: var(--gold); font-weight: 700; }
.wrap.schmal, .schmal { max-width: 860px; }
.news-liste { border-top: 1px solid #25262c; }
.news-zeile { display: grid; grid-template-columns: 100px 1fr; gap: 14px; padding: 12px 4px; border-bottom: 1px solid #25262c; color: var(--text); }
.news-zeile:hover { background: #15161b; color: var(--text); }
.news-zeile time { color: var(--leise); font-variant-numeric: tabular-nums; padding-top: 1px; }
.news-zeile b { display: block; }
.news-zeile span { display: block; color: var(--leise); font-size: 0.92rem; }
/* News-Bilder */
.news-zeile.mit-bild { grid-template-columns: 100px minmax(0, 1fr) 72px; }
.news-zeile-bild { width: 72px; height: 48px; object-fit: contain; background: #000; border-radius: 4px; display: block; }
@media (max-width: 480px) { .news-zeile { grid-template-columns: 78px minmax(0, 1fr); gap: 10px; } .news-zeile.mit-bild { grid-template-columns: 78px minmax(0, 1fr) 56px; } .news-zeile-bild { width: 56px; height: 40px; } }
.news-vorschau { margin: -4px -4px 12px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: var(--bg3); }
.news-vorschau img { width: 100%; height: 100%; object-fit: contain; display: block; }
.news-text p { margin: 0 0 12px; }
.news-text p:last-child { margin-bottom: 0; }
.news-text a { word-break: break-word; }
.news-titelbild { display: block; width: 100%; padding: 0; margin: 0 0 18px; border: 0; background: var(--bg3); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.news-titelbild img { display: block; width: 100%; height: auto; max-height: 480px; max-height: min(480px, 60vh); max-height: min(480px, 60dvh); object-fit: contain; }
.news-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; margin-top: 18px; }
.news-galerie button { padding: 0; border: 1px solid var(--rand); border-radius: 4px; background: var(--bg3); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; min-width: 0; }
.news-galerie button:hover, .news-titelbild:hover { border-color: var(--rand2); }
.news-galerie img { width: 100%; height: 100%; object-fit: contain; display: block; }
.news-galerie.galerie-gross { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.news-titelbild:focus-visible, .news-galerie button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lightbox { margin: 0; text-align: center; }
.lightbox-bild img { max-width: 100%; height: auto; max-height: 70vh; max-height: 70dvh; width: auto; object-fit: contain; display: block; margin: 0 auto; }
.lightbox figcaption { margin-top: 8px; min-height: 1em; }
.lightbox-nav { margin-top: 10px; }
/* Verwaltung: Bilder im News-Dialog */
.nb-bereich { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rand); }
.nb-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 12px; margin: 10px 0; }
.nb-kachel { border: 1px solid var(--rand); border-radius: var(--radius); padding: 8px; background: var(--karte); min-width: 0; }
.nb-bild { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--bg3); }
.nb-bild img { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.nb-titel { position: absolute; left: 6px; top: 6px; background: var(--gold); color: #1c1305; font-size: 0.75rem; font-weight: 700; padding: 1px 6px; border-radius: 3px; }
.nb-kachel .feld { margin: 8px 0 6px; }
.nb-kachel .feld input { width: 100%; }
.nb-datei { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.nb-wahl:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.hallenplan-rahmen { position: relative; }
.hp-punkt { position: absolute; padding: 0; margin: 0; border: 0; background: transparent; border-radius: 6px; cursor: help; }
.hp-punkt:hover, .hp-punkt:focus-visible { outline: 2px solid var(--gold, #e0b03a); outline-offset: 1px; background: rgba(255, 255, 255, .12); }
.hp-tipp { display: none; position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: max-content; max-width: min(260px, 70vw); padding: 8px 11px; border-radius: 8px; background: #111018; color: #f3f1ea; font-size: .88rem; line-height: 1.35; text-align: left; box-shadow: 0 6px 20px rgba(0, 0, 0, .45); z-index: 3; pointer-events: none; }
.hp-punkt.rechts .hp-tipp { left: auto; right: 0; transform: none; }
.hp-punkt.unten .hp-tipp { bottom: auto; top: calc(100% + 8px); }
.hp-tipp b { display: block; margin-bottom: 2px; color: var(--gold, #e0b03a); }
.hp-punkt:hover .hp-tipp, .hp-punkt:focus .hp-tipp { display: block; }
.hallenplan { width: 100%; display: block; }
.discord-zeile { font-size: 1.05rem; color: var(--leise); }
.ablauf ol { margin: 0; padding-left: 20px; }
.ablauf li { margin-bottom: 8px; }

.fortschritt { height: 8px; background: #25262c; border-radius: 2px; overflow: hidden; }
.fortschritt > i { display: block; height: 100%; background: var(--gold); }
.belegung { max-width: 640px; }
.belegung .zeile { justify-content: space-between; font-size: 0.88rem; margin-bottom: 8px; }

/* ---------- LAN-Zentrale (nach dem Check-in, oben auf der Startseite) ---------- */
.lan-zentrale { padding: 22px 0 24px; background: #12161a; border-bottom: 3px solid var(--gruen); }
.lz-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.lz-kopf h2 { margin: 0; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.lz-sitz { font-size: 1.05rem; color: var(--leise); }
.lz-sitz b { font: 600 1.6rem var(--serif); color: var(--gold2); margin-left: 4px; }
.lz-raster { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .lz-raster { grid-template-columns: minmax(0, 1fr); } }
.lz-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.app-kachel { display: flex; flex-direction: column; gap: 3px; padding: 14px 14px 13px; border-radius: var(--radius); color: var(--text);
  background: #1a1c22; border: 1px solid #2a2c33; border-left: 3px solid var(--gold); }
.app-kachel:hover { background: #20232a; color: var(--text); }
.app-kachel b { font-size: 1.05rem; }
.app-kachel small { color: var(--leise); font-size: 0.85rem; }
.lz-netz { padding: 14px 16px; border-radius: var(--radius); border: 1px solid #2a2c33; background: #15161b; }
.lz-netz h3 { margin: 0 0 4px; }
.lz-feld { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid #25262c; }
.lz-feld span { color: var(--leise); font-size: 0.88rem; }
.lz-feld b { color: var(--gold2); font-size: 1.05rem; }
.lz-feld .knopf { padding: 3px 8px; font-size: 0.78rem; }

/* ---------- AgeLan-App eingebettet ---------- */
.app-rahmen { display: flex; flex-direction: column; height: calc(100vh - 69px); height: calc(100dvh - 69px); }
.app-rahmen iframe { min-height: 400px; }
.app-kopf { background: #12161a; border-bottom: 1px solid #25262c; padding: 12px 0; }
.app-kopf .app-kachel { padding: 10px 12px; }
.app-kopf .app-kachel small { font-size: 0.8rem; }
.app-kachel.aktiv { background: #2a2414; border-color: var(--gold); color: var(--text); }
@media (max-width: 700px) {
  .app-kopf .lz-kacheln { display: flex; overflow-x: auto; gap: 8px; }
  .app-kopf .app-kachel { flex: 0 0 auto; }
  .app-kopf .app-kachel small { display: none; }
}
/* Handy quer: Kacheln kompakt und das iframe nie höher als der Rahmen – sonst rutscht die
   Seite unter den klebenden Kopf und die oberste Zeile der App ist verdeckt. */
@media (max-height: 560px) {
  .app-rahmen iframe { min-height: 0; }
  .app-kopf { padding: 6px 0; }
  .app-kopf .lz-kacheln { display: flex; overflow-x: auto; gap: 8px; }
  .app-kopf .app-kachel { flex: 0 0 auto; padding: 6px 10px; }
  .app-kopf .app-kachel small { display: none; }
}
.app-leiste { background: #101116; border-bottom: 1px solid #25262c; }
.app-leiste .zeile { gap: 4px; min-height: 44px; }
.app-leiste a { color: var(--leise); font-weight: 600; padding: 10px 12px; }
.app-leiste a.aktiv { color: var(--text); box-shadow: inset 0 -3px 0 var(--gold); }
.app-leiste .app-extern { margin-left: auto; font-weight: 400; font-size: 0.85rem; }
.app-rahmen iframe { flex: 1; width: 100%; border: 0; background: #fff; }
main:has(.app-rahmen) { padding-bottom: 0; min-height: 0; }
body:has(.app-rahmen) .fuss { display: none; }

/* ---------- Tickets ---------- */
.ticket-karte { display: flex; flex-direction: column; }
.ticket-karte h3 { margin: 0; font-size: 1.25rem; }
.ticket-karte .preis { font: 600 1.6rem/1 var(--serif); color: var(--gold2); white-space: nowrap; }
.ticket-karte ul { padding-left: 18px; margin: 12px 0; flex: 1; }
.ticket-karte li { padding: 2px 0; }
.ticket-hinweis { margin: 4px 0 12px; min-height: 1em; }
.wahl { display: grid; gap: 8px; }
.wahl label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--rand); border-radius: 11px; cursor: pointer; background: rgba(0, 0, 0, 0.2); }
.wahl label:has(input:checked) { border-color: var(--gold); background: rgba(232, 182, 76, 0.08); }
.summe { display: flex; justify-content: space-between; font-size: 1.05rem; padding: 12px 0; border-top: 1px solid var(--rand); }
.summe b { font: 600 1.4rem var(--serif); color: var(--gold2); }

/* ---------- Tabellen ---------- */
.tabelle-wrap { overflow-x: auto; border: 1px solid var(--rand); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--rand); vertical-align: middle; }
th { font-size: 0.82rem; color: var(--leise); font-weight: 600; background: rgba(255, 255, 255, 0.025); position: sticky; top: 0; }
tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
tbody tr:last-child td { border-bottom: 0; }
td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Rechtstexte ---------- */
.rechtstext-wrap { max-width: 780px; }
.rechtstext { font-size: 1.02rem; line-height: 1.7; color: #d9d6ce; padding-bottom: 20px; }
.rechtstext h2 { font-size: 1.5rem; margin: 44px 0 10px; padding-top: 18px; border-top: 1px solid #25262c; color: var(--text); }
.rechtstext h3 { font-size: 1.12rem; margin: 28px 0 6px; color: var(--gold2); }
.rechtstext p { margin: 0 0 12px; }
.rechtstext ol, .rechtstext ul { margin: 0 0 14px; padding-left: 22px; }
.rechtstext li { margin-bottom: 8px; }
.rechtstext .stand { color: var(--leise); font-size: 0.9rem; }
.rechtstext a { word-break: break-word; }
/* Anfahrt-Karte auf „Die LAN“: kleine goldene Zwischenüberschriften, Adresse als Block */
.anfahrt-text h2, .anfahrt-text h3 { font-size: 0.95rem; margin: 16px 0 4px; color: var(--gold2); letter-spacing: 0.02em; border: 0; padding: 0; }
.anfahrt-text > :first-child { margin-top: 2px; }
.anfahrt-text p { margin: 0 0 6px; color: #d9d6ce; }
.anfahrt-text ul { margin: 0 0 6px; padding-left: 20px; }

/* ---------- FAQ ---------- */
details.faq { border: 0; border-bottom: 1px solid #25262c; background: none; margin: 0; }
details.faq summary { cursor: pointer; padding: 14px 4px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; transition: 0.2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq > div { padding: 0 4px 16px; color: var(--leise); white-space: pre-wrap; }
.packliste { display: grid; }
.pack-punkt { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--rand); cursor: pointer; }
.pack-punkt:first-child { border-top: 0; }
.pack-punkt input { width: 20px; height: 20px; flex: none; }
.pack-punkt input:checked + span { color: var(--leise); text-decoration: line-through; }

/* ---------- Sitzplan ---------- */
.plan-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 980px) { .plan-layout { grid-template-columns: minmax(0, 1fr); } .plan-layout > aside { order: -1; } .editor-layout > aside { order: 0; } }
.plan-info { margin-bottom: 10px; }
.platz-karte { display: flex; align-items: center; gap: 16px; min-height: 78px; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--rand); border-left: 4px solid var(--rand2); background: var(--karte); }
.platz-karte.leer { border-left-color: var(--rand); font-size: 0.92rem; }
.platz-karte.s-frei { border-left-color: #49d483; }
.platz-karte.s-belegt { border-left-color: #ff6d76; }
.platz-karte.s-gruppe { border-left-color: #6aa8ff; }
.platz-karte.s-gesperrt { border-left-color: #555; }
.platz-karte.meins { border-left-color: var(--pink); }
.pk-sitz { flex: none; min-width: 64px; padding: 6px 10px; text-align: center; font: 600 2rem/1 var(--serif); color: var(--gold2); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--rand); border-radius: var(--radius); }
.pk-text { min-width: 0; }
.pk-nick { font: 600 1.45rem/1.15 var(--serif); color: var(--text); overflow-wrap: anywhere; }
.pk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 0.88rem; color: var(--leise); }
.pk-gruppe b { color: #8db9ff; font-weight: 600; }
.abzeichen.tuerkis { color: #7fe6e0; border-color: rgba(63, 208, 201, 0.45); background: rgba(63, 208, 201, 0.1); }
.tip-kopf { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.tip-sitz { color: var(--gold2); font-family: var(--serif); font-size: 1.05rem; }
.tip-nick { font-weight: 700; font-size: 1.05rem; }
.plan-buehne { background: radial-gradient(circle at 50% 0%, rgba(232, 182, 76, 0.06), transparent 60%), rgba(0, 0, 0, 0.3); border: 1px solid var(--rand); border-radius: var(--radius); padding: 14px; overflow: auto; max-height: 78vh; max-height: 78dvh; touch-action: pan-x pan-y pinch-zoom; }
.plan-buehne svg { display: block; margin: 0 auto; user-select: none; }
/* Editor: Ziehen mit Finger/Stift malt und verschiebt, statt die Seite zu scrollen */
#e-buehne { touch-action: none; }
.plan-werkzeug { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.plan-rahmen { position: relative; }
.plan-zoom { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; gap: 4px; }
.plan-zoom .knopf { min-width: 36px; padding: 6px 8px; background: rgba(15, 15, 20, 0.85); }
.plan-zoom #p-zoom { min-width: 58px; font-variant-numeric: tabular-nums; }
.sitz { cursor: pointer; transition: filter 0.15s; }
.sitz rect { stroke-width: 1.5; }
.sitz:hover rect { filter: brightness(1.35); }
.sitz text { font: 600 8.5px var(--sans); pointer-events: none; fill: rgba(0, 0, 0, 0.75); }
.sitz.s-frei rect { fill: #2a7d4b; stroke: #49d483; }
.sitz.s-frei text { fill: #d9ffe8; }
.sitz.s-belegt rect { fill: #8f1f27; stroke: #ff6d76; }
.sitz.s-belegt text { fill: #fff; }
.sitz.s-gruppe rect { fill: #1f4f9c; stroke: #6aa8ff; }
.sitz.s-gruppe text { fill: #e2eeff; }
/* Kontrast: Schrift ≥ 4,5:1, Umriss ≥ 3:1 zur Planfläche */
.sitz.s-gesperrt rect { fill: #2a2a30; stroke: #6a6a72; }
.sitz.s-gesperrt text { fill: #a3a3ab; }
.sitz.s-gesperrt { cursor: not-allowed; }
.sitz.s-ausbau rect { fill: rgba(255, 255, 255, 0.02); stroke: #6c6b76; stroke-dasharray: 4 3; }
.sitz.s-ausbau text { fill: #8d8c97; }
/* Tastatur: sichtbarer Fokus auf dem Platz */
.sitz:focus { outline: none; }
.sitz:focus-visible rect { stroke: #fff; stroke-width: 3; filter: drop-shadow(0 0 4px var(--gold)); }
/* Orga-Dialoge (Stages): Stage-Farbe darf den Fokusrahmen nicht überdecken */
.stufen-plan .sitz:focus-visible rect { stroke: #fff !important; stroke-width: 3; opacity: 1 !important; }
/* Editor: Fokus gold gestrichelt, damit er sich von der weißen Auswahl unterscheidet */
.editor-svg .sitz:focus-visible rect, .deko:focus-visible rect { stroke: var(--gold2) !important; stroke-width: 3; stroke-dasharray: 4 2; filter: drop-shadow(0 0 4px var(--gold)); }
.editor-svg .gewaehlt:focus-visible rect { stroke: #fff !important; } /* fokussiert + ausgewählt: weiß gestrichelt */
.deko:focus { outline: none; }
#e-buehne:focus { outline: none; }
.sitz.s-ausbau { cursor: not-allowed; }
.l-ausbau { background: transparent; border: 2px dashed #6c6b76 !important; }
.platz-karte.s-ausbau { border-left-color: #6c6b76; }
.ausbau-hinweis { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; padding: 10px 14px; border: 1px solid var(--rand2); border-radius: var(--radius); background: rgba(232, 182, 76, 0.06); font-size: 0.92rem; }
.ausbau-hinweis b { color: var(--gold2); }
.stufen-leiste { display: flex; gap: 4px; }
.stufen-leiste i { width: 26px; height: 8px; border-radius: 2px; background: #2a2b31; }
.stufen-leiste i.an { background: var(--gold); }
/* Konfigurator: Farbe je Ausbaustufe */
.stufen-plan .sitz rect { stroke-width: 2; }
.stufen-plan .sitz.st-1 rect { fill: #2a7d4b; stroke: #49d483; }
.stufen-plan .sitz.st-2 rect { fill: #1f4f9c; stroke: #6aa8ff; }
.stufen-plan .sitz.st-3 rect { fill: #6b2f9c; stroke: #b583ff; }
.stufen-plan .sitz.st-4 rect { fill: #9c5a1f; stroke: #ffb46a; }
.stufen-plan .sitz.st-5 rect, .stufen-plan .sitz.st-6 rect, .stufen-plan .sitz.st-7 rect, .stufen-plan .sitz.st-8 rect, .stufen-plan .sitz.st-9 rect { fill: #7a1f4a; stroke: #ff6fae; }
.stufen-plan .sitz text { fill: #fff; }
.stufen-plan .sitz.inaktiv rect { stroke-dasharray: 4 3; opacity: 0.55; }
.stufe-knopf { border-left-width: 4px !important; }
.stufe-knopf.st-1 { border-left-color: #49d483 !important; } .stufe-knopf.st-2 { border-left-color: #6aa8ff !important; }
.stufe-knopf.st-3 { border-left-color: #b583ff !important; } .stufe-knopf.st-4 { border-left-color: #ffb46a !important; }
.sitz.meinegruppe rect { stroke: var(--lila); stroke-width: 3; }
.sitz.meins rect { fill: var(--pink); stroke: #fff; stroke-width: 3; }
.sitz.meins text { fill: #2a0016; }
.sitz.gewaehlt rect { stroke: #fff; stroke-width: 3; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8)); }
.sitz.markiert rect { stroke: var(--gold2); stroke-width: 3; stroke-dasharray: 3 2; }
.deko rect { rx: 6; }
.deko text { font: 600 11px var(--sans); fill: rgba(255, 255, 255, 0.75); pointer-events: none; }
.deko.f-gold rect { fill: rgba(232, 182, 76, 0.16); stroke: rgba(232, 182, 76, 0.55); }
.deko.f-grau rect { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.2); }
.deko.f-gruen rect { fill: rgba(63, 191, 111, 0.15); stroke: rgba(63, 191, 111, 0.5); }
.deko.f-rot rect { fill: rgba(216, 52, 63, 0.16); stroke: rgba(216, 52, 63, 0.55); }
.deko.f-blau rect { fill: rgba(61, 139, 253, 0.14); stroke: rgba(61, 139, 253, 0.5); }
.deko.t-text rect { fill: transparent; stroke: transparent; }
.deko.t-wand rect { fill: #5a5a66; stroke: #777; rx: 1; }
.legende { display: grid; gap: 8px; font-size: 0.88rem; }
.legende i { display: inline-block; width: 16px; height: 16px; border-radius: 4px; vertical-align: -3px; margin-right: 8px; border: 2px solid; }
.l-frei { background: #2a7d4b; border-color: #49d483 !important; }
.l-belegt { background: #8f1f27; border-color: #ff6d76 !important; }
.l-gruppe { background: #1f4f9c; border-color: #6aa8ff !important; }
.l-meinegruppe { background: transparent; border-color: var(--lila) !important; }
.l-meins { background: var(--pink); border-color: #fff !important; }
.l-tisch { background: #2a7d4b; border-color: #49d483 !important; height: 26px !important; width: 14px !important; border-radius: 4px !important; vertical-align: -8px !important; background-image: linear-gradient(transparent 46%, #0a0b0f 46%, #0a0b0f 54%, transparent 54%); }
.l-gesperrt { background: #2a2a30; border-color: #6a6a72 !important; }
.plan-tooltip { position: fixed; z-index: 90; pointer-events: none; background: #000d; border: 1px solid var(--rand2); padding: 8px 11px; border-radius: 9px; font-size: 0.85rem; max-width: 240px; }

/* Editor */
.editor-leiste { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; background: var(--bg3); border: 1px solid var(--rand); border-radius: 12px; margin-bottom: 10px; position: sticky; top: 72px; z-index: 5; }
.editor-leiste .gruppe { display: flex; gap: 4px; padding-right: 8px; margin-right: 4px; border-right: 1px solid var(--rand); align-items: center; }
.editor-leiste .gruppe:last-child { border: 0; }
.werkzeug { padding: 7px 11px; border-radius: 9px; border: 1px solid var(--rand); background: var(--karte); color: var(--text); cursor: pointer; font: 500 0.85rem var(--sans); }
.werkzeug.an { background: rgba(232, 182, 76, 0.16); border-color: var(--gold); color: var(--gold2); }
.editor-raster line { stroke: rgba(255, 255, 255, 0.05); }
.auswahl-rahmen { fill: rgba(232, 182, 76, 0.1); stroke: var(--gold); stroke-dasharray: 4 3; }
.editor-svg .sitz { cursor: move; }
.editor-svg.w-setzen, .editor-svg.w-flaeche, .editor-svg.w-block { cursor: crosshair; }
.deko.gewaehlt rect { stroke: #fff !important; stroke-width: 2.5; stroke-dasharray: 5 3; }
.editor-svg .deko { cursor: move; }

/* ---------- Konto / Ticket ---------- */
.konto-raster { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 980px) { .konto-raster { grid-template-columns: minmax(0, 1fr); } }
.status-schritte { display: flex; gap: 6px; margin: 14px 0; }
.status-schritte div { flex: 1; text-align: center; font-size: 0.76rem; padding: 9px 4px; border-radius: 9px; background: var(--karte); border: 1px solid var(--rand); color: var(--leiser); }
.status-schritte div.fertig { color: #7ee2a4; border-color: rgba(63, 191, 111, 0.4); background: rgba(63, 191, 111, 0.08); }
.status-schritte div.jetzt { color: var(--gold2); border-color: var(--gold); background: rgba(232, 182, 76, 0.1); }

/* Das Ticket als Karte (auch druckbar) */
.lan-ticket {
  --t-rot: #c8202b;
  background: #fbf8f1; color: #1c1a17; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); position: relative; font-family: var(--sans);
}
.lan-ticket .t-band { background: linear-gradient(90deg, var(--t-rot), #8e121b); color: #fff; padding: 12px 22px; font: 700 0.95rem var(--serif); letter-spacing: 0.08em; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lan-ticket .t-koerper { display: grid; grid-template-columns: 1fr auto; gap: 22px; padding: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 0L40 20L20 40L0 20Z' fill='none' stroke='%23000' stroke-opacity='0.035'/%3E%3C/svg%3E"); }
.lan-ticket .t-logo { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.lan-ticket .t-logo img { width: 56px; height: 56px; border-radius: 50%; }
.lan-ticket .t-logo b { font: 700 1.6rem/1 var(--serif); color: var(--t-rot); display: block; }
.lan-ticket .t-logo span { color: #6b655a; font-size: 0.85rem; }
.lan-ticket .t-nick { font: 700 2rem/1.1 var(--serif); margin: 6px 0 2px; word-break: break-word; }
.lan-ticket .t-klein { color: #6b655a; font-size: 0.85rem; }
.lan-ticket .t-typ { font-weight: 700; font-size: 1.05rem; }
.lan-ticket ul { margin: 10px 0 0; padding-left: 18px; font-size: 0.86rem; color: #3a362f; }
.lan-ticket .t-qr { text-align: center; max-width: 230px; } /* Code bricht um, statt die linke Spalte zu quetschen */
.lan-ticket .t-qr .qr { background: #fff; padding: 10px; border: 2px solid #1c1a17; border-radius: 10px; display: inline-block; position: relative; }
.lan-ticket .t-qr .qr svg { display: block; width: 180px; height: 180px; }
.lan-ticket .t-qr .qr img { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid #fff; }
.lan-ticket .t-code { font: 600 0.78rem ui-monospace, Consolas, monospace; color: #3a362f; margin-top: 8px; letter-spacing: 0.02em; }
.lan-ticket .t-fuss { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 22px; border-top: 2px dashed #d6cfbf; font-size: 0.86rem; color: #3a362f; }
.lan-ticket .t-sitz { font: 700 2.4rem/1 var(--serif); color: var(--t-rot); }
/* Stempel ohne Deckkraft-Abzug: mit opacity .8 lagen beide unter 4,5:1 */
.lan-ticket .t-stempel { margin-left: auto; transform: rotate(-10deg); border: 3px solid; border-radius: 10px; padding: 5px 11px; font: 800 1rem var(--sans); letter-spacing: 0.12em; white-space: nowrap; }
.lan-ticket .t-stempel.bezahlt { color: #136b31; } /* 6,2:1 */
.lan-ticket .t-stempel.offen { color: #8f5800; } /* 5,6:1 (vorher #c27a00 bei .8 = 2,5:1) */
.lan-ticket .t-logo > div:nth-child(2) { min-width: 0; }
.lan-ticket .t-logo span { display: block; }
@media (max-width: 640px) {
  .lan-ticket .t-koerper { grid-template-columns: 1fr; }
}

.zugang { border-top: 3px solid var(--gruen); }
.zugang-feld { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--rand); }
.zugang-feld span { color: var(--leise); font-size: 0.85rem; }
.zugang-feld b { font-size: 1.25rem; color: var(--gold2); word-break: break-all; letter-spacing: 0.04em; }
@media (max-width: 480px) { .zugang-feld { grid-template-columns: 1fr auto; } .zugang-feld span { grid-column: 1 / -1; } }

/* ---------- Check-in ---------- */
.scanner { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 4 / 3; border: 1px solid var(--rand);
  max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); } /* quer: nie höher als der Bildschirm unter dem Kopf */
#c-ergebnis { scroll-margin-top: 80px; } /* Ergebnis nach dem Scan nicht unter dem klebenden Kopf */
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner .rahmen { position: absolute; top: 18%; right: 18%; bottom: 18%; left: 18%; border: 3px solid var(--gold); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45); }
.scanner .rahmen::after { content: ""; position: absolute; left: 6%; right: 6%; height: 2px; background: var(--rot2); box-shadow: 0 0 12px var(--rot2); animation: scanlinie 2s ease-in-out infinite; }
@keyframes scanlinie { 0%, 100% { top: 8%; } 50% { top: 92%; } }
.scanner .hinweis { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; color: #fff; font-size: 0.88rem; text-shadow: 0 1px 3px #000; }
.ergebnis { border-width: 2px; }
.ergebnis.ok { border-color: rgba(63, 191, 111, 0.7); }
.ergebnis.warnung { border-color: rgba(232, 182, 76, 0.8); }
.ergebnis.fehler { border-color: rgba(216, 52, 63, 0.8); }
.gross-sitz { font: 600 3.4rem/1 var(--serif); color: var(--gold2); }
.daten-liste { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 0.93rem; }
.daten-liste dt { color: var(--leise); }
.daten-liste dd { margin: 0; }

/* ---------- Admin ---------- */
/* Verwaltung: breiter als die übrigen Seiten, damit Tabellen wie „Benutzer“ ohne Querscrollen lesbar sind. */
.wrap.admin-layout { width: min(1560px, 100% - 32px); }
.b-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.b-filter input { flex: 1 1 260px; max-width: 360px; }
.b-filter select { flex: 0 1 auto; width: auto; }
.b-tabelle .b-mail { word-break: break-all; min-width: 160px; }
.b-aktionen summary { list-style: none; cursor: pointer; white-space: nowrap; }
.b-aktionen summary::-webkit-details-marker { display: none; }
.b-aktionen summary::after { content: " ▾"; }
.b-aktionen[open] summary::after { content: " ▴"; }
.b-aktionen > div { display: grid; gap: 4px; margin-top: 6px; min-width: 130px; }
.admin-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; padding-top: 28px; }
.admin-nav { position: sticky; top: 86px; display: grid; gap: 3px; }
.admin-nav button { text-align: left; background: none; border: 0; color: var(--leise); padding: 10px 14px; border-radius: 10px; cursor: pointer; font: 500 0.92rem var(--sans); }
.admin-nav button:hover { background: var(--karte2); color: var(--text); }
.admin-nav button.aktiv { background: rgba(232, 182, 76, 0.12); color: var(--gold2); }
.admin-nav .trenner { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--leiser); padding: 14px 14px 4px; }
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-nav { position: sticky; top: 69px; z-index: 6; display: flex; overflow-x: auto; gap: 4px; padding: 6px 12px; margin: 0 -12px;
    background: var(--bg); border-bottom: 1px solid #25262c; scrollbar-width: none; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-nav button { white-space: nowrap; min-height: 42px; scroll-snap-align: start; flex: 0 0 auto; }
  .admin-nav select { flex: 0 0 auto; width: auto; max-width: 60vw; }
  .admin-nav > div { padding: 0 !important; flex: 0 0 auto; }
  .admin-nav > a.knopf { margin: 0 !important; flex: 0 0 auto; }
  .admin-nav .trenner { display: none; }
  /* Editor-Leiste klebt UNTER der Reiterleiste (Kopf 69 + Reiter 57 px), nicht dahinter */
  .editor-leiste { top: 128px; }
}
.kennzahl { padding: 18px; }
.kennzahl b { display: block; font: 600 2rem/1.1 var(--serif); color: var(--gold2); }
.kennzahl span { color: var(--leise); font-size: 0.85rem; }
.filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.balken { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; margin-bottom: 8px; }
.balken .fortschritt { flex: 1; }
.liste-editor .eintrag { display: grid; gap: 8px; grid-template-columns: 1fr auto; align-items: start; padding: 12px; border: 1px solid var(--rand); border-radius: 12px; margin-bottom: 8px; background: var(--karte); }

/* ---------- Modal & Toast ---------- */
.modal-hg { position: fixed; top: 0; right: 0; bottom: 0; left: 0; /* nicht inset: erst ab Safari 14.1 (Bugjagd 05.10.b B3-4) */ background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(4px); z-index: 100; display: grid; place-items: center; padding: 16px; animation: einblenden 0.15s; }
.modal { background: var(--bg2); border: 1px solid #2a2c33; border-radius: 8px; width: min(560px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overscroll-behavior: contain; overflow: auto; padding: 24px; box-shadow: var(--schatten); }
.modal.breit { width: min(900px, 100%); }
.modal:focus { outline: none; }
.modal-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 10px; }
.modal-kopf h3 { margin: 0; }
.x { background: none; border: 0; color: var(--leise); font-size: 1.5rem; cursor: pointer; line-height: 1; }
@keyframes einblenden { from { opacity: 0; } }
.toasts { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom)); right: 18px; left: 18px; display: grid; justify-items: end; gap: 8px; z-index: 200; pointer-events: none; }
.toast { background: var(--bg3); border: 1px solid var(--rand); border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 4px; box-shadow: var(--schatten); max-width: 420px; animation: hoch 0.25s; pointer-events: auto; }
.toast.fehler { border-left-color: var(--rot); }
.toast.ok { border-left-color: var(--gruen); }
@keyframes hoch { from { transform: translateY(12px); opacity: 0; } }

/* ---------- Fuß ---------- */
.fuss { border-top: 1px solid var(--rand); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); color: var(--leise); font-size: 0.88rem; background: rgba(0, 0, 0, 0.25); }
.fuss-innen { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.fuss a { color: var(--leise); }
.fuss a:hover { color: var(--gold); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { --farbe: var(--text); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--rand); background: var(--karte); transition: 0.15s; }
.socials a i { width: 22px; height: 22px; background: var(--farbe); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.socials a:hover { border-color: var(--farbe); background: color-mix(in srgb, var(--farbe) 14%, transparent); }
.socials .sm-discord { --farbe: #5865f2; }
.socials .sm-twitch { --farbe: #9146ff; }
.socials .sm-youtube { --farbe: #ff0033; }
.socials .sm-instagram { --farbe: #e4405f; }
.socials .sm-facebook { --farbe: #1877f2; }
.sponsoren { display: flex; flex-wrap: wrap; gap: 14px; }
.sponsor { padding: 16px 22px; border: 1px solid var(--rand); border-radius: 12px; background: var(--karte); font: 600 1.05rem var(--sans); color: var(--text); display: flex; align-items: center; gap: 10px; }
.sponsor img { max-height: 36px; }

.lade { display: grid; place-items: center; padding: 80px 0; color: var(--leise); }
.lade::before { content: ""; width: 34px; height: 34px; border: 3px solid var(--rand); border-top-color: var(--gold); border-radius: 50%; animation: drehen 0.8s linear infinite; margin-bottom: 12px; }
.leer { text-align: center; padding: 40px 20px; color: var(--leise); border: 1px dashed var(--rand); border-radius: var(--radius); }
.seitenkopf { padding: 44px 0 10px; }
.seitenkopf p { color: var(--leise); max-width: 720px; }

/* ---------- Druck ---------- */
#druck { display: none; }
@media print {
  body.druckt > *:not(#druck) { display: none !important; }
  body.druckt #druck { display: block !important; }
  :root, html, body.druckt { background: #fff !important; color: #000; color-scheme: light !important; } /* auch der Seitenrand im PDF hell */
  body.druckt::before { display: none; }
  .lan-ticket { box-shadow: none; border: 1px solid #ccc; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Handy: Tippflächen und Abstände ---------- */
@media (max-width: 700px) {
  .wrap { width: min(1180px, 100% - 24px); }
  .kopf-rechts { gap: 6px; margin-left: auto; }
  .kopf-rechts .knopf { min-height: 40px; padding-inline: 12px; }
  .marke { font-size: 1.2rem; }
  .knopf { min-height: 44px; }
  .knopf.klein { min-height: 40px; padding: 7px 12px; }
  .lz-feld .knopf { min-height: 36px; padding: 4px 10px; }
  input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; }
  .check { padding: 4px 0; }
  .abschnitt { padding-top: 40px; }
  .seitenkopf { padding-top: 28px; }
  .karte { padding: 16px; }
  .modal-hg { padding: 8px; align-items: end; }
  .modal { padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 10px 10px 6px 6px; }
  .x { min-width: 44px; min-height: 44px; }
  .toasts { justify-items: stretch; }
  .toast { max-width: none; }
  /* Fuß: Links als gut tippbare Zeilen */
  .fuss a { display: inline-block; padding: 8px 0; }
  .fuss-innen { gap: 14px; }
  .abschnitt-kopf > a { padding: 8px 0; }
  .news-zeile { grid-template-columns: 1fr; gap: 2px; padding: 12px 2px; }
  .news-zeile time { font-size: 0.85rem; }
  details.faq summary { padding: 16px 2px; }
  .daten-liste { grid-template-columns: 1fr; gap: 2px 0; }
  .daten-liste dd { margin-bottom: 8px; }
  .status-schritte { flex-wrap: wrap; }
  .status-schritte div { flex: 1 1 40%; }
  .editor-leiste { position: static; }
  .editor-leiste .gruppe { flex-wrap: wrap; max-width: 100%; border-right: 0; padding-right: 0; margin-right: 0; }
  .werkzeug { min-height: 40px; min-width: 40px; }
  .lan-ticket .t-koerper, .lan-ticket .t-band, .lan-ticket .t-fuss { padding-inline: 16px; }
  .lan-ticket .t-qr .qr svg { width: min(220px, 60vw); height: min(220px, 60vw); }
  th, td { padding: 9px 10px; }
  .legende { grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 0.82rem; }
}
.unterkunft-kopf { margin: 16px 0 4px; color: var(--gold2); font: 600 1.05rem var(--serif); }
.unterkunft-links { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.unterkunft-links a { overflow-wrap: anywhere; }

/* Quer (niedrige Höhe): Werkzeugleiste des Sitzplan-Editors nicht festkleben – sonst bleiben unter Kopf + Reitern kaum 150 px für die Bühne (Abnahme 06.10. C-1). */
@media (max-height: 500px) { .editor-leiste { position: static; } }
