:root {
  --ink: #09162a;
  --muted: #5a6575;
  --line: #d9dee6;
  --surface: #ffffff;
  --soft: #f2f4f7;
  --accent: #f3c800;
  --accent-dark: #d5ad00;
  --navy: #071426;
  --navy-light: #12213a;
  --error: #a63030;
  --success: #14745d;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(20, 33, 61, 0.08);
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { max-width: 760px; }

.hero {
  position: relative;
  min-height: min(860px, 92vh);
  overflow: hidden;
  color: #fff;
  background: var(--navy) url("/assets/stadion.jpg") center 44% / cover no-repeat;
}
.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(4, 12, 25, .22) 0%, rgba(4, 12, 25, .56) 45%, rgba(4, 12, 25, .96) 100%);
}
.hero-inner { position: relative; z-index: 1; min-height: min(860px, 92vh); padding-block: 34px 64px; display: flex; flex-direction: column; }
.hero-logo { width: clamp(190px, 24vw, 310px); height: auto; padding: 15px 18px; border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 14px 35px rgba(0,0,0,.2); align-self: flex-end; }
.hero-content { max-width: 960px; margin-top: auto; }
.hero-eyebrow { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; color: var(--accent); font-size: .9rem; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; }
.hero-eyebrow::before { width: 64px; height: 3px; content: ""; background: var(--accent); }
.eyebrow, .step {
  margin: 0 0 18px;
  color: #8a6b00;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2 { margin: 0; letter-spacing: -.04em; line-height: 1.06; text-wrap: balance; }
h1 { max-width: 980px; font-size: clamp(3.5rem, 9vw, 7.5rem); font-weight: 780; }
.hero-tagline { margin: 16px 0 32px; color: #f6e8ba; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 3vw, 2.25rem); font-style: italic; }
.hero-date { display: flex; width: fit-content; align-items: center; gap: 22px; padding-block: 20px; border-block: 1px solid rgba(243,200,0,.7); font-size: clamp(1rem, 2vw, 1.35rem); }
.hero-date strong { padding-inline: 22px; border-inline: 2px solid var(--accent); font-size: clamp(1.5rem, 4vw, 2.6rem); letter-spacing: -.02em; }
.hero-button { display: inline-flex; min-height: 54px; margin-top: 30px; align-items: center; padding: 12px 24px; border-radius: 999px; color: var(--navy); background: var(--accent); font-weight: 780; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.hero-button:hover { background: #ffdb2e; transform: translateY(-1px); }

.event-section { padding-block: clamp(76px, 10vw, 120px); color: #fff; background: var(--navy); }
.event-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px 70px; align-items: end; margin-bottom: 50px; }
.event-intro .step { grid-column: 1 / -1; margin-bottom: 0; color: var(--accent); }
.event-intro h2 { font-size: clamp(2.2rem, 5vw, 4.25rem); }
.event-intro > p:last-child { margin: 0; color: #b9c9dd; font-size: clamp(1rem, 2vw, 1.2rem); }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.event-card { min-height: 195px; padding: 26px; border: 1px solid rgba(243,200,0,.36); border-radius: 16px; background: rgba(255,255,255,.045); }
.card-number { color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.event-card h3 { margin: 28px 0 7px; font-size: 1.12rem; }
.event-card p { margin: 0; color: #aecaeb; font-size: .94rem; }

.form-section { padding-block: clamp(72px, 10vw, 120px); background: var(--soft); }
.section-heading { margin-bottom: 42px; text-align: center; }
.section-heading h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.section-heading > p:last-child { max-width: 570px; margin: 20px auto 0; color: var(--muted); }

form, .success-card, .login-card {
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid rgba(20, 33, 61, .08);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 24px; }
label, .field-label { display: block; margin-bottom: 8px; font-weight: 650; }
input[type="text"], input[type="email"], input[type="password"], input:not([type]) , input[type="number"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #bcc5d1;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[type="number"] { max-width: 120px; }
input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(243, 200, 0, .48);
  outline-offset: 2px;
  border-color: var(--accent);
}
.option-group { margin: 34px 0 0; padding: 28px 0 8px; border: 0; border-top: 1px solid var(--line); }
.option-group legend { float: left; width: 100%; margin: 0 0 18px; font-size: 1.15rem; font-weight: 720; }
.option-group legend + * { clear: both; }
.choice, .commitment { display: flex; gap: 13px; align-items: flex-start; cursor: pointer; }
.choice { margin-bottom: 22px; }
.choice input, .commitment input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--navy); flex: 0 0 auto; }
.choice strong { display: block; font-weight: 650; }
.choice small { display: block; margin-top: 2px; color: var(--muted); font-size: .9rem; font-weight: 400; }
.compact-field { margin: 25px 0 12px; }
.conditional { margin-top: 8px; padding: 22px; border-radius: 12px; background: var(--soft); }
.field-label { margin-top: 0; }
.radio-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card { position: relative; margin: 0; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card span { display: block; padding: 14px; border: 1px solid #bcc5d1; border-radius: 10px; background: #fff; font-weight: 600; text-align: center; }
.radio-card input:checked + span { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); color: var(--navy); }
.radio-card input:focus-visible + span { outline: 3px solid rgba(243, 200, 0, .48); outline-offset: 2px; }
.commitment { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.privacy { margin: 26px 0 0; color: var(--muted); font-size: .88rem; }
.message { min-height: 24px; margin-top: 18px; color: var(--error); font-weight: 600; }
.primary-button {
  width: 100%;
  min-height: 56px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
  font-weight: 720;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.primary-button:hover { background: var(--navy-light); }
.primary-button:active { transform: translateY(1px); }
.primary-button:disabled { opacity: .65; cursor: wait; }
.required-note { margin: 12px 0 0; color: var(--muted); font-size: .8rem; text-align: center; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.success-card { text-align: center; }
.success-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 24px; place-items: center; border-radius: 50%; color: #fff; background: var(--success); font-size: 1.6rem; }
.success-card h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
.success-card p { margin: 18px 0 0; color: var(--muted); }
footer { padding: 30px 0; color: #b9c9dd; background: #050f1e; font-size: .85rem; text-align: center; }

/* Verwaltung */
.admin-body { min-height: 100vh; background: var(--soft); }
.admin-header { padding: 34px 0 26px; background: #fff; border-bottom: 1px solid var(--line); }
.admin-header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-title { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.admin-main { padding-block: 36px 70px; }
.admin-actions { display: flex; align-items: center; gap: 12px; }
.secondary-button, .text-button {
  display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 9px 16px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; font-weight: 650; text-decoration: none; cursor: pointer;
}
.text-button { border: 0; background: transparent; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.stat-label { display: block; color: var(--muted); font-size: .82rem; }
.stat-value { display: block; margin-top: 4px; font-size: 1.8rem; font-weight: 740; }
.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .91rem; }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); background: #fafbfc; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
.name-cell-content { display: flex; min-width: 170px; align-items: center; justify-content: space-between; gap: 12px; }
.name-cell strong { display: block; }
.delete-button { display: grid; width: 34px; height: 34px; flex: 0 0 34px; padding: 0; place-items: center; border: 1px solid #e2bcbc; border-radius: 50%; color: #922c2c; background: #fff; cursor: pointer; }
.delete-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.delete-button:hover { border-color: #b94a4a; background: #fff5f5; }
.delete-button:disabled { opacity: .55; cursor: wait; }
.empty { padding: 44px; color: var(--muted); text-align: center; }
.login-shell { display: grid; min-height: 100vh; padding: 24px; place-items: center; }
.login-card { width: min(100%, 440px); }
.login-card h1 { font-size: 2.2rem; text-align: left; }
.login-card > p { margin: 14px 0 30px; color: var(--muted); }

[hidden] { display: none !important; }
@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .hero, .hero-inner { min-height: 760px; }
  .hero-inner { padding-block: 20px 44px; }
  .hero-logo { width: 185px; padding: 11px 13px; border-radius: 12px; align-self: flex-start; }
  .hero-eyebrow::before { width: 36px; }
  .hero-date { width: 100%; gap: 12px; justify-content: space-between; font-size: .88rem; }
  .hero-date strong { padding-inline: 12px; font-size: 1.45rem; }
  .hero-button { width: 100%; justify-content: center; }
  .event-intro { grid-template-columns: 1fr; gap: 18px; }
  .event-intro .step { grid-column: auto; }
  .event-grid { grid-template-columns: 1fr; }
  .event-card { min-height: auto; }
  .form-grid, .radio-row { grid-template-columns: 1fr; gap: 0; }
  .radio-row { gap: 10px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .admin-header-row { align-items: flex-start; flex-direction: column; }
  .admin-actions { width: 100%; }
  .admin-actions > * { flex: 1; }
}
@media (min-width: 721px) and (max-width: 960px) {
  .event-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
