/* Podiwood — ein Stylesheet für beide Ebenen.
   Das Label ist hell und ruhig, eine Show darf ihre eigene Welt haben:
   data-theme="hell|dunkel" und --akzent kommen pro Seite aus dem Generator. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, sans-serif;
  --breite: 68rem;
  --rand: clamp(1.25rem, 5vw, 4rem);

  /* Podiwood, hell — Off-White statt Reinweiß: Papier, nicht Bildschirm. */
  --grund: #F4F1EA;
  --flaeche: #FFFFFF;
  --text: #16161A;
  --text-leise: #6B6862;
  --linie: #DDD8CD;
  --akzent: #D9451F;
  --akzent-text: #FFFFFF;
  --glow: none;
}

[data-theme="dunkel"] {
  /* Fernsehkult — der dunkle Raum, in dem der Fernseher leuchtet. */
  --grund: #0E1017;
  --flaeche: #171A23;
  --text: #EDEAE3;
  --text-leise: #9A9689;
  --linie: #262A36;
  --akzent-text: #14161D;
  --glow: 0 0 6rem -1rem var(--akzent);
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--grund);
  -webkit-font-smoothing: antialiased;

  /* Hält den Fuß am unteren Rand, wenn eine Seite wenig Inhalt hat — sonst
     hinge er bei einer einzigen Folge mitten im Bild. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Kopf, Inhalt und Fuß sind damit Flex-Items. Ohne die volle Breite würden
   sie durch ihr `margin: 0 auto` auf Max-Content-Breite schrumpfen und die
   Seite auf schmalen Geräten seitlich überlaufen lassen. */
body > * { width: 100%; }

main { flex: 1; }

a { color: inherit; }

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

::selection { background: var(--akzent); color: var(--akzent-text); }

:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Kopf ──────────────────────────────────────────────────────────────── */

.kopf {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.75rem) var(--rand) 0;
}

.wortmarke {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
  display: inline-block;
}
.wortmarke span { color: var(--akzent); }

/* ── Startseite: Label ─────────────────────────────────────────────────── */

main {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand);
}

.hero-label {
  padding: clamp(4rem, 14vh, 9rem) 0 clamp(3.5rem, 9vh, 6rem);
  max-width: 46rem;
}

.claim {
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
  text-wrap: balance;
}

/* Der Punkt ist das Marken-Detail — derselbe wie in „podiwood." */
.claim-punkt { color: var(--akzent); }

.intro {
  margin: clamp(1.5rem, 4vw, 2.25rem) 0 0;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.6;
  color: var(--text-leise);
  max-width: 34rem;
}

/* Eine Tonspur als grafische Signatur: dünne Linie, am Ende der rote
   Aufnahme-Punkt. Das einzige dekorative Element der Startseite. */
.tonspur {
  width: min(18rem, 55vw);
  height: 10px;   /* hoch genug für den Punkt — bei 2px würde er zum Strich geclippt */
  margin-top: clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(circle at calc(100% - 4px) 50%, var(--akzent) 0 4px, transparent 5px)
      no-repeat,
    linear-gradient(to right, var(--text) 0 100%)
      left 50% / calc(100% - 14px) 2px no-repeat;   /* Lücke zum Punkt: 6px statt 10px */
}

.abschnitt-titel {
  margin: 0 0 1.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-leise);
}

.shows { padding-bottom: clamp(4rem, 12vh, 7rem); }

.show-liste { display: grid; gap: 1rem; }

/* Die Kachel ist bewusst dunkel auf der hellen Seite: ein Fenster in die
   Show-Welt, mit deren Akzent (--kachel-akzent kommt inline pro Show). */
.show-kachel {
  display: grid;
  grid-template-columns: clamp(6.5rem, 22vw, 11rem) 1fr auto;
  gap: clamp(1.25rem, 4vw, 2.25rem);
  align-items: center;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: #14161D;
  color: #EDEAE3;
  border: 1px solid #262A36;
  border-radius: 1rem;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.show-kachel:hover {
  border-color: var(--kachel-akzent, var(--akzent));
  transform: translateY(-2px);
}

.show-cover {
  display: block;
  overflow: hidden;               /* hält das Bild beim Hover-Zoom in Form */
  border-radius: .625rem;
  box-shadow: 0 0 3.5rem -0.75rem var(--kachel-akzent, var(--akzent));
}
.show-cover img {
  border-radius: inherit;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .4s cubic-bezier(0.33, 1, 0.68, 1);
}
.show-kachel:hover .show-cover img { transform: scale(1.05); }

.show-pfeil {
  align-self: start;
  font-size: 1.375rem;
  color: var(--kachel-akzent, var(--akzent));
  transition: transform .18s ease;
}
.show-kachel:hover .show-pfeil { transform: translate(.2rem, -.2rem); }

.cover-ersatz {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: .625rem;
  background: var(--akzent);
  color: var(--akzent-text);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  padding: .75rem;
  font-size: clamp(.875rem, 2.5vw, 1.25rem);
  line-height: 1.15;
}
.cover-ersatz.gross { font-size: clamp(1.5rem, 5vw, 2.75rem); border-radius: 1rem; }

.show-text { display: grid; gap: .3rem; }

.show-titel {
  font-size: clamp(1.375rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.show-untertitel { color: #9A9689; line-height: 1.4; }

/* Zarte Pille statt nacktem Farbtext — liest sich als Zustand, nicht als Link. */
.show-meta {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  margin-top: .6rem;
  padding: .25rem .6rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--kachel-akzent, var(--akzent));
  background: color-mix(in srgb, var(--kachel-akzent, var(--akzent)) 14%, transparent);
  border-radius: 100px;
}

/* ── Showseite ─────────────────────────────────────────────────────────── */

.hero-show {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 9vh, 5.5rem) 0 clamp(3rem, 9vh, 5rem);
}

@media (max-width: 44rem) {
  /* minmax(0, 1fr) statt 1fr: ein 1fr-Track hat min-width:auto und wächst
     sonst über den Viewport hinaus, statt den Inhalt umbrechen zu lassen. */
  .hero-show { grid-template-columns: minmax(0, 1fr); }
  .hero-cover { max-width: 16rem; }
}

.hero-cover img {
  border-radius: 1rem;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: var(--glow);
}

.show-h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7.5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.show-claim {
  margin: .75rem 0 0;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--akzent);
  font-weight: 600;
  line-height: 1.35;
}

.show-beschreibung {
  margin: 1.25rem 0 0;
  color: var(--text-leise);
  max-width: 34rem;
}

.plattformen {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  margin-top: clamp(1.5rem, 4vw, 2rem);
}

.plattform {
  padding: .6rem 1.1rem;
  border: 1px solid var(--linie);
  border-radius: 100px;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}
.plattform:hover { border-color: var(--akzent); color: var(--akzent); }
.plattform.rss { color: var(--text-leise); }
.plattform.rss:hover { color: var(--akzent); }

/* ── Folgen ────────────────────────────────────────────────────────────── */

.folgen { padding-bottom: clamp(4rem, 12vh, 7rem); }

.folge {
  padding: clamp(1.5rem, 4vw, 2.25rem) 0;
  border-top: 1px solid var(--linie);
}

.folge-meta {
  margin: 0 0 .5rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-leise);
}

.entwurf-marke {
  margin-left: .75rem;
  padding: .15rem .5rem;
  background: #FFE8A3;
  color: #6B4E00;
  border-radius: .25rem;
  letter-spacing: .04em;
}

.folge-titel {
  margin: 0 0 .75rem;
  font-size: clamp(1.375rem, 3.5vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.028em;
  font-weight: 700;
  text-wrap: balance;
}

.folge-teaser { max-width: 42rem; }
.folge-teaser p { margin: 0; color: var(--text-leise); }

.kein-audio {
  margin: 1.25rem 0 0;
  font-size: .875rem;
  color: var(--text-leise);
  font-style: italic;
}

.leer { color: var(--text-leise); padding: 2rem 0; }

/* Shownotes: erster Absatz steht immer, Quellen klappen auf. */
.shownotes { margin-top: 1.25rem; }

.shownotes summary {
  cursor: pointer;
  display: inline-block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--akzent);
  list-style: none;
  padding: .25rem 0;
}
.shownotes summary::-webkit-details-marker { display: none; }
.shownotes summary::after { content: " ↓"; }
.shownotes[open] summary::after { content: " ↑"; }

.shownotes-inhalt {
  margin-top: .75rem;
  max-width: 42rem;
  color: var(--text-leise);
  font-size: .9375rem;
}
.shownotes-inhalt p { margin: 0 0 .75rem; }
.shownotes-inhalt ul { margin: 0; padding-left: 1.1rem; }
.shownotes-inhalt li { margin-bottom: .35rem; }

/* ── Player ────────────────────────────────────────────────────────────── */

.player { margin-top: 1.25rem; max-width: 34rem; }

/* Ohne JS bleibt der native Player sichtbar und voll bedienbar. */
.player audio { width: 100%; }

.player.aufgewertet audio { display: none; }

.player-ui {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .625rem .875rem .625rem .625rem;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 100px;
}

.player-taste {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: var(--akzent);
  color: var(--akzent-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: transform .15s ease;
}
.player-taste:hover { transform: scale(1.06); }
.player-taste:active { transform: scale(.97); }
.player-taste svg { width: 1.125rem; height: 1.125rem; fill: currentColor; }

/* Positionsleiste als <input type="range">: nativ tastaturbedienbar und für
   Screenreader lesbar. Der gefüllte Teil ist ein Farbverlauf, den player.js
   über --gefuellt setzt. */
.player-leiste {
  flex: 1;
  min-width: 0;
  height: 1.25rem;
  margin: 0;
  cursor: pointer;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.player-leiste::-webkit-slider-runnable-track {
  height: .375rem;
  border-radius: 100px;
  background: linear-gradient(to right,
    var(--akzent) var(--gefuellt, 0%), var(--linie) var(--gefuellt, 0%));
}

.player-leiste::-moz-range-track {
  height: .375rem;
  border-radius: 100px;
  background: linear-gradient(to right,
    var(--akzent) var(--gefuellt, 0%), var(--linie) var(--gefuellt, 0%));
}

.player-leiste::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: .875rem;
  height: .875rem;
  margin-top: -.25rem;
  border: none;
  border-radius: 50%;
  background: var(--akzent);
}

.player-leiste::-moz-range-thumb {
  width: .875rem;
  height: .875rem;
  border: none;
  border-radius: 50%;
  background: var(--akzent);
}

.player-zeit {
  flex: none;
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-leise);
  min-width: 5.5rem;
  text-align: right;
}

/* ── Textseiten ────────────────────────────────────────────────────────── */

.text-seite {
  max-width: 42rem;
  padding-top: clamp(2.5rem, 8vh, 4.5rem);
  padding-bottom: clamp(4rem, 12vh, 7rem);
}

.text-seite h1 {
  margin: 0 0 2rem;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.04em;
  font-weight: 800;
  line-height: 1.05;
}

.text-seite h2 {
  margin: 2.5rem 0 .625rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.text-seite p { margin: 0 0 1rem; color: var(--text-leise); }
.text-seite strong { color: var(--text); }
.text-seite a { color: var(--akzent); }

.luecke-feld {
  background: #FFE8A3;
  color: #6B4E00;
  padding: .1em .35em;
  border-radius: .2em;
  font-weight: 600;
}

/* ── Fuß ───────────────────────────────────────────────────────────────── */

.fuss {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) var(--rand) clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--linie);
  display: grid;
  gap: .875rem;
}

.fuss-marke { margin: 0; font-weight: 800; letter-spacing: -0.03em; }
.fuss-marke span:first-of-type { color: var(--akzent); }

.fuss-claim {
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-leise);
  font-size: .9375rem;
  margin-left: .5rem;
}

.fuss-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.fuss-nav a {
  font-size: .9375rem;
  color: var(--text-leise);
  text-decoration: none;
}
.fuss-nav a:hover { color: var(--akzent); }

.fuss-copy { margin: 0; font-size: .8125rem; color: var(--text-leise); }

.luecke {
  margin: 0 0 .5rem;
  padding: .75rem 1rem;
  background: #FFE8A3;
  color: #6B4E00;
  border-radius: .5rem;
  font-size: .875rem;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
