/* WAYF – gemeinsame Grundlage für alle Varianten: Farben, Glas, Licht, Dialoge */
:root {
  --accent: #d4f23a;           /* Acid-Gelb – im Admin änderbar */
  --acc: 212, 242, 58;
  --fgc: 255, 255, 255;        /* Text & Linien */
  --bgc: 3, 3, 3;              /* Hintergrund */
  --ink: 10, 10, 10;           /* Schrift auf hellen Knöpfen */
  --bg: rgb(var(--bgc));
  --fg: rgb(var(--fgc));
  --muted: rgba(var(--fgc), .64);
  --faint: rgba(var(--fgc), .5);
  --line: rgba(var(--fgc), .13);
  --red: 170, 16, 24;           /* rotes Bühnenlicht */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;              /* Onepager ohne Scrollen */
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }

/* Seite: genau eine Bildschirmhöhe */
.page { position: relative; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }

/* Licht im Hintergrund */
.light { position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(40px); }
.vignette { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 38%, rgba(0, 0, 0, .78)); }

/* Glas – komplett transparent, nur Lichtkante, Unschärfe und Schatten */
.glass {
  background: linear-gradient(150deg, rgba(var(--fgc), .075), rgba(var(--fgc), .012) 46%, rgba(var(--fgc), .035));
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(var(--fgc), .12);
  box-shadow: inset 0 1px 0 rgba(var(--fgc), .26), inset 1px 0 0 rgba(var(--fgc), .05), inset 0 -1px 0 rgba(var(--fgc), .03), 0 30px 70px rgba(0, 0, 0, .6);
}

.cap { font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.muted { color: var(--muted); }
.h2 { margin: 0; font-size: clamp(22px, 2vw, 28px); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); flex: none; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Knöpfe: bei WAYF immer Pillen, Druck-Feedback */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(.97); }
.btn--ghost { border-color: rgba(var(--fgc), .22); background: rgba(var(--fgc), .04); }
.btn--icon { width: 44px; min-height: 44px; padding: 0; }
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { background: rgba(var(--fgc), .09); border-color: rgba(var(--fgc), .32); }
  a.link:hover { color: var(--fg); }
}
.btn:focus-visible, a:focus-visible, [role="tab"]:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.link { color: var(--muted); transition: color 160ms ease; }

/* Hausregeln */
.rules { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 26px; color: rgba(var(--fgc), .8); }
.rule { display: flex; align-items: center; gap: 10px; }
.rule .cap { font-size: 10px; }

/* Fußzeile */
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; color: var(--faint); }
.foot nav { display: flex; gap: 18px; }
.foot button { background: none; border: 0; padding: 6px 0; color: var(--muted); font-size: 12px; cursor: pointer; }

/* Dialoge (Kontakt, Newsletter am Handy, Impressum, Datenschutz) – Glas, öffnen aus der Mitte */
dialog.sheet {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; border-radius: 26px; color: var(--fg); overflow: hidden;
  background: linear-gradient(150deg, rgba(30, 30, 32, .62), rgba(12, 12, 14, .55));
  -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid rgba(var(--fgc), .14);
  box-shadow: inset 0 1px 0 rgba(var(--fgc), .26), 0 40px 100px rgba(0, 0, 0, .7);
  opacity: 1; transform: none;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), overlay 220ms allow-discrete, display 220ms allow-discrete;
}
dialog.sheet:not([open]) { opacity: 0; transform: scale(.96); }
@starting-style { dialog.sheet[open] { opacity: 0; transform: scale(.96); } }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity 220ms ease, overlay 220ms allow-discrete, display 220ms allow-discrete; }
@starting-style { dialog.sheet[open]::backdrop { opacity: 0; } }
.sheet__in { display: flex; flex-direction: column; gap: 16px; padding: 24px; max-height: calc(100dvh - 34px); overflow-y: auto; overscroll-behavior: contain; }
.sheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.sheet__close { flex: none; }
.legal { font-size: 14px; line-height: 1.6; color: var(--muted); }
.legal p { margin: 0 0 10px; }

@media (prefers-reduced-motion: reduce) {
  dialog.sheet, dialog.sheet::backdrop { transition: opacity 150ms ease; transform: none !important; }
  .btn { transition: none; }
}

/* Sehr breite Bildschirme: Inhalt bleibt zusammen, das Licht darf breit sein */
.top, .foot, .wrap, .tiles, .m-actions { width: 100%; max-width: 1440px; margin-left: auto; margin-right: auto; }
