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

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

:root {
  --color-primary: #528BC5;
  --color-primary-dark: #3a6fa3;
  --color-bg: #F2F2F2;
  --color-white: #FFFFFF;
  --color-text: #1a1a1a;
  --color-text-light: #555;
  --color-border: #ddd;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 64px;
}

html {
  scroll-behavior: smooth;
}

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;
}

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 */
.site-header.scrolled .header-nav a {
  color: rgba(255, 255, 255, 0.85);
}

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

.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 {
  color: #999;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04); /* Leicht grau – zeigt Klickbarkeit */
  transition: color 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.3s ease;
}

.header-nav a:hover,
.header-nav a.active {
  background: rgba(0, 0, 0, 0.09);
  color: #555;
  text-decoration: none;
}

/* --- Hero-Bereich --- */
.hero {
  background: var(--color-bg);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

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

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

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

.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-bg);
  border-radius: 8px;
  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: 1rem;
}

.hero-episode-number {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

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

.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: var(--color-primary);
  border-radius: 12px;
  padding: 1.35rem 1.25rem;
  margin-top: 0.75rem;
  color: #fff;
  min-width: 0;
  width: 100%;
}

/* Logo links – Vollton-Farbe, klickbar */
.n30-player-logo-wrap {
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.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); }
}

.n30-player.playing .n30-player-logo {
  animation: spin-logo 3s linear 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;
  gap: 0.05rem;
  margin-bottom: 0.4rem;
}

/* Titel: einzeilig, scrollt bei Überlänge */
.n30-player-title {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.n30-player-title.scrolling {
  animation: marquee-scroll 12s linear infinite;
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Folgennummer: klein darunter */
.n30-player-episode-num {
  font-size: 0.72rem;
  opacity: 0.6;
  white-space: nowrap;
}

.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;
}

.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: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  opacity: 0.65;
}

/* 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;
}

.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;
}

/* Share-Button Wrapper: braucht position fuer das Dropdown */
.player-pill-share-wrap {
  position: relative;
}

.player-pill-share-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  min-width: 180px;
  z-index: 50;
  overflow: hidden;
}

.player-pill-share-dropdown button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-text);
  text-align: left;
  transition: background 0.15s;
}

.player-pill-share-dropdown button:hover {
  background: var(--color-bg);
}

.player-pill-share-dropdown button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
  color: var(--color-text-light);
}

/* Filter-Pills (Gegner + Saison + Auswärts) */
.filter-pill-opponent,
.filter-pill-season,
.filter-pill-auswaerts {
  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;
}

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

/* Player responsive */
@media (max-width: 600px) {
  .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;
  }
}

/* --- Filter & Suche --- */
.filter-bar {
  background: var(--color-white);
}

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

.filter-inner {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  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: rgba(82, 139, 197, 0.06);
  color: var(--color-primary);
  transition: border-color 0.2s, background-color 0.2s;
  box-sizing: border-box;
}

.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: 1;
  min-width: 200px;
}

.filter-inner select {
  min-width: 160px;
}

/* 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.65rem 1rem;
  height: 2.75rem;
  background: rgba(82, 139, 197, 0.06);
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-primary);
  font-family: var(--font-stack);
  font-weight: 500;
  transition: all 0.2s;
  box-sizing: border-box;
  white-space: nowrap;
  min-width: 10rem;
  text-align: center;
}

.filter-sort:hover {
  border-color: var(--color-primary);
  background: rgba(82, 139, 197, 0.06);
}

.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;
}

.filter-reset:hover {
  background: #3a6fa8;
  border-color: #3a6fa8;
  color: #fff;
}

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

/* 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);
}

.episode-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.episode-card-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.episode-card-placeholder img {
  width: 40%;
  opacity: 0.3;
}

/* 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;
}

.episode-card-overlay-date {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.5rem;
}

.episode-card-overlay-number {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.35rem;
}

.episode-card-overlay-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.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;
}

.episode-card-overlay-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.4rem;
  font-weight: 400;
}

.episode-card-overlay-interview {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.5rem;
  font-style: italic;
}

/* „Im Interview:"-Zeile in Hero und Modal */
.meta-interview {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
}


/* --- Modal --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  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;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s;
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: var(--color-text);
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.12);
}

/* Modal-Image Container wird nicht mehr separat genutzt */
.modal-image {
  display: none;
}

.modal-body {
  padding: 1.5rem;
}

/* Modal-Header: Titel-Block oben */
.modal-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-primary);
}

.modal-episode-number {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  display: block;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

/* 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 img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.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.5rem 1rem;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

.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: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, transform 0.2s;
  color: var(--color-text);
}

.modal-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.modal-nav svg {
  width: 28px;
  height: 28px;
}

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

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

@media (max-width: 960px) {
  .modal-nav-prev { left: 0.5rem; }
  .modal-nav-next { right: 0.5rem; }
  .modal-nav {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.7);
  }
  .modal-nav svg { width: 24px; height: 24px; }
}

@media (max-width: 600px) {
  .modal-nav { display: none; }
}

/* --- 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 {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.impressum-headline {
  font-size: 2rem;
  font-weight: 700;
  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;
}

.about-hero {
  color: #fff;
  text-align: center;
}

.about-hero-image {
  background-size: cover;
  background-position: center;
  position: relative;
}

.about-hero-overlay {
  background: rgba(82, 139, 197, 0.88);
  padding: 4rem 1rem 3.5rem;
}

.about-hero-inner {
  max-width: 650px;
  margin: 0 auto;
}

.about-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.about-hero-tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.about-hero-claim {
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 1.25rem;
  color: #fff;
}

.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.1rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  font-weight: 700;
}

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

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

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

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

.about-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.about-link-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  background: rgba(82, 139, 197, 0.08);
  border: 1px solid rgba(82, 139, 197, 0.2);
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-primary);
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
}

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

.about-link-item:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .about-grid-two {
    grid-template-columns: 1fr;
  }
  .about-hero h1 {
    font-size: 1.5rem;
  }
  .about-hero-overlay {
    padding: 3rem 1rem 2.5rem;
  }
}

/* Kein Hover-Overlay auf Touch-Geraeten */
@media (hover: none) {
  .episode-card-overlay {
    display: none;
  }
}

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

/* --- Responsive --- */

/* Tablet */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .episodes-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Gegner ausblenden wenn zu eng */
  .episode-card-opponent {
    display: none;
  }
}

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

  .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-inner {
    padding: 1.5rem 1rem;
  }

  .hero-title {
    font-size: 1.35rem;
  }

  .episodes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .episode-card-opponent {
    display: none;
  }

  .filter-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-inner input[type="text"],
  .filter-inner select {
    width: 100%;
    min-width: unset;
  }

  /* Modal Fullscreen auf Handy */
  .modal {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-grid-image img {
    max-width: 100%;
    margin: 0 auto;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
