:root {
  --bg: #0a0a0a;
  --bg-soft: #141414;
  --panel: #1a1a1a;
  --panel-border: rgba(255, 255, 255, 0.1);
  --gold: #d9b354;
  --gold-light: #f0d78a;
  --cream: #f5f0e6;
  --muted: #a3a3a3;
  --muted-dark: #767676;
  --danger: #e2685a;
  --success: #5fcf9a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-script: 'Pacifico', cursive;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  /* Uebernommen aus dem neuen Logo-Schriftzug: "Jost" als lizenzfreier
     Ersatz fuer Glacial Indifference (dort fuer "OPEN" verwendet, nicht auf
     Google Fonts verfuegbar). Nur EIN einheitlicher Gradient-Stil site-weit,
     verwendet fuer: Seitentitel im Header (.nav-title), grosse Seitentitel
     (h1) und Zwischenueberschriften (h2-Ebene) - sonst nirgendwo. */
  --font-heading: 'Jost', 'Segoe UI', sans-serif;
  --heading-gradient: linear-gradient(135deg, #d7b956, #fffbed, #947a31, #f8ecc0, #8f8767);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  background: var(--bg);
  color: var(--cream);
  padding-bottom: 72px;
  border-bottom: 1px solid var(--panel-border);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(180deg, rgba(10, 10, 10, 0.15) 0%, rgba(10, 10, 10, 0.4) 45%, var(--bg) 100%),
    url('/tn-assets/img/hero-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: brightness(1.35) saturate(1.1);
}

/* Weiche, langsam schwebende Lichtakzente hinter dem Hero-Inhalt fuer eine
   festliche, weniger nuechterne Grundstimmung. Rein dekorativ (aria-hidden). */
.hero-glow {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.16;
  pointer-events: none;
  animation: hero-glow-float 14s ease-in-out infinite;
}

.hero-glow-1 {
  width: 380px;
  height: 380px;
  top: -80px;
  left: -60px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
}

.hero-glow-2 {
  width: 320px;
  height: 320px;
  bottom: -100px;
  right: -40px;
  background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
  animation-delay: -7s;
}

@keyframes hero-glow-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -18px) scale(1.08); }
}

/* Dezente funkelnde Punkte im Hero, wie festliche Lichter ueber der Szene. */
.hero-sparkles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(240, 215, 138, 0.8), transparent 60%),
    radial-gradient(2px 2px at 85% 15%, rgba(240, 215, 138, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 35%, rgba(245, 240, 230, 0.7), transparent 60%),
    radial-gradient(2px 2px at 25% 55%, rgba(240, 215, 138, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 92% 60%, rgba(245, 240, 230, 0.6), transparent 60%),
    radial-gradient(2px 2px at 45% 12%, rgba(240, 215, 138, 0.6), transparent 60%);
  animation: hero-sparkle-twinkle 4.5s ease-in-out infinite;
}

@keyframes hero-sparkle-twinkle {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow, .hero-sparkles { animation: none; }
}

.navbar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 6vw;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-club-logo {
  height: 34px;
  width: auto;
  opacity: 0.92;
}

.nav-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}

.nav-menu-link {
  position: relative;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 6px 2px;
  opacity: 0.88;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.nav-menu-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--gold-light);
  transition: right 0.2s ease;
}

.nav-menu-link:hover {
  opacity: 1;
  color: var(--gold-light);
}

.nav-menu-link:hover::after { right: 0; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 20;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 780px) {
  .nav-burger { display: flex; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 10, 10, 0.97);
    border-bottom: 1px solid var(--panel-border);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
  }

  .nav-menu.is-open {
    max-height: 320px;
    opacity: 1;
  }

  .nav-menu-link {
    padding: 16px 6vw;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-menu-link::after { display: none; }
}

@media (max-width: 640px) {
  .nav-menu-link { font-size: 0.95rem; }
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-display);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #201603;
  border: 1.5px solid transparent;
  box-shadow: 0 8px 24px rgba(217, 179, 84, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(217, 179, 84, 0.45);
}

.btn-hero {
  padding: 15px 34px;
  font-size: 1.05rem;
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1.5px solid var(--danger);
}

.btn-danger:hover {
  background: var(--danger);
  color: var(--bg);
}

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  border-color: var(--gold);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ---------- Ticket-Selbstverwaltung (/verwaltung) ---------- */

.manage-main {
  max-width: 720px;
  margin: -32px auto 64px;
  padding: 0 24px;
}

.manage-panel { display: flex; flex-direction: column; gap: 20px; }
.manage-panel[hidden] { display: none; }

.manage-panel h3 {
  margin: 8px 0 0;
  color: var(--gold-light);
  font-size: 1.1rem;
}

.manage-header { display: flex; flex-direction: column; gap: 6px; }

.manage-status-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(95, 207, 154, 0.15);
  color: var(--success);
}

.manage-status-badge.status-warteliste { background: rgba(217, 179, 84, 0.15); color: var(--gold); }
.manage-status-badge.status-storniert { background: rgba(226, 104, 90, 0.15); color: var(--danger); }

.manage-cancel-section {
  border-top: 1px solid var(--panel-border);
  padding-top: 20px;
}

.manage-block-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.manage-block-option.is-full { opacity: 0.6; }

.hero-content {
  position: relative;
  max-width: 780px;
  margin: 40px auto 0;
  padding: 0 6vw;
  text-align: center;
}

.hero-logo-img {
  display: block;
  width: min(480px, 88%);
  height: auto;
  margin: 6px auto 18px;
  filter: drop-shadow(0 0 28px rgba(217, 179, 84, 0.35));
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  flex: 1;
  max-width: 70px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  margin: 0 0 20px;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Zwischenueberschriften site-weit, gleicher Font+Verlauf wie H1 und der
   Seitentitel im Header (nur EIN Gradient-Stil site-weit, siehe .hero-content
   h1 / .nav-title). Bewusst NICHT auf Modal-/Dialog-Titel angewendet (z.B.
   "Anmeldung", "Platz reservieren") - das sind funktionale UI-Elemente,
   keine Seiteninhalts-Zwischenueberschriften - und NICHT auf Box-Titel wie
   Turnierboxen/Ergebnis-Bloecke (die bleiben in ihrer bisherigen, schlichten
   Optik). */
#sponsors-heading,
#events-heading,
#schedule-teaser-heading,
.results-event h2,
.archive-season-title,
.schedule-day-title,
.regulation-section-title,
#t-event-name {
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.meta-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 14px 10px;
}

.meta-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 6px;
}

.meta-value {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--cream);
}

.spots-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--gold-light);
}

main { max-width: 1200px; margin: 0 auto; padding: 0 6vw; }

/* Reihenfolge dieser Abschnitte ist im Admin (Inhalte > Startseite)
   konfigurierbar - main.js sortiert die Kind-Elemente entsprechend um. */
#home-sections { margin-top: 48px; }

/* Kleine Kugel-Trio-Trenner zwischen den Abschnitten - spielerischer Bezug
   zum Billardthema statt einer nuechternen Trennlinie. main.js fuegt diese
   dynamisch zwischen den jeweils sichtbaren Abschnitten ein (Anzahl haengt
   von Reihenfolge + Sichtbarkeit von Countdown/Zeitplan-Teaser ab). */
.section-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.section-divider span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  opacity: 0.35;
}

.section-divider span:nth-child(2) {
  width: 8px;
  height: 8px;
  background: var(--gold);
  opacity: 0.7;
}

.info-section {
  display: flex;
  justify-content: center;
  margin: 56px 0 60px;
}

.info-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  max-width: 560px;
  text-align: center;
}

.info-card h3 {
  margin-top: 0;
  color: var(--gold-light);
  font-size: 1.1rem;
}

.info-card p { color: var(--muted); margin-bottom: 0; }

/* ---------- Highlights (Startseite, global in Admin > Inhalte gepflegt) ---------- */

.highlights-section { margin: 48px 0; text-align: center; }

.highlights-section h2 {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.highlights-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.highlights-list li {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 10px 20px;
  color: var(--cream);
  font-size: 0.92rem;
}

/* ---------- Preisgeld je Platzierung (in der Turnierkarte, siehe .event-prizes) ---------- */

.event-prizes { margin-bottom: 16px; }

.event-prizes .meta-label { display: block; margin-bottom: 8px; }

.prize-place-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.prize-place-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
}

.prize-place-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prize-place-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Countdown (Anmeldestart / Turnierbeginn) ---------- */

.countdown-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 48px 0;
  text-align: center;
}

.countdown-label {
  margin: 0;
  color: var(--gold-light);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.countdown-grid {
  display: flex;
  gap: 14px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  min-width: 76px;
}

.countdown-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--cream);
}

.countdown-unit-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 480px) {
  .countdown-grid { gap: 8px; }
  .countdown-unit { min-width: 60px; padding: 12px 10px; }
  .countdown-value { font-size: 1.4rem; }
}

/* ---------- Zeitplan-Teaser (Startseite) ---------- */

.schedule-teaser-section {
  margin: 48px 0;
  text-align: center;
}

.schedule-teaser-section h2 {
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 6px;
}

.schedule-teaser-section .schedule-day-items {
  text-align: left;
  margin-bottom: 28px;
}

.schedule-teaser-section .schedule-day-items .schedule-item:first-child {
  border-radius: var(--radius) var(--radius) 0 0;
}

.schedule-teaser-section .schedule-day-items .schedule-item:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.schedule-teaser-cta {
  display: inline-block;
}

/* ---------- Events-Übersicht ---------- */

.events-overview { margin: 48px 0; }

.events-overview h2 {
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: 6px;
  text-align: center;
}

.section-intro {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 32px;
  text-align: center;
}

.hint { color: var(--muted); text-align: center; }

.event-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.event-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 179, 84, 0.45);
  box-shadow: 0 16px 36px rgba(217, 179, 84, 0.16);
}

.event-card-main {
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(217, 179, 84, 0.18);
}

.event-card-main:hover {
  box-shadow: 0 18px 40px rgba(217, 179, 84, 0.3);
}

.event-card-header { margin-bottom: 12px; }

.event-type-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
}

.event-type-badge.event-type-main {
  color: #201603;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.event-card h3 {
  margin: 0 0 4px;
  font-size: 1.3rem;
  color: var(--cream);
}

.event-subtitle {
  margin: 0;
  color: var(--gold-light);
  font-size: 0.92rem;
}

.event-description {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 12px 0 18px;
}

.event-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.event-meta-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
}

.event-spots {
  font-size: 0.85rem;
  color: var(--gold-light);
  margin: 0 0 18px;
}

.event-register { margin-top: 20px; }

.event-register-hint { color: var(--muted); font-size: 0.88rem; margin: 0 0 14px; }

.event-register-locked {
  padding: 14px 16px;
  margin: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--panel-border);
  border-radius: var(--radius-sm);
  color: var(--gold-light);
  font-weight: 600;
}

/* ---------- Block-Auswahl (Ringdiagramme) ---------- */

.block-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.block-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 16px 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #101010;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.block-card:hover { border-color: rgba(217, 179, 84, 0.5); transform: translateY(-2px); }

/* Beim Hauptturnier ist .block-card ein <button>, das direkt das
   Anmelde-Popup oeffnet (statt ein <label> fuer ein Radio-Feld) – UA-Styles
   des Buttons zuruecksetzen, damit er optisch identisch bleibt. */
button.block-card { font: inherit; color: inherit; width: 100%; }

.block-card-full { opacity: 0.75; }

.block-card-disabled { opacity: 0.45; cursor: not-allowed; }
.block-card-disabled:hover { border-color: rgba(255, 255, 255, 0.14); transform: none; }

.block-ring-wrap { width: 88px; height: 88px; }

.block-ring { width: 100%; height: 100%; }

.block-ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 8;
}

.block-ring-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dasharray 0.4s ease;
}

.block-ring-fill.block-ring-full { stroke: var(--danger); }

.block-ring-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  fill: var(--cream);
}

.block-ring-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  fill: var(--muted);
}

/* ---------- Auswahl-Kacheln (Kategorie) ---------- */

.choice-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.choice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  background: #101010;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.choice-card:hover { border-color: rgba(217, 179, 84, 0.5); }

.choice-card.selected { border-color: var(--gold); background: rgba(217, 179, 84, 0.12); }

.choice-card:disabled { opacity: 0.45; cursor: not-allowed; }

.choice-card-label { font-weight: 600; }

.choice-card-price { font-size: 0.85rem; color: var(--muted); }

.block-name {
  display: block;
  font-weight: 700;
  color: var(--cream);
  font-size: 0.92rem;
}

.block-capacity-text {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.block-discipline-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 2px;
}

.register-form {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
.register-form[hidden] { display: none; }

.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row[hidden] { display: none; }

.form-row-full { grid-column: 1 / -1; }

.checkbox-row { flex-direction: row; align-items: flex-start; gap: 10px; }

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.checkbox-row label {
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.checkbox-row label a { color: var(--gold); text-decoration: underline; }

label { font-weight: 600; font-size: 0.9rem; color: var(--cream); }

input, select, textarea {
  padding: 12px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: #101010;
  color: var(--cream);
}

input::placeholder, textarea::placeholder { color: var(--muted-dark); }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
}

textarea { resize: vertical; }

#submit-btn {
  width: 100%;
}

.form-message {
  grid-column: 1 / -1;
  margin: 0;
  font-weight: 600;
  min-height: 1.2em;
}

.form-message.success { color: var(--success); }
.form-message.error { color: var(--danger); }

/* ---------- Sponsoren-Slider ---------- */

.sponsors-section { margin: 48px 0; text-align: center; }

.sponsors-section h2 { font-size: 1.8rem; color: var(--cream); margin-bottom: 6px; }

.sponsor-slider {
  display: flex;
  justify-content: center;
  overflow: hidden;
  min-height: 120px; /* reserviert den Platz schon vor dem Laden, damit nachfolgende Abschnitte nicht springen */
  padding: 8px 0 16px;
  margin-top: 12px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.sponsor-track {
  display: flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  animation: sponsor-scroll linear infinite;
}

.sponsor-slider:hover .sponsor-track { animation-play-state: paused; }

@keyframes sponsor-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% / var(--sponsor-repeats, 2))); }
}

.sponsor-logo-wrap {
  position: relative;
  flex: 0 0 auto;
  padding: 10px;
}

/* Weicher goldener Schein rund um die Karte (nicht ueber dem Logo selbst,
   damit die Sponsoren-Logos auf ihrem weissen Grund klar lesbar bleiben). */
.sponsor-logo-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius) + 8px);
  background: radial-gradient(circle, rgba(217, 179, 84, 0.35), transparent 70%);
  filter: blur(10px);
  opacity: 0.5;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.sponsor-logo-wrap:hover::before { opacity: 1; }

.sponsor-logo {
  position: relative;
  width: 150px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, #1a1305 100%) border-box;
  border: 2px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  padding: 13px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sponsor-logo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow), 0 6px 20px rgba(217, 179, 84, 0.2);
}

.sponsor-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.sponsor-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.sponsor-modal-overlay.active { display: flex; }

.sponsor-modal {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  text-align: center;
}

.sponsor-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.sponsor-modal-close:hover { color: var(--cream); }

.sponsor-modal-image {
  max-width: 200px;
  max-height: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 10px;
  margin: 0 auto 18px;
  display: block;
}

.sponsor-modal h3 { margin: 0 0 10px; color: var(--gold-light); font-size: 1.3rem; }

.sponsor-modal-description {
  color: var(--muted);
  margin: 0 0 20px;
  white-space: pre-line;
}

.sponsor-modal-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sponsor-modal-email { color: var(--gold-light); text-decoration: none; font-weight: 600; }
.sponsor-modal-email:hover { text-decoration: underline; }

/* ---------- Anmelde-Popup ---------- */

.registration-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.registration-modal-overlay.active { display: flex; }

.registration-modal {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
}

.registration-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.registration-modal-close:hover { color: var(--cream); }

.registration-modal h2 { margin: 0 0 6px; font-size: 1.5rem; padding-right: 28px; }

.registration-modal-subtitle {
  display: none;
  color: var(--gold-light);
  margin: 0 0 20px;
  font-weight: 600;
}

.registration-modal .register-form {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.registration-success .form-message {
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.payment-info {
  background: var(--bg-soft);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.payment-info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--panel-border);
}

.payment-info-row:last-child { border-bottom: none; }

.payment-info-label {
  color: var(--muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.payment-info-value {
  font-weight: 600;
  color: var(--cream);
  text-align: right;
  word-break: break-word;
}

.payment-info-value a { color: var(--gold-light); }

.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--panel-border);
  color: var(--muted);
  text-align: center;
  padding: 32px 6vw;
}

.site-footer p { margin: 4px 0; }

.footer-club-line {
  font-size: 0.88rem;
}

.footer-club-line a { color: inherit; }

.footer-meta {
  margin-top: 14px !important;
  padding-top: 14px;
  border-top: 1px solid var(--panel-border);
  font-size: 0.82rem;
}

.footer-meta-sep { margin: 0 6px; opacity: 0.6; }

.footer-legal-links { font-size: 0.82rem; }
.footer-legal-links a { color: inherit; }

/* ---------- Impressum / Datenschutz ---------- */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 0 64px;
  color: var(--muted);
  line-height: 1.6;
}

.legal-page h2 {
  color: var(--cream);
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  margin: 32px 0 8px;
}

.legal-page h2:first-child { margin-top: 0; }

.legal-page p { margin: 0 0 12px; }

.legal-page a { color: var(--gold-light); }

@media (max-width: 640px) {
  .register-form { grid-template-columns: 1fr; padding: 24px; }
  .navbar { padding: 18px 5vw; }
  .registration-modal { padding: 24px; }
}

/* ---------- Ergebnisse (aus CueScore geparst, eigenes Design) ---------- */

.results-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 8px 6vw 64px;
}

.results-event {
  margin-bottom: 48px;
}

.results-event h2 {
  color: var(--gold-light);
  font-family: 'Poppins', sans-serif;
  margin-bottom: 16px;
}

/* Sprungnav: Pills, ein Klick pro Event, springt zum jeweiligen Abschnitt.
   Sticky, damit sie beim Scrollen durch lange Ergebnislisten (Hauptturnier
   mit mehreren Blöcken + Finalrunde, Side-Events, ...) erreichbar bleibt. */
.results-jumpnav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 12px 6vw;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--panel-border);
}

.results-jumpnav::-webkit-scrollbar {
  display: none;
}

.results-nav-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(217, 179, 84, 0.35);
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.results-nav-pill:hover,
.results-nav-pill:active {
  background: rgba(217, 179, 84, 0.15);
  border-color: var(--gold);
}

.results-event {
  scroll-margin-top: 64px;
  margin-bottom: 48px;
}

.results-block {
  margin-bottom: 20px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.results-block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.results-block-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.results-block-title {
  flex: 1;
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 700;
}

.results-block-status {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--muted);
}

.results-block-status:empty {
  display: none;
}

.results-block-status-live {
  color: #0a0a0a;
  background: var(--success);
}

.results-block-status-finished {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.results-block-status-upcoming {
  color: var(--gold);
  background: rgba(217, 179, 84, 0.12);
}

.results-block-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.results-block.is-open .results-block-chevron {
  transform: rotate(-135deg);
}

.results-block-body {
  padding: 4px 20px 20px;
  border-top: 1px solid var(--panel-border);
}

.results-block h4 {
  color: var(--gold-light);
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

.results-section-title {
  color: var(--gold) !important;
  font-size: 1rem !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(217, 179, 84, 0.25);
  padding-bottom: 8px;
  margin-bottom: 16px !important;
}

.results-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
}

.results-table-wrap {
  flex: 1 1 320px;
  min-width: 280px;
}

.results-standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.results-standings-table th,
.results-standings-table td {
  padding: 8px 10px;
  text-align: center;
  border-bottom: 1px solid var(--panel-border);
}

.results-standings-table th {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.results-standings-table .results-player-name {
  text-align: left;
  color: var(--cream);
  font-weight: 500;
}

.results-standings-table .results-points {
  color: var(--gold-light);
  font-weight: 700;
}

.results-discipline {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(217, 179, 84, 0.12);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.results-schedule {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Umschalter Spielplan/Turnierplan (nur bei reinen K.O.-Bloecken) */
.results-view-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.results-view-btn {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(217, 179, 84, 0.3);
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.results-view-btn:hover {
  border-color: var(--gold);
}

.results-view-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #14100a;
}

/* Turnierplan (Bracket): Runden als Spalten nebeneinander, horizontal
   scrollbar. Ohne exakte Verbindungslinien zwischen Matches (das braeuchte
   praezises Layout-Messen per JS) - Zuordnung ergibt sich aus Spalte +
   Rundentitel, wie bei einem klassischen Turnierbaum ueblich. */
.bracket-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 4px;
}

.bracket {
  display: flex;
  gap: 28px;
  width: max-content;
  min-width: 100%;
}

.bracket-round {
  display: flex;
  flex-direction: column;
  min-width: 190px;
}

.bracket-round-title {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  margin: 0 0 12px;
}

.bracket-matches {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 14px;
}

.bracket-match {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.bracket-match-player {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  font-size: 0.82rem;
  color: var(--muted);
  border-bottom: 1px solid var(--panel-border);
}

.bracket-match-player:last-child {
  border-bottom: 0;
}

.bracket-match-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-match-score {
  color: var(--gold-light);
  font-weight: 700;
  flex-shrink: 0;
}

.bracket-match-player.bracket-match-winner {
  color: var(--cream);
  font-weight: 700;
  background: rgba(217, 179, 84, 0.08);
}

.bracket-match-playing {
  border-color: var(--success);
}

.bracket-match-table {
  padding: 3px 10px;
  font-size: 0.62rem;
  color: var(--muted-dark);
  text-align: right;
  border-top: 1px solid var(--panel-border);
}

.results-round h4 {
  border-bottom: 1px solid rgba(217, 179, 84, 0.25);
  padding-bottom: 6px;
}

.results-matches {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.results-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
}

.results-match-player {
  color: var(--muted);
}

.results-match-player.results-match-winner {
  color: var(--cream);
  font-weight: 700;
}

.results-match-player:last-of-type {
  text-align: right;
}

.results-match-score {
  color: var(--gold-light);
  font-weight: 700;
  white-space: nowrap;
}

.results-match-sep {
  margin: 0 4px;
  color: var(--muted-dark);
}

.results-match-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 90px;
}

.results-match-group {
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.results-match-table {
  color: var(--muted-dark);
  font-size: 0.65rem;
  letter-spacing: 0.02em;
}

.results-match-status {
  color: var(--muted-dark);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: right;
}

.results-match-playing .results-match-status {
  color: var(--success);
}

@media (max-width: 640px) {
  .results-match {
    grid-template-columns: 1fr auto 1fr;
    font-size: 0.82rem;
  }
  .results-match-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .results-main {
    padding: 8px 4vw 48px;
  }
  .results-jumpnav {
    padding: 10px 4vw;
  }
  .results-nav-pill {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  .results-block-header {
    padding: 14px 16px;
    gap: 8px;
  }
  .results-block-title {
    font-size: 0.95rem;
  }
  .results-block-status {
    font-size: 0.65rem;
    padding: 3px 8px;
  }
  .results-block-body {
    padding: 4px 14px 16px;
  }
  .results-table-wrap {
    min-width: 100%;
    flex-basis: 100%;
  }
  .results-standings-table {
    font-size: 0.8rem;
  }
  .results-standings-table th,
  .results-standings-table td {
    padding: 6px 4px;
  }
  .results-view-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
  .bracket-round {
    min-width: 160px;
  }
  .bracket-match-player {
    font-size: 0.78rem;
    padding: 6px 8px;
  }
}

/* ---------- Archiv (vergangene Saisons) ---------- */

.archive-season {
  margin-bottom: 56px;
  scroll-margin-top: 64px;
}

.archive-season-title {
  color: var(--gold-light);
  font-family: 'Poppins', sans-serif;
  margin-bottom: 20px;
}

/* Sieger-Leiste: die Kernanforderung dieser Seite - man soll die Champions
   einer Saison sofort sehen, ohne irgendetwas aufklappen zu muessen. */
.archive-champions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.archive-champion-card {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 240px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(217, 179, 84, 0.14), rgba(217, 179, 84, 0.04));
  border: 1px solid rgba(217, 179, 84, 0.35);
  border-radius: var(--radius);
}

.archive-champion-card.archive-champion-pending {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--panel-border);
}

.archive-champion-trophy {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.archive-champion-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.archive-champion-event {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-champion-name {
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-champion-pending .archive-champion-name {
  color: var(--muted);
  font-weight: 500;
  font-style: italic;
}

.archive-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.archive-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.archive-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.archive-card-header h3 {
  margin: 0;
  color: var(--cream);
  font-size: 1.1rem;
}

.archive-card-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
}

/* Kleinere Sieger-Anzeige innerhalb einer Turnier-Karte (Champions-Leiste
   oben fasst schon alle Sieger einer Saison zusammen; hier nochmal am
   jeweiligen Turnier selbst, direkt neben dem Titel). */
.archive-winner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(217, 179, 84, 0.12);
  white-space: nowrap;
}

.archive-winner.archive-winner-pending {
  background: rgba(255, 255, 255, 0.05);
}

.archive-winner-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.archive-winner-name {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.9rem;
}

.archive-winner-pending .archive-winner-name {
  color: var(--muted);
  font-weight: 500;
  font-style: italic;
}

.archive-note {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.archive-card-body .results-blocks {
  margin-top: 0;
}

.archive-files + .results-blocks {
  margin-top: 16px;
}

.archive-files {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.archive-file {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.archive-file:hover {
  border-color: var(--gold);
  background: rgba(217, 179, 84, 0.08);
}

@media (max-width: 640px) {
  .archive-champion-card {
    flex: 1 1 100%;
  }
  .archive-card {
    padding: 16px 18px;
  }
  .archive-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Zeitplan (Ablauf des gesamten Events) ---------- */

.schedule-day {
  margin-bottom: 40px;
  scroll-margin-top: 64px;
}

.schedule-day-title {
  color: var(--gold-light);
  font-family: 'Poppins', sans-serif;
  margin-bottom: 16px;
}

.schedule-day-today .schedule-day-title {
  color: var(--gold);
}

.schedule-day-today .schedule-day-title::after {
  content: 'Heute';
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #201603;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  vertical-align: middle;
}

.schedule-day-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.schedule-item {
  display: flex;
  gap: 18px;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
}

.schedule-day-items .schedule-item:first-child {
  border-radius: var(--radius) var(--radius) 0 0;
}

.schedule-day-items .schedule-item:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.schedule-day-items .schedule-item:not(:last-child) {
  border-bottom: none;
}

.schedule-time {
  flex-shrink: 0;
  width: 84px;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.schedule-body {
  min-width: 0;
  flex: 1;
}

.schedule-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.schedule-title {
  color: var(--cream);
  font-weight: 600;
}

.schedule-title-link {
  text-decoration: none;
}

.schedule-title-link:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.schedule-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.schedule-badge.schedule-badge-main {
  color: #201603;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.schedule-meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.schedule-results-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.schedule-results-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .schedule-item {
    flex-direction: column;
    gap: 4px;
  }
  .schedule-time {
    width: auto;
  }
}

/* ---------- Team & Schichtplan (/schicht) ---------- */

.shift-item {
  display: flex;
  gap: 18px;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
}

.schedule-day-items .shift-item:first-child {
  border-radius: var(--radius) var(--radius) 0 0;
}

.schedule-day-items .shift-item:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.schedule-day-items .shift-item:not(:last-child) {
  border-bottom: none;
}

.shift-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.shift-badge.shift-badge-full {
  color: var(--muted);
}

.shift-people {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shift-people li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
  font-size: 0.85rem;
}

.shift-remove-btn {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}

.shift-remove-btn:hover {
  color: var(--danger);
}

.shift-signup {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.shift-signup-name {
  flex: 1;
  min-width: 0;
}

.btn-small {
  padding: 8px 14px;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .shift-item {
    flex-direction: column;
    gap: 4px;
  }
  .shift-signup {
    flex-direction: column;
  }
}

/* ---------- Stream-Seite (QniverseOfPool) ---------- */

.stream-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.stream-card h2 {
  margin: 0 0 12px;
  color: var(--cream);
  font-size: 1.3rem;
}

.stream-video-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stream-video-header h2 {
  margin: 0;
}

.stream-channel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.stream-channel-link:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.stream-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}

.stream-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.stream-video-original-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.stream-video-original-link:hover {
  text-decoration: underline;
}

.stream-video-fallback {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 32px 24px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--panel-border);
  color: var(--muted);
}

.stream-team {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
}

.stream-team-logo {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  padding: 12px;
  object-fit: contain;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, #1a1305 100%) border-box;
  border: 2px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stream-team-body {
  flex: 1;
  min-width: 220px;
}

.stream-team-name {
  margin: 0 0 6px;
  color: var(--gold-light);
  font-size: 1.1rem;
  font-weight: 700;
}

.stream-team-website {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold-light);
  font-size: 0.85rem;
  text-decoration: none;
}

.stream-team-website:hover {
  text-decoration: underline;
}

.stream-team-intro {
  color: var(--muted);
  line-height: 1.6;
}

.stream-donation {
  margin-top: 16px;
}

@media (max-width: 640px) {
  .stream-team {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .stream-team-body {
    min-width: 0;
  }
}

/* ---------- Lightbox (generisch, siehe /js/lightbox.js) ---------- */

img.lightbox-trigger {
  cursor: zoom-in;
}

body.lightbox-locked {
  overflow: hidden;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  background: rgba(8, 8, 8, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.16);
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 640px) {
  .lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* ---------- Bilderfaecher (generisch, z.B. Stream-Impressionen) ---------- */

.photo-fan {
  display: flex;
  justify-content: center;
  padding: 20px 0 8px;
}

.photo-fan-item {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 3px solid var(--panel);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-fan-item:not(:first-child) {
  margin-left: -36px;
}

.photo-fan-item:nth-child(1) { transform: rotate(-7deg); }
.photo-fan-item:nth-child(2) { transform: rotate(0deg) translateY(-8px); z-index: 1; }
.photo-fan-item:nth-child(3) { transform: rotate(7deg); }

.photo-fan-item:hover {
  transform: scale(1.08) rotate(0deg) translateY(-12px);
  z-index: 2;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

@media (max-width: 480px) {
  .photo-fan-item {
    width: 96px;
    height: 96px;
  }
  .photo-fan-item:not(:first-child) {
    margin-left: -24px;
  }
}

/* ---------- Turnierausschreibung (/regelwerk) ---------- */

.regulations-draft-notice {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
}

.regulations-stand {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 24px;
}

.regulations-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 40px;
}

.regulations-search-count {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

#regulations-search-input {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  font-size: 0.95rem;
}

#regulations-search-input:focus {
  outline: none;
  border-color: var(--gold);
}

.regulation-section {
  max-width: 780px;
  margin: 0 auto 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--panel-border);
}

.regulation-section:last-child {
  border-bottom: none;
}

.regulation-section-title {
  font-size: 1.15rem;
  margin: 0 0 14px;
}

.regulation-section-content {
  color: var(--muted);
  line-height: 1.65;
}

.regulation-section-content ul,
.regulation-section-content ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.regulation-section-content li {
  margin-bottom: 6px;
}

.regulation-section-content a {
  color: var(--gold-light);
}

mark.search-hit {
  background: rgba(217, 179, 84, 0.35);
  color: var(--cream);
  border-radius: 3px;
  padding: 0 1px;
}

mark.search-hit-current {
  background: var(--gold);
  color: #201a08;
}
/* Turnierkarten (Vorschlag 2026-11): Status-Badge, Chips, Blockkarten mit Balken */
.event-cards { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.event-card-main { grid-column: 1 / -1; }
.tc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.tc-eyebrow { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #cdbb85; }
.tc-badge { font-size: 12px; padding: 3px 10px; border-radius: 99px; border: 1px solid currentColor; white-space: nowrap; }
.tc-badge-open { color: #8fcf9e; } .tc-badge-few { color: #e8b070; } .tc-badge-full { color: #e08a8a; } .tc-badge-soon { color: #cdbb85; }
.tc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.tc-chip { font-size: 12px; color: var(--muted); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 99px; padding: 3px 10px; }
.tc-label { font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
.tc-blocks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 14px; }
.tc-block { display: flex; flex-direction: column; gap: 4px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; padding: 12px; background: rgba(0, 0, 0, 0.2); }
.tc-block-day { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #cdbb85; }
.tc-block-time { font-size: 17px; font-weight: 500; }
.tc-block-name, .tc-block-count { font-size: 12px; color: var(--muted); }
.tc-block .btn { margin-top: 8px; text-align: center; }
.tc-bar { display: block; height: 4px; background: rgba(255, 255, 255, 0.12); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.tc-bar i { display: block; height: 100%; background: #cdbb85; }
.tc-bar i.tc-bar-few { background: #e8b070; } .tc-bar i.tc-bar-full { background: #e08a8a; }
.tc-bar-single { margin: 12px 0 6px; }
.tc-foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 6px; }
.tc-prizes { margin: 0; font-size: 13px; color: var(--muted); }
.tc-prizes span { margin-left: 10px; } .tc-prizes b { color: var(--cream); font-weight: 500; }
.tc-details { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: var(--muted); }
.tc-details summary { cursor: pointer; color: var(--cream); }
@media (max-width: 760px) {
  .event-cards { grid-template-columns: minmax(0, 1fr); }
  .tc-blocks { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 70%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .tc-block { scroll-snap-align: start; }
}

/* Archiv: Ergebnisse als volle Zeilen aufklappen, Tabellen in voller Kartenbreite */
.archive-files { flex-direction: column; align-items: stretch; gap: 8px; }
.archive-file-details { display: block; width: 100%; padding: 0; overflow: hidden; }
.archive-file-details > summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; font-weight: 500; }
.archive-file-details > summary::-webkit-details-marker { display: none; }
.archive-file-winner { margin-left: auto; margin-right: 4px; color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.archive-chevron { margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.15s ease; flex: none; margin-top: -3px; }
.archive-file-details[open] > summary .archive-chevron { transform: rotate(225deg); margin-top: 3px; }
.archive-file-details[open] > summary { border-bottom: 1px solid var(--panel-border); }
.archive-file-details > .results-block { padding: 8px 16px 16px; margin: 0; }
.archive-file-details .results-block-header { display: none; }
.archive-file-details .results-table-wrap { overflow-x: auto; }
.archive-file-details .results-standings-table { width: 100%; min-width: 0; }
.results-block .results-groups { display: block; margin: 14px 0 8px; }
.results-block .results-groups .results-section-title { margin-bottom: 8px !important; }
.results-block .results-table-wrap { min-width: 0; }
.results-block .results-standings-table th:nth-child(2) { text-align: left; }
.archive-file-winner + .archive-chevron { margin-left: 0; }
.archive-file-details .results-schedule > summary { cursor: pointer; padding: 6px 0; }
@media (max-width: 640px) {
  .archive-file-details > summary { padding: 12px; }
  .archive-file-details > .results-block { padding: 4px 8px 12px; }
  .archive-file-winner { display: none; }
}
.results-block .results-standings-table { table-layout: fixed; }
.results-block .results-standings-table th:first-child { width: 40px; }
.results-block .results-standings-table th:nth-child(n+3) { width: 64px; }
.results-block .results-standings-table th:nth-child(6) { width: 84px; }

/* Spielplan: ruhige Zeilen "Spieler A  Ergebnis  Spieler B", Sieger hervorgehoben */
.results-match { display: grid !important; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 14px !important; }
.results-match .rm-a { text-align: right; } .results-match .rm-b { text-align: left; }
.results-match .rm-a, .results-match .rm-b { color: var(--muted); font-weight: 400; overflow-wrap: anywhere; }
.results-match .is-win { color: var(--cream); font-weight: 600; }
.results-match .rm-score { text-align: center; color: var(--gold-light); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.results-match .rm-meta { grid-column: 1 / -1; text-align: center; font-size: 0.75rem; color: var(--muted); }
.results-matches { display: flex; flex-direction: column; gap: 4px; }
.results-round h4 { font-size: 0.95rem; margin: 18px 0 8px; }
.results-schedule[open] > summary { margin-bottom: 4px !important; }
@media (max-width: 640px) { .results-match { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); gap: 8px; padding: 8px 10px !important; font-size: 0.85rem; } }
