/* ============================================
   SCHULCAST - Design System & Global Styles
   Von Schulern. Fur alle.
   ============================================ */

/* --- CSS Custom Properties (Brand Design System) --- */
:root {
  /* Dark Theme - Brand Guide #2B2D1F als Haupthintergrund */
  --color-bg-dark: #1f2015;
  --color-bg-main: #2B2D1F;
  --color-bg-warm: #353728;
  --color-bg-card: #3a3c2d;
  --color-text-primary: #faf8f3;
  --color-text-secondary: #b5b3a8;
  --color-text-muted: #8a8a7a;
  --color-text-on-dark: #faf8f3;

  /* Fynbos-Palette - exakt aus dem Brand Guide */
  --fynbos-pomegranate: #C85555;
  --fynbos-apricot: #EAA624;
  --fynbos-blue: #AADCF2;
  --fynbos-melon: #F7BCB0;
  --fynbos-bistre: #767B39;

  /* Accent (Apricot als Hauptakzent) */
  --color-accent: #EAA624;
  --color-accent-hover: #d09020;

  /* Borders (light on dark) */
  --color-border: rgba(250, 248, 243, 0.08);
  --color-border-strong: rgba(250, 248, 243, 0.15);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Typography */
  --font-heading: 'Syne', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows (glow-basiert fuer Dark Theme) */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(232, 168, 40, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-main);
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--color-text-secondary);
  max-width: 65ch;
}

.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* --- Section --- */
.section {
  padding: var(--space-4xl) 0;
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-text-on-dark);
}

.section--dark p {
  color: rgba(250, 248, 243, 0.7);
}

.section--warm {
  background-color: var(--color-bg-warm);
}

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

.section-header .label {
  margin-bottom: var(--space-sm);
  display: block;
}

.section-header p {
  margin: var(--space-md) auto 0;
  text-align: center;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(43, 45, 31, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.logo-icon {
  width: 36px;
  height: 36px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--color-text-primary);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg-dark);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn--outline {
  border: 2px solid var(--color-text-primary);
  color: var(--color-text-primary);
}

.btn--outline:hover {
  background: var(--color-text-primary);
  color: var(--color-bg-main);
}

.btn--dark {
  background: rgba(250,248,243,0.1);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-strong);
}

.btn--dark:hover {
  background: rgba(250,248,243,0.18);
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--color-text-secondary);
  padding: 0.5rem 1rem;
}

.btn--ghost:hover {
  color: var(--color-text-primary);
  background: rgba(250,248,243,0.08);
}

.btn--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(250,248,243,0.08);
  transition: all var(--transition-fast);
}

.btn--icon:hover {
  background: rgba(250,248,243,0.15);
}

/* --- Cards --- */
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--color-bg-warm);
}

.card-body {
  padding: var(--space-lg);
}

.card-body .label {
  margin-bottom: var(--space-xs);
}

.card-body h3 {
  margin-bottom: var(--space-sm);
}

.card-body p {
  font-size: 0.9rem;
}

/* --- Frequency Logo (Fynbos-Palette, 15 Bars, Brand Guide) --- */
.freq-logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 32px;
}

.freq-logo .bar {
  width: 3px;
  border-radius: 2px;
  transform-origin: bottom;
  transform: scaleY(0);
  /* Brand Guide: Intro = ease-out-back, 80ms Versatz; Loop = ±15% Puls */
  animation:
    freqIntro 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d) forwards,
    freqPulse 2.5s ease-in-out calc(var(--d) + 2s) infinite;
}

/* 9 Bars: exakte Fynbos-Palette & Wellenform aus Logo */
.freq-logo .bar:nth-child(1) { --d: 0s;    height: 15%; background: var(--fynbos-bistre); }
.freq-logo .bar:nth-child(2) { --d: 0.08s; height: 42%; background: var(--fynbos-pomegranate); }
.freq-logo .bar:nth-child(3) { --d: 0.16s; height: 72%; background: var(--fynbos-apricot); }
.freq-logo .bar:nth-child(4) { --d: 0.24s; height: 88%; background: var(--fynbos-pomegranate); }
.freq-logo .bar:nth-child(5) { --d: 0.32s; height: 100%; background: var(--fynbos-pomegranate); }
.freq-logo .bar:nth-child(6) { --d: 0.40s; height: 78%; background: var(--fynbos-blue); }
.freq-logo .bar:nth-child(7) { --d: 0.48s; height: 92%; background: var(--fynbos-pomegranate); }
.freq-logo .bar:nth-child(8) { --d: 0.56s; height: 48%; background: var(--fynbos-pomegranate); }
.freq-logo .bar:nth-child(9) { --d: 0.64s; height: 18%; background: var(--fynbos-melon); }

/* Intro: Bars wachsen von unten hoch, ease-out-back (Brand Guide) */
@keyframes freqIntro {
  0% { transform: scaleY(0); }
  100% { transform: scaleY(1); }
}

/* Loop: leichtes Equalizer-Pulsieren, ±15% Amplitude (Brand Guide) */
@keyframes freqPulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.85); }
}

/* --- Hero Section --- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

/* Hero Split Layout */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

/* Hero Sidebar */
.hero-sidebar {
  position: relative;
  z-index: 2;
  border-left: 1px solid var(--color-border);
  padding-left: var(--space-xl);
  align-self: center;
}
.hero-sidebar-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fynbos-apricot);
  margin-bottom: var(--space-lg);
}
.sidebar-item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  transition: transform 0.2s ease;
}
.sidebar-item:first-of-type {
  border-top: 1px solid var(--color-border);
}
.sidebar-item:hover {
  transform: translateX(4px);
}
.sidebar-item-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tag-color, var(--fynbos-apricot));
  margin-bottom: 4px;
}
.sidebar-item h3 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Pinned sidebar item (e.g. Mitmachen CTA) */
.sidebar-item--pinned {
  background: rgba(234, 166, 36, 0.06);
  border-radius: 8px;
  padding: var(--space-md) var(--space-sm);
  margin-top: var(--space-xs);
  border-bottom: none;
  border: 1px solid rgba(234, 166, 36, 0.15);
}
.sidebar-item--pinned:first-of-type { border-top: 1px solid rgba(234, 166, 36, 0.15); }
.sidebar-item--pinned:hover {
  background: rgba(234, 166, 36, 0.12);
  border-color: var(--fynbos-apricot);
}
[data-theme="light"] .sidebar-item--pinned {
  background: rgba(234, 166, 36, 0.05);
}

.sidebar-item-meta {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

/* Vertical SCHULCAST text */
.hero-vertical-text {
  position: absolute;
  right: -0.15em;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center center;
  font-family: var(--font-heading);
  font-size: clamp(6rem, 10vw, 10rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  background: linear-gradient(
    180deg,
    var(--fynbos-apricot) 0%,
    var(--fynbos-pomegranate) 35%,
    var(--fynbos-blue) 65%,
    var(--fynbos-bistre) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.07;
  animation: verticalTextShimmer 8s ease-in-out infinite alternate;
}
@keyframes verticalTextShimmer {
  0% { opacity: 0.05; letter-spacing: 0.08em; }
  50% { opacity: 0.1; letter-spacing: 0.14em; }
  100% { opacity: 0.05; letter-spacing: 0.08em; }
}

/* Responsive: sidebar stacks below on smaller screens */
@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .hero-sidebar {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding-left: 0;
    padding-top: var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 var(--space-lg);
  }
  .hero-sidebar-title {
    grid-column: 1 / -1;
  }
  .sidebar-item:first-of-type {
    border-top: none;
  }
  .sidebar-item:nth-of-type(2) {
    border-top: none;
  }
  .hero-vertical-text {
    display: none;
  }
}
@media (max-width: 600px) {
  .hero-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar-item:nth-of-type(2) {
    border-top: 1px solid var(--color-border);
  }
}

.hero-content .label {
  margin-bottom: var(--space-md);
}

.hero-content h1 {
  margin-bottom: var(--space-lg);
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: var(--space-2xl);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Hero Player */
.hero-player {
  margin-bottom: var(--space-xl);
  max-width: 420px;
}

.hero-play-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.85rem 1.5rem;
  background: rgba(234, 166, 36, 0.1);
  border: 1px solid rgba(234, 166, 36, 0.3);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.hero-player:not(.is-playing) .hero-play-btn {
  border-radius: var(--radius-lg);
}

.hero-play-btn:hover {
  background: rgba(234, 166, 36, 0.18);
  border-color: var(--fynbos-apricot);
}

.hero-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fynbos-apricot);
  color: var(--color-bg-dark);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  animation: playPulse 2.5s ease-in-out infinite;
}

.hero-player.is-playing .hero-play-icon {
  animation: none;
}

.hero-play-btn:hover .hero-play-icon {
  transform: scale(1.08);
}

.hero-play-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-play-text strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-play-text small {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Progress bar */
.hero-progress {
  height: 6px;
  background: rgba(234, 166, 36, 0.15);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  cursor: pointer;
  overflow: hidden;
  display: none;
  border: 1px solid rgba(234, 166, 36, 0.3);
  border-top: none;
}

.hero-player.is-playing .hero-progress {
  display: block;
}

.hero-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--fynbos-apricot);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transition: width 0.3s linear;
}

/* Time display */
.hero-time {
  display: none;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.hero-player.is-playing .hero-time {
  display: block;
}

@keyframes playPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234, 166, 36, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(234, 166, 36, 0); }
}

[data-theme="light"] .hero-play-btn {
  background: rgba(234, 166, 36, 0.08);
  border-color: rgba(234, 166, 36, 0.25);
}

[data-theme="light"] .hero-play-btn:hover {
  background: rgba(234, 166, 36, 0.15);
}

[data-theme="light"] .hero-progress {
  background: rgba(234, 166, 36, 0.1);
  border-color: rgba(234, 166, 36, 0.2);
}

[data-theme="light"] .hero-vertical-text {
  opacity: 0.04;
}
@media (prefers-reduced-motion: reduce) {
  .hero-vertical-text { animation: none; opacity: 0.06; }
}

.hero-visual {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  max-width: 550px;
  opacity: 0.12;
  z-index: 1;
}

.hero-freq-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  height: 400px;
}

.hero-freq-bars .bar {
  width: 20px;
  border-radius: 10px;
  transform-origin: bottom;
  transform: scaleY(0);
  animation:
    heroIntro 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d) forwards,
    heroFreqPulse 3s ease-in-out calc(var(--d) + 2s) infinite;
}

/* Hero: gleiche 15-Bar Fynbos-Struktur, grosser */
.hero-freq-bars .bar:nth-child(1) { --d: 0s;    height: 15%; background: var(--fynbos-bistre); }
.hero-freq-bars .bar:nth-child(2) { --d: 0.08s; height: 42%; background: var(--fynbos-pomegranate); }
.hero-freq-bars .bar:nth-child(3) { --d: 0.16s; height: 72%; background: var(--fynbos-apricot); }
.hero-freq-bars .bar:nth-child(4) { --d: 0.24s; height: 88%; background: var(--fynbos-pomegranate); }
.hero-freq-bars .bar:nth-child(5) { --d: 0.32s; height: 100%; background: var(--fynbos-pomegranate); }
.hero-freq-bars .bar:nth-child(6) { --d: 0.40s; height: 78%; background: var(--fynbos-blue); }
.hero-freq-bars .bar:nth-child(7) { --d: 0.48s; height: 92%; background: var(--fynbos-pomegranate); }
.hero-freq-bars .bar:nth-child(8) { --d: 0.56s; height: 48%; background: var(--fynbos-pomegranate); }
.hero-freq-bars .bar:nth-child(9) { --d: 0.64s; height: 18%; background: var(--fynbos-melon); }

@keyframes heroIntro {
  0% { transform: scaleY(0); opacity: 0; }
  100% { transform: scaleY(1); opacity: 0.15; }
}

@keyframes heroFreqPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.15; }
  50% { transform: scaleY(0.85); opacity: 0.08; }
}

/* --- Platform Links --- */
.platforms {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.platform-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-base);
}

.platform-link:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.platform-link svg {
  width: 20px;
  height: 20px;
}

/* --- Episode Cards --- */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.episode-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.episode-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.episode-cover {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-bg-dark), #3d3b2e);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.episode-cover .freq-visual {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 60px;
  opacity: 0.6;
}

.episode-cover .freq-visual .bar {
  width: 6px;
  border-radius: 3px;
}

.episode-number {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: rgba(0,0,0,0.5);
  color: var(--color-text-on-dark);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.play-btn {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.play-btn:hover {
  transform: scale(1.1);
  background: var(--color-accent-hover);
}

.play-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--color-bg-dark);
  margin-left: 2px;
}

.episode-info {
  padding: var(--space-lg);
}

.episode-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.episode-info h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
}

.episode-info p {
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-xl);
}

.team-member {
  text-align: center;
}

.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, var(--color-bg-warm), var(--color-bg-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-on-dark);
  overflow: hidden;
  transition: var(--transition-base);
}

.team-member:hover .team-avatar {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.team-member h4 {
  margin-bottom: var(--space-xs);
}

.team-member .role {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* --- Guest Directory --- */
.guest-category {
  margin-bottom: var(--space-3xl);
}

.guest-category-label {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

.guest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-xl);
}

.guest-card {
  display: block;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
}

.guest-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.guest-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.guest-card h4 {
  margin-bottom: var(--space-xs);
  font-size: 1.05rem;
}

.guest-role {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.guest-desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.guest-episode-link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
}

.guest-card:hover .guest-episode-link {
  text-decoration: underline;
}

/* --- Blog Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.blog-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.blog-card-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1f2015, #353728);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-image .placeholder-icon {
  font-size: 3rem;
  opacity: 0.3;
}

.blog-card-body {
  padding: var(--space-lg);
}

.blog-card-body .tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(232, 168, 40, 0.2);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.blog-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.blog-card-body p {
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* --- Blog Article --- */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding-top: calc(var(--header-height) + var(--space-3xl));
}

.blog-article h1 {
  margin-bottom: var(--space-md);
}

.blog-article-meta {
  display: flex;
  gap: var(--space-lg);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.blog-article-content p {
  margin-bottom: var(--space-lg);
  max-width: 100%;
}

.blog-article-content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-bg-card);
  transition: border-color var(--transition-fast);
  color: var(--color-text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(232, 168, 40, 0.25);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* --- Feedback Form --- */
.feedback-instructions {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
}

.feedback-instructions h3 {
  margin-bottom: var(--space-md);
}

.feedback-instructions p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.feedback-checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.95rem;
}

.checklist-item a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checklist-number {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: var(--color-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.feedback-category {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.feedback-category:last-of-type {
  border-bottom: none;
}

.feedback-category-header {
  margin-bottom: var(--space-md);
}

.feedback-category-header h4 {
  margin-bottom: 4px;
}

.feedback-category-header p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
}

/* Star Rating (CSS-only, right-to-left trick) */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 2rem;
  color: var(--color-border-strong);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  line-height: 1;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: var(--color-accent);
}

.star-rating label:hover {
  transform: scale(1.15);
}

/* --- Social Links --- */
.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(250,248,243,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--color-accent);
  color: var(--color-bg-dark);
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* --- Footer --- */
.footer {
  background: #1f2015;
  color: var(--color-text-on-dark);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  color: rgba(250, 248, 243, 0.6);
  font-size: 0.9rem;
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
}

.dsj-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 0.9rem 0.4rem 0.4rem;
  background: rgba(250, 248, 243, 0.08);
  border-radius: var(--radius-full);
  color: rgba(250, 248, 243, 0.7);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-bottom: var(--space-lg);
}

.dsj-badge:hover {
  background: rgba(250, 248, 243, 0.15);
  color: var(--color-text-on-dark);
  transform: translateY(-1px);
}

.dsj-badge img {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
}

.footer h4 {
  color: var(--color-text-on-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.footer-links a {
  display: block;
  color: rgba(250, 248, 243, 0.6);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(250, 248, 243, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(250, 248, 243, 0.4);
}

/* --- Newsletter --- */
.newsletter-form {
  display: flex;
  gap: var(--space-sm);
}

.newsletter-form input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(250, 248, 243, 0.2);
  border-radius: var(--radius-full);
  background: rgba(250, 248, 243, 0.08);
  color: var(--color-text-on-dark);
  font-size: 0.9rem;
}

.newsletter-form input::placeholder {
  color: rgba(250, 248, 243, 0.4);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* --- Stats --- */
.stats {
  display: flex;
  gap: var(--space-3xl);
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--space-xs);
  background: linear-gradient(135deg, var(--fynbos-apricot), var(--fynbos-pomegranate));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Animated Flag Stat */
.stat-flags {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.stat-flags .flag {
  width: 48px;
  height: 32px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  animation: flagPulse 3s ease-in-out infinite;
  flex-shrink: 0;
}

.stat-flags .flag--de {
  animation-delay: 1.5s;
}

.flag-bridge {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-muted);
  opacity: 0.5;
}

@keyframes flagPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  25% { transform: scale(1.15); opacity: 1; }
  50% { transform: scale(1); opacity: 0.85; }
}

/* --- Mitmachen (Get Involved) --- */
.mitmachen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.mitmachen-card {
  position: relative;
  overflow: hidden;
  background: rgba(58, 60, 45, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  text-decoration: none;
  color: var(--color-text-primary);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mitmachen-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.mitmachen-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mitmachen-card:hover .mitmachen-glow {
  opacity: 1;
}

.mitmachen-card[data-accent="apricot"]:hover {
  background: rgba(234, 166, 36, 0.06);
  border-color: rgba(234, 166, 36, 0.25);
}
.mitmachen-card[data-accent="apricot"] .mitmachen-glow {
  background: linear-gradient(90deg, transparent, var(--fynbos-apricot), transparent);
}
.mitmachen-card[data-accent="apricot"]:hover h3 { color: var(--fynbos-apricot); }
.mitmachen-card[data-accent="apricot"] .mitmachen-cta { color: var(--fynbos-apricot); }

.mitmachen-card[data-accent="blue"]:hover {
  background: rgba(170, 220, 242, 0.06);
  border-color: rgba(170, 220, 242, 0.25);
}
.mitmachen-card[data-accent="blue"] .mitmachen-glow {
  background: linear-gradient(90deg, transparent, var(--fynbos-blue), transparent);
}
.mitmachen-card[data-accent="blue"]:hover h3 { color: var(--fynbos-blue); }
.mitmachen-card[data-accent="blue"] .mitmachen-cta { color: var(--fynbos-blue); }

.mitmachen-card[data-accent="melon"]:hover {
  background: rgba(247, 188, 176, 0.06);
  border-color: rgba(247, 188, 176, 0.25);
}
.mitmachen-card[data-accent="melon"] .mitmachen-glow {
  background: linear-gradient(90deg, transparent, var(--fynbos-melon), transparent);
}
.mitmachen-card[data-accent="melon"]:hover h3 { color: var(--fynbos-melon); }
.mitmachen-card[data-accent="melon"] .mitmachen-cta { color: var(--fynbos-melon); }

.mitmachen-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  filter: grayscale(0.3);
  transition: filter var(--transition-base);
}

.mitmachen-card:hover .mitmachen-icon { filter: grayscale(0); }

.mitmachen-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  transition: color var(--transition-base);
}

.mitmachen-card p {
  color: rgba(250, 248, 243, 0.65);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.mitmachen-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.mitmachen-card:hover .mitmachen-cta { opacity: 1; }
.mitmachen-cta svg { transition: transform var(--transition-fast); }
.mitmachen-card:hover .mitmachen-cta svg { transform: translateX(3px); }

.mitmachen-bottom {
  text-align: center;
}

.mitmachen-bottom p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: var(--space-md);
}

.nav-highlight {
  color: var(--fynbos-apricot) !important;
  font-weight: 600;
}

/* --- Featured Episode --- */
.featured-episode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.featured-cover {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-bg-dark), #3d3b2e);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.featured-cover .freq-visual {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
}

.featured-cover .freq-visual .bar {
  width: 10px;
  border-radius: 5px;
}

.featured-info .label {
  margin-bottom: var(--space-md);
}

.featured-info h2 {
  margin-bottom: var(--space-md);
}

.featured-info p {
  margin-bottom: var(--space-xl);
}

/* --- Spotify Embed --- */
.spotify-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--space-lg);
}

.spotify-embed iframe {
  border: none;
  width: 100%;
}

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }

/* Slide in from left */
.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide in from right */
.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up */
.scale-up {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scale-up.visible {
  opacity: 1;
  transform: scale(1);
}

/* Auto-stagger for grid children */
.fade-up-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-stagger.visible > *:nth-child(1)  { transition-delay: 0s; }
.fade-up-stagger.visible > *:nth-child(2)  { transition-delay: 0.08s; }
.fade-up-stagger.visible > *:nth-child(3)  { transition-delay: 0.16s; }
.fade-up-stagger.visible > *:nth-child(4)  { transition-delay: 0.24s; }
.fade-up-stagger.visible > *:nth-child(5)  { transition-delay: 0.32s; }
.fade-up-stagger.visible > *:nth-child(6)  { transition-delay: 0.4s; }
.fade-up-stagger.visible > *:nth-child(7)  { transition-delay: 0.48s; }
.fade-up-stagger.visible > *:nth-child(8)  { transition-delay: 0.56s; }
.fade-up-stagger.visible > *:nth-child(9)  { transition-delay: 0.6s; }
.fade-up-stagger.visible > *:nth-child(n+10) { transition-delay: 0.65s; }

/* --- Responsive Design --- */
@media (max-width: 768px) {
  :root {
    --space-4xl: 3rem;
    --space-3xl: 2rem;
  }

  .nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg-main);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-xl);
    border-bottom: 1px solid var(--color-border-strong);
    box-shadow: var(--shadow-lg);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    font-size: 1.1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }

  .hero-visual {
    display: none;
  }

  .hero-play-btn {
    max-width: 100%;
  }

  .hero-player {
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .featured-episode {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .episodes-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: var(--space-xl);
  }

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

  .mitmachen-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .team-grid,
  .guest-grid {
    grid-template-columns: 1fr;
  }

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

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

  .platform-link {
    justify-content: center;
  }
}

/* --- Page Header (for sub-pages) --- */
.page-header {
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-2xl);
  background: var(--color-bg-warm);
  text-align: center;
}

.page-header .label {
  margin-bottom: var(--space-sm);
  display: block;
}

.page-header p {
  margin: var(--space-md) auto 0;
  text-align: center;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #3d3f2e, #4a4c3a);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  text-align: center;
  color: var(--color-text-on-dark);
}

.cta-banner h2 {
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-md);
}

.cta-banner p {
  color: rgba(250, 248, 243, 0.7);
  margin: 0 auto var(--space-xl);
  text-align: center;
}

/* --- Contact Info Grid --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

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

.contact-info h3 {
  margin-bottom: var(--space-lg);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-info-item .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(232, 168, 40, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.contact-info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-info-item p {
  font-size: 0.88rem;
}

/* --- Language Toggle --- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(250,248,243,0.08);
  border: 1px solid var(--color-border-strong);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary) !important;
  transition: all var(--transition-fast);
}

.lang-toggle:hover {
  background: rgba(250,248,243,0.18);
  color: var(--color-text-primary) !important;
  border-color: var(--color-accent);
}

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

/* --- Skip to Content --- */
.skip-link {
  position: fixed;
  top: -100%;
  left: var(--space-md);
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: #1f2015;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s ease;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* --- Focus-Visible Indicators (a11y) --- */
:focus-visible {
  outline: 2px solid var(--fynbos-apricot);
  outline-offset: 2px;
}

/* Remove default outline for mouse clicks */
:focus:not(:focus-visible) {
  outline: none;
}

/* Buttons & inputs already have their own focus styles */
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  outline: none;
  border-color: var(--fynbos-apricot);
  box-shadow: 0 0 0 3px rgba(234, 166, 36, 0.2);
}

/* --- Theme Toggle --- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(250,248,243,0.08);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: rgba(250,248,243,0.18);
  color: var(--color-text-primary);
  border-color: var(--color-accent);
}

.icon-moon { display: none; }
.icon-sun { display: block; }

/* ============================================
   LIGHT THEME
   ============================================ */

[data-theme="light"] {
  --color-bg-dark: #f0ebe3;
  --color-bg-main: #faf8f3;
  --color-bg-warm: #f0ebe3;
  --color-bg-card: #ffffff;
  --color-text-primary: #2B2D1F;
  --color-text-secondary: #5a5a4e;
  --color-text-muted: #8a8a7a;
  --color-border: rgba(43, 45, 31, 0.1);
  --color-border-strong: rgba(43, 45, 31, 0.18);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 20px rgba(232, 168, 40, 0.12);
}

/* Icons: sun in dark mode, moon in light mode */
[data-theme="light"] .icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: none; }

/* Header */
[data-theme="light"] .header {
  background: rgba(250, 248, 243, 0.92);
}

/* Buttons */
[data-theme="light"] .btn--primary {
  color: #fff;
}

[data-theme="light"] .btn--dark {
  background: rgba(43, 45, 31, 0.06);
  border-color: var(--color-border-strong);
}

[data-theme="light"] .btn--dark:hover {
  background: rgba(43, 45, 31, 0.12);
}

[data-theme="light"] .btn--ghost:hover {
  background: rgba(43, 45, 31, 0.06);
}

[data-theme="light"] .btn--icon,
[data-theme="light"] .btn--outline {
  background: rgba(43, 45, 31, 0.06);
}

[data-theme="light"] .btn--icon:hover {
  background: rgba(43, 45, 31, 0.12);
}

/* Cards & Covers */
[data-theme="light"] .episode-cover,
[data-theme="light"] .featured-cover {
  background: linear-gradient(135deg, #e8e3db, #f0ebe3);
}

[data-theme="light"] .blog-card-image {
  background: linear-gradient(135deg, #e8e3db, #f0ebe3) !important;
}

/* Social & Platform links */
[data-theme="light"] .social-link,
[data-theme="light"] .theme-toggle,
[data-theme="light"] .lang-toggle {
  background: rgba(43, 45, 31, 0.06);
  border-color: var(--color-border-strong);
}

[data-theme="light"] .social-link:hover {
  background: var(--color-accent);
  color: #fff;
}

[data-theme="light"] .theme-toggle:hover,
[data-theme="light"] .lang-toggle:hover {
  background: rgba(43, 45, 31, 0.12);
}

[data-theme="light"] .platform-link {
  background: #fff;
  border-color: var(--color-border-strong);
}

/* Form inputs */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
  background: #fff;
  border-color: rgba(43, 45, 31, 0.2);
}

/* Blog tag */
[data-theme="light"] .blog-card-body .tag {
  background: rgba(232, 168, 40, 0.12);
}

/* Contact icon */
[data-theme="light"] .contact-info-item .icon {
  background: rgba(232, 168, 40, 0.1);
}

/* Feedback */
[data-theme="light"] .feedback-instructions {
  background: #fff;
  border-color: rgba(43, 45, 31, 0.12);
}

[data-theme="light"] .star-rating label {
  color: rgba(43, 45, 31, 0.2);
}

[data-theme="light"] .feedback-category {
  border-bottom-color: rgba(43, 45, 31, 0.1);
}

/* Mitmachen */
[data-theme="light"] .mitmachen-card {
  background: rgba(43, 45, 31, 0.03);
}

[data-theme="light"] .mitmachen-card:hover {
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .mitmachen-card[data-accent="apricot"]:hover {
  background: rgba(234, 166, 36, 0.04);
  border-color: rgba(234, 166, 36, 0.2);
}

[data-theme="light"] .mitmachen-card[data-accent="blue"]:hover {
  background: rgba(170, 220, 242, 0.1);
  border-color: rgba(170, 220, 242, 0.3);
}

[data-theme="light"] .mitmachen-card[data-accent="melon"]:hover {
  background: rgba(247, 188, 176, 0.08);
  border-color: rgba(247, 188, 176, 0.25);
}

[data-theme="light"] .mitmachen-card p {
  color: var(--color-text-secondary);
}

[data-theme="light"] .mitmachen-icon {
  filter: grayscale(0);
}

/* Mobile nav */
@media (max-width: 768px) {
  [data-theme="light"] .nav {
    background: var(--color-bg-main);
  }
}

/* --- Keep these elements DARK in light mode --- */

/* Footer always dark */
[data-theme="light"] .footer {
  background: #1f2015;
  color: #faf8f3;
}

/* Section--dark always dark */
[data-theme="light"] .section--dark {
  background-color: #1f2015;
}

[data-theme="light"] .section--dark h1,
[data-theme="light"] .section--dark h2,
[data-theme="light"] .section--dark h3,
[data-theme="light"] .section--dark h4 {
  color: #faf8f3;
}

[data-theme="light"] .section--dark p {
  color: rgba(250, 248, 243, 0.7);
}

/* CTA banner always dark */
[data-theme="light"] .cta-banner {
  background: linear-gradient(135deg, #2B2D1F, #3d3f2e);
}

[data-theme="light"] .cta-banner h2 {
  color: #faf8f3;
}

[data-theme="light"] .cta-banner p {
  color: rgba(250, 248, 243, 0.7);
}

/* --- Transcript Toggle --- */

.transcript-toggle summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.transcript-toggle summary::-webkit-details-marker {
  display: none;
}

.transcript-toggle[open] .transcript-arrow {
  transform: rotate(180deg);
}

.transcript-toggle summary:hover h2 {
  color: var(--color-accent);
}

.transcript-content p + p {
  margin-top: var(--space-sm);
}

/* --- Episode Page --- */

.timestamps p {
  padding-left: 1rem;
  border-left: 2px solid var(--color-border);
  margin: 0;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.timestamps p:hover {
  border-left-color: var(--color-accent);
}

/* --- Persistent Audio Player Bar --- */
.persistent-player {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border-strong);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.persistent-player.is-active {
  transform: translateY(0);
}
.pp-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.pp-play {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--fynbos-apricot);
  border: none;
  color: var(--color-bg-dark);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: transform 0.2s;
}
.pp-play:hover { transform: scale(1.08); }
.pp-info {
  display: flex; flex-direction: column;
  min-width: 0; flex-shrink: 1;
}
.pp-title {
  font-size: 0.85rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--color-text-primary);
}
.pp-subtitle {
  font-size: 0.7rem; color: var(--color-text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pp-progress {
  flex: 1; height: 4px; min-width: 60px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px; cursor: pointer;
}
.pp-bar {
  height: 100%; border-radius: 2px;
  background: var(--fynbos-apricot);
  width: 0%; transition: width 0.3s linear;
}
.pp-time {
  font-size: 0.7rem; color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap; flex-shrink: 0;
}
.pp-close {
  width: 28px; height: 28px; border-radius: 50%;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: all 0.2s;
}
.pp-close:hover {
  background: rgba(255,255,255,0.05);
  color: var(--color-text-primary);
}
body.has-persistent-player {
  padding-bottom: 60px;
}
body.has-persistent-player .footer {
  margin-bottom: 0;
}

/* Light theme persistent player */
[data-theme="light"] .persistent-player {
  background: #fff;
  border-top-color: #e5e5e0;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}
[data-theme="light"] .pp-title { color: #2B2D1F; }
[data-theme="light"] .pp-subtitle { color: #6b6b60; }
[data-theme="light"] .pp-progress { background: rgba(0,0,0,0.08); }
[data-theme="light"] .pp-time { color: #6b6b60; }
[data-theme="light"] .pp-close { border-color: #e5e5e0; color: #6b6b60; }
[data-theme="light"] .pp-close:hover { background: rgba(0,0,0,0.04); color: #2B2D1F; }

@media (max-width: 600px) {
  .pp-inner { padding: 8px 12px; gap: 8px; }
  .pp-info { max-width: 100px; }
  .pp-time { display: none; }
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border-strong);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
body.has-persistent-player .cookie-banner { bottom: 56px; }
.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px; padding: 14px 20px;
}
.cookie-banner__inner p {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin: 0; line-height: 1.5;
}
.cookie-banner__inner a {
  color: var(--fynbos-apricot);
  text-decoration: underline;
}
.cookie-banner__btn {
  padding: 8px 20px;
  background: var(--fynbos-apricot);
  color: var(--color-bg-dark);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.85rem;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.2s;
}
.cookie-banner__btn:hover { transform: translateY(-1px); }
[data-theme="light"] .cookie-banner {
  background: #fff;
  border-top-color: #e5e5e0;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}
[data-theme="light"] .cookie-banner__inner p { color: #3a3a32; }
@media (max-width: 600px) {
  .cookie-banner__inner { flex-direction: column; gap: 10px; text-align: center; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-left, .fade-right, .scale-up,
  .fade-up-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .freq-logo .bar, .hero-freq-bars .bar {
    animation: none;
    transform: scaleY(1);
  }
  .stat-flags .flag {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero-play-icon {
    animation: none;
  }
}
