/* =========================================================
   geschichte-fuer-kids.de — site.css
   Built on the app's dark theme (theming/appTheme.ts THEME.dark):
   purple mesh background, bloom glows, frosted cards, the
   play gradient for actions, star gold only for rewards/badges.
   Layout: one centered column (max 1180px), full-bleed bands.
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  /* App mesh (THEME.dark.mesh) */
  --mesh-1: #1b1b3a;
  --mesh-2: #26224a;
  --mesh-3: #3a2a55;
  --mesh-4: #2a2a5c;
  --mesh-5: #161a34;
  /* App blooms (THEME.dark.blooms) */
  --bloom-indigo: #3b3a7a;
  --bloom-plum: #6e3a7e;
  --bloom-teal: #1f5c6e;
  --bloom-purple: #4a2e6b;
  /* App play gradient + glow (THEME.dark.playGradient, PLAY_GLOW.dark) */
  --play-1: #8c6be0;
  --play-2: #c25fb0;
  --play-3: #f2739c;
  --play-glow: #b14a8e;
  /* Explore banner ramp (BANNER_RAMP) */
  --ramp-orange-light: #f7ce74;
  --ramp-orange-deep: #d9622e;
  --ramp-purple-light: #b9a3e6;
  --ramp-purple-deep: #5b4fa8;

  /* Surfaces + text */
  --bg: var(--mesh-5);
  --surface: #2c2850;                     /* dialogSurface — opaque tiles */
  --frost: rgba(255, 255, 255, 0.12);     /* heroFrameBg — frosted tiles */
  --pill: rgba(255, 255, 255, 0.14);      /* pillBg */
  --line: rgba(255, 255, 255, 0.14);
  --ink: #f2effa;                         /* title */
  --mute: #a79fc6;                        /* meta */
  --lilac: #c9aee3;                       /* ACCENT.dark — "NEU" / cadence */
  --gold: #d0b895;                        /* starGold (tint #E9A33C, 70%) — rewards only */
  --gold-bright: #e9a33c;                 /* STAR_GOLD_SOURCE */

  /* Elevation (SHADOW.dark scaled for web) + glows */
  --shadow: 0 6px 36px rgba(8, 4, 26, 0.35);
  --shadow-lg: 0 14px 72px rgba(8, 4, 26, 0.55);
  --glow-play: 0 16px 40px -10px rgba(177, 74, 142, 0.65);
  --glow-violet: 0 26px 60px -22px rgba(140, 107, 224, 0.7);
  --glow-pink: 0 26px 60px -22px rgba(242, 115, 156, 0.6);
  --glow-teal: 0 26px 60px -22px rgba(31, 92, 110, 0.9);

  /* Type */
  --display: "Fraunces", "Georgia", "Times New Roman", serif;
  --body: "Nunito", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --fs-hero: clamp(2.3rem, 5vw, 4.1rem);
  --fs-h2: clamp(1.9rem, 4vw, 2.9rem);
  --fs-h3: clamp(1.25rem, 2.2vw, 1.5rem);
  --fs-lead: clamp(1.08rem, 1.6vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;

  /* Shape + space */
  --r-xl: 36px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-pill: 999px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --section: clamp(64px, 9vw, 120px);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(70% 40% at 100% 30%, rgba(58, 42, 85, 0.55), transparent 70%),
    radial-gradient(60% 40% at 0% 65%, rgba(42, 42, 92, 0.55), transparent 70%),
    linear-gradient(180deg, var(--mesh-1) 0%, var(--mesh-2) 35%, var(--mesh-5) 100%);
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--mesh-1); padding: 8px 14px; border-radius: 10px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-small); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--lilac);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--play-3); box-shadow: 0 0 14px var(--play-3); }
.lead { font-size: var(--fs-lead); color: var(--mute); max-width: 60ch; }
.section { padding-block: var(--section); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.center { text-align: center; margin-inline: auto; justify-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border-radius: var(--r-pill);
  font-family: var(--body); font-weight: 800; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent; color: #fff;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-play {
  border: 0;
  background: linear-gradient(110deg, var(--play-1), var(--play-2) 55%, var(--play-3));
  box-shadow: var(--glow-play);
}
.btn-play:hover { box-shadow: 0 20px 50px -10px rgba(177, 74, 142, 0.9); }
.btn-frost { background: var(--pill); border-color: rgba(255, 255, 255, 0.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-frost:hover { background: rgba(255, 255, 255, 0.2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
/* Paired buttons (Apple/Spotify, App Store/Google Play): always one size, one style */
.btn-even .btn { width: 220px; }
.btn-even .btn-frost {
  border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  background: linear-gradient(110deg, var(--play-1), var(--play-2) 55%, var(--play-3));
  box-shadow: var(--glow-play);
}
@media (max-width: 600px) { .btn-even .btn { width: 100%; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(27, 27, 58, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(201, 174, 227, .45), 0 0 22px rgba(140, 107, 224, .6); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.12rem; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--body); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--mute); padding: 8px 12px; border-radius: var(--r-pill); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--pill); }
.lang { display: inline-flex; background: var(--pill); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px; margin-left: 8px; }
.lang a { padding: 5px 11px; font-size: .8rem; font-weight: 800; letter-spacing: .06em; }
.lang a[aria-current="true"] { background: linear-gradient(110deg, var(--play-1), var(--play-2)); color: #fff; }
.menu-btn { display: none; margin-left: auto; background: var(--pill); border: 1px solid var(--line); color: var(--ink); border-radius: 12px; width: 46px; height: 46px; }
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 920px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--mesh-1); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
  .lang { align-self: flex-start; margin: 10px 0 0; }
}

/* ---------- Hero: aurora panel built from the app's blooms ---------- */
.hero { position: relative; padding-top: clamp(20px, 3vw, 36px); }
.hero-panel {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 72px) clamp(20px, 5vw, 64px);
  background: linear-gradient(180deg, var(--mesh-1) 0%, var(--mesh-2) 55%, var(--mesh-3) 100%);
  box-shadow:
    0 12px 30px rgba(8, 4, 26, .5),
    0 40px 100px -20px rgba(8, 4, 26, .9),
    0 60px 140px -50px rgba(194, 95, 176, .9),
    0 0 120px -40px rgba(140, 107, 224, .8);
}
.aurora { position: absolute; inset: -20% -10% -10%; z-index: -2; pointer-events: none; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .85;
  animation: bloom 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { width: 55%; height: 60%; left: -5%;  bottom: -5%; background: var(--play-1); animation-duration: 24s; }
.aurora span:nth-child(2) { width: 45%; height: 55%; left: 35%;  bottom: -20%; background: var(--play-2); animation-duration: 19s; animation-delay: -6s; }
.aurora span:nth-child(3) { width: 40%; height: 50%; right: -8%; bottom: -10%; background: var(--ramp-orange-deep); opacity: .7; animation-duration: 27s; animation-delay: -12s; }
.aurora span:nth-child(4) { width: 35%; height: 40%; left: 20%;  top: 15%; background: var(--bloom-teal); opacity: .6; animation-duration: 30s; animation-delay: -3s; }
@keyframes bloom {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(6%, -5%) scale(1.12); }
  100% { transform: translate(-5%, 4%) scale(.95); }
}
.stars { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

.hero-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: var(--fs-hero); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--ramp-orange-light), var(--play-3) 55%, var(--ramp-purple-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-art { position: relative; justify-self: center; width: min(100%, 400px); }
.hero .lead { color: #e6e0f6; }
.hero-art img {
  position: relative;
  border-radius: var(--r-xl);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .18),
    0 10px 24px rgba(8, 4, 26, .45),
    0 34px 80px -10px rgba(8, 4, 26, .8),
    0 50px 120px -30px rgba(194, 95, 176, .85);
}
.clock-ring {                        /* time-travel ring behind the cover */
  position: absolute; inset: -9%; z-index: -1; width: 118%; height: 118%;
  color: var(--gold); opacity: .55;
  animation: spin-back 120s linear infinite;
}
@keyframes spin-back { to { transform: rotate(-360deg); } }
.hero-badge {
  position: absolute; right: -22px; top: 38%;
  display: flex; align-items: center; gap: 10px;
  background: rgba(44, 40, 80, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r-md);
  padding: 12px 16px; box-shadow: var(--shadow-lg);
  font-weight: 800; font-size: .95rem; line-height: 1.25;
}
.hero-badge b { font-family: var(--display); font-size: 1.7rem; color: var(--gold); }
.app-hint {
  justify-self: start; display: inline-grid; grid-template-columns: 40px auto 18px; align-items: center; gap: 12px;
  padding: 8px 16px 8px 8px; border-radius: var(--r-md); text-decoration: none;
  background: rgba(27, 20, 58, .5); border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow); font-size: .9rem; line-height: 1.3; color: #d9d2ee;
  transition: background .2s ease;
}
.app-hint:hover { background: rgba(27, 20, 58, .7); }
.app-hint img { width: 40px; height: 40px; border-radius: 11px; }
.app-hint b { display: block; color: var(--ink); font-size: .95rem; }
.app-hint svg { width: 18px; height: 18px; color: var(--lilac); }

/* ---------- Social proof: small tiles ---------- */
.proof { padding-top: clamp(22px, 3vw, 34px); }
.proof-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.proof-tile {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 9px 16px; border-radius: var(--r-md);
  background: var(--frost); border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.proof-tile b { font-family: var(--display); font-size: 1.02rem; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.proof-tile b i { font-style: normal; color: var(--gold); }
.proof-tile span { color: var(--mute); font-size: .84rem; line-height: 1.3; }
@media (max-width: 600px) {                      /* mobile: four equal tiles, 2 x 2 */
  .proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-tile { display: grid; justify-items: center; align-content: center; gap: 2px; text-align: center; padding: 10px 12px; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { width: min(78%, 340px); order: -1; }
  .hero-badge { right: -10px; top: 4%; padding: 8px 12px; font-size: .85rem; }
  .hero-badge b { font-size: 1.4rem; }
}

/* ---------- Episode slider (auto-scrolling, pauses on hover) ---------- */
.slider { position: relative; overflow: hidden; padding-block: 24px 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.slider-track { display: flex; gap: clamp(16px, 2.2vw, 28px); width: max-content; animation: drift 75s linear infinite; padding-inline: 12px; }
.slider:hover .slider-track, .slider:focus-within .slider-track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }

.ep-card {
  flex: none; width: clamp(220px, 24vw, 290px);
  display: grid; text-decoration: none;
  background: linear-gradient(170deg, rgba(255, 251, 246, .24) 0%, rgba(201, 174, 227, .12) 55%, rgba(140, 107, 224, .08) 100%);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-lg);
  padding: 10px 10px 18px;
  box-shadow: var(--shadow), var(--glow-violet);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
.ep-card:nth-child(3n+2) { box-shadow: var(--shadow), var(--glow-pink); }
.ep-card:nth-child(3n) { box-shadow: var(--shadow), var(--glow-teal); }
.ep-card:hover, .ep-card:focus-visible { transform: translateY(-12px) scale(1.03); }
.ep-art { border-radius: calc(var(--r-lg) - 8px); overflow: hidden; aspect-ratio: 1; background: linear-gradient(160deg, var(--pal-a, #d9d3e8), var(--pal-b, #8c86a6)); }
.ep-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ep-card:hover .ep-art img { transform: scale(1.06); }
.ep-meta { display: grid; gap: 2px; padding: 14px 8px 0; }
.ep-name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.15; color: var(--ink); }
.ep-era { font-size: .88rem; font-weight: 700; color: var(--lilac); font-variant-numeric: tabular-nums; }

/* ---------- Three landscape tiles: the app's explore-banner ramp ---------- */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.door {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) 32%; gap: 16px; align-items: center;
  min-height: 220px; padding: clamp(18px, 2.2vw, 26px);
  border-radius: var(--r-lg); text-decoration: none; color: #fff;
  background: linear-gradient(150deg, var(--d-a), var(--d-b));
  box-shadow: var(--shadow-lg), 0 30px 70px -30px var(--d-b);
  text-shadow: 0 1px 3px rgba(20, 10, 40, .35);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
.door::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(27, 20, 58, .38) 0%, rgba(27, 20, 58, .1) 60%, transparent 85%);
}
.door:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg), 0 40px 80px -24px var(--d-b); }
.door-copy { display: grid; gap: 6px; min-width: 0; }
.door .who { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.door-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.1; }
.door-text { font-size: .92rem; line-height: 1.4; opacity: .95; }
.door .go {
  justify-self: start; margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .9rem;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35);
  padding: 6px 12px; border-radius: var(--r-pill); white-space: nowrap;
}
.door .go svg { width: 16px; height: 16px; transition: transform .2s; }
.door:hover .go svg { transform: translateX(4px); }
.door img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .5), 0 16px 34px -10px rgba(20, 10, 40, .6);
}
.door-podcast  { --d-a: var(--ramp-orange-light); --d-b: var(--ramp-orange-deep); }
.door-teachers { --d-a: var(--ramp-orange-deep);  --d-b: var(--ramp-purple-light); }
.door-clara    { --d-a: var(--ramp-purple-light); --d-b: var(--ramp-purple-deep); }
@media (max-width: 1060px) { .doors { grid-template-columns: 1fr; } .door { min-height: 0; grid-template-columns: minmax(0, 1fr) 140px; } }
@media (max-width: 460px) { .door { grid-template-columns: minmax(0, 1fr) 96px; } }

/* ---------- Feature bands (Clara, App) ---------- */
.band {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  background: var(--frost);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(24px, 5vw, 64px);
  box-shadow: var(--shadow-lg);
}
.band::before {
  content: ""; position: absolute; z-index: -1; width: 60%; height: 120%; left: -15%; top: -10%;
  background: radial-gradient(closest-side, rgba(110, 58, 126, .7), transparent); filter: blur(30px);
}
.band.flip::before { left: auto; right: -15%; background: radial-gradient(closest-side, rgba(31, 92, 110, .8), transparent); }
.band-copy { display: grid; gap: 18px; min-width: 0; }
.band-copy p { color: var(--mute); }
.band-media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg), var(--glow-pink); }
.band.flip { grid-template-columns: 1.1fr .9fr; }
.band.flip .band-media { order: 2; }
@media (max-width: 860px) {
  .band, .band.flip { grid-template-columns: 1fr; }
  .band.flip .band-media { order: 2; }
}

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: var(--ink); font-weight: 600; }
.ticks li::before {
  content: "✓"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(201, 174, 227, .18); color: var(--lilac); font-weight: 900; font-size: .85rem;
}

/* App mock: three stacked feature tiles */
.app-stack { display: grid; gap: 14px; }
.app-chip {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 18px; box-shadow: var(--shadow);
}
.app-chip:nth-child(2) { margin-left: clamp(0px, 4vw, 40px); box-shadow: var(--shadow), var(--glow-violet); }
.app-chip:nth-child(3) { margin-left: clamp(0px, 8vw, 80px); }
@media (max-width: 860px) {                      /* mobile: equal size, staircase kept */
  .app-stack { grid-auto-rows: 1fr; --step: 16px; }
  .app-chip { width: calc(100% - 2 * var(--step)); }
  .app-chip:nth-child(2) { margin-left: var(--step); }
  .app-chip:nth-child(3) { margin-left: calc(2 * var(--step)); }
}
.app-chip .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; }
.app-chip:nth-child(1) .ico { background: linear-gradient(160deg, var(--ramp-orange-light), var(--ramp-orange-deep)); }
.app-chip:nth-child(2) .ico { background: linear-gradient(160deg, var(--ramp-orange-deep), var(--ramp-purple-light)); }
.app-chip:nth-child(3) .ico { background: linear-gradient(160deg, var(--ramp-purple-light), var(--ramp-purple-deep)); }
.app-chip b { display: block; font-family: var(--display); font-size: 1.15rem; font-weight: 700; }
.app-chip span { color: var(--mute); font-size: .95rem; line-height: 1.45; display: block; }

/* ---------- Coming soon ---------- */
.soon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.soon-card {
  display: grid; align-content: start; gap: 12px; padding: 28px;
  border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid rgba(201, 174, 227, .3); box-shadow: var(--shadow);
}
.soon-card .when {
  justify-self: start; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--lilac); background: rgba(201, 174, 227, .14); border: 1px solid rgba(201, 174, 227, .35);
  padding: 4px 12px; border-radius: var(--r-pill);
}
.soon-card p { color: var(--mute); }
@media (max-width: 700px) { .soon { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(22, 26, 52, .9); padding-block: 56px 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { margin: 0 0 12px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; color: var(--ink); font-weight: 600; }
.foot-grid a:hover { color: var(--lilac); }
.foot-about p { color: var(--mute); font-size: .95rem; margin-top: 12px; max-width: 34ch; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--mute); font-size: .9rem; }
.foot-legal nav { display: flex; gap: 20px; }
.foot-legal a { color: var(--mute); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }

/* ---------- Reduced motion: everything holds still ---------- */
@media (prefers-reduced-motion: reduce) {
  .aurora span, .clock-ring { animation: none; }
  .slider { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scroll-snap-type: x mandatory; }
  .slider-track { animation: none; }
  .slider-track [aria-hidden="true"] { display: none; }
  .ep-card { scroll-snap-align: start; }
  .btn, .ep-card, .door, .ep-art img { transition: none; }
}

/* =========================================================
   Folgen-Bibliothek (/folgen/)
   ========================================================= */
.page-hero { padding-top: clamp(20px, 3vw, 36px); }
.page-hero .hero-panel { padding-block: clamp(32px, 5vw, 64px); }
.page-hero .hero-copy { max-width: 760px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.page-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--ramp-orange-light), var(--play-3) 55%, var(--ramp-purple-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.count-pill {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--r-pill); background: rgba(27, 20, 58, .5);
  border: 1px solid rgba(255, 255, 255, .2); font-weight: 800; font-size: .9rem;
}
.count-pill b { font-family: var(--display); color: var(--gold); font-size: 1.1rem; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(22px, 3vw, 34px); }
.chip {
  font-family: var(--body); font-weight: 800; font-size: .92rem; color: var(--mute);
  padding: 9px 16px; border-radius: var(--r-pill); cursor: pointer;
  background: var(--frost); border: 1px solid var(--line);
  transition: background .2s ease, color .2s ease;
}
.chip:hover { color: var(--ink); background: rgba(255, 255, 255, .18); }
.chip[aria-pressed="true"] {
  color: #fff; border-color: transparent;
  background: linear-gradient(110deg, var(--play-1), var(--play-2) 55%, var(--play-3));
  box-shadow: var(--glow-play);
}
.chip small { font-weight: 700; opacity: .75; }

.ep-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 26px); row-gap: clamp(34px, 4vw, 48px); padding-top: 12px; }
.ep-grid .ep-card { width: auto; }
.ep-grid .ep-card[hidden] { display: none; }
.ep-art { position: relative; }
.ep-num {
  position: absolute; left: 10px; top: 10px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(27, 20, 58, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .25);
  font-size: .76rem; font-weight: 800; letter-spacing: .04em; color: #fff; font-variant-numeric: tabular-nums;
}
.ep-grid .ep-card { grid-template-rows: auto 1fr; background: linear-gradient(170deg, rgba(255, 251, 246, .30) 0%, rgba(201, 174, 227, .16) 55%, rgba(140, 107, 224, .10) 100%); }
.ep-grid .ep-card:hover, .ep-grid .ep-card:focus-visible { transform: translateY(-8px) scale(1.02); }
.ep-grid .ep-meta { display: flex; flex-direction: column; gap: 2px; }
.ep-grid .ep-tag { margin-top: auto; }
.ep-grid .ep-tease { margin-bottom: 12px; }
.ep-tease { color: var(--mute); font-size: .92rem; line-height: 1.45; margin-top: 6px; }
.ep-tag {
  align-self: flex-start; margin-top: 10px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--lilac); background: rgba(201, 174, 227, .14); border: 1px solid rgba(201, 174, 227, .3);
  padding: 3px 10px; border-radius: var(--r-pill);
}
@media (max-width: 1060px) { .ep-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ep-tease { display: none; } }
@media (max-width: 600px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 10px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .ep-grid .ep-name { font-size: 1.1rem; }
}

.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
  padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--mesh-3), var(--mesh-4));
  box-shadow: var(--shadow-lg), 0 40px 100px -50px rgba(194, 95, 176, .8);
}
.cta-band::before {
  content: ""; position: absolute; z-index: -1; width: 50%; height: 160%; right: -10%; top: -30%;
  background: radial-gradient(closest-side, rgba(194, 95, 176, .55), transparent); filter: blur(30px);
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-band p { color: var(--mute); margin-top: 8px; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }
