/* ==========================================================================
   Jug Events – Design-System
   Stimmung: 60er-Retro, Jazz & Noir, verrauchter Underground-Club.
   Tiefes Schwarz, kräftiges Pink, Körnung, Spotlights, elegante Linien.
   Alle Design-Tokens stehen hier an EINER Stelle (siehe docs/DESIGN.md).
   ========================================================================== */

/* ---------- Schriften (selbst ausgeliefert, SIL Open Font License) ---------- */
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-700.woff2') format('woff2');
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-900i.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Abril Fatface';
  src: url('/assets/fonts/abril-fatface-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  /* Farben */
  --c-bg: #07060a;
  --c-bg-2: #0d0b11;
  --c-surface: #141118;
  --c-surface-2: #1c1822;
  --c-surface-3: #262030;
  --c-border: #2f2838;
  --c-border-strong: #4a3f56;
  --c-text: #f7f1f5;
  --c-text-muted: #c3b8c1;
  --c-text-dim: #948a98;
  --c-pink: #fc1297; /* Neon-Pink aus dem Logo-Ring */
  --c-pink-hot: #ff4db3;
  --c-pink-strong: #d6006f; /* Button-Fläche, weißer Text mit Kontrast 5,1:1 */
  --c-pink-deep: #7a0040;
  --c-pink-soft: rgba(252, 18, 151, 0.14);
  --c-pink-line: rgba(252, 18, 151, 0.45);
  --c-white: #ffffff;
  --c-success: #22d37f;
  --c-success-bg: #0b3b24;
  --c-danger: #ff5266;
  --c-danger-bg: #4a0c16;
  --c-warning: #ffab2e;
  --c-warning-bg: #4a2e05;
  --c-info: #7cc4ff;
  --c-focus: #ffd1ea;

  /* Typografie */
  --font-display: 'Abril Fatface', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fs-xs: 0.78rem;
  --fs-sm: 0.88rem;
  --fs-md: 1rem;
  --fs-lg: 1.15rem;
  --fs-xl: 1.4rem;
  --fs-2xl: clamp(1.7rem, 4.5vw, 2.3rem);
  --fs-3xl: clamp(2.1rem, 7vw, 3.4rem);
  --lh-tight: 1.15;
  --lh-body: 1.6;
  --tracking-wide: 0.22em;

  /* Abstände & Formen */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --container: 1120px;
  --container-narrow: 720px;

  /* Effekte */
  --glow-pink: 0 0 0.6rem rgba(252, 18, 151, 0.55), 0 0 2.2rem rgba(252, 18, 151, 0.28);
  --glow-pink-soft: 0 0 1.4rem rgba(252, 18, 151, 0.22);
  --shadow-card: 0 18px 40px -18px rgba(0, 0, 0, 0.9), 0 2px 0 rgba(255, 255, 255, 0.03) inset;
  --spotlight: radial-gradient(ellipse 70% 55% at 50% -8%, rgba(252, 18, 151, 0.22), transparent 70%);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 220ms;
}

/* ---------- Basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--spotlight), linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-2) 100%) fixed;
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
/* Leichte Filmkörnung über allem (ohne Interaktion zu blockieren) */
body.public::after,
body.admin::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url('/assets/img/grain.png');
  background-size: 160px 160px;
  opacity: 0.55;
  mix-blend-mode: overlay;
  z-index: 100;
}
img,
svg {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--c-pink-hot);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--c-white);
}
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: var(--c-pink);
  color: var(--c-white);
}
h1,
h2,
h3,
h4 {
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-3);
  font-weight: 700;
}
p {
  margin: 0 0 var(--space-4);
}
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
}
.kicker {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--c-pink);
  margin-bottom: var(--space-2);
}
.muted {
  color: var(--c-text-muted);
}
.dim {
  color: var(--c-text-dim);
}
.nowrap {
  white-space: nowrap;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  z-index: 200;
  background: var(--c-white);
  color: #000;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus {
  top: var(--space-3);
}
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}
.container--narrow {
  width: min(100% - 2rem, var(--container-narrow));
  margin-inline: auto;
}
.stack > * + * {
  margin-top: var(--space-4);
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.row--between {
  justify-content: space-between;
}
.grid-2 {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Elegante Linien ---------- */
.swoosh,
.footer-swoosh {
  height: 18px;
  margin: var(--space-6) auto;
  width: min(80%, 520px);
  background:
    radial-gradient(ellipse 50% 2px at 50% 50%, var(--c-white), transparent 70%),
    radial-gradient(ellipse 50% 6px at 50% 50%, var(--c-pink), transparent 75%);
  opacity: 0.85;
}
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--c-text-dim);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin: var(--space-6) 0 var(--space-4);
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-pink-line), transparent);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--c-surface-2);
  --btn-fg: var(--c-text);
  --btn-border: var(--c-border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.65em 1.25em;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 700;
  font-size: var(--fs-md);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:hover {
  color: var(--btn-fg);
  border-color: var(--c-pink-line);
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.btn--primary {
  --btn-bg: var(--c-pink-strong);
  --btn-fg: var(--c-white);
  --btn-border: var(--c-pink);
  box-shadow: var(--glow-pink-soft);
}
.btn--primary:hover {
  --btn-bg: #e8007a;
  box-shadow: var(--glow-pink);
}
.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--c-text);
  --btn-border: var(--c-border-strong);
}
.btn--secondary:hover {
  --btn-bg: var(--c-surface-2);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-border: transparent;
  --btn-fg: var(--c-text-muted);
}
.btn--ghost:hover {
  --btn-fg: var(--c-white);
  --btn-bg: var(--c-surface-2);
}
.btn--danger {
  --btn-bg: transparent;
  --btn-fg: #ff8a98;
  --btn-border: rgba(255, 82, 102, 0.55);
}
.btn--danger:hover {
  --btn-bg: var(--c-danger-bg);
  --btn-fg: var(--c-white);
  border-color: var(--c-danger);
}
.btn--success {
  --btn-bg: #10894f;
  --btn-fg: var(--c-white);
  --btn-border: var(--c-success);
}
.btn--sm {
  min-height: 36px;
  padding: 0.4em 0.9em;
  font-size: var(--fs-sm);
}
.btn--lg {
  min-height: 52px;
  padding: 0.8em 1.6em;
  font-size: var(--fs-lg);
}
.btn--xl {
  min-height: 64px;
  padding: 0.9em 1.8em;
  font-size: var(--fs-xl);
  letter-spacing: 0.01em;
}
.btn--block {
  display: flex;
  width: 100%;
}
.btn--glow {
  animation: neon-pulse 3.2s ease-in-out infinite;
}
.btn__icon {
  font-size: 1.1em;
  line-height: 1;
}
.btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 1.2em;
  height: 1.2em;
  border: 2px solid var(--c-white);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.inline-form {
  display: inline;
  margin: 0;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* ---------- Formulare ---------- */
.field {
  display: grid;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}
.field__label {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--c-text);
  letter-spacing: 0.01em;
}
.field__req {
  color: var(--c-pink);
}
.field__hint {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--c-text-dim);
}
.field__error {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #ff8a98;
}
.field__error::before {
  content: '⚠ ';
}
.input {
  width: 100%;
  min-height: 48px;
  padding: 0.7em 0.9em;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  background: var(--c-bg-2);
  color: var(--c-text);
  font: inherit;
  font-size: 16px; /* verhindert Zoom auf iOS */
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.input::placeholder {
  color: var(--c-text-dim);
}
.input:hover {
  border-color: #6a5b78;
}
.input:focus {
  outline: none;
  border-color: var(--c-pink);
  box-shadow: 0 0 0 3px rgba(252, 18, 151, 0.3);
}
.input[readonly] {
  background: var(--c-surface);
  color: var(--c-text-muted);
}
.field--invalid .input {
  border-color: var(--c-danger);
}
.textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--c-pink) 50%), linear-gradient(135deg, var(--c-pink) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 55%,
    calc(100% - 14px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5em;
}
.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: var(--space-3);
}
.field--check .field__hint,
.field--check .field__error {
  grid-column: 2;
}
.check {
  width: 24px;
  height: 24px;
  margin: 0.1em 0 0;
  accent-color: var(--c-pink);
  cursor: pointer;
}
.field__check-label {
  font-size: var(--fs-md);
  cursor: pointer;
}
input[type='color'].input {
  padding: 4px;
  min-height: 48px;
  cursor: pointer;
}
fieldset {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin: 0 0 var(--space-4);
}
legend {
  padding: 0 var(--space-2);
  font-weight: 700;
}
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.radio-cards {
  display: grid;
  gap: var(--space-3);
  border: 0;
  padding: 0;
  margin: 0 0 var(--space-4);
}
.radio-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-4);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-md);
  background: var(--c-bg-2);
  cursor: pointer;
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.radio-card input {
  width: 22px;
  height: 22px;
  accent-color: var(--c-pink);
}
.radio-card:has(input:checked) {
  border-color: var(--c-pink);
  box-shadow: var(--glow-pink-soft);
}
.radio-card:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}
.radio-card__title {
  font-weight: 700;
}
.radio-card__desc {
  display: block;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

/* ---------- Meldungen ---------- */
.flash {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border-strong);
  background: var(--c-surface);
  margin: 0 0 var(--space-4);
  font-weight: 600;
}
.flash--success {
  border-color: var(--c-success);
  background: var(--c-success-bg);
}
.flash--error {
  border-color: var(--c-danger);
  background: var(--c-danger-bg);
}
.flash--warning {
  border-color: var(--c-warning);
  background: var(--c-warning-bg);
}
.flash--info {
  border-color: var(--c-pink-line);
  background: var(--c-pink-soft);
}
.flash p:last-child {
  margin-bottom: 0;
}
.notice-important {
  position: relative;
  padding: var(--space-4) var(--space-4) var(--space-4) 3.2rem;
  border: 2px solid var(--c-warning);
  border-radius: var(--radius-md);
  background: var(--c-warning-bg);
  color: #fff4e0;
  font-weight: 600;
  margin-bottom: var(--space-5);
}
.notice-important::before {
  content: '!';
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-warning);
  color: #000;
  font-weight: 800;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.25em 0.75em;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--c-border-strong);
  background: var(--c-surface-2);
  color: var(--c-text);
  white-space: nowrap;
}
.badge--pink {
  border-color: var(--c-pink);
  background: var(--c-pink-soft);
  color: #ffd1ea;
}
.badge--success {
  border-color: var(--c-success);
  background: var(--c-success-bg);
  color: #b6f5d4;
}
.badge--danger {
  border-color: var(--c-danger);
  background: var(--c-danger-bg);
  color: #ffd0d6;
}
.badge--warning {
  border-color: var(--c-warning);
  background: var(--c-warning-bg);
  color: #ffe2b8;
}
.badge--info {
  border-color: #3d6f99;
  background: #0e2638;
  color: #cfe8ff;
}
.cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3em 0.85em;
  border-radius: var(--radius-pill);
  background: var(--cat, var(--c-pink));
  color: var(--cat-fg, #fff);
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}
.cat-badge--sm {
  font-size: var(--fs-xs);
  padding: 0.2em 0.7em;
}
.cat-badge--lg {
  font-size: var(--fs-lg);
  padding: 0.35em 1em;
}
.cat-badge--xl {
  font-size: clamp(1.4rem, 6vw, 2.2rem);
  padding: 0.3em 1em;
  text-transform: uppercase;
}

/* ---------- Fortschritt & Zahlen ---------- */
.progress {
  position: relative;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--c-surface-3);
  overflow: hidden;
}
.progress__bar {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--c-pink-strong), var(--c-pink-hot));
  box-shadow: 0 0 12px rgba(252, 18, 151, 0.6);
}
.progress--full .progress__bar {
  background: linear-gradient(90deg, #b8004f, var(--c-pink));
}
.progress--over .progress__bar {
  background: repeating-linear-gradient(45deg, var(--c-danger), var(--c-danger) 8px, #b3001b 8px, #b3001b 16px);
}
.stat {
  display: grid;
  gap: 2px;
  padding: var(--space-4);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  background: var(--c-surface);
}
.stat__value {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  font-weight: 600;
}
.stat__sub {
  font-size: var(--fs-xs);
  color: var(--c-text-dim);
}
.stat--pink .stat__value {
  color: var(--c-pink-hot);
}
.stat--success .stat__value {
  color: var(--c-success);
}
.stat--danger .stat__value {
  color: var(--c-danger);
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (min-width: 760px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Karten & Panels ---------- */
.card {
  position: relative;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-bg-2) 100%);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.panel {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}
.panel__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}
.panel__title {
  margin: 0;
  font-size: var(--fs-xl);
}
.panel__desc {
  color: var(--c-text-muted);
  margin-top: calc(-1 * var(--space-2));
}
.panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ---------- Leerer Zustand ---------- */
.empty {
  text-align: center;
  padding: var(--space-7) var(--space-4);
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--radius-lg);
  background: rgba(20, 17, 24, 0.6);
}
.empty__icon {
  font-size: 2rem;
  color: var(--c-pink);
  text-shadow: var(--glow-pink);
}
.empty__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-2xl);
  margin: var(--space-3) 0;
}
.empty__text {
  color: var(--c-text-muted);
  max-width: 46ch;
  margin-inline: auto;
}
.empty__action {
  margin-top: var(--space-5);
}

/* ---------- Kopierfeld ---------- */
.copy-field {
  margin-bottom: var(--space-4);
}
.copy-field__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
}
.copy-field__input {
  flex: 1 1 260px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.92rem;
}
.copy-field .btn.is-copied {
  border-color: var(--c-success);
  color: var(--c-success);
}

/* ---------- Dialog (Bestätigungen) ---------- */
.dialog {
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  color: var(--c-text);
  padding: var(--space-5);
  width: min(92vw, 460px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), var(--glow-pink-soft);
}
.dialog::backdrop {
  background: rgba(4, 3, 6, 0.78);
  backdrop-filter: blur(3px);
}
.dialog__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-3);
}
.dialog__text {
  color: var(--c-text-muted);
  white-space: pre-line;
}
.dialog__actions {
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 150;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--c-white);
  color: #000;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  animation: toast-in 240ms var(--ease);
}

/* ==========================================================================
   Gästebereich
   ========================================================================== */
.site-header {
  display: flex;
  justify-content: center;
  padding: var(--space-5) var(--space-4) var(--space-3);
}
.site-header--hero {
  padding: var(--space-6) var(--space-4) var(--space-5);
  background:
    linear-gradient(180deg, rgba(7, 6, 10, 0.25) 0%, rgba(7, 6, 10, 0.75) 70%, var(--c-bg) 100%),
    url('/assets/img/club-lights.webp') center / cover no-repeat;
}
.brand {
  display: inline-block;
  line-height: 0;
}
.brand img {
  width: clamp(150px, 42vw, 230px);
  filter: drop-shadow(0 0 18px rgba(252, 18, 151, 0.35));
  animation: neon-flicker 7s ease-in-out infinite;
}
.site-main {
  flex: 1;
  width: 100%;
  padding-bottom: var(--space-7);
}
.site-footer {
  text-align: center;
  padding: var(--space-4) var(--space-4) var(--space-6);
  color: var(--c-text-dim);
  font-size: var(--fs-sm);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-5);
  margin-bottom: var(--space-2);
}
.footer-links a {
  color: var(--c-text-muted);
}
.footer-copy {
  margin: 0;
}

/* Fehlerseiten */
.error-page {
  text-align: center;
  width: min(100% - 2rem, 560px);
  margin: var(--space-6) auto;
}
.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 22vw, 9rem);
  line-height: 1;
  margin: 0;
  color: transparent;
  -webkit-text-stroke: 2px var(--c-pink);
  text-shadow: var(--glow-pink);
}
.error-page__title {
  font-size: var(--fs-2xl);
  margin: var(--space-4) 0;
}
.error-page__text {
  color: var(--c-text-muted);
}
.error-page__actions {
  margin-top: var(--space-5);
}

/* Rechtstexte */
.legal {
  width: min(100% - 2rem, var(--container-narrow));
  margin: var(--space-4) auto;
}
.legal h1,
.legal h2 {
  font-family: var(--font-display);
  font-weight: 400;
}
.legal h2 {
  font-size: var(--fs-xl);
  margin-top: var(--space-6);
  color: var(--c-pink-hot);
}

/* ---------- Animationen ---------- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes neon-pulse {
  0%,
  100% {
    box-shadow: 0 0 0.5rem rgba(252, 18, 151, 0.4), 0 0 1.6rem rgba(252, 18, 151, 0.18);
  }
  50% {
    box-shadow: 0 0 0.9rem rgba(252, 18, 151, 0.7), 0 0 2.8rem rgba(252, 18, 151, 0.35);
  }
}
@keyframes neon-flicker {
  0%,
  92%,
  100% {
    filter: drop-shadow(0 0 18px rgba(252, 18, 151, 0.35));
  }
  93% {
    filter: drop-shadow(0 0 4px rgba(252, 18, 151, 0.15));
  }
  95% {
    filter: drop-shadow(0 0 22px rgba(252, 18, 151, 0.5));
  }
  97% {
    filter: drop-shadow(0 0 8px rgba(252, 18, 151, 0.2));
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}
.fade-up {
  animation: fade-up 600ms var(--ease) both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  body::after,
  .site-header,
  .site-footer,
  .btn,
  .ticket-actions {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
