/* Brannedartsliga – Startseite Konzept
   Ligafarben: Rot = A · Grün = B · Gelb = C
*/
:root {
  --bg: #0a0b0e;
  --bg-elevated: #101218;
  --bg-card: #151922;
  --bg-card-hover: #1b2130;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f5f7;
  --muted: #9aa3b2;

  /* Liga-Farben */
  --liga-a: #e31c23;
  --liga-a-soft: rgba(227, 28, 35, 0.18);
  --liga-a-glow: rgba(227, 28, 35, 0.45);
  --liga-b: #22c55e;
  --liga-b-soft: rgba(34, 197, 94, 0.18);
  --liga-b-glow: rgba(34, 197, 94, 0.45);
  --liga-c: #f5c518;
  --liga-c-soft: rgba(245, 197, 24, 0.18);
  --liga-c-glow: rgba(245, 197, 24, 0.45);

  /* Default accent = A (rot), wird pro Panel überschrieben */
  --accent: var(--liga-a);
  --accent-soft: var(--liga-a-soft);
  --accent-glow: var(--liga-a-glow);

  --radius: 18px;
  --radius-sm: 12px;
  /* kein weicher Drop-Schatten (verzerrt bei Animationen/Transforms) */
  --shadow: none;
  --font: "Outfit", system-ui, sans-serif;
  --max: 1140px;
  --ring-circ: 326.73; /* 2Ï€ * 52 */

  /*
   * Sektions-Rhythmus (ein System für die ganze Seite)
   * --space-section: Außenabstand oben/unten jeder Content-Sektion
   * --space-section-soft: etwas enger (z. B. nach Hero / vor Footer)
   * --space-block: Abstand zwischen Kopf und Inhalt in einer Sektion
   */
  --space-section: clamp(2.75rem, 5.5vw, 4rem);
  --space-section-soft: clamp(2.1rem, 4.2vw, 3.1rem);
  --space-block: clamp(1rem, 2.2vw, 1.45rem);
  --space-band: clamp(1.35rem, 3vw, 2rem); /* Zwischen-Bänder / Bridge */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/*
 * Handy: nach Scroll-Stop oft „will nach oben“ –
 * Browser-Leiste aendert dvh + Scroll-Anchoring. Stabilisieren.
 */
@media (max-width: 899px) {
  html {
    scroll-behavior: auto;
  }

  body {
    overflow-anchor: none;
  }

  main,
  .section-breath,
  .hero,
  .hero--stage,
  .matchday-hub,
  .stats,
  .fotos-section,
  .nav-buttons-section,
  .community-stage {
    overflow-anchor: none;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Einheitlicher Sektions-Rhythmus —— */
.section-y {
  padding-block: var(--space-section);
}

.section-y--soft {
  padding-block: var(--space-section-soft);
}

/* Dezenter Atem-Trenner: dünner Tricolor-Hauch zwischen Blöcken */
.section-breath {
  position: relative;
}

/* Tricolor-Trenner: flach, ohne Glow – Grünanteil reduziert (kein Lichtfleck) */
.section-breath::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(19.6rem, 67.2vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--liga-a) 70%, transparent) 12%,
    color-mix(in srgb, var(--liga-c) 55%, transparent) 50%,
    color-mix(in srgb, var(--liga-a) 70%, transparent) 88%,
    transparent 100%
  );
  opacity: 0.55;
  pointer-events: none;
  z-index: 2;
  box-shadow: none;
  filter: none;
}

/* kein ::after-Glow mehr unter den Linien */

@media (max-width: 640px) {
  :root {
    --space-section: 2.15rem;
    --space-section-soft: 1.75rem;
    --space-block: 0.95rem;
    --space-band: 1.25rem;
  }

  .container {
    width: min(100% - 1.5rem, var(--max));
  }
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

.dot.red,
.logo-stripe.red,
.liga-strip .red {
  background: var(--liga-a);
}
.dot.green,
.logo-stripe.green,
.liga-strip .green {
  background: var(--liga-b);
}
.dot.yellow,
.logo-stripe.yellow,
.liga-strip .yellow {
  background: var(--liga-c);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 11, 14, 0.92);
  border-bottom: 1px solid var(--border);
  /* eigener Composite-Layer – Optik gleich, Scroll oft flüssiger */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 0.75rem 1rem;
}

/* Rechts: 3K + Partner als Gruppe */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  flex-shrink: 0;
}

/* Sanft schimmernder Pfeil zwischen den Logos – nur im Hero sichtbar */
.header-arrow-track {
  position: relative;
  flex: 1 1 auto;
  min-width: 3.5rem;
  height: 28px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
  /* weich ausblenden an den Enden Richtung Logos */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
}

.header-arrow-track.is-hero-visible {
  opacity: 1;
  visibility: visible;
}

.header-arrow-track:not(.is-hero-visible) .header-arrow,
.header-arrow-track:not(.is-hero-visible) .header-arrow-glyph {
  animation-play-state: paused;
}

.header-arrow {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: -0.875rem;
  /* hin zum 3K-Logo, zurück zum Branne-Logo */
  animation: header-arrow-travel 5.5s ease-in-out infinite;
  will-change: left, transform;
}

.header-arrow-glyph {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.95),
    0 0 14px rgba(255, 255, 255, 0.65),
    0 0 28px rgba(245, 197, 24, 0.45),
    0 0 40px rgba(34, 197, 94, 0.28),
    0 0 52px rgba(227, 28, 35, 0.22);
  animation: header-arrow-shimmer 2.4s ease-in-out infinite;
}

/* hin (→) · kurz warten · zurück (gespiegelt = ←) */
@keyframes header-arrow-travel {
  0% {
    left: 0;
    transform: scaleX(1);
  }
  42% {
    left: calc(100% - 1.75rem);
    transform: scaleX(1);
  }
  50% {
    left: calc(100% - 1.75rem);
    transform: scaleX(-1);
  }
  92% {
    left: 0;
    transform: scaleX(-1);
  }
  100% {
    left: 0;
    transform: scaleX(1);
  }
}

@keyframes header-arrow-shimmer {
  0%,
  100% {
    opacity: 0.72;
    filter: brightness(0.95);
    text-shadow:
      0 0 5px rgba(255, 255, 255, 0.7),
      0 0 12px rgba(255, 255, 255, 0.4),
      0 0 22px rgba(245, 197, 24, 0.28);
  }
  50% {
    opacity: 1;
    filter: brightness(1.25);
    text-shadow:
      0 0 8px rgba(255, 255, 255, 1),
      0 0 18px rgba(255, 255, 255, 0.75),
      0 0 32px rgba(245, 197, 24, 0.55),
      0 0 48px rgba(34, 197, 94, 0.35),
      0 0 60px rgba(227, 28, 35, 0.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-arrow,
  .header-arrow-glyph {
    animation: none !important;
  }

  .header-arrow {
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.75;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.logo-text {
  display: inline;
  white-space: nowrap;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  text-transform: uppercase;
}

.btn-link {
  background: none;
  border: none;
  color: var(--liga-a);
  padding-inline: 0.5rem;
  font-weight: 700;
}

/* Header rechts: nur 3K-Darts-Logo → #live */
.header-3k {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
  border-radius: 6px;
  transition: transform 0.25s ease, filter 0.25s ease, opacity 0.2s ease;
}

.header-3k:hover,
.header-3k:focus-visible {
  transform: scale(1.05);
  outline: none;
  filter: brightness(1.1);
}

.header-3k:active {
  transform: scale(0.97);
}

.header-3k-logo {
  display: block;
  height: 22px;
  width: auto;
  max-width: min(42vw, 160px);
  object-fit: contain;
}

/* Buttons – sanfter Rot-Hover (alle CTAs) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition:
    background 1s cubic-bezier(0.22, 0.61, 0.36, 1),
    color 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 1s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 1s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.4s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--liga-a);
  color: #fff;
  box-shadow: 0 8px 28px var(--liga-a-glow);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active,
.btn-primary.is-touch-hot {
  background: #e31c23;
  color: #0a0a0a;
  border-color: #e31c23;
  box-shadow: 0 8px 28px rgba(227, 28, 35, 0.4);
  animation: btn-soft-red-pulse 2.2s ease-in-out 1s infinite;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: #e31c23;
  border-color: #e31c23;
  color: #0a0a0a;
  animation: btn-soft-red-pulse 2.2s ease-in-out 1s infinite;
}

/* Hero: fast voller Viewport – Rubriken erst darunter */
.hero {
  position: relative;
  /* Banner (~32px) + Header (~64px) abziehen – svh zuerst (stabil) */
  min-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* PC: dynamische Viewport-Hoehe ok */
@media (min-width: 900px) {
  .hero {
    min-height: calc(100dvh - 64px);
  }
}

/* Screenreader-only (Hero-Titel unsichtbar, aber SEO/A11y) */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/*
 * Hero-Stage: Artwork IST der Hero
 * – kein Bild-Rahmen / keine Karte
 * – löst sich ins reine Schwarz auf (passt zu Unterseiten)
 * – Dart-Glow, Sheen, leichte Blooms, Fog
 */
.hero--stage {
  background: #000;
  justify-content: stretch;
  align-items: stretch;
}

.hero-stage-void {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000;
  pointer-events: none;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  background: #000;
  animation: hero-stage-enter 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/*
 * Core: gesamte Motivfläche immer komplett sichtbar (kein Crop)
 */
.hero-stage-core {
  position: relative;
  z-index: 2;
  width: min(100vw, calc((100dvh - 64px) * 16 / 9));
  height: min(calc(100dvh - 64px), calc(100vw * 9 / 16));
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* sehr dezentes Atmen – kein Hintergrund-Licht */
  animation: hero-stage-breathe 12s ease-in-out 1s infinite;
  will-change: transform;
}

/* PC: Querbild sichtbar · Handy: Video sichtbar */
.hero-stage-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
  background: transparent;
}

.hero-stage-video {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #000;
  border: 0;
  opacity: 0;
  /* Einblenden sehr sanft, Ausblenden etwas knapper */
  transition: opacity 2.1s cubic-bezier(0.18, 0.18, 0.15, 1);
}

.hero-stage-video.is-visible {
  opacity: 1;
  transition-duration: 2.25s;
  transition-timing-function: cubic-bezier(0.1, 0.28, 0.12, 1);
}

.hero-stage-video.is-fading-out {
  opacity: 0;
  transition-duration: 1.05s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Alte Effekte / Paintstorm: aus */
.hero-stage-ember,
.hero-paintstorm,
.hero-stage-dart,
.hero-stage-sheen,
.hero-stage-bloom,
.hero-stage-bloom--a,
.hero-stage-bloom--b,
.hero-stage-bloom--c,
.hero-stage-vignette,
.hero-stage-fog,
.hero-stage-fog--l,
.hero-stage-fog--r,
.hero-stage-fog--b {
  display: none !important;
}

/*
 * PC: nur Zoom rein/raus am Querbild
 * Handy: Video (kein Zoom-Layer)
 */
@media (min-width: 641px) {
  .hero-stage-core {
    animation: none;
    overflow: hidden;
  }

  /* picture-Wrapper: Layout wie bisheriges Desktop-Img */
  .hero-stage-picture {
    display: contents;
  }

  .hero-stage-img--desktop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: 50% 42%;
    animation: hero-film-zoom 16s ease-in-out infinite alternate;
    will-change: transform;
  }

  @keyframes hero-film-zoom {
    0% {
      transform: scale(1.03);
    }
    100% {
      transform: scale(1.12);
    }
  }

  .hero--stage.is-fx-paused .hero-stage-img--desktop {
    animation-play-state: paused !important;
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-stage-img--desktop {
      animation: none !important;
      transform: none;
    }
  }
}

.hero-scroll-cue--stage {
  position: absolute;
  left: 50%;
  bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 6;
  margin: 0;
  color: rgba(220, 226, 236, 0.5);
  opacity: 0.8;
}

.hero-scroll-cue--stage:hover {
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

@keyframes hero-stage-enter {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes hero-stage-breathe {
  0%,
  100% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.012) translateY(-4px);
  }
}

.hero--stage.is-fx-paused .hero-stage-core {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage,
  .hero-stage-core {
    animation: none !important;
  }

  .hero-stage {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1100px) {
  .hero-stage-core {
    width: min(100vw, calc((100dvh - 64px) * 16 / 9));
    height: min(calc(100dvh - 64px), calc(100vw * 9 / 16));
  }
}

/*
 * Hero-Aurora: drei weiche Ligabänder (A/B/C) driften im Raum,
 * feiner Staub, Spotlight hinter dem Titel – ruhig, modern, ohne Sweep.
 */
.hero-aurora {
  position: absolute;
  inset: -15% -20%;
  z-index: 0;
  pointer-events: none;
  filter: blur(48px);
  opacity: 0.85;
}

.hero-ribbon {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
}

/* Rot – A */
.hero-ribbon--a {
  width: min(70vw, 34rem);
  height: min(38vw, 18rem);
  left: -8%;
  top: 18%;
  background: radial-gradient(
    ellipse at center,
    rgba(227, 28, 35, 0.55) 0%,
    rgba(227, 28, 35, 0.12) 45%,
    transparent 70%
  );
  animation: hero-ribbon-a 18s ease-in-out infinite;
}

/* Grün – B */
.hero-ribbon--b {
  width: min(65vw, 30rem);
  height: min(36vw, 16rem);
  right: -6%;
  bottom: 12%;
  background: radial-gradient(
    ellipse at center,
    rgba(34, 197, 94, 0.48) 0%,
    rgba(34, 197, 94, 0.1) 48%,
    transparent 72%
  );
  animation: hero-ribbon-b 22s ease-in-out infinite;
}

/* Gelb – C */
.hero-ribbon--c {
  width: min(55vw, 26rem);
  height: min(40vw, 20rem);
  left: 28%;
  top: 42%;
  background: radial-gradient(
    ellipse at center,
    rgba(245, 197, 24, 0.4) 0%,
    rgba(245, 197, 24, 0.08) 50%,
    transparent 72%
  );
  animation: hero-ribbon-c 16s ease-in-out infinite;
}

@keyframes hero-ribbon-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-8deg) scale(1);
    opacity: 0.75;
  }
  50% {
    transform: translate3d(12%, 10%, 0) rotate(6deg) scale(1.12);
    opacity: 1;
  }
}

@keyframes hero-ribbon-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(10deg) scale(1.05);
    opacity: 0.7;
  }
  50% {
    transform: translate3d(-14%, -8%, 0) rotate(-4deg) scale(1);
    opacity: 0.95;
  }
}

@keyframes hero-ribbon-c {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-2deg) scale(0.95);
    opacity: 0.55;
  }
  50% {
    transform: translate3d(8%, -12%, 0) rotate(8deg) scale(1.15);
    opacity: 0.9;
  }
}

/* Weiches Spotlight hinter dem Titel */
.hero-spotlight {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 0;
  width: min(90vw, 42rem);
  height: min(55vw, 22rem);
  margin-left: calc(min(90vw, 42rem) / -2);
  margin-top: calc(min(55vw, 22rem) / -2);
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.02) 38%,
    transparent 68%
  );
  animation: hero-spotlight-breathe 9s ease-in-out infinite;
}

/*
 * Spielstätten – automatisch, Fokus-Effekt über A/B/C
 */
/* Spielstätten-Animation: aus (Performance) – Platz entfällt */
.hero-venues {
  display: none !important;
}



@media (prefers-reduced-motion: reduce) {
  .hero-venue.is-enter,
  .hero-venue.is-enter .hero-venue-text,
  .hero-venue.is-enter .hero-venue-echo--1,
  .hero-venue.is-enter .hero-venue-echo--2,
  .hero-venue.is-active,
  .hero-venue.is-active .hero-venue-text,
  .hero-venue.is-exit,
  .hero-venue-char {
    animation: none !important;
  }

  .hero-venue.is-active {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

.hero-venue {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 100%;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: opacity, transform, filter;
}

.hero-venue-text {
  position: relative;
  z-index: 2;
  display: block;
  font-size: clamp(0.78rem, 2vw, 1.02rem);
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.55),
    0 0 18px rgba(255, 255, 255, 0.35),
    0 0 32px rgba(255, 255, 255, 0.18);
}

/* Bokeh-Echos: unscharfe Ebenen hinter dem Fokus */
.hero-venue-echo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: block;
  width: max-content;
  max-width: 100%;
  transform: translate(-50%, -50%);
  font-size: clamp(0.78rem, 2vw, 1.02rem);
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.hero-venue-echo--1 {
  filter: blur(7px);
}

.hero-venue-echo--2 {
  filter: blur(16px);
  color: rgba(255, 255, 255, 0.22);
}

/* —— Fokus rein (Rack-Focus) —— */
.hero-venue.is-enter {
  visibility: visible;
  animation: hero-venue-focus-in 0.85s cubic-bezier(0.18, 0.75, 0.22, 1) both;
}

.hero-venue.is-enter .hero-venue-text {
  animation: hero-venue-text-focus-in 0.85s cubic-bezier(0.18, 0.75, 0.22, 1) both;
}

.hero-venue.is-enter .hero-venue-echo--1 {
  animation: hero-venue-bokeh-in 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) 0.04s both;
}

.hero-venue.is-enter .hero-venue-echo--2 {
  animation: hero-venue-bokeh-in-deep 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.06s both;
}

/* —— Scharf im Fokus halten —— */
.hero-venue.is-active {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
  filter: blur(0) brightness(1.05) contrast(1.05);
  animation: hero-venue-focus-hold 2.2s ease-in-out infinite;
}

.hero-venue.is-active .hero-venue-text {
  letter-spacing: 0.14em;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.85),
    0 0 16px rgba(255, 255, 255, 0.45),
    0 0 32px rgba(255, 255, 255, 0.22),
    0 0 48px rgba(255, 255, 255, 0.1);
  animation: hero-venue-text-hold 2.2s ease-in-out infinite;
}

.hero-venue.is-active .hero-venue-echo--1 {
  opacity: 0.5;
  transform: translate(-50%, -50%) scale(1.04);
  filter: blur(8px);
}

.hero-venue.is-active .hero-venue-echo--2 {
  opacity: 0.32;
  transform: translate(-50%, -50%) scale(1.1);
  filter: blur(18px);
}

/* —— Defokus + Buchstaben-Explosion (überlappt mit nächstem Fokus) —— */
.hero-venue.is-exit {
  visibility: visible;
  animation: hero-venue-focus-out 0.7s cubic-bezier(0.4, 0.05, 0.6, 1) both;
}

.hero-venue.is-exit .hero-venue-echo--1,
.hero-venue.is-exit .hero-venue-echo--2 {
  animation: hero-venue-bokeh-out 0.55s ease both;
}

.hero-venue-text.is-exploding {
  display: inline-flex;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  filter: none;
}

.hero-venue-char {
  display: inline-block;
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.75),
    0 0 18px rgba(255, 255, 255, 0.4);
  animation: hero-venue-char-defocus 0.72s cubic-bezier(0.25, 0.6, 0.2, 1) forwards;
  animation-delay: var(--delay, 0ms);
  will-change: transform, opacity, filter;
}

@keyframes hero-venue-focus-in {
  0% {
    opacity: 0;
    transform: scale(1.22) translate3d(0, 2px, 0);
    filter: blur(14px) brightness(1.5) contrast(0.85);
  }
  35% {
    opacity: 0.65;
    transform: scale(1.08);
    filter: blur(7px) brightness(1.25) contrast(0.95);
  }
  68% {
    opacity: 1;
    transform: scale(0.985);
    filter: blur(1.2px) brightness(1.12) contrast(1.04);
  }
  86% {
    transform: scale(1.015);
    filter: blur(0.2px) brightness(1.08) contrast(1.06);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0) brightness(1.05) contrast(1.05);
  }
}

@keyframes hero-venue-text-focus-in {
  0% {
    letter-spacing: 0.28em;
    opacity: 0.5;
  }
  55% {
    letter-spacing: 0.12em;
    opacity: 1;
  }
  100% {
    letter-spacing: 0.14em;
    opacity: 1;
  }
}

@keyframes hero-venue-bokeh-in {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.25);
    filter: blur(18px);
  }
  45% {
    opacity: 0.65;
    transform: translate(-50%, -50%) scale(1.12);
    filter: blur(12px);
  }
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1.04);
    filter: blur(8px);
  }
}

@keyframes hero-venue-bokeh-in-deep {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.4);
    filter: blur(28px);
  }
  100% {
    opacity: 0.32;
    transform: translate(-50%, -50%) scale(1.1);
    filter: blur(18px);
  }
}

@keyframes hero-venue-focus-hold {
  0%,
  100% {
    filter: blur(0) brightness(1.04) contrast(1.05);
    transform: scale(1);
  }
  50% {
    filter: blur(0) brightness(1.12) contrast(1.08);
    transform: scale(1.012);
  }
}

@keyframes hero-venue-text-hold {
  0%,
  100% {
    text-shadow:
      0 0 6px rgba(255, 255, 255, 0.75),
      0 0 16px rgba(255, 255, 255, 0.35),
      0 0 30px rgba(255, 255, 255, 0.16);
  }
  50% {
    text-shadow:
      0 0 10px rgba(255, 255, 255, 0.95),
      0 0 24px rgba(255, 255, 255, 0.5),
      0 0 42px rgba(255, 255, 255, 0.22),
      0 0 56px rgba(255, 255, 255, 0.1);
  }
}

@keyframes hero-venue-focus-out {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0) brightness(1.05);
  }
  40% {
    opacity: 1;
    transform: scale(1.04);
    filter: blur(2.5px) brightness(1.2);
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
    filter: blur(12px) brightness(1.4);
  }
}

@keyframes hero-venue-bokeh-out {
  0% {
    opacity: 0.45;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
    filter: blur(22px);
  }
}

@keyframes hero-venue-char-defocus {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    filter: blur(0) brightness(1.15);
  }
  25% {
    opacity: 1;
    filter: blur(0.5px) brightness(1.55);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--rot)) scale(0.35);
    filter: blur(4px) brightness(1.8);
  }
}

@keyframes hero-spotlight-breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.06);
  }
}

.hero-title-only {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  text-align: center;
  overflow: visible;
  position: relative;
  z-index: 3;
  padding: 1rem 0 0.5rem;
}

/* Hero braucht flex-Kind über volle Höhe */
.hero > .container.hero-title-only,
.hero .hero-title-only {
  flex: 1;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ========== SOUND LAUNCH – Musik-CTA zur Player-Unterseite ========== */
.sound-launch {
  --sl-gold: #f0d36a;
  --sl-gold-2: #e4c24a;
  --sl-red: #e31c23;
  --sl-green: #22c55e;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "disc mid cta";
  align-items: center;
  gap: 0.85rem 1.15rem;
  margin: 1.1rem 0 0;
  padding: 0.95rem 1.1rem;
  border-radius: 26px;
  text-decoration: none;
  color: #f7f3ea;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 220, 120, 0.28);
  background:
    radial-gradient(120% 90% at 0% 50%, rgba(227, 28, 35, 0.18), transparent 42%),
    radial-gradient(90% 80% at 100% 0%, rgba(34, 197, 94, 0.12), transparent 45%),
    linear-gradient(135deg, #1b1520 0%, #0d0f14 48%, #120c10 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 40px rgba(228, 194, 74, 0.12),
    0 22px 50px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.sound-launch:hover,
.sound-launch:focus-visible {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(240, 211, 106, 0.65);
  box-shadow:
    0 0 0 1px rgba(240, 211, 106, 0.25) inset,
    0 0 55px rgba(228, 194, 74, 0.22),
    0 28px 60px rgba(0, 0, 0, 0.5);
  outline: none;
}
/* Mittelweg Launch-Kachel: Liga-Farben klar, aber weich */
.sound-launch > .metal-shine {
  position: absolute;
  top: -6%;
  left: -48%;
  width: 30%;
  height: 112%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: soft-light;
  background: linear-gradient(
    108deg,
    transparent 0%,
    transparent 36%,
    rgba(255, 255, 255, 0.04) 45%,
    rgba(255, 248, 230, 0.2) 50%,
    rgba(255, 255, 255, 0.04) 55%,
    transparent 64%,
    transparent 100%
  );
  filter: blur(0.55px);
  transform: skewX(-15deg);
  will-change: transform, opacity;
}
.sound-launch > .metal-shine--soft {
  width: 38%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 47%,
    rgba(255, 255, 255, 0.13) 50%,
    rgba(255, 255, 255, 0.03) 53%,
    transparent 60%,
    transparent 100%
  );
  filter: blur(1px);
}
.sound-launch > .metal-shine--liga-a {
  width: 26%;
  background: linear-gradient(
    108deg,
    transparent 0%,
    transparent 40%,
    rgba(227, 28, 35, 0.06) 46%,
    rgba(255, 90, 90, 0.34) 50%,
    rgba(227, 28, 35, 0.06) 54%,
    transparent 60%,
    transparent 100%
  );
}
.sound-launch > .metal-shine--liga-b {
  width: 26%;
  background: linear-gradient(
    108deg,
    transparent 0%,
    transparent 40%,
    rgba(34, 197, 94, 0.06) 46%,
    rgba(110, 230, 150, 0.32) 50%,
    rgba(34, 197, 94, 0.06) 54%,
    transparent 60%,
    transparent 100%
  );
}
.sound-launch > .metal-shine--liga-c {
  width: 26%;
  background: linear-gradient(
    108deg,
    transparent 0%,
    transparent 40%,
    rgba(245, 197, 24, 0.06) 46%,
    rgba(255, 220, 110, 0.36) 50%,
    rgba(245, 197, 24, 0.06) 54%,
    transparent 60%,
    transparent 100%
  );
}
.sound-launch > .metal-shine.is-running {
  animation-name: sound-launch-metal-sweep;
  animation-timing-function: cubic-bezier(0.42, 0.05, 0.2, 1);
  animation-fill-mode: forwards;
}
@keyframes sound-launch-metal-sweep {
  0% {
    transform: skewX(-15deg) translateX(0);
    opacity: 0;
  }
  10% { opacity: 0.7; }
  55% { opacity: 0.48; }
  100% {
    transform: skewX(-15deg) translateX(450%);
    opacity: 0;
  }
}
.sound-launch-arena {
  position: absolute;
  inset: -20% 8% auto;
  height: 56%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 70% at 35% 40%, rgba(227, 28, 35, 0.11), transparent 70%),
    radial-gradient(ellipse 45% 65% at 55% 45%, rgba(34, 197, 94, 0.09), transparent 68%),
    radial-gradient(ellipse 40% 60% at 72% 50%, rgba(245, 197, 24, 0.09), transparent 65%);
  filter: blur(7px);
  opacity: 0.58;
  animation: sound-launch-arena-breathe 7.5s ease-in-out infinite;
}
@keyframes sound-launch-arena-breathe {
  0%, 100% { opacity: 0.38; transform: scale(1); }
  50% { opacity: 0.68; transform: scale(1.03); }
}
.sound-launch-aura {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 18% 50%, rgba(240, 211, 106, 0.22), transparent 35%),
    radial-gradient(circle at 82% 40%, rgba(227, 28, 35, 0.16), transparent 40%),
    radial-gradient(circle at 70% 85%, rgba(34, 197, 94, 0.12), transparent 35%);
  pointer-events: none;
  z-index: 0;
  filter: blur(8px);
}
.sound-launch-wave {
  position: absolute;
  left: 18%;
  right: -5%;
  bottom: -18%;
  height: 70%;
  opacity: 0.22;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 10px,
      rgba(240, 211, 106, 0.55) 10px 12px,
      transparent 12px 22px,
      rgba(227, 28, 35, 0.45) 22px 24px,
      transparent 24px 34px,
      rgba(34, 197, 94, 0.4) 34px 36px
    );
  mask-image: linear-gradient(180deg, transparent, #000 35%, transparent 85%);
  transform: skewX(-12deg);
  pointer-events: none;
  z-index: 0;
  animation: soundWaveDrift 6s linear infinite;
}
@keyframes soundWaveDrift {
  from { background-position: 0 0; }
  to { background-position: 120px 0; }
}

.sound-launch-turntable,
.sound-launch-mid,
.sound-launch-tags,
.sound-launch-cta {
  position: relative;
  z-index: 3;
}

.sound-launch-turntable {
  grid-area: disc;
  width: 108px;
  height: 108px;
  flex: 0 0 auto;
}
.sound-launch-mid { grid-area: mid; }
.sound-launch-tags {
  grid-area: tags;
  /* Desktop: Tags in der Mitte unter dem Titel */
  display: none;
}
.sound-launch-cta { grid-area: cta; }
.sound-launch-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center,
      #0a0a0c 0 1px,
      #17171c 1px 3px,
      #0e0e12 3px 5px);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.06),
    0 0 0 7px rgba(228, 194, 74, 0.18),
    0 16px 30px rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  position: relative;
  animation: soundDiscIdle 10s linear infinite;
}
.sound-launch:hover .sound-launch-disc {
  animation-duration: 3.2s;
}
@keyframes soundDiscIdle {
  to { transform: rotate(360deg); }
}
.sound-launch-disc-grooves {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.02);
}
.sound-launch-disc-label {
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #4a3418, #1a120a 70%);
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 0 0 2px rgba(240, 211, 106, 0.45),
    0 0 18px rgba(228, 194, 74, 0.25);
}
.sound-launch-disc-label img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  border-radius: 50%;
}
.sound-launch-disc-arm {
  position: absolute;
  top: 8%;
  right: -2%;
  width: 54px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d6d6d6, #777);
  transform-origin: 90% 50%;
  transform: rotate(18deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  z-index: 2;
  pointer-events: none;
}
.sound-launch-disc-arm::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle at 35% 35%, #fff, #999 60%, #444);
}

.sound-launch-mid {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}
.sound-launch-eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  width: min(100%, 220px);
}
.sound-launch-eq i {
  display: block;
  flex: 1;
  min-width: 3px;
  height: 40%;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--sl-gold), var(--sl-red));
  transform-origin: bottom center;
  animation: soundLaunchEq 1s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(240, 211, 106, 0.25);
}
.sound-launch-eq i:nth-child(odd) {
  background: linear-gradient(180deg, var(--sl-gold), var(--sl-green));
}
.sound-launch-eq i:nth-child(1) { animation-delay: 0.02s; }
.sound-launch-eq i:nth-child(2) { animation-delay: 0.12s; }
.sound-launch-eq i:nth-child(3) { animation-delay: 0.22s; }
.sound-launch-eq i:nth-child(4) { animation-delay: 0.08s; }
.sound-launch-eq i:nth-child(5) { animation-delay: 0.18s; }
.sound-launch-eq i:nth-child(6) { animation-delay: 0.28s; }
.sound-launch-eq i:nth-child(7) { animation-delay: 0.06s; }
.sound-launch-eq i:nth-child(8) { animation-delay: 0.16s; }
.sound-launch-eq i:nth-child(9) { animation-delay: 0.26s; }
.sound-launch-eq i:nth-child(10) { animation-delay: 0.14s; }
@keyframes soundLaunchEq {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}
.sound-launch-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}
.sound-launch-kicker {
  font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sl-gold);
  text-shadow: 0 0 18px rgba(240, 211, 106, 0.35);
}
.sound-launch-title {
  font-size: clamp(1.35rem, 3.2vw, 1.95rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.05;
  background: linear-gradient(90deg, #fff6d6 0%, #f0d36a 45%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sound-launch-sub { display: none; }
.sound-launch-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.sound-launch-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e8dfcf;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sound-launch-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.85rem 0.35rem 0.35rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(240, 211, 106, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
.sound-launch-cta-core {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(145deg, #ffe08a 0%, #e4c24a 42%, #b88716 100%);
  box-shadow:
    0 0 0 4px rgba(240, 211, 106, 0.18),
    0 10px 24px rgba(228, 194, 74, 0.4);
}
.sound-launch-cta-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118%;
  height: 118%;
  border-radius: 50%;
  border: 2px solid rgba(240, 211, 106, 0.4);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
  animation: soundCtaPulse 2s ease-out infinite;
}
@keyframes soundCtaPulse {
  0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.55); opacity: 0; }
}
.sound-launch-play {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #1a1408;
  margin-left: 3px;
}
.sound-launch-cta-text {
  display: grid;
  gap: 0.05rem;
  padding-right: 0.35rem;
}
.sound-launch-cta-text strong {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sl-gold);
}
.sound-launch-cta-text em {
  font-style: normal;
  color: #d9d0c2;
  font-size: 0.82rem;
  font-weight: 600;
}
.sound-launch:hover .sound-launch-cta-core {
  transform: scale(1.06);
  transition: transform 0.18s ease;
}

@media (max-width: 820px) {
  .sound-launch {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "disc mid"
      "tags tags"
      "cta cta";
    gap: 0.55rem 0.75rem;
    padding: 0.75rem 0.8rem 0.8rem;
    border-radius: 20px;
  }
  .sound-launch-turntable {
    width: 78px;
    height: 78px;
  }
  .sound-launch-eq {
    height: 18px;
    width: min(100%, 140px);
    gap: 2px;
  }
  .sound-launch-kicker {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }
  .sound-launch-title {
    font-size: 1.12rem;
    line-height: 1.1;
  }
  .sound-launch-tags {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin: 0.1rem 0 0;
  }
  .sound-launch-tags span {
    padding: 0.16rem 0.45rem;
    font-size: 0.64rem;
  }
  .sound-launch-cta {
    justify-content: center;
    width: 100%;
    padding: 0.35rem 0.65rem 0.35rem 0.35rem;
    gap: 0.55rem;
  }
  .sound-launch-cta-core { width: 48px; height: 48px; }
  .sound-launch-cta-ring { width: 122%; height: 122%; }
  .sound-launch-cta-text strong { font-size: 0.95rem; }
  .sound-launch-cta-text em { font-size: 0.75rem; }
  .sound-launch-wave { opacity: 0.12; }
}

/* Desktop: Tags unter dem Titel, CTA rechts */
@media (min-width: 821px) {
  .sound-launch {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "disc mid cta"
      "disc tags cta";
    align-items: center;
  }
  .sound-launch-mid {
    display: grid;
    gap: 0.35rem;
    align-self: end;
  }
  .sound-launch-tags {
    display: flex;
    align-self: start;
    margin-top: 0;
  }
  .sound-launch-cta {
    align-self: center;
    grid-row: 1 / span 2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sound-launch-eq i,
  .sound-launch-disc,
  .sound-launch-wave,
  .sound-launch-cta-ring,
  .sound-launch:hover .sound-launch-shine {
    animation: none;
  }
}

/* ========== SOUND PLAYER (Styles bleiben für /player/) ========== */
.hero-player,
.sound-player {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  margin: 1.15rem 0 0;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(
      155deg,
      rgba(28, 32, 42, 0.96) 0%,
      rgba(10, 12, 16, 0.94) 55%,
      rgba(14, 10, 12, 0.96) 100%
    );
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  /* kein Schlagschatten hinter dem Player */
  box-shadow: none;
  text-align: left;
  overflow: hidden;
  outline: none;
  isolation: isolate;
  pointer-events: auto;
  /* sofort sichtbar beim Seitenstart (nicht an Scroll-Reveal gekoppelt) */
  opacity: 1;
  visibility: visible;
  filter: none;
}

/* Inhalt über dem Lichtreflex */
.sound-player > .hp-main,
.sound-player > .hp-playlist,
.hero-player > .hp-main,
.hero-player > .hp-playlist {
  position: relative;
  z-index: 2;
}

.sound-player > .hp-aura,
.sound-player > .hp-strip,
.hero-player > .hp-aura,
.hero-player > .hp-strip {
  z-index: 0;
}

/* Lichtreflex wie Countdown-Metall */
.sound-player .hp-shine,
.hero-player .hp-shine,
.sound-player .metal-shine,
.hero-player .metal-shine {
  z-index: 3;
  border-radius: inherit;
  mix-blend-mode: soft-light;
}

/* sofort da – nur sehr kurzer Soft-Fade, kein Scroll-Warten */
.sound-player--ready {
  animation: sound-player-in 0.45s cubic-bezier(0.33, 0.1, 0.2, 1) both;
}

@keyframes sound-player-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sound-player--ready {
    animation: none;
  }
}

.hero-player:focus-visible {
  outline: 1px solid color-mix(in srgb, var(--liga-a) 50%, transparent);
  outline-offset: 2px;
  box-shadow: none;
}

.hp-aura {
  position: absolute;
  inset: -40% -20% auto;
  height: 90%;
  background:
    radial-gradient(ellipse 50% 60% at 20% 40%, rgba(245, 197, 24, 0.09), transparent 60%),
    radial-gradient(ellipse 45% 55% at 55% 30%, rgba(34, 197, 94, 0.07), transparent 55%),
    radial-gradient(ellipse 40% 50% at 85% 50%, rgba(227, 28, 35, 0.1), transparent 55%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  transition: opacity 0.6s ease;
}

.hero-player.is-playing .hp-aura {
  opacity: 1;
}

.hp-strip,
.hp-strip--left,
.hp-strip--right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--liga-c) 0%,
    var(--liga-c) 32%,
    var(--liga-b) 34%,
    var(--liga-b) 65%,
    var(--liga-a) 67%,
    var(--liga-a) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hp-strip,
.hp-strip--left {
  left: 0;
}

.hp-strip--right {
  left: auto;
  right: 0;
}

.hp-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem 0.75rem;
  padding: 0.7rem 0.85rem 0.7rem 0.95rem;
}

.hp-main > .hp-side {
  grid-column: 1 / -1;
}

.hp-play {
  appearance: none;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.22), transparent 45%),
    linear-gradient(155deg, #f02830 0%, var(--liga-a) 45%, #9a1015 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 8px 22px rgba(227, 28, 35, 0.42),
    0 0 24px rgba(227, 28, 35, 0.15);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s ease, filter 0.25s ease;
}

.hp-play:hover {
  transform: scale(1.06);
  filter: brightness(1.06);
}

.hp-play:active {
  transform: scale(0.96);
}

.hero-player.is-playing .hp-play {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 8px 22px rgba(227, 28, 35, 0.42);
}

.hp-play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff;
}

.hero-player.is-playing .hp-play-icon {
  width: 12px;
  height: 12px;
  margin-left: 0;
  border: none;
  background:
    linear-gradient(#fff, #fff) 0 0 / 3.5px 100% no-repeat,
    linear-gradient(#fff, #fff) 100% 0 / 3.5px 100% no-repeat;
}

.hp-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.hp-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.hp-kicker {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--liga-c) 75%, #fff);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-index {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.38);
  flex-shrink: 0;
}

.hp-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #f4f5f7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.hp-sub {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.hp-seek-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.hp-time {
  font-size: 0.58rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
  min-width: 2.1rem;
}

.hp-time:last-child {
  text-align: right;
}

.hp-seek {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0.35rem 0;
  margin: 0;
  cursor: pointer;
  width: 100%;
  display: block;
}

.hp-seek-track {
  position: relative;
  display: block;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: visible;
}

.hp-seek-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--liga-c), var(--liga-b) 50%, var(--liga-a));
  box-shadow: 0 0 10px rgba(227, 28, 35, 0.25);
}

.hp-seek-knob {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.hp-seek:hover .hp-seek-knob,
.hero-player.is-playing .hp-seek-knob {
  opacity: 1;
}

.hp-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(4.75rem, 6.25rem) auto;
  align-items: center;
  column-gap: 0.85rem;
  row-gap: 0.4rem;
  flex-shrink: 0;
  min-width: 0;
  width: 100%;
}

/* Prev · Timeline · Next – Seek liegt zwischen den Buttons */
.hp-transport {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  min-width: 0;
  grid-column: 1;
}

.hp-transport .hp-btn {
  flex-shrink: 0;
}

.hp-transport .hp-seek-row {
  flex: 1 1 auto;
  min-width: 3.5rem;
  max-width: 100%;
}

/* Feste, begrenzte Lautstärke-Spalte – kein Überlappen mit Playlist */
.hp-side > .hp-vol {
  grid-column: 2;
  width: 100%;
  max-width: 6.25rem;
  min-width: 0;
  flex: none;
  margin: 0;
}

.hp-side > .hp-list-btn {
  grid-column: 3;
  flex: 0 0 auto;
  margin-left: 0;
  justify-self: end;
}

.hp-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  min-width: 30px;
  height: 28px;
  padding: 0 0.45rem;
  border-radius: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  font-family: inherit;
}

.hp-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.hp-btn[aria-expanded="true"] {
  background: color-mix(in srgb, var(--liga-a) 22%, transparent);
  border-color: color-mix(in srgb, var(--liga-a) 40%, transparent);
  color: #fff;
  animation: none !important;
  box-shadow: none;
}

/* Playlist-Button: weicher Glow + Text sanft in Ligafarben (Rot → Grün → Gelb) */
.hero-player.is-in-view:not(.playlist-was-opened) .hp-list-btn:not([aria-expanded="true"]),
.sound-player.is-in-view:not(.playlist-was-opened) .hp-list-btn:not([aria-expanded="true"]) {
  animation: hp-list-liga-pulse 4.8s ease-in-out infinite;
  will-change: color, box-shadow, border-color;
}

@keyframes hp-list-liga-pulse {
  0%,
  100% {
    color: var(--liga-a);
    border-color: color-mix(in srgb, var(--liga-a) 55%, rgba(255, 255, 255, 0.14));
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--liga-a) 28%, transparent),
      0 0 14px color-mix(in srgb, var(--liga-a) 35%, transparent),
      0 0 26px color-mix(in srgb, var(--liga-a) 14%, transparent);
  }
  33% {
    color: var(--liga-b);
    border-color: color-mix(in srgb, var(--liga-b) 55%, rgba(255, 255, 255, 0.14));
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--liga-b) 28%, transparent),
      0 0 14px color-mix(in srgb, var(--liga-b) 35%, transparent),
      0 0 26px color-mix(in srgb, var(--liga-b) 14%, transparent);
  }
  66% {
    color: var(--liga-c);
    border-color: color-mix(in srgb, var(--liga-c) 55%, rgba(255, 255, 255, 0.14));
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--liga-c) 28%, transparent),
      0 0 14px color-mix(in srgb, var(--liga-c) 35%, transparent),
      0 0 26px color-mix(in srgb, var(--liga-c) 14%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-player.is-in-view:not(.playlist-was-opened) .hp-list-btn:not([aria-expanded="true"]),
  .sound-player.is-in-view:not(.playlist-was-opened) .hp-list-btn:not([aria-expanded="true"]) {
    animation: none;
    color: var(--liga-c);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.14);
  }
}

.hp-vol {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  max-width: 100%;
}

.hp-vol-ico {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1;
  flex-shrink: 0;
}

.hp-vol input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
}

.hp-vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.hp-vol input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: none;
}

/* Playlist – max. ~5 Songs sichtbar, Rest per Scroll */
.hp-playlist {
  --hp-track-h: 3.35rem; /* ca. eine Zeile Track */
  --hp-list-head-h: 2.1rem;
  --hp-list-visible: 5;
  position: relative;
  z-index: 1;
  border-top: 1px solid transparent;
  background: rgba(0, 0, 0, 0.22);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.85s cubic-bezier(0.33, 0.1, 0.2, 1),
    opacity 0.55s cubic-bezier(0.33, 0.1, 0.2, 1) 0.05s,
    border-color 0.5s ease;
}

.hp-playlist.is-open {
  /* Kopf + 5 Tracks + etwas Luft */
  max-height: calc(
    var(--hp-list-head-h) + (var(--hp-list-visible) * var(--hp-track-h)) + 0.75rem
  );
  opacity: 1;
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* Einmaliger Einblick: erste 3 Songs sichtbar, dann wieder zu */
.hp-playlist.is-peeking {
  max-height: calc(var(--hp-list-head-h) + 3 * var(--hp-track-h) + 0.55rem);
  opacity: 1;
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* Peek etwas langsamer als normales Öffnen (~+30 %) */
.hp-playlist.is-peeking,
.hp-playlist.was-peeking {
  transition:
    max-height 1.1s cubic-bezier(0.33, 0.1, 0.2, 1),
    opacity 0.72s cubic-bezier(0.33, 0.1, 0.2, 1) 0.06s,
    border-color 0.65s ease;
}

.hp-playlist.is-peeking .hp-playlist-inner,
.hp-playlist.was-peeking .hp-playlist-inner {
  transition:
    opacity 0.65s cubic-bezier(0.33, 0.1, 0.2, 1) 0.16s,
    transform 0.85s cubic-bezier(0.33, 0.1, 0.2, 1) 0.1s;
}

.hp-playlist-inner {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.5s cubic-bezier(0.33, 0.1, 0.2, 1) 0.12s,
    transform 0.65s cubic-bezier(0.33, 0.1, 0.2, 1) 0.08s;
}

.hp-playlist.is-open .hp-playlist-inner,
.hp-playlist.is-peeking .hp-playlist-inner {
  opacity: 1;
  transform: none;
}

/* [hidden] + Display: bleibt im Flow für Transition */
.hp-playlist[hidden] {
  display: block;
}

.hp-playlist-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  padding: 0.55rem 0.95rem 0.4rem;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.hp-playlist-hint {
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.32);
  font-size: 0.62rem;
}

.hp-playlist-list {
  list-style: none;
  margin: 0;
  padding: 0.1rem 0 0.45rem;
  /* nur ~5 Einträge im sichtbaren Bereich */
  max-height: calc(var(--hp-list-visible) * var(--hp-track-h));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.06);
  scroll-behavior: smooth;
}

.hp-playlist-list::-webkit-scrollbar {
  width: 6px;
}

.hp-playlist-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  margin: 0.2rem 0;
}

.hp-playlist-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.hp-playlist-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

.hp-track {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr) auto;
  gap: 0.4rem 0.6rem;
  align-items: start;
  width: 100%;
  min-height: var(--hp-track-h);
  box-sizing: border-box;
  padding: 0.45rem 0.85rem 0.45rem 0.95rem;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.25s ease,
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hp-playlist.is-open .hp-track {
  animation: hp-track-in 0.55s cubic-bezier(0.33, 0.1, 0.2, 1) both;
  animation-delay: calc(0.12s + var(--i, 0) * 0.028s);
}

@keyframes hp-track-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hp-track:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hp-track.is-active {
  background: color-mix(in srgb, var(--liga-a) 14%, transparent);
}

.hp-track-num {
  font-size: 0.62rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.32);
  letter-spacing: 0.04em;
  padding-top: 0.15rem;
}

.hp-track.is-active .hp-track-num {
  color: var(--liga-a);
}

.hp-track-body {
  min-width: 0;
}

.hp-track-title {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.hp-track-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.66rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.hp-track-dur {
  font-size: 0.58rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 640px) {
  .hero-player,
  .sound-player {
    margin-top: 0.95rem;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-playlist,
  .hp-playlist-inner {
    transition: none;
  }

  .hp-playlist.is-open .hp-track {
    animation: none;
  }

  .sound-player--ready {
    animation: none;
  }

  .sound-player .metal-shine,
  .hero-player .metal-shine {
    display: none;
  }
}

.hero-scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.75;
  transition: color 0.2s, opacity 0.2s;
  margin-top: auto;
  padding-bottom: 0.25rem;
}

.hero-scroll-cue:hover {
  color: var(--text);
  opacity: 1;
}

.hero-scroll-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: scroll-cue-bounce 1.6s ease-in-out infinite;
}

@keyframes scroll-cue-bounce {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: rotate(45deg) translateY(5px);
    opacity: 1;
  }
}

/* Rubriken: weicher Scroll-Ubergang */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(2px);
  pointer-events: none;
  transition:
    opacity 1.15s cubic-bezier(0.33, 0.1, 0.2, 1),
    transform 1.25s cubic-bezier(0.33, 0.1, 0.2, 1),
    filter 1.1s cubic-bezier(0.33, 0.1, 0.2, 1);
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: none;
  filter: none;
  pointer-events: auto;
  /* Layer nach Reveal freigeben – Optik unverändert, Scroll flüssiger */
  will-change: auto;
}

/* ============================================================
   Performance (unsichtbar): Offscreen-Animationen pausieren
   – Klasse is-fx-paused nur außerhalb Viewport (JS)
   – sichtbar identisch, GPU entlastet beim Scrollen
   ============================================================ */
.hero.is-fx-paused .hero-ribbon,
.hero.is-fx-paused .hero-spotlight,
.hero.is-fx-paused .hero-flash-wash,
.hero.is-fx-paused .hero-flash-bloom,
.hero.is-fx-paused .hero-flash-rim,
.hero.is-fx-paused .hero-mark,
.hero.is-fx-paused .hero-stamp-liga,
.hero.is-fx-paused .hero-venue,
.hero.is-fx-paused .hero-venue-text,
.hero.is-fx-paused .hero-venue-echo,
.hero.is-fx-paused .hero-venue-char {
  animation-play-state: paused !important;
}

.header-arrow-track:not(.is-hero-visible) .header-arrow,
.header-arrow-track:not(.is-hero-visible) .header-arrow-glyph {
  animation-play-state: paused !important;
  will-change: auto;
}

.matchday-hub.is-fx-paused .metal-shine,
.matchday-hub.is-fx-paused .lcd-power,
.matchday-hub.is-fx-paused .hub-rules-marquee-track,
.matchday-hub.is-fx-paused .hub-venues-marquee-track,
.sound-player.is-fx-paused .metal-shine,
.hero-player.is-fx-paused .metal-shine,
.sound-player.is-fx-paused .hp-aura,
.hero-player.is-fx-paused .hp-aura,
.portfolio-grid.is-fx-paused .top-moment-logo,
.portfolio-grid.is-fx-paused .portfolio-soon-text,
.portfolio-grid.is-fx-paused .portfolio-logo-img,
.nav-portfolio.is-fx-paused .portfolio-soon-text {
  animation-play-state: paused !important;
}

/* Inhalt leicht verzogert – wirkt fließender */
.reveal-on-scroll.is-revealed .section-head,
.reveal-on-scroll.is-revealed .mega-buttons,
.reveal-on-scroll.is-revealed .nav-buttons-reveal .section-head,
.reveal-on-scroll.is-revealed .nav-buttons-reveal .mega-buttons,
.reveal-on-scroll.is-revealed .nav-buttons-reveal .nav-portfolio,
.reveal-on-scroll.is-revealed .countdown-card,
.reveal-on-scroll.is-revealed .performance-stage,
.reveal-on-scroll.is-revealed .embed-shell,
.reveal-on-scroll.is-revealed .community-stage,
.reveal-on-scroll.is-revealed .community-layout,
.reveal-on-scroll.is-revealed .community-filters,
.reveal-on-scroll.is-revealed .portfolio-grid,
.reveal-on-scroll.is-revealed .gallery-portfolio-head,
.reveal-on-scroll.is-revealed .gallery-cta-wrap {
  animation: reveal-child 1s cubic-bezier(0.33, 0.1, 0.2, 1) both;
}

.reveal-on-scroll.is-revealed .section-head {
  animation-delay: 0.05s;
}
.reveal-on-scroll.is-revealed .mega-buttons {
  animation-delay: 0.14s;
}
/* Nav-Portfolio: kein Opacity-Fade auf dem Grid (sonst doppelt mit Burst) */
.reveal-on-scroll.is-revealed .nav-buttons-reveal .nav-portfolio {
  animation: none;
  opacity: 1;
  transform: none;
}
.reveal-on-scroll.is-revealed .countdown-card {
  animation-delay: 0.1s;
}
.reveal-on-scroll.is-revealed .performance-stage {
  animation-delay: 0.12s;
}
.reveal-on-scroll.is-revealed .embed-shell {
  animation-delay: 0.12s;
}
/* Pinnwand: kein Reveal-Einblenden – sofort sichtbar */
.reveal-on-scroll.is-revealed .community-stage,
.reveal-on-scroll.is-revealed .community-layout,
.reveal-on-scroll.is-revealed .community-filters {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
/* Grid selbst nicht mit-faden – der Deal der Karten ist der Wow-Moment */
.reveal-on-scroll.is-revealed .portfolio-grid {
  animation: none;
  opacity: 1;
  transform: none;
}
.reveal-on-scroll.is-revealed .gallery-portfolio-head {
  animation-delay: 0.04s;
}
.reveal-on-scroll.is-revealed .gallery-cta-wrap {
  animation-delay: 0.16s;
}

@keyframes reveal-child {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Handy: Scroll-Einblendungen aus – sofort sichtbar, weniger GPU-Last */
@media (max-width: 899px) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    pointer-events: auto !important;
    transition: none !important;
    will-change: auto !important;
  }

  .reveal-on-scroll.is-revealed .section-head,
  .reveal-on-scroll.is-revealed .mega-buttons,
  .reveal-on-scroll.is-revealed .nav-buttons-reveal .section-head,
  .reveal-on-scroll.is-revealed .nav-buttons-reveal .mega-buttons,
  .reveal-on-scroll.is-revealed .nav-buttons-reveal .nav-portfolio,
  .reveal-on-scroll.is-revealed .countdown-card,
  .reveal-on-scroll.is-revealed .performance-stage,
  .reveal-on-scroll.is-revealed .embed-shell,
  .reveal-on-scroll.is-revealed .community-stage,
  .reveal-on-scroll.is-revealed .community-layout,
  .reveal-on-scroll.is-revealed .community-filters,
  .reveal-on-scroll.is-revealed .portfolio-grid,
  .reveal-on-scroll.is-revealed .gallery-portfolio-head,
  .reveal-on-scroll.is-revealed .gallery-cta-wrap {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    filter: none;
    pointer-events: auto;
    transition: none;
  }

  .reveal-on-scroll.is-revealed .section-head,
  .reveal-on-scroll.is-revealed .mega-buttons,
  .reveal-on-scroll.is-revealed .countdown-card,
  .reveal-on-scroll.is-revealed .performance-stage,
  .reveal-on-scroll.is-revealed .embed-shell,
  .reveal-on-scroll.is-revealed .community-stage,
  .reveal-on-scroll.is-revealed .community-layout,
  .reveal-on-scroll.is-revealed .community-filters,
  .reveal-on-scroll.is-revealed .portfolio-grid,
  .reveal-on-scroll.is-revealed .gallery-portfolio-head,
  .reveal-on-scroll.is-revealed .gallery-cta-wrap {
    animation: none;
  }

  .hero-scroll-arrow {
    animation: none;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 42%, rgba(18, 22, 32, 0.5), transparent 65%),
    linear-gradient(180deg, #0b0d12 0%, #08090c 55%, var(--bg) 100%);
  pointer-events: none;
  overflow: hidden;
}



/*
 * Animierter Tricolor-Streifen (global)
 * Nutzung: <div class="liga-flow" aria-hidden="true"></div>
 * Varianten: --sm · --soft · --edge (ohne Maske) · --top / --bottom
 */
.liga-flow,
.liga-strip {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 100%;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
  /* weiches Auslaufen an den Seiten – wie bei der Pinnwand-Brücke */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
}

/* Legacy-Spans unsichtbar – Animation läuft über ::before */
.liga-strip {
  display: block;
  height: 3px;
}

.liga-strip > span {
  display: none;
}

.liga-flow::before,
.liga-strip::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--liga-a) 0%,
    var(--liga-a) 16.666%,
    var(--liga-b) 16.666%,
    var(--liga-b) 33.333%,
    var(--liga-c) 33.333%,
    var(--liga-c) 50%,
    var(--liga-a) 50%,
    var(--liga-a) 66.666%,
    var(--liga-b) 66.666%,
    var(--liga-b) 83.333%,
    var(--liga-c) 83.333%,
    var(--liga-c) 100%
  );
  animation: liga-flow 4.5s linear infinite;
  will-change: transform;
}

.liga-flow--sm,
.liga-strip.liga-flow--sm {
  height: 2px;
}

.liga-flow--soft {
  opacity: 0.72;
}

.liga-flow--edge {
  -webkit-mask-image: none;
  mask-image: none;
}

.liga-flow--glow {
  box-shadow:
    0 0 12px rgba(227, 28, 35, 0.25),
    0 0 18px rgba(34, 197, 94, 0.15),
    0 0 22px rgba(245, 197, 24, 0.12);
}

.hero .liga-strip,
.hero .liga-flow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  height: 3px;
}

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

@media (prefers-reduced-motion: reduce) {
  .liga-flow::before,
  .liga-strip::before {
    animation: none !important;
  }

  .liga-flow::before,
  .liga-strip::before {
    /* ruhiger Stillstand: R-G-Y sichtbar */
    width: 100%;
    background: linear-gradient(
      90deg,
      var(--liga-a) 0%,
      var(--liga-a) 33.33%,
      var(--liga-b) 33.33%,
      var(--liga-b) 66.66%,
      var(--liga-c) 66.66%,
      var(--liga-c) 100%
    );
    transform: none;
  }
}

.hero-content {
  position: relative;
}

.hero-with-logo {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 800px) {
  .hero-with-logo {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-with-logo .hero-actions,
  .hero-with-logo .liga-legend {
    justify-content: center;
  }

  .hero-with-logo .hero-lead {
    margin-inline: auto;
  }

  .hero-logo-wrap {
    order: -1;
    margin-inline: auto;
  }
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-logo-wrap::before {
  content: "";
  position: absolute;
  width: min(90%, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(227, 28, 35, 0.25),
    rgba(34, 197, 94, 0.12),
    transparent 70%
  );
  filter: blur(8px);
  z-index: 0;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: min(100%, 300px);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55));
  animation: logo-float 5s ease-in-out infinite;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--liga-a);
  margin: 0 0 0.85rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--liga-a);
  box-shadow: none;
  animation: none;
}

/* Rubrik 06 Teilnehmer: kein Puls/Blinken neben „3K …“ */
#live .live-dot,
.rubric--live .live-dot {
  animation: none !important;
  box-shadow: none !important;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* Hero: #brannedartsliga knapp über A/B/C, Spielstätten darunter */
.hero-name-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.5rem 1.25rem 1.25rem;
  max-width: 100%;
  z-index: 1;
}

/* Titel immer über Stempel-Flash / Burst */
.hero-name-stage .hero-liga-name {
  position: relative;
  z-index: 5;
  margin: 0;
}

.hero-name-stage .hero-tagline--stamp {
  margin-top: 0.15rem;
}

.hero-name-stage .hero-venues {
  margin-top: 0.35rem;
}

/*
 * Hero-Cluster mit Artwork „More than just a hobby“
 * Entrance → Float → Dart-Glow → Paint-Splats
 */
.hero-cluster {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(100%, 52rem);
  margin: 0 auto;
  min-height: 0;
  padding: 0.35rem 0.5rem 0.25rem;
  box-sizing: border-box;
  gap: 0.65rem;
}

.hero-cluster .hero-name-stage {
  position: relative;
  z-index: 3;
  background: transparent;
  transform: none;
  padding: 0.35rem 0.5rem 0.15rem;
  gap: 0.35rem;
}

/* —— Artwork-Bühne —— */
.hero-art {
  position: relative;
  z-index: 1;
  width: min(92vw, 40rem);
  max-width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  margin: 0 auto;
  animation: hero-art-enter 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-art-figure {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(227, 28, 35, 0.12);
  animation: hero-art-float 7s ease-in-out 1.1s infinite;
  will-change: transform;
}

.hero-art-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  user-select: none;
  -webkit-user-drag: none;
  transform: scale(1.02);
}

/* Roter Puls am Dart (oben links im Motiv) */
.hero-art-dart-glow {
  position: absolute;
  left: 18%;
  top: 8%;
  width: 22%;
  height: 28%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    rgba(255, 60, 60, 0.55) 0%,
    rgba(227, 28, 35, 0.2) 40%,
    transparent 70%
  );
  mix-blend-mode: screen;
  animation: hero-art-dart-pulse 2.4s ease-in-out 1.4s infinite;
  filter: blur(6px);
}

/* Leichter Sheen-Streifen über dem Bild */
.hero-art-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.12) 48%,
    transparent 62%
  );
  transform: translateX(-120%) skewX(-12deg);
  animation: hero-art-sheen 5.5s ease-in-out 2s infinite;
}

/* Hex-Ring hinter dem Frame */
.hero-art-ring {
  position: absolute;
  z-index: 0;
  width: 78%;
  height: 78%;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%) rotate(12deg);
  border-radius: 22% / 18%;
  border: 2px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 0 1px rgba(227, 28, 35, 0.15),
    0 0 40px rgba(34, 197, 94, 0.08),
    inset 0 0 30px rgba(245, 197, 24, 0.05);
  animation: hero-art-ring 14s linear infinite;
  pointer-events: none;
}

/* Farb-Splats (R/G/Y) – treiben langsam */
.hero-art-splat {
  position: absolute;
  z-index: 0;
  border-radius: 50% 40% 55% 45%;
  filter: blur(1px);
  opacity: 0.55;
  pointer-events: none;
  animation: hero-art-splat-drift 11s ease-in-out infinite;
}

.hero-art-splat--a {
  width: 18%;
  height: 22%;
  left: 4%;
  top: 12%;
  background: radial-gradient(circle, rgba(227, 28, 35, 0.7), transparent 70%);
  animation-delay: 0s;
}

.hero-art-splat--b {
  width: 16%;
  height: 20%;
  right: 6%;
  bottom: 18%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.65), transparent 70%);
  animation-delay: -3.5s;
  animation-duration: 13s;
}

.hero-art-splat--c {
  width: 14%;
  height: 16%;
  right: 18%;
  top: 8%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.6), transparent 70%);
  animation-delay: -6s;
  animation-duration: 12s;
}

/* Rauch / Dunst an den Seiten */
.hero-art-smoke {
  position: absolute;
  z-index: 1;
  width: 28%;
  height: 70%;
  top: 15%;
  pointer-events: none;
  filter: blur(18px);
  opacity: 0.35;
  animation: hero-art-smoke 8s ease-in-out infinite;
}

.hero-art-smoke--l {
  left: -4%;
  background: radial-gradient(ellipse at center, rgba(180, 180, 200, 0.35), transparent 70%);
}

.hero-art-smoke--r {
  right: -4%;
  background: radial-gradient(ellipse at center, rgba(160, 140, 180, 0.3), transparent 70%);
  animation-delay: -4s;
}

.hero-art-kicker {
  margin: 0 0 0.15rem;
  font-size: clamp(0.68rem, 1.6vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(235, 240, 248, 0.72);
  text-align: center;
  animation: hero-art-kicker-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

/* Entrance + Idle */
@keyframes hero-art-enter {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.92);
    filter: blur(8px) brightness(0.7);
  }
  60% {
    opacity: 1;
    filter: blur(0) brightness(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0) brightness(1);
  }
}

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

@keyframes hero-art-dart-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.08);
  }
}

@keyframes hero-art-sheen {
  0%,
  55% {
    transform: translateX(-130%) skewX(-12deg);
    opacity: 0;
  }
  60% {
    opacity: 0.7;
  }
  75% {
    transform: translateX(130%) skewX(-12deg);
    opacity: 0;
  }
  100% {
    transform: translateX(130%) skewX(-12deg);
    opacity: 0;
  }
}

@keyframes hero-art-ring {
  to {
    transform: translate(-50%, -50%) rotate(372deg);
  }
}

@keyframes hero-art-splat-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.4;
  }
  50% {
    transform: translate(8%, -10%) scale(1.12) rotate(12deg);
    opacity: 0.75;
  }
}

@keyframes hero-art-smoke {
  0%,
  100% {
    opacity: 0.22;
    transform: scale(1) translateY(0);
  }
  50% {
    opacity: 0.42;
    transform: scale(1.08) translateY(-6%);
  }
}

@keyframes hero-art-kicker-in {
  from {
    opacity: 0;
    letter-spacing: 0.35em;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    letter-spacing: 0.18em;
    transform: translateY(0);
  }
}

/* Alte Mark-Klasse: ungenutzt, aber harmlos */
.hero-mark {
  display: none;
}

.hero-mark-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Performance: Artwork pausieren wenn Hero weg */
.hero.is-fx-paused .hero-art-figure,
.hero.is-fx-paused .hero-art-dart-glow,
.hero.is-fx-paused .hero-art-sheen,
.hero.is-fx-paused .hero-art-ring,
.hero.is-fx-paused .hero-art-splat,
.hero.is-fx-paused .hero-art-smoke {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-art,
  .hero-art-figure,
  .hero-art-dart-glow,
  .hero-art-sheen,
  .hero-art-ring,
  .hero-art-splat,
  .hero-art-smoke,
  .hero-art-kicker {
    animation: none !important;
  }

  .hero-art {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/*
 * Hero-Farbflash wie Countdown (A → B → C):
 * weiche Blooms + Rand-Lauflicht im Hintergrund
 * PC: aus (Performance) – Handy: an (@media max-width 640)
 */
.hero-colorflash {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  display: none;
}

@media (max-width: 640px) {
  .hero-colorflash {
    display: block;
  }
}

.hero-flash-wash {
  position: absolute;
  inset: -10%;
  opacity: 0.55;
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(255, 255, 255, 0.03), transparent 62%);
  animation: hero-flash-wash 9s ease-in-out infinite;
}

.hero-flash-bloom {
  position: absolute;
  width: min(92vw, 36rem);
  height: min(70vw, 28rem);
  left: 50%;
  top: 48%;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  filter: blur(8px);
  will-change: opacity, transform, filter;
}

/* A – Rot */
.hero-flash-bloom--a {
  background: radial-gradient(
    ellipse at center,
    rgba(227, 28, 35, 0.55) 0%,
    rgba(227, 28, 35, 0.18) 38%,
    transparent 68%
  );
  animation: hero-flash-bloom-a 9s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* B – Grün */
.hero-flash-bloom--b {
  background: radial-gradient(
    ellipse at center,
    rgba(34, 197, 94, 0.52) 0%,
    rgba(34, 197, 94, 0.16) 40%,
    transparent 68%
  );
  animation: hero-flash-bloom-b 9s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* C – Gelb */
.hero-flash-bloom--c {
  background: radial-gradient(
    ellipse at center,
    rgba(245, 197, 24, 0.5) 0%,
    rgba(245, 197, 24, 0.15) 40%,
    transparent 68%
  );
  animation: hero-flash-bloom-c 9s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* Rand-Lauflicht (ähnlich hub-rim-run, weicher) */
.hero-flash-rim {
  position: absolute;
  inset: -35%;
  opacity: 0;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(227, 28, 35, 0.55) 40deg,
    transparent 90deg,
    rgba(34, 197, 94, 0.5) 150deg,
    transparent 200deg,
    rgba(245, 197, 24, 0.5) 260deg,
    transparent 320deg,
    transparent 360deg
  );
  -webkit-mask-image: radial-gradient(circle, transparent 52%, #000 62%, #000 70%, transparent 78%);
  mask-image: radial-gradient(circle, transparent 52%, #000 62%, #000 70%, transparent 78%);
  filter: blur(10px);
  animation: hero-flash-rim 9s cubic-bezier(0.35, 0.05, 0.25, 1) infinite;
}

@keyframes hero-flash-bloom-a {
  0%,
  8%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
  }
  14% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1.08);
  }
  24% {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(1.02);
  }
  32%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
}

@keyframes hero-flash-bloom-b {
  0%,
  30%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
  }
  38% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1.08);
  }
  48% {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(1.02);
  }
  56%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
}

@keyframes hero-flash-bloom-c {
  0%,
  54%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
  }
  62% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1.08);
  }
  72% {
    opacity: 0.32;
    transform: translate(-50%, -50%) scale(1.02);
  }
  82%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
}

@keyframes hero-flash-rim {
  0% {
    opacity: 0;
    transform: rotate(0deg) scale(1);
  }
  10% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.4;
  }
  85% {
    opacity: 0.25;
  }
  100% {
    opacity: 0;
    transform: rotate(320deg) scale(1.04);
  }
}

@keyframes hero-flash-wash {
  0%,
  100% {
    opacity: 0.35;
    filter: brightness(1);
  }
  14% {
    opacity: 0.7;
    filter: brightness(1.08);
  }
  38% {
    opacity: 0.7;
    filter: brightness(1.1);
  }
  62% {
    opacity: 0.65;
    filter: brightness(1.08);
  }
  82% {
    opacity: 0.4;
    filter: brightness(1);
  }
}

/* Logo hinter der Animation: leuchtet mit A→B→C (Blur bleibt am img) */
@keyframes hero-mark-flash {
  0%,
  10%,
  100% {
    opacity: 0.3;
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.05));
  }
  14%,
  22% {
    opacity: 0.42;
    filter: drop-shadow(0 0 36px rgba(227, 28, 35, 0.5));
  }
  38%,
  46% {
    opacity: 0.42;
    filter: drop-shadow(0 0 36px rgba(34, 197, 94, 0.45));
  }
  62%,
  70% {
    opacity: 0.4;
    filter: drop-shadow(0 0 36px rgba(245, 197, 24, 0.42));
  }
  82% {
    opacity: 0.32;
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.05));
  }
}

@keyframes hero-stamp-sync-a {
  0%,
  10%,
  28%,
  100% {
    filter: brightness(1);
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.25) inset,
      0 0 28px rgba(227, 28, 35, 0.55),
      0 8px 24px rgba(0, 0, 0, 0.35);
  }
  14%,
  20% {
    filter: brightness(1.2);
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.25) inset,
      0 0 40px rgba(227, 28, 35, 0.85),
      0 0 60px rgba(227, 28, 35, 0.35),
      0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

@keyframes hero-stamp-sync-b {
  0%,
  34%,
  52%,
  100% {
    filter: brightness(1);
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.25) inset,
      0 0 28px rgba(34, 197, 94, 0.5),
      0 8px 24px rgba(0, 0, 0, 0.35);
  }
  38%,
  44% {
    filter: brightness(1.2);
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.25) inset,
      0 0 40px rgba(34, 197, 94, 0.8),
      0 0 60px rgba(34, 197, 94, 0.32),
      0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

@keyframes hero-stamp-sync-c {
  0%,
  58%,
  76%,
  100% {
    filter: brightness(1);
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.25) inset,
      0 0 28px rgba(245, 197, 24, 0.5),
      0 8px 24px rgba(0, 0, 0, 0.35);
  }
  62%,
  68% {
    filter: brightness(1.2);
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.25) inset,
      0 0 40px rgba(245, 197, 24, 0.8),
      0 0 60px rgba(245, 197, 24, 0.32),
      0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark {
    opacity: 0.28;
    animation: none !important;
  }

  .hero-flash-wash,
  .hero-flash-bloom,
  .hero-flash-rim {
    animation: none !important;
    opacity: 0 !important;
  }
}

.hero-tagline--stamp {
  position: relative;
  z-index: 3;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(0.55rem, 2vw, 1rem);
  margin: 0.35rem 0 0;
  padding: 0.15rem 0.15rem 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.hero-stamp-liga {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(3.2rem, 9vw, 4.5rem);
  height: clamp(3.2rem, 9vw, 4.5rem);
  font-size: clamp(2.1rem, 6.2vw, 3.15rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  border: 3px solid currentColor;
  border-radius: 0.35rem;
  opacity: 0;
  transform: scale(1.85) rotate(-16deg);
  transform-origin: center center;
}

.hero-stamp-liga--a {
  color: #ff6b70;
  background: rgba(227, 28, 35, 0.16);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25) inset,
    0 0 28px rgba(227, 28, 35, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.35);
  /* in + wiggle + Farbflash-Sync (wie Countdown A→B→C) */
  animation-name: hero-stamp-liga-in, hero-stamp-wiggle-a, hero-stamp-sync-a;
  animation-duration: 1.7s, 3.2s, 9s;
  animation-timing-function: cubic-bezier(0.2, 1.12, 0.32, 1), ease-in-out, cubic-bezier(0.22, 1, 0.36, 1);
  animation-delay: 1.1s, 3s, 0s;
  animation-fill-mode: both, none, none;
  animation-iteration-count: 1, infinite, infinite;
}

.hero-stamp-liga--b {
  color: #5eea96;
  background: rgba(34, 197, 94, 0.14);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25) inset,
    0 0 28px rgba(34, 197, 94, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.35);
  animation-name: hero-stamp-liga-in, hero-stamp-wiggle-b, hero-stamp-sync-b;
  animation-duration: 1.7s, 3.6s, 9s;
  animation-timing-function: cubic-bezier(0.2, 1.12, 0.32, 1), ease-in-out, cubic-bezier(0.22, 1, 0.36, 1);
  animation-delay: 1.45s, 3.25s, 0s;
  animation-fill-mode: both, none, none;
  animation-iteration-count: 1, infinite, infinite;
}

.hero-stamp-liga--c {
  color: #ffe066;
  background: rgba(245, 197, 24, 0.14);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25) inset,
    0 0 28px rgba(245, 197, 24, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.35);
  animation-name: hero-stamp-liga-in, hero-stamp-wiggle-c, hero-stamp-sync-c;
  animation-duration: 1.7s, 4s, 9s;
  animation-timing-function: cubic-bezier(0.2, 1.12, 0.32, 1), ease-in-out, cubic-bezier(0.22, 1, 0.36, 1);
  animation-delay: 1.8s, 3.5s, 0s;
  animation-fill-mode: both, none, none;
  animation-iteration-count: 1, infinite, infinite;
}

@keyframes hero-stamp-liga-in {
  0% {
    opacity: 0;
    transform: translate3d(0, -22px, 0) scale(1.9) rotate(-18deg);
    filter: blur(3px) brightness(1.5);
  }
  48% {
    opacity: 1;
    transform: translate3d(0, 4px, 0) scale(0.9) rotate(3deg);
    filter: blur(0) brightness(1.2);
  }
  68% {
    transform: translate3d(0, -2px, 0) scale(1.06) rotate(-1.5deg);
    filter: blur(0) brightness(1.1);
  }
  86% {
    transform: translate3d(0, 1px, 0) scale(0.98) rotate(0.5deg);
    filter: blur(0) brightness(1.2);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    filter: blur(0) brightness(1);
  }
}

@keyframes hero-stamp-wiggle-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1.2deg);
  }
  25% {
    transform: translate3d(-2px, 1px, 0) rotate(1.4deg);
  }
  50% {
    transform: translate3d(1px, -2px, 0) rotate(-0.6deg);
  }
  75% {
    transform: translate3d(2px, 1px, 0) rotate(1deg);
  }
}

@keyframes hero-stamp-wiggle-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0.8deg);
  }
  30% {
    transform: translate3d(2px, -1px, 0) rotate(-1.5deg);
  }
  55% {
    transform: translate3d(-1px, 2px, 0) rotate(1.2deg);
  }
  80% {
    transform: translate3d(-2px, -1px, 0) rotate(-0.4deg);
  }
}

@keyframes hero-stamp-wiggle-c {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0.4deg);
  }
  20% {
    transform: translate3d(1px, 2px, 0) rotate(-1.8deg);
  }
  45% {
    transform: translate3d(-2px, 0, 0) rotate(1.5deg);
  }
  70% {
    transform: translate3d(2px, -2px, 0) rotate(-0.8deg);
  }
}



.hero-liga-name {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2.2rem, 8.5vw, 4.75rem);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-align: center;
  overflow: visible;
  padding-bottom: 0.12em;
}

/* Schwarzer Schatten-Layer + Glow-Text darüber (wie Countdown) */
.hero-title-stack {
  position: relative;
  display: inline-grid;
  place-items: center;
  isolation: isolate;
}

.hero-title-stack > * {
  grid-area: 1 / 1;
}

.hero-title-shadow {
  color: #000;
  -webkit-text-fill-color: #000;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  transform: translate(3px, 4px);
  opacity: 0.92;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.9),
    0 4px 8px rgba(0, 0, 0, 0.85),
    0 10px 22px rgba(0, 0, 0, 0.7),
    0 16px 36px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(0, 0, 0, 0.75);
}

.title-glow-text.hero-hashtag {
  position: relative;
  z-index: 1;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  padding: 0.08em 0.08em 0.2em;
  margin: -0.08em -0.06em 0;
  overflow: visible;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  /* Glow nur Hintergrund-Position – Schatten liegt auf .hero-title-shadow */
  animation: title-light-bg 7s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(57, 224, 122, 0.22));
}

/* Lichteffekt Rot-Gruen-Gelb (Hero-Name + Countdown-Zahlen) */
.title-glow-text {
  display: inline-block;
  background: linear-gradient(
    110deg,
    var(--liga-a) 0%,
    var(--liga-a) 18%,
    var(--liga-b) 42%,
    var(--liga-c) 68%,
    var(--liga-a) 92%,
    var(--liga-b) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: title-light 7s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(227, 28, 35, 0.28));
  overflow: visible;
  padding-bottom: 0.15em;
  line-height: 1.25;
}

@keyframes title-light {
  0% {
    background-position: 0% center;
    filter: drop-shadow(0 0 14px rgba(227, 28, 35, 0.4));
  }
  33% {
    background-position: 50% center;
    filter: drop-shadow(0 0 18px rgba(34, 197, 94, 0.4));
  }
  66% {
    background-position: 100% center;
    filter: drop-shadow(0 0 18px rgba(245, 197, 24, 0.45));
  }
  100% {
    background-position: 0% center;
    filter: drop-shadow(0 0 14px rgba(227, 28, 35, 0.4));
  }
}

@media (prefers-reduced-motion: reduce) {
  .title-glow-text {
    animation: none;
    background: linear-gradient(
      90deg,
      var(--liga-a),
      var(--liga-b),
      var(--liga-c)
    );
    background-size: 100% auto;
    -webkit-background-clip: text;
    background-clip: text;
    filter: none;
  }

}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.hero-lead {
  max-width: 34rem;
  font-size: 1.08rem;
  color: #b8c0cc;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.liga-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.liga-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.4rem;
  vertical-align: middle;
  box-shadow: 0 0 10px currentColor;
}

.liga-legend .dot.red {
  box-shadow: 0 0 10px var(--liga-a-glow);
}
.liga-legend .dot.green {
  box-shadow: 0 0 10px var(--liga-b-glow);
}
.liga-legend .dot.yellow {
  box-shadow: 0 0 10px var(--liga-c-glow);
}

/* Sections */
.section-head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.stats-head {
  max-width: 42rem;
}

.stats-head .eyebrow {
  color: var(--muted);
}

/* ========== RUBRIK-BÜHNE: einheitliche Thematisierung ==========
 * Jede Sektion öffnet mit Kapitel-Index, Kicker, Titel, Preview-Text + Chips.
 * So weiß der Zuschauer: was kommt, warum, was er interaktiv tun kann.
 */
.rubric {
  --rubric-accent: var(--liga-a);
  position: relative;
  max-width: 40rem;
  margin: 0 0 var(--space-block);
  padding: 0 0 0.15rem;
  text-align: left;
}

.rubric--center {
  margin-inline: auto;
  text-align: center;
  max-width: 36rem;
}

/* Abwechselnd links / rechts – gleiche Breite, unterschiedliche Seite */
.rubric--left {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.rubric--right {
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}

.rubric-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.55rem;
  flex-wrap: wrap;
  justify-content: inherit;
}

.rubric--center .rubric-meta {
  justify-content: center;
}

.rubric--right .rubric-meta {
  justify-content: flex-end;
  width: 100%;
}

.rubric--right .rubric-lead {
  margin-left: auto;
  margin-right: 0;
}

.rubric--right .rubric-chips {
  justify-content: flex-end;
}

.rubric-index {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 1.55rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: #0a0b0e;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--rubric-accent) 92%, #fff),
    var(--rubric-accent)
  );
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--rubric-accent) 40%, transparent),
    0 4px 12px color-mix(in srgb, var(--rubric-accent) 28%, transparent);
}

.rubric-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--rubric-accent) 75%, #c8d0dc);
}

.rubric-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #f4f5f7;
  text-wrap: balance;
}

/* Blaues Lauflicht: Buchstabe für Buchstabe (Rubrik-Titel + Nav-Kacheln) */
.rubric-title.is-runlight {
  color: #f4f5f7;
}

.rubric-title .rubric-char {
  display: inline-block;
  color: #f4f5f7;
  text-shadow: none;
  will-change: color, text-shadow;
  animation: rubric-blue-run 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.07s);
}

.rubric-title .rubric-char--space {
  display: inline;
  white-space: pre;
  animation: none;
  width: 0.28em;
}

@keyframes rubric-blue-run {
  0%,
  12%,
  100% {
    color: #f4f5f7;
    text-shadow: none;
    filter: none;
  }
  18% {
    color: #9ec9ff;
    text-shadow:
      0 0 6px rgba(90, 170, 255, 0.55),
      0 0 14px rgba(60, 140, 255, 0.35);
  }
  24% {
    color: #d7ebff;
    text-shadow:
      0 0 10px rgba(120, 190, 255, 0.85),
      0 0 22px rgba(70, 150, 255, 0.55),
      0 0 36px rgba(40, 120, 255, 0.28);
  }
  32% {
    color: #8ebfff;
    text-shadow:
      0 0 8px rgba(90, 170, 255, 0.45),
      0 0 16px rgba(60, 140, 255, 0.25);
  }
  42% {
    color: #f4f5f7;
    text-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rubric-title .rubric-char,
  .top-moment-video-label .rubric-char {
    animation: none !important;
  }

  .rubric-title .rubric-char {
    color: #f4f5f7 !important;
    text-shadow: none !important;
  }

  .top-moment-video-label .rubric-char {
    filter: none !important;
  }
}

.rubric-lead {
  margin: 0 0 0.75rem;
  font-size: clamp(0.88rem, 1.8vw, 1rem);
  line-height: 1.45;
  color: rgba(200, 210, 224, 0.82);
  max-width: 34rem;
  text-wrap: pretty;
}

/* Top Momente: feste Zeilen ohne Wort-Witwen (bes. Handy) */
.rubric-lead--fotos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15em;
  max-width: 36rem;
}

.rubric--right .rubric-lead--fotos {
  align-items: flex-end;
  text-align: right;
}

.rubric-lead-line {
  display: block;
  white-space: nowrap;
}

.rubric--center .rubric-lead {
  margin-inline: auto;
}

/*
 * Legend Rail – Rubrik-Stichworte als Index-Zeile (kein Button-Look)
 * Senkrechter Ligafarb-Strich + Uppercase + feine Trenner
 */
.rubric-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
  margin: 0.15rem 0 0;
  padding: 0.35rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 40rem;
}

.rubric--center .rubric-chips {
  justify-content: center;
  margin-inline: auto;
}

.rubric-chips li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.2rem 0.85rem 0.15rem 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(190, 200, 214, 0.78);
  line-height: 1.2;
  cursor: default;
  pointer-events: none; /* klar: nicht klickbar */
  user-select: none;
}

.rubric-chips li::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 2px;
  height: 0.85em;
  border-radius: 1px;
  background: var(--rubric-accent);
  opacity: 0.9;
  box-shadow: none; /* kein Glow = kein „Button-Signal“ */
}

/* feiner Trenner zwischen den Stichworten */
.rubric-chips li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 1px;
  height: 0.7em;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

/* Themenfarben pro Rubrik */
.rubric--stats {
  --rubric-accent: var(--liga-a);
}
.rubric--nav {
  --rubric-accent: var(--liga-b);
}
.rubric--sound {
  --rubric-accent: var(--liga-a);
}
.rubric--spieltag {
  --rubric-accent: var(--liga-c);
}
.rubric--fotos {
  --rubric-accent: var(--liga-a);
}
.rubric--live {
  --rubric-accent: var(--liga-b);
}
.rubric--community {
  --rubric-accent: var(--liga-c);
}

/* Abstand + gleiche Trennlinie zwischen Rubrik 02 (Nav) und 03 (Sounds) */
.sound-rubric-wrap.section-breath {
  padding-top: var(--space-section);
  margin-top: var(--space-block);
}

/* 1px-Marke genau an der Trennlinie (Peek-Trigger Handy) */
.sound-divider-sentinel {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  pointer-events: none;
  opacity: 0;
}

.sound-rubric-wrap {
  margin-top: var(--space-block);
  margin-bottom: 0.55rem;
  width: min(100% - 3.5rem, 52rem);
  max-width: 52rem;
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}

@media (min-width: 1100px) {
  .sound-rubric-wrap {
    width: min(100% - 6rem, 50rem);
  }
}

.sound-rubric-wrap .rubric {
  margin-bottom: 0.65rem;
}

/* Live-Kopf: Rubrik + Actions in einer Zeile auf Desktop */
.live-head--rubric {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin-bottom: var(--space-block);
}

/* flex-basis nur in der Desktop-Zeile – mobil (column) darf das keine Mindesthöhe erzeugen */
.live-head--rubric .rubric {
  margin-bottom: 0;
  flex: 1 1 auto;
  max-width: min(40rem, 100%);
  min-height: 0;
}

@media (min-width: 641px) {
  .live-head--rubric .rubric {
    flex: 1 1 16rem;
  }
}

.live-head--rubric .live-actions {
  margin-top: 0.35rem;
  flex: 0 0 auto;
  flex-shrink: 0;
}

/* Bei rechts ausgerichteter Live-Rubrik: Actions unten/links im Flow */
.live-head--rubric:has(.rubric--right) {
  flex-direction: column;
  align-items: stretch;
}

.live-head--rubric:has(.rubric--right) .live-actions {
  align-self: flex-end;
}

@media (max-width: 640px) {
  .rubric {
    margin-bottom: var(--space-block);
  }

  .rubric-title {
    font-size: clamp(1.25rem, 5.5vw, 1.55rem);
  }

  .rubric-lead {
    font-size: 0.88rem;
    margin-bottom: 0.65rem;
  }

  .rubric-lead--fotos {
    gap: 0.2em;
    width: 100%;
  }

  .rubric-lead--fotos .rubric-lead-line {
    white-space: normal;
    text-wrap: balance;
    max-width: 100%;
  }

  /* Sehr schmale Screens: etwas kleiner, damit Zeilen komplett bleiben */
  .rubric-lead--fotos {
    font-size: clamp(0.8rem, 3.6vw, 0.9rem);
  }

  .rubric-chips li {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    padding: 0.15rem 0.7rem 0.1rem 0;
  }

  .rubric-index {
    min-width: 1.85rem;
    height: 1.4rem;
    font-size: 0.62rem;
  }

  .rubric-kicker {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }

  /*
   * 3K-Kopf mobil:
   * flex-basis:16rem am Rubrik-Block wurde in column-Layout zur Mindesthöhe
   * → große leere Lücke über den Buttons. Hier: auto-Höhe, enger Stack.
   */
  .live-head.live-head--rubric,
  .live-head--rubric {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0.7rem !important;
    margin-bottom: 0.7rem !important;
    min-height: 0 !important;
    height: auto !important;
  }

  .live-head--rubric .rubric {
    flex: 0 0 auto !important;
    flex-basis: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 0 !important;
  }

  .live-head--rubric .rubric-lead {
    margin-bottom: 0.5rem;
  }

  .live-head--rubric .rubric-chips {
    margin: 0;
  }

  .live-head--rubric .live-actions {
    display: flex;
    width: 100%;
    margin-top: 0 !important;
    margin-bottom: 0;
    justify-content: stretch;
    gap: 0.4rem;
    flex: 0 0 auto !important;
  }

  .live-head--rubric .live-actions .btn {
    flex: 1 1 0;
    min-height: 44px;
  }
}

/* ========== STATS – kompakt, ein Blick ========== */
.stats {
  position: relative;
  padding-block: var(--space-section);
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
  overflow: hidden;
}

/* Weniger Scroll: engere Abstände, flachere Karten */
.stats--compact {
  padding-block: var(--space-section);
}

.stats--compact .stats-head {
  margin-bottom: var(--space-block);
  max-width: none;
}

.stats--compact .stats-head .eyebrow {
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
}

.stats--compact .stats-head h2 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  line-height: 1.15;
}

.stats--compact .stats-lead {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 40rem;
}

.stats--compact .tabs {
  margin-bottom: 0.75rem;
  padding: 0.28rem;
  gap: 0.25rem;
}

.stats--compact .tab {
  padding: 0.42rem 0.95rem;
  font-size: 0.88rem;
}

.stats--compact .stats-board-head {
  display: none; /* Liga steht schon im Tab */
}

.stats--compact .stats-board-body {
  gap: 0.75rem;
  padding: 0.75rem;
}

.stats--compact .spotlight {
  gap: 0.85rem;
  padding: 0.85rem 1rem;
}

.stats--compact .spotlight-ring {
  width: 96px;
  height: 96px;
}

.stats--compact .spotlight-num {
  font-size: 1.65rem;
}

/* —— Bestleistung-Jagd (Top 5) —— */
.bl-race {
  margin-top: 1.15rem;
  padding: 1rem 1.05rem 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse 80% 70% at 12% 0%, rgba(245, 197, 24, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 60% at 90% 100%, rgba(227, 28, 35, 0.06), transparent 50%),
    linear-gradient(165deg, rgba(22, 26, 34, 0.95), rgba(10, 12, 16, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 28px rgba(0, 0, 0, 0.28);
}

.bl-race-head {
  margin-bottom: 0.75rem;
}

.bl-race-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(190, 200, 214, 0.75);
}

.bl-race-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--liga-c);
  box-shadow: 0 0 10px rgba(245, 197, 24, 0.7);
  animation: bl-race-dot-pulse 2.2s ease-in-out infinite;
}

@keyframes bl-race-dot-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.bl-race-title {
  margin: 0 0 0.25rem;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

.bl-race-lead {
  margin: 0;
  max-width: 40rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--muted);
}

.bl-race-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.bl-race-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
}

.bl-race-row.is-place-1 {
  border-color: rgba(245, 197, 24, 0.35);
  background:
    linear-gradient(105deg, rgba(245, 197, 24, 0.12), transparent 55%),
    rgba(0, 0, 0, 0.32);
  box-shadow: 0 0 18px rgba(245, 197, 24, 0.08);
}

.bl-race-rank {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  font-family: "Audiowide", "Share Tech Mono", ui-monospace, sans-serif;
  font-size: 0.78rem;
  color: #0a0b0e;
  background: rgba(255, 255, 255, 0.82);
}

.bl-race-row.is-place-1 .bl-race-rank {
  background: linear-gradient(180deg, #ffe566, #f5c518 55%, #d4a40f);
  box-shadow: 0 0 12px rgba(245, 197, 24, 0.45);
}

.bl-race-row.is-place-2 .bl-race-rank {
  background: linear-gradient(180deg, #f2f4f7, #c8ced6);
}

.bl-race-row.is-place-3 .bl-race-rank {
  background: linear-gradient(180deg, #e0b892, #b87333);
  color: #1a120a;
}

.bl-race-main {
  min-width: 0;
  display: grid;
  gap: 0.32rem;
}

.bl-race-who {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.55rem;
}

.bl-race-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.bl-race-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: rgba(190, 200, 214, 0.78);
}

.bl-race-liga {
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.bl-race-row.is-liga-a .bl-race-liga {
  color: #ffb4b4;
  border-color: rgba(227, 28, 35, 0.45);
  background: rgba(227, 28, 35, 0.12);
}

.bl-race-row.is-liga-b .bl-race-liga {
  color: #9af0b8;
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
}

.bl-race-row.is-liga-c .bl-race-liga {
  color: #ffe566;
  border-color: rgba(245, 197, 24, 0.45);
  background: rgba(245, 197, 24, 0.12);
}

.bl-race-bar {
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bl-race-bar-fill {
  display: block;
  height: 100%;
  width: var(--bl-pct, 40%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--liga-a), var(--liga-b), var(--liga-c));
  box-shadow: 0 0 10px rgba(245, 197, 24, 0.25);
}

.bl-race-count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12rem;
  font-family: "Audiowide", "Share Tech Mono", ui-monospace, sans-serif;
  color: #6ef5a4;
  text-shadow: 0 0 10px rgba(57, 224, 122, 0.35);
}

.bl-race-count-num {
  font-size: 1.25rem;
  line-height: 1;
}

.bl-race-count-unit {
  font-size: 0.72rem;
  opacity: 0.8;
}

.bl-race-foot {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(160, 175, 190, 0.65);
}

.bl-race-row.is-empty {
  display: block;
  padding: 0.85rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .bl-race {
    margin-top: 0.9rem;
    padding: 0.85rem 0.75rem 0.75rem;
  }

  .bl-race-row {
    grid-template-columns: 1.7rem minmax(0, 1fr) auto;
    gap: 0.4rem 0.5rem;
    padding: 0.48rem 0.55rem;
  }

  .bl-race-name {
    font-size: 0.88rem;
  }

  .bl-race-count-num {
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bl-race-dot {
    animation: none !important;
  }
}

.stats--compact .spotlight-unit {
  font-size: 0.62rem;
}

.stats--compact .spotlight-badge {
  margin-bottom: 0.35rem;
  padding: 0.22rem 0.55rem;
  font-size: 0.65rem;
}

.stats--compact .player-name {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  margin-bottom: 0.1rem;
}

.stats--compact .player-team {
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}

.stats--compact .spotlight-copy {
  display: none; /* spart Höhe, Info steht im Badge */
}

.stats--compact .season-static {
  --ss-pad-x: 0.5rem;
  --ss-pad-y: 0.4rem;
  --ss-cols: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(6.25rem, 0.95fr);
}

.stats--compact .season-banner {
  min-height: 3.75rem;
}

.stats--compact .sb-val {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
}

.stats--compact .sb-lab {
  margin-top: 0.2rem;
  font-size: 0.5rem;
  letter-spacing: 0.04em;
}

.stats--compact .sb-year-kicker {
  font-size: 0.5rem;
}

.stats--compact .sb-year strong {
  font-size: clamp(0.88rem, 1.8vw, 1.05rem);
}

.stats--compact .season-row {
  min-height: 2.2rem;
}

.stats--compact .sr-num {
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
}

.stats--compact .sr-label {
  font-size: 0.62rem;
}

.stats--compact .stats-board {
  border-radius: 14px;
}

/* —— Animationen: +20 % langsamer —— */
.stats-boards--tabs .stats-board.is-active.is-animating {
  animation: stats-board-in 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.stats-board.is-animating .spotlight {
  animation: stats-spot-in 2.64s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.stats-board.is-animating .spotlight-body {
  animation: stats-fade-up 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.38s both;
}

.stats-board.is-animating .season-static {
  animation: stats-fade-up 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.29s both;
}

.stats-board.is-animating .season-row {
  animation: stats-row-in 2.16s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: calc(0.58s + var(--row-i, 0) * 0.34s);
}

/* Count-up: Farbe kommt aus JS (Gelb→Grün→Rot→Schwarz) */
.spotlight-num.is-counting,
.sb-val.is-counting,
.sr-num.is-counting {
  transition: none;
  text-shadow: none;
}

/* Leerer Spotlight: gleicher offener Ring, etwas gedämpft */
.spotlight.is-waiting .ring-track {
  stroke: color-mix(in srgb, var(--accent) 22%, rgba(255, 255, 255, 0.08));
  stroke-width: 7;
}

.spotlight.is-waiting .ring-arc {
  opacity: 0.7;
}

.spotlight.is-waiting .ring-spinner {
  animation-duration: 3.6s;
}

/* leerer Spotlight: kein farbiges Vollquadrat hinter dem Ring */
.spotlight.is-waiting,
.spotlight.is-empty {
  background: linear-gradient(145deg, #1a1e28 0%, #12151c 100%);
}

.spotlight.is-waiting::before,
.spotlight.is-empty::before {
  opacity: 0.35;
}

.spotlight.is-waiting .spotlight-num:not(.is-counting) {
  opacity: 0.75;
}

.spotlight.is-waiting .spotlight-badge {
  position: relative;
}

.spotlight.is-waiting .spotlight-badge::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.05em;
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: stats-live-dot 1.8s ease-out infinite;
}

@keyframes stats-loading-spin {
  from {
    transform: rotate(-90deg);
  }
  to {
    transform: rotate(270deg);
  }
}

@keyframes stats-loading-dash {
  0% {
    stroke-dasharray: 48 279;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 120 207;
    stroke-dashoffset: -40;
  }
  100% {
    stroke-dasharray: 48 279;
    stroke-dashoffset: -327;
  }
}

/* Banner aktuelle Saison */
.season-banner {
  position: relative;
  overflow: hidden;
}

.season-banner-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: stats-banner-shine 19.2s ease-in-out infinite;
  opacity: 0.85;
}

.season-banner.is-zero-season .sb-val:not(.is-counting) {
  opacity: 0.9;
}

@keyframes stats-board-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes stats-spot-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes stats-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes stats-row-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes stats-ring-wait {
  0%,
  100% {
    opacity: 0.3;
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    opacity: 0.75;
    filter: drop-shadow(0 0 8px var(--accent-glow));
  }
}

@keyframes stats-zero-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes stats-live-dot {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent);
  }
  70% {
    box-shadow: 0 0 0 8px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@keyframes stats-banner-shine {
  0%,
  100% {
    background-position: 140% 0;
  }
  50% {
    background-position: -40% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stats-board.is-animating .spotlight,
  .stats-board.is-animating .spotlight-body,
  .stats-board.is-animating .season-static,
  .stats-board.is-animating .season-row,
  .stats-boards--tabs .stats-board.is-active.is-animating,
  .spotlight.is-waiting .spotlight-num,
  .spotlight.is-waiting .spotlight-badge::before,
  .season-banner-shine,
  .season-banner.is-zero-season .sb-val,
  .ring-spinner {
    animation: none !important;
  }

  .ring-spinner {
    transform: rotate(-90deg);
  }
}

@media (max-width: 900px) {
  .stats--compact .spotlight-copy {
    display: none;
  }

  .stats--compact .stats-board-body {
    padding: 0.65rem;
  }
}

/* Kein farbiger Glow mehr unter dem Hero / über den Bestleistungen */
.stats-glow {
  display: none;
}

/* Tabs in Ligafarben */
.tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.4rem;
  border-radius: 999px;
  width: fit-content;
  border: 1px solid var(--border);
}

.tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.tab-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.tab-a .tab-dot {
  background: var(--liga-a);
  opacity: 1;
}
.tab-b .tab-dot {
  background: var(--liga-b);
  opacity: 1;
}
.tab-c .tab-dot {
  background: var(--liga-c);
  opacity: 1;
}

.tab:hover {
  color: var(--text);
}

.tab-a.is-active {
  background: var(--liga-a);
  color: #fff;
  box-shadow: 0 6px 22px var(--liga-a-glow);
}
.tab-b.is-active {
  background: var(--liga-b);
  color: #04140a;
  box-shadow: 0 6px 22px var(--liga-b-glow);
}
.tab-c.is-active {
  background: var(--liga-c);
  color: #1a1400;
  box-shadow: 0 6px 22px var(--liga-c-glow);
}

/* Liga color tokens */
.liga-a {
  --accent: var(--liga-a);
  --accent-soft: var(--liga-a-soft);
  --accent-glow: var(--liga-a-glow);
  --accent-ink: #fff;
}
.liga-b {
  --accent: var(--liga-b);
  --accent-soft: var(--liga-b-soft);
  --accent-glow: var(--liga-b-glow);
  --accent-ink: #04140a;
}
.liga-c {
  --accent: var(--liga-c);
  --accent-soft: var(--liga-c-soft);
  --accent-glow: var(--liga-c-glow);
  --accent-ink: #1a1400;
}

/* Eine Liga sichtbar (Tabs) */
.stats-boards {
  display: block;
}

.stats-boards--tabs .stats-board[hidden] {
  display: none;
}

.stats-boards--tabs .stats-board.is-active {
  display: block;
}

.stats-board {
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  background:
    radial-gradient(ellipse 70% 60% at 0% 0%, var(--accent-soft), transparent 50%),
    var(--bg-card);
  box-shadow: none;
  overflow: hidden;
}

.stats-board-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.15rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

.stats-board-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stats-board-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: none;
}

.stats-board-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 1rem;
  padding: 1rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .stats-board-body {
    grid-template-columns: 1fr;
  }
}

/* Statische Zeile: Top-HF vergangener Jahre (unter der Bestenliste) */
.hf-history-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin: 0 1rem 1rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  background:
    radial-gradient(ellipse 70% 120% at 0% 50%, var(--accent-soft), transparent 55%),
    linear-gradient(90deg, #12161e 0%, #0e1218 100%);
}

.hf-history-label {
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.hf-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-width: 0;
}

.hf-history-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.45rem;
  row-gap: 0.05rem;
  align-items: center;
  min-width: 0;
  padding: 0.28rem 0.55rem 0.28rem 0.4rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hf-history-val {
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #f5f5f5;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px color-mix(in srgb, var(--accent) 40%, transparent);
}

.hf-history-who {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.35rem;
}

.hf-history-player {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 11rem;
}

.hf-history-team {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 10rem;
}

.hf-history-season {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 80%, #fff);
}

.stats--compact .hf-history-row {
  margin: 0 0.75rem 0.75rem;
  padding: 0.45rem 0.6rem;
  gap: 0.45rem 0.65rem;
}

.stats--compact .hf-history-label {
  font-size: 0.58rem;
}

.stats--compact .hf-history-val {
  font-size: 0.95rem;
}

.stats--compact .hf-history-player {
  font-size: 0.72rem;
  max-width: 9rem;
}

.stats--compact .hf-history-team {
  font-size: 0.62rem;
  max-width: 8rem;
}

.stats--compact .hf-history-season {
  font-size: 0.54rem;
}

@media (max-width: 560px) {
  .hf-history-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hf-history-list {
    flex-direction: column;
  }

  .hf-history-item {
    width: 100%;
  }

  .hf-history-player,
  .hf-history-team {
    max-width: none;
  }
}

/* Statischer Saison-Vergleich – ein gemeinsames 4-Spalten-Raster */
.season-static {
  --ss-cols: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(6.75rem, 0.95fr);
  --ss-pad-x: 0.65rem;
  --ss-pad-y: 0.55rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0b0e;
}

/* Banner + Zeilen teilen exakt dasselbe Grid */
.season-banner,
.season-row {
  display: grid;
  grid-template-columns: var(--ss-cols);
  column-gap: 0;
  align-items: center;
  padding: var(--ss-pad-y) var(--ss-pad-x);
  box-sizing: border-box;
}

.season-banner {
  position: relative;
  overflow: hidden;
  min-height: 4.25rem;
  background: linear-gradient(
    100deg,
    color-mix(in srgb, var(--accent) 92%, #000) 0%,
    color-mix(in srgb, var(--accent) 70%, #1a0505) 55%,
    color-mix(in srgb, var(--accent) 55%, #000) 100%
  );
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.liga-b .season-banner {
  background: linear-gradient(
    100deg,
    color-mix(in srgb, var(--liga-b) 88%, #000) 0%,
    color-mix(in srgb, var(--liga-b) 65%, #04140a) 100%
  );
}

.liga-c .season-banner {
  background: linear-gradient(
    100deg,
    color-mix(in srgb, var(--liga-c) 90%, #000) 0%,
    color-mix(in srgb, var(--liga-c) 60%, #1a1400) 100%
  );
}

.sb-metric {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
  padding: 0 0.2rem;
}

.sb-val {
  display: block;
  width: 100%;
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 1.95rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* Nach Count-up: schwarz; während Count: inline per JS */
.sb-val:not(.is-counting) {
  color: #0a0a0a;
  text-shadow: none;
}

.sb-lab {
  display: block;
  width: 100%;
  margin-top: 0.32rem;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: #0a0a0a;
  line-height: 1.15;
  white-space: nowrap;
}

.sb-lab-short {
  display: none;
}

.sb-year {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
  padding: 0 0.15rem;
  color: #0a0a0a;
  text-transform: uppercase;
  line-height: 1.15;
}

.sb-year-kicker {
  display: block;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 1;
  color: #0a0a0a;
}

.sb-year strong {
  display: block;
  margin-top: 0.15rem;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #0a0a0a;
}

.season-rows {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #fafafa;
}

.season-row {
  min-height: 2.55rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-variant-numeric: tabular-nums;
}

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

.season-row:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

.sr-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 0 0.2rem;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.sr-num:not(.is-counting) {
  color: #0a0a0a;
}

/* Highfinish-Wert: final Weiß (Count-up setzt inline, danach Weiß) */
.spotlight-num:not(.is-counting) {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.sr-label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
  padding: 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #6b7280;
  text-transform: uppercase;
}

.stats-board .spotlight {
  margin: 0;
  min-height: 100%;
}

@media (max-width: 520px) {
  .season-static {
    --ss-cols: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(5.25rem, 0.9fr);
    --ss-pad-x: 0.35rem;
  }

  .sb-lab,
  .sb-year-kicker,
  .sr-label {
    font-size: 0.48rem;
    letter-spacing: 0.02em;
  }

  .sb-year strong {
    font-size: 0.82rem;
  }
}

/* Spotlight – Spieler im Fokus */
.spotlight {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 1.6rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(ellipse 80% 80% at 15% 50%, var(--accent-soft), transparent 55%),
    linear-gradient(145deg, #1a1e28 0%, #12151c 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: none;
  overflow: hidden;
}

.spotlight::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 55%;
  height: 120%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.spotlight-ring {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.spotlight-ring svg {
  width: 100%;
  height: 100%;
}

.ring-track {
  fill: none !important;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 7;
}

/*
 * Offener Kreis-Bogen: eine Animation (Rotation),
 * statt Progress-Bogen + separatem Lauflicht-Punkt.
 * Umfang ≈ 326.73 → sichtbarer Bogen ~58 %, Lücke ~42 %.
 */
.ring-arc {
  fill: none !important;
  stroke: var(--accent);
  stroke-width: 7.5;
  stroke-linecap: round;
  stroke-dasharray: 190 136.73;
  stroke-dashoffset: 0;
  filter: none;
}

.ring-spinner {
  transform-origin: 60px 60px;
  transform-box: view-box;
  animation: ring-open-spin 2.8s linear infinite;
}

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

.spotlight-ring svg,
.spotlight-ring circle {
  fill: none !important;
  background: transparent !important;
}

.spotlight-ring {
  background: transparent !important;
}

/* Offscreen / Pause: Drehung stoppen */
.stats.is-fx-paused .ring-spinner,
.stats-board.is-fx-paused .ring-spinner {
  animation-play-state: paused !important;
}

.spotlight-score {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.spotlight-num {
  font-size: 2.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.spotlight-num.is-counting {
  text-shadow: none;
}

.spotlight-unit {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  margin-top: 0.15rem;
}

.spotlight-body {
  position: relative;
  min-width: 0;
}

.spotlight-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.player-name {
  margin: 0 0 0.2rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.player-team {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.spotlight-copy {
  margin: 0;
  font-size: 0.92rem;
  color: #a8b0bd;
  max-width: 26rem;
}

@media (max-width: 560px) {
  .spotlight {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .spotlight-copy {
    max-width: none;
  }
}

/* Mobile Bestleistungen: Spotlight horizontal (spart Höhe) */
@media (max-width: 640px) {
  .stats--compact .spotlight {
    flex-direction: row !important;
    text-align: left !important;
    gap: 0.55rem !important;
  }
}

/* Metric cards */
.metric-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.15rem 1rem;
  align-items: center;
  transition: border-color 0.2s, transform 0.15s;
  box-shadow: none;
}

.metric-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: none;
  transform: translateX(2px);
}

.metric-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  grid-column: 1;
}

.metric-icon {
  font-size: 1rem;
}

.metric-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric-value {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  background: linear-gradient(180deg, #fff 30%, color-mix(in srgb, var(--accent) 70%, #fff));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: right;
}

.metric-foot {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
}

.metric-hint {
  font-size: 0.78rem;
  color: var(--muted);
}

.chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.chip.up {
  background: var(--accent-soft);
  color: var(--accent);
}

.chip.flat {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

/* Leerer Spotlight (neue Saison ohne Werte) */
.spotlight.is-empty {
  border-style: dashed;
  opacity: 0.95;
}

.spotlight.is-empty:not(.is-waiting) .ring-arc {
  opacity: 0.4;
}

.spotlight.is-empty:not(.is-waiting) .ring-spinner {
  animation-play-state: paused;
}

.spotlight.is-empty .spotlight-num {
  text-shadow: none;
}

.spotlight.is-empty:not(.is-waiting) .spotlight-num {
  opacity: 0.55;
}

.spotlight.is-empty .player-name {
  color: var(--muted);
  font-weight: 800;
}

/* ========== Saison-Verlauf: animierte Grafik ========== */
.season-chart {
  --chart-accent: var(--liga-a);
  --chart-glow: var(--liga-a-glow);
  --chart-soft: var(--liga-a-soft);
  margin-top: 1.5rem;
  padding: 1.35rem 1.35rem 1.15rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, var(--chart-soft), transparent 55%),
    linear-gradient(165deg, #161a24 0%, #10141c 55%, #0c0f15 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 24px 50px rgba(0, 0, 0, 0.4);
  transition: background 0.45s ease, border-color 0.45s ease;
}

.season-chart[data-liga="b"] {
  --chart-accent: var(--liga-b);
  --chart-glow: var(--liga-b-glow);
  --chart-soft: var(--liga-b-soft);
}

.season-chart[data-liga="c"] {
  --chart-accent: var(--liga-c);
  --chart-glow: var(--liga-c-glow);
  --chart-soft: var(--liga-c-soft);
}

.season-chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.season-chart-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chart-accent);
}

.season-chart-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.chart-metric-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
}

.chart-metric {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.chart-metric:hover {
  color: var(--text);
}

.chart-metric.is-active {
  background: var(--chart-accent);
  color: #0a0a0a;
  box-shadow: 0 0 18px var(--chart-glow);
}

.chart-stage {
  position: relative;
  height: 220px;
  padding: 0.5rem 0.25rem 0;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.chart-grid {
  position: absolute;
  inset: 0.75rem 0.75rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.chart-grid span {
  display: block;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.07) 8%,
    rgba(255, 255, 255, 0.07) 92%,
    transparent
  );
}

.chart-bars {
  position: absolute;
  inset: 0.75rem 0.5rem 0.35rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 0.5rem;
}

.chart-col {
  flex: 1;
  max-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  min-width: 0;
  height: 100%;
}

.chart-bar-wrap {
  position: relative;
  width: 100%;
  max-width: 52px;
  height: calc(100% - 2.1rem);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.chart-bar {
  width: 100%;
  height: 0%;
  min-height: 0;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--chart-accent) 100%, #fff 25%) 0%,
    var(--chart-accent) 45%,
    color-mix(in srgb, var(--chart-accent) 55%, #000) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 22px var(--chart-glow),
    0 8px 18px rgba(0, 0, 0, 0.35);
  transition: height 1.05s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: relative;
}

.chart-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 48%,
    transparent 65%
  );
  background-size: 200% 100%;
  animation: chart-shine 3.2s ease-in-out infinite;
  opacity: 0.7;
  pointer-events: none;
}

.chart-bar.is-zero {
  min-height: 4px;
  height: 4px !important;
  opacity: 0.45;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.12);
}

.chart-bar.is-zero::after {
  display: none;
}

.chart-bar.is-missing {
  min-height: 4px;
  height: 4px !important;
  opacity: 0.28;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.08) 3px,
    transparent 3px,
    transparent 6px
  );
  box-shadow: none;
}

.chart-bar.is-missing::after {
  display: none;
}

.chart-bar.is-current {
  outline: 1px dashed color-mix(in srgb, var(--chart-accent) 55%, transparent);
  outline-offset: 3px;
}

.chart-val {
  position: absolute;
  top: -1.35rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease 0.55s;
}

.season-chart.is-animated .chart-val {
  opacity: 1;
}

.chart-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
}

.chart-label strong {
  display: block;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.chart-col.is-current .chart-label strong {
  color: var(--chart-accent);
}

.chart-records {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.chart-record-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--chart-accent) 35%, transparent);
  background: color-mix(in srgb, var(--chart-accent) 12%, transparent);
  font-size: 0.78rem;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.season-chart.is-animated .chart-record-pill {
  opacity: 1;
  transform: none;
}

.season-chart.is-animated .chart-record-pill:nth-child(1) {
  transition-delay: 0.15s;
}
.season-chart.is-animated .chart-record-pill:nth-child(2) {
  transition-delay: 0.28s;
}
.season-chart.is-animated .chart-record-pill:nth-child(3) {
  transition-delay: 0.4s;
}
.season-chart.is-animated .chart-record-pill:nth-child(4) {
  transition-delay: 0.52s;
}

.chart-record-pill .cr-saison {
  font-weight: 800;
  color: var(--chart-accent);
}

.chart-record-pill .cr-wert {
  font-weight: 900;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.chart-record-pill .cr-name {
  color: var(--muted);
}

.chart-note {
  margin: 0.85rem 0 0;
}

@keyframes chart-shine {
  0%,
  100% {
    background-position: 120% 0;
  }
  50% {
    background-position: -20% 0;
  }
}

@media (max-width: 640px) {
  .chart-stage {
    height: 200px;
  }

  .chart-metric {
    padding: 0.4rem 0.55rem;
    font-size: 0.72rem;
  }

  .chart-bar-wrap {
    max-width: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chart-bar,
  .chart-val,
  .chart-record-pill {
    transition: none !important;
  }

  .chart-bar::after {
    animation: none;
  }
}

/* Compare */
.compare-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.15rem;
  box-shadow: none;
}

.compare-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.compare-head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.compare-head p {
  margin: 0;
  font-size: 0.9rem;
}

.compare-rows {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.compare-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 520px) {
  .compare-row {
    grid-template-columns: 1fr;
  }
}

.compare-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bar-group {
  display: grid;
  grid-template-columns: 1fr 3rem;
  gap: 0.5rem;
  align-items: center;
}

.bar-group small {
  color: var(--muted);
  font-size: 0.75rem;
  text-align: right;
}

.bar {
  --p: 50%;
  position: relative;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p);
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, #000), var(--accent));
  box-shadow: 0 0 16px var(--accent-soft);
  transition: width 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar.bar-prev::before {
  background: linear-gradient(90deg, #3a4254, #6d7890);
  box-shadow: none;
}

.bar span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 0.65rem;
  font-size: 0.8rem;
  font-weight: 800;
}

.legend-records {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.record-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}

.record-pill .yr {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.record-pill strong {
  color: var(--text);
  font-size: 0.95rem;
}

.stats-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.stats .btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.stats .btn-primary:hover,
.stats .btn-primary:focus-visible {
  background: #e31c23;
  color: #0a0a0a;
  border-color: #e31c23;
  box-shadow: 0 8px 28px rgba(227, 28, 35, 0.4);
  animation: btn-soft-red-pulse 2.2s ease-in-out 1s infinite;
}

/* ========== LIVE 3K / 2K EMBED – maximal Fläche ========== */
.live-section {
  position: relative;
  z-index: 1;
  padding-block: var(--space-section-soft);
  /* kein grüner Hintergrund-Schimmer oben rechts */
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* breiter als Normal-Container, damit mehr 3K-Inhalt passt */
.container--live {
  max-width: min(1280px, calc(100% - 1.5rem));
  margin-inline: auto;
  padding-inline: 0.75rem;
}

.live-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.live-head--compact {
  margin-bottom: 0.55rem;
}

.live-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.85rem;
  min-width: 0;
}

.live-title-row .eyebrow {
  margin: 0;
}

.live-title-row h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.live-eyebrow {
  color: var(--liga-b) !important;
}

.live-eyebrow .live-dot {
  background: var(--liga-b);
  box-shadow: 0 0 0 0 var(--liga-b-glow);
}

.live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex-shrink: 0;
}

/* Vollbild: kein äußerer Glow / Puls-Schimmer */
.live-actions .btn-primary {
  box-shadow: none;
  filter: none;
}

.live-actions .btn-primary:hover,
.live-actions .btn-primary:focus-visible {
  box-shadow: none;
  filter: none;
  animation: none;
}

.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
}

.embed-shell {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: none;
  overflow: hidden;
}

.embed-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1.1rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.embed-toolbar--slim {
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  min-height: 0;
}

.embed-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
}

.embed-brand img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
}

.embed-toolbar--slim .embed-brand img {
  width: 20px;
  height: 20px;
}

.embed-source {
  color: var(--muted);
  font-size: 0.75rem;
}

/* Großes Fenster: möglichst viel Mannschaftsliste auf einmal */
.embed-frame-wrap {
  position: relative;
  /* ca. Viewport minus Header/Toolbar – deutlich mehr als vorher */
  min-height: min(78vh, 900px);
  height: min(78vh, 900px);
  background: #0e1014;
}

.embed-shell--tall .embed-frame-wrap {
  min-height: min(82vh, 980px);
  height: min(82vh, 980px);
}

.embed-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  background: #0e1014;
}

@media (max-width: 900px) {
  .embed-frame-wrap,
  .embed-shell--tall .embed-frame-wrap {
    min-height: min(72vh, 760px);
    height: min(72vh, 760px);
  }
}

@media (max-width: 640px) {
  .live-section {
    padding-block: 1.35rem 1.5rem;
  }

  .container--live {
    max-width: 100%;
    padding-inline: 0.5rem;
  }

  .live-head,
  .live-head--rubric {
    margin-bottom: 0.65rem;
  }

  .embed-frame-wrap,
  .embed-shell--tall .embed-frame-wrap {
    min-height: min(70vh, 640px);
    height: min(70vh, 640px);
  }

  .embed-source {
    display: none;
  }
}

.embed-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(227, 28, 35, 0.12), transparent 60%),
    #12151c;
  z-index: 2;
}

.embed-fallback[hidden] {
  display: none;
}

.fallback-logo {
  width: 120px;
  height: auto;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}

.embed-fallback h3 {
  margin: 0;
  font-size: 1.35rem;
}

.embed-fallback p {
  margin: 0 0 0.5rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.embed-note {
  margin: 0;
  padding: 0.85rem 1.1rem 1rem;
  border-top: 1px solid var(--border);
}

/* Discover – nach Stats */
.discover {
  padding: 3.5rem 0 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.discover-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  min-height: 100%;
}

.discover-card:hover {
  background: var(--bg-card-hover);
  border-color: color-mix(in srgb, var(--liga-a) 40%, transparent);
  transform: translateY(-3px);
}

.card-icon {
  font-size: 1.45rem;
  margin-bottom: 0.3rem;
}

.discover-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.discover-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.card-go {
  margin-top: 0.75rem;
  color: var(--liga-a);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Aktuell */
.aktuell {
  padding: 2.5rem 0 4rem;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1rem;
}

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

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-card.featured {
  background:
    linear-gradient(160deg, var(--liga-a-soft), transparent 55%),
    var(--bg-card);
  border-color: color-mix(in srgb, var(--liga-a) 35%, transparent);
}

.news-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.news-card a {
  color: var(--liga-a);
  font-weight: 700;
  font-size: 0.92rem;
  margin-top: 0.5rem;
}

.tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--liga-a);
  background: var(--liga-a-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

/* Mitspielen ist in #community integriert */

/* Footer – ähnlich Header */
.site-footer {
  margin-top: 0;
  padding: var(--space-section-soft) 0 var(--space-band);
  border-top: 1px solid var(--border);
  background: rgba(10, 11, 14, 0.92);
  backdrop-filter: blur(14px);
}

.footer-strip {
  margin-bottom: 0;
  height: 3px;
}

/* Mini-Streifen (z. B. in Karten) – ebenfalls animiert */
.liga-strip.mini {
  width: 70%;
  height: 3px;
  border-radius: 999px;
  margin-inline: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  min-height: 64px;
  padding-top: 0.35rem;
}

.footer-logo {
  flex-shrink: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.15rem;
  flex: 1 1 auto;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-nav a[aria-current="page"] {
  color: var(--text);
  outline: none;
}

.footer-partner {
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.22rem;
  text-decoration: none;
  border-radius: 10px;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

/* Text-Button statt Logo */
.footer-partner--btn {
  align-items: flex-end;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.footer-partner:hover,
.footer-partner:focus-visible {
  transform: translateY(-1px);
  outline: none;
}



.footer-partner-kicker {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.footer-partner-name {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #3b82f6;
  line-height: 1.2;
}

.footer-partner--btn:hover .footer-partner-name,
.footer-partner--btn:focus-visible .footer-partner-name {
  color: #60a5fa;
}

.footer-partner--btn:hover,
.footer-partner--btn:focus-visible {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 16px rgba(59, 130, 246, 0.15);
}

.footer-partner--btn:hover .footer-partner-kicker,
.footer-partner--btn:focus-visible .footer-partner-kicker {
  color: rgba(147, 197, 253, 0.9);
}

/* Header-Variante: kompakter Text-Button */
.header-partner {
  flex-shrink: 0;
  align-items: flex-end;
  padding: 0.32rem 0.7rem;
  margin-left: 0.15rem;
}

.header-partner .footer-partner-kicker {
  font-size: 0.5rem;
  letter-spacing: 0.12em;
}

.header-partner .footer-partner-name {
  font-size: 0.78rem;
}

/* Kurzform nur mobil im Header */
.partner-name-short {
  display: none;
}

.footer-partner-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.footer-partner-logo {
  display: none;
}

.footer-meta {
  padding-top: 0.15rem;
  text-align: center;
}

.footer-meta-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.45rem;
}

.footer-meta-sep {
  color: rgba(160, 170, 185, 0.55);
}

.footer-meta a {
  color: var(--muted);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--liga-a);
}

.footer-tel {
  white-space: nowrap;
}

.header-legal-nav {
  flex: 1 1 auto;
  justify-content: center;
}

/* Legal pages */
.legal-page .legal-main {
  padding: 2.25rem 0 3rem;
  min-height: calc(100svh - 160px);
}

.legal-wrap {
  max-width: 46rem;
}

.legal-wrap h1 {
  margin: 0.2rem 0 0.65rem;
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.legal-lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.legal-block {
  margin-bottom: 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-block:last-of-type {
  border-bottom: none;
}

.legal-block h2 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.legal-block h3 {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e8edf5;
}

.legal-block p,
.legal-block li {
  color: #c5ccd6;
  line-height: 1.55;
  font-size: 0.95rem;
}

.legal-block ul {
  margin: 0.4rem 0 0.6rem;
  padding-left: 1.15rem;
}

.legal-block a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-note {
  margin: 1.25rem 0 1rem;
}

@media (max-width: 720px) {
  .site-footer {
    padding: 1.15rem 0 max(1.35rem, env(safe-area-inset-bottom));
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 0;
    padding-top: 0.9rem;
    gap: 0.95rem;
  }

  /* 1) Logo */
  .footer-logo {
    order: 1;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
  }

  .footer-logo .logo-img {
    width: 42px;
    height: 42px;
  }

  .footer-logo .logo-text {
    display: inline !important;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    font-weight: 800;
  }

  /* 2) Rechtliches als Pills */
  .footer-nav {
    order: 2;
    flex: 0 0 auto;
    gap: 0.45rem;
  }

  .footer-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(235, 240, 248, 0.92);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition:
      color 0.15s ease,
      background 0.15s ease,
      border-color 0.15s ease;
  }

  .footer-nav a:hover,
  .footer-nav a:focus-visible,
  .footer-nav a:active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
  }

  /* 3) Partner-Button – gleicher Blau-Glow wie PC-Hover */
  .footer-partner {
    order: 3;
    align-items: center;
    width: 100%;
    max-width: 18.5rem;
  }

  .site-footer .footer-partner--btn,
  .footer-partner--btn {
    width: 100%;
    max-width: 18.5rem;
    align-items: center;
    text-align: center;
    padding: 0.7rem 1.15rem;
    border-radius: 14px;
    border: 1px solid rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.12);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      0 0 18px rgba(59, 130, 246, 0.2);
    transition:
      transform 0.2s ease,
      background 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease;
  }

  .site-footer .footer-partner--btn .footer-partner-kicker,
  .footer-partner--btn .footer-partner-kicker {
    color: rgba(147, 197, 253, 0.88);
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }

  .site-footer .footer-partner--btn .footer-partner-name,
  .footer-partner--btn .footer-partner-name {
    color: #60a5fa;
    font-size: 1rem;
    font-weight: 800;
  }

  .site-footer .footer-partner--btn:hover,
  .site-footer .footer-partner--btn:focus-visible,
  .site-footer .footer-partner--btn:active,
  .footer-partner--btn:hover,
  .footer-partner--btn:focus-visible,
  .footer-partner--btn:active {
    border-color: rgba(59, 130, 246, 0.65);
    background: rgba(59, 130, 246, 0.18);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 24px rgba(59, 130, 246, 0.32);
    transform: translateY(-1px);
  }

  .site-footer .footer-partner--btn:hover .footer-partner-name,
  .site-footer .footer-partner--btn:focus-visible .footer-partner-name,
  .site-footer .footer-partner--btn:active .footer-partner-name {
    color: #93c5fd;
  }

  /* 4) Meta unter dem Button, sauber gestapelt */
  .footer-meta {
    margin-top: 0.15rem;
    padding: 0.85rem 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .footer-meta-line {
    flex-direction: column;
    gap: 0.35rem;
  }

  .footer-meta-sep {
    display: none;
  }

  .footer-copy {
    font-size: 0.78rem;
    color: rgba(180, 190, 205, 0.75);
  }

  .footer-meta a {
    font-size: 0.82rem;
    color: rgba(235, 240, 248, 0.9);
  }

  .footer-meta a:hover,
  .footer-meta a:active {
    color: #fff;
  }

  .footer-tel {
    letter-spacing: 0.02em;
  }

  .header-legal-nav {
    display: none;
  }
}

/* ========== NAV-PORTFOLIO (wie Galerie) + Player darunter ========== */
.nav-buttons-section {
  padding-block: var(--space-section);
  overflow: visible;
}

.nav-buttons-section .nav-buttons-reveal {
  overflow: visible;
}

.nav-buttons-section .section-head {
  margin-bottom: var(--space-block);
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-buttons-section .section-head p {
  max-width: 28rem;
}

/* Player: schmaler als volle Viewport-Breite, zentriert, mehr Seitenluft */
.nav-buttons-section > .hero-player,
.nav-buttons-section > .sound-player {
  width: min(100% - 3.5rem, 52rem);
  max-width: 52rem;
  margin-inline: auto;
  margin-top: 0;
  padding-inline: 0;
  box-sizing: border-box;
}

@media (min-width: 1100px) {
  .nav-buttons-section > .hero-player,
  .nav-buttons-section > .sound-player {
    width: min(100% - 6rem, 50rem);
  }
}

/* Nav-Kacheln: einheitliches Raster + weiches Tricolor-Lauflicht
   Container-Query: lange Caps (z. B. MEISTERSCHAFT) skalieren mit der Kachel */
.nav-portfolio .portfolio-item {
  container-type: inline-size;
  container-name: navtile;
}

.portfolio-nav-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  white-space: normal;
  width: 100%;
  max-width: 100%;
  max-height: 92%;
  min-height: 100%;
  padding: 0.5rem 0.28rem 0.45rem;
  box-sizing: border-box;
  line-height: 1.05;
  text-align: center;
  transform-origin: center center;
  hyphens: none;
  -webkit-hyphens: none;
  overflow: visible;
}

/* Badge: gleiche Höhe/Optik auf allen Kacheln */
.portfolio-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 1.4em;
  max-width: 96%;
  font-size: clamp(0.55rem, 6cqi, 0.72rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 240, 180, 0.98);
  line-height: 1;
  padding: 0.36em 0.7em;
  border-radius: 999px;
  border: 1px solid rgba(245, 197, 24, 0.4);
  background:
    linear-gradient(180deg, rgba(245, 197, 24, 0.18) 0%, rgba(245, 197, 24, 0.06) 100%);
  box-shadow:
    0 0 16px rgba(245, 197, 24, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

/* Titelblock: 2 Zeilen Caps – größer/lesbarer, Platz in der Kachel nutzen */
.portfolio-nav-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1em;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  min-height: 2.35em;
  /* ~14 Caps (MEISTERSCHAFT) müssen in die Kachelbreite passen */
  font-size: clamp(0.78rem, 11.5cqi, 1.2rem);
  font-weight: 900;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  line-height: 1.08;
  color: #fff;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.9),
    0 2px 4px rgba(0, 0, 0, 0.75),
    0 4px 14px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(227, 28, 35, 0.18);
  hyphens: none;
  -webkit-hyphens: none;
  box-sizing: border-box;
  padding-inline: 0.05em;
}

.portfolio-nav-line {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 1.05em;
  box-sizing: border-box;
  color: #fff;
  font-weight: 900;
  font-size: 1em;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  text-align: center;
}

/* Lange Wörter (z. B. Meisterschaft): enger + kleiner, damit nichts abgeschnitten wird */
.portfolio-nav-line--long {
  letter-spacing: -0.04em;
  font-size: 0.72em;
  padding-inline: 0;
}

.portfolio-nav-sub {
  display: block;
  flex-shrink: 0;
  min-height: 1.35em;
  width: 100%;
  max-width: 100%;
  font-size: clamp(0.5rem, 5.8cqi, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(220, 228, 240, 0.95);
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  padding-inline: 0.15em;
}

/*
 * Tricolor-Lauflicht unter dem Titel
 * Hauptstrahl + weiches Echo (verzögert, unschärfer)
 */
.portfolio-nav-bar {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 2.75rem;
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Echo – weicher, blasser, etwas verzögert */
.portfolio-nav-bar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  transform: translate3d(-110%, -50%, 0);
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--liga-a) 55%, transparent) 28%,
    color-mix(in srgb, var(--liga-b) 55%, transparent) 52%,
    color-mix(in srgb, var(--liga-c) 55%, transparent) 76%,
    transparent 100%
  );
  filter: blur(2.2px);
  opacity: 0.45;
  animation: nav-bar-run 5.6s cubic-bezier(0.42, 0.02, 0.35, 1) infinite;
  animation-delay: calc(var(--i, 0) * 0.38s + 0.55s);
  will-change: transform;
}

/* Haupt-Lauflicht – klarer, mit softem Glow */
.portfolio-nav-bar::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  transform: translate3d(-110%, -50%, 0);
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--liga-a) 22%,
    var(--liga-b) 50%,
    var(--liga-c) 78%,
    transparent 100%
  );
  box-shadow:
    0 0 6px color-mix(in srgb, var(--liga-a) 40%, transparent),
    0 0 10px color-mix(in srgb, var(--liga-b) 28%, transparent),
    0 0 12px color-mix(in srgb, var(--liga-c) 22%, transparent);
  animation: nav-bar-run 5.6s cubic-bezier(0.42, 0.02, 0.35, 1) infinite;
  animation-delay: calc(var(--i, 0) * 0.38s);
  will-change: transform;
}

@keyframes nav-bar-run {
  0% {
    transform: translate3d(-115%, -50%, 0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  78% {
    opacity: 1;
  }
  100% {
    transform: translate3d(175%, -50%, 0);
    opacity: 0;
  }
}

/* Hover: Badge + Lauflicht etwas kräftiger */
.nav-portfolio .portfolio-item:hover .portfolio-nav-badge,
.nav-portfolio .portfolio-item:focus-visible .portfolio-nav-badge {
  border-color: rgba(245, 197, 24, 0.65);
  background: linear-gradient(180deg, rgba(245, 197, 24, 0.28) 0%, rgba(245, 197, 24, 0.1) 100%);
  color: #ffe566;
  box-shadow:
    0 0 20px rgba(245, 197, 24, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.nav-portfolio .portfolio-item:hover .portfolio-nav-title,
.nav-portfolio .portfolio-item:focus-visible .portfolio-nav-title {
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.85),
    0 3px 12px rgba(0, 0, 0, 0.7),
    0 0 28px rgba(227, 28, 35, 0.28),
    0 0 36px rgba(34, 197, 94, 0.14);
}

.nav-portfolio .portfolio-item:hover .portfolio-nav-sub,
.nav-portfolio .portfolio-item:focus-visible .portfolio-nav-sub {
  color: rgba(255, 255, 255, 0.95);
}

.nav-portfolio .portfolio-item:hover .portfolio-nav-bar,
.nav-portfolio .portfolio-item:focus-visible .portfolio-nav-bar {
  background: rgba(255, 255, 255, 0.09);
}

.nav-portfolio .portfolio-item:hover .portfolio-nav-bar::after,
.nav-portfolio .portfolio-item:focus-visible .portfolio-nav-bar::after {
  box-shadow:
    0 0 8px color-mix(in srgb, var(--liga-a) 55%, transparent),
    0 0 14px color-mix(in srgb, var(--liga-b) 38%, transparent),
    0 0 16px color-mix(in srgb, var(--liga-c) 30%, transparent);
}

.nav-portfolio .portfolio-item:hover .portfolio-nav-bar::before,
.nav-portfolio .portfolio-item:focus-visible .portfolio-nav-bar::before {
  opacity: 0.6;
}

/* Nav: „Öffnen“-Leiste aus – Buttons sind selbsterklärend */
.nav-portfolio .portfolio-item-label {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-nav-bar::before,
  .portfolio-nav-bar::after {
    animation: none;
    transform: translate3d(20%, -50%, 0);
    opacity: 0.9;
    width: 100%;
    left: 0;
  }

  .portfolio-nav-bar::before {
    opacity: 0;
  }
}

/* Nav-Portfolio: Luft um die Kachelreihe */
.nav-buttons-section .nav-portfolio {
  margin-top: 0.25rem;
  margin-bottom: 0.15rem;
}

/* Anker Navigation / Galeriearchiv – Abstand unter Sticky-Header (Klicks nicht vom Logo stehlen) */
#nav-buttons,
#nav-portfolio {
  scroll-margin-top: calc(64px + 0.75rem);
}



.mega-btn {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  min-height: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    background 1s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 1s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 1s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.4s ease;
}

/* Einheitlicher Streifen: Gelb · Grün · Rot (alle Vereinsfarben) */
.mega-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    180deg,
    var(--liga-c) 0%,
    var(--liga-c) 32%,
    var(--liga-b) 34%,
    var(--liga-b) 65%,
    var(--liga-a) 67%,
    var(--liga-a) 100%
  );
  transition: opacity 0.7s ease, filter 0.7s ease;
}

/* Live-Punkt: Gelb → Grün → Rot, loop */
.mega-live {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
}

.mega-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--liga-c);
  box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.55);
  /* Farbwechsel nur im gleichen Moment wie der Impulsring */
  animation: mega-dot-cycle 3.6s linear infinite;
}

.mega-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
}

.mega-label {
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  transition: color 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mega-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: color 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* „Öffnen“ einheitlich für alle Buttons */
.mega-go {
  flex-shrink: 0;
  margin-top: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  transition:
    color 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.35s ease;
}

/* Hover/Tap: sanft rot, schwarze Schrift + dunkler Punkt (PC + Handy) */
.mega-btn:hover,
.mega-btn:focus-visible,
.mega-btn:active,
.mega-btn.is-touch-hot {
  transform: none;
  background: #e31c23;
  border-color: #c41820;
  box-shadow: none;
  animation: btn-soft-red-pulse 2.2s ease-in-out 1s infinite;
}

.mega-btn:hover::before,
.mega-btn:focus-visible::before,
.mega-btn:active::before,
.mega-btn.is-touch-hot::before {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.28) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
  filter: none;
}

.mega-btn:hover .mega-live-dot,
.mega-btn:focus-visible .mega-live-dot,
.mega-btn:active .mega-live-dot,
.mega-btn.is-touch-hot .mega-live-dot {
  background: #0a0a0a !important;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
  animation: gab-live-pulse-dark 1.8s ease-out infinite;
}

.mega-btn:hover .mega-label,
.mega-btn:hover .mega-desc,
.mega-btn:hover .mega-go,
.mega-btn:focus-visible .mega-label,
.mega-btn:focus-visible .mega-desc,
.mega-btn:focus-visible .mega-go,
.mega-btn:active .mega-label,
.mega-btn:active .mega-desc,
.mega-btn:active .mega-go,
.mega-btn.is-touch-hot .mega-label,
.mega-btn.is-touch-hot .mega-desc,
.mega-btn.is-touch-hot .mega-go {
  color: #0a0a0a;
}

.mega-btn:hover .mega-go,
.mega-btn:focus-visible .mega-go,
.mega-btn:active .mega-go,
.mega-btn.is-touch-hot .mega-go {
  transform: translateX(2px);
}

/*
  Pro Farbe: Impuls startet → Farbe steht ab diesem Moment
  1) Gelb Impuls  2) Grün Impuls  3) Rot Impuls  → loop
*/
@keyframes mega-dot-cycle {
  /* —— Gelb: Impuls erscheint —— */
  0% {
    background: var(--liga-c);
    box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.55);
  }
  18% {
    background: var(--liga-c);
    box-shadow: 0 0 0 9px rgba(245, 197, 24, 0);
  }
  28% {
    background: var(--liga-c);
    box-shadow: 0 0 0 0 rgba(245, 197, 24, 0);
  }

  /* —— Grün: Farbe wechselt erst mit neuem Impuls —— */
  33.33% {
    background: var(--liga-b);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  }
  51% {
    background: var(--liga-b);
    box-shadow: 0 0 0 9px rgba(34, 197, 94, 0);
  }
  61% {
    background: var(--liga-b);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }

  /* —— Rot: Farbe wechselt erst mit neuem Impuls —— */
  66.66% {
    background: var(--liga-a);
    box-shadow: 0 0 0 0 rgba(227, 28, 35, 0.55);
  }
  84% {
    background: var(--liga-a);
    box-shadow: 0 0 0 9px rgba(227, 28, 35, 0);
  }
  94% {
    background: var(--liga-a);
    box-shadow: 0 0 0 0 rgba(227, 28, 35, 0);
  }
  100% {
    background: var(--liga-c);
    box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.55);
  }
}

@media (max-width: 480px) {
  .mega-desc {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mega-live-dot {
    animation: none !important;
    background: var(--liga-c);
  }
}

/* ========== SPIELTAG + REGELN: eine Karte ========== */
.spieltag-section {
  padding-block: var(--space-section);
  background:
    radial-gradient(ellipse 60% 40% at 30% 20%, rgba(34, 197, 94, 0.05), transparent 55%),
    var(--bg);
  border-block: 1px solid var(--border);
}

.countdown-card {
  position: relative;
  padding: 1.15rem 1.25rem 1.2rem;
  border-radius: 18px;
  overflow: hidden;
  max-width: 920px;
  margin-inline: auto;
}

/* Metallisches Panel */
.countdown-card--metal {
  border: 1px solid rgba(200, 210, 220, 0.22);
  background:
    linear-gradient(
      155deg,
      #3a3f48 0%,
      #1c1f26 18%,
      #2a2e36 38%,
      #12151a 58%,
      #252a33 78%,
      #0e1014 100%
    );
  /* nur feine Innenkanten, kein äußerer Drop-Schatten */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 -1px 0 rgba(0, 0, 0, 0.5) inset,
    1px 0 0 rgba(255, 255, 255, 0.06) inset,
    -1px 0 0 rgba(0, 0, 0, 0.3) inset;
}

/* feine Metall-Rillen */
.countdown-card--metal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 2px,
    rgba(255, 255, 255, 0.03) 2px,
    rgba(255, 255, 255, 0.03) 3px
  );
  mix-blend-mode: soft-light;
}

/* Lichtstreifen – unter PDF & Spieltags-Buttons, über Metallgrund */
.metal-shine {
  position: absolute;
  top: 0;
  left: -50%;
  width: 38%;
  height: 100%;
  z-index: 1; /* über Rillen (0), unter Inhalt (2+) */
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.02) 30%,
    rgba(255, 255, 255, 0.14) 45%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0.14) 55%,
    rgba(255, 255, 255, 0.02) 70%,
    transparent 100%
  );
  transform: skewX(-16deg) translateX(0);
  will-change: transform, opacity;
}

.metal-shine.is-running {
  animation-name: metal-shine-sweep;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  animation-fill-mode: forwards;
}

@keyframes metal-shine-sweep {
  0% {
    transform: skewX(-16deg) translateX(0);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  70% {
    opacity: 0.9;
  }
  100% {
    transform: skewX(-16deg) translateX(420%);
    opacity: 0;
  }
}

.countdown-card--unified {
  padding: 1.15rem 1.35rem 1.25rem;
  max-width: 980px;
}

/* PDF, Countdown, GAME-Pills liegen über dem Lichtreflex */
.countdown-card--metal > *:not(.metal-shine) {
  position: relative;
  z-index: 2;
}

/* Matchday-Hub: Lichtstreifen strikt unter allen Anzeigen (auch bei display:contents) */
.matchday-hub .metal-shine {
  z-index: 0 !important;
  opacity: 0.55;
  mix-blend-mode: soft-light;
}

.matchday-hub .hub-arena-glow,
.matchday-hub .hub-sparkle {
  z-index: 0;
}

.matchday-hub .hub-top,
.matchday-hub .hub-countdown-zone,
.matchday-hub .hub-bridge-arrow,
.matchday-hub .hub-rules,
.matchday-hub .hub-rail-block,
.matchday-hub .hub-pills,
.matchday-hub .hub-main {
  position: relative;
  z-index: 3;
}

/* Saison-Badge oben */
.unified-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem 1rem;
  margin-bottom: 0.85rem;
}

/* Countdown links · PDF rechts daneben (gleiche Höhe wie Tagesanzeige) */
.countdown-with-pdf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.countdown-with-pdf .unified-countdown {
  flex: 1 1 auto;
  min-width: min(100%, 280px);
  margin-bottom: 0;
}

.countdown-with-pdf .pdf-chip--lg {
  flex: 0 0 auto;
  align-self: center;
}

.season-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(40, 48, 42, 0.95), rgba(12, 16, 14, 0.95));
  border: 1px solid rgba(34, 197, 94, 0.55);
  color: var(--liga-b);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 4px 12px rgba(0, 0, 0, 0.35);
}

.season-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--liga-b);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse 1.8s infinite;
}

/* PDF ~2× so groß, rechts neben Saison-Badge */
.pdf-chip {
  position: relative;
  z-index: 3; /* über Metall-Lichtreflex der Countdown-Karte */
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem 0.4rem 0.45rem;
  border-radius: 14px;
  border: 1px solid rgba(227, 28, 35, 0.4);
  /* Solides Rot darunter; Gradient-Schicht blendet sanft aus */
  background: #e31c23;
  isolation: isolate;
  overflow: hidden;
  transition:
    border-color 1s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 1s cubic-bezier(0.22, 0.61, 0.36, 1),
    color 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.4s ease;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 4px 14px rgba(0, 0, 0, 0.35);
}

/* Gradient-Oberfläche – opacity-fade = weicher Rot-Übergang */
.pdf-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(50, 28, 28, 0.98), rgba(18, 12, 12, 0.98));
  opacity: 1;
  transition: opacity 1.05s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.pdf-chip > * {
  position: relative;
  z-index: 1;
}

.pdf-chip--lg {
  position: relative;
  gap: 0.85rem;
  padding: 0.7rem 1.35rem 0.7rem 0.75rem;
  border-radius: 16px;
  border-width: 1.5px;
  overflow: visible;
}

/* Einladende Animation: sanftes „Tipp mich an“ */
.pdf-chip--invite {
  animation: pdf-invite-bob 3.2s ease-in-out infinite;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 4px 14px rgba(0, 0, 0, 0.35),
    0 0 0 0 rgba(227, 28, 35, 0.45);
}

.pdf-chip--invite::before {
  /* Shimmer über den Button */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: pdf-shimmer 4.5s ease-in-out infinite;
  opacity: 0.85;
  z-index: 0;
}

.pdf-chip--invite > * {
  position: relative;
  z-index: 1;
}

/* Puls-Ring ums Icon */
.pdf-pulse-ring {
  position: absolute;
  left: 0.55rem;
  top: 50%;
  width: 72px;
  height: 72px;
  margin-top: -36px;
  border-radius: 50%;
  border: 2px solid rgba(227, 28, 35, 0.55);
  pointer-events: none;
  z-index: 0;
  animation: pdf-ring-pulse 2.4s ease-out infinite;
}

.pdf-chip:hover,
.pdf-chip:focus-visible {
  border-color: #c41820;
  background: #e31c23;
  transform: none;
  animation: btn-soft-red-pulse 2.2s ease-in-out 1.1s infinite;
  box-shadow: 0 0 0 1px rgba(255, 100, 100, 0.35) inset;
}

.pdf-chip:hover::after,
.pdf-chip:focus-visible::after {
  opacity: 0;
}

.pdf-chip:hover::before,
.pdf-chip:focus-visible::before {
  opacity: 0;
  animation: none;
}

.pdf-chip .pdf-chip-title,
.pdf-chip .pdf-chip-sub,
.pdf-chip .pdf-cta-text,
.pdf-chip .pdf-cta-arrow {
  transition: color 0.95s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.pdf-chip:hover .pdf-chip-title,
.pdf-chip:hover .pdf-chip-sub,
.pdf-chip:hover .pdf-cta-text,
.pdf-chip:hover .pdf-cta-arrow,
.pdf-chip:focus-visible .pdf-chip-title,
.pdf-chip:focus-visible .pdf-chip-sub,
.pdf-chip:focus-visible .pdf-cta-text,
.pdf-chip:focus-visible .pdf-cta-arrow {
  color: #0a0a0a !important;
  text-shadow: none;
  filter: none;
  animation: none;
}

.pdf-chip:hover .pdf-pulse-ring,
.pdf-chip:focus-visible .pdf-pulse-ring {
  border-color: rgba(0, 0, 0, 0.35);
  animation: pdf-ring-pulse-dark 1.8s ease-out 0.9s infinite;
}

.pdf-chip:hover .pdf-chip-icon svg,
.pdf-chip:focus-visible .pdf-chip-icon svg {
  animation: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
  opacity: 0.95;
}

.pdf-chip:hover .pdf-cta-arrow {
  transform: translateX(4px);
  transition: transform 0.35s ease;
}

@keyframes pdf-ring-pulse-dark {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.2);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.pdf-chip-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 44px;
  flex-shrink: 0;
}

.pdf-chip--lg .pdf-chip-icon {
  width: 64px;
  height: 78px;
}

.pdf-chip-icon svg {
  width: 32px;
  height: 40px;
  filter: drop-shadow(0 4px 10px rgba(196, 30, 30, 0.5));
  animation: pdf-float 2.6s ease-in-out infinite;
}

.pdf-chip--lg .pdf-chip-icon svg {
  width: 56px;
  height: 70px;
  filter: drop-shadow(0 6px 16px rgba(196, 30, 30, 0.55));
  animation: pdf-icon-play 5.5s ease-in-out infinite;
}

.pdf-chip-svg-text {
  fill: #fff;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.pdf-chip--lg .pdf-chip-svg-text {
  font-size: 13px;
}

.pdf-chip-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.2;
}

.pdf-chip-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
}

.pdf-chip--lg .pdf-chip-title {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.pdf-chip-sub {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--liga-a);
}

.pdf-chip--lg .pdf-chip-sub {
  font-size: 0.92rem;
  margin-top: 0.2rem;
  color: #ff6b6b;
  text-shadow: 0 0 12px rgba(227, 28, 35, 0.45);
  animation: pdf-cta-pulse 2s ease-in-out infinite;
}

.pdf-cta-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
  animation: pdf-arrow-nudge 1.6s ease-in-out infinite;
}

@keyframes pdf-invite-bob {
  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.12) inset,
      0 4px 14px rgba(0, 0, 0, 0.35),
      0 0 0 0 rgba(227, 28, 35, 0.35);
  }
  50% {
    transform: translateY(-4px);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.14) inset,
      0 10px 24px rgba(0, 0, 0, 0.4),
      0 0 22px rgba(227, 28, 35, 0.35);
  }
}

@keyframes pdf-shimmer {
  0%,
  30% {
    background-position: 120% 0;
  }
  70%,
  100% {
    background-position: -40% 0;
  }
}

@keyframes pdf-ring-pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.75;
  }
  70% {
    transform: scale(1.25);
    opacity: 0;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

@keyframes pdf-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(-2deg);
  }
}

/* Schweben + gelegentliches „Schau her“-Wackeln */
@keyframes pdf-icon-play {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  20% {
    transform: translateY(-5px) rotate(-2deg);
  }
  40% {
    transform: translateY(0) rotate(0deg);
  }
  78% {
    transform: translateY(-3px) rotate(0deg);
  }
  84% {
    transform: translateY(-4px) rotate(-7deg);
  }
  90% {
    transform: translateY(-4px) rotate(6deg);
  }
  96% {
    transform: translateY(-2px) rotate(-2deg);
  }
}

@keyframes pdf-cta-pulse {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
    filter: brightness(1.15);
  }
}

@keyframes pdf-arrow-nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdf-chip-icon svg,
  .pdf-chip--invite,
  .pdf-chip--invite::before,
  .pdf-pulse-ring,
  .pdf-chip--lg .pdf-chip-sub,
  .pdf-cta-arrow {
    animation: none !important;
  }

  .metal-shine {
    animation: none;
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .countdown-with-pdf {
    flex-direction: column;
    align-items: flex-start;
  }

  .countdown-with-pdf .pdf-chip--lg {
    align-self: stretch;
    justify-content: center;
  }
}

.unified-countdown {
  margin-bottom: 1rem;
}

.countdown-kicker {
  margin: 0 0 0.55rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.countdown-digits {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.15rem 0.3rem;
  margin-bottom: 0.4rem;
}

/* Dominante Countdown-Zeile – nutzt die Breite */
.countdown-digits--hero {
  justify-content: flex-start;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.55rem;
  width: 100%;
}

.countdown-digits--hero .cd-unit {
  min-width: 4.5rem;
  flex: 0 1 auto;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 2.5rem;
}

.cd-num {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/*
 * Sichtbarer Schatten: eigene Schicht UNTER dem Glow-Text.
 * (filter/drop-shadow an transparentem Gradient-Text wird von der Glow-Animation überschrieben)
 */
.countdown-digits--hero .cd-stack,
.countdown-digits--hero .cd-sep-stack {
  position: relative;
  display: inline-grid;
  place-items: center;
  isolation: isolate;
}

.countdown-digits--hero .cd-stack > *,
.countdown-digits--hero .cd-sep-stack > * {
  grid-area: 1 / 1;
}

.countdown-digits--hero .cd-num-shadow,
.countdown-digits--hero .cd-sep-shadow {
  color: #000;
  -webkit-text-fill-color: #000;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  /* starker, weicher schwarzer Schatten – wirklich sichtbar */
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.9),
    0 4px 6px rgba(0, 0, 0, 0.85),
    0 8px 16px rgba(0, 0, 0, 0.75),
    0 12px 28px rgba(0, 0, 0, 0.65),
    0 0 20px rgba(0, 0, 0, 0.8);
  transform: translate(2px, 3px);
  opacity: 0.9;
}

.countdown-digits--hero .cd-num-shadow {
  font-size: clamp(2.4rem, 6.5vw, 3.6rem);
}

.countdown-digits--hero .cd-sep-shadow {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  padding-top: 0.15rem;
}

.countdown-digits--hero .cd-num.title-glow-text {
  position: relative;
  z-index: 1;
  font-size: clamp(2.4rem, 6.5vw, 3.6rem);
  letter-spacing: 0.04em;
  /* eigener Glow, ohne die globale title-light filter-Animation */
  animation: title-light-bg 7s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(57, 224, 122, 0.25));
}

.countdown-digits--hero .cd-sep.title-glow-text {
  position: relative;
  z-index: 1;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  padding-top: 0.15rem;
  line-height: 1;
  font-weight: 900;
  animation: title-light-bg 7s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(57, 224, 122, 0.2));
}

@keyframes title-light-bg {
  0% {
    background-position: 0% center;
  }
  33% {
    background-position: 50% center;
  }
  66% {
    background-position: 100% center;
  }
  100% {
    background-position: 0% center;
  }
}

.cd-label {
  margin-top: 0.35rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
}

.countdown-digits--hero .cd-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.5);
}

.cd-sep {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.05;
  padding-top: 0.05rem;
}

.countdown-sub {
  margin: 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.progress-block {
  margin-bottom: 0.85rem;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.35rem;
}

.progress-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1a9e52, #39e07a, #f0c14b);
  box-shadow: 0 0 10px rgba(57, 224, 122, 0.35);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  min-width: 0;
}

.progress-fill[style*="width: 0%"],
.progress-fill[style*="width:0%"] {
  box-shadow: none;
}

.st-pills {
  position: relative;
  z-index: 3; /* über Metall-Lichtreflex */
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 0.4rem;
}

@media (max-width: 800px) {
  .st-pills {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 480px) {
  .unified-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

.st-pill {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* deckend, damit Metall-Lichtreflex darunter durchläuft */
  background: #14171e;
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  border-radius: 10px;
  padding: 0.4rem 0.25rem 0.35rem;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s, background 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  line-height: 1.15;
  isolation: isolate;
}

.st-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
}

.st-pill .st-date {
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.st-pill .st-num {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.st-pill.is-done {
  border-color: rgba(34, 197, 94, 0.55);
  background: linear-gradient(160deg, rgba(10, 50, 28, 0.85), rgba(0, 0, 0, 0.45));
}

.st-pill.is-done .st-num {
  color: var(--liga-b);
}

/* nur EIN Highlight: nächster oder manuell fokussiert */
.st-pill.is-highlight {
  border-color: rgba(240, 193, 75, 0.75);
  background: linear-gradient(160deg, rgba(80, 50, 10, 0.85), rgba(0, 0, 0, 0.45));
  box-shadow: 0 0 0 1px rgba(240, 193, 75, 0.15), 0 0 12px rgba(240, 193, 75, 0.12);
}

.st-pill.is-highlight .st-num {
  color: #f0c14b;
}

.st-pill.is-highlight .st-date {
  color: #ffe9a8;
}

/* ========== MATCHDAY HUB – Arena + Timeline + verspielte Chips ========== */
.matchday-hub {
  max-width: 1040px;
  padding: 1.25rem 1.4rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 -1px 0 rgba(0, 0, 0, 0.5) inset,
    0 0 0 1px rgba(34, 197, 94, 0.08),
    0 0 40px rgba(227, 28, 35, 0.06);
}

.hub-arena-glow {
  position: absolute;
  inset: -20% 10% auto;
  height: 55%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 30% 40%, rgba(227, 28, 35, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 65% at 55% 45%, rgba(34, 197, 94, 0.12), transparent 68%),
    radial-gradient(ellipse 45% 60% at 75% 50%, rgba(245, 197, 24, 0.1), transparent 65%);
  filter: blur(2px);
  animation: hub-arena-breathe 6.5s ease-in-out infinite;
  opacity: 0.9;
}

@keyframes hub-arena-breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.04);
  }
}

.hub-sparkle {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(245, 197, 24, 0.45), transparent 12%),
    radial-gradient(circle at 55% 35%, rgba(34, 197, 94, 0.4), transparent 10%),
    radial-gradient(circle at 70% 50%, rgba(227, 28, 35, 0.4), transparent 11%),
    radial-gradient(circle at 42% 58%, rgba(255, 255, 255, 0.35), transparent 8%);
}

.hub-sparkle.is-pop {
  animation: hub-sparkle-pop 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes hub-sparkle-pop {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.15);
  }
}

.matchday-hub .hub-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
}

.hub-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(245, 197, 24, 0.45);
  background: linear-gradient(180deg, rgba(60, 45, 10, 0.9), rgba(18, 14, 6, 0.95));
  color: #ffe566;
  box-shadow:
    0 0 16px rgba(245, 197, 24, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hub-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f5c518;
  box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.5);
  animation: hub-status-pulse 1.8s ease-out infinite;
}

.hub-status[data-state="done"] {
  border-color: rgba(34, 197, 94, 0.5);
  background: linear-gradient(180deg, rgba(12, 40, 24, 0.95), rgba(8, 14, 12, 0.95));
  color: #7dffb0;
}

.hub-status[data-state="done"] .hub-status-dot {
  background: var(--liga-b);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
}

.hub-status[data-state="live"] {
  border-color: rgba(227, 28, 35, 0.55);
  background: linear-gradient(180deg, rgba(50, 14, 16, 0.95), rgba(14, 8, 10, 0.95));
  color: #ff8a8a;
}

.hub-status[data-state="live"] .hub-status-dot {
  background: var(--liga-a);
  animation-duration: 1.1s;
}

/* Besucherzähler – in der Kontakt-Button-Gruppe, gleiche Breite */
.bridge-actions--footer .visitors-lcd {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.bridge-actions--footer .visitors-lcd:hover .visitors-lcd-bezel,
.bridge-actions--footer .visitors-lcd:focus-visible .visitors-lcd-bezel {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 -1px 0 rgba(0, 0, 0, 0.3) inset,
    0 6px 18px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(57, 224, 122, 0.18);
  outline: none;
}

.visitors-lcd-bezel {
  position: relative;
  width: 100%;
  min-height: 48px;
  padding: 0.35rem 0.45rem 0.4rem;
  border-radius: 12px;
  background: linear-gradient(165deg, #2e333c 0%, #161a20 45%, #0b0d10 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 -1px 0 rgba(0, 0, 0, 0.3) inset,
    0 4px 14px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.visitors-lcd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.25rem 0.22rem;
  font-size: 0.52rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(150, 160, 175, 0.5);
  font-family: "Share Tech Mono", ui-monospace, monospace;
}

.visitors-lcd-power {
  color: #4fdc86;
  font-size: 0.45rem;
  line-height: 1;
  text-shadow: 0 0 5px rgba(79, 220, 134, 0.5);
  animation: lcd-power-blink 2.6s ease-in-out infinite;
}

.visitors-lcd-screen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 2.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 40%, #0e1c13 0%, #07110b 55%, #050c08 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 2px 5px rgba(0, 0, 0, 0.22),
    inset 0 -2px 6px rgba(0, 0, 0, 0.18),
    inset 10px 0 14px -6px rgba(0, 0, 0, 0.3),
    inset -10px 0 14px -6px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.visitors-lcd-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.08;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.35) 2px,
    rgba(0, 0, 0, 0.35) 3px
  );
}

.visitors-lcd-digits {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  text-align: center;
}

.visitors-lcd-seg {
  display: inline-block;
  font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: clamp(1.25rem, 4.5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: #39e07a;
  text-shadow:
    1px 1px 0 #0a3d22,
    2px 2px 0 #062816,
    0 0 8px rgba(57, 224, 122, 0.4);
  line-height: 1.05;
}

.visitors-lcd-label {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  margin-top: 0;
  font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(100, 160, 120, 0.55);
  white-space: nowrap;
}

.visitors-lcd.is-loading .visitors-lcd-seg {
  opacity: 0.45;
}

.visitors-lcd.is-error .visitors-lcd-seg {
  color: rgba(180, 200, 160, 0.55);
  text-shadow: none;
  font-size: 1.1rem;
}

@keyframes hub-status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(245, 197, 24, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 197, 24, 0);
  }
}

.matchday-hub .hub-main {
  margin-bottom: 1.15rem;
  align-items: center;
  gap: 0.55rem 0.65rem;
}

.matchday-hub .hub-main .hub-countdown-zone {
  flex: 1 1 16rem;
  min-width: 0;
}

.matchday-hub .hub-main .hub-rules {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
}

.matchday-hub .hub-main .hub-rules-bezel {
  width: 100%;
  height: 100%;
  justify-content: center;
}

/* Schimmer-Pfeil zwischen Countdown und PDF (wie Hero-Header) */
.matchday-hub .hub-bridge-arrow {
  position: relative;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: visible;
}

.matchday-hub .hub-bridge-arrow-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  animation: hub-bridge-nudge 2.2s ease-in-out infinite;
  will-change: transform;
}

.matchday-hub .hub-bridge-arrow-glyph {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.95),
    0 0 14px rgba(255, 255, 255, 0.65),
    0 0 28px rgba(245, 197, 24, 0.45),
    0 0 40px rgba(34, 197, 94, 0.28),
    0 0 52px rgba(227, 28, 35, 0.22);
  animation: header-arrow-shimmer 2.4s ease-in-out infinite;
}

@keyframes hub-bridge-nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

/* Countdown-Arena: neutrales Panel, Flash = A→B→C (keine bunte Dauerlinie) */
.matchday-hub .hub-countdown-zone {
  position: relative;
  flex: 1 1 auto;
  min-width: min(100%, 14rem);
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0;
  padding: 0.75rem 0.9rem 0.85rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(22, 26, 34, 0.92), rgba(10, 12, 16, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 18px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  isolation: isolate;
  box-sizing: border-box;
}

/* Ruhiges Innenlicht – monochrom, passt zum LCD */
.matchday-hub .hub-countdown-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 70% at 40% 40%, rgba(57, 224, 122, 0.05), transparent 65%),
    radial-gradient(ellipse 60% 55% at 80% 70%, rgba(255, 255, 255, 0.03), transparent 60%);
  opacity: 1;
}

/* Lauflicht-Strich: Rot → Grün → Gelb um den Rand beim Tap */
.matchday-hub .hub-countdown-zone::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: conic-gradient(
    from 200deg,
    transparent 0deg,
    var(--liga-a) 40deg,
    var(--liga-b) 90deg,
    var(--liga-c) 140deg,
    transparent 190deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  filter: blur(0.4px);
}

.matchday-hub .hub-countdown-zone > * {
  position: relative;
  z-index: 1;
}

/* Kicker + Sub im selben Rechner-Look wie das LCD */
.matchday-hub .hub-countdown-zone .countdown-kicker {
  margin: 0;
  width: 100%;
  font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(160, 175, 190, 0.72);
  text-transform: uppercase;
  text-align: center;
}

.matchday-hub .hub-countdown-zone .countdown-sub {
  margin: 0;
  width: 100%;
  font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(190, 200, 214, 0.78);
  text-align: center;
}

/* —— Taschenrechner- / LCD-Display —— */
.matchday-hub .lcd-bezel {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0.4rem 0.5rem 0.5rem;
  border-radius: 14px;
  background: linear-gradient(165deg, #2e333c 0%, #161a20 45%, #0b0d10 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 -1px 0 rgba(0, 0, 0, 0.35) inset,
    0 6px 14px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}

/* keine bunte Linie im Display */
.matchday-hub .lcd-bezel::before,
.matchday-hub .lcd-bezel::after {
  content: none !important;
  display: none !important;
}

.matchday-hub .lcd-bezel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.05rem 0.3rem 0.3rem;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(150, 160, 175, 0.5);
  font-family: "Share Tech Mono", ui-monospace, monospace;
}

.matchday-hub .lcd-brand {
  letter-spacing: 0.12em;
}

.matchday-hub .lcd-power {
  color: #4fdc86;
  font-size: 0.5rem;
  line-height: 1;
  text-shadow: 0 0 6px rgba(79, 220, 134, 0.55);
  animation: lcd-power-blink 2.6s ease-in-out infinite;
}

@keyframes lcd-power-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.matchday-hub .lcd-screen {
  position: relative;
  padding: 0.65rem 0.7rem 0.55rem;
  border-radius: 10px;
  /* weicher Übergang Gehäuse → Glas, keine harten Seitenkanten */
  border: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 40%, #0e1c13 0%, #07110b 55%, #050c08 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 2px 6px rgba(0, 0, 0, 0.25),
    inset 0 -2px 8px rgba(0, 0, 0, 0.2),
    /* seitlich weich abdunkeln statt harter Linie */
    inset 14px 0 18px -8px rgba(0, 0, 0, 0.35),
    inset -14px 0 18px -8px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

/* dezente Scanlines – an den Seiten ausgeblendet */
.matchday-hub .lcd-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.09;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.35) 2px,
    rgba(0, 0, 0, 0.35) 3px
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
}

/* leichter Glasreflex – ohne harte Kanten links/rechts */
.matchday-hub .lcd-screen::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 40%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 14%,
    #000 86%,
    transparent 100%
  );
}

/*
 * LCD: Audiowide + 3D-Extrusion, volle Displaybreite
 * Sekunden wechseln Ligafarbe A → B → C
 */
.matchday-hub .lcd-screen {
  padding: 0.75rem 0.85rem 0.65rem;
}

.matchday-hub .lcd-lines {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: stretch;
  width: 100%;
  min-height: clamp(2.8rem, 7vw, 3.6rem);
  margin: 0;
  box-sizing: border-box;
  contain: layout style;
}

.matchday-hub .lcd-layer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 0.15rem 0.1rem;
  border: 0;
  font-family: "Audiowide", "Share Tech Mono", ui-monospace, sans-serif;
  font-size: clamp(1.85rem, 5.4vw, 2.85rem);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.matchday-hub .lcd-seg {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  color: #6ef5a4;
  -webkit-text-fill-color: #6ef5a4;
  text-shadow:
    1px 1px 0 #0a3d22,
    2px 2px 0 #08331c,
    3px 3px 0 #062816,
    4px 4px 0 #041c10,
    0 0 10px rgba(57, 224, 122, 0.45),
    0 0 22px rgba(57, 224, 122, 0.2);
}

.matchday-hub .lcd-seg--days {
  flex: 1.25 1 0;
}

.matchday-hub .lcd-colon {
  flex: 0 0 auto;
  padding: 0 0.12em;
  color: rgba(110, 245, 164, 0.75);
  -webkit-text-fill-color: rgba(110, 245, 164, 0.75);
  text-shadow:
    1px 1px 0 #0a3d22,
    2px 2px 0 #062816,
    0 0 8px rgba(57, 224, 122, 0.3);
}

/* Sekunden: Ligafarben A / B / C im Wechsel */
.matchday-hub .lcd-secs[data-liga="a"] {
  color: #ff5a5a;
  -webkit-text-fill-color: #ff5a5a;
  text-shadow:
    1px 1px 0 #4a1010,
    2px 2px 0 #3a0c0c,
    3px 3px 0 #2a0808,
    4px 4px 0 #1a0505,
    0 0 10px rgba(227, 28, 35, 0.5),
    0 0 22px rgba(227, 28, 35, 0.25);
}

.matchday-hub .lcd-secs[data-liga="b"] {
  color: #6ef5a4;
  -webkit-text-fill-color: #6ef5a4;
  text-shadow:
    1px 1px 0 #0a3d22,
    2px 2px 0 #08331c,
    3px 3px 0 #062816,
    4px 4px 0 #041c10,
    0 0 10px rgba(57, 224, 122, 0.5),
    0 0 22px rgba(57, 224, 122, 0.25);
}

.matchday-hub .lcd-secs[data-liga="c"] {
  color: #ffe066;
  -webkit-text-fill-color: #ffe066;
  text-shadow:
    1px 1px 0 #4a3a08,
    2px 2px 0 #3a2e06,
    3px 3px 0 #2a2104,
    4px 4px 0 #1a1502,
    0 0 10px rgba(245, 197, 24, 0.5),
    0 0 22px rgba(245, 197, 24, 0.25);
}

.matchday-hub .lcd-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Labels füllen dieselbe Breite wie die Ziffernsegmente */
.matchday-hub .lcd-labels {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  width: 100%;
  margin: 0.45rem 0 0;
  padding: 0 0.1rem;
  box-sizing: border-box;
  font-family: "Audiowide", "Share Tech Mono", ui-monospace, sans-serif;
  font-size: clamp(0.5rem, 1.15vw, 0.62rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  color: rgba(110, 245, 164, 0.48);
  text-align: center;
}

.matchday-hub .lcd-labels span {
  display: block;
  text-align: center;
  line-height: 1.2;
}

@media (max-width: 720px) {
  .matchday-hub .lcd-bezel {
    padding: 0.35rem 0.35rem 0.4rem;
  }

  .matchday-hub .lcd-screen {
    padding: 0.6rem 0.5rem 0.5rem;
  }

  .matchday-hub .lcd-layer {
    font-size: clamp(1.35rem, 6.4vw, 1.95rem);
    letter-spacing: 0.06em;
  }

  .matchday-hub .lcd-seg {
    text-shadow:
      1px 1px 0 #0a3d22,
      2px 2px 0 #062816,
      0 0 8px rgba(57, 224, 122, 0.4);
  }

  .matchday-hub .lcd-secs[data-liga="a"] {
    text-shadow:
      1px 1px 0 #4a1010,
      2px 2px 0 #2a0808,
      0 0 8px rgba(227, 28, 35, 0.45);
  }

  .matchday-hub .lcd-secs[data-liga="b"] {
    text-shadow:
      1px 1px 0 #0a3d22,
      2px 2px 0 #062816,
      0 0 8px rgba(57, 224, 122, 0.45);
  }

  .matchday-hub .lcd-secs[data-liga="c"] {
    text-shadow:
      1px 1px 0 #4a3a08,
      2px 2px 0 #2a2104,
      0 0 8px rgba(245, 197, 24, 0.45);
  }

  .matchday-hub .lcd-lines {
    min-height: clamp(2.3rem, 9vw, 3rem);
  }

  .matchday-hub .lcd-labels {
    font-size: 0.48rem;
    letter-spacing: 0.12em;
    margin-top: 0.38rem;
  }

  .matchday-hub .hub-countdown-zone .countdown-kicker,
  .matchday-hub .hub-countdown-zone .countdown-sub {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .matchday-hub .lcd-power {
    animation: none !important;
  }
}

/* Tap: A → B → C Blitz + rotierendes Rand-Lauflicht */
/* PC + Smartphone: gleicher Flash ~3000 ms bei Game-Tag-Aktivierung */
.matchday-hub .hub-countdown-zone.is-focus-flash {
  animation: hub-focus-tricolor 3s cubic-bezier(0.22, 1, 0.36, 1);
}

.matchday-hub .hub-countdown-zone.is-focus-flash::after {
  animation: hub-rim-run 3s cubic-bezier(0.35, 0.05, 0.25, 1) forwards;
}

.matchday-hub .hub-countdown-zone.is-focus-flash::before {
  animation: hub-inner-liga 3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hub-focus-tricolor {
  0% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 0 18px rgba(227, 28, 35, 0.06),
      0 0 22px rgba(34, 197, 94, 0.05),
      0 0 26px rgba(245, 197, 24, 0.05);
  }
  22% {
    box-shadow:
      inset 0 0 0 1px rgba(227, 28, 35, 0.35),
      0 0 0 2px rgba(227, 28, 35, 0.2),
      0 0 32px rgba(227, 28, 35, 0.35);
  }
  48% {
    box-shadow:
      inset 0 0 0 1px rgba(34, 197, 94, 0.35),
      0 0 0 2px rgba(34, 197, 94, 0.2),
      0 0 32px rgba(34, 197, 94, 0.32);
  }
  72% {
    box-shadow:
      inset 0 0 0 1px rgba(245, 197, 24, 0.4),
      0 0 0 2px rgba(245, 197, 24, 0.22),
      0 0 34px rgba(245, 197, 24, 0.34);
  }
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 0 18px rgba(227, 28, 35, 0.06),
      0 0 22px rgba(34, 197, 94, 0.05),
      0 0 26px rgba(245, 197, 24, 0.05);
  }
}

@keyframes hub-rim-run {
  0% {
    opacity: 0;
    transform: rotate(0deg);
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: rotate(320deg);
  }
}

@keyframes hub-inner-liga {
  0%,
  100% {
    opacity: 1;
    background:
      radial-gradient(ellipse 75% 70% at 40% 40%, rgba(57, 224, 122, 0.05), transparent 65%),
      radial-gradient(ellipse 60% 55% at 80% 70%, rgba(255, 255, 255, 0.03), transparent 60%);
  }
  25% {
    opacity: 1;
    background:
      radial-gradient(ellipse 80% 70% at 25% 40%, rgba(227, 28, 35, 0.22), transparent 60%),
      radial-gradient(ellipse 50% 50% at 60% 55%, rgba(34, 197, 94, 0.06), transparent 55%),
      radial-gradient(ellipse 45% 45% at 85% 40%, rgba(245, 197, 24, 0.06), transparent 50%);
  }
  55% {
    opacity: 1;
    background:
      radial-gradient(ellipse 50% 50% at 20% 35%, rgba(227, 28, 35, 0.06), transparent 55%),
      radial-gradient(ellipse 80% 70% at 50% 50%, rgba(34, 197, 94, 0.22), transparent 60%),
      radial-gradient(ellipse 45% 45% at 85% 40%, rgba(245, 197, 24, 0.06), transparent 50%);
  }
  78% {
    opacity: 1;
    background:
      radial-gradient(ellipse 50% 50% at 20% 35%, rgba(227, 28, 35, 0.06), transparent 55%),
      radial-gradient(ellipse 50% 50% at 50% 55%, rgba(34, 197, 94, 0.06), transparent 55%),
      radial-gradient(ellipse 80% 70% at 78% 45%, rgba(245, 197, 24, 0.22), transparent 60%);
  }
}

@media (max-width: 720px) {
  .matchday-hub .hub-countdown-zone {
    max-width: none;
    width: 100%;
    flex: 0 0 auto;
    padding: 0.45rem 0.5rem 0.5rem;
    gap: 0.25rem;
    justify-content: flex-start;
  }

  .matchday-hub .hub-countdown-zone .countdown-kicker,
  .matchday-hub .hub-countdown-zone .countdown-sub {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .matchday-hub .hub-countdown-zone.is-focus-flash,
  .matchday-hub .hub-countdown-zone.is-focus-flash::after,
  .matchday-hub .hub-countdown-zone.is-focus-flash::before {
    animation: none !important;
  }
}

/* Sekunden-Tick: weiches Flip-Feel auf der aktiven LCD-Zeile */
.matchday-hub .lcd-layer--active.is-tick {
  animation: hub-sec-tick 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hub-sec-tick {
  0% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
  35% {
    transform: translateY(-4px) scale(1.04);
    filter: brightness(1.25);
  }
  100% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
}

/*
 * PDF-Regeln: LCD-Gehäuse + Galerie-Rahmen-Glow (A→B→C)
 * wie moment-portal-action / mp-action-glow-liga
 */
.matchday-hub .hub-rules {
  flex: 0 0 auto;
  align-self: center;
  display: block;
  text-decoration: none;
  color: inherit;
  min-width: min(100%, 12.5rem);
  max-width: 15rem;
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.matchday-hub .hub-rules:hover,
.matchday-hub .hub-rules:focus-visible {
  transform: translateY(-3px);
}

.matchday-hub .hub-rules:focus-visible {
  outline: 2px solid rgba(110, 245, 164, 0.55);
  outline-offset: 3px;
  border-radius: 16px;
}

.matchday-hub .hub-rules-bezel {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.4rem 0.5rem 0.5rem;
  border-radius: 14px;
  background: linear-gradient(165deg, #2e333c 0%, #161a20 45%, #0b0d10 100%);
  border: 1px solid rgba(227, 28, 35, 0.45);
  box-sizing: border-box;
  /* gleicher Rahmen-Puls wie Galerie-Button */
  animation: mp-action-glow-liga 7.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  will-change: box-shadow, border-color;
  transition: background 0.3s ease;
}

.matchday-hub .hub-rules:hover .hub-rules-bezel,
.matchday-hub .hub-rules:focus-visible .hub-rules-bezel {
  background: linear-gradient(165deg, #343a45 0%, #1a1f28 45%, #0e1116 100%);
}

.matchday-hub .hub-rules-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.05rem 0.28rem 0.22rem;
  font-family: "Audiowide", "Share Tech Mono", ui-monospace, sans-serif;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(150, 160, 175, 0.55);
}

.matchday-hub .hub-rules-power {
  color: #4fdc86;
  font-size: 0.48rem;
  line-height: 1;
  text-shadow: 0 0 6px rgba(79, 220, 134, 0.55);
  animation: lcd-power-blink 2.6s ease-in-out infinite;
}

.matchday-hub .hub-rules-screen {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  min-height: 5.2rem;
  padding: 0.65rem 0.75rem 0.6rem;
  border-radius: 10px;
  border: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 40%, #0e1c13 0%, #07110b 55%, #050c08 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 2px 6px rgba(0, 0, 0, 0.25),
    inset 0 -2px 8px rgba(0, 0, 0, 0.2),
    inset 12px 0 16px -8px rgba(0, 0, 0, 0.3),
    inset -12px 0 16px -8px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Scanlines wie Countdown-LCD */
.matchday-hub .hub-rules-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.09;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.35) 2px,
    rgba(0, 0, 0, 0.35) 3px
  );
}

.matchday-hub .hub-rules-screen::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 40%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 100%
  );
}

.matchday-hub .hub-rules-icon,
.matchday-hub .hub-rules-copy {
  position: relative;
  z-index: 1;
}

/* PDF-Icon: rotes Schimmern (Liga A) */
.matchday-hub .hub-rules-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.6rem;
  filter: drop-shadow(0 0 8px rgba(227, 28, 35, 0.45));
  animation: hub-rules-pdf-shimmer 2.4s ease-in-out infinite;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.matchday-hub .hub-rules-icon svg {
  width: 2.35rem;
  height: auto;
  display: block;
}

.matchday-hub .hub-rules-icon-body {
  fill: url(#hubRulesPdfGrad);
  stroke: rgba(255, 140, 140, 0.65);
  stroke-width: 1.2;
}

.matchday-hub .hub-rules-icon-fold {
  fill: #ffb4b4;
  stroke: rgba(255, 180, 180, 0.5);
  stroke-width: 0.8;
  opacity: 0.95;
}

.matchday-hub .hub-rules-icon-text {
  font-family: "Audiowide", "Share Tech Mono", ui-monospace, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  fill: #fff;
}

.matchday-hub .hub-rules:hover .hub-rules-icon,
.matchday-hub .hub-rules:focus-visible .hub-rules-icon {
  filter: drop-shadow(0 0 14px rgba(227, 28, 35, 0.7));
  transform: scale(1.05);
  animation-duration: 1.4s;
}

@keyframes hub-rules-pdf-shimmer {
  0%,
  100% {
    filter: drop-shadow(0 0 6px rgba(227, 28, 35, 0.35));
    opacity: 0.92;
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(255, 80, 80, 0.75));
    opacity: 1;
  }
}

.matchday-hub .hub-rules-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.28rem;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.matchday-hub .hub-rules-title {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  font-family: "Audiowide", "Share Tech Mono", ui-monospace, sans-serif;
  font-size: clamp(0.72rem, 1.35vw, 0.88rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.15;
  text-align: left;
  color: #6ef5a4;
  -webkit-text-fill-color: #6ef5a4;
  text-shadow:
    1px 1px 0 #0a3d22,
    2px 2px 0 #08331c,
    3px 3px 0 #062816,
    0 0 10px rgba(57, 224, 122, 0.45),
    0 0 18px rgba(57, 224, 122, 0.2);
}

/* Endlos-Laufschrift „LIGAREGELN“ (PC + Handy) */
.matchday-hub .hub-rules-marquee {
  display: block;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

.matchday-hub .hub-rules-marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  animation: hub-rules-marquee 12s linear infinite;
}

.matchday-hub .hub-rules-marquee-seg {
  flex: 0 0 auto;
  white-space: nowrap;
}

.matchday-hub .hub-rules:hover .hub-rules-marquee-track,
.matchday-hub .hub-rules:focus-visible .hub-rules-marquee-track {
  animation-play-state: paused;
}

@keyframes hub-rules-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Handy: dichtere Zeile, kaum Masken-Luft, etwas flotter */
@media (max-width: 899px) {
  .matchday-hub .hub-rules-copy {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: none;
  }

  .matchday-hub .hub-rules-title {
    width: 100%;
  }

  .matchday-hub .hub-rules-marquee {
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 3%,
      #000 97%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 3%,
      #000 97%,
      transparent 100%
    );
  }

  .matchday-hub .hub-rules-marquee-track {
    animation-duration: 10s;
  }

  .matchday-hub .hub-rules-marquee-seg {
    letter-spacing: 0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .matchday-hub .hub-rules-marquee-track {
    animation: none !important;
    transform: none !important;
  }

  .matchday-hub .hub-rules-marquee-seg:nth-child(n + 2) {
    display: none;
  }

  .matchday-hub .hub-rules-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* Reduced motion: nur einmal „LIGAREGELN“ zeigen */
  .matchday-hub .hub-rules-marquee-seg {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.matchday-hub .hub-rules-sub {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  font-family: "Audiowide", "Share Tech Mono", ui-monospace, sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: rgba(110, 245, 164, 0.55);
}

.matchday-hub .hub-rules-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  color: #6ef5a4;
  text-shadow: 0 0 8px rgba(57, 224, 122, 0.4);
}

.matchday-hub .hub-rules:hover .hub-rules-arrow,
.matchday-hub .hub-rules:focus-visible .hub-rules-arrow {
  transform: translateX(4px);
}

.matchday-hub .hub-rules:hover .hub-rules-title,
.matchday-hub .hub-rules:focus-visible .hub-rules-title {
  color: #8fffb8;
  -webkit-text-fill-color: #8fffb8;
}

.matchday-hub .hub-rules:hover .hub-rules-sub,
.matchday-hub .hub-rules:focus-visible .hub-rules-sub {
  color: rgba(143, 255, 184, 0.75);
}

@media (max-width: 720px) {
  .matchday-hub .hub-main {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  /* Pfeil nach unten zwischen Countdown und PDF */
  .matchday-hub .hub-bridge-arrow {
    width: 100%;
    height: 1.75rem;
  }

  .matchday-hub .hub-bridge-arrow-inner {
    animation: hub-bridge-nudge-down 2.2s ease-in-out infinite;
  }

  .matchday-hub .hub-bridge-arrow-glyph {
    transform: rotate(90deg);
  }

  .matchday-hub .hub-rules {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .matchday-hub .hub-rules-screen {
    min-height: 4.5rem;
    padding: 0.55rem 0.7rem;
    gap: 0.75rem;
  }

  .matchday-hub .hub-rules-title {
    font-size: 0.82rem;
  }

  .matchday-hub .hub-rules-icon {
    width: 2.4rem;
  }

  .matchday-hub .hub-rules-icon svg {
    width: 2.15rem;
  }
}

@keyframes hub-bridge-nudge-down {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .matchday-hub .hub-rules-power,
  .matchday-hub .hub-rules-bezel,
  .matchday-hub .hub-rules-icon,
  .matchday-hub .hub-bridge-arrow-inner,
  .matchday-hub .hub-bridge-arrow-glyph {
    animation: none !important;
  }

  .matchday-hub .hub-rules-icon {
    filter: drop-shadow(0 0 10px rgba(227, 28, 35, 0.55));
    opacity: 1;
  }

  .matchday-hub .hub-rules-bezel {
    border-color: rgba(110, 245, 164, 0.35);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.1) inset,
      0 4px 14px rgba(0, 0, 0, 0.3),
      0 0 12px rgba(57, 224, 122, 0.15);
  }
}

/* Saison-Straße: 18 Stationen */
.hub-rail-block {
  margin-bottom: 1rem;
}

.hub-rail {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  margin: 0.45rem 0 0.55rem;
  padding: 0.15rem 0.1rem;
  min-height: 1.15rem;
}

.hub-rail::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  right: 0.2rem;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  z-index: 0;
}

.hub-rail-dot {
  position: relative;
  z-index: 1;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: #12151c;
  flex: 0 0 auto;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.hub-rail-dot.is-done {
  background: var(--liga-b);
  border-color: rgba(34, 197, 94, 0.85);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.35);
}

.hub-rail-dot.is-next,
.hub-rail-dot.is-focus {
  width: 0.85rem;
  height: 0.85rem;
  background: #f5c518;
  border-color: #ffe566;
  box-shadow:
    0 0 0 3px rgba(245, 197, 24, 0.18),
    0 0 14px rgba(245, 197, 24, 0.45);
  animation: hub-rail-pulse 1.8s ease-in-out infinite;
}

@keyframes hub-rail-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 2px rgba(245, 197, 24, 0.15),
      0 0 10px rgba(245, 197, 24, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 5px rgba(245, 197, 24, 0.08),
      0 0 18px rgba(245, 197, 24, 0.55);
  }
}

.matchday-hub .progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
}

/* Game-Chips – verspielter, klarer Status */
.matchday-hub .hub-pills.st-pills {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0.45rem;
  overflow: visible;
}

.matchday-hub .st-pill {
  position: relative;
  border-radius: 12px;
  padding: 0.48rem 0.28rem 0.42rem;
  background: linear-gradient(165deg, #1a1e27 0%, #0e1117 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 4px 10px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    filter 0.2s ease;
}

.matchday-hub .st-pill:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.28);
  z-index: 2;
}

.matchday-hub .st-pill:active {
  transform: translateY(1px) scale(0.97);
  transition-duration: 0.08s;
}

.matchday-hub .st-pill .st-check {
  position: absolute;
  top: 0.22rem;
  right: 0.28rem;
  font-size: 0.55rem;
  font-weight: 900;
  color: var(--liga-b);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.matchday-hub .st-pill.is-done .st-check {
  opacity: 0.9;
  transform: scale(1);
}

.matchday-hub .st-pill.is-done {
  border-color: rgba(34, 197, 94, 0.45);
  background: linear-gradient(165deg, rgba(14, 48, 30, 0.95), rgba(8, 12, 14, 0.95));
  filter: saturate(0.92);
}

.matchday-hub .st-pill.is-done:not(.is-highlight) {
  opacity: 0.78;
}

.matchday-hub .st-pill.is-highlight {
  border-color: rgba(245, 197, 24, 0.85);
  background: linear-gradient(165deg, rgba(72, 48, 8, 0.98), rgba(16, 12, 6, 0.98));
  box-shadow:
    0 0 0 1px rgba(245, 197, 24, 0.25),
    0 0 18px rgba(245, 197, 24, 0.22),
    0 6px 16px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
  z-index: 3;
  animation: hub-chip-glow 2.4s ease-in-out infinite;
}

@keyframes hub-chip-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(245, 197, 24, 0.22),
      0 0 14px rgba(245, 197, 24, 0.16),
      0 6px 14px rgba(0, 0, 0, 0.32);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(245, 197, 24, 0.4),
      0 0 22px rgba(245, 197, 24, 0.32),
      0 8px 18px rgba(0, 0, 0, 0.35);
  }
}

.matchday-hub .st-pill.is-highlight .st-num {
  color: #ffe566;
  letter-spacing: 0.06em;
}

.matchday-hub .st-pill.is-press {
  animation: hub-chip-press 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hub-chip-press {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.94) translateY(2px);
  }
  100% {
    transform: scale(1) translateY(-2px);
  }
}

@media (max-width: 900px) {
  .matchday-hub .hub-pills.st-pills {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Mobile: horizontales Snap-Carousel, aktiver Chip in der Mitte */
@media (max-width: 640px) {
  .matchday-hub {
    padding: 1rem 0.85rem 1.1rem;
  }

  .matchday-hub .hub-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .matchday-hub .hub-pills.st-pills {
    display: flex;
    grid-template-columns: none;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 35%;
    -webkit-overflow-scrolling: touch;
    padding: 0.35rem 0.15rem 0.55rem;
    margin-inline: -0.25rem;
    scrollbar-width: none;
  }

  .matchday-hub .hub-pills.st-pills::-webkit-scrollbar {
    display: none;
  }

  .matchday-hub .st-pill {
    flex: 0 0 auto;
    min-width: 4.6rem;
    scroll-snap-align: center;
  }

  .hub-rail-dot {
    width: 0.48rem;
    height: 0.48rem;
  }

  .hub-rail-dot.is-next,
  .hub-rail-dot.is-focus {
    width: 0.68rem;
    height: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-arena-glow,
  .hub-status-dot,
  .hub-rail-dot.is-next,
  .hub-rail-dot.is-focus,
  .matchday-hub .st-pill.is-highlight,
  .hub-sparkle.is-pop,
  .matchday-hub .lcd-layer--active.is-tick {
    animation: none !important;
  }
}

/*
 * PC: Matchday-Hub ~20 % flacher (Abstände + LCD/Pills),
 * Breite bleibt 1040px – Design unverändert, nur kompakter.
 */
@media (min-width: 900px) {
  .matchday-hub {
    padding: 0.95rem 1.4rem 1rem;
  }

  .matchday-hub .hub-top {
    margin-bottom: 0.65rem;
    gap: 0.45rem 0.85rem;
  }

  .matchday-hub .season-badge {
    padding: 0.32rem 0.85rem;
    font-size: 0.7rem;
    gap: 0.35rem;
  }

  .matchday-hub .hub-status {
    padding: 0.28rem 0.7rem;
    font-size: 0.64rem;
  }

  .matchday-hub .hub-main {
    margin-bottom: 0.75rem;
    gap: 0.4rem 0.55rem;
  }

  .matchday-hub .hub-countdown-zone {
    padding: 0.5rem 0.85rem 0.55rem;
    gap: 0.32rem;
    border-radius: 16px;
  }

  .matchday-hub .hub-countdown-zone .countdown-kicker {
    font-size: 0.64rem;
  }

  .matchday-hub .hub-countdown-zone .countdown-sub {
    font-size: 0.7rem;
  }

  .matchday-hub .lcd-bezel {
    padding: 0.28rem 0.45rem 0.32rem;
    border-radius: 12px;
  }

  .matchday-hub .lcd-bezel-top {
    padding: 0.02rem 0.25rem 0.18rem;
    font-size: 0.5rem;
  }

  .matchday-hub .lcd-screen {
    padding: 0.45rem 0.65rem 0.38rem !important;
  }

  .matchday-hub .lcd-lines {
    min-height: clamp(2.15rem, 5.2vw, 2.85rem);
  }

  .matchday-hub .lcd-layer {
    font-size: clamp(1.55rem, 4.4vw, 2.35rem);
    padding: 0.06rem 0.06rem;
  }

  .matchday-hub .lcd-labels {
    margin: 0.22rem 0 0;
    font-size: clamp(0.44rem, 1vw, 0.54rem);
  }

  .matchday-hub .hub-rules-bezel {
    padding: 0.28rem 0.42rem 0.32rem;
    gap: 0.18rem;
    border-radius: 12px;
  }

  .matchday-hub .hub-rules-top {
    padding: 0.02rem 0.22rem 0.14rem;
  }

  .matchday-hub .hub-rules-screen {
    min-height: 4rem;
    padding: 0.42rem 0.58rem 0.38rem;
    gap: 0.45rem;
  }

  .matchday-hub .hub-rules-icon {
    width: 2.15rem;
  }

  .matchday-hub .hub-rules-icon svg {
    width: 1.95rem;
  }

  .matchday-hub .hub-rules-copy {
    gap: 0.18rem;
  }

  .matchday-hub .hub-rules-title {
    font-size: clamp(0.64rem, 1.2vw, 0.78rem);
  }

  .matchday-hub .hub-rail-block,
  .matchday-hub .progress-block {
    margin-bottom: 0.65rem;
  }

  .matchday-hub .hub-rail,
  .hub-rail {
    margin: 0.28rem 0 0.32rem;
    min-height: 0.95rem;
    padding: 0.08rem 0.08rem;
  }

  .matchday-hub .progress-meta {
    margin-bottom: 0.22rem;
    font-size: 0.66rem;
  }

  .matchday-hub .progress-track {
    height: 3px;
  }

  .matchday-hub .hub-pills.st-pills {
    gap: 0.32rem;
  }

  .matchday-hub .st-pill {
    padding: 0.32rem 0.22rem 0.28rem;
    border-radius: 10px;
  }

  .matchday-hub .st-pill .st-date,
  .matchday-hub .st-pill .st-num {
    font-size: 0.56rem;
  }

  .matchday-hub .st-pill .st-check {
    top: 0.14rem;
    right: 0.2rem;
    font-size: 0.48rem;
  }
}

/* ========== GALERIE TOP 6 – eine Zeile, gleiche Größe ========== */
.fotos-section,
.gallery-section {
  padding-block: var(--space-section);
  overflow: hidden;
  background: #0a0b0e;
  border-bottom: 1px solid var(--border);
}

.gallery-section .container.gallery-portfolio-head {
  overflow: visible;
  max-width: min(100% - 1.5rem, var(--max));
}

/* #top-momente – kompakter Kopf */
.gallery-portfolio-head {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-block);
  padding: 0.2rem 1rem 0.15rem;
  overflow: visible;
}

.gallery-portfolio-title {
  margin: 0;
  font-size: clamp(1.55rem, 4.5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  overflow: visible;
  text-transform: lowercase;
  text-align: center;
}

.gallery-title-block {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.06em; /* eng, aber ohne Überlagerung */
  padding: 0.1em 0.16em 0.12em 0.08em;
  overflow: visible;
}

/* Ein durchgehender Farbverlauf – kein Bruch bei „momente“ */
.gallery-portfolio-title .title-glow-text.gallery-title-main {
  display: block;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: 1.05;
  text-transform: lowercase;
  padding: 0.05em 0.1em 0.02em 0.04em;
  overflow: visible;
  animation: title-light-bg 7s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(57, 224, 122, 0.18));
}

/* Label: rechts unter dem Wort, so nah wie möglich ohne Überschneidung */
.gallery-spieltag-label {
  position: static;
  display: block;
  margin: 0 0.1em 0 0;
  font-size: 0.26em;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.9),
    0 0 18px rgba(255, 255, 255, 0.5),
    0 0 32px rgba(255, 255, 255, 0.28);
}

@media (max-width: 520px) {
  .gallery-title-block {
    gap: 0.08em;
  }

  .gallery-spieltag-label {
    font-size: 0.24em;
    letter-spacing: 0.1em;
  }
}

/* CTA im .container → gleiche linke Kante wie Rubrik-Köpfe */
.gallery-cta-container {
  margin-top: calc(var(--space-block) + 0.35rem);
}

.gallery-cta-wrap {
  display: flex;
  justify-content: flex-start;
  margin: 0;
  padding-inline: 0;
  box-sizing: border-box;
  width: 100%;
}

.moment-portal {
  width: 100%;
  color: #fff;
}

.moment-portal-core {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 0.35rem 0;
}

.moment-portal-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  text-align: left;
}

/*
 * PC ab 900px: Text + Logo als zentrierte Gruppe, Logo +25 %
 */
@media (min-width: 900px) {
  .gallery-cta-wrap--balanced {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding-inline: 0;
  }

  .gallery-cta-wrap--balanced .moment-portal {
    width: auto !important;
    max-width: 48rem !important;
    margin-inline: auto !important;
  }

  .gallery-cta-wrap--balanced .moment-portal-core {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.75rem 2.25rem !important;
    padding: 0.65rem 0 !important;
  }

  .gallery-cta-wrap--balanced .moment-portal-copy {
    flex: 0 1 auto;
    max-width: 28rem;
    text-align: left;
  }

  .gallery-cta-wrap--balanced .moment-portal-logo {
    flex-shrink: 0;
    /* Basis ~7.5rem → +25 % ≈ 9.375rem */
    width: 9.4rem !important;
    height: 9.4rem !important;
  }
}

/* Logo neben dem CTA-Text (ersetzt den alten Button) */
.moment-portal-logo {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: clamp(5.5rem, 14vw, 7.5rem);
  height: clamp(5.5rem, 14vw, 7.5rem);
}

.moment-portal-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  box-shadow: none;
  user-select: none;
  pointer-events: none;
}

.moment-portal-title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15em 0.28em;
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* Wie Matchday-Hub-Titel: klar, weiß, ohne Regenbogen-Animation */
.moment-portal-title .moment-portal-name {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: 1.15;
  color: #f4f5f7;
  -webkit-text-fill-color: #f4f5f7;
  background: none;
  animation: none;
  filter: none;
}

.moment-portal-rest {
  color: #f3f5f8;
}

.moment-portal-sub {
  margin: 0;
  font-size: clamp(0.8rem, 1.7vw, 0.92rem);
  font-weight: 600;
  line-height: 1.35;
  color: rgba(220, 226, 236, 0.78);
  max-width: 34rem;
}

/* Action-Button = Ligagalerie – Glow in A/B/C-Farben (wieder aktiv) */
.moment-portal-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.85rem 0.45rem 0.45rem;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    filter 0.2s ease;
  /* weicher Rahmen-Glow in Ligafarben A → B → C im Wechsel */
  animation: mp-action-glow-liga 7.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  will-change: box-shadow, border-color;
}

/* Rahmen-Puls: Rot (A) → Grün (B) → Gelb (C) → … */
@keyframes mp-action-glow-liga {
  0%,
  100% {
    border-color: rgba(227, 28, 35, 0.55);
    box-shadow:
      0 4px 18px rgba(0, 0, 0, 0.25),
      0 0 0 1px rgba(227, 28, 35, 0.2),
      0 0 12px rgba(227, 28, 35, 0.35),
      0 0 22px rgba(227, 28, 35, 0.12);
  }
  16% {
    border-color: rgba(227, 28, 35, 0.2);
    box-shadow:
      0 4px 18px rgba(0, 0, 0, 0.25),
      0 0 6px rgba(227, 28, 35, 0.08);
  }
  33% {
    border-color: rgba(34, 197, 94, 0.55);
    box-shadow:
      0 4px 18px rgba(0, 0, 0, 0.25),
      0 0 0 1px rgba(34, 197, 94, 0.2),
      0 0 12px rgba(34, 197, 94, 0.35),
      0 0 22px rgba(34, 197, 94, 0.12);
  }
  50% {
    border-color: rgba(34, 197, 94, 0.2);
    box-shadow:
      0 4px 18px rgba(0, 0, 0, 0.25),
      0 0 6px rgba(34, 197, 94, 0.08);
  }
  66% {
    border-color: rgba(245, 197, 24, 0.6);
    box-shadow:
      0 4px 18px rgba(0, 0, 0, 0.25),
      0 0 0 1px rgba(245, 197, 24, 0.22),
      0 0 12px rgba(245, 197, 24, 0.4),
      0 0 22px rgba(245, 197, 24, 0.14);
  }
  83% {
    border-color: rgba(245, 197, 24, 0.2);
    box-shadow:
      0 4px 18px rgba(0, 0, 0, 0.25),
      0 0 6px rgba(245, 197, 24, 0.08);
  }
}

.moment-portal-lens {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.moment-portal-lens-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--liga-a),
    var(--liga-b),
    var(--liga-c),
    var(--liga-a)
  );
  animation: mp-lens-spin 6s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}

.moment-portal-lens-glass {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 45%),
    radial-gradient(circle at 50% 55%, #1a1f28 0%, #0a0c10 70%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.12),
    inset 0 -4px 10px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.moment-portal-lens-arrow {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  transform: translateX(1px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.moment-portal-action-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  padding-right: 0.25rem;
}

.moment-portal-action-text strong {
  font-size: clamp(0.82rem, 1.5vw, 0.95rem);
  font-weight: 900;
  letter-spacing: -0.015em;
  color: #fff;
  white-space: nowrap;
  line-height: 1.15;
}

.moment-portal-action-text em {
  font-style: normal;
  font-size: clamp(0.62rem, 1.2vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(220, 226, 236, 0.78);
  white-space: nowrap;
  line-height: 1.15;
}

/* Hover/Focus: Nudge pausiert, Fokus auf Hover-Effekt */
.moment-portal-action:hover,
.moment-portal-action:focus-visible,
.moment-portal-action:active,
.moment-portal-action.is-touch-hot {
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--liga-a) 92%, #fff) 0%,
    var(--liga-a) 55%,
    #9a1015 100%
  );
  border-color: rgba(255, 255, 255, 0.28);
  transform: scale(1.03);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 8px 22px rgba(160, 0, 0, 0.4);
  animation: btn-soft-red-pulse 2.2s ease-in-out 0.35s infinite;
  outline: none;
}

.moment-portal-action:hover .moment-portal-action-text em,
.moment-portal-action:focus-visible .moment-portal-action-text em {
  color: rgba(255, 255, 255, 0.88);
}

.moment-portal-action:hover .moment-portal-lens-glass,
.moment-portal-action:focus-visible .moment-portal-lens-glass {
  transform: scale(1.06);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.4), transparent 45%),
    radial-gradient(circle at 50% 55%, #2a1012 0%, #120608 70%);
}

.moment-portal-action:hover .moment-portal-lens-arrow,
.moment-portal-action:focus-visible .moment-portal-lens-arrow {
  transform: translateX(5px);
}

.moment-portal-action:hover .moment-portal-lens-ring,
.moment-portal-action:focus-visible .moment-portal-lens-ring {
  animation-duration: 2.2s;
}

/* :active steuert oben die PC-Hover-Optik – kein „flaches“ Zurückdrücken */

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

@media (max-width: 720px) {
  .gallery-cta-wrap {
    width: 100%;
    padding-inline: 0;
    margin: 0;
  }

  .moment-portal {
    width: 100%;
    max-width: 100%;
  }

  .moment-portal-core {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem 0.9rem;
    padding: 0.35rem 0;
    justify-content: space-between;
  }

  .moment-portal-copy {
    min-width: 0;
    flex: 1 1 auto;
    max-width: none;
    text-align: left;
    gap: 0.2rem;
  }

  .moment-portal-title {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.08em;
    font-size: clamp(0.98rem, 4.6vw, 1.18rem);
    line-height: 1.15;
  }

  .moment-portal-name,
  .moment-portal-rest {
    display: block;
    white-space: nowrap; /* keine Wort-Witwen in der Headline */
  }

  .moment-portal-sub {
    font-size: clamp(0.7rem, 3.2vw, 0.82rem);
    line-height: 1.35;
    max-width: none;
    text-wrap: pretty;
  }

  .moment-portal-br {
    display: block;
  }

  /* Handy: Logo rechts – etwas kompakter, damit Text ohne Umbruch passt */
  .moment-portal-logo {
    width: 7.75rem;
    height: 7.75rem;
    flex: 0 0 7.75rem;
  }
}

@media (max-width: 380px) {
  .moment-portal-logo {
    width: 6.75rem;
    height: 6.75rem;
    flex-basis: 6.75rem;
  }

  .moment-portal-title {
    font-size: 0.92rem;
  }

  .moment-portal-sub {
    font-size: 0.68rem;
  }
}

/* PC: manueller Zeilenumbruch im Sub nicht nötig */
@media (min-width: 721px) {
  .moment-portal-br {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .moment-portal-action,
  .moment-portal-lens-glass,
  .moment-portal-lens-arrow {
    transition: none;
  }

  .moment-portal-action,
  .moment-portal-lens-ring,
  .moment-portal-title .title-glow-text,
  .moment-portal-action:hover,
  .moment-portal-action:focus-visible {
    animation: none !important;
  }

  .moment-portal-action {
    border-color: color-mix(in srgb, var(--liga-a) 45%, transparent);
    box-shadow:
      0 4px 18px rgba(0, 0, 0, 0.25),
      0 0 10px color-mix(in srgb, var(--liga-a) 25%, transparent);
  }

  .moment-portal-action:hover,
  .moment-portal-action:focus-visible {
    transform: none;
  }
}

/* Shared: weicher Rot-Puls + Live-Dot (Mega-Buttons u. a.) */
@keyframes btn-soft-red-pulse {
  0%,
  100% {
    background-color: #e31c23;
    box-shadow: 0 0 0 1px rgba(255, 120, 120, 0.22) inset;
  }
  50% {
    background-color: #eb262e;
    box-shadow: 0 0 0 1px rgba(255, 150, 150, 0.35) inset;
  }
}

@keyframes gab-live-pulse-dark {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

/* (Coverflow/Zielscheibe entfernt – stabiles Portfolio-Grid) */

/* Portfolio-Grid: gleiche Inhaltsbreite wie .container (var(--max)) */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  width: min(100% - 2rem, var(--max));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
  padding-block: 0.35rem 0.25rem;
  box-sizing: border-box;
  align-items: stretch;
  justify-items: stretch;
  overflow: visible;
  perspective: 900px;
}

/* Nav: 10 Kacheln → 5 Spalten / 2 Reihen auf Desktop */
.nav-portfolio.portfolio-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(100% - 2rem, var(--max));
  max-width: none;
  padding-inline: 0;
}

@media (max-width: 900px) {
  .portfolio-grid {
    gap: 0.5rem;
    width: min(100% - 2rem, var(--max));
    padding-block: 0.25rem 0.15rem;
  }

  .nav-portfolio.portfolio-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100% - 2rem, var(--max));
    padding-inline: 0;
  }
}

@media (max-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: min(100% - 1.5rem, var(--max));
    padding-inline: 0;
    padding-block: 0.55rem 0.9rem;
  }

  .nav-portfolio.portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100% - 1.5rem, var(--max));
    padding-inline: 0;
  }

  .nav-portfolio .portfolio-soon-text {
    font-size: clamp(0.78rem, 3.5vw, 0.94rem);
    padding: 0.28rem 0.18rem;
  }

  .nav-portfolio .portfolio-nav-stack {
    gap: 0.34rem;
    padding: 0.4rem 0.2rem 0.36rem;
  }

  .nav-portfolio .portfolio-nav-badge {
    font-size: clamp(0.48rem, 5.4cqi, 0.62rem);
    letter-spacing: 0.07em;
    padding: 0.3em 0.55em;
    min-height: 1.3em;
  }

  .nav-portfolio .portfolio-nav-title {
    font-size: clamp(0.72rem, 11.2cqi, 1.05rem);
    letter-spacing: 0.01em;
    line-height: 1.08;
    min-height: 2.25em;
  }

  .nav-portfolio .portfolio-nav-line--long {
    font-size: 0.7em;
    letter-spacing: -0.045em;
  }

  .nav-portfolio .portfolio-nav-sub {
    font-size: clamp(0.46rem, 5.4cqi, 0.6rem);
    letter-spacing: 0.03em;
  }

  .nav-portfolio .portfolio-nav-bar {
    width: 2.15rem;
    height: 2.5px;
  }
}

.portfolio-item {
  appearance: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: #111;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
  max-width: 100%;
  border-radius: 14px;
  z-index: 1;
  /* Sofort sichtbar – keine Startanimation */
  opacity: 1;
  transform: none;
  filter: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 0 3px rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-font-smoothing: subpixel-antialiased;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  align-self: stretch;
}

.portfolio-item:focus-visible {
  outline: 2px solid var(--liga-a);
  outline-offset: 3px;
  z-index: 5;
}

/* Unverlinkte Kachel */
.portfolio-item.is-soon {
  cursor: default;
  pointer-events: none;
  opacity: 0.72;
  filter: grayscale(0.15);
}

.portfolio-grid.is-landed .portfolio-item.is-soon {
  opacity: 0.72;
  filter: grayscale(0.15);
}

.portfolio-item.is-soon .portfolio-item-label {
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Startanimation Cascade/Epic aus – Kacheln sofort da */
.portfolio-grid.is-in .portfolio-item,
.portfolio-grid.is-landed .portfolio-item,
.nav-portfolio.portfolio-grid .portfolio-item,
.top-moments-grid.portfolio-grid .portfolio-item {
  animation: none !important;
  opacity: 1;
  transform: none;
  filter: none;
}

.portfolio-grid.is-in .portfolio-item::after,
.portfolio-grid.is-in .portfolio-item .portfolio-soon-text,
.portfolio-grid.is-in .portfolio-item .portfolio-logo-img {
  animation: none !important;
}

@keyframes portfolio-cascade-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 42px, -60px) scale(0.68) rotateX(16deg) rotateZ(-2deg);
    filter: blur(10px) brightness(1.55) saturate(0.6);
    box-shadow: 0 0 0 0 transparent;
  }
  35% {
    opacity: 1;
    filter: blur(3px) brightness(1.25) saturate(0.9);
  }
  62% {
    transform: translate3d(0, -6px, 8px) scale(1.04) rotateX(-2deg) rotateZ(0.5deg);
    filter: blur(0) brightness(1.12) saturate(1.05);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.2),
      0 12px 32px rgba(227, 28, 35, 0.18),
      0 0 28px rgba(34, 197, 94, 0.12);
  }
  82% {
    transform: translate3d(0, 3px, 0) scale(0.985) rotateX(0.5deg);
    filter: blur(0) brightness(1.02);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotateX(0) rotateZ(0);
    filter: blur(0) brightness(1) saturate(1);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.22),
      0 0 0 3px rgba(255, 255, 255, 0.07),
      0 0 0 4px rgba(0, 0, 0, 0.28),
      0 6px 18px rgba(0, 0, 0, 0.38),
      inset 0 2px 0 rgba(255, 255, 255, 0.42),
      inset 0 -3px 0 rgba(0, 0, 0, 0.4);
  }
}

@keyframes portfolio-glow-pulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(227, 28, 35, 0),
      0 0 0 0 rgba(34, 197, 94, 0);
  }
  40% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.18),
      0 0 24px rgba(227, 28, 35, 0.22),
      0 0 36px rgba(245, 197, 24, 0.1);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.22),
      0 0 0 3px rgba(255, 255, 255, 0.07),
      0 6px 18px rgba(0, 0, 0, 0.38),
      inset 0 2px 0 rgba(255, 255, 255, 0.42),
      inset 0 -3px 0 rgba(0, 0, 0, 0.4);
  }
}

@keyframes portfolio-entry-glint {
  0% {
    opacity: 0;
    transform: translate3d(-70%, -70%, 0);
  }
  25% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translate3d(70%, 70%, 0);
  }
}

@keyframes portfolio-content-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* Nach der Sequenz: stabiler Glas-Look, alle gleich */
.portfolio-grid.is-landed .portfolio-item {
  animation: none;
  will-change: auto;
  opacity: 1;
  filter: none;
  transform: translate3d(0, 0, 0) scale(1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 0 3px rgba(255, 255, 255, 0.07),
    0 0 0 4px rgba(0, 0, 0, 0.28),
    0 6px 18px rgba(0, 0, 0, 0.38),
    0 2px 4px rgba(0, 0, 0, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.42),
    inset 0 4px 10px rgba(255, 255, 255, 0.08),
    inset 0 -3px 0 rgba(0, 0, 0, 0.4),
    inset 0 -6px 14px rgba(0, 0, 0, 0.28),
    inset 2px 0 0 rgba(255, 255, 255, 0.14),
    inset -2px 0 0 rgba(0, 0, 0, 0.22);
  transition:
    box-shadow 0.4s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.3s ease;
}

.portfolio-grid.is-landed .portfolio-item::after {
  animation: none;
  opacity: 0;
  filter: none;
}

/* Hover: gleicher Glanz für alle Kacheln */
.portfolio-grid.is-landed .portfolio-item:hover::after,
.portfolio-grid.is-landed .portfolio-item:focus-visible::after {
  opacity: 1;
  animation: portfolio-shine-tl-br var(--shine-dur, 1.85s)
    cubic-bezier(0.33, 0.1, 0.2, 1) forwards;
}

/* Nav-Kacheln: KEIN diagonaler Lichtstreifen über die Fläche */
.nav-portfolio.portfolio-grid.is-landed .portfolio-item::after,
.nav-portfolio.portfolio-grid.is-in .portfolio-item::after,
.nav-portfolio.portfolio-grid.is-landed .portfolio-item:hover::after,
.nav-portfolio.portfolio-grid.is-landed .portfolio-item:focus-visible::after,
.nav-portfolio.portfolio-grid.is-landed .portfolio-item:active::after,
.nav-portfolio.portfolio-grid.is-landed .portfolio-item.is-touch-hot::after {
  display: none !important;
  animation: none !important;
  opacity: 0 !important;
}

.nav-portfolio .portfolio-glass-glint {
  /* nur dezenter Top-Gloss, kein wandernder Streifen */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.06) 40%,
    transparent 100%
  );
  background-size: 100% 100%;
  opacity: 0.4;
}

/*
 * Glas-Rahmen-Overlay:
 * dicker Bevel + Kanten-Lichtreflexe (oben/links hell, unten/rechts dunkel)
 */
.portfolio-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  /* dicker multi-layer inset rim */
  box-shadow:
    /* helle Oberkante (Hauptreflex) */
    inset 0 2px 0 rgba(255, 255, 255, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    /* linke Kante */
    inset 2px 0 0 rgba(255, 255, 255, 0.28),
    inset 1px 0 0 rgba(255, 255, 255, 0.45),
    /* untere Kante (Schattenfase) */
    inset 0 -2px 0 rgba(0, 0, 0, 0.42),
    inset 0 -3px 8px rgba(0, 0, 0, 0.22),
    /* rechte Kante */
    inset -2px 0 0 rgba(0, 0, 0, 0.28),
    inset -1px 0 0 rgba(0, 0, 0, 0.18),
    /* innere Glas-Linie */
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 0 0 3px rgba(255, 255, 255, 0.05),
    /* weiche Innenwölbung */
    inset 0 10px 22px rgba(255, 255, 255, 0.06),
    inset 0 -12px 24px rgba(0, 0, 0, 0.22);
  background:
    /* Ecken-Glanz oben links */
    radial-gradient(
      ellipse 70% 55% at 12% 8%,
      rgba(255, 255, 255, 0.38) 0%,
      rgba(255, 255, 255, 0.1) 28%,
      transparent 55%
    ),
    /* dezenter Kanten-Streifen oben */
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.06) 8%,
      transparent 22%
    ),
    /* diagonale Glasfläche */
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.07) 18%,
      transparent 40%,
      transparent 72%,
      rgba(255, 255, 255, 0.04) 100%
    ),
    /* untere dunkle Glas-Schicht */
    linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.18) 0%,
      transparent 28%
    );
  opacity: 1;
  mix-blend-mode: normal;
}

/* zusätzliche Glas-Reflexion (obere Fläche + feiner Rand-Glanz) */
.portfolio-item .portfolio-glass-glint {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background:
    /* weicher Top-Gloss */
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.34) 0%,
      rgba(255, 255, 255, 0.12) 32%,
      rgba(255, 255, 255, 0.03) 62%,
      transparent 100%
    ),
    /* schmaler Lichtreflex entlang der oberen Kante */
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.08) 18%,
      rgba(255, 255, 255, 0.45) 42%,
      rgba(255, 255, 255, 0.55) 50%,
      rgba(255, 255, 255, 0.35) 58%,
      rgba(255, 255, 255, 0.08) 78%,
      transparent 100%
    );
  background-size: 100% 100%, 70% 2px;
  background-position: center top, 15% 3px;
  background-repeat: no-repeat;
  opacity: 0.55;
  mix-blend-mode: normal;
}

/*
 * Diagonaler Lichtschein – für alle 8 Kacheln gleich
 */
.portfolio-item::after {
  content: "";
  position: absolute;
  inset: -40%;
  width: auto;
  height: auto;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  will-change: auto;
  transition: none;
  backface-visibility: hidden;
  background: linear-gradient(
    135deg,
    transparent 0%,
    transparent 18%,
    rgba(255, 255, 255, 0.05) 30%,
    rgba(255, 255, 255, 0.14) 38%,
    rgba(255, 255, 255, 0.28) 45%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.28) 55%,
    rgba(255, 255, 255, 0.14) 62%,
    rgba(255, 255, 255, 0.05) 70%,
    transparent 82%,
    transparent 100%
  );
  transform: translate3d(-45%, -45%, 0);
}

/* Innen-Inhalt: Logo (Mitte) / Coming Soon / Nav-Labels (außen) */
.portfolio-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: inherit;
  z-index: 1;
  /* leichter Innenabstand, Text/Logo nicht bündig am Rand */
  padding: 0.4rem;
  box-sizing: border-box;
}

.portfolio-media--logo {
  background:
    radial-gradient(ellipse 70% 65% at 50% 45%, rgba(227, 28, 35, 0.22), transparent 62%),
    radial-gradient(ellipse 55% 50% at 70% 70%, rgba(34, 197, 94, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 45% at 25% 75%, rgba(245, 197, 24, 0.1), transparent 50%),
    linear-gradient(160deg, #1a1b22 0%, #0c0d12 100%);
}

.portfolio-media--soon {
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(155deg, #18191f 0%, #0a0b0f 100%);
}

/* Logo-Kachel – gleiche Größe/Behandlung wie Text-Kacheln */
.portfolio-logo-img {
  width: min(72%, 7.5rem);
  height: auto;
  max-height: 72%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: auto;
}

/* Außen: Coming Soon / Nav – zentriert, lesbar */
.portfolio-soon-text {
  font-size: clamp(0.58rem, 1.15vw, 0.8rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  line-height: 1.25;
  padding: 0.35rem 0.45rem;
  white-space: normal;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: auto;
  animation: none;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 2px 12px rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
}

/* Innen-Zooms erst nach Landung – weich, langsam, nur transform */
.portfolio-grid.is-landed .portfolio-item.is-center .portfolio-logo-img {
  animation: portfolio-logo-zoom-out 16s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
  will-change: transform;
}

.portfolio-grid.is-landed .portfolio-item.is-left .portfolio-soon-text,
.portfolio-grid.is-landed .portfolio-item.is-right .portfolio-soon-text {
  animation: portfolio-soon-zoom-in 14s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
  animation-delay: calc(var(--ring, 1) * 0.45s);
  will-change: transform;
}

/* Nav: lesbare Poster-Typo – volle Kachelbreite für lange Caps */
.nav-portfolio .portfolio-soon-text {
  font-size: clamp(0.92rem, 1.7vw, 1.2rem);
  white-space: normal;
  max-width: 100%;
  width: 100%;
  padding: 0.45rem 0.22rem;
  text-transform: none;
  letter-spacing: normal;
  box-sizing: border-box;
}

.nav-portfolio .portfolio-nav-stack {
  gap: 0.42rem;
  max-width: 100%;
  max-height: 96%;
  padding: 0.5rem 0.26rem 0.45rem;
}

.nav-portfolio .portfolio-media--soon {
  background:
    radial-gradient(ellipse 90% 70% at 50% 42%, rgba(255, 255, 255, 0.07), transparent 58%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(227, 28, 35, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 75%, rgba(34, 197, 94, 0.07), transparent 50%),
    linear-gradient(160deg, #1c1f28 0%, #0c0e14 100%);
}

.nav-portfolio .portfolio-item:hover .portfolio-media--soon,
.nav-portfolio .portfolio-item:focus-visible .portfolio-media--soon {
  background:
    radial-gradient(ellipse 90% 70% at 50% 40%, rgba(255, 255, 255, 0.1), transparent 58%),
    radial-gradient(ellipse 55% 45% at 25% 80%, rgba(227, 28, 35, 0.14), transparent 52%),
    radial-gradient(ellipse 55% 45% at 75% 75%, rgba(34, 197, 94, 0.12), transparent 52%),
    linear-gradient(160deg, #222632 0%, #10131a 100%);
}

.nav-portfolio .portfolio-logo-img {
  width: min(62%, 6.75rem);
  max-height: 62%;
  transform-origin: center center;
}

/* Logo: leicht rein → raus (Zoom out) – Origin Mitte */
@keyframes portfolio-logo-zoom-out {
  from {
    transform: translate3d(0, 0, 0) scale(1.12);
  }
  to {
    transform: translate3d(0, 0, 0) scale(0.97);
  }
}

/* Coming Soon / Nav: leicht klein → größer (Zoom in), dezent damit nichts clipped */
@keyframes portfolio-soon-zoom-in {
  from {
    transform: translate3d(0, 0, 0) scale(0.94);
  }
  to {
    transform: translate3d(0, 0, 0) scale(1.03);
  }
}

/* Nach Landung: weiches Soft-Light für echtere Glasoptik */
.portfolio-grid.is-landed .portfolio-item::before {
  mix-blend-mode: soft-light;
  opacity: 1;
}

.portfolio-grid.is-landed .portfolio-item .portfolio-glass-glint {
  mix-blend-mode: soft-light;
  opacity: 0.65;
}

.portfolio-item:nth-child(1) {
  --shine-dur: 2.1s;
}
.portfolio-item:nth-child(2) {
  --shine-dur: 1.55s;
}
.portfolio-item:nth-child(3) {
  --shine-dur: 2.4s;
}
.portfolio-item:nth-child(4) {
  --shine-dur: 1.7s;
}
.portfolio-item:nth-child(5) {
  --shine-dur: 2.25s;
}
.portfolio-item:nth-child(6) {
  --shine-dur: 1.9s;
}
.portfolio-item:nth-child(7) {
  --shine-dur: 2.05s;
}
.portfolio-item:nth-child(8) {
  --shine-dur: 2.1s;
}
.portfolio-item:nth-child(9) {
  --shine-dur: 1.75s;
}
.portfolio-item:nth-child(10) {
  --shine-dur: 2.2s;
}

/* Hover / Fokus: Button hebt sich an + Glasrand stärker */
.portfolio-grid.is-landed .portfolio-item:hover,
.portfolio-grid.is-landed .portfolio-item:focus-visible {
  z-index: 20;
  transform: translate3d(0, -10px, 0);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.38),
    0 0 0 3px rgba(255, 255, 255, 0.12),
    0 0 0 5px rgba(227, 28, 35, 0.12),
    /* tieferer Schatten = „schwebt“ */
    0 16px 32px rgba(0, 0, 0, 0.48),
    0 8px 14px rgba(0, 0, 0, 0.32),
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 5px 14px rgba(255, 255, 255, 0.12),
    inset 0 -3px 0 rgba(0, 0, 0, 0.38),
    inset 0 -8px 16px rgba(0, 0, 0, 0.28),
    inset 2px 0 0 rgba(255, 255, 255, 0.2),
    inset -2px 0 0 rgba(0, 0, 0, 0.2);
}

.portfolio-grid.is-landed .portfolio-item:hover::before,
.portfolio-grid.is-landed .portfolio-item:focus-visible::before {
  opacity: 1;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 2px 0 0 rgba(255, 255, 255, 0.38),
    inset 1px 0 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 0 rgba(0, 0, 0, 0.38),
    inset 0 -3px 10px rgba(0, 0, 0, 0.2),
    inset -2px 0 0 rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 0 0 3px rgba(255, 255, 255, 0.08),
    inset 0 12px 26px rgba(255, 255, 255, 0.1),
    inset 0 -12px 24px rgba(0, 0, 0, 0.2);
  background:
    radial-gradient(
      ellipse 75% 60% at 14% 10%,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(255, 255, 255, 0.14) 30%,
      transparent 58%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(255, 255, 255, 0.08) 10%,
      transparent 26%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(255, 255, 255, 0.1) 22%,
      transparent 44%,
      transparent 70%,
      rgba(255, 255, 255, 0.06) 100%
    ),
    linear-gradient(0deg, rgba(0, 0, 0, 0.14) 0%, transparent 30%);
}

.portfolio-grid.is-landed .portfolio-item:hover .portfolio-glass-glint,
.portfolio-grid.is-landed .portfolio-item:focus-visible .portfolio-glass-glint {
  opacity: 0.9;
}

/* Links: diagonales Licht füllt die Fläche · oben-links → unten-rechts */
@keyframes portfolio-shine-tl-br {
  from {
    transform: translate3d(-48%, -48%, 0);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  88% {
    opacity: 0.85;
  }
  to {
    transform: translate3d(48%, 48%, 0);
    opacity: 0;
  }
}

/* Rechts: seitenverkehrt · oben-rechts → unten-links */
@keyframes portfolio-shine-tr-bl {
  from {
    transform: translate3d(48%, -48%, 0);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  88% {
    opacity: 0.85;
  }
  to {
    transform: translate3d(-48%, 48%, 0);
    opacity: 0;
  }
}

.portfolio-item-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 2rem 0.85rem 0.65rem;
  background: linear-gradient(
    transparent,
    rgba(0, 0, 0, 0.55) 40%,
    rgba(0, 0, 0, 0.88)
  );
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  text-align: left;
  pointer-events: none;
}

.portfolio-item:hover .portfolio-item-label,
.portfolio-item:focus-visible .portfolio-item-label {
  opacity: 1;
  transform: none;
}



/* —— Top Momente + Liga Highlights: 5×2, alles komplett im Viewport —— */
.top-moments-grid.portfolio-grid {
  --tm-gap: 0.7rem;
  /* verfuegbare Hoehe unter Header/Rubrik – beide Reihen muessen rein */
  --tm-fit-h: calc(100svh - 13.5rem);
  width: min(100% - 2rem, var(--max));
  padding-inline: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--tm-gap);
  align-items: stretch;
  margin-inline: auto;
  /*
   * Kachelseite s = (fit-h - gap) / 2
   * Rasterbreite = 5s + 4*gap
   * → max-width begrenzt, damit 5×2 voll sichtbar bleibt
   */
  max-width: min(
    100% - 2rem,
    var(--max),
    calc((var(--tm-fit-h) - var(--tm-gap)) / 2 * 5 + 4 * var(--tm-gap))
  );
}

.top-moments-grid > :nth-child(n) {
  grid-area: auto;
  order: 0;
}

.top-moments-grid.portfolio-grid .portfolio-item {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-height: calc((var(--tm-fit-h) - var(--tm-gap)) / 2);
}

@media (max-width: 899px) {
  .top-moments-grid.portfolio-grid {
    --tm-fit-h: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100% - 2rem, var(--max));
    max-width: min(100% - 2rem, var(--max));
    gap: 0.65rem;
  }

  .top-moments-grid.portfolio-grid .portfolio-item {
    max-height: none;
  }
}

@media (max-width: 640px) {
  .top-moments-grid.portfolio-grid {
    width: min(100% - 1.5rem, var(--max));
    max-width: min(100% - 1.5rem, var(--max));
  }
}

/* Top Momente: jede Kachel in voller Größe, weitere Reihen scrollen mit der Seite.
   Liga Highlights behalten das 5×2-Viewport darüber. */
.top-moments-grid--fotos.portfolio-grid {
  max-width: none;
  width: 100%;
}

.top-moments-grid--fotos.portfolio-grid .portfolio-item {
  max-height: none;
  height: auto;
}

/* Bericht füllt die letzte Reihe: zwei Spalten breit, so hoch wie die Fotokacheln. */
@media (min-width: 900px) {
  .top-moments-grid--fotos.portfolio-grid .portfolio-item.is-pdf {
    grid-column: span 2;
    aspect-ratio: auto;
    align-self: stretch;
    height: auto;
  }

  .top-moments-grid--fotos.portfolio-grid .portfolio-item.is-pdf .top-moment-photo {
    object-position: center 20%;
  }
}

.highlights-rubric-wrap {
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
}

/* 06 Liga Highlights: Rubrik-Text links */
.rubric--highlights.rubric--left {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
  max-width: 40rem;
}

.rubric--highlights.rubric--left .rubric-meta {
  justify-content: flex-start;
  width: 100%;
}

.rubric--highlights.rubric--left .rubric-title,
.rubric--highlights.rubric--left .rubric-lead {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

.rubric--highlights.rubric--left .rubric-chips {
  justify-content: flex-start;
  margin-left: 0;
  margin-right: auto;
}

.highlights-shell {
  margin-top: 0.35rem;
}

/* Video in Highlights: quadratisch wie die anderen Kacheln */
.top-moments-grid--highlights .top-moment-video-tile {
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  height: auto !important;
}

@media (max-width: 640px) {
  .top-moments-grid.portfolio-grid {
    width: min(100% - 1.5rem, var(--max));
  }
}

.top-moments-grid.portfolio-grid .portfolio-item {
  aspect-ratio: 1 / 1;
}

.top-moments-grid .top-moment-video-tile {
  aspect-ratio: 1 / 1;
  min-height: 0;
  cursor: default;
  padding: 0;
  border: none;
  background: transparent;
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  z-index: 2;
  container-type: size;
  container-name: videatile;
}

.top-moment-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #030406;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 42px rgba(0, 0, 0, 0.55),
    inset 0 0 60px rgba(0, 0, 0, 0.35);
  isolation: isolate;
  display: grid;
  place-items: center;
}

/* Cinematic Letterbox */
.top-moment-video-wrap::before,
.top-moment-video-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  height: 9%;
  pointer-events: none;
  background: #000;
}

.top-moment-video-wrap::before {
  top: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.top-moment-video-wrap::after {
  bottom: 0;
  box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.45);
}

/* Vignette + leichter Filmton */
.top-moment-video-cinematic {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 70% at 50% 45%, transparent 35%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, transparent 28%, transparent 72%, rgba(0, 0, 0, 0.35) 100%);
  mix-blend-mode: multiply;
}

.top-moment-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  cursor: pointer;
  filter: blur(4.5px) brightness(0.62) saturate(0.75) contrast(1.08);
  transform: scale(1.04);
  transform-origin: center center;
  transition: none;
  animation: top-moment-cinema-drift 18s ease-in-out infinite alternate;
}

@keyframes top-moment-cinema-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-0.6%, 0.4%, 0);
  }
}

.top-moment-video-tile:hover .top-moment-video-poster,
.top-moment-video-tile:focus-within .top-moment-video-poster,
.top-moment-video-tile:active .top-moment-video-poster {
  filter: blur(4.5px) brightness(0.62) saturate(0.75) contrast(1.08);
}

/* Keine Portfolio-Hover-/Burst-Bewegung auf der Video-Kachel */
.top-moments-grid.is-landed .top-moment-video-tile:hover,
.top-moments-grid.is-landed .top-moment-video-tile:focus-visible,
.top-moments-grid.is-landed .top-moment-video-tile:active {
  transform: none !important;
  filter: none !important;
}

.top-moments-grid.is-landed .top-moment-video-tile:hover::before,
.top-moments-grid.is-landed .top-moment-video-tile:focus-visible::before,
.top-moments-grid.is-landed .top-moment-video-tile:hover::after,
.top-moments-grid.is-landed .top-moment-video-tile:focus-visible::after {
  opacity: 0 !important;
  transform: none !important;
  animation: none !important;
}

.top-moment-video-tile .portfolio-glass-glint {
  display: none !important;
}

/* Fotorealistischer Kronkorken-Button – PC & Handy gleiche Schwebebewegung */
.top-moment-video-combo.top-moment-kronkorken {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: min(57%, 10.15rem);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0; /* kein runder Clip → kein harter schwarzer Kreisrand */
  cursor: pointer;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: visible;
  /* nur weicher Schatten */
  filter:
    drop-shadow(0 16px 22px rgba(0, 0, 0, 0.3))
    drop-shadow(0 30px 44px rgba(0, 0, 0, 0.34));
  transition: filter 0.28s ease;
  animation: kronkorken-float 4.2s ease-in-out infinite;
}

.top-moment-kronkorken-img {
  display: block;
  width: 124%;
  height: 124%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.top-moment-video-combo.top-moment-kronkorken:hover,
.top-moment-video-combo.top-moment-kronkorken:focus-visible,
.top-moment-video-combo.top-moment-kronkorken:active,
.top-moment-video-combo.top-moment-kronkorken.is-touch-hot {
  animation-play-state: paused;
  transform: translate(-50%, -50%) scale(1.05) rotate(-4deg);
  filter:
    drop-shadow(0 16px 22px rgba(0, 0, 0, 0.3))
    drop-shadow(0 32px 48px rgba(0, 0, 0, 0.42));
  outline: none;
}

.top-moment-video-tile.is-playing .top-moment-video-combo,
.top-moment-video-tile.is-playing .top-moment-video-cinematic,
.top-moment-video-tile.is-playing .top-moment-video-wrap::before,
.top-moment-video-tile.is-playing .top-moment-video-wrap::after {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.top-moment-video-tile.is-playing .top-moment-video-wrap {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 14px 36px rgba(0, 0, 0, 0.5);
}

@keyframes kronkorken-float {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-2deg) translateY(0);
  }
  35% {
    transform: translate(-50%, -50%) rotate(2.5deg) translateY(-5px);
  }
  70% {
    transform: translate(-50%, -50%) rotate(-1.5deg) translateY(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-moment-video-poster {
    animation: none !important;
  }

  .top-moment-video-combo.top-moment-kronkorken {
    animation: none !important;
  }

  .top-moment-video-combo.top-moment-kronkorken:hover,
  .top-moment-video-combo.top-moment-kronkorken:focus-visible,
  .top-moment-video-combo.top-moment-kronkorken:active,
  .top-moment-video-combo.top-moment-kronkorken.is-touch-hot {
    transform: translate(-50%, -50%);
  }
}

.top-moment-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Ganzes Video sichtbar (kein Beschnitt) – auch in der Kachel */
  object-fit: contain;
  object-position: center center;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

.top-moment-video-tile.is-playing .top-moment-video-poster {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.top-moment-video-tile.is-playing .top-moment-video {
  opacity: 1;
  pointer-events: auto;
}

/* Native Vollbild: komplett sichtbar, kein Überzoomen */
.top-moment-video:fullscreen,
.top-moment-video:-webkit-full-screen {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #000 !important;
  opacity: 1 !important;
}

@media (min-width: 900px) {
  .top-moments-grid .top-moment-video-tile {
    aspect-ratio: auto;
    height: 100%;
  }

  .top-moments-grid .top-moment-video-wrap {
    position: absolute;
    inset: 0;
    min-height: 0;
    height: 100%;
  }
}

/* Handy: Wrap exakt = Kachel, Kronkorken mittig und etwas kompakter */
@media (max-width: 899px) {
  .top-moments-grid .top-moment-video-tile {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .top-moments-grid .top-moment-video-wrap {
    position: absolute;
    inset: 0;
    min-height: 0 !important;
    height: 100% !important;
    width: 100% !important;
  }

  .top-moment-video-combo.top-moment-kronkorken {
    width: min(62%, 7.5rem);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .top-moment-kronkorken-img {
    width: 112%;
    height: 112%;
    object-fit: contain;
    object-position: center;
  }

  .top-moment-video-poster {
    object-fit: cover;
    object-position: center center;
  }

  .top-moment-video {
    object-fit: contain;
    object-position: center center;
  }
}

/* Hover-Label unten aus – außer PDF-Kacheln (Titel immer sichtbar) */
.top-moments-grid .portfolio-item-label {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.top-moments-grid .top-moment-tile--photo.is-pdf .portfolio-item-label.is-always-on {
  display: block !important;
  opacity: 1 !important;
  pointer-events: none !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: 1.6rem 0.7rem 0.55rem;
  background: linear-gradient(
    transparent,
    rgba(0, 0, 0, 0.55) 35%,
    rgba(0, 0, 0, 0.88) 100%
  );
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  transform: none;
}

.top-moments-grid .top-moment-tile--photo.is-pdf::after {
  content: "PDF";
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 7;
  padding: 0.22em 0.5em;
  border-radius: 6px;
  background: linear-gradient(135deg, #e31c23, #a81218);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.top-moment-media {
  background:
    radial-gradient(ellipse 70% 65% at 50% 45%, rgba(227, 28, 35, 0.16), transparent 62%),
    radial-gradient(ellipse 55% 50% at 70% 70%, rgba(34, 197, 94, 0.1), transparent 55%),
    linear-gradient(160deg, #1a1b22 0%, #0c0d12 100%);
}

/* —— Foto-Kacheln: Dia-Rahmen inkl. Schimmer (frühere Optik) —— */
/* Ligafotos: Farbrand A rot · B grün · C gelb */
.top-moments-grid .top-moment-tile--photo.is-liga-a {
  box-shadow:
    0 0 0 2px rgba(214, 42, 48, 0.95),
    0 10px 28px rgba(0, 0, 0, 0.35);
}
.top-moments-grid .top-moment-tile--photo.is-liga-b {
  box-shadow:
    0 0 0 2px rgba(72, 176, 82, 0.95),
    0 10px 28px rgba(0, 0, 0, 0.35);
}
.top-moments-grid .top-moment-tile--photo.is-liga-c {
  box-shadow:
    0 0 0 2px rgba(236, 198, 52, 0.95),
    0 10px 28px rgba(0, 0, 0, 0.35);
}
.top-moments-grid.is-landed .top-moment-tile--photo.is-liga-a:hover,
.top-moments-grid.is-landed .top-moment-tile--photo.is-liga-a:focus-visible {
  box-shadow:
    0 0 0 3px rgba(214, 42, 48, 1),
    0 14px 34px rgba(214, 42, 48, 0.28);
}
.top-moments-grid.is-landed .top-moment-tile--photo.is-liga-b:hover,
.top-moments-grid.is-landed .top-moment-tile--photo.is-liga-b:focus-visible {
  box-shadow:
    0 0 0 3px rgba(72, 176, 82, 1),
    0 14px 34px rgba(72, 176, 82, 0.28);
}
.top-moments-grid.is-landed .top-moment-tile--photo.is-liga-c:hover,
.top-moments-grid.is-landed .top-moment-tile--photo.is-liga-c:focus-visible {
  box-shadow:
    0 0 0 3px rgba(236, 198, 52, 1),
    0 14px 34px rgba(236, 198, 52, 0.28);
}

.top-moments-grid .top-moment-tile--photo {
  padding: 0;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  background: #0a0b0e;
  isolation: isolate;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 0 3px rgba(12, 12, 14, 0.95),
    0 0 0 4px rgba(255, 255, 255, 0.1),
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(255, 255, 255, 0.04);
}

.top-moments-grid .top-moment-tile--photo .top-moment-media {
  position: absolute;
  inset: 6px; /* innen am inneren Doppelrahmen – deckt Foto-Fläche ab */
  z-index: 5; /* über dem Rahmen-Lauflicht → Effekt trifft das Foto nicht */
  border-radius: 3px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 65% at 50% 45%, rgba(227, 28, 35, 0.16), transparent 62%),
    radial-gradient(ellipse 55% 50% at 70% 70%, rgba(34, 197, 94, 0.1), transparent 55%),
    linear-gradient(160deg, #1a1b22 0%, #0c0d12 100%);
}

.top-moments-grid .top-moment-tile--photo .top-moment-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transform-origin: center center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

/* Platzhalter-Sticker: zentriert, nicht zugeschnitten */
.top-moments-grid .top-moment-tile--photo.is-sticker .top-moment-photo {
  object-fit: contain;
  width: min(72%, 7.5rem);
  height: auto;
  max-height: 72%;
  margin: auto;
  transform: scale(1);
  position: absolute;
  inset: 0;
}

/* Alte Dia-Overlays aus – Lauflicht sitzt nur im Frame-Kanal */
.top-moments-grid .top-moment-tile--photo::before,
.top-moments-grid .top-moment-tile--photo::after {
  content: none !important;
  display: none !important;
}

.top-moments-grid.is-landed .top-moment-tile--photo {
  animation: none !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.3),
    0 0 0 3px rgba(10, 10, 12, 0.98),
    0 0 0 4px rgba(255, 255, 255, 0.12),
    0 12px 30px rgba(0, 0, 0, 0.48),
    0 0 28px rgba(255, 255, 255, 0.05);
}

.top-moments-grid.is-landed .top-moment-tile--photo::before {
  mix-blend-mode: normal;
  opacity: 0.9;
}

.top-moments-grid.is-landed .top-moment-tile--photo:hover,
.top-moments-grid.is-landed .top-moment-tile--photo:focus-visible,
.top-moments-grid.is-landed .top-moment-tile--photo.is-touch-hot {
  transform: translateY(-3px) scale(1.015);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.42),
    0 0 0 3px rgba(10, 10, 12, 0.98),
    0 0 0 5px rgba(255, 255, 255, 0.16),
    0 16px 36px rgba(0, 0, 0, 0.55),
    0 0 36px rgba(255, 255, 255, 0.1);
}

.top-moments-grid.is-landed .top-moment-tile--photo:hover::after,
.top-moments-grid.is-landed .top-moment-tile--photo:focus-visible::after,
.top-moments-grid.is-landed .top-moment-tile--photo.is-touch-hot::after {
  opacity: 0.7;
  animation: none;
}

.top-moments-grid.is-landed .top-moment-tile--photo:hover .top-moment-photo,
.top-moments-grid.is-landed .top-moment-tile--photo:focus-visible .top-moment-photo,
.top-moments-grid.is-landed .top-moment-tile--photo.is-touch-hot .top-moment-photo {
  transform: scale(1.08);
  filter: brightness(1.05) contrast(1.04);
}

.top-moments-grid.is-landed .top-moment-tile--photo.is-sticker:hover .top-moment-photo,
.top-moments-grid.is-landed .top-moment-tile--photo.is-sticker:focus-visible .top-moment-photo,
.top-moments-grid.is-landed .top-moment-tile--photo.is-sticker.is-touch-hot .top-moment-photo {
  transform: scale(1.06);
  filter: brightness(1.06);
}

.top-moments-grid .top-moment-tile--photo .portfolio-glass-glint {
  display: none !important;
}

/*
 * Doppelrahmen + Rand-Lauflicht (Top Momente + Nav „Wohin soll’s gehen?“):
 * Nur Linien im Kanal – Inhalt (Foto/Text) liegt darüber.
 */
.top-moments-grid .top-moment-tile--photo .top-moment-frame,
.nav-portfolio .nav-portfolio-tile .top-moment-frame {
  position: absolute;
  inset: 0;
  z-index: 2; /* unter Media/Text */
  pointer-events: none;
  border-radius: inherit;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.32),
    inset 0 0 0 5px #0a0b0e,
    inset 0 0 0 6px rgba(255, 255, 255, 0.2);
}

.top-moments-grid .top-moment-tile--photo .top-moment-frame-sparkle,
.nav-portfolio .nav-portfolio-tile .top-moment-frame-sparkle {
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0.9;
  padding: 3px;
  clip-path: inset(0 round 8px);
  background: conic-gradient(
    from var(--rim-from, 200deg),
    transparent 0deg,
    var(--liga-a) 36deg,
    var(--liga-b) 78deg,
    var(--liga-c) 118deg,
    transparent 165deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: none;
}

.top-moments-grid.is-landed .top-moment-tile--photo .top-moment-frame-sparkle,
.top-moments-grid.is-in .top-moment-tile--photo .top-moment-frame-sparkle,
.nav-portfolio.is-landed .nav-portfolio-tile .top-moment-frame-sparkle,
.nav-portfolio.is-in .nav-portfolio-tile .top-moment-frame-sparkle {
  animation: top-moment-rim-run var(--rim-dur, 7.5s) linear infinite;
  animation-delay: calc(var(--photo-i, 0) * -0.85s);
}

@keyframes top-moment-rim-run {
  0% {
    transform: rotate(0deg);
    opacity: 0.5;
  }
  18% {
    opacity: 1;
  }
  55% {
    opacity: 0.7;
  }
  100% {
    transform: rotate(calc(var(--rim-dir, 1) * 360deg));
    opacity: 0.85;
  }
}

.top-moments-grid.is-fx-paused .top-moment-tile--photo .top-moment-frame-sparkle,
.top-moments-grid:not(.is-in):not(.is-landed) .top-moment-tile--photo .top-moment-frame-sparkle,
.nav-portfolio.is-fx-paused .nav-portfolio-tile .top-moment-frame-sparkle,
.nav-portfolio:not(.is-in):not(.is-landed) .nav-portfolio-tile .top-moment-frame-sparkle {
  animation: none !important;
  opacity: 0.3 !important;
}

@media (prefers-reduced-motion: reduce) {
  .top-moments-grid .top-moment-tile--photo .top-moment-frame-sparkle,
  .nav-portfolio .nav-portfolio-tile .top-moment-frame-sparkle {
    animation: none !important;
    opacity: 0.4 !important;
  }
}

@media (max-width: 899px) {
  /* Handy: kein Lauflicht mehr pro Kachel – ein gemeinsamer Shell-Rahmen */
  .top-moments-grid .top-moment-tile--photo .top-moment-frame-sparkle {
    display: none !important;
    animation: none !important;
  }

  .top-moments-grid .top-moment-tile--photo .top-moment-frame {
    /* ruhiger Doppelrahmen ohne Sparkle */
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.22),
      inset 0 0 0 4px #0a0b0e,
      inset 0 0 0 5px rgba(255, 255, 255, 0.12);
  }

  /* Handy Nav: kein Lauflicht pro Kachel */
  .nav-portfolio .nav-portfolio-tile .top-moment-frame-sparkle {
    display: none !important;
    animation: none !important;
  }

  .nav-portfolio .nav-portfolio-tile .top-moment-frame {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.22),
      inset 0 0 0 4px #0a0b0e,
      inset 0 0 0 5px rgba(255, 255, 255, 0.12);
  }
}

/* —— Gemeinsamer Shell-Rahmen (Top Momente + Nav), nur Handy —— */
.top-moments-shell,
.nav-portfolio-shell {
  position: relative;
  width: min(100% - 2rem, var(--max));
  max-width: none;
  margin-inline: auto;
}

.top-moments-shell .top-moments-grid.portfolio-grid,
.nav-portfolio-shell .nav-portfolio.portfolio-grid {
  width: 100%;
}

.top-moments-shell-frame,
.nav-portfolio-shell-frame {
  display: none;
  pointer-events: none;
}

@media (max-width: 899px) {
  .top-moments-shell,
  .nav-portfolio-shell {
    width: min(100% - 1.5rem, var(--max));
    padding: 0.45rem;
    border-radius: 16px;
  }

  .top-moments-shell-frame,
  .nav-portfolio-shell-frame {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 16px;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.4),
      inset 0 0 0 6px #0a0b0e,
      inset 0 0 0 8px rgba(255, 255, 255, 0.22),
      0 0 18px rgba(245, 197, 24, 0.12),
      0 0 28px rgba(227, 28, 35, 0.1);
  }

  .top-moments-shell-sparkle,
  .nav-portfolio-shell-sparkle {
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    box-sizing: border-box;
    padding: 4px;
    clip-path: inset(0 round 14px);
    -webkit-mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    filter: saturate(1.25) brightness(1.15);
  }

  .top-moments-shell-sparkle--a,
  .nav-portfolio-shell-sparkle--a {
    opacity: 1;
    background: conic-gradient(
      from 200deg,
      transparent 0deg,
      var(--liga-a) 28deg,
      #fff6a8 48deg,
      var(--liga-b) 72deg,
      var(--liga-c) 110deg,
      transparent 155deg,
      transparent 360deg
    );
    animation: top-moment-rim-run 7.2s linear infinite;
  }

  .top-moments-shell-sparkle--b,
  .nav-portfolio-shell-sparkle--b {
    opacity: 0.95;
    background: conic-gradient(
      from 20deg,
      transparent 0deg,
      var(--liga-c) 30deg,
      #ffe566 52deg,
      var(--liga-a) 78deg,
      var(--liga-b) 115deg,
      transparent 160deg,
      transparent 360deg
    );
    animation: top-moment-rim-run-rev 9.4s linear infinite;
  }

  @keyframes top-moment-rim-run-rev {
    0% {
      transform: rotate(0deg);
      opacity: 0.55;
    }
    20% {
      opacity: 1;
    }
    100% {
      transform: rotate(-360deg);
      opacity: 0.85;
    }
  }

  .top-moments-shell:has(.top-moments-grid.is-fx-paused) .top-moments-shell-sparkle,
  .nav-portfolio-shell:has(.nav-portfolio.is-fx-paused) .nav-portfolio-shell-sparkle {
    animation-play-state: paused !important;
    opacity: 0.35 !important;
    filter: none !important;
  }

  .top-moments-shell .top-moments-grid,
  .nav-portfolio-shell .nav-portfolio {
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  .top-moments-shell-sparkle,
  .nav-portfolio-shell-sparkle {
    animation: none !important;
    opacity: 0.4 !important;
  }
}

/* Nav-Kacheln: Inhalt innerhalb des Doppelrahmens, Glas-Bevel aus;
   Klicks müssen immer durchkommen (Rahmen/Overlays sind dekorativ). */
.nav-portfolio .nav-portfolio-tile {
  overflow: hidden;
  pointer-events: auto !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-portfolio .nav-portfolio-tile .portfolio-media,
.nav-portfolio .nav-portfolio-tile .portfolio-soon-text,
.nav-portfolio .nav-portfolio-tile .portfolio-nav-stack,
.nav-portfolio .nav-portfolio-tile .portfolio-nav-badge,
.nav-portfolio .nav-portfolio-tile .portfolio-nav-title,
.nav-portfolio .nav-portfolio-tile .portfolio-nav-line,
.nav-portfolio .nav-portfolio-tile .portfolio-nav-sub,
.nav-portfolio .nav-portfolio-tile .portfolio-nav-bar {
  pointer-events: none;
}

.nav-portfolio .nav-portfolio-tile .portfolio-media {
  position: absolute;
  inset: 5px;
  z-index: 5;
  border-radius: 4px;
  width: auto;
  height: auto;
  /* etwas mehr Platz für lange Titel */
  padding-inline: 0.15rem;
  box-sizing: border-box;
}

.nav-portfolio .nav-portfolio-tile .portfolio-nav-title {
  font-size: clamp(0.7rem, 10.2cqi, 1.12rem);
}

.nav-portfolio .nav-portfolio-tile .portfolio-nav-line--long {
  font-size: 0.7em;
  letter-spacing: -0.045em;
}

.nav-portfolio .nav-portfolio-tile .portfolio-glass-glint {
  display: none !important;
}

.nav-portfolio .nav-portfolio-tile::before,
.nav-portfolio .nav-portfolio-tile::after,
.nav-portfolio.is-landed .nav-portfolio-tile::before,
.nav-portfolio.is-landed .nav-portfolio-tile::after,
.nav-portfolio.is-in .nav-portfolio-tile::before,
.nav-portfolio.is-in .nav-portfolio-tile::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
  animation: none !important;
}

/* Nav: gleicher Dia-/Schimmer-Rahmen wie Top Momente */
.nav-portfolio .nav-portfolio-tile {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 0 3px rgba(12, 12, 14, 0.95),
    0 0 0 4px rgba(255, 255, 255, 0.1),
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(255, 255, 255, 0.04);
}

.nav-portfolio.is-landed .nav-portfolio-tile {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.3),
    0 0 0 3px rgba(10, 10, 12, 0.98),
    0 0 0 4px rgba(255, 255, 255, 0.12),
    0 12px 30px rgba(0, 0, 0, 0.48),
    0 0 28px rgba(255, 255, 255, 0.05);
}

/* Top Momente: keine versteckte Vorstufe – sofort sichtbar */
.top-moments-grid:not(.is-in):not(.is-landed) .top-moment-tile--photo,
.top-moments-grid:not(.is-in):not(.is-landed) .top-moment-video-tile,
.top-moments-grid .top-moment-tile--photo,
.top-moments-grid .top-moment-video-tile {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
}

/* Handy-Vorzustand: unsichtbar bis Cascade startet (siehe Block unten) */

/* PC: längere Show – Video+Rot zuerst, dann langsame Foto-Fades, Finale Grün/Gelb */
@media (min-width: 900px) {
  .top-moments-grid.is-show-epic {
    perspective: 1400px;
    perspective-origin: 50% 45%;
  }

  .top-moments-grid.is-show-epic .top-moment-tile--photo,
  .top-moments-grid.is-show-epic .top-moment-video-tile {
    transform-style: preserve-3d;
    will-change: transform, opacity, filter;
  }

  .top-moments-grid.portfolio-grid.is-show-epic.is-in .top-moment-video-tile,
  .top-moments-grid.portfolio-grid.is-show-epic.is-in .top-moment-tile--photo {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .top-moments-grid.portfolio-grid.is-show-epic.is-in .top-moment-video-tile .top-moment-video-wrap {
    animation: none !important;
  }

}

/* Handy: Cascade nur für Foto-Kacheln – Video immer sichtbar */
@media (max-width: 899px) {
  .top-moments-grid .top-moment-video-tile,
  .top-moments-grid:not(.is-in):not(.is-landed) .top-moment-video-tile,
  .top-moments-grid.portfolio-grid.is-in .top-moment-video-tile,
  .top-moments-grid.is-landed .top-moment-video-tile {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .top-moments-grid.portfolio-grid.is-in .top-moment-tile--photo,
  .top-moments-grid.is-landed .top-moment-tile--photo {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}

.top-moments-grid.portfolio-grid.is-in .top-moment-tile--photo::after,
.top-moments-grid.portfolio-grid.is-landed .top-moment-tile--photo::after {
  animation: none !important;
  transform: none !important;
}

.top-moments-grid.portfolio-grid.is-in .top-moment-video-tile::after,
.top-moments-grid.portfolio-grid.is-landed .top-moment-video-tile::after {
  content: none !important;
  display: none !important;
}

.top-moments-grid.is-landed .top-moment-video-tile {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  animation: none !important;
}

.top-moments-grid.is-landed .top-moment-video-tile .top-moment-video-wrap {
  animation: none !important;
}

.top-moments-grid.is-landed .top-moment-tile--photo .portfolio-glass-glint {
  animation: none;
}

@keyframes top-moment-mobile-in {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes top-moment-video-epic {
  0% {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.94);
    filter: blur(5px) brightness(0.55);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0) brightness(1);
  }
}

/* Roter Lichtschein getrennt vom Bewegungs-Tween → wirkt stark, aber nicht ruckelig */
@keyframes top-moment-video-wrap-bloom {
  0% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.06),
      0 0 0 0 rgba(227, 28, 35, 0),
      0 0 0 rgba(227, 28, 35, 0),
      0 14px 36px rgba(0, 0, 0, 0.5);
  }
  28% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.2),
      0 0 0 1px rgba(227, 28, 35, 0.4),
      0 0 36px rgba(227, 28, 35, 0.32),
      0 0 60px rgba(227, 28, 35, 0.16),
      0 16px 40px rgba(0, 0, 0, 0.55);
  }
  52% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.4),
      0 0 0 2px rgba(227, 28, 35, 0.7),
      0 0 56px rgba(227, 28, 35, 0.5),
      0 0 96px rgba(227, 28, 35, 0.28),
      0 0 120px rgba(255, 255, 255, 0.08),
      0 20px 48px rgba(0, 0, 0, 0.6);
  }
  78% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.28),
      0 0 0 2px rgba(227, 28, 35, 0.45),
      0 0 42px rgba(227, 28, 35, 0.34),
      0 0 70px rgba(227, 28, 35, 0.18),
      0 18px 44px rgba(0, 0, 0, 0.56);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.18),
      0 0 0 1px rgba(227, 28, 35, 0.25),
      0 0 32px rgba(227, 28, 35, 0.18),
      0 18px 42px rgba(0, 0, 0, 0.55),
      inset 0 0 60px rgba(0, 0, 0, 0.35);
  }
}

/* Kurzes Finale: Grün (B) → Gelb (C) nur kurz aufblinken */
@keyframes top-moment-liga-flash {
  0% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.18),
      0 0 0 1px rgba(227, 28, 35, 0.25),
      0 0 32px rgba(227, 28, 35, 0.18),
      0 18px 42px rgba(0, 0, 0, 0.55);
  }
  18% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.5),
      0 0 0 3px rgba(34, 197, 94, 0.85),
      0 0 56px rgba(34, 197, 94, 0.6),
      0 0 90px rgba(34, 197, 94, 0.35),
      0 18px 42px rgba(0, 0, 0, 0.55);
  }
  36% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.22),
      0 0 0 1px rgba(34, 197, 94, 0.2),
      0 0 28px rgba(34, 197, 94, 0.12),
      0 18px 42px rgba(0, 0, 0, 0.55);
  }
  54% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.55),
      0 0 0 3px rgba(245, 197, 24, 0.9),
      0 0 58px rgba(245, 197, 24, 0.62),
      0 0 94px rgba(245, 197, 24, 0.36),
      0 18px 42px rgba(0, 0, 0, 0.55);
  }
  72% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.25),
      0 0 0 1px rgba(245, 197, 24, 0.22),
      0 0 28px rgba(245, 197, 24, 0.12),
      0 18px 42px rgba(0, 0, 0, 0.55);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.18),
      0 0 0 1px rgba(227, 28, 35, 0.25),
      0 0 32px rgba(227, 28, 35, 0.18),
      0 18px 42px rgba(0, 0, 0, 0.55),
      inset 0 0 60px rgba(0, 0, 0, 0.35);
  }
}

/* Langsames, weiches Einblenden – kein Plop */
@keyframes top-moment-photo-soft {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.97);
    filter: blur(5px) brightness(0.7);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: none;
  }
}

@keyframes top-moment-dia-glint {
  0% {
    opacity: 0;
    background-position: -40% 40%;
  }
  35% {
    opacity: 0.75;
  }
  100% {
    opacity: 0.25;
    background-position: 140% -40%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-moments-grid:not(.is-in):not(.is-landed) .top-moment-tile--photo,
  .top-moments-grid:not(.is-in):not(.is-landed) .top-moment-video-tile,
  .top-moments-grid.is-in .top-moment-tile--photo,
  .top-moments-grid.is-in .top-moment-video-tile,
  .top-moments-grid.is-in .top-moment-video-tile .top-moment-video-wrap {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}

/* Lightbox am <body>: true viewport overlay, Inhalt optisch zentriert */
.gallery-viewer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 300;
  display: grid;
  place-items: center;
  padding:
    max(0.85rem, env(safe-area-inset-top, 0px))
    max(0.85rem, env(safe-area-inset-right, 0px))
    max(0.85rem, env(safe-area-inset-bottom, 0px))
    max(0.85rem, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  overflow: auto;
  overscroll-behavior: contain;
}

.gallery-viewer[hidden] {
  display: none !important;
}

.gallery-viewer-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(6, 8, 12, 0.72);
  backdrop-filter: blur(18px) saturate(0.8);
  -webkit-backdrop-filter: blur(18px) saturate(0.8);
}

.gallery-viewer-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 1.5rem;
  width: auto;
  max-width: min(96vw, 1100px);
  max-height: calc(100dvh - 1.7rem);
  margin: 0;
  box-sizing: border-box;
}

.gallery-viewer-stage {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 1:1, mittig, vollständig sichtbar */
  width: min(68vmin, 640px);
  height: min(68vmin, 640px);
  max-width: min(calc(100vw - 14rem), 640px);
  max-height: min(calc(100dvh - 3rem), 640px);
  background: rgba(0, 0, 0, 0.45);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  box-sizing: border-box;
  padding: 0.5rem;
}

.gallery-viewer-img,
.gallery-viewer-video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  margin: auto;
  background: #000;
  animation: gallery-fade-in 0.35s ease both;
}

.gallery-viewer-img {
  background: transparent;
}

.gallery-viewer-video {
  border: none;
  outline: none;
}

/* Wichtig: [hidden] darf nicht durch display:block überschrieben werden */
.gallery-viewer-img[hidden],
.gallery-viewer-video[hidden],
.gallery-viewer-audio[hidden] {
  display: none !important;
}

.gallery-viewer-audio {
  display: block;
  width: min(100%, 28rem);
  margin: 0.75rem auto 0;
  accent-color: #e4c24a;
}

/* Audio-Lightbox: Cover + Player */
.gallery-viewer.is-audio .gallery-viewer-panel {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.85rem;
  width: min(92vw, 520px);
  max-width: min(92vw, 520px);
}

.gallery-viewer.is-audio .gallery-viewer-stage {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  max-height: min(58dvh, 28rem);
  padding: 0.4rem;
  background: #0a0b0e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-viewer.is-audio .gallery-viewer-img {
  width: 100%;
  height: auto;
  max-height: calc(100% - 3.2rem);
  object-fit: contain;
}

.gallery-viewer.is-audio .gallery-viewer-audio {
  width: calc(100% - 1rem);
  margin: 0.55rem 0.5rem 0.35rem;
}

.gallery-viewer.is-audio .gallery-viewer-side {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.gallery-viewer.is-audio .gallery-viewer-caption {
  flex: 1 1 auto;
  text-align: left;
  min-width: 8rem;
}

.gallery-viewer.is-audio .gallery-viewer-actions {
  flex-direction: row;
  flex: 0 0 auto;
  gap: 0.55rem;
}

/* Video-Lightbox: Kino-Layout – großes Video, Leiste darunter */
.gallery-viewer.is-video .gallery-viewer-panel {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.85rem;
  width: min(94vw, 1080px);
  max-width: min(94vw, 1080px);
}

.gallery-viewer.is-video .gallery-viewer-stage {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  max-height: min(72dvh, calc(100dvh - 9rem));
  padding: 0;
  background: #000;
}

.gallery-viewer.is-video .gallery-viewer-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.gallery-viewer.is-video .gallery-viewer-side {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.gallery-viewer.is-video .gallery-viewer-caption {
  flex: 1 1 auto;
  text-align: left;
  min-width: 8rem;
}

.gallery-viewer.is-video .gallery-viewer-actions {
  flex-direction: row;
  flex: 0 0 auto;
  gap: 0.55rem;
}

.gallery-viewer.is-video .gallery-download,
.gallery-viewer.is-video .gallery-viewer-close-btn {
  min-width: 7.5rem;
}

.gallery-viewer-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  min-width: 10.5rem;
  max-width: 14rem;
}

.gallery-viewer-caption {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
  line-height: 1.35;
}

.gallery-viewer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.gallery-register,
.gallery-download,
.gallery-viewer-close-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.gallery-register[hidden] {
  display: none !important;
}

.gallery-register {
  color: #0a0b0e;
  background: linear-gradient(180deg, #ffe566 0%, #f5c518 55%, #d4a40f 100%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 4px 18px rgba(245, 197, 24, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.gallery-register-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.gallery-register:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    0 6px 22px rgba(245, 197, 24, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.gallery-register:hover .gallery-register-arrow {
  transform: translateX(3px);
}

.gallery-download {
  color: #0a0b0e;
  background: linear-gradient(180deg, #7dffb0 0%, #22c55e 100%);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.gallery-download:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.gallery-viewer-close-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.gallery-viewer-close-btn:hover {
  background: rgba(227, 28, 35, 0.85);
  border-color: rgba(255, 120, 120, 0.45);
}

.gallery-viewer-close--x {
  position: absolute;
  top: max(0.85rem, env(safe-area-inset-top, 0px));
  right: max(0.85rem, env(safe-area-inset-right, 0px));
  z-index: 2;
  appearance: none;
  border: none;
  background: rgba(10, 12, 16, 0.8);
  color: rgba(255, 255, 255, 0.9);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: color 0.15s, background 0.15s;
}

.gallery-viewer-close--x:hover {
  color: #fff;
  background: rgba(227, 28, 35, 0.9);
}

@keyframes gallery-fade-in {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scroll sperren – Overlay deckt Header mit ab */
body.gallery-open {
  overflow: hidden;
}

body.gallery-open .site-header {
  /* unter dem Viewer (z-index 300) – kein Durchscheinen nötig */
  pointer-events: none;
}

@media (max-width: 720px) {
  .gallery-viewer {
    place-items: center;
    padding:
      max(0.65rem, env(safe-area-inset-top, 0px))
      max(0.65rem, env(safe-area-inset-right, 0px))
      max(0.85rem, env(safe-area-inset-bottom, 0px))
      max(0.65rem, env(safe-area-inset-left, 0px));
  }

  .gallery-viewer-panel {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: min(92vw, 420px);
    max-height: calc(100dvh - 1.5rem);
    margin: 0;
  }

  .gallery-viewer-stage {
    width: min(86vw, 52dvh, 380px);
    height: min(86vw, 52dvh, 380px);
    max-width: 100%;
    max-height: min(52dvh, calc(100dvh - 10rem));
    margin-inline: auto;
    padding: 0.35rem;
  }

  .gallery-viewer.is-video .gallery-viewer-panel {
    max-width: min(96vw, 640px);
    width: min(96vw, 640px);
  }

  .gallery-viewer.is-video .gallery-viewer-stage {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    max-height: min(48dvh, calc(100dvh - 11rem));
    margin-inline: 0;
    padding: 0;
  }

  .gallery-viewer.is-video .gallery-viewer-side {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .gallery-viewer.is-video .gallery-viewer-caption {
    text-align: center;
  }

  .gallery-viewer.is-video .gallery-viewer-actions {
    flex-direction: row;
    width: 100%;
  }

  .gallery-viewer-side {
    width: 100%;
    max-width: 100%;
    align-items: stretch;
    flex-shrink: 0;
  }

  .gallery-viewer-caption {
    text-align: center;
  }

  .gallery-viewer-actions {
    flex-direction: row;
  }

  .gallery-register,
  .gallery-download,
  .gallery-viewer-close-btn {
    flex: 1 1 0;
  }

  .gallery-viewer-actions:has(.gallery-register:not([hidden])) {
    flex-wrap: wrap;
  }

  .gallery-viewer-actions:has(.gallery-register:not([hidden])) .gallery-register {
    flex: 1 1 100%;
  }

  .gallery-viewer-close--x {
    position: absolute;
    top: max(0.55rem, env(safe-area-inset-top, 0px));
    right: max(0.55rem, env(safe-area-inset-right, 0px));
    z-index: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-moments-grid.is-in .portfolio-item .top-moment-logo--in,
  .top-moments-grid.is-in .portfolio-item .top-moment-logo--out,
  .top-moments-grid.is-landed .portfolio-item .top-moment-logo--in,
  .top-moments-grid.is-landed .portfolio-item .top-moment-logo--out {
    animation: none !important;
    transform: scale(1) !important;
  }

  .gallery-viewer-img {
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-logo-img,
  .portfolio-soon-text {
    animation: none !important;
    transform: none !important;
    will-change: auto;
  }
  .portfolio-item:hover::after,
  .portfolio-item:focus-visible::after {
    animation: none;
    opacity: 0;
  }
  .portfolio-item,
  .portfolio-grid.is-in .portfolio-item {
    animation: none !important;
    opacity: 1;
    transform: none;
    filter: none !important;
    will-change: auto;
  }
  .portfolio-grid.is-in .portfolio-item::after,
  .portfolio-grid.is-in .portfolio-item .portfolio-soon-text,
  .portfolio-grid.is-in .portfolio-item .portfolio-logo-img {
    animation: none !important;
  }
  .reveal-on-scroll.is-revealed .portfolio-item {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ========== REGELN ========== */
.regeln-section {
  padding: 3.5rem 0;
}

.regeln-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: stretch;
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 50% 80% at 0% 50%, var(--liga-a-soft), transparent 60%),
    var(--bg-card);
  box-shadow: none;
}

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

.regeln-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  min-height: 120px;
}

.regeln-icon {
  font-size: 2.5rem;
}

.regeln-body h2 {
  margin: 0 0 0.4rem;
  font-size: 1.75rem;
}

.regeln-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.1rem 0 0;
}

.regeln-detail {
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.regeln-detail[hidden] {
  display: none;
}

.regeln-detail ul {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
  color: #c5ccd6;
}

.regeln-detail li {
  margin-bottom: 0.4rem;
}

/* ========== PINNWAND-EINSTIEG (Wow, nur Community) ========== */
.section-bridge {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: var(--space-band) 1.25rem;
  margin: 0;
  background:
    radial-gradient(ellipse 55% 80% at 50% 0%, rgba(227, 28, 35, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 60% at 15% 70%, rgba(34, 197, 94, 0.09), transparent 50%),
    radial-gradient(ellipse 40% 60% at 85% 65%, rgba(245, 197, 24, 0.09), transparent 50%),
    linear-gradient(180deg, #0a0b0e 0%, #10131a 55%, #0c0e14 100%);
}

.section-bridge--pinnwand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3rem;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(0deg, #0a0b0e, transparent);
}

.bridge-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 18%, transparent 75%);
  opacity: 0.45;
}

.bridge-core {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  width: min(100%, 28rem);
  opacity: 0;
  transform: translateY(18px) scale(0.94);
}

/* Kontakt-Buttons unter dem Hero (zusätzlich zur Community-Zeile) */
.hero-contact {
  padding-block: 0.85rem 1.15rem;
  display: flex;
  justify-content: center;
}

.hero-contact .bridge-actions--hero {
  width: min(100%, 36rem);
  margin-top: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Kontakt-Buttons unter #pinnwand – zentriert, gleiche Breite */
.bridge-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  width: min(100%, 28rem);
  margin-top: 0.75rem;
}

.bridge-core .bridge-sub {
  margin-top: 0.55rem;
}

/* Gemeinsamer Glow-Takt für ALLE Kontakt-Buttons (Hero + Footer).
   Eine Variable am :root → keine Phasenverschiebung mehr zwischen den Buttons. */
@property --liga-contact-glow {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@keyframes liga-contact-glow-pulse {
  0%,
  100% {
    --liga-contact-glow: 0;
  }
  50% {
    --liga-contact-glow: 1;
  }
}

:root {
  animation: liga-contact-glow-pulse 2.4s ease-in-out infinite;
}

.bridge-action-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  text-decoration: none;
  text-align: left;
  color: #f2f5fa;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid
    rgba(255, 255, 255, calc(0.14 + 0.41 * var(--liga-contact-glow)));
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.18),
    0 0 0 calc(var(--liga-contact-glow) * 1px) rgba(255, 255, 255, calc(0.22 * var(--liga-contact-glow))),
    0 0 calc(var(--liga-contact-glow) * 14px) rgba(255, 255, 255, calc(0.35 * var(--liga-contact-glow))),
    0 0 calc(var(--liga-contact-glow) * 28px) rgba(255, 255, 255, calc(0.12 * var(--liga-contact-glow))),
    0 0 0 calc(var(--liga-contact-glow) * 1px) rgba(255, 255, 255, calc(0.08 * var(--liga-contact-glow))) inset;
  /* Nur Hintergrund/Transform transitionen – Glow kommt aus der Root-Variable */
  transition:
    background 0.25s ease,
    transform 0.2s ease,
    filter 0.2s ease;
}

.bridge-action-btn:hover,
.bridge-action-btn:focus-visible,
.bridge-action-btn:active,
.bridge-action-btn.is-touch-hot {
  outline: none;
  transform: translateY(-2px);
  /* Lokaler Override: dieser Button pausiert den Glow, die anderen laufen weiter im Takt */
  --liga-contact-glow: 0;
}

/* Farbwechsel innen – kein Glow außerhalb des Rahmens */
.bridge-action-btn--wa:hover,
.bridge-action-btn--wa:focus-visible,
.bridge-action-btn--wa:active,
.bridge-action-btn--wa.is-touch-hot {
  background: rgba(37, 211, 102, 0.16);
  border-color: rgba(37, 211, 102, 0.55);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(37, 211, 102, 0.2);
}

.bridge-action-btn--paypal:hover,
.bridge-action-btn--paypal:focus-visible,
.bridge-action-btn--paypal:active,
.bridge-action-btn--paypal.is-touch-hot {
  background: rgba(0, 48, 135, 0.32);
  border-color: rgba(0, 112, 186, 0.55);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(0, 112, 186, 0.22);
}

.bridge-action-btn--mail:hover,
.bridge-action-btn--mail:focus-visible,
.bridge-action-btn--mail:active,
.bridge-action-btn--mail.is-touch-hot {
  background: rgba(227, 28, 35, 0.16);
  border-color: rgba(227, 28, 35, 0.55);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(227, 28, 35, 0.22);
}

.bridge-action-btn--merch:hover,
.bridge-action-btn--merch:focus-visible,
.bridge-action-btn--merch:active,
.bridge-action-btn--merch.is-touch-hot {
  background: color-mix(in srgb, var(--liga-c) 18%, transparent);
  border-color: color-mix(in srgb, var(--liga-c) 60%, transparent);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px color-mix(in srgb, var(--liga-c) 28%, transparent);
}

button.bridge-action-btn {
  font: inherit;
  cursor: pointer;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    animation: none;
    --liga-contact-glow: 0.35;
  }
}

.bridge-action-icon {
  flex-shrink: 0;
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
}

.bridge-action-icon--mail {
  background: var(--liga-a);
  box-shadow: 0 2px 8px rgba(227, 28, 35, 0.35);
}

/* Nach Basis-Icon, sonst überschreibt Grün das Ligagelb */
.bridge-action-icon.bridge-action-icon--merch {
  background: linear-gradient(165deg, #ffe066 0%, var(--liga-c) 42%, #d4a40f 100%);
  color: #1a1400;
  box-shadow: 0 2px 8px var(--liga-c-glow);
}

.bridge-action-icon svg {
  display: block;
}

.bridge-action-mark {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.02em;
  color: #fff;
  background: #003087;
  padding: 0.4rem 0.5rem;
  border-radius: 7px;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.bridge-action-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.2;
}

.bridge-action-copy strong {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #f5f7fb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bridge-action-copy em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(200, 210, 224, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 560px) {
  .bridge-actions {
    grid-template-columns: 1fr;
    width: min(100%, 16.5rem);
  }

  .hero-contact {
    padding-block: 0.65rem 0.95rem;
  }

  .hero-contact .bridge-actions--hero {
    width: min(100%, 18rem);
  }
}

/* Rundes Logo = Zentrum der Drehung (Wash + Ringe) */
.bridge-logo-hub {
  position: relative;
  width: 4.25rem;
  height: 4.25rem;
  margin-bottom: 0.45rem;
  display: grid;
  place-items: center;
  z-index: 1;
}

.bridge-logo-hub .bridge-wash {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(140vw, 920px);
  height: min(140vw, 920px);
  margin: 0;
  z-index: 0;
  pointer-events: none;
  background: conic-gradient(
    from 210deg at 50% 50%,
    transparent 0deg,
    rgba(227, 28, 35, 0.1) 60deg,
    transparent 120deg,
    rgba(34, 197, 94, 0.1) 180deg,
    transparent 240deg,
    rgba(245, 197, 24, 0.1) 300deg,
    transparent 360deg
  );
  opacity: 0.6;
  transform: translate(-50%, -50%);
  animation: bridge-wash-spin 18s linear infinite;
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, #000 12%, transparent 58%);
  mask-image: radial-gradient(circle at center, #000 0%, #000 12%, transparent 58%);
}

.bridge-core-face {
  position: relative;
  z-index: 2;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(160deg, #1c202a, #0c0e13);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.04),
    0 12px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.bridge-core-face img {
  width: 2.35rem;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.bridge-core-shine {
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.35) 48%,
    rgba(255, 255, 255, 0.08) 52%,
    transparent 65%
  );
  transform: translateX(-80%) rotate(12deg);
  animation: bridge-core-shine 3.6s cubic-bezier(0.33, 0.1, 0.2, 1) infinite;
  z-index: 2;
}

.bridge-core-ring,
.bridge-core-ring--delay {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5.5rem;
  height: 5.5rem;
  margin-left: -2.75rem;
  margin-top: -2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}

.bridge-core-ring {
  box-shadow: 0 0 0 0 rgba(227, 28, 35, 0.25);
}

.bridge-kicker {
  margin: 0.1rem 0 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.bridge-title {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.bridge-title-to {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  background: linear-gradient(105deg, #fff 0%, #f5c518 40%, #e31c23 85%, #22c55e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bridge-sub {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 22rem;
}


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

/* Reveal: parent .community-section.is-revealed (Bridge sitzt in der Sektion) */
.community-section.is-revealed .bridge-core,
.section-bridge.is-revealed .bridge-core {
  animation: bridge-core-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.community-section.is-revealed .bridge-core-ring,
.section-bridge.is-revealed .bridge-core-ring {
  animation: bridge-ring-pulse 2.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s infinite;
}

.community-section.is-revealed .bridge-core-ring--delay,
.section-bridge.is-revealed .bridge-core-ring--delay {
  animation: bridge-ring-pulse 2.8s cubic-bezier(0.22, 1, 0.36, 1) 1.3s infinite;
}


@keyframes bridge-wash-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes bridge-core-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bridge-ring-pulse {
  0% {
    opacity: 0.65;
    transform: scale(0.72);
  }
  70% {
    opacity: 0;
    transform: scale(1.35);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

@keyframes bridge-core-shine {
  0%,
  40% {
    transform: translateX(-90%) rotate(12deg);
  }
  70%,
  100% {
    transform: translateX(90%) rotate(12deg);
  }
}

@keyframes bridge-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bridge-wash,
  .bridge-core-shine,
  .community-section.is-revealed .bridge-core,
  .community-section.is-revealed .bridge-core-ring,
  .community-section.is-revealed .bridge-core-ring--delay,
  .bridge-wash,
  .hero-ribbon--a,
  .hero-ribbon--b,
  .hero-ribbon--c,
  .hero-spotlight,
  .hero-venue,
  .hero-venue.is-active,
  .hero-stamp-liga,
  .hero-stamp-liga--a,
  .hero-stamp-liga--b,
  .hero-stamp-liga--c,
  .bridge-core-shine {
    animation: none !important;
  }

  .hero-ribbon--a,
  .hero-ribbon--b,
  .hero-ribbon--c {
    opacity: 0.7;
    transform: none;
  }

  .hero-spotlight {
    opacity: 0.7;
    transform: none;
  }

  .hero-venue,
  .hero-venue.is-enter,
  .hero-venue.is-active,
  .hero-venue.is-exit,
  .hero-venue-text,
  .hero-venue-echo,
  .hero-venue-char {
    animation: none !important;
    transition: none !important;
  }

  .hero-venue.is-active {
    visibility: visible;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .hero-venue.is-active .hero-venue-text {
    color: rgba(255, 255, 255, 0.9);
    text-shadow:
      0 0 10px rgba(255, 255, 255, 0.45),
      0 0 20px rgba(255, 255, 255, 0.25);
  }

  .hero-venue.is-active .hero-venue-echo--1 {
    opacity: 0.4;
  }

  .hero-venue.is-active .hero-venue-echo--2 {
    opacity: 0.22;
  }

  .hero-stamp-liga {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .section-bridge .bridge-core {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .bridge-logo-hub .bridge-wash {
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 560px) {
  .section-bridge {
    min-height: 0;
    padding: var(--space-band) 1rem;
  }

  .bridge-core-face {
    width: 3.6rem;
    height: 3.6rem;
  }

  .bridge-core-face img {
    width: 2rem;
  }
}

/* ========== COMMUNITY – edel, kompakt, ein Blick ========== */
.community-section {
  padding-block: var(--space-section);
  background: var(--bg);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.community-section > .container {
  position: relative;
  z-index: 1;
}

.community-stage {
  --stage-light: 0.65;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, #141821 0%, #0e1016 55%, #0c0d12 100%);
  padding: 1.15rem 1.2rem 1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.community-stage.is-light-dim {
  --stage-light: 0.12;
}

.community-stage-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.07) 0%,
    transparent 28%,
    transparent 62%,
    rgba(255, 255, 255, 0.03) 100%
  );
  opacity: var(--stage-light, 0.65);
  transition: none;
}

/* Farblicht-Ebenen – sofort, ohne Fade */
.community-stage-glow {
  position: absolute;
  inset: -8%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: none;
}

.community-stage-glow--mix {
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(227, 28, 35, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 45% at 0% 100%, rgba(34, 197, 94, 0.1), transparent 50%),
    radial-gradient(ellipse 40% 40% at 50% 0%, rgba(245, 197, 24, 0.08), transparent 55%);
}

.community-stage-glow--wichtig {
  background:
    radial-gradient(ellipse 75% 60% at 80% 10%, rgba(227, 28, 35, 0.22), transparent 58%),
    radial-gradient(ellipse 45% 40% at 15% 90%, rgba(227, 28, 35, 0.08), transparent 55%);
}

.community-stage-glow--news {
  background:
    radial-gradient(ellipse 75% 60% at 70% 0%, rgba(245, 197, 24, 0.18), transparent 58%),
    radial-gradient(ellipse 45% 40% at 20% 100%, rgba(245, 197, 24, 0.07), transparent 55%);
}

.community-stage-glow--gesuch {
  background:
    radial-gradient(ellipse 75% 60% at 25% 0%, rgba(34, 197, 94, 0.18), transparent 58%),
    radial-gradient(ellipse 45% 40% at 90% 90%, rgba(34, 197, 94, 0.08), transparent 55%);
}

.community-stage[data-feed-filter="alle"] .community-stage-glow--mix,
.community-stage:not([data-feed-filter]) .community-stage-glow--mix {
  opacity: 1;
}

.community-stage[data-feed-filter="wichtig"] .community-stage-glow--wichtig {
  opacity: 1;
}

.community-stage[data-feed-filter="news"] .community-stage-glow--news {
  opacity: 1;
}

.community-stage[data-feed-filter="gesuch"] .community-stage-glow--gesuch {
  opacity: 1;
}

.community-stage.is-light-dim .community-stage-glow {
  opacity: 0 !important;
}

.community-stage > * {
  position: relative;
  z-index: 1;
}

/* Toolbar: Titel links · Filter rechts, optisch eine Einheit */
.community-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin-bottom: 0.95rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.community-toolbar-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.community-feed-label {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.community-toolbar-copy .eyebrow {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.community-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: lowercase;
}

.community-sub {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
  max-width: 22rem;
}

/* Segment-Gruppe für die Kategorien */
.community-filters {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.com-filter {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.com-filter:hover,
.com-filter:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

/* „Alle“: Blau + ∞, Rand-Glow wie Kontakt-Buttons */
.com-filter--alle {
  min-width: 2.55rem;
  padding-inline: 0.7rem;
  color: #9ec5ff;
}

.com-filter-alle-icon {
  display: inline-block;
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.com-filter--alle.is-active {
  /* --liga-contact-glow kommt von :root (gleicher Takt wie Kontakt-Buttons) */
  color: #e8f2ff;
  background: linear-gradient(165deg, #1a3a66 0%, #0f2748 55%, #0a1c36 100%);
  border-color: rgba(100, 170, 255, calc(0.22 + 0.5 * var(--liga-contact-glow)));
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.22),
    0 0 0 calc(var(--liga-contact-glow) * 1px) rgba(120, 180, 255, calc(0.28 * var(--liga-contact-glow))),
    0 0 calc(var(--liga-contact-glow) * 12px) rgba(80, 160, 255, calc(0.42 * var(--liga-contact-glow))),
    0 0 calc(var(--liga-contact-glow) * 26px) rgba(60, 140, 255, calc(0.16 * var(--liga-contact-glow))),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 calc(var(--liga-contact-glow) * 1px) rgba(160, 200, 255, calc(0.12 * var(--liga-contact-glow)));
}

/* Während „Alle“: aktuelle Kategorie dezent markieren */
.com-filter.is-preview:not(.is-active) {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.com-filter--wichtig.is-preview:not(.is-active) {
  box-shadow: inset 0 0 0 1px rgba(227, 28, 35, 0.45);
}

.com-filter--news.is-preview:not(.is-active) {
  box-shadow: inset 0 0 0 1px rgba(245, 197, 24, 0.5);
}

.com-filter--gesuch.is-preview:not(.is-active) {
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.45);
}

/* Ligafarben der Kategorien – aktiver Filter mit Glow */
.com-filter--wichtig.is-active {
  background: linear-gradient(135deg, #e31c23, #a81218);
  border-color: rgba(255, 180, 180, 0.35);
  color: #fff;
  box-shadow:
    0 2px 10px rgba(227, 28, 35, 0.35),
    0 0 18px rgba(227, 28, 35, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.com-filter--news.is-active {
  background: linear-gradient(135deg, #f5c518, #d4a40f);
  border-color: rgba(255, 236, 170, 0.45);
  color: #0a0a0a;
  box-shadow:
    0 2px 10px rgba(245, 197, 24, 0.3),
    0 0 18px rgba(245, 197, 24, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.com-filter--gesuch.is-active {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: rgba(180, 255, 210, 0.35);
  color: #0a0a0a;
  box-shadow:
    0 2px 10px rgba(34, 197, 94, 0.3),
    0 0 18px rgba(34, 197, 94, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}



.community-toolbar-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: flex-end;
}

.com-compose-btn,
.com-mail-btn {
  font-size: 0.82rem !important;
  padding: 0.5rem 0.9rem !important;
  min-height: 0 !important;
  white-space: nowrap;
}

/* Compose Panel */
.com-compose {
  margin-bottom: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  padding: 0.75rem 0.85rem 0.65rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.com-compose[hidden] {
  display: none !important;
}

.com-form-grid {
  display: grid;
  grid-template-columns: 7.5rem 1.2fr 1.4fr 7rem 7.5rem auto;
  gap: 0.45rem 0.55rem;
  align-items: end;
}

.com-field {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.com-field span {
  padding-left: 0.1rem;
}

.com-field input,
.com-field textarea,
.com-field select {
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text);
  background: rgba(8, 9, 12, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  padding: 0.48rem 0.6rem;
  width: 100%;
  resize: none;
  min-height: 2.35rem;
}

.com-field textarea {
  line-height: 1.35;
}

.com-field select {
  cursor: pointer;
}

.com-field input:focus,
.com-field textarea:focus,
.com-field select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--liga-a) 50%, transparent);
  box-shadow: 0 0 0 3px var(--liga-a-soft);
}

.com-field--actions {
  justify-content: flex-end;
}

.com-submit {
  font-size: 0.8rem !important;
  padding: 0.5rem 0.85rem !important;
  min-height: 2.35rem !important;
  width: 100%;
  justify-content: center;
}

.com-form-note {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.85;
}

/* Feed: Ticket-Karten untereinander – ohne Seitenleiste */
.com-feed {
  --com-row-h: 3rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-content: start;
  min-height: 0;
  padding: 0.2rem 0 0.1rem;
}

.com-load-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  width: 100%;
}

.com-load-actions[hidden] {
  display: none !important;
}

.com-load-more {
  appearance: none;
  display: block;
  flex: 1 1 8rem;
  margin: 0;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(227, 28, 35, 0.12), transparent 40%),
    linear-gradient(225deg, rgba(34, 197, 94, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.com-load-more--back {
  flex: 0 1 auto;
  min-width: 6.5rem;
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.1);
  background: transparent;
  box-shadow: none;
}

.com-load-more:hover,
.com-load-more:focus-visible {
  background:
    linear-gradient(135deg, rgba(227, 28, 35, 0.2), transparent 45%),
    linear-gradient(225deg, rgba(245, 197, 24, 0.12), transparent 48%),
    rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--text);
  outline: none;
  transform: translateY(-1px);
}

.com-load-more[hidden] {
  display: none !important;
}

.com-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.25rem 1rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.85rem;
}

/* Ticket-/Zettel-Karten an der Pinnwand */
.com-card {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 0;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(
      105deg,
      color-mix(in srgb, var(--com-accent, var(--liga-a)) 16%, transparent) 0%,
      transparent 34%
    ),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, transparent 46%),
    rgba(14, 16, 22, 0.88);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 22px rgba(0, 0, 0, 0.22);
}

.com-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--com-accent, var(--liga-a));
  box-shadow: 0 0 14px color-mix(in srgb, var(--com-accent, var(--liga-a)) 55%, transparent);
  z-index: 1;
}

/* Ticket-Perforation rechts */
.com-card::after {
  content: "";
  position: absolute;
  top: 0.55rem;
  bottom: 0.55rem;
  right: 2.55rem;
  width: 0;
  border-left: 1px dashed rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 1;
}

.com-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 28px rgba(0, 0, 0, 0.28);
}

.com-card.is-open {
  border-color: color-mix(in srgb, var(--com-accent, var(--liga-a)) 45%, rgba(255, 255, 255, 0.18));
  background:
    linear-gradient(
      105deg,
      color-mix(in srgb, var(--com-accent, var(--liga-a)) 24%, transparent) 0%,
      transparent 42%
    ),
    linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, transparent 48%),
    rgba(18, 20, 28, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px color-mix(in srgb, var(--com-accent, var(--liga-a)) 22%, transparent),
    0 14px 32px rgba(0, 0, 0, 0.32);
}

.com-card.is-hidden {
  display: none;
}

/* Einblenden der Kacheln absichtlich aus – sofortige Anzeige */

.com-card-summary {
  appearance: none;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.45rem 0.55rem;
  width: 100%;
  height: 100%;
  min-height: var(--com-row-h, 3rem);
  margin: 0;
  padding: 0.55rem 0.75rem 0.55rem 0.95rem;
  box-sizing: border-box;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  user-select: none;
}

.com-card-summary:focus-visible {
  outline: 2px solid var(--com-accent, var(--liga-a));
  outline-offset: -2px;
  border-radius: inherit;
}

.com-card-pin {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, var(--com-accent, var(--liga-a)) 40%, #222 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 2px 6px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.com-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22em 0.55em;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.com-card-badge--wichtig {
  color: #ffd0d3;
  background: rgba(227, 28, 35, 0.22);
  border-color: rgba(227, 28, 35, 0.4);
}

.com-card-badge--news {
  color: #ffe9a8;
  background: rgba(245, 197, 24, 0.18);
  border-color: rgba(245, 197, 24, 0.38);
}

.com-card-badge--gesuch {
  color: #b8f5cc;
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.38);
}

.com-card-title {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.com-card-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid rgba(255, 255, 255, 0.45);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.45);
  transform: rotate(45deg);
  transition: none;
  flex-shrink: 0;
  margin-bottom: 0.15rem;
  margin-right: 0.1rem;
}

.com-card.is-open .com-card-chevron {
  transform: rotate(225deg);
  margin-bottom: 0;
  margin-top: 0.15rem;
}

/* Aufklappen ohne langsames Einblenden */
.com-card-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: none;
}

.com-card.is-open .com-card-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.com-card-panel-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 0.75rem 0 0.85rem;
  border-top: 1px solid transparent;
  transition: none;
}

.com-card.is-open .com-card-panel-inner {
  padding: 0.55rem 0.75rem 0.7rem 0.85rem;
  border-top-color: rgba(255, 255, 255, 0.06);
}

/* Leere Slots – blasser Ticket-Look */
.com-card.is-placeholder {
  opacity: 0.58;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.com-card.is-placeholder .com-card-summary {
  padding-block: 0.5rem;
  min-height: var(--com-row-h, 3rem);
}

.com-card.is-placeholder .com-card-title,
.com-card.is-placeholder .com-card-body,
.com-card.is-placeholder .com-card-meta,
.com-card.is-placeholder .com-card-meta strong,
.com-card.is-placeholder time {
  font-style: italic;
  font-weight: 400;
  color: rgba(160, 170, 185, 0.55);
  letter-spacing: 0.01em;
}

.com-card.is-placeholder .com-card-title {
  font-size: 0.72rem;
  font-weight: 500;
}

.com-card.is-placeholder .com-card-badge {
  opacity: 0.55;
}

.com-card.is-placeholder .com-card-pin {
  opacity: 0.45;
  filter: grayscale(0.35);
}

.com-card.is-placeholder .com-card-body {
  font-size: 0.58rem;
  line-height: 1.35;
}

.com-card.is-placeholder .com-card-meta,
.com-card.is-placeholder time {
  font-size: 0.55rem;
}

.com-card.is-placeholder:hover {
  opacity: 0.78;
}

/* Kategorie nur als pulsierender Punkt (Farben = Filter oben) */
.com-live-dot {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.1rem;
  animation: com-live-pulse-a 1.8s ease-out infinite;
}

/* Wichtig = Rot · News = Gelb · Gesuch = Grün */
.com-live-dot--wichtig {
  background: var(--liga-a);
  animation-name: com-live-pulse-a;
}

.com-live-dot--news {
  background: var(--liga-c);
  animation-name: com-live-pulse-c;
}

.com-live-dot--gesuch {
  background: var(--liga-b);
  animation-name: com-live-pulse-b;
}

@keyframes com-live-pulse-a {
  0% {
    box-shadow: 0 0 0 0 rgba(227, 28, 35, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(227, 28, 35, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(227, 28, 35, 0);
  }
}

@keyframes com-live-pulse-b {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@keyframes com-live-pulse-c {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(245, 197, 24, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 197, 24, 0);
  }
}

.com-badge {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .com-live-dot {
    animation: none !important;
  }
}

/* Handy: weniger Dauer-Animationen → bessere Tippreaktion */
@media (max-width: 640px) {
  .com-live-dot {
    animation: none;
  }
}

.com-card[data-type="wichtig"] {
  --com-accent: var(--liga-a);
}

.com-card[data-type="news"] {
  --com-accent: var(--liga-c);
}

.com-card[data-type="gesuch"] {
  --com-accent: var(--liga-b);
}

.com-card time {
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.com-card-body {
  margin: 0.55rem 0 0;
  color: #c5ccd6;
  font-size: 0.8rem;
  line-height: 1.45;
}

.com-card-flyers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.com-card-flyers .com-card-flyer {
  margin-top: 0;
  flex: 1 1 9.5rem;
  max-width: min(100%, 14rem);
}

.com-card-flyer {
  display: block;
  margin-top: 0.75rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  max-width: min(100%, 18rem);
}

.com-card-flyer img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.com-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #0a0b0e;
  background: linear-gradient(180deg, #ffe566 0%, #f5c518 55%, #d4a40f 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 4px 14px rgba(245, 197, 24, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition:
    transform 0.15s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
}

.com-card-cta:hover,
.com-card-cta:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 6px 18px rgba(245, 197, 24, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.com-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.65rem;
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  color: var(--muted);
}

.com-card-meta strong {
  color: #e8ebf0;
  font-weight: 700;
}

.com-card-contact {
  color: var(--liga-b);
  font-weight: 600;
  text-decoration: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.com-card-contact:hover {
  text-decoration: underline;
}

/* Spielstätten unter dem Matchday-Counter: Endlos-Laufschrift wie Ligaregeln */
.community-venues,
.matchday-hub .hub-venues {
  display: block;
  margin: 0;
  padding: 0.2rem 0 0.1rem;
  border-top: none;
  min-height: 1.55rem;
  width: 100%;
  background: transparent;
  /* 10 % tiefer als zuvor (-20 % → -10 %) */
  transform: translateY(-10%);
  /* ~40 % Transparenz (PC + Handy) */
  opacity: 0.6;
}

.matchday-hub .hub-venues .hub-venue-name,
.community-venues .hub-venue-name {
  text-shadow:
    1px 1px 0 rgba(10, 61, 34, 0.55),
    0 0 8px rgba(57, 224, 122, 0.28);
}

.matchday-hub .hub-venues .hub-venue-dot--a,
.matchday-hub .hub-venues .hub-venue-dot--b,
.matchday-hub .hub-venues .hub-venue-dot--c,
.community-venues .hub-venue-dot--a,
.community-venues .hub-venue-dot--b,
.community-venues .hub-venue-dot--c {
  text-shadow: 0 0 6px currentColor;
}

.community-venues-stage {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 1.35rem;
}

.matchday-hub .hub-countdown-zone .countdown-sub {
  text-align: center;
}

.matchday-hub .hub-venues-marquee,
.community-venues .hub-venues-marquee {
  display: block;
  width: 100%;
  overflow: hidden;
  /* Enden noch weiter ausblenden */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 8%,
    #000 24%,
    #000 76%,
    transparent 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 8%,
    #000 24%,
    #000 76%,
    transparent 92%,
    transparent 100%
  );
}

.matchday-hub .hub-venues-marquee-track,
.community-venues .hub-venues-marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  /* 80 % langsamer als Ligaregeln (12s → 60s) */
  animation: hub-rules-marquee 60s linear infinite;
}

.matchday-hub .hub-venues-marquee-seg,
.community-venues .hub-venues-marquee-seg {
  flex: 0 0 auto;
  white-space: nowrap;
  /* Schrift wie Ligaregeln-Laufschrift */
  font-family: "Audiowide", "Share Tech Mono", ui-monospace, sans-serif;
  font-size: clamp(0.72rem, 1.35vw, 0.88rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.15;
  text-transform: uppercase;
  padding-right: 0.15em;
}

.matchday-hub .hub-venue-name,
.community-venues .hub-venue-name {
  color: #6ef5a4;
  -webkit-text-fill-color: #6ef5a4;
  text-shadow:
    1px 1px 0 #0a3d22,
    2px 2px 0 #08331c,
    3px 3px 0 #062816,
    0 0 10px rgba(57, 224, 122, 0.45),
    0 0 18px rgba(57, 224, 122, 0.2);
}

/* Ligafarben kreativ: Trenn-Punkte A/B/C im Wechsel + Glow */
.matchday-hub .hub-venue-dot,
.community-venues .hub-venue-dot {
  font-weight: 400;
  -webkit-text-fill-color: currentColor;
}

.matchday-hub .hub-venue-dot--a,
.community-venues .hub-venue-dot--a {
  color: var(--liga-a);
  text-shadow:
    0 0 8px rgba(227, 28, 35, 0.75),
    0 0 14px rgba(227, 28, 35, 0.35);
}

.matchday-hub .hub-venue-dot--b,
.community-venues .hub-venue-dot--b {
  color: var(--liga-b);
  text-shadow:
    0 0 8px rgba(34, 197, 94, 0.7),
    0 0 14px rgba(34, 197, 94, 0.35);
}

.matchday-hub .hub-venue-dot--c,
.community-venues .hub-venue-dot--c {
  color: var(--liga-c);
  text-shadow:
    0 0 8px rgba(245, 197, 24, 0.75),
    0 0 14px rgba(245, 197, 24, 0.35);
}

@media (max-width: 899px) {
  .matchday-hub .hub-venues-marquee,
  .community-venues .hub-venues-marquee {
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      transparent 10%,
      #000 28%,
      #000 72%,
      transparent 90%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      transparent 10%,
      #000 28%,
      #000 72%,
      transparent 90%,
      transparent 100%
    );
  }

  .matchday-hub .hub-venues-marquee-track,
  .community-venues .hub-venues-marquee-track {
    /* 80 % langsamer als Ligaregeln Handy (10s → 50s) */
    animation-duration: 50s;
  }

  .matchday-hub .hub-venues-marquee-seg,
  .community-venues .hub-venues-marquee-seg {
    letter-spacing: 0.08em;
    font-size: clamp(0.68rem, 3vw, 0.82rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .matchday-hub .hub-venues-marquee-track,
  .community-venues .hub-venues-marquee-track {
    animation: none !important;
    transform: none !important;
  }

  .matchday-hub .hub-venues-marquee-seg:nth-child(n + 2),
  .community-venues .hub-venues-marquee-seg:nth-child(n + 2) {
    display: none;
  }

  .matchday-hub .hub-venues-marquee,
  .community-venues .hub-venues-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .matchday-hub .hub-venues-marquee-seg,
  .community-venues .hub-venues-marquee-seg {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }
}

/* Legacy com-venue (falls noch irgendwo) – stumm */
.com-venue {
  display: none !important;
}

.community-foot a {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.community-foot a:hover {
  color: var(--liga-a);
}

/* Kachel-Einblenden komplett deaktiviert */

@media (max-width: 960px) {
  .community-toolbar {
    align-items: center;
  }

  .com-feed {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .com-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .com-field--type {
    grid-column: 1;
  }

  .com-field--title {
    grid-column: 2;
  }

  .com-field--body {
    grid-column: 1 / -1;
  }

  .com-field--actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .community-section {
    padding-block: var(--space-section);
  }

  .community-stage {
    padding: 0.9rem 0.85rem 0.85rem;
    border-radius: var(--radius);
  }

  .community-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .community-filters {
    margin-left: 0;
    width: 100%;
    justify-content: stretch;
  }

  .community-filters .com-filter {
    flex: 1;
    text-align: center;
    padding-inline: 0.5rem;
  }

  .com-feed {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 0;
    padding-left: 0;
  }

  .com-card-summary {
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    gap: 0.3rem 0.35rem;
    padding: 0.5rem 0.55rem 0.5rem 0.7rem;
  }

  .com-card::after {
    display: none; /* mehr Platz für Titel auf schmalen Screens */
  }

  .com-card-badge {
    font-size: 0.5rem;
    padding: 0.2em 0.42em;
  }

  .com-card-title {
    font-size: 0.78rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .com-card time {
    font-size: 0.58rem;
  }

  .com-load-more {
    min-height: 44px;
  }

  .com-load-actions {
    gap: 0.45rem;
  }

  .com-form-grid {
    grid-template-columns: 1fr;
  }

  .com-field--type,
  .com-field--title,
  .com-field--body,
  .com-field--actions {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .com-card.is-new {
    animation: none !important;
  }

  .community-stage,
  .community-stage-shine,
  .community-stage-glow {
    transition: none !important;
  }

  .com-card,
  .com-card:hover,
  .com-load-more:hover,
  .com-load-more:focus-visible {
    transform: none !important;
  }

  .com-card-panel,
  .com-card-panel-inner,
  .com-card-chevron {
    transition: none !important;
  }
}

/* ============================================================
   MOBILE POLISH – User-Feedback (Header, Hero, Stats, Player …)
   ============================================================ */

@supports (padding: env(safe-area-inset-bottom)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .site-header {
    padding-top: env(safe-area-inset-top);
  }

  .site-footer {
    padding-bottom: max(1.35rem, env(safe-area-inset-bottom));
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 0.75rem;
  }

  /*
   * Header mobil:
   * LINKS  = Liga-Logo + BRANNEDARTSLIGA
   * RECHTS = 3K + BB Live (klein, feste Gruppe)
   */
  .site-header {
    z-index: 80;
    background: rgba(10, 11, 14, 0.97);
  }

  .header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    min-height: 52px;
    padding-block: 0.35rem;
    width: 100%;
    box-sizing: border-box;
  }

  .header-arrow-track {
    display: none !important;
  }

  /* LINKS: Logo + voller Name */
  .logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  .logo-img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: block;
  }

  .logo-text {
    display: inline-block !important;
    flex: 0 1 auto;
    min-width: 0;
    font-size: clamp(0.7rem, 3.5vw, 0.88rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.15;
  }

  /* RECHTS: kompakte Logo-Gruppe */
  .header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex: 0 0 auto;
    flex-shrink: 0;
    margin-left: 0.25rem;
  }

  .header-3k {
    flex: 0 0 auto;
    flex-shrink: 0;
    line-height: 0;
    opacity: 0.95;
  }

  .header-3k-logo {
    height: 14px !important;
    width: auto !important;
    max-width: 3.8rem !important;
    display: block;
    object-fit: contain;
  }

  /* BB Live im Header nur auf PC – Handy: raus (steht im Footer) */
  .header-partner,
  .site-header .header-partner.footer-partner--btn {
    display: none !important;
  }

  html {
    scroll-padding-top: 56px;
  }

  /*
   * Hero mobil: Portrait-Video füllt die Bühne (schwarz, soft edges)
   * Wichtig: nur svh (stabil) – dvh springt wenn Browser-Chrome
   * nach Scroll-Stop ein-/ausblendet und zieht die Seite mit.
   */
  .hero,
  .hero--stage {
    min-height: calc(100svh - 54px);
    height: calc(100svh - 54px);
    max-height: calc(100svh - 54px);
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    justify-content: stretch;
    background: #000;
  }

  .hero-stage {
    -webkit-mask-image: radial-gradient(
      ellipse 115% 100% at 50% 45%,
      #000 0%,
      #000 48%,
      rgba(0, 0, 0, 0.9) 68%,
      rgba(0, 0, 0, 0.4) 84%,
      transparent 100%
    );
    mask-image: radial-gradient(
      ellipse 115% 100% at 50% 45%,
      #000 0%,
      #000 48%,
      rgba(0, 0, 0, 0.9) 68%,
      rgba(0, 0, 0, 0.4) 84%,
      transparent 100%
    );
  }

  .hero-stage-core {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    animation: none;
  }

  /* PC-Bild aus, Video an – picture laedt auf Handy kein Desktop-JPG */
  .hero-stage-picture,
  .hero-stage-img--desktop {
    display: none !important;
  }

  .hero-stage-video {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: #000;
    opacity: 0;
    transition: opacity 2.2s cubic-bezier(0.1, 0.28, 0.12, 1);
  }

  .hero-stage-video.is-visible {
    opacity: 1;
    transition-duration: 2.35s;
    transition-timing-function: cubic-bezier(0.08, 0.3, 0.1, 1);
  }

  .hero-stage-video.is-fading-out {
    opacity: 0;
    transition-duration: 1.1s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }

  .hero-scroll-cue--stage {
    bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
    min-height: 44px;
    letter-spacing: 0.2em;
    color: rgba(230, 235, 245, 0.55);
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.9);
  }

  /* Weniger Bewegung: Video pausieren wenn Hero weg */
  .hero--stage.is-fx-paused .hero-stage-video {
    /* play/pause steuert JS */
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-stage-video {
      display: none !important;
    }

    .hero-stage-picture {
      display: contents !important;
    }

    .hero-stage-img--desktop {
      display: block !important;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center center;
    }
  }

  /* —— 3) Bestleistungen: kompakt, gleicher Sektions-Rhythmus —— */
  .stats,
  .stats--compact {
    padding-block: var(--space-section);
    min-height: 0;
    box-sizing: border-box;
  }

  .stats > .container {
    width: 100%;
  }

  .stats-head,
  .stats--compact .stats-head,
  .stats .rubric {
    margin-bottom: var(--space-block);
  }

  .stats-head .eyebrow {
    font-size: 0.62rem;
    margin-bottom: 0.15rem;
  }

  .stats-head h2 {
    font-size: clamp(1.05rem, 4.6vw, 1.28rem);
    margin: 0 0 0.2rem;
  }

  .stats-lead {
    font-size: 0.72rem;
    margin: 0;
    line-height: 1.3;
  }

  .tabs {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.22rem;
    padding: 0.22rem;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
  }

  .tab {
    flex: 1 1 0;
    justify-content: center;
    gap: 0.22rem;
    font-size: 0.7rem;
    padding: 0.38rem 0.2rem;
    min-height: 38px;
    white-space: nowrap;
  }

  .tab-dot {
    width: 6px;
    height: 6px;
  }

  .stats-boards--tabs .stats-board.is-active {
    display: block;
  }

  .stats--compact .stats-board {
    border-radius: 12px;
  }

  .stats--compact .stats-board-body {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 0.4rem;
  }

  .stats--compact .spotlight {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.55rem;
  }

  .stats--compact .spotlight-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: visible;
    background: transparent !important;
    flex-shrink: 0;
  }

  .stats--compact .spotlight-num {
    font-size: 1.2rem;
  }

  .stats--compact .spotlight-unit {
    font-size: 0.52rem;
  }

  .stats--compact .spotlight-badge {
    margin-bottom: 0.15rem;
    padding: 0.12rem 0.4rem;
    font-size: 0.55rem;
  }

  .stats--compact .player-name {
    font-size: 0.95rem;
    margin-bottom: 0.05rem;
  }

  .stats--compact .player-team {
    margin-bottom: 0;
    font-size: 0.72rem;
  }

  /* 4) HF-Ring: nie Vollquadrat */
  .spotlight-ring,
  .spotlight-ring svg,
  .spotlight-ring circle,
  .ring-track,
  .ring-arc {
    fill: none !important;
    background: transparent !important;
  }

  .spotlight.is-waiting,
  .spotlight.is-empty {
    background: linear-gradient(145deg, #1a1e28 0%, #12151c 100%);
  }

  .spotlight.is-waiting::before,
  .spotlight.is-empty::before {
    opacity: 0.22;
    background: radial-gradient(circle at 30% 40%, var(--accent-soft), transparent 65%);
  }

  /* Saison-Banner: Labels nicht überlappen – Kurzform SG/HF/HS */
  .season-static {
    --ss-cols: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(3.2rem, 0.65fr);
    --ss-pad-x: 0.22rem;
    --ss-pad-y: 0.28rem;
    overflow: hidden;
  }

  .season-banner {
    min-height: 2.85rem;
  }

  .stats--compact .season-banner {
    min-height: 2.85rem;
  }

  .stats--compact .season-row {
    min-height: 1.75rem;
  }

  .sb-val {
    font-size: clamp(0.88rem, 3.8vw, 1.1rem);
  }

  .sb-lab-full {
    display: none;
  }

  .sb-lab-short {
    display: inline;
  }

  .sb-lab {
    font-size: 0.48rem;
    letter-spacing: 0.02em;
    margin-top: 0.1rem;
    white-space: nowrap;
  }

  .sb-year-kicker {
    font-size: 0.42rem;
  }

  .sb-year strong {
    font-size: 0.72rem;
  }

  .sr-num {
    font-size: clamp(0.78rem, 3.2vw, 0.95rem);
  }

  .sr-label {
    font-size: 0.48rem;
    letter-spacing: 0.02em;
  }

  /* HF-Historie: kompakt, max. 2 Zeilen sichtbar */
  .hf-history-row {
    margin: 0 0.35rem 0.35rem;
    padding: 0.28rem 0.35rem;
    border-radius: 10px;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 0.2rem;
  }

  .hf-history-label {
    font-size: 0.5rem;
    width: 100%;
  }

  .hf-history-list {
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hf-history-item {
    flex: 0 0 auto;
    width: auto;
    min-width: 5.5rem;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 0.28rem 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
  }

  .hf-history-val {
    font-size: 0.88rem;
  }

  .hf-history-player {
    font-size: 0.62rem;
    max-width: 6.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hf-history-team {
    font-size: 0.55rem;
    max-width: 6.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* —— 5) Nav-Kacheln: gleicher Rhythmus —— */
  .nav-buttons-section {
    padding-block: var(--space-section);
    overflow: visible;
  }

  .nav-buttons-section .section-head {
    padding-inline: 0.5rem;
    margin-bottom: var(--space-block);
  }

  .nav-buttons-section .section-head h2 {
    font-size: clamp(1.15rem, 5vw, 1.4rem);
  }

  /* Portfolio: 2-Spalten-Raster (siehe .portfolio-grid @640) */

  /* —— 6) Soundplayer: kompakt auf Handy —— */
  .hp-strip,
  .hp-strip--left,
  .hp-strip--right {
    width: 3px;
    opacity: 1;
  }

  .hp-strip--left {
    left: 0;
    right: auto;
  }

  .hp-strip--right {
    right: 0;
    left: auto;
  }

  .hero-player,
  .sound-player {
    margin-inline: 0.5rem;
    max-width: calc(100% - 1rem);
    border-radius: 14px;
  }

  .hp-main {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    grid-template-areas:
      "play meta"
      "side side";
    gap: 0.28rem 0.35rem;
    padding: 0.45rem 0.5rem 0.4rem;
    align-items: center;
  }

  .hp-play {
    grid-area: play;
    width: 40px;
    height: 40px;
  }

  .hp-play-icon {
    border-width: 7px 0 7px 11px;
    margin-left: 2px;
  }

  .hero-player.is-playing .hp-play-icon {
    width: 10px;
    height: 10px;
  }

  .hp-meta {
    grid-area: meta;
    min-width: 0;
    gap: 0.02rem;
  }

  .hp-meta-top {
    gap: 0.3rem;
  }

  .hp-kicker {
    font-size: 0.52rem;
    letter-spacing: 0.08em;
  }

  .hp-index {
    font-size: 0.52rem;
  }

  .hp-title {
    font-size: 0.84rem;
    line-height: 1.2;
  }

  .hp-sub {
    display: none; /* eine Zeile Titel reicht auf Handy */
  }

  .hp-side {
    grid-area: side;
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
    margin-top: 0;
    padding-top: 0.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .hp-side > .hp-vol,
  .hp-side > .hp-list-btn,
  .hp-transport {
    grid-column: auto;
  }

  /* Prev · Timeline · Next · Playlist in einer dichten Zeile */
  .hp-transport {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.25rem;
    width: auto;
  }

  .hp-transport .hp-seek-row {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    gap: 0.22rem;
  }

  .hp-seek {
    padding: 0.2rem 0;
  }

  .hp-seek-track {
    height: 2.5px;
  }

  .hp-time {
    min-width: 1.65rem;
    font-size: 0.5rem;
  }

  .hp-transport .hp-btn {
    flex: 0 0 auto;
    min-width: 32px;
    min-height: 32px;
    height: 32px;
    padding: 0 0.3rem;
  }

  .hp-side > .hp-vol {
    display: none; /* Lautstärke über Geräte-Tasten */
  }

  .hp-list-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 32px;
    height: 32px;
    padding-inline: 0.5rem;
    font-size: 0.58rem;
    justify-content: center;
  }

  .hp-btn {
    min-width: 32px;
    min-height: 32px;
  }

  .hp-playlist {
    margin-top: 0;
  }

  .hp-playlist-inner {
    padding: 0.35rem 0.45rem 0.4rem;
  }

  .hp-playlist-head {
    margin-bottom: 0.25rem;
    padding: 0.2rem 0.15rem;
    font-size: 0.62rem;
  }

  .sound-rubric-wrap {
    margin-top: var(--space-block);
    margin-bottom: 0.35rem;
    padding-inline: 0.15rem;
  }

  .sound-rubric-wrap .rubric {
    margin-bottom: 0.45rem;
  }

  .nav-buttons-section > .hero-player,
  .nav-buttons-section > .sound-player {
    margin-top: 0;
  }

  /* —— 7) Spieltag: Rhythmus + PDF ans Ende —— */
  .spieltag-section {
    padding-block: var(--space-section);
    min-height: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  .spieltag-section > .container {
    width: 100%;
  }

  .countdown-card--unified {
    display: flex;
    flex-direction: column;
    margin-inline: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 14px;
    padding: 0.75rem 0.7rem 0.8rem;
    gap: 0.55rem;
  }

  /* Kinder der Karte ordnen: Countdown → Progress → Pills → PDF */
  .countdown-with-pdf {
    display: contents;
  }

  .unified-top {
    order: 0;
    margin-bottom: 0;
  }

  .unified-countdown {
    order: 1;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 0;
  }

  .progress-block {
    order: 2;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 0;
  }

  .st-pills {
    order: 3;
  }

  .season-badge {
    font-size: 0.68rem;
    padding: 0.35rem 0.75rem;
  }

  .countdown-kicker {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-align: center;
    margin: 0 0 0.35rem;
    white-space: normal;
  }

  .countdown-sub {
    font-size: 0.72rem;
    text-align: center;
    margin: 0.35rem 0 0;
    white-space: normal;
    overflow-wrap: anywhere;
    color: rgba(230, 235, 242, 0.82);
  }

  /* Countdown sauberer: feste Spalten, weniger Schatten-Versatz */
  .countdown-digits--hero {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 0;
    width: 100%;
    max-width: 100%;
    justify-content: stretch;
    align-items: start;
  }

  .countdown-digits--hero .cd-unit {
    min-width: 0;
    flex: none;
    width: 100%;
  }

  .countdown-digits--hero .cd-num,
  .countdown-digits--hero .cd-num-shadow {
    font-size: clamp(1.2rem, 6.2vw, 1.55rem);
    letter-spacing: 0.02em;
  }

  .countdown-digits--hero .cd-num-shadow {
    transform: translate(1px, 1.5px);
    opacity: 0.75;
    text-shadow:
      0 1px 0 rgba(0, 0, 0, 0.85),
      0 2px 6px rgba(0, 0, 0, 0.55);
  }

  .countdown-digits--hero .cd-sep,
  .countdown-digits--hero .cd-sep-shadow {
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    padding-top: 0.05rem;
  }

  .countdown-digits--hero .cd-sep-shadow {
    transform: translate(1px, 1.5px);
    opacity: 0.7;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  }

  .countdown-digits--hero .cd-label {
    font-size: 0.46rem;
    letter-spacing: 0.08em;
    margin-top: 0.2rem;
  }

  .cd-sep-stack {
    display: grid;
    place-items: center;
    padding-top: 0.15rem;
  }

  .progress-meta {
    flex-wrap: wrap;
    gap: 0.2rem 0.65rem;
    font-size: 0.68rem;
  }

  /* Spieltag-Pills: Handy = 6 Reihen × 3 Buttons (alle 18 sichtbar) */
  .st-pills {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding: 0.1rem 0 0.2rem;
    margin: 0;
    scroll-snap-type: none;
  }

  .st-pill {
    flex: none;
    min-width: 0;
    width: 100%;
    min-height: 42px;
    font-size: 0.6rem;
    padding: 0.35rem 0.25rem 0.3rem;
    scroll-snap-align: none;
  }

  .st-pill .st-date {
    font-size: 0.55rem;
  }

  .st-pill .st-num {
    font-size: 0.55rem;
  }

  /* PDF-Button: dezent, nicht dominant */
  .pdf-chip--lg {
    order: 4;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    margin-top: 0.35rem;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem 0.45rem 0.55rem;
    border-radius: 12px;
    border-width: 1px;
    animation: none;
    box-shadow: none;
    background: rgba(227, 28, 35, 0.12);
    border-color: rgba(227, 28, 35, 0.35);
  }

  .pdf-chip--lg::after {
    opacity: 0.92;
    background: linear-gradient(180deg, rgba(28, 22, 24, 0.98), rgba(16, 12, 14, 0.98));
  }

  .pdf-chip--lg::before,
  .pdf-chip--lg .pdf-pulse-ring {
    display: none;
  }

  .pdf-chip--lg .pdf-chip-icon {
    width: 1.65rem;
    height: 1.65rem;
    flex-shrink: 0;
  }

  .pdf-chip--lg .pdf-chip-icon svg {
    width: 1.65rem;
    height: auto;
  }

  .pdf-chip--lg .pdf-chip-title {
    font-size: 0.78rem;
    font-weight: 700;
  }

  .pdf-chip--lg .pdf-chip-sub {
    font-size: 0.62rem;
    opacity: 0.75;
  }

  /* PDF-Chip: gleiche Hover-/Tap-Optik wie PC (kein flaches Mobile) */

  .pdf-chip--lg:hover::after,
  .pdf-chip--lg:focus-visible::after {
    opacity: 0.85;
  }

  /* Ligagalerie-Button: PC-Optik auch auf Handy */

  /* —— 3K: kompakter Kopf, Iframe bleibt groß —— */
  .live-section {
    padding-block: 1.25rem 1.4rem;
  }

  .live-head.live-head--rubric,
  .live-head--rubric {
    justify-content: flex-start !important;
    gap: 0.65rem !important;
    margin-bottom: 0.65rem !important;
  }

  .live-head--rubric .rubric {
    flex: 0 0 auto !important;
    flex-basis: auto !important;
    min-height: 0 !important;
  }

  .live-head--rubric .live-actions {
    margin-top: 0 !important;
  }

  .fotos-section,
  .gallery-section {
    padding-block: var(--space-section);
  }

  .gallery-portfolio-head {
    margin-bottom: var(--space-block);
  }

  .gallery-cta-wrap {
    margin-top: var(--space-block);
  }

  .portfolio-grid {
    padding-block: 0.35rem 0.15rem;
  }

  .container--live {
    padding-inline: 0.5rem;
  }

  .embed-frame-wrap,
  .embed-shell--tall .embed-frame-wrap {
    min-height: min(72vh, 640px) !important;
    height: min(72vh, 640px) !important;
  }

  .live-actions .btn {
    min-height: 44px;
  }

  /* Primär-Buttons: PC-Glow auf Handy */
  .btn-primary {
    box-shadow: 0 8px 28px var(--liga-a-glow);
  }

  .live-actions .btn-primary {
    box-shadow: none; /* Vollbild ohne äußeren Schimmer */
  }

  /* —— Pinnwand: Kontakt am Ende, dezent —— */
  .section-bridge {
    padding: var(--space-band) 0.75rem;
    min-height: 0;
  }

  .community-section {
    padding-block: var(--space-section);
  }

  .bridge-actions--footer {
    width: min(100%, 22rem);
    margin: 0.85rem auto 0.25rem;
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .bridge-actions--footer .bridge-action-btn {
    min-height: 48px;
    /* wie PC – kein flaches Mobile */
    padding: 0.7rem 0.85rem;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  }

  .community-stage {
    margin-inline: 0.25rem;
    padding: 0.75rem 0.6rem 0.7rem;
  }

  .com-filter {
    min-height: 40px;
    font-size: 0.62rem;
  }

  /* —— Footer: Layout kommt aus @720 (keine grauen Overrides) —— */
  .footer-meta {
    padding-inline: 0.85rem;
  }

  .btn {
    min-height: 44px;
  }

  .tab,
  .com-filter,
  .bridge-action-btn {
    -webkit-tap-highlight-color: transparent;
  }
}

@media (max-width: 380px) {
  .hero-liga-name {
    font-size: clamp(1.05rem, 6vw, 1.45rem);
  }

  .tab {
    font-size: 0.68rem;
    padding: 0.4rem 0.15rem;
  }

  .header-inner {
    gap: 0.3rem;
  }

  .logo-img {
    width: 32px;
    height: 32px;
  }

  .logo-text {
    font-size: clamp(0.64rem, 3.3vw, 0.78rem);
  }

  .header-right {
    gap: 0.28rem;
  }

  .header-3k-logo {
    max-width: 3.2rem !important;
    height: 12px !important;
  }

}

/* ============================================================
   MOBILE v2 – Matchday-Hub, Nav, Kontakt, Galerie (2026-04)
   ============================================================ */
@media (max-width: 640px) {
  /* Header: Liganame bleibt Fokus (Regeln im Block oben) */

  /* Hero-Kontakt: 3 Buttons horizontal scrollbar wenn eng, sonst 1 Spalte */
  .hero-contact {
    padding-block: 0.55rem 0.85rem;
    padding-inline: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-contact .bridge-actions--hero {
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .hero-contact .bridge-action-btn {
    min-height: 48px;
    padding: 0.6rem 0.8rem;
  }

  .hero-contact .bridge-action-copy strong {
    font-size: 0.88rem;
  }

  .hero-contact .bridge-action-copy em {
    font-size: 0.68rem;
  }

  /* Nav-Kacheln: lesbarer, bessere Touch-Fläche */
  .nav-portfolio.portfolio-grid {
    gap: 0.55rem;
    padding-inline: 0.85rem;
    padding-block: 0.45rem 0.75rem;
  }

  .nav-portfolio .portfolio-item {
    border-radius: 12px;
    min-height: 0;
  }

  .nav-portfolio .portfolio-soon-text {
    font-size: clamp(0.72rem, 3.2vw, 0.88rem);
  }

  .nav-portfolio .portfolio-nav-badge {
    font-size: clamp(0.46rem, 5cqi, 0.58rem);
    letter-spacing: 0.07em;
    padding: 0.28em 0.52em;
  }

  .nav-portfolio .portfolio-nav-title {
    font-size: clamp(0.7rem, 10.8cqi, 1rem);
  }

  .nav-portfolio .portfolio-nav-sub {
    font-size: clamp(0.44rem, 5.2cqi, 0.56rem);
    letter-spacing: 0.03em;
  }

  /*
   * Matchday-Hub mobil:
   * 1 Status · 2 Countdown (kompakt) · 3 Spieltage · 4 Rail · 5 Pfeil · 6 PDF am Ende
   * hub-main per contents „auflösen“, damit Order greift
   */
  .matchday-hub.countdown-card--unified {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.7rem 0.65rem 0.8rem;
    margin-inline: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .matchday-hub .hub-top {
    order: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0;
  }

  .matchday-hub .hub-status {
    font-size: 0.6rem;
    padding: 0.28rem 0.55rem;
  }



  .matchday-hub .hub-main,
  .matchday-hub .countdown-with-pdf {
    display: contents;
  }

  /* 2) Countdown – eng am LCD, kein aufgeblähter Rahmen */
  .matchday-hub .hub-countdown-zone {
    order: 1;
    flex: 0 0 auto !important; /* nicht in die Höhe wachsen */
    width: 100%;
    max-width: none;
    min-height: 0 !important;
    height: auto;
    padding: 0.28rem 0.3rem 0.3rem !important;
    gap: 0.18rem;
    justify-content: flex-start;
    border-radius: 12px;
  }

  .matchday-hub .hub-arena-glow {
    display: block; /* wie PC: Licht/Glow auch auf Handy */
    opacity: 0.7;
  }

  /* Kicker redundant zum Status-Badge → aus */
  .matchday-hub .hub-countdown-zone .countdown-kicker {
    display: none;
  }

  .matchday-hub .hub-countdown-zone .countdown-sub {
    font-size: 0.68rem;
    text-align: center;
    line-height: 1.25;
    margin: 0.12rem 0 0;
  }

  /* Spielstätten: vertikal zwischen Spieltag-Zeile und unterem Rand zentrieren */
  .matchday-hub .hub-venues {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: none !important;
    margin: 0.22rem 0 0;
    padding: 0.28rem 0 0.28rem;
    min-height: 1.55rem;
  }

  .matchday-hub .hub-countdown-zone {
    padding-bottom: 0.42rem !important;
  }

  /* 3) Spieltage direkt unter Countdown */
  .matchday-hub .hub-pills.st-pills {
    order: 2;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0.05rem 0 0;
    margin: 0;
  }

  .matchday-hub .st-pill {
    min-height: 44px;
    min-width: 0;
    scroll-snap-align: none;
    padding: 0.35rem 0.18rem 0.3rem;
  }

  .matchday-hub .st-pill .st-date {
    font-size: 0.55rem;
  }

  .matchday-hub .st-pill .st-num {
    font-size: 0.54rem;
    letter-spacing: 0.04em;
  }

  /* 4) Fortschritt / Rail */
  .matchday-hub .hub-rail-block {
    order: 3;
    margin-bottom: 0;
  }

  .matchday-hub .hub-rail {
    margin: 0.28rem 0 0.32rem;
  }

  .matchday-hub .hub-rail-dot {
    width: 0.4rem;
    height: 0.4rem;
  }

  .matchday-hub .hub-rail-dot.is-next,
  .matchday-hub .hub-rail-dot.is-focus {
    width: 0.55rem;
    height: 0.55rem;
  }

  .matchday-hub .progress-meta {
    font-size: 0.6rem;
    gap: 0.2rem;
  }

  /* Pfeil über PDF auf Smartphone aus */
  .matchday-hub .hub-bridge-arrow {
    display: none !important;
  }

  /* Weißer Lichtstreifen nicht über LCD/PDF/Pills */
  .matchday-hub .metal-shine {
    display: none !important;
  }

  /* 6) PDF ganz am Ende */
  .matchday-hub .hub-rules {
    order: 4;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  /* LCD: eng am Inhalt, wenig Bezel-Luft */
  .matchday-hub .lcd-bezel {
    padding: 0.2rem 0.24rem 0.24rem;
    border-radius: 10px;
  }

  .matchday-hub .lcd-bezel-top {
    padding: 0 0.2rem 0.12rem;
    font-size: 0.44rem;
  }

  .matchday-hub .lcd-screen {
    padding: 0.28rem 0.26rem 0.24rem;
    border-radius: 8px;
  }

  .matchday-hub .lcd-lines {
    min-height: 0;
    height: auto;
  }

  .matchday-hub .lcd-layer {
    font-size: clamp(1.25rem, 5.8vw, 1.75rem);
    letter-spacing: 0.04em;
    gap: 0;
    padding: 0;
    min-height: 0;
  }

  .matchday-hub .lcd-seg {
    text-shadow:
      1px 1px 0 #0a3d22,
      2px 2px 0 #062816,
      0 0 6px rgba(57, 224, 122, 0.35);
  }

  .matchday-hub .lcd-labels {
    font-size: 0.38rem;
    letter-spacing: 0.1em;
    margin-top: 0.14rem;
  }

  .matchday-hub .hub-rules-bezel {
    padding: 0.32rem 0.38rem 0.4rem;
  }

  .matchday-hub .hub-rules-screen {
    min-height: 3.85rem;
    padding: 0.45rem 0.55rem;
    gap: 0.55rem;
  }

  .matchday-hub .hub-rules-title {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
  }

  .matchday-hub .hub-rules-sub {
    font-size: 0.5rem;
  }

  /* Galerie CTA: im .container, Text links + großes Logo rechts */
  .gallery-cta-wrap {
    width: 100% !important;
    padding-inline: 0 !important;
    margin: 0 !important;
  }

  .moment-portal-core {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem 0.9rem !important;
    text-align: left;
    padding-inline: 0 !important;
  }

  .moment-portal-copy {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
  }

  .moment-portal-logo {
    width: 7.75rem !important;
    height: 7.75rem !important;
    flex: 0 0 7.75rem !important;
  }

  .moment-portal-name,
  .moment-portal-rest {
    white-space: nowrap;
  }

  .moment-portal-action {
    width: auto;
    max-width: none;
    margin-inline: auto;
    min-height: 0;
    justify-content: flex-start;
  }

  /* Top-Momente: 2er-Grid – gleiche linke Kante wie .container / CTA */
  .top-moments-grid.portfolio-grid {
    gap: 0.55rem;
    width: min(100% - 1.5rem, var(--max)) !important;
    padding-inline: 0 !important;
    margin-inline: auto;
  }

  /* Community: Filter + Feed */
  .community-stage {
    margin-inline: 0;
    border-radius: 14px;
  }

  .com-card-summary {
    min-height: 48px;
    padding: 0.6rem 0.7rem 0.6rem 0.75rem;
    gap: 0.45rem 0.55rem;
  }

  .com-card-title {
    font-size: 0.84rem;
  }

  .com-live-dot {
    width: 0.58rem;
    height: 0.58rem;
  }

}

/* Sehr schmale Phones */
@media (max-width: 380px) {
  .logo-text {
    font-size: clamp(0.62rem, 3.4vw, 0.76rem);
  }

  .matchday-hub .lcd-layer {
    font-size: clamp(1.05rem, 5vw, 1.35rem);
  }

  .matchday-hub .hub-pills.st-pills {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.32rem;
  }
}

@media (max-width: 900px) and (max-height: 480px) {
  .hero {
    min-height: auto;
    padding-block: 1.1rem 1.25rem;
  }

  .hero-scroll-cue {
    display: none;
  }
}

/* Desktop: Kontakt-Buttons am Ende der Community ebenfalls dezent */
.bridge-actions--footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  width: min(100%, 36rem);
  margin: 1rem auto 0.35rem;
}

@media (max-width: 560px) {
  .bridge-actions--footer {
    grid-template-columns: 1fr;
    width: min(100%, 18rem);
  }
}

/* ========== New Cup Promo Popup – Punch, nicht vollbild ========== */
.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  pointer-events: none;
}

.promo-popup[hidden] {
  display: none !important;
}

.promo-popup-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(227, 28, 35, 0.22), transparent 70%),
    rgba(4, 6, 10, 0.58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: auto;
}

.promo-popup-card {
  position: relative;
  z-index: 1;
  width: min(100%, 23rem);
  max-height: min(80vh, 36rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(165deg, #221820 0%, #0c0e14 55%, #080a0e 100%);
  border: 1px solid rgba(227, 28, 35, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 28px rgba(227, 28, 35, 0.28),
    0 22px 56px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  transform-origin: center center;
  pointer-events: auto;
  will-change: transform, opacity;
}

.promo-popup.is-visible .promo-popup-backdrop {
  opacity: 1;
}

.promo-popup.is-visible .promo-popup-card {
  animation: promo-soft-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.promo-popup.is-leaving .promo-popup-backdrop {
  opacity: 0;
  transition: opacity 0.55s ease;
}

.promo-popup.is-leaving .promo-popup-card {
  animation: promo-soft-out 0.7s cubic-bezier(0.4, 0.05, 0.3, 1) forwards;
}

/* Weiches Einfahren + Nachwackeln */
@keyframes promo-soft-in {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.92) rotate(-0.8deg);
  }
  42% {
    opacity: 1;
    transform: translateY(-5px) scale(1.025) rotate(0.55deg);
  }
  62% {
    transform: translateY(2.5px) scale(0.985) rotate(-0.35deg);
  }
  78% {
    transform: translateY(-1.2px) scale(1.008) rotate(0.18deg);
  }
  90% {
    transform: translateY(0.5px) scale(0.997) rotate(-0.06deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

/* Weiches Ausfahren + kurzes Nachwackeln */
@keyframes promo-soft-out {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
  22% {
    opacity: 1;
    transform: translateY(-3px) scale(1.02) rotate(0.4deg);
  }
  48% {
    opacity: 0.85;
    transform: translateY(6px) scale(0.97) rotate(-0.5deg);
  }
  100% {
    opacity: 0;
    transform: translateY(16px) scale(0.93) rotate(0.2deg);
  }
}

.promo-popup-burst {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgba(227, 28, 35, 0.28), transparent 58%);
  opacity: 0;
}

.promo-popup.is-visible .promo-popup-burst {
  animation: promo-burst 1.05s ease-out forwards;
}

@keyframes promo-burst {
  0% {
    opacity: 0;
    transform: scale(0.75);
  }
  40% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

.promo-popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 3;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.promo-popup-close:hover,
.promo-popup-close:focus-visible {
  background: rgba(227, 28, 35, 0.95);
  border-color: rgba(255, 255, 255, 0.35);
  outline: none;
}

.promo-popup-media {
  position: relative;
  flex: 0 1 auto;
  max-height: 56%;
  overflow: hidden;
  background: #050608;
  z-index: 1;
}

.promo-popup-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: min(46vh, 20rem);
  object-fit: cover;
  object-position: center center;
  transform: scale(1.02);
}

.promo-popup.is-visible .promo-popup-media img {
  animation: promo-img-soft 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

@keyframes promo-img-soft {
  0% {
    transform: scale(1.06);
    filter: brightness(0.82);
  }
  55% {
    transform: scale(1.015);
    filter: brightness(1.02);
  }
  78% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1.02);
    filter: brightness(1) contrast(1.02);
  }
}

.promo-popup-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 48%,
    transparent 62%
  );
  transform: translateX(-120%) skewX(-16deg);
  opacity: 0;
}

.promo-popup.is-visible .promo-popup-shine {
  animation: promo-shine 1.1s ease-out 0.35s both;
}

@keyframes promo-shine {
  0% {
    opacity: 0;
    transform: translateX(-130%) skewX(-16deg);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(130%) skewX(-16deg);
  }
}

.promo-popup-body {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 0.9rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.promo-popup-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.promo-popup-kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 120, 120, 0.95);
}

.promo-popup-timer {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  flex-shrink: 0;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.45);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(200, 210, 224, 0.85);
  line-height: 1;
}

.promo-popup-timer-sec {
  font-size: 0.95rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 0 10px rgba(227, 28, 35, 0.55);
  min-width: 1ch;
}

.promo-popup-timer-unit {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.75);
}

.promo-popup-title {
  margin: 0;
  font-size: clamp(1.55rem, 5vw, 1.95rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.05;
  text-shadow:
    0 0 18px rgba(227, 28, 35, 0.45),
    0 2px 0 rgba(0, 0, 0, 0.55);
}

.promo-popup.is-visible .promo-popup-title {
  animation: promo-title-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

@keyframes promo-title-pop {
  from {
    opacity: 0;
    letter-spacing: 0.2em;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    letter-spacing: 0.06em;
    transform: translateY(0);
  }
}

.promo-popup-text {
  margin: 0 0 0.4rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgba(210, 218, 232, 0.9);
}

.promo-popup-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
  padding: 0.78rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #06140c;
  background: linear-gradient(180deg, #6dff9f 0%, #16a34a 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 0 rgba(34, 197, 94, 0.45),
    0 6px 18px rgba(34, 197, 94, 0.35);
  transition: filter 0.2s ease, transform 0.15s ease;
  animation: promo-wa-pulse 1.8s ease-out 0.8s infinite;
}

@keyframes promo-wa-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(34, 197, 94, 0.4),
      0 6px 18px rgba(34, 197, 94, 0.32);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(34, 197, 94, 0),
      0 8px 22px rgba(34, 197, 94, 0.4);
  }
}

.promo-popup-wa:hover,
.promo-popup-wa:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-2px) scale(1.02);
  outline: none;
  animation: none;
}

.promo-popup-wa:active {
  transform: translateY(0) scale(0.99);
}

@media (max-width: 420px) {
  .promo-popup-card {
    width: min(100%, 20rem);
    max-height: min(84vh, 34rem);
  }

  .promo-popup-media img {
    max-height: min(40vh, 16.5rem);
  }

  .promo-popup-body {
    padding: 0.8rem 0.9rem 0.95rem;
  }

  .promo-popup-title {
    font-size: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-popup-backdrop,
  .promo-popup-card,
  .promo-popup-burst,
  .promo-popup-shine,
  .promo-popup-media img,
  .promo-popup-title,
  .promo-popup-wa {
    animation: none !important;
    transition: none !important;
  }

  .promo-popup.is-visible .promo-popup-card,
  .promo-popup.is-leaving .promo-popup-card {
    opacity: 1;
    transform: none;
  }

  .promo-popup.is-leaving .promo-popup-card {
    opacity: 0;
  }
}

/* ============================================================
   Touch = PC-Hover: Effekte auch auf dem Handy sichtbar
   (:active beim Tippen + .is-touch-hot kurz danach)
   ============================================================ */
.portfolio-grid.is-landed .portfolio-item:active,
.portfolio-grid.is-landed .portfolio-item.is-touch-hot,
.portfolio-grid.is-landed .portfolio-item:focus-visible {
  z-index: 20;
  transform: translate3d(0, -10px, 0);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.38),
    0 0 0 3px rgba(255, 255, 255, 0.12),
    0 0 0 5px rgba(227, 28, 35, 0.12),
    0 16px 32px rgba(0, 0, 0, 0.48),
    0 8px 14px rgba(0, 0, 0, 0.32),
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 5px 14px rgba(255, 255, 255, 0.12),
    inset 0 -3px 0 rgba(0, 0, 0, 0.38),
    inset 0 -8px 16px rgba(0, 0, 0, 0.28),
    inset 2px 0 0 rgba(255, 255, 255, 0.2),
    inset -2px 0 0 rgba(0, 0, 0, 0.2);
}

/* Handy: keine Berührungs-/Hover-Animation an Nav- & Top-Momente-Kacheln */
@media (max-width: 899px) {
  .top-moments-grid.is-landed .top-moment-tile--photo:active,
  .top-moments-grid.is-landed .top-moment-tile--photo.is-touch-hot,
  .top-moments-grid.is-landed .top-moment-tile--photo:hover,
  .top-moments-grid.is-landed .top-moment-tile--photo:focus-visible,
  .nav-portfolio.is-landed .nav-portfolio-tile:active,
  .nav-portfolio.is-landed .nav-portfolio-tile.is-touch-hot,
  .nav-portfolio.is-landed .nav-portfolio-tile:hover,
  .nav-portfolio.is-landed .nav-portfolio-tile:focus-visible,
  .nav-portfolio.portfolio-grid.is-landed .portfolio-item:active,
  .nav-portfolio.portfolio-grid.is-landed .portfolio-item.is-touch-hot,
  .nav-portfolio.portfolio-grid.is-landed .portfolio-item:focus-visible {
    z-index: 1 !important;
    transform: none !important;
    filter: none !important;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.28),
      0 0 0 3px rgba(12, 12, 14, 0.95),
      0 0 0 4px rgba(255, 255, 255, 0.1),
      0 10px 28px rgba(0, 0, 0, 0.45),
      0 0 24px rgba(255, 255, 255, 0.04) !important;
  }

  .top-moments-grid.is-landed .top-moment-tile--photo:active .top-moment-photo,
  .top-moments-grid.is-landed .top-moment-tile--photo.is-touch-hot .top-moment-photo,
  .top-moments-grid.is-landed .top-moment-tile--photo:hover .top-moment-photo,
  .top-moments-grid.is-landed .top-moment-tile--photo.is-sticker:active .top-moment-photo,
  .top-moments-grid.is-landed .top-moment-tile--photo.is-sticker.is-touch-hot .top-moment-photo {
    transform: none !important;
    filter: none !important;
  }

  .nav-portfolio .portfolio-item:active .portfolio-nav-badge,
  .nav-portfolio .portfolio-item.is-touch-hot .portfolio-nav-badge,
  .nav-portfolio .portfolio-item:active .portfolio-nav-title,
  .nav-portfolio .portfolio-item.is-touch-hot .portfolio-nav-title,
  .nav-portfolio .portfolio-item:active .portfolio-nav-sub,
  .nav-portfolio .portfolio-item.is-touch-hot .portfolio-nav-sub,
  .nav-portfolio .portfolio-item:active .portfolio-nav-bar,
  .nav-portfolio .portfolio-item.is-touch-hot .portfolio-nav-bar,
  .nav-portfolio .portfolio-item:active .portfolio-nav-bar::after,
  .nav-portfolio .portfolio-item.is-touch-hot .portfolio-nav-bar::after,
  .nav-portfolio .portfolio-item:active .portfolio-nav-bar::before,
  .nav-portfolio .portfolio-item.is-touch-hot .portfolio-nav-bar::before {
    border-color: inherit !important;
    background: inherit !important;
    color: inherit !important;
    box-shadow: none !important;
    text-shadow: none !important;
    opacity: inherit !important;
  }

  .nav-portfolio .portfolio-item:active .portfolio-media--soon,
  .nav-portfolio .portfolio-item.is-touch-hot .portfolio-media--soon {
    background:
      radial-gradient(ellipse 90% 70% at 50% 42%, rgba(255, 255, 255, 0.07), transparent 58%),
      radial-gradient(ellipse 50% 40% at 20% 80%, rgba(227, 28, 35, 0.08), transparent 50%),
      radial-gradient(ellipse 50% 40% at 80% 75%, rgba(34, 197, 94, 0.07), transparent 50%),
      linear-gradient(160deg, #1c1f28 0%, #0c0e14 100%) !important;
  }
}

.portfolio-grid.is-landed .portfolio-item:active::before,
.portfolio-grid.is-landed .portfolio-item.is-touch-hot::before {
  opacity: 1;
}

.portfolio-grid.is-landed .portfolio-item:active .portfolio-glass-glint,
.portfolio-grid.is-landed .portfolio-item.is-touch-hot .portfolio-glass-glint {
  opacity: 0.9;
}

.nav-portfolio .portfolio-item:active .portfolio-nav-badge,
.nav-portfolio .portfolio-item.is-touch-hot .portfolio-nav-badge {
  border-color: rgba(245, 197, 24, 0.65);
  background: linear-gradient(180deg, rgba(245, 197, 24, 0.28) 0%, rgba(245, 197, 24, 0.1) 100%);
  color: #ffe566;
  box-shadow:
    0 0 20px rgba(245, 197, 24, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.nav-portfolio .portfolio-item:active .portfolio-nav-title,
.nav-portfolio .portfolio-item.is-touch-hot .portfolio-nav-title {
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.85),
    0 3px 12px rgba(0, 0, 0, 0.7),
    0 0 28px rgba(227, 28, 35, 0.28),
    0 0 36px rgba(34, 197, 94, 0.14);
}

.nav-portfolio .portfolio-item:active .portfolio-nav-sub,
.nav-portfolio .portfolio-item.is-touch-hot .portfolio-nav-sub {
  color: rgba(255, 255, 255, 0.95);
}

.nav-portfolio .portfolio-item:active .portfolio-nav-bar,
.nav-portfolio .portfolio-item.is-touch-hot .portfolio-nav-bar {
  background: rgba(255, 255, 255, 0.09);
}

.nav-portfolio .portfolio-item:active .portfolio-nav-bar::after,
.nav-portfolio .portfolio-item.is-touch-hot .portfolio-nav-bar::after {
  box-shadow:
    0 0 8px color-mix(in srgb, var(--liga-a) 55%, transparent),
    0 0 14px color-mix(in srgb, var(--liga-b) 38%, transparent),
    0 0 16px color-mix(in srgb, var(--liga-c) 30%, transparent);
}

.nav-portfolio .portfolio-item:active .portfolio-nav-bar::before,
.nav-portfolio .portfolio-item.is-touch-hot .portfolio-nav-bar::before {
  opacity: 0.6;
}

.btn-primary:active,
.btn-primary.is-touch-hot,
.btn-ghost:active,
.btn-ghost.is-touch-hot,
.bridge-action-btn:active,
.bridge-action-btn.is-touch-hot,
.mega-btn:active,
.mega-btn.is-touch-hot,
.promo-popup-wa:active,
.promo-popup-wa.is-touch-hot,
.aktion-wa:active,
.aktion-wa.is-touch-hot,
.moment-portal-action:active,
.moment-portal-action.is-touch-hot {
  filter: brightness(1.06);
}

.bridge-action-btn--wa:active,
.bridge-action-btn--wa.is-touch-hot {
  background: rgba(37, 211, 102, 0.16);
  border-color: rgba(37, 211, 102, 0.55);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(37, 211, 102, 0.2);
  transform: translateY(-2px);
}

.bridge-action-btn--mail:active,
.bridge-action-btn--mail.is-touch-hot {
  background: rgba(227, 28, 35, 0.16);
  border-color: rgba(227, 28, 35, 0.55);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(227, 28, 35, 0.22);
  transform: translateY(-2px);
}

.bridge-action-btn--paypal:active,
.bridge-action-btn--paypal.is-touch-hot {
  background: rgba(0, 48, 135, 0.32);
  border-color: rgba(0, 112, 186, 0.55);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(0, 112, 186, 0.22);
  transform: translateY(-2px);
}

.bridge-action-btn--merch:active,
.bridge-action-btn--merch.is-touch-hot {
  background: color-mix(in srgb, var(--liga-c) 18%, transparent);
  border-color: color-mix(in srgb, var(--liga-c) 60%, transparent);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px color-mix(in srgb, var(--liga-c) 28%, transparent);
  transform: translateY(-2px);
}

.top-moment-video-combo.top-moment-kronkorken:active,
.top-moment-video-combo.top-moment-kronkorken.is-touch-hot {
  transform: translate(-50%, -50%) scale(1.05) rotate(-4deg);
  filter:
    drop-shadow(0 16px 22px rgba(0, 0, 0, 0.3))
    drop-shadow(0 32px 48px rgba(0, 0, 0, 0.42));
}

/* Video-Kachel: Hover-Disable nicht für Touch-Feedback am Kronkorken */
.top-moments-grid.is-landed .top-moment-video-tile:active,
.top-moments-grid.is-landed .top-moment-video-tile.is-touch-hot {
  transform: none !important;
}

/* Lichtstrahlen / Shine auch auf Touch-Geräten sichtbar halten */
@media (max-width: 900px) {
  .metal-shine,
  .portfolio-nav-bar::before,
  .portfolio-nav-bar::after,
  .portfolio-glass-glint,
  .season-banner-shine,
  .promo-popup-shine {
    visibility: visible;
  }

  /* Nav-Lauflicht etwas kräftiger auf Handy (ohne Hover) */
  .nav-portfolio .portfolio-nav-bar::after {
    opacity: 1;
    box-shadow:
      0 0 7px color-mix(in srgb, var(--liga-a) 48%, transparent),
      0 0 12px color-mix(in srgb, var(--liga-b) 34%, transparent),
      0 0 14px color-mix(in srgb, var(--liga-c) 28%, transparent);
  }

  .nav-portfolio .portfolio-nav-bar::before {
    opacity: 0.55;
  }
}

/* ========== Querformat-Hinweis (Handy): Seite quer nicht optimal ========== */
.landscape-lock {
  display: none;
}

@media (orientation: landscape) and (max-height: 560px) and (hover: none),
  (orientation: landscape) and (max-width: 950px) and (max-height: 500px) {
  body.landscape-is-locked {
    overflow: hidden !important;
  }

  body.landscape-is-locked .landscape-lock:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
    background:
      radial-gradient(ellipse 80% 70% at 50% 40%, rgba(227, 28, 35, 0.18), transparent 60%),
      rgba(6, 7, 10, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

.landscape-lock[hidden] {
  display: none !important;
}

.landscape-lock-card {
  width: min(100%, 26rem);
  text-align: center;
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 18, 24, 0.92);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.landscape-lock-kicker {
  margin: 0 0 0.55rem;
  font-size: 1.75rem;
  line-height: 1;
  opacity: 0.9;
}

.landscape-lock-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.15rem, 4.5vw, 1.45rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.landscape-lock-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(210, 218, 232, 0.92);
}

@media (prefers-reduced-motion: reduce) {
  .landscape-lock {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Hall of Performance: HB10-Rahmen, abgenommen in der Vorschau */
@property --beam {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

#stats .hof-frame:has(.stats-board[hidden]) {
  display: none;
}

#stats .hof-frame {
  position: relative;
  padding: 4px;
  border-radius: calc(var(--radius) + 8px);
  box-shadow:
    0 0 0 2px rgba(210, 226, 244, 0.75),
    0 18px 40px rgba(0, 0, 0, 0.62);
}

#stats .hof-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 4px;
  background: conic-gradient(
    from var(--beam),
    var(--liga) 0deg,
    var(--liga) 214deg,
    color-mix(in srgb, var(--liga) 70%, #fff) 270deg,
    color-mix(in srgb, var(--liga) 6%, #fff) 322deg,
    color-mix(in srgb, var(--liga) 58%, #fff) 348deg,
    var(--liga) 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: frame-beam 16s linear infinite;
}

@keyframes frame-beam {
  to { --beam: 360deg; }
}

#stats .hof-frame .stats-board {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  padding: 0.5rem;
  border: 1px solid rgba(226, 238, 255, 0.82);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(
    180deg,
    #05070c 0%,
    #0a1c33 6%,
    #0a356f 14%,
    #0a356f 86%,
    #0a1c33 94%,
    #05070c 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55);
}

#stats .hof-frame .stats-board-head,
#stats .hof-frame .hf-history-row {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  background: #071018;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f5f9ff;
}

#stats .hof-frame .stats-board-head::before,
#stats .hof-frame .hf-history-row::before,
#stats .hof-frame .stats-board-head::after,
#stats .hof-frame .hf-history-row::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

#stats .hof-frame .stats-board-head::before,
#stats .hof-frame .hf-history-row::before {
  inset: -16px;
  z-index: 0;
  filter: blur(5px);
}

#stats .hof-frame .stats-board-head::before {
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.14) 0 1px,
      rgba(0, 0, 0, 0.55) 1px 2px,
      transparent 2px 6px
    ),
    linear-gradient(180deg, #07090d 0%, #0c2746 42%, #1664b0 100%);
}

#stats .hof-frame .hf-history-row::before {
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12) 0 1px,
      rgba(0, 0, 0, 0.55) 1px 2px,
      transparent 2px 6px
    ),
    linear-gradient(180deg, #1664b0 0%, #0c2746 58%, #07090d 100%);
}

#stats .hof-frame .stats-board-head::after,
#stats .hof-frame .hf-history-row::after {
  inset: 0;
  z-index: 0;
  mix-blend-mode: multiply;
}

#stats .hof-frame .stats-board-head::after {
  background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.72) 34%, rgba(0, 0, 0, 0) 100%);
}

#stats .hof-frame .hf-history-row::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.45) 48%, #000 100%);
}

#stats .hof-frame .stats-board-head > *,
#stats .hof-frame .hf-history-row > * {
  position: relative;
  z-index: 1;
}

#stats .hof-frame .stats-board-head {
  border-radius: 12px;
  padding: 0.16rem 1rem;
  gap: 0.55rem;
  box-shadow: inset 0 -1px 0 rgba(170, 208, 255, 0.28);
}

#stats .hof-frame .stats-board-head h3,
#stats .hof-frame .stats-board-kicker {
  color: #f7fbff;
  line-height: 1.15;
}

#stats .hof-frame .stats-board-head h3 {
  font-size: 0.92rem;
}

#stats .hof-frame .stats-board-kicker {
  margin-left: auto;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#stats .hof-frame .stats-board-dot {
  background: var(--liga);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--liga) 28%, transparent);
}

#stats .hof-frame .stats-board-body {
  position: relative;
  padding: 0;
  gap: 0.45rem;
}

#stats .hof-frame .spotlight,
#stats .hof-frame .season-static {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0, rgba(255, 255, 255, 0) 11px),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.16) 0 1px,
      rgba(3, 18, 48, 0.2) 1px 2px,
      transparent 2px 6px
    ),
    linear-gradient(180deg, #1b6bc4 0%, #14579f 42%, #104888 100%);
  border: 1px solid rgba(214, 232, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(4, 16, 40, 0.35),
    0 8px 18px rgba(0, 8, 24, 0.28);
  color: #f5f9ff;
}

#stats .hof-frame .spotlight {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  gap: 1.15rem;
  padding: 1.05rem 1.1rem;
}

#stats .hof-frame .spotlight-ring {
  width: 132px;
  height: 132px;
}

#stats .hof-frame .spotlight-num {
  font-size: 2.25rem;
}

#stats .hof-frame .player-name {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

#stats .hof-frame .spotlight::before {
  display: none;
}

#stats .hof-frame .spotlight > * {
  position: relative;
  z-index: 1;
}

#stats .hof-frame .ring-track {
  stroke: rgba(255, 255, 255, 0.28);
}

#stats .hof-frame .ring-arc {
  stroke: var(--liga);
}

#stats .hof-frame .stats-board::after {
  content: "";
  position: absolute;
  inset: -30% -50%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    108deg,
    transparent 26%,
    rgba(255, 255, 255, 0) 36%,
    rgba(255, 255, 255, 0.14) 44%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0.14) 56%,
    rgba(255, 255, 255, 0) 64%,
    transparent 74%
  );
  filter: blur(8px);
  mix-blend-mode: screen;
  animation: metal-sheen 11.9s ease-in-out infinite;
}

@keyframes metal-sheen {
  0%, 40% { transform: translateX(-58%); }
  70%, 100% { transform: translateX(58%); }
}

#stats .hof-frame .player-name,
#stats .hof-frame .player-team,
#stats .hof-frame .spotlight-copy,
#stats .hof-frame .spotlight-num,
#stats .hof-frame .spotlight-unit {
  color: #fff;
  text-shadow: 0 1px 0 #000, 0 2px 4px rgba(0, 0, 0, 0.9);
}

#stats .hof-frame .spotlight-copy {
  display: block;
}

#stats .hof-frame .hof-char {
  display: inline-block;
  color: #fff;
  text-shadow: 0 1px 0 #000, 0 2px 4px rgba(0, 0, 0, 0.9);
  animation: liga-name-run 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.07s);
}

#stats .hof-frame .hof-char--space {
  display: inline;
  white-space: pre;
  animation: none;
  width: 0.28em;
}

@keyframes liga-name-run {
  0%, 12%, 100% {
    color: #fff;
    text-shadow: 0 1px 0 #000, 0 2px 4px rgba(0, 0, 0, 0.9);
  }
  18% {
    color: color-mix(in srgb, var(--liga) 72%, #fff);
    text-shadow: 0 1px 0 #000, 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 6px var(--liga), 0 0 14px var(--liga);
  }
  24% {
    color: color-mix(in srgb, var(--liga) 28%, #fff);
    text-shadow: 0 1px 0 #000, 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 10px var(--liga), 0 0 22px var(--liga);
  }
  32% {
    color: var(--liga);
    text-shadow: 0 1px 0 #000, 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px var(--liga), 0 0 16px var(--liga);
  }
  42% {
    color: #fff;
    text-shadow: 0 1px 0 #000, 0 2px 4px rgba(0, 0, 0, 0.9);
  }
}

#stats .hof-frame .spotlight-badge {
  color: var(--liga-ink, #000);
  background: var(--liga);
  border: 0;
}

#stats .hof-frame .season-static {
  padding: 0.42rem;
  min-height: max-content;
  height: auto;
}

#stats .hof-frame .season-banner,
#stats .hof-frame .season-rows {
  position: relative;
  z-index: 3;
  box-shadow: none;
}

#stats .hof-frame .season-banner {
  min-height: 0;
  border-radius: 10px 10px 0 0;
  background: #eef3f9;
  color: #0e1a2b;
  box-shadow: inset 0 -2px 0 var(--liga);
}

#stats .hof-frame .season-banner-shine {
  display: none;
}

#stats .hof-frame .season-rows {
  border-radius: 0 0 10px 10px;
  background: #f8fbfe;
  color: #0e1a2b;
}

#stats .hof-frame .season-row:nth-child(even) {
  background: #eef3f8;
}

#stats .hof-frame .sb-val:not(.is-counting),
#stats .hof-frame .sb-year,
#stats .hof-frame .sb-year strong,
#stats .hof-frame .sr-num:not(.is-counting) {
  color: #0e1a2b;
}

#stats .hof-frame .sb-lab,
#stats .hof-frame .sb-year-kicker,
#stats .hof-frame .sr-label {
  color: #3e5670;
}

#stats .hof-frame .hf-history-row {
  margin: 0;
  border-radius: 12px;
  padding: 0.22rem 0.5rem;
  gap: 0.28rem 0.5rem;
  box-shadow: inset 0 1px 0 rgba(170, 208, 255, 0.2);
}

#stats .hof-frame .hf-history-label {
  color: #f4f8ff;
}

#stats .hof-frame .hf-history-item {
  padding: 0.1rem 0.42rem;
  background: #f4f8fc;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

#stats .hof-frame .hf-history-val,
#stats .hof-frame .hf-history-player {
  color: #0e1a2b;
  text-shadow: none;
}

#stats .hof-frame .hf-history-team,
#stats .hof-frame .hf-history-season {
  color: #3e5670;
}

@media (max-width: 900px) {
  #stats .hof-frame .stats-board-body {
    grid-template-columns: 1fr;
  }
  #stats .hof-frame .hf-history-row {
    flex-direction: column;
    align-items: stretch;
  }
  #stats .hof-frame .hf-history-list {
    flex-direction: column;
    flex-wrap: wrap;
    overflow: visible;
  }
  #stats .hof-frame .hf-history-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    justify-items: start;
    width: 100%;
    min-width: 0;
    text-align: left;
  }
  #stats .hof-frame .hf-history-player,
  #stats .hof-frame .hf-history-team {
    max-width: none;
    overflow: visible;
    text-overflow: unset;
  }
}

@media (max-width: 560px) {
  #stats .hof-frame .stats-board-kicker {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #stats .hof-frame::before,
  #stats .hof-frame .stats-board::after,
  #stats .hof-frame .hof-char {
    animation: none;
  }
  #stats .hof-frame::before {
    background: var(--liga);
  }
}
