:root {
  --c-sky:   #44ADE6;
  --c-blue:  #3877C6;
  --c-deep:  #2C46A3;
  --c-ink:   #1A1A2E;
  --c-white: #ffffff;

  --c-ink-2:    #232342;
  --c-ink-3:    #2d2d52;
  --c-line:     rgba(255, 255, 255, .12);
  --c-line-2:   rgba(255, 255, 255, .22);
  --c-muted:    rgba(255, 255, 255, .68);
  --c-muted-2:  rgba(255, 255, 255, .50);
  --c-danger:   #ff7a8a;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-card: 0 30px 80px rgba(0, 0, 0, .45), 0 2px 0 rgba(255, 255, 255, .04) inset;

  --t-fast: 120ms ease;
  --t:      200ms ease;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-ink);
  color: var(--c-white);
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

/* Hintergrund-Spielfeld */
.pitch-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: .22;
  pointer-events: none;
}

/* Sky-Glow */
body::before {
  content: "";
  position: fixed;
  top: -20vh;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 700px;
  background: radial-gradient(closest-side, rgba(68, 173, 230, .22), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Topbar */
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 28px;
  max-width: 1180px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--c-white);
  margin-left: auto;   /* Logo immer ganz rechts */
}
.brand-name {
  font-weight: 800;
  letter-spacing: .3px;
  font-size: 15px;
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  background: var(--c-deep);
  color: var(--c-white);
  border: 1px solid var(--c-line-2);
}
.pill--light {
  background: rgba(68, 173, 230, .15);
  color: var(--c-sky);
  border-color: rgba(68, 173, 230, .35);
}
.pill--baseline {
  background: var(--c-sky);
  color: var(--c-ink);
  font-size: 10px;
  letter-spacing: 1.2px;
  padding: 5px 10px;
  border: none;
}

/* Container */
.container {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}
.container--wide {
  max-width: 1180px;
}

/* Hero */
.hero { margin: 40px 0 36px; }
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.4px;
  color: var(--c-sky);
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6.4vw, 64px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.5px;
}
.hero h1 span {
  display: block;
}
.hero h1 .accent {
  color: var(--c-sky);
}
.lead {
  margin: 0;
  max-width: 560px;
  color: var(--c-muted);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 500;
}
/* Hero-Lead Paragraph für Form-Pages (Anmeldung/Besucher) */
.hero-lead {
  margin: 14px 0 0;
  max-width: 600px;
  color: var(--c-muted);
  font-size: 15.5px;
  line-height: 1.55;
  font-weight: 500;
}
.hero-lead strong { color: var(--c-white); font-weight: 700; }

/* Stepper-Widget (Besucher-Formular Anzahl Tickets) — minus | input | plus.
   Das input bleibt als source of truth für Form-Submit, ist nur visuell
   ins Stepper-Container integriert (kein Native-Spinner). */
.stepper {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 240px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--c-line-2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border var(--t), background var(--t), box-shadow var(--t);
}
.stepper:hover { border-color: rgba(68, 173, 230, .45); }
.stepper:focus-within {
  border-color: var(--c-sky);
  background: rgba(68, 173, 230, .07);
  box-shadow: 0 0 0 4px rgba(68, 173, 230, .18);
}
.stepper button {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--c-white);
  font-size: 26px;
  font-weight: 700;
  width: 56px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
  font-family: inherit;
  line-height: 1;
}
.stepper button:hover {
  background: rgba(68, 173, 230, .14);
  color: var(--c-sky);
}
.stepper button:disabled {
  opacity: .35;
  cursor: not-allowed;
}
/* Die Generic-Input-Regel (oben) überschreiben — das Input lebt im
   Stepper und braucht weder Border noch Padding-Box, weil das der
   Container übernimmt. */
.stepper input[type=number] {
  flex: 1;
  width: auto;
  min-width: 0;
  text-align: center;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 14px 0 !important;
  font-size: 20px;
  font-weight: 800;
  color: var(--c-white);
  -moz-appearance: textfield;
}
.stepper input[type=number]::-webkit-outer-spin-button,
.stepper input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.stepper input[type=number]:focus {
  outline: none;
  box-shadow: none !important;
}

/* Form-Lock: Fieldset-Wrapper um alle Form-Felder. Wird via JS auf
   disabled gesetzt, sobald User auf "Weiter zur Zahlung" klickt — alle
   Inputs werden non-interactive, optisch leicht ausgegraut. */
.form-lock {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: grid;
  gap: 26px;
  transition: opacity var(--t);
}
.form-lock[disabled] { opacity: .55; }
.form-lock[disabled] input,
.form-lock[disabled] .level,
.form-lock[disabled] .chip,
.form-lock[disabled] button { cursor: not-allowed; }

/* Bestätigt-Badge: zwischen Form und Payment-Section. Sky-getintet,
   mit "ändern"-Link zum Aufheben. */
.form-locked-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 18px;
  margin-top: 18px;
  background: rgba(68, 173, 230, .10);
  border: 1px solid rgba(68, 173, 230, .35);
  border-radius: var(--radius);
}
.form-locked-badge[hidden] { display: none; }
.form-locked-badge span {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--c-sky);
}
.form-locked-badge button {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--c-sky);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: opacity var(--t);
}
.form-locked-badge button:hover { opacity: .75; }

/* Payment-Sektion: Stripe Elements direkt nach dem Form, in der gleichen
   Card. Express Checkout oben, "oder"-Divider, Payment Element unten.
   [hidden] explizit überschreibt display:flex (HTML hidden-Attribute
   greift sonst nicht wenn display:flex an späterer Stelle gesetzt). */
.payment-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
}
.payment-section[hidden] { display: none; }

#express-checkout-element {
  min-height: 48px;
}
#express-checkout-element:not(:empty)::after {
  content: "— oder mit Karte / Klarna / SEPA —";
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--c-muted-2);
  margin: 18px 0 6px;
}
.payment-element-mount {
  min-height: 120px;
}
.payment-error {
  margin: 0;
  padding: 12px 16px;
  background: rgba(255, 122, 138, .12);
  border: 1px solid rgba(255, 122, 138, .4);
  border-radius: var(--radius);
  color: var(--c-danger);
  font-size: 14px;
  font-weight: 600;
}


/* Ticket-Summary-Box (Besucher-Formular) — zeigt aktuellen Gesamtbetrag */
.ticket-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  margin: 8px 0 20px;
  background: linear-gradient(180deg, rgba(68, 173, 230, .10), rgba(44, 70, 163, .12));
  border: 1px solid rgba(68, 173, 230, .35);
  border-radius: var(--radius);
}
.ticket-summary span {
  font-weight: 700;
  color: var(--c-muted);
  letter-spacing: .2px;
  font-size: 14px;
}
.ticket-summary strong {
  font-size: 22px;
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: -.3px;
}

/* Card */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--c-ink-2), var(--c-ink));
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.card + .card { margin-top: 24px; }

/* Form */
form { display: grid; gap: 26px; min-width: 0; }
form > * { min-width: 0; }
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field legend {
  padding: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--c-sky);
  margin-bottom: 10px;
}
label[for] {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--c-sky);
}

input[type=text],
input[type=tel],
input[type=email],
input[type=number] {
  appearance: none;
  width: 100%;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--c-line-2);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--c-white);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  transition: border var(--t), background var(--t), box-shadow var(--t);
}
input[type=text]::placeholder,
input[type=tel]::placeholder,
input[type=email]::placeholder,
input[type=number]::placeholder { color: var(--c-muted-2); font-weight: 500; }
input[type=text]:hover,
input[type=tel]:hover,
input[type=email]:hover,
input[type=number]:hover { border-color: rgba(68, 173, 230, .45); }
input[type=text]:focus,
input[type=tel]:focus,
input[type=email]:focus,
input[type=number]:focus {
  outline: none;
  border-color: var(--c-sky);
  background: rgba(68, 173, 230, .07);
  box-shadow: 0 0 0 4px rgba(68, 173, 230, .18);
}
input[aria-invalid="true"] {
  border-color: var(--c-danger);
  box-shadow: 0 0 0 4px rgba(255, 122, 138, .15);
}

/* Autofill-Styling: dunkler Hintergrund + heller Text statt browser-gelb.
   - Safari/Chrome: box-shadow inset überschreibt die Default-Hintergrundfarbe
     (background-color lässt sich auf -webkit-autofill nicht direkt setzen)
   - Firefox: :autofill (neuer Standard ab FF86)
   - Lange transition-Verzögerung verhindert Auf-Blitzen beim Hover */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--c-white) !important;
  -webkit-box-shadow: 0 0 0 1000px #25254a inset !important;
  caret-color: var(--c-white) !important;
  transition: background-color 600000s ease-in-out 0s,
              color 600000s ease-in-out 0s !important;
  font-family: inherit !important;
}
input:autofill {
  background-color: #25254a !important;
  color: var(--c-white) !important;
  caret-color: var(--c-white) !important;
}

/* Country-Code-Selector links sitzt auf eigener Ebene über dem Input —
   damit das Autofill-Inset des Telefonfelds visuell nicht in den Selector blutet
   (das Tel-Input liegt absolut darunter und wäre sonst durchgeschimmert). */
.iti__country-container {
  z-index: 3;
}
.iti__selected-country {
  background: linear-gradient(180deg, rgba(38, 38, 74, 1), rgba(38, 38, 74, 1));
}
.iti__selected-country:hover,
.iti__selected-country[aria-expanded="true"] {
  background: rgba(68, 173, 230, .18);
}

/* === intl-tel-input · Brand-Override =========================== */
.iti { width: 100%; display: block; }
.iti--inline-dropdown .iti__dropdown-content {
  background: var(--c-ink-2);
  border: 1px solid var(--c-line-2);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  overflow: hidden;
  color: var(--c-white);
}
.iti__country-container { padding: 0; }
.iti__selected-country {
  background: rgba(255, 255, 255, .04);
  border-right: 1px solid var(--c-line-2);
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
  padding: 0 12px 0 14px;
  transition: background var(--t), border-color var(--t);
}
.iti__selected-country:hover,
.iti__selected-country[aria-expanded="true"] {
  background: rgba(68, 173, 230, .12);
}
.iti__selected-dial-code {
  color: var(--c-white);
  font-weight: 700;
  margin-inline-start: 8px;
}
.iti__arrow { border-top-color: var(--c-sky); }
.iti__arrow--up { border-bottom-color: var(--c-sky); }

.iti--separate-dial-code input.iti__tel-input,
.iti input.iti__tel-input {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

/* Search-Box */
.iti__search-input {
  background: rgba(255, 255, 255, .04) !important;
  border: 1px solid var(--c-line-2) !important;
  color: var(--c-white) !important;
  border-radius: var(--radius-sm) !important;
  padding: 10px 12px !important;
  margin: 10px !important;
  width: calc(100% - 20px) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  outline: none !important;
}
.iti__search-input::placeholder { color: var(--c-muted-2) !important; }
.iti__search-input:focus {
  border-color: var(--c-sky) !important;
  box-shadow: 0 0 0 3px rgba(68, 173, 230, .2) !important;
}

/* Country-Liste */
.iti__country-list {
  background: var(--c-ink-2) !important;
  border: none !important;
  max-height: 260px !important;
  scrollbar-width: thin;
  scrollbar-color: var(--c-deep) transparent;
}
.iti__country-list::-webkit-scrollbar { width: 8px; }
.iti__country-list::-webkit-scrollbar-thumb { background: var(--c-deep); border-radius: 4px; }
.iti__country {
  color: var(--c-white) !important;
  padding: 10px 14px !important;
  font-weight: 600;
  font-size: 14px;
}
.iti__country:hover,
.iti__country.iti__highlight {
  background: rgba(68, 173, 230, .15) !important;
}
.iti__dial-code { color: var(--c-muted) !important; font-weight: 600; }
.iti__divider { border-bottom: 1px solid var(--c-line) !important; }

.hint {
  font-size: 13px;
  color: var(--c-muted);
  font-weight: 500;
}
.hint--block { margin: 0 0 6px; line-height: 1.5; }

/* Spielerlevel-Hinweis: oben rot (Ehrlichkeit), unten neutral (Begründung) */
.level-hint-warning {
  margin: 0 0 -2px;
  color: var(--c-danger);
  font-size: 13.5px;
  line-height: 1.55;
  font-weight: 600;
}
.level-hint-fair {
  margin: 0 0 8px;
  color: var(--c-muted);
  font-size: 13.5px;
  line-height: 1.55;
  font-weight: 500;
}
.level-hint-fair strong {
  color: var(--c-white);
  font-weight: 700;
}

.error {
  font-size: 13px;
  color: var(--c-danger);
  font-weight: 600;
  min-height: 0;
}
.error:not(:empty) { margin-top: 2px; }

/* Position-Chips */
.positions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--c-line-2);
  font-weight: 700;
  letter-spacing: .4px;
  cursor: pointer;
  transition: all var(--t);
  user-select: none;
}
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip:hover { border-color: rgba(68, 173, 230, .45); background: rgba(68, 173, 230, .07); }
.chip:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(68, 173, 230, .25); }
.chip:has(input:checked) {
  background: linear-gradient(180deg, var(--c-sky), var(--c-blue));
  border-color: var(--c-sky);
  color: var(--c-white);
  box-shadow: 0 8px 24px rgba(68, 173, 230, .35);
}

/* Levels — horizontaler Scroll */
.levels-wrap {
  position: relative;
  margin: 0 -32px;   /* aus der Card-Padding ausbrechen für Edge-Fade */
  min-width: 0;
  max-width: calc(100% + 64px);
}
.levels {
  display: flex;
  gap: 14px;
  padding: 4px 32px 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 32px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  max-width: 100%;
}
.levels::-webkit-scrollbar { display: none; }
/* Edge-Fades — bottom-Wert berücksichtigt:
   18px padding-bottom in .levels  +  6px margin-top der .levels-hint
   + ~15px Höhe der .levels-hint  → der Fade endet exakt am Karten-Unterkante,
   nicht unten an der Scroll-Hint-Zeile. */
.levels-wrap::before,
.levels-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 40px;
  width: 32px;
  pointer-events: none;
  z-index: 2;
}
.levels-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--c-ink-2), transparent);
}
.levels-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--c-ink-2), transparent);
}
.levels-hint {
  text-align: center;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-muted-2);
  margin-top: 6px;
}

.level {
  position: relative;
  flex: 0 0 280px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--c-line-2);
  cursor: pointer;
  overflow: hidden;
  transition: border var(--t), background var(--t), transform var(--t-fast), box-shadow var(--t);
}
.level input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.level:hover {
  border-color: rgba(68, 173, 230, .5);
  background: rgba(68, 173, 230, .06);
  transform: translateY(-2px);
}
.level:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(68, 173, 230, .22); }
.level:has(input:checked) {
  border-color: var(--c-sky);
  background: linear-gradient(180deg, rgba(68, 173, 230, .15), rgba(44, 70, 163, .15));
  /* Innenschein + dezenter Outer-Glow ohne Y-Offset
     (Drop-Shadow hatte vorher 18px Y + 44px Blur → ragte unter der Karte raus) */
  box-shadow:
    inset 0 0 0 1px rgba(68, 173, 230, .4),
    0 0 0 2px rgba(68, 173, 230, .18);
}

/* Illustration */
.level-illu {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(68, 173, 230, .18), transparent 60%),
    linear-gradient(180deg, var(--c-ink-3), var(--c-ink));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.level-illu img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 14px;
}
.level-illu img:not([src]),
.level-illu img[src=""] { opacity: 0; }
/* Platzhalter, falls Illustration noch nicht geladen */
.level-illu::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(68, 173, 230, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 173, 230, .08) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  z-index: 0;
}
.level-illu img { position: relative; z-index: 1; }

.level-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.level-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.level-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
}
.level-badge {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-ink);
  border: 1.5px solid var(--c-deep);
  color: var(--c-sky);
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
}
.level:has(input:checked) .level-badge {
  background: var(--c-sky);
  border-color: var(--c-sky);
  color: var(--c-ink);
}
.level-title {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: .1px;
}
.level p {
  margin: 0;
  color: var(--c-muted);
  font-size: 13.5px;
  line-height: 1.55;
  font-weight: 500;
}

.level--baseline {
  border-color: rgba(68, 173, 230, .35);
}

/* Actions */
.actions { display: grid; gap: 14px; }
.actions[hidden] { display: none; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 22px;
  border-radius: var(--radius);
  border: none;
  background: linear-gradient(180deg, var(--c-sky), var(--c-blue));
  color: var(--c-white);
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .6px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t);
  box-shadow: 0 14px 36px rgba(56, 119, 198, .45);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 20px 44px rgba(56, 119, 198, .55); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(68, 173, 230, .5); outline-offset: 3px; }
.btn[disabled] { opacity: .8; cursor: progress; }
.btn.is-loading .btn-label { opacity: .55; }
.btn.is-loading .btn-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: var(--c-white);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.btn-spinner { display: none; }
.btn.is-loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn--ghost {
  background: transparent;
  color: var(--c-sky);
  border: 1.5px solid var(--c-sky);
  box-shadow: none;
}
.btn--ghost:hover {
  background: rgba(68, 173, 230, .1);
  box-shadow: none;
}

.legal {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--c-muted-2);
  line-height: 1.5;
}

.form-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 122, 138, .12);
  border: 1px solid rgba(255, 122, 138, .35);
  color: var(--c-danger);
  font-weight: 600;
  font-size: 14px;
}
.form-error[hidden] { display: none !important; }

/* Admin: Globaler Fehler als Toast oben mittig */
#global-error {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  max-width: min(560px, calc(100vw - 32px));
  background: rgba(40, 16, 22, .96);
  border: 1px solid rgba(255, 122, 138, .55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  backdrop-filter: blur(8px);
  animation: toast-in 160ms ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* Success */
.success { text-align: center; }
.success-badge { display: flex; justify-content: center; margin-bottom: 16px; }
.success h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 900;
  letter-spacing: -.3px;
}
.success-lead { margin: 0 0 22px; color: var(--c-sky); font-weight: 700; font-size: 16px; }
.success-recap {
  display: grid;
  gap: 10px;
  max-width: 380px;
  margin: 0 auto 22px;
  text-align: left;
}
.success-recap .row-recap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--c-line-2);
  border-radius: var(--radius-sm);
}
.success-recap .row-recap span:first-child {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--c-muted-2);
}
.success-recap .row-recap span:last-child {
  font-weight: 700;
  color: var(--c-white);
}
.success-note {
  margin: 0 auto 18px;
  max-width: 420px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 28px 24px 44px;
  text-align: center;
  color: var(--c-muted-2);
  font-size: 12px;
  letter-spacing: .5px;
}
.footer-dot { margin: 0 10px; color: var(--c-deep); }

/* Responsive */
@media (max-width: 640px) {
  .topbar { padding: 16px 20px; }
  .brand-name { display: none; }
  .container { padding: 16px 18px 60px; }
  .hero { margin: 24px 0 28px; }
  .card { padding: 22px; border-radius: 20px; }
  .row { grid-template-columns: 1fr; gap: 18px; }
  .positions { grid-template-columns: repeat(2, 1fr); }
  .levels-wrap { margin: 0 -22px; }
  /* Padding-bottom raus aus .levels → der Abstand zur Scroll-Hint-Zeile wird
     stattdessen als margin-top auf .levels-hint gesetzt. Vorher endete der
     seitliche Edge-Fade unter den Karten, weil .levels durch das Padding
     größer war als der eigentliche Karten-Bereich. */
  .levels { padding: 4px 22px 0; scroll-padding-inline: 22px; }
  .levels-hint { margin-top: 18px; }
  .levels-wrap::before, .levels-wrap::after { width: 22px; bottom: 33px; }
  .level { flex-basis: 260px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0ms !important;
    transition-duration: 0ms !important;
  }
}

/* ===================================================================
   ADMIN DASHBOARD
   =================================================================== */

.login-pane {
  max-width: 460px;
  margin: 0 auto;
}

.btn--small {
  padding: 11px 16px;
  font-size: 13px;
}

/* Topbar-Button (Logout) */
.topbar-btn {
  padding: 8px 16px;
  border: 1px solid var(--c-line-2);
  background: rgba(255, 255, 255, .04);
  color: var(--c-white);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t), border var(--t), color var(--t);
}
.topbar-btn:hover {
  background: rgba(68, 173, 230, .12);
  border-color: rgba(68, 173, 230, .4);
  color: var(--c-sky);
}
.topbar-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(68, 173, 230, .35);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.stat-tile {
  background: linear-gradient(180deg, var(--c-ink-2), var(--c-ink));
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--c-sky);
}
.stat-value {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
}
.stat-tile--main { background: linear-gradient(180deg, rgba(68, 173, 230, .12), rgba(44, 70, 163, .14)); border-color: rgba(68, 173, 230, .35); }
.stat-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-muted);
  margin-top: -6px;
  letter-spacing: .2px;
}

/* Hauptkachel-Breakdown: Im Cup / Offen / Abgelehnt */
.stat-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: -4px;
}
.stat-breakdown-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--c-line-2);
  border-radius: var(--radius-sm);
  transition: transform var(--t-fast);
}
.stat-breakdown-row.is-cup {
  background: linear-gradient(180deg, var(--c-sky), var(--c-blue));
  border-color: var(--c-sky);
  box-shadow: 0 12px 28px rgba(56, 119, 198, .35);
}
.stat-breakdown-num {
  font-size: 20px;
  font-weight: 900;
  min-width: 30px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--c-white);
  letter-spacing: -.3px;
}
.stat-breakdown-row.is-cup .stat-breakdown-num {
  color: var(--c-ink);
}
.stat-breakdown-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
.stat-breakdown-row.is-cup .stat-breakdown-label {
  color: var(--c-ink);
}
.stat-grid { display: grid; gap: 8px; }
.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-muted);
}
.stat-row strong { color: var(--c-white); font-weight: 800; font-variant-numeric: tabular-nums; }

/* Level-Reihe mit Progress-Bar */
.stat-row--bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}
.lvl-bar {
  height: 6px;
  background: rgba(255, 255, 255, .07);
  border-radius: 4px;
  overflow: hidden;
}
.lvl-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-sky), var(--c-blue));
  border-radius: 4px;
  transition: width var(--t);
  min-width: 2px;
}

/* Positionen-Pitch-Viz */
.positions-viz {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 14px;
  align-items: stretch;
}
.positions-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
}
.pos-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pos-name {
  color: var(--c-white);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .4px;
}
.pos-val {
  color: var(--c-muted);
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.pos-pct {
  color: var(--c-muted-2);
  font-size: 11px;
  font-weight: 600;
  margin-left: 2px;
}
.pitch-viz {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
  justify-self: center;
  align-self: center;
  background: var(--c-ink);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

/* View-Tabs */
.view-tabs {
  display: flex;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--c-line-2);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 14px;
  gap: 2px;
  max-width: 100%;
  width: max-content;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.view-tabs::-webkit-scrollbar { display: none; }
.view-tab { flex-shrink: 0; white-space: nowrap; }
.view-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--c-muted);
  font-family: inherit;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--t), color var(--t);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.view-tab:hover { color: var(--c-white); }
.view-tab.is-active {
  background: var(--c-sky);
  color: var(--c-ink);
}
.view-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .14);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
}
.view-tab.is-active .view-tab-count {
  background: rgba(26, 26, 46, .25);
  color: var(--c-ink);
}

/* Toolbar */
.table-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
}
.search-wrap input {
  width: 100%;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--c-line-2);
  border-radius: var(--radius);
  padding: 12px 14px 12px 38px;
  color: var(--c-white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: border var(--t), background var(--t), box-shadow var(--t);
}
.search-wrap input::placeholder { color: var(--c-muted-2); }
.search-wrap input:focus {
  outline: none;
  border-color: var(--c-sky);
  background: rgba(68, 173, 230, .07);
  box-shadow: 0 0 0 4px rgba(68, 173, 230, .18);
}
.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-sky);
  pointer-events: none;
  opacity: .85;
}
.toolbar-actions { display: flex; gap: 10px; align-items: center; }

/* Download-Dropdown */
.export-dropdown { position: relative; }
.export-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.export-toggle-btn svg {
  transition: transform var(--t);
}
.export-toggle-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.export-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  min-width: 160px;
  background: var(--c-ink-2);
  border: 1px solid var(--c-line-2);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: popup-in 120ms ease;
}
.export-menu[hidden] { display: none !important; }
.export-item {
  appearance: none;
  background: transparent;
  border: none;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--c-white);
  font-family: inherit;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background var(--t-fast), color var(--t-fast);
}
.export-item:hover {
  background: rgba(68, 173, 230, .15);
  color: var(--c-sky);
}
.export-item svg {
  flex-shrink: 0;
  opacity: .85;
}

/* Tabelle */
.table-card { padding: 0; overflow: hidden; }
.table-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--c-deep) transparent;
}
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  min-width: 760px;
}
.data-table thead th {
  position: sticky;
  top: 0;
  background: var(--c-ink-2);
  color: var(--c-sky);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--c-line-2);
  z-index: 1;
  white-space: nowrap;
}
.th-sortable { cursor: pointer; user-select: none; transition: color var(--t), background var(--t); }
.th-sortable::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(68, 173, 230, .25);
  transition: border-color var(--t), transform var(--t);
  vertical-align: middle;
}
.th-sortable.is-asc::after { border-top-color: var(--c-sky); transform: rotate(180deg); }
.th-sortable.is-desc::after { border-top-color: var(--c-sky); }
.th-sortable:hover { color: var(--c-white); background: rgba(68, 173, 230, .08); }
.th-num { text-align: right; }
.th-center { text-align: center; }
.th-date { white-space: nowrap; }

.data-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-weight: 500;
  color: var(--c-muted);
  vertical-align: middle;
}
.data-table tbody tr { transition: background var(--t-fast); }
.data-table tbody tr:hover { background: rgba(68, 173, 230, .05); }
.data-table tbody tr:last-child td { border-bottom: none; }

.td-strong { color: var(--c-white); font-weight: 700; }
.td-num { text-align: right; font-variant-numeric: tabular-nums; }
.td-center { text-align: center; }
.td-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.td-date { white-space: nowrap; color: var(--c-muted-2); font-size: 13px; }

.row-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .05);
  color: var(--c-muted-2);
  font-size: 12px;
  font-weight: 700;
}

.phone-link {
  color: var(--c-sky);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--t);
}
.phone-link:hover { color: var(--c-white); }

/* Position-Pill — alle gleich breit, Inhalt zentriert, alle in Blautönen.
   Subtile Stufung von hinten (Tor) nach vorne (Sturm). */
.pos-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  padding: 5px 0;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
}
.pos-tor        { background: var(--c-deep);                color: var(--c-white); border-color: var(--c-deep); }
.pos-abwehr     { background: var(--c-blue);                color: var(--c-white); border-color: var(--c-blue); }
.pos-mittelfeld { background: var(--c-sky);                 color: var(--c-ink);   border-color: var(--c-sky); }
.pos-sturm      { background: rgba(68, 173, 230, .14);      color: var(--c-sky);   border-color: rgba(68, 173, 230, .42); }

/* Level-Badge (kompakt in Tabelle) */
.lvl-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-ink);
  border: 1.5px solid var(--c-deep);
  color: var(--c-sky);
  font-weight: 900;
  font-size: 13px;
  flex-shrink: 0;
}
.lvl-1 { border-color: rgba(68, 173, 230, .35); color: var(--c-sky); }
.lvl-2 { border-color: var(--c-deep); color: var(--c-sky); }
.lvl-3 { background: var(--c-sky); border-color: var(--c-sky); color: var(--c-ink); }
.lvl-4 { background: var(--c-blue); border-color: var(--c-blue); color: var(--c-white); }
.lvl-5 { background: var(--c-deep); border-color: var(--c-deep); color: var(--c-white); }

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--c-muted-2);
  font-size: 14px;
  margin: 0;
}

/* Row-Aktionen / 3-Dots-Menü */
.th-actions { width: 50px; }
.td-actions {
  position: relative;
  width: 50px;
  padding: 8px 12px !important;
  text-align: right;
}
.row-action-btn {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: var(--c-muted-2);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t), color var(--t), border var(--t);
}
.row-action-btn:hover,
.row-action-btn[aria-expanded="true"] {
  background: rgba(68, 173, 230, .12);
  color: var(--c-sky);
  border-color: rgba(68, 173, 230, .35);
}
.row-action-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(68, 173, 230, .35);
}

/* Globales Popup für Row-Aktionen — sitzt am body, fixed positioniert */
.action-popup {
  position: fixed;
  z-index: 1000;
  min-width: 240px;
  background: var(--c-ink-2);
  border: 1px solid var(--c-line-2);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: popup-in 120ms ease;
}
@keyframes popup-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* hidden-Attribut sicher respektieren (overrides display: flex) */
.action-popup[hidden] { display: none !important; }
.menu-item {
  appearance: none;
  background: transparent;
  border: none;
  font-family: inherit;
  text-align: left;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--c-white);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .1px;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.menu-item:hover { background: rgba(68, 173, 230, .15); color: var(--c-sky); }
.menu-item-sub {
  color: var(--c-muted-2);
  font-weight: 600;
  font-size: 12px;
  margin-left: 4px;
  transition: color var(--t-fast);
}
.menu-item:hover .menu-item-sub { color: inherit; opacity: .8; }
.menu-divider {
  height: 1px;
  background: var(--c-line);
  margin: 4px 6px;
}
.menu-item--accept { color: #94e7a8; }
.menu-item--accept:hover { background: rgba(120, 220, 150, .15); color: #94e7a8; }
.menu-item--reject:hover { background: rgba(255, 196, 0, .15); color: #ffd55e; }
.menu-item--delete { color: #ffa5b0; }
.menu-item--delete:hover { background: rgba(255, 122, 138, .15); color: #ffa5b0; }

/* Abgelehnte Zeile */
.row--rejected td:not(.td-actions) { opacity: .55; }
.row--rejected .td-strong { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .35); }
.row--rejected .pos-pill,
.row--rejected .lvl-badge { filter: saturate(.5); }

/* Admin responsive */
@media (max-width: 800px) {
  /* Stats: horizontaler Snap-Scroll mit Peek auf die nächste Karte */
  .stats {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 2px 6px;
    margin-bottom: 18px;
  }
  .stats::-webkit-scrollbar { display: none; }
  .stat-tile {
    flex: 0 0 88%;
    scroll-snap-align: start;
    min-width: 0;
  }
  .stat-value { font-size: 38px; }

  .table-toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-actions { justify-content: space-between; flex-wrap: wrap; }
}

/* Print-Header (nur im Print sichtbar) */
.print-header { display: none; }

/* ===================================================================
   PRINT STYLES (Speichern als PDF aus Druckdialog)
   =================================================================== */
@media print {
  @page { size: A4 portrait; margin: 14mm 12mm; }

  body, html {
    background: #fff !important;
    color: #111 !important;
  }
  body::before, .pitch-bg { display: none !important; }
  .topbar, .view-tabs, .table-toolbar, .stats, .hero, .footer,
  .th-actions, .td-actions, .action-popup, #global-error { display: none !important; }

  main.container { max-width: none !important; padding: 0 !important; margin: 0 !important; }
  .table-card { background: #fff !important; border: none !important; box-shadow: none !important; padding: 0 !important; }
  .table-wrap { overflow: visible !important; }

  .print-header {
    display: block;
    padding: 0 0 14px;
    margin-bottom: 14px;
    border-bottom: 2px solid #111;
  }
  .print-title {
    font-weight: 900;
    font-size: 22px;
    color: #111;
    letter-spacing: -.3px;
    margin-bottom: 4px;
  }
  .print-meta {
    font-size: 12px;
    color: #444;
    font-weight: 500;
  }
  .print-meta strong { color: #111; }

  .data-table {
    width: 100%;
    min-width: 0 !important;
    border-collapse: collapse !important;
    font-size: 11px !important;
  }
  .data-table thead th {
    background: #f0f0f0 !important;
    color: #111 !important;
    border-bottom: 1.5px solid #111 !important;
    padding: 8px 10px !important;
    text-align: left !important;
    font-size: 10px !important;
    letter-spacing: .5px !important;
  }
  .data-table thead th::after { display: none !important; }
  .data-table tbody td {
    color: #111 !important;
    padding: 7px 10px !important;
    border-bottom: 1px solid #ccc !important;
    background: #fff !important;
  }
  .data-table tbody tr { page-break-inside: avoid; }

  /* Strikethrough / Opazität nicht im Print — alle Daten lesbar */
  .row--rejected td { opacity: 1 !important; }
  .row--rejected .td-strong { text-decoration: none !important; }

  /* Pills + Badges: ohne Farbflächen, nur Text damit's beim Drucken nicht klotzt */
  .pos-pill, .lvl-badge {
    background: transparent !important;
    border: 1px solid #111 !important;
    color: #111 !important;
    filter: none !important;
    padding: 2px 8px !important;
    font-size: 10px !important;
    width: auto !important;
    height: auto !important;
    border-radius: 4px !important;
    box-shadow: none !important;
  }
  .phone-link { color: #111 !important; text-decoration: none !important; }
}

/* ===================================================================
   HOMEPAGE (index.html)
   =================================================================== */

body.home { background: var(--c-ink); }

.home-main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  /* Kein padding-bottom: damit die letzte Section (Sponsoren) den Footer
     direkt berührt. Bottom-Spacing wird vom Footer übernommen. */
  padding: 0 24px;
}

.eyebrow--lg {
  font-size: 12px;
  letter-spacing: 2.8px;
}

/* ---- HERO ---- */
.home-hero {
  /* 126px Top-Padding (Desktop) — gibt dem Hero unter der fixed-overlay
     Nav genug Atmen. Mobile-Override im @media (max-width: 640px). */
  padding: 126px 0 64px;
  text-align: center;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.home-hero .hero-title { margin-left: auto; margin-right: auto; }
.home-hero .hero-ctas { justify-content: center; }
.hero-title {
  margin: 18px 0 26px;
  /* Fluid: skaliert mit dem Viewport statt in Stufen. Die H1 ist explizit
     zweizeilig gesetzt ("Baierbrunner" / "Bolzen 2026."), daher ist die
     längste Zeile bekannt und die Schrift kann größer laufen. */
  font-size: clamp(42px, 8.5vw, 92px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -1.5px;
  color: var(--c-white);
}
/* Nur direkte Kinder-Spans als Block (jede H1-Zeile ist ein span).
   Verschachtelte Spans bleiben inline (z.B. .accent als Inline-Akzent). */
.hero-title > span { display: block; }
.hero-title .accent { color: var(--c-sky); }
.hero-meta {
  margin: 0 0 30px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .4px;
  color: var(--c-muted);
}
/* Ruhige Subline unter der Homepage-H1 — normale Textrolle statt
   Meta-Zeile: normalgewichtig, begrenzte Zeilenbreite, kein Tracking. */
.hero-sub {
  margin: 0 auto 36px;
  max-width: 46ch;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--c-muted);
  text-wrap: balance;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  position: relative;
  z-index: 5;
}

/* CTA Buttons (Hero) */
.btn--lg {
  padding: 18px 28px;
  font-size: 14px;
  letter-spacing: .8px;
}
.btn--primary {
  background: linear-gradient(180deg, var(--c-sky), var(--c-blue));
  color: var(--c-white);
  border: none;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(56, 119, 198, .45);
  transition: transform var(--t-fast), box-shadow var(--t);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 20px 44px rgba(56, 119, 198, .55); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost-lg {
  padding: 18px 26px;
  font-size: 14px;
  letter-spacing: .8px;
  background: rgba(255, 255, 255, .04);
  color: var(--c-white);
  border: 1.5px solid var(--c-line-2);
  font-family: inherit;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: border var(--t), background var(--t), color var(--t);
}
.btn--ghost-lg:hover {
  background: rgba(68, 173, 230, .1);
  border-color: var(--c-sky);
  color: var(--c-sky);
}

/* Sei-dabei-Dropdown via <details> */
.cta-dropdown { position: relative; }
.cta-dropdown summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.cta-dropdown summary::-webkit-details-marker { display: none; }
.cta-dropdown[open] summary { box-shadow: 0 20px 44px rgba(56, 119, 198, .55); }
.cta-dropdown .chevron { transition: transform var(--t); }
.cta-dropdown[open] .chevron { transform: rotate(180deg); }

.cta-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 50;
  min-width: 340px;
  background: var(--c-ink-2);
  border: 1px solid var(--c-line-2);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, .55);
  /* Linksbündig — unabhängig davon, ob die Section text-align:center hat */
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: popup-in 140ms ease;
}
.cta-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--c-white);
  transition: background var(--t-fast);
}
.cta-option:hover { background: rgba(68, 173, 230, .12); }
.cta-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(68, 173, 230, .14);
  border: 1px solid rgba(68, 173, 230, .35);
  color: var(--c-sky);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cta-option-text { flex: 1; }
.cta-option-text strong {
  display: block;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .3px;
  margin-bottom: 2px;
}
.cta-option-text span {
  display: block;
  font-size: 13px;
  color: var(--c-muted);
  font-weight: 500;
}
.cta-option-arrow {
  color: var(--c-muted-2);
  flex-shrink: 0;
  transition: transform var(--t-fast), color var(--t-fast);
}
.cta-option:hover .cta-option-arrow {
  color: var(--c-sky);
  transform: translateX(3px);
}

/* ---- Sections common ---- */
.home-section {
  padding: 70px 0;
  border-top: 1px solid var(--c-line);
}
.section-title {
  margin: 16px 0 14px;
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.6px;
  max-width: 880px;
}
.section-title .accent { color: var(--c-sky); }
/* Wirkung-Section: etwas mehr Luft zwischen Titel und Carousel */
.section-impact .section-title { margin-bottom: 18px; }
.section-lead {
  margin: 0 0 36px;
  max-width: 720px;
  color: var(--c-muted);
  font-size: 16.5px;
  line-height: 1.6;
  font-weight: 500;
}
.section-lead strong { color: var(--c-white); font-weight: 700; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--c-sky);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .3px;
  font-size: 14px;
  transition: gap var(--t);
}
.link-arrow:hover { gap: 12px; }

/* ---- KURZSTORY: Tageslauf-Liste ---- */
.day-line {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.day-line li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 18px 22px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--c-line-2);
  border-radius: var(--radius);
}
.day-line-time {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--c-sky);
}
.day-line-text {
  font-size: 15px;
  color: var(--c-muted);
  line-height: 1.55;
  font-weight: 500;
}
.day-line-text strong { color: var(--c-white); font-weight: 800; margin-right: 4px; }

/* ---- WIRKUNG: Big Numbers + List ---- */
.impact-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 32px;
}
.impact-stat {
  padding: 26px 24px;
  background: linear-gradient(180deg, rgba(68, 173, 230, .12), rgba(44, 70, 163, .14));
  border: 1px solid rgba(68, 173, 230, .35);
  border-radius: var(--radius);
}
.impact-stat-value {
  font-size: clamp(34px, 4.2vw, 48px);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--c-sky);
  line-height: 1;
  margin-bottom: 10px;
}
.impact-stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-muted);
  letter-spacing: .2px;
  line-height: 1.4;
}
.impact-stat-sub {
  display: block;
  font-size: 11px;
  color: var(--c-muted-2);
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: .2px;
}

.impact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.impact-list li {
  padding: 14px 18px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--c-muted);
  line-height: 1.5;
}
.impact-list strong { color: var(--c-white); font-weight: 800; margin-right: 6px; }

/* ---- DAS TURNIER: Format-Grid ---- */
.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.format-card {
  padding: 28px 26px;
  background: linear-gradient(180deg, var(--c-ink-2), var(--c-ink));
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border var(--t), transform var(--t-fast);
}
.format-card:hover {
  border-color: rgba(68, 173, 230, .4);
  transform: translateY(-2px);
}
.format-num {
  font-size: 11px;
  letter-spacing: 2.4px;
  font-weight: 800;
  color: var(--c-sky);
}
.format-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.2px;
  color: var(--c-white);
}
.format-card p {
  margin: 0;
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.55;
  font-weight: 500;
}

/* ---- SPONSOREN 2026 ----
   Box-loses Layout: Hauptsponsor oben breit, zwei weitere Partner darunter
   nebeneinander. Logos stehen frei auf einem dezenten Sky-Glow ohne Border
   oder Hintergrundfläche, darunter Rolle (klein, Sky-Blau, all-caps) und
   Markenname (weiß, fett). */
.sponsors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 32px;
  margin: 8px auto 50px;
  max-width: 860px;
  align-items: start;
  justify-items: center;
}
.sponsor--lead {
  grid-column: 1 / -1;        /* Hauptsponsor füllt Row 1 */
}
/* Variante mit 3 Partnern unter dem Hauptsponsor */
.sponsors-grid--four {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1080px;
}
/* Monochrome (dunkle) Logos im Grid auf Sky-Blau mappen — gleicher
   SVG-Filter wie im Marquee (#dark-to-sky, siehe SvgDefs.astro) */
.sponsor-logo--tint img {
  filter: url(#dark-to-sky);
}
.sponsor {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 360px;
}
.sponsor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 130px;
  margin-bottom: 16px;
  padding: 8px 20px;
  /* Dezenter Sky-Glow als "Bühne" für das Logo — keine Box, keine Border */
  background: radial-gradient(ellipse at center, rgba(68, 173, 230, .08), transparent 70%);
}
.sponsor--lead .sponsor-logo {
  height: 160px;              /* Hauptsponsor optisch etwas größer */
}
.sponsor-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.sponsor-role {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--c-sky);
  margin-bottom: 4px;
}
.sponsor-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.1px;
  color: var(--c-white);
  line-height: 1.3;
}
.sponsor--lead .sponsor-name {
  font-size: 18px;
}

@media (max-width: 640px) {
  .sponsors-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }
  .sponsor--lead { grid-column: auto; }
  .sponsor-logo { height: 110px; }
  .sponsor--lead .sponsor-logo { height: 130px; }
}

.sponsor-cta {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(180deg, rgba(68, 173, 230, .08), rgba(44, 70, 163, .12));
  border: 1px solid rgba(68, 173, 230, .3);
  border-radius: var(--radius-lg);
}
.sponsor-cta h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 900;
  letter-spacing: -.4px;
  color: var(--c-white);
}
.sponsor-cta p {
  margin: 0 0 22px;
  max-width: 520px;
  margin-inline: auto;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.55;
}
.sponsor-cta .btn--primary {
  padding: 14px 22px;
  font-size: 13px;
}

/* ---- HOMEPAGE FOOTER ----
   Footer berührt die Sponsoren-Section direkt — die border-top des
   Footers ist die einzige Trennlinie. Struktur vertikal:
   Brand → Action-Buttons → Link-Spalten → Bottom-Zeile.
   padding-top moderat (sonst entsteht ein neuer Gap unter der Linie). */
.home-footer {
  position: relative;
  z-index: 1;
  padding: 36px 24px 30px;
  border-top: 1px solid var(--c-line);
  background: rgba(26, 26, 46, .5);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  margin-bottom: 36px;   /* Atemraum zum Spalten-Grid darunter */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--c-line);
}
.footer-name {
  font-size: 18px;
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: -.2px;
  margin-bottom: 2px;
}
.footer-tag {
  font-size: 13px;
  color: var(--c-muted);
  font-weight: 500;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-label {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--c-sky);
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 14px;
  color: var(--c-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--t);
}
.footer-col a:hover { color: var(--c-sky); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--c-muted-2);
  letter-spacing: .3px;
  text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .home-main { padding: 0 20px; }
  .home-hero { padding: 78px 0 48px; }
  .impact-stats { grid-template-columns: 1fr; gap: 12px; }
  .format-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .day-line li { grid-template-columns: 90px 1fr; gap: 14px; padding: 14px 16px; }
  .day-line-time { font-size: 11px; letter-spacing: 1.4px; }
  .home-section { padding: 50px 0; }
  .format-grid { grid-template-columns: 1fr; }
  .cta-menu { min-width: 280px; left: 0; right: 0; }
  .hero-ctas { width: 100%; }
  /* Auf Mobile: alle direkten Kinder von .hero-ctas füllen volle Breite
     (standalone .btn-Anker UND .cta-dropdown). Summary innerhalb des
     Dropdowns ebenso. */
  .cta-dropdown, .btn--ghost-lg,
  .hero-ctas > .btn { width: 100%; }
  .cta-dropdown summary { width: 100%; justify-content: center; }
  .btn--ghost-lg, .hero-ctas > .btn { justify-content: center; }

  /* Hero-Spacing Mobile:
     - 120px Top → klare Atemzone unter der Nav
     - Eyebrow ↔ Title: 10px
     - Title   ↔ Sub:   16px
     - Sub     ↔ CTAs:  52px (großer Schnitt vor den CTAs) */
  .home-hero { padding: 120px 0 56px; }
  .home-hero .eyebrow { margin-bottom: 0; letter-spacing: 2px; }
  /* Nur das Datum als Topper — Location fällt auf Mobile weg */
  .home-hero .eyebrow-loc { display: none; }
  /* Fluid: "Baierbrunner" (längste Zeile, ~6.9em breit) füllt die
     Content-Breite nahezu randlos — 12.6vw ≈ (100vw − 40px Padding) / 6.9 */
  .home-hero .hero-title { margin: 10px 0 16px; font-size: clamp(30px, 12.6vw, 56px); letter-spacing: -1px; }
  .home-hero .hero-meta { margin: 0 0 60px; }
  /* Subline nutzt die volle Content-Breite: balance würde die Zeilen
     künstlich verkürzen und wirkt wie seitliche Margin */
  .home-hero .hero-sub { margin: 0 auto 52px; font-size: 17px; max-width: none; text-wrap: pretty; }
}

/* Spenden-Seite: Bankkarte */
.bank-card {
  background: linear-gradient(180deg, var(--c-ink-2), var(--c-ink));
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: grid;
  gap: 14px;
  max-width: 620px;
}
.bank-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-line);
}
.bank-row:last-child { border-bottom: none; padding-bottom: 0; }
.bank-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--c-sky);
  align-self: center;
}
.bank-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-white);
  word-break: break-word;
}
.bank-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .5px;
}

.text-link {
  color: var(--c-sky);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--t);
}
.text-link:hover { color: var(--c-white); }

@media (max-width: 640px) {
  .bank-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ===================================================================
   NAVBAR (überall — Logo links, Links inline / Hamburger mobile)
   =================================================================== */
.nav {
  position: relative;
  z-index: 200;
  background: rgba(26, 26, 46, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line);
}
/* Sticky-Variante: Nav schwebt als overlay fest über dem Content — kein
   Push-Down im Layout-Flow. Content scrollt UNTER der Nav (mit backdrop-
   blur). Damit der erste Hero-Inhalt nicht unter der Nav klebt, hat
   .home-hero unten extra Top-Padding (90px statt 56px). */
.nav--sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand img { display: block; }

.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
  margin-left: auto;
}
.nav-links a {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--c-muted);
  text-decoration: none;
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--c-sky);
  background: rgba(68, 173, 230, .1);
}
.nav-links a.is-current {
  color: var(--c-white);
  background: rgba(68, 173, 230, .12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-actions:empty { display: none; }

.nav-burger {
  display: none;
  margin-left: auto;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--c-line-2);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  cursor: pointer;
  transition: border-color var(--t), background var(--t), color var(--t);
  padding: 0;
}
.nav-burger:hover {
  border-color: rgba(68, 173, 230, .4);
  background: rgba(68, 173, 230, .1);
  color: var(--c-sky);
}
.nav-burger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(68, 173, 230, .35);
}

/* Hamburger → X Animation: drei Bars als spans, die Top + Bottom rotieren
   in ein X, der mittlere Bar verschwindet. Alles via Transitions, reversibel. */
.nav-burger-bars {
  position: relative;
  width: 20px;
  height: 14px;
  display: inline-block;
}
.nav-burger-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .18s ease;
  transform-origin: center;
}
.nav-burger-bar:nth-child(1) { top: 0; }
.nav-burger-bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-burger-bar:nth-child(3) { bottom: 0; }
.nav-burger[aria-expanded="true"] .nav-burger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] .nav-burger-bar:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
}
.nav-burger[aria-expanded="true"] .nav-burger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Drawer: bleibt im DOM, wird via opacity + translateY + visibility ein-
   und ausgeblendet (statt hidden-Attribute). Slide-in von oben.
   Absolut positioniert unter der nav-inner, damit der Drawer keinen Platz
   im Layout-Flow einnimmt, wenn er geschlossen ist. */
.nav-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 14px 16px;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  gap: 2px;
  background: rgba(26, 26, 46, .98);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  /* Closed-State */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  pointer-events: none;
  transition:
    opacity .28s ease,
    transform .32s cubic-bezier(.4,0,.2,1),
    visibility 0s linear .32s;
}
.nav-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition:
    opacity .25s ease,
    transform .32s cubic-bezier(.4,0,.2,1),
    visibility 0s linear 0s;
}

/* Stagger der Drawer-Items: kleiner Y-Offset + Opazität, mit Delay pro
   Index (--i wird im Template gesetzt). Beim Schließen läuft das in
   Reverse, weil die Delays auch beim Exit angewendet werden. */
.nav-drawer > * {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .26s cubic-bezier(.4,0,.2,1);
  /* Exit: bottom-first (höhere --i hat 0 Delay) */
  transition-delay: calc((6 - var(--i, 0)) * 30ms);
}
.nav-drawer.is-open > * {
  opacity: 1;
  transform: translateY(0);
  /* Enter: top-first (i=0 hat 0 Delay) */
  transition-delay: calc(var(--i, 0) * 45ms);
}

.nav-drawer a:not(.btn), .nav-drawer button:not(.btn) {
  appearance: none;
  background: transparent;
  border: none;
  text-align: left;
  padding: 13px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  color: var(--c-white);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t), color var(--t),
              opacity .22s ease, transform .26s cubic-bezier(.4,0,.2,1);
}
.nav-drawer a:not(.btn):hover, .nav-drawer button:not(.btn):hover {
  background: rgba(68, 173, 230, .1);
  color: var(--c-sky);
}

/* Sei-dabei-CTA im Drawer: erbt vom .btn--primary die Sky-Blau-Füllung,
   der generic .nav-drawer-Selektor überschreibt das NICHT mehr (siehe
   :not(.btn) oben). Hover-Bg ebenfalls nicht überschreiben. */
.nav-drawer-ctas .nav-drawer-sei-dabei-btn:hover {
  background: var(--c-sky);   /* re-assert btn--primary hover (keine sky-10%) */
  color: var(--c-ink);
}

/* Logout-Variante (Admin) */
.nav-logout {
  appearance: none;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--c-line-2);
  color: var(--c-white);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--t), border var(--t), color var(--t);
}
.nav-logout:hover {
  background: rgba(68, 173, 230, .12);
  border-color: rgba(68, 173, 230, .4);
  color: var(--c-sky);
}

@media (max-width: 880px) {
  .nav-links, .nav-actions:not(.nav-actions--mobile) { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-inner { padding: 10px 18px; gap: 12px; }
  /* Admin-Nav: Logout bleibt auf Mobile sichtbar, kein Burger */
  .nav--admin .nav-actions { display: flex; }
}

/* Admin-Page: Top-Padding fürs Main, damit Eyebrow nicht hinter fixed Nav klebt */
.nav--admin + main.container { padding-top: 100px; }

/* ===================================================================
   HOMEPAGE: "Die Idee" — Diptychon mit Riss (Bolzen × Cathy Hammer)
   =================================================================== */

/* Section-Lead in der Idee bekommt etwas mehr Abstand zur Headline und
   wird nicht zu breit, damit der Text als zentrierter Anker wirkt. */
.section-idea .section-title {
  margin: 16px auto 14px;   /* zentrierter Block (vorher nur left-bündig im
                                text-align:center Container) */
}
.section-idea .section-lead {
  max-width: 660px;
  margin: 0 auto 36px;
}

/* Das Diptychon selbst — Bild + Captions als figure. Bild ist bereits
   ein einziges Composite (zwei Fotos + Riss in einem PNG/WEBP), wir
   stellen also nur den Rahmen und die Untertitel. */
.idea-diptych {
  margin: 0 auto 28px;
  max-width: 980px;
}
.idea-diptych picture,
.idea-diptych img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  /* Sanfter Outer-Glow in Sky-Blau — gibt dem Bild Präsenz ohne Border */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .06) inset,
    0 14px 40px -18px rgba(68, 173, 230, .35),
    0 24px 60px -30px rgba(0, 0, 0, .55);
}

/* Captions sitzen direkt unter dem Bild, links + rechts gespiegelt zur
   Bild-Aufteilung. Icon ist ein dezenter Geo-Pin in Sky-Blau. */
.idea-captions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin: 14px 6px 0;
}
.idea-cap {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--c-white);
}
.idea-cap--right { text-align: right; flex-direction: row-reverse; }
.idea-cap svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--c-sky);
}
.idea-cap-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.idea-cap-text strong {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  color: var(--c-white);
}
.idea-cap-text > span {
  font-size: 13px;
  color: rgba(255, 255, 255, .65);
  margin-top: 1px;
}

/* Link-Arrow zentrieren (statt left wie in anderen Sections), damit er
   als sauberer Section-Abschluss wirkt. */
.section-idea .link-arrow {
  display: inline-flex;
  margin: 18px auto 0;
}
.section-idea {
  text-align: center;
}
/* Captions und Diptychon dürfen weiterhin als Block-Elemente links/rechts
   ausgerichtet sein — wir resetten das nur für die Untertitel. */
.section-idea .idea-captions { text-align: left; }

/* Mobile: Captions stacken nicht, sondern bleiben gespiegelt — auf sehr
   schmalen Screens schrumpfen sie aber etwas. */
@media (max-width: 640px) {
  .idea-diptych picture,
  .idea-diptych img { border-radius: 10px; }
  .idea-captions {
    margin: 12px 2px 0;
    gap: 12px;
  }
  .idea-cap-text strong { font-size: 13px; }
  .idea-cap-text > span { font-size: 12px; }
  .idea-cap svg { width: 12px; height: 12px; margin-top: 2px; }
}

/* ===================================================================
   HOMEPAGE: Features-Grid + dunklere Section-Bg (Wirkung & Sponsoren)
   =================================================================== */

/* Turnier-Section ist seit dem Reorder zentriert wie Idee + Wirkung —
   Eyebrow, Titel und Link-Arrow sitzen mittig, das Grid darunter
   verteilt seine Karten symmetrisch im Container. */
.section-features { text-align: center; }
.section-features .section-title {
  margin-left: auto;
  margin-right: auto;
}

/* Features-Grid (Story-Section unterhalb der Day-Line) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: border var(--t), background var(--t);
}
.feature:hover {
  border-color: rgba(68, 173, 230, .35);
  background: rgba(68, 173, 230, .05);
}
.feature-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: rgba(68, 173, 230, .14);
  border: 1px solid rgba(68, 173, 230, .4);
  border-radius: 50%;
  color: var(--c-sky);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feature-text { padding-top: 4px; }
.feature-text strong {
  display: block;
  font-weight: 800;
  font-size: 15px;
  color: var(--c-white);
  margin-bottom: 3px;
  letter-spacing: -.1px;
}
.feature-text span {
  display: block;
  font-size: 13.5px;
  color: var(--c-muted);
  line-height: 1.5;
  font-weight: 500;
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* Dunklere transparent-Bg für ausgewählte Sections — visuell etwas abgehoben.
   Negative Margin + matching Padding bricht aus dem .home-main horizontalen
   Padding aus, sodass die Bg-Band bis an die Container-Kanten reicht.
   border-bottom liegt auf demselben Box-Edge wie der Bg, läuft also
   automatisch mit von ganz links nach ganz rechts (innerhalb von home-main). */
/* Sponsoren-Section: Eyebrow + Titel + Lead zentriert auf allen
   Viewports. Padding-bottom bleibt am Default der .home-section,
   damit der "Werde auch Partner"-Block nicht direkt am Trenner klebt. */
.section-sponsors { text-align: center; }
.section-sponsors .section-title,
.section-sponsors .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.section-impact,
.section-sponsors {
  background: rgba(0, 0, 0, .38);
  border-bottom: 1px solid var(--c-line);

  /* Full-Bleed: Band-Background reicht bis an die Viewport-Kanten,
     auch wenn home-main bei max-width 1100px deckelt.
     Formel:
       break-out = max(0, (vw - 1100px) / 2)     ← Abstand home-main → Viewport
       margin-left  = -container-padding - break-out
       padding-left = container-padding + break-out
     Auf <= 1100px viewport ist break-out = 0 → identisch zu vorher (nur Container-Edge).
     Auf > 1100px wächst break-out mit der Viewport-Breite mit. */
  margin-left:  calc(-24px - max(0px, (100vw - 1100px) / 2));
  margin-right: calc(-24px - max(0px, (100vw - 1100px) / 2));
  padding-left:  calc( 24px + max(0px, (100vw - 1100px) / 2));
  padding-right: calc( 24px + max(0px, (100vw - 1100px) / 2));
}
/* Section direkt nach einem dunklen Band: keinen zweiten Strich von oben
   einbringen — die border-bottom des Bands dient als Trenner. */
.section-impact + .home-section,
.section-sponsors + .home-section,
.sponsor-marquee + .home-section {
  border-top: 0;
}

/* Footer: leicht dunkler + Trennlinie zur Sponsoren-Section */
.home-footer {
  background: rgba(0, 0, 0, .3);
}

/* Mobile: home-main hat 20px Side-Padding, Band-Margins müssen angeglichen werden.
   Auf diesen Viewports ist break-out eh 0, daher reichen die simplen Werte. */
@media (max-width: 900px) {
  .section-impact,
  .section-sponsors {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Mobile-Features: 2 Spalten × 3 Reihen, Icon oben, Titel + kurze Subline */
@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 18px 14px;
  }
  .feature-text { padding-top: 0; }
  .feature-text strong {
    font-size: 13.5px;
    line-height: 1.25;
    margin-bottom: 2px;
  }
  .feature-desc {
    font-size: 10.5px;
    color: var(--c-muted-2);
    font-weight: 600;
    letter-spacing: .2px;
  }
}

/* ===================================================================
   WIRKUNG: Carousel + Pills + Achievements
   =================================================================== */

/* Carousel-Container */
.impact-carousel {
  position: relative;
  margin-bottom: 18px;
}
.impact-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* WICHTIG: kein CSS scroll-behavior:smooth — sonst animiert iOS Safari
     den Loop-Teleport sichtbar (siehe turnier-track). */
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  gap: 16px;
  cursor: grab;
}
.impact-track::-webkit-scrollbar { display: none; }

/* Slide-Karte: Sky-Blue Tint, dezenter Border, große Hero-Zahl */
.impact-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  padding: 44px 36px;
  background: linear-gradient(180deg, rgba(68, 173, 230, .14), rgba(44, 70, 163, .18));
  border: 1px solid rgba(68, 173, 230, .4);
  border-radius: var(--radius-lg);
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 18px 50px rgba(44, 70, 163, .15);
}
.impact-slide .impact-stat-value {
  font-size: clamp(54px, 9vw, 96px);
  margin-bottom: 14px;
  letter-spacing: -1.8px;
}
.impact-slide .impact-stat-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-muted);
  letter-spacing: .3px;
  line-height: 1.4;
}

/* Pills */
.impact-pills {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
}
/* Minimalistisch: Inaktive sind kleine Punkte, aktive eine kurze Pille
   die sich von links nach rechts auflädt. */
.impact-pill {
  appearance: none;
  background: rgba(255, 255, 255, .28);
  border: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: background var(--t-fast), width var(--t), border-radius var(--t), height var(--t);
}
.impact-pill:hover { background: rgba(255, 255, 255, .45); }
.impact-pill:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(68, 173, 230, .4);
}
.impact-pill.is-active {
  width: 22px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .22);
}
.impact-pill-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--c-sky);
  border-radius: inherit;
  pointer-events: none;
}

/* Stat-Value-Akzent: weiße Zeichen innerhalb der ansonsten Sky-Blauen Zahl
   (Euro, Pfeile, Plus) — bringen Kontrast ohne die Brand-Farbe zu brechen */
.impact-stat-value .sv-white { color: var(--c-white); }


/* ===================================================================
   TURNIER: Horizontales Snap-Karussell mit Illustrations-Karten
   Pattern parallel zu .impact-carousel — Pills (.turnier-pill) teilen
   sich Styling-DNA mit .impact-pill (per gemeinsamer Klasse .dot-pill).
   =================================================================== */

.turnier-carousel {
  position: relative;
  margin-top: 40px;
  margin-bottom: 22px;
}
.turnier-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* WICHTIG: kein CSS scroll-behavior: smooth — sonst animiert
     iOS Safari unseren stillen Loop-Teleport sichtbar. Programmatische
     Smooth-Scrolls (Auto-Advance, Pill-Click) laufen via
     scrollTo({behavior: 'smooth'}) und ignorieren das CSS. */
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  gap: 16px;
  padding: 6px 2px;
  cursor: grab;
}
.turnier-track::-webkit-scrollbar { display: none; }

/* Karte: zwei-zonig aufgebaut wie die Level-Karten auf /anmeldung —
   oben .turnier-card-illu mit Grid+Gradient-Hintergrund für die
   Illustration, unten .turnier-card-body mit statischem Hintergrund
   für Titel + Beschreibung.
   Auf Desktop sind ~3 Karten sichtbar, auf Mobile ~1 + Peek. */
.turnier-card {
  flex: 0 0 280px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  position: relative;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--c-line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(44, 70, 163, .12);
  transition: border var(--t), background var(--t), transform var(--t-fast);
}
.turnier-card:hover {
  border-color: rgba(68, 173, 230, .5);
  background: rgba(68, 173, 230, .05);
  transform: translateY(-2px);
}

/* Illu-Zone: identisches Hintergrund-Rezept wie .level-illu —
   Radial-Sky-Glow oben + Vertical-Gradient ink-3→ink + 24px Grid-Overlay */
.turnier-card-illu {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(68, 173, 230, .18), transparent 60%),
    linear-gradient(180deg, var(--c-ink-3), var(--c-ink));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.turnier-card-illu::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(68, 173, 230, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 173, 230, .08) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  pointer-events: none;
  z-index: 0;
}
.turnier-card-img {
  position: relative;
  z-index: 1;
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(68, 173, 230, .25));
}

/* Body-Zone: statischer Karten-Hintergrund (erbt vom .turnier-card),
   Padding + zentrierter Text. */
.turnier-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  flex: 1;
}
.turnier-card-title {
  display: block;
  font-weight: 800;
  font-size: 17px;
  color: var(--c-white);
  letter-spacing: -.2px;
}
.turnier-card-desc {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-muted);
  line-height: 1.55;
}

/* Pills — selbes Design wie .impact-pill (Klasse dupliziert statt Selector-
   Pyramide; Spec sagt: pragmatisch, kein über-DRY). */
.turnier-pills {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
}
.turnier-pill {
  appearance: none;
  background: rgba(255, 255, 255, .28);
  border: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: background var(--t-fast), width var(--t), border-radius var(--t), height var(--t);
}
.turnier-pill:hover { background: rgba(255, 255, 255, .45); }
.turnier-pill:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(68, 173, 230, .4);
}
.turnier-pill.is-active {
  width: 22px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .22);
}
.turnier-pill-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--c-sky);
  border-radius: inherit;
  pointer-events: none;
}

/* Mobile: Karten füllen den Viewport mit Peek vom nächsten */
@media (max-width: 640px) {
  .turnier-track { gap: 12px; }
  .turnier-card { flex: 0 0 78%; }
  .turnier-card-body { padding: 16px 18px 20px; }
}


/* ===================================================================
   TURNIER: Subsection-Titel + Anreise-Karte + Anreise-Infos
   Subsection-Title ist die kleinere Variante des section-title
   für Unterabschnitte innerhalb einer Section.
   =================================================================== */
.subsection-title {
  margin: 56px 0 22px;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: -.3px;
  text-align: center;
}

/* Google-Maps-Embed: gerahmt, abgerundet, im Brand-Look */
.map-embed {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  margin: 0 auto 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-line-2);
  box-shadow: 0 18px 50px rgba(44, 70, 163, .15);
  background: var(--c-ink-2);  /* Fallback, falls iframe blockiert wird */
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Section-Closing Link-Arrow zentriert (analog zu Wirkung) */
.section-features .link-arrow {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

/* "Sei dabei"-CTA als Section-Schluss — zentriert den Dropdown horizontal */
.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* Anreise-Liste: stacked items mit dezenter Trennlinie zwischen den
   Items, keine Boxen, keine Hintergrundfläche. */
.arrival-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 560px;
  text-align: left;
}
.arrival-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 4px;
  border-top: 1px solid var(--c-line);
}
.arrival-item:first-child { border-top: 0; padding-top: 6px; }
.arrival-item:last-child  { padding-bottom: 6px; }
.arrival-icon {
  flex-shrink: 0;
  color: var(--c-sky);
  margin-top: 1px;
  display: inline-flex;
}
.arrival-text strong {
  display: block;
  color: var(--c-white);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 3px;
  letter-spacing: -.1px;
}
.arrival-text > span {
  display: block;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}
.arrival-text > span strong { font-weight: 700; color: var(--c-white); display: inline; margin-bottom: 0; }

@media (max-width: 640px) {
  .subsection-title { margin-top: 44px; }
}


/* ===================================================================
   TURNIER: Vertikale Tagesablauf-Timeline unter dem Karussell
   3-Spalten-Grid pro Zeile: Uhrzeit | Dot+Linie | Titel + Description.
   Linie wird per ::before im Mark-Element gezeichnet und überlappt
   in den row-gap, sodass eine durchgehende Linie zwischen allen Dots
   entsteht. Letzte Zeile hat keine Linie nach unten.
   =================================================================== */
.timeline {
  list-style: none;
  margin: 50px auto 0;
  padding: 0;
  max-width: 560px;
  text-align: left;
}
.timeline-row {
  display: grid;
  grid-template-columns: 56px 22px 1fr;
  column-gap: 18px;
  align-items: start;
  padding-bottom: 26px;     /* row gap als padding, damit ::before-Linie überlappt */
  position: relative;
}
.timeline-row:last-child { padding-bottom: 0; }

.timeline-time {
  font-weight: 800;
  font-size: 15px;
  color: var(--c-sky);
  letter-spacing: .3px;
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
  text-align: right;
}

/* Mark-Spalte: Dot + die senkrechte Linie nach unten */
.timeline-mark {
  position: relative;
  align-self: stretch;
  display: flex;
  justify-content: center;
}
.timeline-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;                  /* startet knapp unterhalb der Dot-Mitte */
  bottom: -26px;             /* reicht durch den row-gap bis zum nächsten Dot */
  width: 2px;
  transform: translateX(-50%);
  background: rgba(68, 173, 230, .35);
}
.timeline-row:last-child .timeline-mark::before { display: none; }

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c-sky);
  /* Doppelter Ring: Inner-Ring in --c-ink trennt Dot von Linie,
     Outer-Ring in Sky gibt dem Dot Präsenz */
  box-shadow:
    0 0 0 3px var(--c-ink),
    0 0 0 5px rgba(68, 173, 230, .45);
  margin-top: 5px;
}

.timeline-body { padding-top: 1px; }
.timeline-title {
  display: block;
  font-weight: 800;
  font-size: 16px;
  color: var(--c-white);
  letter-spacing: -.1px;
  margin-bottom: 3px;
}
.timeline-desc {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-muted);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .timeline {
    margin-top: 36px;
    max-width: none;
  }
  .timeline-row {
    grid-template-columns: 48px 20px 1fr;
    column-gap: 14px;
    padding-bottom: 22px;
  }
  .timeline-mark::before { bottom: -22px; }
  .timeline-time { font-size: 14px; }
  .timeline-title { font-size: 15px; }
  .timeline-desc { font-size: 13.5px; }
}

/* Wirkung-Section: Link-Arrow auf Desktop + Mobile zentrieren — sonst sitzt
   er links unten unter dem Achievements-Grid und wirkt verwaist. Spacing
   bleibt wie im Default (margin-top vom .link-arrow + margin-bottom vom
   .impact-achievements). */
.section-impact .link-arrow {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

/* Achievements */
.impact-achievements { margin-top: 18px; margin-bottom: 36px; }
.achievements-title {
  margin: 0 0 24px;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: -.3px;
}
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.achievement {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  /* Grid-Item darf unter Min-Content schrumpfen — lange Wörter
     (z.B. "Technologieausbau") sprengen sonst auf 320px das Grid */
  min-width: 0;
  overflow-wrap: break-word;
  hyphens: auto;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: border var(--t), background var(--t);
}
.achievement:hover {
  border-color: rgba(68, 173, 230, .35);
  background: rgba(68, 173, 230, .05);
}
.achievement-image {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(68, 173, 230, .14), transparent 60%),
    linear-gradient(180deg, var(--c-ink-3), var(--c-ink));
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.achievement-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(68, 173, 230, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 173, 230, .06) 1px, transparent 1px);
  background-size: 18px 18px;
  background-position: -1px -1px;
}
.achievement-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  position: relative;
  z-index: 1;
}

/* Photo-Variante: füllt die Box komplett aus, kein Filter / Overlay.
   Subtiler Hover-Zoom als einziges Mikro-Feedback. */
.achievement-image--photo { background: var(--c-ink); }
.achievement-image--photo::before { display: none; }
.achievement-image--photo img {
  object-fit: cover;
  padding: 0;
  transition: transform var(--t);
}
.achievement:hover .achievement-image--photo img { transform: scale(1.04); }
.achievement-text strong {
  display: block;
  font-weight: 800;
  font-size: 15px;
  color: var(--c-white);
  margin-bottom: 4px;
  letter-spacing: -.1px;
}
.achievement-text span {
  display: block;
  font-size: 13.5px;
  color: var(--c-muted);
  line-height: 1.5;
  font-weight: 500;
}
@media (max-width: 800px) {
  .achievements-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .impact-slide { padding: 32px 24px; min-height: 140px; }
  .impact-slide .impact-stat-value { letter-spacing: -1.4px; }
  .achievement { padding: 14px; gap: 10px; }
}

/* ===================================================================
   Anmelde-CTA am Seitenende (catches users beim Scroll bis nach unten)
   =================================================================== */
.section-join {
  padding-top: 50px;
  padding-bottom: 70px;
}
.join-cta {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 44px 32px;
  background: linear-gradient(180deg, rgba(68, 173, 230, .1), rgba(44, 70, 163, .14));
  border: 1px solid rgba(68, 173, 230, .35);
  border-radius: var(--radius-lg);
}
.join-cta .eyebrow { margin-bottom: 12px; }
.join-cta-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -.5px;
  color: var(--c-white);
}
.join-cta-text {
  margin: 0 auto 28px;
  max-width: 480px;
  color: var(--c-muted);
  font-size: 15.5px;
  line-height: 1.55;
}
.join-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
@media (max-width: 640px) {
  .join-cta { padding: 32px 22px; }
  .join-cta-actions { flex-direction: column; }
  .join-cta-actions .btn--primary,
  .join-cta-actions .btn--ghost-lg { width: 100%; justify-content: center; }
}

/* ===================================================================
   SPONSOR-MARQUEE (Auto-Loop unter dem Hero)
   ===================================================================
   - Zwei identische Gruppen im Track → translateX(-50%) = exakt eine
     Gruppen-Breite, daher nahtloser Loop ohne Sprung.
   - Logos werden via CSS-Filter auf Sky-Blau eingefärbt (Brand-Tint),
     funktioniert mit jedem PNG/SVG das einen transparenten Hintergrund
     hat — egal welche Originalfarbe das Logo selbst hat. */
.sponsor-marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 26px 0;
  /* Kein eigener Hintergrund — body-Bg scheint durch.
     Feine Linien oben + unten als Boxrahmen (Full-Bleed-Spannweite
     ergibt sich aus den negativen Margins unten). */
  background: transparent;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  /* Full-Bleed: bis Viewport-Edge auf breiten Screens —
     Borders gehen dadurch über die gesamte Bildschirmbreite. */
  margin-left:  calc(-24px - max(0px, (100vw - 1100px) / 2));
  margin-right: calc(-24px - max(0px, (100vw - 1100px) / 2));
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
  /* Edge-Fade nur auf den Logo-Track anwenden, damit die
     Box-Borders oben/unten nicht mit ausgefadet werden. */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.sponsor-marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-group {
  display: flex;
  flex-shrink: 0;
  gap: 72px;
  padding-right: 72px;   /* Gleicher Abstand vor der nächsten Gruppe */
  align-items: center;
}
.marquee-item {
  flex: 0 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
}
.marquee-item img {
  height: 100%;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  /* SVG-Filter (siehe index.html): mappt Logo-Helligkeit auf Sky-Blau-Alpha.
     Dunkle Logo-Bereiche → opakes #44ADE6
     Mittelhelle Bereiche → halbtransparentes #44ADE6
     Weiße / sehr helle Bereiche → komplett transparent
     PNG-Transparenz bleibt erhalten. */
  filter: url(#dark-to-sky);
  opacity: 1;
  transition: filter var(--t-fast), opacity var(--t-fast);
}
/* Hover auf ein einzelnes Logo → zurück in Original-Markenfarben */
.marquee-item:hover img {
  filter: none;
  opacity: 1;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .sponsor-marquee {
    margin-left: -20px;
    margin-right: -20px;
  }
  .marquee-group { gap: 50px; padding-right: 50px; }
  .marquee-item { height: 44px; min-width: 90px; }
  .marquee-item img { max-width: 160px; }
}

@media (max-width: 640px) {
  .sponsor-marquee { padding: 22px 0; }
  .marquee-track { animation-duration: 22s; }
}

/* ===================================================================
   NAV-DRAWER: Zwei CTAs am Ende ("Sei dabei" + "Spenden")
   =================================================================== */
.nav-drawer-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
}
.nav-drawer-ctas .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 14px 14px;
  font-size: 13px;
  letter-spacing: .5px;
}

/* ===================================================================
   Features-CTA (Sei dabei über "Mehr über das Turnier")
   =================================================================== */
.features-cta {
  margin: 38px 0 18px;
  display: flex;
}
.features-cta .cta-dropdown {
  /* Eigener Stacking-Context damit das absolute cta-menu sauber sitzt */
  position: relative;
}

/* Drawer Sei-dabei chevron: rotiert wenn Menü offen */
.nav-drawer-sei-dabei-btn { gap: 6px; }
.nav-drawer-sei-dabei-btn .chevron { transition: transform var(--t); }
.nav-drawer-sei-dabei-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* Drawer Sei-dabei Sub-Menü — animiert via .is-open Klasse statt hidden */
.nav-drawer-sei-dabei-menu {
  margin-top: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--c-line-2);
  border-radius: var(--radius);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* Closed-State */
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  overflow: hidden;
  border-width: 0;
  transition:
    max-height .28s ease,
    opacity .2s ease,
    padding .25s ease,
    margin .25s ease,
    border-width .25s ease;
}
.nav-drawer-sei-dabei-menu.is-open {
  max-height: 220px;
  opacity: 1;
  margin-top: 10px;
  padding: 6px;
  border-width: 1px;
}
.nav-drawer-sei-dabei-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--c-white);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-drawer-sei-dabei-menu a strong {
  display: block;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .2px;
  margin-bottom: 2px;
}
.nav-drawer-sei-dabei-menu a span {
  display: block;
  font-size: 12.5px;
  color: var(--c-muted);
  font-weight: 600;
  line-height: 1.35;
}
.nav-drawer-sei-dabei-menu a:hover {
  background: rgba(68, 173, 230, .12);
  color: var(--c-sky);
}
.nav-drawer-sei-dabei-menu a:hover span { color: var(--c-sky); opacity: .85; }


/* ===================================================================
   PROJEKT-SEITE (/projekt) — Hero-Image, Quote, Foto-Grid, Roadmap, Pillars
   =================================================================== */

/* Hero-Image zwischen Motto und CTAs: bei Original-Größe (480×360)
   zentriert, max-width verhindert Hochskalieren. Dezenter Sky-Glow. */
.hero-image {
  margin: 36px auto 40px;
  max-width: 460px;
  width: 100%;
}
.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-line-2);
  box-shadow:
    0 14px 40px -18px rgba(68, 173, 230, .35),
    0 24px 60px -30px rgba(0, 0, 0, .55);
}
@media (max-width: 640px) {
  .hero-image { margin: 28px auto 32px; }
}

/* Quote-Block: zentriert, ruhig, mit dezenten Anführungs-Zeichen */
.projekt-quote {
  max-width: 720px;
  margin: 28px auto 0;
  text-align: center;
}
.projekt-quote blockquote {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--c-white);
  letter-spacing: -.3px;
}
.projekt-quote figcaption {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-sky);
  letter-spacing: .3px;
}

/* Photo-Grid: 3 Spalten auf Desktop, 2 auf Tablet, 1 auf Mobile.
   Aspect-ratio sorgt für gleich-hohe Kacheln, object-fit:cover crop. */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.photo-card {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-ink-2);
  border: 1px solid var(--c-line-2);
}
.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .4s ease;
}
.photo-card:hover img { transform: scale(1.03); }
.photo-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 14px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-white);
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  letter-spacing: .2px;
}

/* Roadmap-Grid: 4 Karten, 2x2 auf Desktop, 1-Spalte auf Mobile */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.roadmap-card {
  position: relative;
  padding: 22px 22px 22px 28px;
  background: linear-gradient(180deg, var(--c-ink-2), var(--c-ink));
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  border-left: 3px solid var(--c-sky);
}
.roadmap-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--c-sky);
  margin-bottom: 6px;
}
.roadmap-title {
  display: block;
  font-size: 17px;
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: -.2px;
  margin-bottom: 6px;
}
.roadmap-desc {
  margin: 0;
  font-size: 14px;
  color: var(--c-muted);
  font-weight: 500;
  line-height: 1.55;
}

/* Pillars-Grid: 3 gleich breite Karten, auf Mobile gestackt */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.pillar {
  padding: 26px 24px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  text-align: left;
  transition: border var(--t), background var(--t);
}
.pillar:hover {
  border-color: rgba(68, 173, 230, .35);
  background: rgba(68, 173, 230, .04);
}
.pillar-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-sky);
  margin-bottom: 8px;
}
.pillar-title {
  display: block;
  font-size: 19px;
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: -.3px;
  margin-bottom: 10px;
}
.pillar-desc {
  margin: 0;
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.55;
  font-weight: 500;
}
.pillar-desc strong { color: var(--c-white); font-weight: 700; }

/* Mobile Anpassungen */
@media (max-width: 900px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 640px) {
  .photo-grid { grid-template-columns: 1fr; gap: 14px; }
  .roadmap-grid { grid-template-columns: 1fr; }
}


/* ===================================================================
   ADMIN: Dashboard-Tabs (Spieler / Besucher)
   =================================================================== */
.dashboard-tabs {
  display: flex;
  gap: 4px;
  margin: 8px 0 22px;
  border-bottom: 1px solid var(--c-line);
}
.dashboard-tab {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--c-muted);
  cursor: pointer;
  transition: color var(--t), border-color var(--t);
}
.dashboard-tab:hover { color: var(--c-white); }
.dashboard-tab.is-active {
  color: var(--c-white);
  border-bottom-color: var(--c-sky);
}

/* Row-Icon-Buttons (kleine Action-Icons in Tabellen-Zeilen) */
.row-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--c-muted);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  transition: color var(--t-fast), background var(--t-fast), border var(--t-fast);
  margin-left: 4px;
}
.row-icon-btn:hover {
  color: var(--c-sky);
  background: rgba(68, 173, 230, .12);
  border-color: rgba(68, 173, 230, .35);
}

.email-link {
  color: var(--c-muted);
  text-decoration: none;
  transition: color var(--t-fast);
}
.email-link:hover { color: var(--c-sky); text-decoration: underline; }

.td-center { text-align: center; }
