/* ========================================
   neun30 – Podcast-Website Styles
   

   1. Typografie: Work Sans (Headlines + Body) via Google Fonts
   2. Hero: breiteres Bild (60/40), größerer Titel (2.5rem)
   3. Episodenkarten: Score-Badge sichtbar ohne Hover
   4. Sektions-Trennung: Hero leicht bläulicher Hintergrund
   5. Nav-Link: Ghost-Pill mit blauem Rand statt grauem Hintergrund
   6. Player: Dunkler Hintergrund (#1e2a3a) statt Primärblau
   7. About-Hero: Reduzierte Overlay-Deckkraft (0.72)
   ======================================== */

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

:root {
  --color-primary: #528BC5;
  --color-primary-dark: #3a6fa3;
  --color-navy: #1e2a3a;       /* Player-Hintergrund + Highlight-Pills */
  --color-bg: #F2F2F2;
  --color-hero-bg: #EEF3F9; /* Änderung 4: eigene Hero-Hintergrundfarbe */
  --color-white: #FFFFFF;
  --color-text: #1a1a1a;
  --color-text-light: #555;
  --color-border: #ddd;
  /* Änderung 1: Work Sans für Headlines und Body */
  --font-stack: 'Work Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 64px;
}

html {
  scroll-behavior: smooth;
  /* overflow-x: clip statt hidden – verhindert horizontales Scrollen auf iOS Safari
     ohne einen neuen Block-Formatting-Context zu erzeugen (bricht kein position:sticky) */
  overflow-x: clip;
  /* iOS Safari: verhindert automatisches Aufblasen von Font-Sizes in schmalen Flex-Spalten */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* clip statt hidden: erzeugt keinen Scroll-Container → position:sticky im Header bleibt
     in Firefox + Safari funktional. hidden + html{overflow-x:clip} bricht sticky. */
  overflow-x: clip;
}

/* iOS-sicheres Overflow-Containment: overflow-x:hidden auf einem Non-Body-Element
   funktioniert auf allen iOS-Versionen zuverlässig (body/html werden ignoriert) */
.page-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Header --- */
.site-header {
  background: var(--color-white);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 120px;
  will-change: height, background-color;
  transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.scrolled {
  height: var(--header-height);
  background: var(--color-primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  position: relative;
}

.header-logo-img {
  width: auto;
  transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.4s ease;
}

/* Grosses Logo (Querformat mit Claim) – Standard-Zustand */
.header-logo-full {
  height: 80px;
  opacity: 1;
}

/* Ball-Icon – versteckt im Standard-Zustand */
.header-logo-icon {
  height: 40px;
  opacity: 0;
  position: absolute;
  left: 0;
}

/* Scrolled: Grosses Logo ausblenden, Ball-Icon einblenden */
.site-header.scrolled .header-logo-full {
  height: 40px;
  opacity: 0;
  pointer-events: none;
}

.site-header.scrolled .header-logo-icon {
  opacity: 1;
  pointer-events: auto;
}

/* Nav-Links werden weiss im scrolled Zustand (Ghost-Stil bleibt) */
.site-header.scrolled .header-nav a {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
}

.site-header.scrolled .header-nav a:hover,
.site-header.scrolled .header-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
}

.header-logo:hover .header-logo-full {
  opacity: 0.85;
}

.site-header.scrolled .header-logo:hover .header-logo-icon {
  opacity: 0.85;
}

.site-header.scrolled .header-logo:hover .header-logo-full {
  opacity: 0;
}

.header-logo:hover {
  text-decoration: none;
}

.header-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.header-nav a {
  /* Änderung 5: Ghost-Pill – blauer Rand statt grauer Fläche */
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  background: transparent;
  border: 1.5px solid rgba(82, 139, 197, 0.4);
  transition: color 0.2s ease,
              background-color 0.2s ease,
              border-color 0.2s ease;
}

.header-nav a:hover,
.header-nav a.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* --- Hero-Bereich --- */
/* Änderung 4: eigene Hintergrundfarbe für visuellen Abstand zur Filter-Bar */
.hero {
  background: var(--color-hero-bg);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
  /* Änderung 2: Bild bekommt 60%, Content 40% */
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2.25rem;
  align-items: start;
}

/* Hero-Bild-Container: min-width 0 verhindert Überlauf aus dem Grid */
.hero-image {
  min-width: 0;
  overflow: hidden;
  position: relative;
}

/* Play-Overlay auf dem Hero-Bild – nur auf Mobil sichtbar (ab 900px geht Bild + Player nebeneinander) */
.hero-play-overlay {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.hero-play-overlay:active {
  background: rgba(0, 0, 0, 0.1);
}
.hero-play-overlay svg {
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.3));
  transition: transform 0.15s ease;
}
.hero-play-overlay:active svg {
  transform: scale(0.92);
}

@media (max-width: 900px) {
  .hero-play-overlay { display: flex; }
}

.hero-content {
  min-width: 0;
}

.hero-image img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-bg);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-placeholder img {
  width: 50%;
  opacity: 0.4;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* Änderung B: war 0.85rem – engerer Rhythmus */
}

.hero-episode-number {
  font-size: 0.92rem;
  font-weight: 500;
  font-family: var(--font-stack);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Änderung 2: Headline deutlich größer, Display-Font */
.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-stack); /* Änderung 1 */
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem; /* Änderung B: Mini-Pause nach dem Titel */
}

.hero-subtitle {
  font-size: 0.92rem; /* Änderung B: war 1rem – näher an der Meta-Zeile */
  color: var(--color-text-light);
  font-weight: 500;
}


.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  font-size: 0.92rem; /* gleiche Größe wie hero-subtitle */
  font-weight: 500;
  color: var(--color-text-light);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Nur Gegner-Pill im Hero-Meta als Plain Text (bleibt klickbarer Link); alle anderen Pills sichtbar */
.hero-meta .filter-pill-opponent {
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  color: inherit;
  margin: 0;
}

.hero-meta .filter-pill-opponent:hover {
  background: none;
  border-color: transparent;
  color: var(--color-primary);
  text-decoration: underline;
}

.hero-description {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
}

/* --- neun30 Audio-Player --- */
.n30-player {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #1e2a3a; /* Änderung 6: dunkles Blau-Grau statt Primärblau */
  border-radius: 12px;
  padding: 1.35rem 1.25rem;
  margin-top: 0.75rem;
  color: #fff;
  min-width: 0;
  width: 100%;
}

/* Logo links – rundes Icon, dreht sich beim Abspielen */
.n30-player-logo-wrap {
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

/* Spinner-Ring außen ums Logo – nur sichtbar im Lade-Zustand */
.n30-player-logo-wrap::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: var(--color-primary);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.n30-player.loading .n30-player-logo-wrap::after {
  opacity: 1;
  animation: spin-logo 0.9s linear infinite;
}

.n30-player-logo-wrap:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.n30-player-logo {
  width: 62px;
  height: 62px;
  border-radius: 50%;
}

@keyframes spin-logo {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-loading {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.n30-player.playing .n30-player-logo {
  animation: spin-logo 3s linear infinite;
}

/* Ball pulsiert während Laden, dreht aber noch nicht */
.n30-player.loading .n30-player-logo {
  animation: pulse-loading 1.1s ease-in-out infinite;
}

.n30-player.playing .n30-player-logo-wrap:hover .n30-player-logo {
  animation-play-state: paused;
}

/* Transport-Buttons: Skip-Back, Play/Pause, Skip-Forward */
.n30-player-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.n30-player-play {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.n30-player-play:hover {
  background: rgba(255, 255, 255, 0.3);
}

.n30-player-icon-play,
.n30-player-icon-pause {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.n30-player-icon-pause { display: none; }
.n30-player.playing .n30-player-icon-play { display: none; }
.n30-player.playing .n30-player-icon-pause { display: block; }

.n30-player-skip {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 0;
}

.n30-player-skip:hover {
  opacity: 1;
}

.n30-player-skip svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Body: Titel + Fortschritt */
.n30-player-body {
  flex: 1;
  min-width: 0;
}

.n30-player-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0.4rem;
  width: 100%;
}

/* Titel: bis zu zwei Zeilen, dann abschneiden */
.n30-player-title {
  font-size: 0.88rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  line-height: 1.35;
}

/* Folgennummer: mittig in der Zeitzeile */
.n30-player-episode-num {
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  text-align: center;
}

.n30-player-progress {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.n30-player-bar {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease;
  transform-origin: center;
}

@media (hover: hover) {
  .n30-player-bar:hover { transform: scaleY(1.5); }
}

.n30-player-bar-buffered {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  width: 0;
  transition: width 0.3s;
}

.n30-player-bar-filled {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #fff;
  border-radius: 4px;
  width: 0;
  z-index: 1;
  transition: width 0.1s linear;
}

.n30-player-times {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 0.75rem;
}

.n30-player-time-current,
.n30-player-time-total {
  opacity: 0.65;
}

.n30-player-time-total {
  text-align: right;
}

/* --- Split-Layout (Hero-Player) --- */
.n30-player--split {
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

/* Obere Zone: drehendes Logo links + Episodeninfo rechts */
.n30-player-split-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem 1rem;
}

.n30-player--split .n30-player-logo-wrap {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border: 1.5px solid rgba(82, 139, 197, 0.35);
  box-shadow: 0 0 0 4px rgba(82, 139, 197, 0.08);
}

.n30-player--split .n30-player-logo {
  width: 52px;
  height: 52px;
}

/* Body: Titel + Episodennummer */
.n30-player--split .n30-player-body {
  flex: 1;
  min-width: 0;
}

.n30-player--split .n30-player-info {
  margin-bottom: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.n30-player--split .n30-player-episode-num {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #528BC5;
  opacity: 0.9;
}

.n30-player--split .n30-player-title {
  font-size: 0.82rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

/* Trennlinie zwischen den Zonen */
.n30-player-split-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0;
}

/* Untere Zone: Controls + Fortschritt */
.n30-player-split-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.9rem 1.25rem 1.1rem;
}

/* Controls: zentriert */
.n30-player--split .n30-player-controls {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

/* Play-Button: Primärblau */
.n30-player--split .n30-player-play {
  background: #528BC5;
  width: 48px;
  height: 48px;
  min-width: 48px;
}

.n30-player--split .n30-player-play:hover {
  background: #6da0d5;
}

/* Skip-Buttons: runder Rahmen, schlichtes Pfeil-Icon + "15"-Label */
.n30-player--split .n30-player-skip {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  opacity: 1;
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
}

.n30-player--split .n30-player-skip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  transform: scale(1.08);
}

.n30-player--split .n30-player-skip svg {
  width: 16px;
  height: 16px;
}

.n30-player-skip-label {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
}

/* Fortschrittsbalken: volle Breite */
.n30-player--split .n30-player-progress {
  width: 100%;
}

/* Zeitzeile: links/rechts ohne mittiges Element */
.n30-player--split .n30-player-times {
  display: flex;
  justify-content: space-between;
  grid-template-columns: unset;
}

/* Pill-Links unter dem Player */
.player-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.player-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  border: 1.5px solid rgba(82, 139, 197, 0.35);
  color: var(--color-primary);
  background: rgba(82, 139, 197, 0.06);
  cursor: pointer;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
}

.player-pill svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.player-pill:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* Karte-Link: Desktop = Textpille rechts, Mobile = Icon-Pill */
.player-pill.karte-link-mobile {
  display: inline-flex;
}
.player-pill.karte-link-desktop {
  display: none;
  width: auto;
  border-radius: 20px;
  padding: 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  margin-left: auto;
}
@media (min-width: 601px) {
  .player-pill.karte-link-desktop { display: inline-flex; }
  .player-pill.karte-link-mobile  { display: none; }
}

/* Teilen-Pill: Navy (= Player-Hintergrundfarbe) als Ausgangszustand, Hover auf Hellblau */
.player-pill-share {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #fff;
}
.player-pill-share:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}


/* Filter-Pills (Gegner + Saison + Spezial) */
.filter-pill-opponent,
.filter-pill-season,
.filter-pill-auswaerts,
.filter-pill-spezial {
  display: inline-flex;
  align-items: center;
  background: rgba(82, 139, 197, 0.06);
  border: 1px solid rgba(82, 139, 197, 0.3);
  border-radius: 20px;
  padding: 0.1rem 0.55rem;
  margin: 0 0.1rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.9em;
  color: var(--color-primary);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  vertical-align: baseline;
  -webkit-appearance: none;
  appearance: none;
}

.filter-pill-opponent:hover,
.filter-pill-season:hover,
.filter-pill-auswaerts:hover,
.filter-pill-spezial:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Hervorhebungs-Pill: Navy (= Player-Hintergrundfarbe) – für Interview und hervorgehobene Kategorien */
.filter-pill-highlight,
.filter-pill-spezial[data-spezial="interview"] {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #fff;
}
.filter-pill-highlight:hover,
.filter-pill-spezial[data-spezial="interview"]:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}

/* Grau-Pill: neutrale Darstellung für Extra-Teams */
.filter-pill-grey {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 20px;
  padding: 0.1rem 0.55rem;
  margin: 0 0.1rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.9em;
  color: #666;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  vertical-align: baseline;
  -webkit-appearance: none;
  appearance: none;
}
.filter-pill-grey:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* --- Filter & Suche --- */
.filter-bar {
  background: var(--color-white);
  /* Änderung 4: sichtbare Trennlinie oben */
  border-top: 2px solid var(--color-border);
}

.filter-bar-inner-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.filter-inner {
  display: flex;
  gap: 0.75rem;
  flex-wrap: nowrap; /* Desktop: immer eine Zeile */
  align-items: center;
}

.filter-inner input[type="text"],
.filter-inner select {
  padding: 0.65rem 1rem;
  height: 2.75rem;
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-stack);
  background-color: rgba(82, 139, 197, 0.06);
  color: var(--color-primary);
  transition: border-color 0.2s, background-color 0.2s, background-image 0s, color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  min-width: 0; /* Flex darf Elemente schrumpfen lassen */
}

.filter-inner input[type="text"]:focus,
.filter-inner select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(82, 139, 197, 0.15);
}

.filter-inner input[type="text"] {
  flex: 3; /* Suchfeld bekommt deutlich mehr Platz (Thema-Filter entfernt) */
}

.filter-inner select {
  flex: 1; /* Alle Selects teilen den Platz gleichmäßig */
  /* Nativen Browser-Pfeil entfernen → Custom-Pfeil via background-image */
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.5rem; /* Platz für Custom-Pfeil */
  /* Custom-Pfeil: blau (Standardzustand) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23528BC5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  cursor: pointer;
}

/* Hover: kein Farbwechsel bei den Dropdowns */
.filter-inner select:hover {}

/* Aktiver Filter visuell markiert */
.filter-inner select.active-filter {
  border-color: var(--color-primary);
  background-color: rgba(82, 139, 197, 0.05);
}

.filter-inner input[type="text"]::placeholder {
  color: var(--color-primary);
  opacity: 0.6;
}

.filter-sort {
  padding: 0;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  background: rgba(82, 139, 197, 0.06);
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--color-primary);
  font-family: var(--font-stack);
  font-weight: 700;
  transition: all 0.2s;
  box-sizing: border-box;
  flex: 0 0 2.75rem; /* feste Breite, kein Wachsen/Schrumpfen */
  text-align: center;
}

.filter-sort:hover {
  background: var(--color-primary);
  color: #fff;
}

.filter-reset {
  padding: 0.65rem 1rem;
  height: 2.75rem;
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #fff;
  font-family: var(--font-stack);
  font-weight: 500;
  transition: all 0.2s;
  box-sizing: border-box;
  white-space: nowrap;
  flex: 0 0 auto; /* feste Breite, kein Wachsen */
}

.filter-reset:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
}

.filter-reset.hidden {
  display: none;
}

.filter-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 1rem;
  height: 2.75rem;
  background: rgba(82, 139, 197, 0.06);
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  color: var(--color-primary);
  font-family: var(--font-stack);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: background 0.2s;
  box-sizing: border-box;
}
.filter-map-btn:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* Toggle-Button: auf Desktop unsichtbar */
.filter-mobile-toggle {
  display: none;
}

/* Filter-Dropdowns-Container: auf Desktop immer als Flex-Items sichtbar */
.filter-dropdowns {
  /* display: contents hatte Safari-Bug: border bei <a>-Elementen wurde nicht gerendert */
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

/* Filter-Status: aktive Filter als Chips + Ergebniszahl */
.filter-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, margin-top 0.25s ease, padding-top 0.25s ease;
}

.filter-status.has-chips {
  max-height: 120px;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

/* Einzelner aktiver Filter-Chip */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 20px;
  padding: 0.3rem 0.4rem 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
}

.filter-chip-label {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0;
  transition: background 0.15s;
}

.filter-chip-remove:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Ergebniszahl rechts */
.filter-result-count {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-left: auto;
  white-space: nowrap;
}

/* --- Episoden-Grid --- */
.episodes-section {
  background: var(--color-white);
  padding: 0 0 2rem;
}

.episodes-section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

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

.episode-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.episode-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Branded Shimmer-Animation: neun30-Blautöne statt generisches Grau */
@keyframes neun30-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.episode-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  /* Shimmer-Hintergrund sichtbar solange Bild lädt */
  background: linear-gradient(90deg, #e0ecf8 25%, #f0f7fd 50%, #e0ecf8 75%);
  background-size: 400% 100%;
  animation: neun30-shimmer 1.6s ease infinite;
  transition: filter 0.32s ease-out;
}

/* Shimmer abschalten sobald HQ-Bild geladen (data-hq entfernt) */
.episode-card-image:not([data-hq]) {
  background: none;
  animation: none;
}

/* Hero-Bild auf Karte: im Grid nicht anzeigen (nur im Modal) */
.episode-card-hero-image {
  display: none;
}

/* Solange Thumbnail aktiv (data-hq noch vorhanden): leicht unscharf */
.episode-card-image[data-hq] {
  filter: blur(5px);
  transform: scale(1.02); /* verhindert sichtbaren Rand durch blur */
}

/* Branded Placeholder für Folgen ganz ohne Bild */
.episode-card-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, #e0ecf8 25%, #f0f7fd 50%, #e0ecf8 75%);
  background-size: 400% 100%;
  animation: neun30-shimmer 2s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.episode-card-placeholder img {
  width: 36%;
  opacity: 0.18;
}

/* Info unterhalb des Bildes – ausgeblendet fuer ruhigeres Design */
.episode-card-info {
  display: none;
}

.episode-card-date {
  font-size: 0.7rem;
  color: var(--color-text-light);
  margin-bottom: 0.15rem;
}

.episode-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode-card-opponent {
  font-size: 0.7rem;
  color: var(--color-text-light);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Kachel-Layout fuer Folgen ohne eigenes Sendungsbild (0-53) */
.episode-card-logo-layout {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.episode-card-logo-layout img {
  width: 75%;
  margin-top: 8%;
}

/* Label fuer Folgen ohne eigenes Sendungsbild */
.episode-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 2rem 0.65rem 0.55rem;
  transition: opacity 0.25s;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 1;
  pointer-events: none;
}

.episode-card-label-number {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.episode-card-label-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hover-Overlay (gesamte Kachel) */
.episode-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(82, 139, 197, 0.92);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: 8px;
}

.episode-card:hover .episode-card-overlay {
  opacity: 1;
}

.episode-card:hover .episode-card-label {
  opacity: 0;
}

/* Änderung 3: Score-Badge beim Hover ausblenden, der Overlay zeigt ihn sowieso */
.episode-card:hover .episode-card-score {
  opacity: 0;
}

/* Datum + Folgennummer kombiniert in einer Zeile */
.episode-card-overlay-meta {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.35rem;
}

/* Kompatibilität: alte Klassen verbergen falls noch vorhanden */
.episode-card-overlay-date,
.episode-card-overlay-number {
  display: none;
}

.episode-card-overlay-title {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-stack); /* Änderung 1 */
  color: #fff;
  line-height: 1.2;
}

.episode-card-overlay-match {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 0.75rem;
  line-height: 1.3;
  font-weight: 500;
}

/* Interview-Kachel: dunkelblaues Overlay statt hellblau */
.episode-card--interview .episode-card-overlay {
  background: var(--color-navy);
}

.episode-card-overlay-interview {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-top: 0.4rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Änderung 3: Score-Badge – immer sichtbar oben rechts */
.episode-card-score {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-family: var(--font-stack); /* Änderung 1 */
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  z-index: 2;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  transition: opacity 0.2s;
  line-height: 1.3;
}


/* --- Modal --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden; /* Swipe-Animation auf Mobile korrekt abschneiden */
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-white);
  border-radius: 12px;
  max-width: 800px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
}

.modal-backdrop.closing .modal {
  transform: translateY(18px) scale(0.97);
  opacity: 0;
  transition: transform 0.18s ease-in, opacity 0.18s ease-in;
  pointer-events: none;
}

.modal-backdrop.closing {
  opacity: 0;
  transition: opacity 0.18s ease-in, visibility 0.18s ease-in;
}

/* Navigation-Feedback beim Modal-Blättern: deutlicheres Slide-In */
@keyframes modal-swipe-from-right {
  from { transform: translateX(56px) scale(0.97); opacity: 0; }
  to   { transform: translateX(0)    scale(1);    opacity: 1; }
}
@keyframes modal-swipe-from-left {
  from { transform: translateX(-56px) scale(0.97); opacity: 0; }
  to   { transform: translateX(0)     scale(1);    opacity: 1; }
}
.modal.swipe-from-right { animation: modal-swipe-from-right 0.2s cubic-bezier(0.22, 1, 0.36, 1) both; }
.modal.swipe-from-left  { animation: modal-swipe-from-left  0.2s cubic-bezier(0.22, 1, 0.36, 1) both; }

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(82, 139, 197, 0.12);
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: var(--color-primary);
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: var(--color-primary);
  color: white;
}

.modal-body {
  padding: 1.5rem;
}

/* Modal-Header: Titel-Block oben */
.modal-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
}

.modal-episode-number {
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-stack);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
  display: block;
}

.modal-title {
  font-size: 1.9rem;
  font-weight: 800;
  font-family: var(--font-stack); /* Änderung 1 */
  line-height: 1.15;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.modal-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
  margin-top: 0.2rem;
}

/* Ergebnis + Halbzeitergebnis dürfen nicht umbrechen */
.score-nowrap { white-space: nowrap; }

/* Modal-Grid: Bild links, Text rechts – gleich breit */
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.modal-grid-image {
  position: relative;
}

.modal-grid-image img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Hero-Bild im Modal: liegt über dem Sendungsbild, blendet bei Hover ein */
.modal-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* aspect-ratio: auto überschreibt das ererbte 1/1 von .modal-grid-image img */
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

/* Nur auf Geräten mit echter Hover-Unterstützung (Desktop) einblenden –
   auf Touch-Geräten bleibt das Hero-Bild unsichtbar (kein Sticky-Hover-Problem) */
@media (hover: hover) {
  .modal-grid-image:hover .modal-hero-image {
    opacity: 1;
  }
}

.modal-grid-image .modal-image-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-grid-image .modal-image-placeholder img {
  width: 40%;
  opacity: 0.3;
}

.modal-grid-text {
  display: flex;
  flex-direction: column;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
  margin-top: 0.4rem;
}

/* Nur Gegner-Pill im Modal-Meta als Plain Text; Auswärts/Spezial-Pills behalten ihre Pill-Optik */
.modal-meta .filter-pill-opponent {
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  color: inherit;
  margin: 0;
}

.modal-meta .filter-pill-opponent:hover {
  background: none;
  border-color: transparent;
  color: var(--color-primary);
  text-decoration: underline;
}

.modal-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.modal-description {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-text);
  flex: 1;
}

.modal-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.modal-links a {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-primary);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-primary);
  transition: all 0.2s;
}

.modal-links a:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* Spotify-Player: volle Breite unten */
.modal-player {
  margin-bottom: 0.5rem;
}

.modal-player iframe {
  border-radius: 12px;
}

/* Modal-Navigation (Prev/Next) */
.modal-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 210;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(82, 139, 197, 0.35);
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.modal-nav:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}

.modal-nav svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.modal-nav-prev {
  left: max(0.75rem, calc(50% - 440px));
}

.modal-nav-next {
  right: max(0.75rem, calc(50% - 440px));
}

/* --- Footer --- */
.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  margin-top: auto;
  padding: 2rem 1rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.footer-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

.footer-link-icon {
  display: inline-flex;
  align-items: center;
}

.footer-link-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0.8;
  flex-shrink: 0;
}

.footer-links a:hover .footer-link-icon svg {
  opacity: 1;
}

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

.footer-copy {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-impressum {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-impressum:hover,
.footer-impressum.active {
  color: rgba(255, 255, 255, 0.85);
}

.footer-logo {
  height: 20px;
  width: 20px;
  opacity: 0.5;
}

/* --- Impressum-Seite --- */
.impressum-content,
.about-content.impressum-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.impressum-headline {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-stack); /* Änderung 1 */
  margin-bottom: 1.5rem;
  color: #111;
}

.impressum-content .about-card ul {
  margin: 0.75rem 0 0.75rem 1.25rem;
  padding: 0;
}

.impressum-content .about-card ul li {
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

/* --- About-Seite --- */
.about-section {
  margin: 0 auto;
  /* overflow-x:hidden auf einem Non-Body-Element ist iOS-sicher (clip erst ab iOS 15.4) */
  overflow-x: hidden;
}

.about-hero {
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Hintergrundbild: füllt den ganzen Hero */
.about-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}

/* Dunkler Gradient von unten – Lesbarkeit des Textes */
.about-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 20, 40, 0.15) 0%,
    rgba(10, 20, 40, 0.35) 45%,
    rgba(10, 20, 40, 0.88) 100%
  );
  z-index: 1;
}

.about-hero-overlay {
  position: relative;
  z-index: 2;
  padding: 5rem 1rem 3.5rem;
}

.about-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.about-hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  font-family: var(--font-stack);
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.about-hero-tagline {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  max-width: 560px;
}

.about-hero-claim {
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
}

.about-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1rem 2rem;
  display: grid;
  gap: 1.5rem;
}

.about-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.about-card h2 {
  font-size: 1.2rem;
  font-family: var(--font-stack); /* Änderung 1 */
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-primary);
  letter-spacing: 0.01em;
}

.about-card p {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

/* FAQ-Karte */
.about-faq {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-faq-item {
  border-bottom: 1px solid var(--color-bg);
  padding-bottom: 0.5rem;
}

.about-faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.about-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
  padding: 0.4rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.about-faq-item summary::-webkit-details-marker { display: none; }

.about-faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--color-primary);
  line-height: 1;
  flex-shrink: 0;
}

.about-faq-item[open] summary::after {
  content: '–';
}

.about-faq-item p {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.about-card-beta {
  background: var(--color-bg);
  border-left: 4px solid var(--color-primary);
}

/* Beta-Karte mit Trailer-Player: 2-Spalten */
.about-card-beta-trailer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.about-card-beta-trailer .about-beta-content h2 {
  margin-bottom: 0.75rem;
}

.about-card-beta p {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* Rechte Spalte im About-Grid: zwei Karten gestapelt */
.about-right-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Beta-Karte in der rechten Spalte: Text oben, Player darunter */
.about-right-col .about-card-beta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.about-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.about-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.4rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.about-link-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  color: #fff;
}

.about-link-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.about-link-name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.about-link-sub {
  font-size: 0.78rem;
  opacity: 0.8;
}

/* Saison-Filter-Button in der Pills-Zeile: fließt links mit den anderen Pills */
.player-pill-season-filter {
  font-size: 0.8rem;
  padding: 0 0.75rem;
  height: 36px;
  white-space: nowrap;
}

/* --- Share-Menü (Fallback wenn kein nativer Teilen-Dialog) --- */
.share-menu {
  position: absolute;
  z-index: 300;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  border: 1.5px solid rgba(82, 139, 197, 0.25);
  overflow: hidden;
  animation: share-menu-in 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes share-menu-in {
  from { opacity: 0; transform: translateY(6px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Blauer Header-Streifen */
.share-menu-header {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  user-select: none;
}

/* Trennlinie zwischen Items */
.share-menu-divider {
  height: 1px;
  background: rgba(82, 139, 197, 0.12);
  margin: 0 0.75rem;
}

.share-menu-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.share-menu-item:hover {
  background: rgba(82, 139, 197, 0.08);
  color: var(--color-primary-dark);
}

.share-menu-item svg {
  flex-shrink: 0;
  fill: currentColor;
  opacity: 0.75;
}

.share-menu-item:hover svg {
  opacity: 1;
}

/* --- Zurück-nach-oben-Button --- */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
  z-index: 150;
}

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

.back-to-top:hover {
  background: var(--color-primary-dark);
}

/* --- Accessibility: visuell versteckter Text für Screenreader und SEO (C3) --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Keine Ergebnisse --- */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-light);
  font-size: 1.1rem;
  grid-column: 1 / -1;
}

/* ========================================
   Responsive – alle Media Queries gebündelt
   ======================================== */

/* --- Modal-Nav: etwas kleinere Screens --- */
@media (max-width: 960px) {
  .modal-nav-prev { left: 0.4rem; }
  .modal-nav-next { right: 0.4rem; }
  .modal-nav { width: 38px; height: 38px; }
  .modal-nav svg { width: 22px; height: 22px; }
}

/* --- Tablet --- */
@media (max-width: 900px) {
  /* Hero: zurück auf 1 Spalte */
  .hero-inner { grid-template-columns: 1fr; }
  /* Grid */
  .episodes-grid { grid-template-columns: repeat(3, 1fr); }
  .episode-card-opponent { display: none; }
}

/* --- Tablet: Filter umbrechen --- */
@media (max-width: 768px) {
  .filter-inner { flex-wrap: wrap; }
  .filter-inner input[type="text"] { flex: 1 1 100%; }
  .filter-inner select { flex: 1 1 calc(50% - 0.5rem); min-width: 120px; }

  /* Zoom beim Fokussieren verhindern – Browser zoomen automatisch bei font-size < 16px */
  .filter-inner input[type="text"],
  .filter-inner select {
    font-size: 1rem;
  }
}

/* --- Handy --- */
@media (max-width: 600px) {
  :root { --header-height: 56px; }

  /* Header */
  .site-header { height: 90px; }
  .header-logo-full { height: 56px; }
  .header-logo-icon { height: 32px; }
  .site-header.scrolled .header-logo-full { height: 32px; }
  .header-nav { gap: 1rem; }
  .header-nav a { font-size: 0.85rem; }

  /* Hero: kleinerer Titel auf Handy */
  .hero-inner { padding: 1.5rem 1rem; }
  .hero-title { font-size: 1.9rem; }

  /* Player */
  .n30-player { padding: 0.9rem 0.85rem; gap: 0.65rem; }
  .n30-player-logo-wrap, .n30-player-logo { width: 48px; height: 48px; }
  .n30-player-play { width: 44px; height: 44px; min-width: 44px; }
  .n30-player-skip { width: 34px; height: 34px; }
  .n30-player-skip svg { width: 24px; height: 24px; }
  .n30-player-title { font-size: 0.82rem; }
  .n30-player-episode-num { display: none; }
  .n30-player-times { display: flex; justify-content: space-between; }

  /* Filter: Toggle-Button + Dropdowns */
  .filter-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.75rem;
    padding: 0 1rem;
    background: rgba(82, 139, 197, 0.06);
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: background 0.2s;
  }
  .filter-mobile-toggle:hover,
  .filter-mobile-toggle[aria-expanded="true"] {
    background: var(--color-primary);
    color: var(--color-white);
  }
  .filter-dropdowns {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .filter-dropdowns.open { display: flex; }
  .filter-dropdowns select,
  .filter-dropdowns .filter-sort,
  .filter-dropdowns .filter-reset {
    width: 100%;
    min-width: unset;
    flex: none;
  }
  .filter-dropdowns .filter-map-btn {
    width: auto;
    flex: 0 0 auto;
    font-size: 1rem; /* gleiche Größe wie Selects auf Mobile (verhindert Zoom) */
  }
  .filter-inner { flex-wrap: wrap; align-items: center; }
  .filter-inner input[type="text"] { flex: 1 1 auto; min-width: 0; }

  /* Grid */
  .episodes-grid { grid-template-columns: repeat(2, 1fr); }
  .episode-card-opponent { display: none; }

  /* Modal */
  .modal { width: 100%; height: 100%; max-height: 100vh; border-radius: 0; padding-bottom: 52px; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-grid-image img { max-width: 100%; margin: 0 auto; }

  /* Modal-Navigation: auf Mobile ausblenden */
  .modal-nav { display: none; }

  /* About */
  .about-grid-two { grid-template-columns: 1fr; }
  .about-card-beta-trailer { grid-template-columns: 1fr; }
  .about-hero { min-height: 55vh; }
  .about-hero h1 { font-size: 2rem; }
  .about-hero-overlay { padding: 3rem 1rem 2.5rem; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* --- Startseite: Stats-Strip (nach Hero, vor Filter) --- */
.home-stats-strip {
  background: #1e2a3a;
  padding: 2rem 1rem;
}

/* Saisons + Seit auf Mobile/Tablet ausblenden → nur 3 Werte in einer Zeile */
/* Doppelte Klasse für höhere Spezifität (überschreibt .about-stat-item { display: flex }) */
@media (max-width: 768px) {
  .about-stat-item.home-stat-hide-mobile { display: none; }
}

/* Home-Stats-Strip auf Mobile: 3 Items gleichmäßig verteilt */
@media (max-width: 600px) {
  #home-stats .about-stats-inner {
    justify-content: space-evenly;
    gap: 0;
  }
  #home-stats .about-stat-item {
    flex: 1;
    min-width: 0;
  }
}


/* --- About-Seite: Platform-Links – neun30-Blau als Base, Brandfarbe bei Hover --- */
.about-link-spotify,
.about-link-apple,
.about-link-instagram,
.about-link-mastodon  { background: var(--color-primary); }

.about-link-spotify:hover   { background: #1DB954; }
.about-link-apple:hover     { background: #fc3c44; }
.about-link-instagram:hover { background: #E4405F; }
.about-link-mastodon:hover  { background: #6364FF; }

/* --- About-Seite: neue Elemente (Stats-Strip, Trailer-Section, Redesign 2026) --- */

/* "Harry & Flo" Label über der H1 im Hero */
.about-hero-hosts {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

/* Stats-Strip: dunkler Balken, gleiche Farbe wie Player */
.about-stats-strip {
  background: #1e2a3a;
  padding: 2rem 1rem;
}

.about-stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  flex-wrap: wrap;
}

.about-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 80px;
}

.about-stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  font-family: var(--font-stack);
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.about-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
}

/* Hauptinhalt-Grid: 60/40 */
.about-grid-main {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.5rem;
}

/* E-Mail-Link in Kontaktkarte */
.about-email-link {
  display: inline-block;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 1.05rem;
  margin-top: 0.5rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.about-email-link:hover {
  border-bottom-color: var(--color-primary);
  text-decoration: none;
}

/* Trailer-Section: prominente blaue Section */
.about-trailer-section {
  background: var(--color-primary);
  padding: 3rem 0 2rem;
}

.about-trailer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.about-trailer-heading {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-stack);
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.about-trailer-note {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
}

/* Responsive: About-Redesign */
@media (max-width: 768px) {
  .about-grid-main { grid-template-columns: 1fr; }
  .about-stat-num { font-size: 1.8rem; }
  .about-stats-inner { justify-content: center; gap: 1.5rem 2rem; }
  .about-trailer-heading { font-size: 1.4rem; }
}

/* --- Impressum-Seite: Header-Banner (dunkel, wie Modal/Player) --- */
.impressum-banner {
  background: #1e2a3a;
  color: #fff;
  padding: 3.5rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

/* Dezenter Hintergrund-Akzent */
.impressum-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(82,139,197,.18) 0%, transparent 70%);
  pointer-events: none;
}

.impressum-banner-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.impressum-banner-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(82,139,197,.15);
  border: 1px solid rgba(82,139,197,.3);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 1rem;
}

.impressum-banner h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  font-family: var(--font-stack);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

.impressum-banner-sub {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,.55);
  font-weight: 400;
}

/* Intro-Karte: leicht getönt */
.impressum-card-intro {
  background: rgba(82,139,197,.05);
  border: 1px solid rgba(82,139,197,.12);
}

/* Karte "Warum kein Impressum" hervorheben */
.impressum-card-highlight {
  border-left: 4px solid var(--color-primary);
  background: linear-gradient(135deg, rgba(82,139,197,.06) 0%, var(--color-white) 50%);
}

/* Karten-Header: Icon + Heading nebeneinander */
.impressum-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.impressum-card-header h2 {
  margin: 0;
  padding: 0;
}

.impressum-card-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #1e2a3a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.impressum-card-icon svg {
  width: 18px;
  height: 18px;
}

.impressum-card-icon--blue {
  background: var(--color-primary);
}

/* Kontakt + Haftung: 2-Spalten-Grid */
.impressum-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .impressum-two-col {
    grid-template-columns: 1fr;
  }
}

/* --- Touch-Geräte --- */
@media (hover: none) {
  .n30-player-bar { height: 14px; border-radius: 7px; }
  .n30-player-bar-buffered, .n30-player-bar-filled { border-radius: 7px; }
  .episode-card-overlay { display: none; }
  /* Score-Badge auf Touch-Geräten immer sichtbar halten */
  .episode-card-score { opacity: 1 !important; }
}

/* --- Microanimations --- */

/* Hero: gestaffeltes Einblenden beim Laden */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-episode-number { animation: heroFadeIn 0.4s ease-out both; }
.hero-title          { animation: heroFadeIn 0.4s ease-out 0.07s both; }
.hero-subtitle       { animation: heroFadeIn 0.4s ease-out 0.12s both; }
.hero-meta           { animation: heroFadeIn 0.4s ease-out 0.16s both; }
.hero-description    { animation: heroFadeIn 0.4s ease-out 0.20s both; }

/* Filter-Chips: klein reinscalen wenn sie auftauchen */
@keyframes chipIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.filter-chip { animation: chipIn 0.18s ease-out both; }

/* Karten: gestaffeltes Einblenden beim Laden (--card-index wird per JS gesetzt) */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.episode-card {
  animation: cardIn 0.3s ease-out both;
  animation-delay: calc(var(--card-index, 0) * 40ms);
}

/* Karten: Bild leicht zoomen beim Hover */
.episode-card .episode-card-image {
  transition: transform 0.4s ease, filter 0.32s ease-out;
}
.episode-card:hover .episode-card-image:not([data-hq]) {
  transform: scale(1.04);
}

/* Play-Button: kurzer Bounce beim Starten */
@keyframes playPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.n30-player.playing .n30-player-play {
  animation: playPulse 0.22s ease-out;
}

/* Filter-Chip: Shrink beim Entfernen */
@keyframes chipOut {
  to { opacity: 0; transform: scale(0.7); }
}

.filter-chip.removing {
  animation: chipOut 0.15s ease-in both;
  pointer-events: none;
}

/* Karten: Overlay-Auswaerts-Label nicht mehr anzeigen (entfernt per CSS als Fallback) */
.episode-card-overlay-auswaerts { display: none; }

/* ============================================================
   Kontaktformular (about.html)
   ============================================================ */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
}

.contact-form input[type="email"],
.contact-form input[type="text"],
.contact-form textarea {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 1rem;
  border: 1px solid var(--color-primary);
  border-radius: 6px;
  font-family: var(--font-stack);
  font-size: 0.9rem;
  color: var(--color-text);
  background: #fff;
  transition: box-shadow 0.15s;
}

.contact-form input[type="email"]:focus,
.contact-form input[type="text"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(82, 139, 197, 0.15);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

/* Honeypot: vor Nutzern verstecken, aber Screen-Reader-safe */
.contact-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form-submit {
  align-self: flex-start;
  padding: 0.65rem 1.5rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font-stack);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.contact-form-submit:hover {
  background: #3d72b0;
  transform: translateY(-1px);
}

.contact-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.contact-form-feedback {
  padding: 0.7rem 1rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  display: none;
}

.contact-form-feedback.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  display: block;
}

.contact-form-feedback.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
  display: block;
}

/* Bestätigung nach Formular-Versand */
.contact-success {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
}

.contact-success-icon {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.contact-success-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.contact-success-text {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.contact-success-reset {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-family: var(--font-stack);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.contact-success-reset:hover {
  background: var(--color-primary);
  color: #fff;
}
