/* ============================================
   OSTALBZOCKER - Stadium Nights Theme
   ============================================ */

/* --- Font Faces --- */
@font-face {
  font-family: 'Bebas Neue';
  src: url('../fonts/BebasNeue-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Regular.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Custom Properties --- */
:root {
  /* Gold Palette (preserved) */
  --gold: #cba03f;
  --gold-light: #e4c56a;
  --gold-dark: #a07d2e;
  --gold-glow: rgba(203, 160, 63, 0.4);
  
  /* Podium Colors */
  --silver: #c0c0c0;
  --bronze: #cd7f32;
  
  /* Dark Theme (Default) */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: rgba(17, 17, 17, 0.85);
  --bg-elevated: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #707070;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(203, 160, 63, 0.3);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 30px rgba(203, 160, 63, 0.15);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* Typography */
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
}


/* --- Base Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--gold) var(--bg-secondary);
  scrollbar-width: thin;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Background Pattern (Stadium Lines) with Parallax --- */
body::before {
  content: '';
  position: fixed;
  /* Extend beyond viewport for parallax room */
  top: -20%;
  left: 0;
  right: 0;
  bottom: -20%;
  pointer-events: none;
  background:
    /* Diagonal golden lines - subtler, wider spacing */
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 200px,
      rgba(203, 160, 63, 0.14) 200px,
      transparent 201px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 200px,
      rgba(203, 160, 63, 0.10) 200px,
      transparent 201px
    ),
    /* Corner glows - wider, softer */
    radial-gradient(ellipse 1100px 750px at 0% 0%, rgba(203, 160, 63, 0.10), transparent 60%),
    radial-gradient(ellipse 1100px 750px at 100% 100%, rgba(203, 160, 63, 0.08), transparent 60%);
  opacity: 0.55;
  z-index: -1;
  /* Parallax effect via JS - uses background-position instead of transform */
  background-position-y: var(--parallax-offset, 0);
  transition: background-position-y 0.05s linear;
}


/* --- Scrollbar (WebKit) --- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
}

h1 { font-size: clamp(3rem, 8vw, 5.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-light);
}

/* --- Layout --- */
.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  color: #0a0a0a;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

@media (hover: hover) {
  .btn-primary:hover::before {
    left: 100%;
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 20px var(--gold-glow);
  }
}

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  border-color: var(--gold);
  background: var(--bg-card);
}

.btn-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.85rem;
}

.btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn.is-loading::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -2px;
}

/* --- Hero Section --- */
.hero {
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.hero > .wrap {
  position: relative;
  z-index: 1;
}

/* Wandernder Gold-Blob im Hero — atmosphärische Hintergrund-Schicht */
.hero-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(203, 160, 63, 0.22) 0%, transparent 70%);
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  top: 50%;
  left: 50%;
  margin-left: -300px;
  margin-top: -300px;
  animation: blobDrift 45s ease-in-out infinite;
  will-change: transform;
}

@keyframes blobDrift {
  0%   { transform: translate(-30%, -25%); }
  18%  { transform: translate(35%, -20%); }
  36%  { transform: translate(45%, 25%); }
  54%  { transform: translate(10%, 35%); }
  72%  { transform: translate(-35%, 18%); }
  88%  { transform: translate(-40%, -20%); }
  100% { transform: translate(-30%, -25%); }
}

@media (max-width: 768px) {
  .hero-blob {
    width: 400px;
    height: 400px;
    margin-left: -200px;
    margin-top: -200px;
  }
}

/* Vignette: dunkelt die Hero-Ränder ab, fokussiert auf Wappen + Headline */
.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 90% 80% at center, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
}

/* Cursor-Spotlight (Desktop) — radialer Goldschimmer, der dem Cursor folgt */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 380px at var(--mx, 50%) var(--my, 35%),
    rgba(203, 160, 63, 0.16),
    rgba(203, 160, 63, 0.06) 35%,
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.hero.spotlight-active::after {
  opacity: 1;
}

/* Hero-Partikel-Schicht */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-particle {
  position: absolute;
  bottom: -8px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 8px 1px rgba(203, 160, 63, 0.55);
  opacity: 0;
  animation: particleDrift infinite;
  will-change: transform, opacity;
}

/* Organische Bewegung: mehrere Sway-Stops mit Sinus-artig versetzten X-Werten,
   pro Partikel über CSS-Custom-Properties individualisiert. */
@keyframes particleDrift {
  0%   { transform: translate(0, 0); opacity: 0; }
  8%   { opacity: var(--peak-opacity, 0.8); }
  20%  { transform: translate(var(--sway-1, 0px), -16vh); opacity: var(--peak-opacity, 0.8); }
  40%  { transform: translate(var(--sway-2, 0px), -36vh); }
  55%  { opacity: var(--peak-opacity, 0.8); }
  60%  { transform: translate(var(--sway-3, 0px), -54vh); }
  80%  { transform: translate(var(--sway-4, 0px), -70vh); opacity: calc(var(--peak-opacity, 0.8) * 0.55); }
  100% { transform: translate(var(--drift-x, 0px), calc(var(--drift-distance, 75vh) * -1)); opacity: 0; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  width: fit-content;
  backdrop-filter: blur(10px);
}

.kicker svg {
  color: var(--gold);
  flex-shrink: 0;
}

.kicker small {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.hero h1 {
  color: var(--text-primary);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
  background: linear-gradient(
    90deg,
    var(--gold) 0%,
    var(--gold-light) 35%,
    #f4dca5 50%,
    var(--gold-light) 65%,
    var(--gold) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShimmer 9s ease-in-out infinite;
}

/* Shimmer effect on "ZOCKER" - moving gradient */
@keyframes titleShimmer {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0% 0; }
}

/* --- Shield / Logo --- */
/* Layer trennung: .shield = perspective host, .shield-inner = float (translateY),
   .logo = glow (filter) + tilt/easter-spin (rotate). Verhindert transform-Konflikte. */
.shield {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.shield-inner {
  display: flex;
  justify-content: center;
  width: 100%;
  animation: float 6s ease-in-out infinite;
}

.shield .logo {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  animation: logoGlow 12s ease-in-out infinite;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 200ms ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Easter-Egg: 360°-Drehung + Gold-Pulse beim 10. Klick */
@keyframes shieldEasterSpin {
  0% {
    transform: rotateY(0);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  }
  50% {
    transform: rotateY(180deg);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5))
            drop-shadow(0 0 60px rgba(203, 160, 63, 0.95));
  }
  100% {
    transform: rotateY(360deg);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  }
}

.shield .logo.easter-spin {
  /* Überschreibt während der Animation float-Tilt und logoGlow */
  animation: shieldEasterSpin 1.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Logo Glow Pulse */
@keyframes logoGlow {
  0%, 100% { 
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)) 
            drop-shadow(0 0 20px rgba(203, 160, 63, 0));
  }
  50% { 
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)) 
            drop-shadow(0 0 40px rgba(203, 160, 63, 0.3));
  }
}

/* --- Champion-Pin (Saisonende-Modus) --- */
.champion-pin {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, rgba(203, 160, 63, 0.25), rgba(203, 160, 63, 0.05));
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  width: fit-content;
  box-shadow: 0 0 24px rgba(203, 160, 63, 0.3);
  animation: championPinPulse 3s ease-in-out infinite;
}

@keyframes championPinPulse {
  0%, 100% { box-shadow: 0 0 24px rgba(203, 160, 63, 0.3); }
  50%      { box-shadow: 0 0 40px rgba(203, 160, 63, 0.6); }
}

.champion-trophy {
  width: 32px;
  height: 32px;
  color: var(--gold);
  flex-shrink: 0;
}

.champion-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.champion-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

.champion-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.champion-season {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.season-ended-note {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-top: var(--space-md);
}

/* --- Countdown Section --- */
.countdown-wrapper {
  margin-top: var(--space-lg);
}

.countdown-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.countdown-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.countdown {
  display: flex;
  align-items: baseline;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.counter {
  flex: 0 0 auto;
  min-width: 60px;
  text-align: center;
  position: relative;
  background: none;
  border: none;
  padding: 0;
}

/* Dezente Trennlinien zwischen den Countern - konstante Höhe trotz unterschiedlicher Counter-Größen */
.counter:not(:last-child)::after {
  content: '';
  position: absolute;
  right: calc(var(--space-xl) * -0.5);
  top: 50%;
  transform: translateY(-50%);
  height: 2.4rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-accent) 30%, var(--border-accent) 70%, transparent);
  pointer-events: none;
}

.counter b {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  line-height: 1;
  transform-style: preserve-3d;
}

/* Visuelle Hierarchie: Tage XL und hell, Sekunden klein und gedimmt */
.counter:nth-child(1) b {
  font-size: 3.4rem;
  color: var(--gold-light);
  text-shadow: 0 2px 16px rgba(203, 160, 63, 0.25);
}

.counter:nth-child(2) b {
  font-size: 2.6rem;
}

.counter:nth-child(3) b {
  font-size: 2rem;
}

.counter:nth-child(4) b {
  font-size: 1.4rem;
  color: var(--gold-dark);
  opacity: 0.75;
}

.counter:nth-child(4) span {
  opacity: 0.75;
}

/* Flip animation only for seconds (last counter) */
.counter:last-child b {
  animation: flipNumber 0.3s ease-out;
}

@keyframes flipNumber {
  0% {
    transform: translateY(-8px) scale(1.15);
    opacity: 0.5;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.counter span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: var(--space-xs);
}

/* Urgent: Glow auf den Zahlen statt Box-Pulse (es gibt keine Box mehr) */
.countdown.urgent .counter b {
  animation: counterPulse 1.5s ease-in-out infinite;
  color: var(--gold-light);
}

@keyframes counterPulse {
  0%, 100% { text-shadow: 0 0 0 rgba(203, 160, 63, 0); }
  50% { text-shadow: 0 0 24px rgba(203, 160, 63, 0.7); }
}

/* Imminent: letzte 60 s — intensiverer Pulse + Sekunden-Bounce + Hero-Flash */
.countdown.imminent .counter b {
  animation: counterPulseStrong 1s ease-in-out infinite;
}

@keyframes counterPulseStrong {
  0%, 100% { text-shadow: 0 0 4px rgba(203, 160, 63, 0.4); }
  50%      { text-shadow: 0 0 32px rgba(203, 160, 63, 1); }
}

@keyframes tickBounce {
  0%   { transform: translateY(0) scale(1); }
  30%  { transform: translateY(-3px) scale(1.18); color: var(--gold-light); }
  100% { transform: translateY(0) scale(1); }
}

.counter:last-child b.tick-bounce {
  animation: tickBounce 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes imminentFlash {
  0%, 100% { box-shadow: inset 0 0 0 rgba(203, 160, 63, 0); }
  25%      { box-shadow: inset 0 0 120px rgba(203, 160, 63, 0.10); }
}

.hero.imminent-flash {
  animation: imminentFlash 0.6s ease-out;
}

/* --- Sections --- */
section {
  padding: var(--space-3xl) 0;
  position: relative;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 800px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: sectionLinePulse 3s ease-in-out infinite;
}

/* Section Line Pulse */
@keyframes sectionLinePulse {
  0%, 100% { 
    opacity: 0.4;
    box-shadow: 0 0 10px rgba(203, 160, 63, 0);
  }
  50% { 
    opacity: 0.9;
    box-shadow: 0 0 20px rgba(203, 160, 63, 0.5);
  }
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-primary);
}

.section-header h2 svg {
  width: 1.2em;
  height: 1.2em;
  color: var(--gold);
}

.section-header .sub {
  color: var(--text-secondary);
  margin-top: var(--space-sm);
}

/* --- Top-3-Podest --- */
.podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: var(--space-md);
  align-items: end;
  max-width: 720px;
  margin: 0 auto var(--space-xl);
}

.podium-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.2));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-sm) var(--space-lg);
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

@media (hover: hover) {
  .podium-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md), 0 0 24px rgba(203, 160, 63, 0.18);
  }
}

.podium-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.podium-rank-1 {
  border-color: rgba(203, 160, 63, 0.45);
  background: linear-gradient(180deg, rgba(203, 160, 63, 0.18), rgba(203, 160, 63, 0.02) 60%, transparent);
  box-shadow: 0 0 30px rgba(203, 160, 63, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  min-height: 240px;
  padding-bottom: var(--space-xl);
}

.podium-rank-2 {
  border-color: rgba(192, 192, 192, 0.3);
  background: linear-gradient(180deg, rgba(192, 192, 192, 0.10), transparent 60%);
  min-height: 200px;
}

.podium-rank-3 {
  border-color: rgba(205, 127, 50, 0.3);
  background: linear-gradient(180deg, rgba(205, 127, 50, 0.10), transparent 60%);
  min-height: 180px;
}

.podium-trophy {
  width: 28px;
  height: 28px;
}

.podium-trophy svg {
  width: 100%;
  height: 100%;
}

.podium-rank-1 .podium-trophy { color: var(--gold); }
.podium-rank-2 .podium-trophy { color: var(--silver); }
.podium-rank-3 .podium-trophy { color: var(--bronze); }

.podium-rank-numeral {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.podium-rank-1 .podium-rank-numeral { color: var(--gold); font-size: 2.8rem; }
.podium-rank-2 .podium-rank-numeral { color: var(--silver); }
.podium-rank-3 .podium-rank-numeral { color: var(--bronze); }

.podium-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: #0a0a0a;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  margin: 4px 0 2px;
}

.podium-rank-2 .podium-avatar {
  background: linear-gradient(135deg, #e8e8e8, var(--silver));
}

.podium-rank-3 .podium-avatar {
  background: linear-gradient(135deg, #e2a474, var(--bronze));
}

.podium-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 4px;
}

.podium-rank-1 .podium-name { font-size: 1.05rem; }

.podium-points {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.podium-points b {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.podium-rank-1 .podium-points b { font-size: 1.9rem; }

.podium-points span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Highlight-Pulse für angesprungene Tabellenzeile */
.stand-row.podium-highlight {
  animation: rowHighlight 1.2s ease-out;
}

@keyframes rowHighlight {
  0% { background: rgba(203, 160, 63, 0.4); }
  100% { background: transparent; }
}

@media (max-width: 560px) {
  .podium {
    grid-template-columns: 1fr;
    max-width: 320px;
    gap: var(--space-sm);
  }
  .podium-rank-1,
  .podium-rank-2,
  .podium-rank-3 {
    min-height: 0;
    padding: var(--space-md);
  }
  /* Reihenfolge: 1, 2, 3 */
  .podium-rank-1 { order: 1; }
  .podium-rank-2 { order: 2; }
  .podium-rank-3 { order: 3; }
  .podium-card {
    flex-direction: row;
    text-align: left;
    gap: var(--space-md);
    align-items: center;
  }
  .podium-points {
    margin-top: 0;
    margin-left: auto;
    align-items: flex-end;
  }
  .podium-name {
    flex: 1;
    min-width: 0;
  }
}

/* --- Titelverteidiger-Banner --- */
.defender-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  padding: var(--space-sm) var(--space-lg);
  background: linear-gradient(135deg, rgba(203, 160, 63, 0.18), rgba(203, 160, 63, 0.04));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  text-align: center;
  flex-wrap: wrap;
}

.defender-banner .defender-head {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.defender-banner svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
}

.defender-banner .defender-label {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.defender-banner .defender-name {
  font-weight: 700;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.defender-banner .defender-season {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.defender-banner .defender-season::before {
  content: '· ';
  margin-right: 2px;
}

@media (max-width: 480px) {
  .defender-banner {
    flex-direction: column;
    gap: 4px;
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-md);
  }
  .defender-banner .defender-name {
    font-size: 1.15rem;
  }
  .defender-banner .defender-season::before {
    content: '';
    margin-right: 0;
  }
}

/* --- Saison-Fortschrittsbalken --- */
.season-progress {
  margin: 0 0 var(--space-lg);
}

.season-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.season-progress-phase {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  font-style: italic;
}

.season-progress-label strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin: 0 2px;
}

.season-progress-pct {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.season-progress-track {
  position: relative;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  /* Tick-Marks alle 1/34 = ~2.94% */
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(100% / 34 - 1px),
      rgba(255, 255, 255, 0.05) calc(100% / 34 - 1px),
      rgba(255, 255, 255, 0.05) calc(100% / 34)
    );
}

.season-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(203, 160, 63, 0.4);
}

.season-progress-marker {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--gold-light);
  border: 2px solid var(--bg-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(203, 160, 63, 0.7);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Saisonkalender --- */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: var(--space-sm);
}

.match-day-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-xs);
  text-align: center;
  position: relative;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

@media (hover: hover) {
  .match-day-pill:hover {
    border-color: var(--border-accent);
    transform: translateY(-1px);
  }
}

.match-day-pill .md-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  line-height: 1;
}

.match-day-pill .md-date {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.match-day-pill.past {
  opacity: 0.42;
}

.match-day-pill.past .md-number {
  color: var(--text-secondary);
}

.match-day-pill.current {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(203, 160, 63, 0.22), rgba(203, 160, 63, 0.05));
  box-shadow: 0 0 16px rgba(203, 160, 63, 0.28);
  animation: matchDayPulse 2.8s ease-in-out infinite;
}

@keyframes matchDayPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(203, 160, 63, 0.28); }
  50% { box-shadow: 0 0 26px rgba(203, 160, 63, 0.5); }
}

.match-day-pill.current .md-number {
  color: var(--gold-light);
}

.match-day-pill .md-note-icon {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.65rem;
  color: var(--gold);
  opacity: 0.75;
  line-height: 1;
}

.calendar-break {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
  margin: var(--space-xs) 0;
}

.calendar-break svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
  flex-shrink: 0;
  opacity: 0.75;
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.legend-item::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-elevated);
  display: inline-block;
}

.legend-item.past::before {
  opacity: 0.42;
}

.legend-item.current::before {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(203, 160, 63, 0.22), rgba(203, 160, 63, 0.05));
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  max-width: 800px;
  margin: 0 auto;
}

@media (hover: hover) {
  .card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
  }
}

/* --- Table Styles --- */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table thead {
  position: relative;
}

.table thead::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--gold) 50%, transparent 95%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.table thead th {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: left;
  padding: var(--space-md);
  background: var(--bg-elevated);
}

.table thead th.rank,
.table thead th.points {
  text-align: center;
}

/* Sortable Table Headers */
.table thead th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.table thead th.sortable:hover {
  color: var(--gold);
}

.table thead th.sortable::after {
  content: '↕';
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
  font-size: 0.85em;
  font-weight: 700;
  line-height: 1;
  opacity: 0.45;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.table thead th.sortable:hover::after {
  opacity: 0.75;
}

.table thead th.sortable.sort-asc::after {
  content: '↑';
  opacity: 1;
  color: var(--gold);
}

.table thead th.sortable.sort-desc::after {
  content: '↓';
  opacity: 1;
  color: var(--gold);
}

.table tbody tr {
  transition: all var(--transition-fast);
  border-bottom: 1px solid var(--border-color);
}

/* Lazy Staggered Table Row Animation - only when table is visible */
.table.animate-rows tbody tr {
  opacity: 0;
  transform: translateX(-20px);
  animation: tableRowSlideIn 0.4s ease forwards;
}

@keyframes tableRowSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Stagger delays via CSS custom property set by JS */
.table.animate-rows tbody tr { animation-delay: calc(var(--row-index, 0) * 0.04s); }

.table tbody tr:last-child {
  border-bottom: none;
}

.table tbody tr:hover {
  background: rgba(203, 160, 63, 0.05);
}

.table td {
  padding: var(--space-md);
  vertical-align: middle;
}

.table td.rank,
.table td.points {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.table td.rank {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-muted);
  width: 60px;
}

.table td.points b {
  font-weight: 700;
  color: var(--gold);
}

/* Fehler-/Leerzustand-Zeile in Tabellen */
.table td.meta {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: var(--space-lg);
}

/* --- Top 3 Highlighting (an Platz gekoppelt, robust gegen Sortierung) --- */
.stand-row.rank-1 td.rank { color: var(--gold); }
.stand-row.rank-2 td.rank { color: var(--silver); }
.stand-row.rank-3 td.rank { color: var(--bronze); }

.stand-row.rank-1 {
  background: linear-gradient(90deg, rgba(203, 160, 63, 0.1), transparent);
}

.stand-row.rank-2 {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.08), transparent);
}

.stand-row.rank-3 {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.08), transparent);
}

/* --- Badge --- */
.badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #0a0a0a;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  cursor: default;
}

/* Badge Hover Glow */
@media (hover: hover) {
  .badge:hover {
    transform: scale(1.05);
    box-shadow:
      var(--shadow-sm),
      0 0 20px rgba(203, 160, 63, 0.5),
      0 0 40px rgba(203, 160, 63, 0.3);
  }
}

/* --- Stars (Hall of Fame) --- */
.stars {
  display: inline-flex;
  gap: 4px;
  justify-content: center;
}

.stars .star {
  width: 20px;
  height: 20px;
  color: var(--gold);
  animation: twinkle 2s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.55; }
  100% { opacity: 1; }
}

/* --- Skeleton Loader --- */
.skeleton-row {
  display: flex;
  align-items: center;
  padding: var(--space-md);
  gap: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

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

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-elevated) 0%,
    var(--bg-secondary) 50%,
    var(--bg-elevated) 100%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-rank {
  width: 40px;
  height: 28px;
}

.skeleton-name {
  flex: 1;
  height: 28px;
  max-width: 120px;
  border-radius: var(--radius-full);
}

.skeleton-points {
  width: 50px;
  height: 28px;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Pull to Refresh Indicator --- */
.pull-indicator {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--gold);
  backdrop-filter: blur(10px);
  z-index: 1000;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.pull-indicator.pulling {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pull-indicator.refreshing {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pull-indicator svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.pull-indicator.pulling svg {
  transform: rotate(180deg);
}

.pull-indicator.refreshing svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Table Actions --- */
.table-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.table-actions .stamp {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.table-actions .right {
  display: flex;
  gap: var(--space-sm);
}

/* --- Footer --- */
footer {
  padding: var(--space-3xl) 0;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
}

footer p {
  margin-bottom: var(--space-sm);
}

footer small {
  font-size: 0.85rem;
}

footer a {
  color: var(--gold);
}

footer a:hover {
  text-decoration: underline;
}

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Screen Reader Only --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Skip Link (Keyboard-User) --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  background: var(--gold);
  color: var(--bg-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-md);
  color: var(--bg-primary);
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

/* Sticky-Header-Versatz für Skip-Link-Sprünge */
section[id] {
  scroll-margin-top: 90px;
}
@media (max-width: 768px) {
  section[id] {
    scroll-margin-top: 12px;
  }
}

/* Sortable Header Focus für Keyboard-User */
.table thead th.sortable:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

/* Auto-Refresh-Hinweis unter dem Stand-Stempel */
.auto-refresh-hint {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* --- HOF Specific --- */
#hof .table th:nth-child(2),
#hof .table td:nth-child(2) {
  text-align: center;
  width: 100px;
}

#hof .table th:nth-child(3),
#hof .table td:nth-child(3) {
  text-align: right;
}

#hof .table td:nth-child(3) {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.season-item {
  line-height: 1.4;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .hero {
    padding: var(--space-2xl) 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }
  
  .shield {
    order: -1;
  }
  
  .shield .logo {
    max-width: 280px;
  }
  
  .kicker {
    margin: 0 auto;
  }
  
  .hero h1::after {
    content: '';
    display: block;
    width: 60%;
    height: 2px;
    margin: var(--space-md) auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
  }
  
  .countdown {
    justify-content: center;
  }
  
  .counter {
    min-width: 65px;
  }
  
  section {
    padding: var(--space-2xl) 0;
  }
  
  .card {
    padding: var(--space-md);
    border-radius: var(--radius-md);
  }
  
  .table thead th,
  .table td {
    padding: var(--space-sm) var(--space-sm);
    font-size: 0.85rem;
  }
  
  .table td.rank {
    width: 45px;
    font-size: 1rem;
  }
  
  .badge {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8rem;
  }
  
  #hof .table th:nth-child(3),
  #hof .table td:nth-child(3) {
    text-align: left;
    font-size: 0.8rem;
  }
  
  .stars .star {
    width: 16px;
    height: 16px;
  }
  
  .table-actions {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .table-actions .right {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  :root {
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
  }
  
  .wrap {
    padding: 0 var(--space-md);
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .kicker small {
    font-size: 0.75rem;
  }
  
  .counter {
    min-width: 50px;
  }

  .calendar-grid {
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
    gap: var(--space-xs);
  }
  .match-day-pill .md-number {
    font-size: 1.15rem;
  }
  .match-day-pill .md-date {
    font-size: 0.65rem;
  }

  .countdown {
    gap: var(--space-md);
  }
  .counter:not(:last-child)::after {
    right: calc(var(--space-md) * -0.5);
  }
  .counter:nth-child(1) b { font-size: 2rem; }
  .counter:nth-child(2) b { font-size: 1.6rem; }
  .counter:nth-child(3) b { font-size: 1.3rem; }
  .counter:nth-child(4) b { font-size: 1rem; }

  .counter span {
    font-size: 0.6rem;
  }
}

/* --- Landscape Mobile --- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: var(--space-xl) 0;
  }
  
  .shield .logo {
    max-width: 200px;
  }
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg), 0 0 20px rgba(203, 160, 63, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (hover: hover) {
  .back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(203, 160, 63, 0.5);
  }

  .back-to-top:hover svg {
    transform: translateY(-2px);
  }
}

.back-to-top:active {
  transform: translateY(-2px) scale(1);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  color: #0a0a0a;
  transition: transform var(--transition-fast);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 44px;
    height: 44px;
  }
  
  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* --- Site Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  gap: var(--space-md);
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.header-brand:hover {
  color: var(--gold);
}

.header-brand span {
  transition: color 0.4s ease, background 0.4s ease;
}

/* Hero out-of-view: Brand-Text bekommt Gold-Gradient, Header subtilen Goldglow */
.site-header.hero-out {
  border-bottom-color: var(--border-accent);
  box-shadow: 0 2px 24px rgba(203, 160, 63, 0.12);
}

.site-header.hero-out .header-brand span {
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-brand img {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

/* --- Header-Navigation (Desktop) --- */
.header-nav {
  display: none;
  gap: var(--space-lg);
  margin-left: auto;
  margin-right: var(--space-lg);
}

@media (min-width: 900px) {
  .header-nav {
    display: inline-flex;
    align-items: center;
  }
}

.header-nav a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.header-nav a:hover {
  color: var(--gold);
}

.header-nav a[aria-current="true"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* --- Login Button (Coming Soon) --- */
.login-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: not-allowed;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

@media (hover: hover) {
  .login-btn:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md), 0 0 20px var(--gold-glow);
    transform: translateY(-1px);
  }
}

.login-btn svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
}

.login-btn-label {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.login-btn-badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #0a0a0a;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.login-btn.shake {
  animation: loginShake 0.45s ease;
}

@keyframes loginShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

@media (max-width: 768px) {
  /* Header: nicht sticky, Brand-Text aus, Login rechts */
  .site-header {
    position: static;
    background: var(--bg-secondary);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .header-wrap {
    padding: var(--space-sm) var(--space-md);
  }
  .header-brand span {
    display: none;
  }
  .header-brand img {
    width: 44px;
    height: 44px;
  }

  /* Login-Button kompakt */
  .login-btn {
    padding: var(--space-xs) var(--space-sm);
    gap: var(--space-xs);
  }
  .login-btn-label {
    display: none;
  }
  .login-btn-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
  }
  .login-btn svg {
    width: 14px;
    height: 14px;
  }

  /* Glassmorphism abschalten — Performance auf Low-End-Phones */
  .card,
  .kicker,
  .pull-indicator {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .card {
    background: var(--bg-secondary);
  }
  .kicker,
  .pull-indicator {
    background: var(--bg-elevated);
  }

  /* Countdown: enger und kleiner für Mobile */
  .countdown {
    gap: var(--space-lg);
  }
  .counter:not(:last-child)::after {
    right: calc(var(--space-lg) * -0.5);
  }
  .counter:nth-child(1) b { font-size: 2.6rem; }
  .counter:nth-child(2) b { font-size: 2rem; }
  .counter:nth-child(3) b { font-size: 1.6rem; }
  .counter:nth-child(4) b { font-size: 1.15rem; }
}

/* --- Reduced Motion (Accessibility) --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html {
    scroll-behavior: auto;
  }
  /* Parallax-Pattern und Float-Logo abschalten */
  body::before {
    background-position-y: 0 !important;
  }
  .shield-inner,
  .shield .logo,
  .hero-blob {
    animation: none !important;
    transform: none !important;
  }
}

/* --- Print Styles --- */
@media print {
  body::before,
  .btn,
  .login-btn,
  .countdown {
    display: none !important;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

