/* =========================================================
   geschichte-fuer-kids.de — folge.css
   Styles for the episode pages (/folgen/<name>/).
   Loaded after /site.css.
   ========================================================= */
.foot-legal a[aria-current="page"] { color: var(--ink); }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; font-weight: 700; color: var(--mute); margin: 0 0 14px 4px; }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- Hero: Wimmelbild with cover tile ---------- */
.ep-stage { padding-top: clamp(14px, 2.5vw, 28px); }
.ep-visual {
  position: relative; overflow: hidden; border-radius: var(--r-xl); aspect-ratio: 16 / 7.5; max-height: 560px; width: 100%;
  background: var(--surface); box-shadow: var(--shadow-lg), 0 50px 120px -40px rgba(194, 95, 176, .7);
}
.ep-visual > img { width: 100%; height: 100%; object-fit: cover; }
.ep-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 10, 38, 0) 45%, rgba(14, 10, 38, .78) 100%); pointer-events: none; }
.ep-visual.no-wimmel > img { filter: blur(26px) saturate(1.2); transform: scale(1.2); opacity: .7; }
.ep-badge-row { position: absolute; z-index: 2; left: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 28px); display: flex; align-items: flex-end; gap: clamp(14px, 2vw, 22px); }
.ep-cover-tile {
  width: clamp(96px, 15vw, 176px); aspect-ratio: 1; border-radius: 20px; overflow: hidden; flex: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 20px 50px -10px rgba(8, 4, 26, .9);
}
.ep-cover-tile img { width: 100%; height: 100%; object-fit: cover; }
.ep-badge-text { display: grid; gap: 6px; padding-bottom: 4px; }
.ep-badge-text .ep-no { justify-self: start; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mesh-1); background: #fff; padding: 5px 12px; border-radius: 999px; }
.ep-badge-text .ep-figure { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 3vw, 2.2rem); line-height: 1.05; color: #fff; text-shadow: 0 2px 18px rgba(8, 4, 26, .8); }
.ep-badge-text .ep-era { color: #f2effa; font-weight: 700; font-size: .95rem; text-shadow: 0 2px 12px rgba(8, 4, 26, .8); }
@media (max-width: 600px) { .ep-visual { aspect-ratio: 4 / 3.4; } }

/* ---------- Four feature pills ---------- */
.ep-pills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 18px); margin-top: clamp(14px, 2vw, 22px); }
.ep-pill {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ep-pill:hover { transform: translateY(-3px); border-color: rgba(201, 174, 227, .5); box-shadow: var(--shadow), 0 0 30px -8px rgba(201, 174, 227, .6); }
.ep-pill .ico { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; }
.ep-pill:nth-child(1) .ico { background: linear-gradient(160deg, var(--ramp-orange-light), var(--ramp-orange-deep)); }
.ep-pill:nth-child(2) .ico { background: linear-gradient(160deg, var(--ramp-orange-deep), var(--play-3)); }
.ep-pill:nth-child(3) .ico { background: linear-gradient(160deg, var(--play-3), var(--ramp-purple-light)); }
.ep-pill:nth-child(4) .ico { background: linear-gradient(160deg, var(--ramp-purple-light), var(--ramp-purple-deep)); }
.ep-pill b { display: block; font-size: 1rem; line-height: 1.2; }
.ep-pill small { display: block; color: var(--mute); font-size: .84rem; font-weight: 700; line-height: 1.3; }
@media (max-width: 900px) { .ep-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .ep-pills { grid-template-columns: 1fr; } }

/* ---------- Text + fact card ---------- */
.ep-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(28px, 5vw, 64px); align-items: start; }
.ep-text { display: grid; gap: 16px; max-width: 720px; }
.ep-text h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.ep-text .sub { font-size: clamp(1.1rem, 1.8vw, 1.28rem); font-weight: 700; color: var(--lilac); line-height: 1.45; }
.ep-text p { color: #d9d2ee; line-height: 1.75; }
.ep-text h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-top: 14px; }
.ep-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ep-topics li {
  padding: 14px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  color: #d9d2ee; line-height: 1.6;
}
.ep-topics li b { color: var(--ink); }
.ep-themes { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ep-themes li { font-size: .82rem; font-weight: 800; color: var(--lilac); background: rgba(201, 174, 227, .12); border: 1px solid rgba(201, 174, 227, .3); padding: 6px 12px; border-radius: 999px; }
.ep-facts {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px);
  padding: 22px; border-radius: var(--r-lg);
  background: linear-gradient(170deg, rgba(255, 251, 246, .2) 0%, rgba(201, 174, 227, .1) 55%, rgba(140, 107, 224, .06) 100%);
  border: 1px solid rgba(255, 255, 255, .2); box-shadow: var(--shadow), var(--glow-violet);
}
.ep-facts h2 { font-size: 1.25rem; margin-bottom: 12px; }
.ep-facts dl { margin: 0; display: grid; gap: 10px; }
.ep-facts dl div { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ep-facts dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.ep-facts dt { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.ep-facts dd { margin: 0; font-weight: 700; color: var(--ink); }
@media (max-width: 900px) { .ep-layout { grid-template-columns: 1fr; } .ep-facts { position: static; } }

/* ---------- Listen band (same as press page) ---------- */
.listen-head { display: grid; gap: 10px; margin-bottom: 18px; }
.listen-band {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden;
}
.listen { display: flex; align-items: center; gap: 14px; padding: 20px 22px; color: var(--ink); text-decoration: none; transition: background .2s ease; }
.listen + .listen { border-left: 1px solid var(--line); }
a.listen:hover { background: rgba(255, 255, 255, .05); }
.listen b { display: block; font-size: 1.02rem; }
.listen > span:last-child { color: var(--mute); font-size: .88rem; font-weight: 700; }
.listen > span:last-child a { color: var(--lilac); text-decoration: none; }
.pf-ico { width: 52px; height: 52px; flex: none; border-radius: 15px; display: grid; place-items: center; color: #fff; }
.pf-ico svg { width: 28px; height: 28px; }
.pf-apple { background: linear-gradient(160deg, #d56efc, #832bc1); }
.pf-spotify { background: #1ed760; color: #0b1f12; }
.pf-addict { background: #f4842d; color: #2a1200; }
.pf-app { object-fit: cover; box-shadow: 0 0 24px -6px rgba(201, 174, 227, .7); }
@media (max-width: 960px) {
  .listen-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listen:nth-child(3) { border-left: 0; }
  .listen:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .listen-band { grid-template-columns: 1fr; }
  .listen + .listen { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- More episodes ---------- */
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.more-grid .ep-card { width: auto; }
@media (max-width: 760px) { .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .more-grid .ep-card:nth-child(3) { display: none; } }

.listen-note { margin-top: 12px; color: var(--mute); font-size: .92rem; font-weight: 700; text-align: center; }
