/* ═══════════════════════════════════════════════════════════════════════
   Selbstverwirklichung – Podcast

   Eigene Datei statt eines weiteren Blocks in app.css: Der Player kostet
   rund sechs Kilobyte, die auf jeder anderen Seite nichts zu suchen haben.
   Eingebunden wird sie nur von podcast.php (über $headExtra).

   Tokens kommen aus app.css — hier wird keine Farbe erfunden. Wenn ein Ton
   fehlt, erst in brand/visual-guidelines.md ergänzen, dann in app.css,
   dann hier verwenden.

   Die Marke arbeitet mit der Creme-Rampe statt mit Schatten. Genau eine
   Ausnahme steht in dieser Datei: die Abspielleiste am unteren Rand. Sie
   schwebt tatsächlich über dem Inhalt, und ohne Kante wäre nicht zu
   erkennen, wo die Seite aufhört und der Player anfängt.
   ═══════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════
   Kopf der Übersicht
   ═══════════════════════════════════════════════════════════════════════ */

.pc-hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  align-items: start;
  margin-bottom: 64px;
}

.pc-hero-cover {
  border-radius: var(--sf-radius-card);
  overflow: hidden;
  background: var(--sf-surface-5);
  aspect-ratio: 1 / 1;
}
.pc-hero-cover img { width: 100%; height: 100%; object-fit: cover; }

.pc-hero-text .eyebrow { margin-bottom: 14px; }
.pc-hero-text .display { margin-bottom: 10px; }

.pc-hero-sub {
  font-family: var(--sf-font-display);
  font-size: 1.375rem;
  color: var(--sf-clay);
  margin-bottom: 18px;
  line-height: 1.25;
}

.pc-hero-text .lead { max-width: 62ch; }

/* ── Abonnieren ─────────────────────────────────────────────────────── */

.pc-abo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.pc-abo-label {
  font-family: var(--sf-font-eyebrow);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sf-ink-muted);
  margin-right: 4px;
}

.pc-abo .btn .icon { width: 15px; height: 15px; }


/* ═══════════════════════════════════════════════════════════════════════
   Neueste Folge
   ═══════════════════════════════════════════════════════════════════════ */

.pc-neueste { margin-bottom: 72px; }

/* Die Karte trägt die Sandfarbe als linke Kante statt als Fläche. Eine
   eingefärbte Fläche würde den Absatz aus der Creme-Rampe herausbrechen;
   die Kante genügt völlig, um „das hier ist die neue" zu sagen. */
.pc-feature {
  background: var(--sf-surface-0);
  border: 1px solid var(--sf-border);
  border-left: 3px solid var(--sf-sand);
  border-radius: var(--sf-radius-card);
  padding: 34px 38px 36px;
}

.pc-feature-meta,
.pc-zeile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 0.8125rem;
  color: var(--sf-ink-muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}

.pc-nummer {
  font-family: var(--sf-font-eyebrow);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sf-clay-deep);
  background: var(--sf-surface-5);
  border-radius: var(--sf-radius-pill);
  padding: 3px 10px;
}

.pc-feature-title {
  font-family: var(--sf-font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  line-height: 1.1;
  margin-bottom: 14px;
}
.pc-feature-title a { color: var(--sf-ink); }
.pc-feature-title a:hover { color: var(--sf-clay-deep); text-decoration: none; }

.pc-feature-teaser {
  color: var(--sf-ink-muted);
  max-width: 62ch;
  margin-bottom: 24px;
}


/* ═══════════════════════════════════════════════════════════════════════
   Liste aller Folgen
   ═══════════════════════════════════════════════════════════════════════ */

.pc-liste-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.pc-liste-kopf .section-title { margin-bottom: 0; }

/* ── Suche ──────────────────────────────────────────────────────────── */

.pc-suche {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pc-suche input[type="search"] {
  width: 280px;
  max-width: 100%;
  padding: 11px 16px 11px 42px;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius-pill);
  background: var(--sf-surface-0);
  font-size: 0.9375rem;
  color: var(--sf-ink);
}
.pc-suche input[type="search"]::placeholder { color: var(--sf-ink-muted); }
.pc-suche input[type="search"]:focus {
  outline: none;
  border-color: var(--sf-sand);
}

.pc-suche-icon {
  position: absolute;
  left: 15px;
  width: 17px;
  height: 17px;
  color: var(--sf-ink-muted);
  pointer-events: none;
}

.pc-suche-reset {
  font-size: 0.8125rem;
  color: var(--sf-ink-muted);
  white-space: nowrap;
}

/* ── Zeilen ─────────────────────────────────────────────────────────
   Bewusst eine Liste, kein Kachelraster. Folgen unterscheiden sich durch
   ihren Titel, nicht durch ihr Bild — jede trägt dasselbe Titelbild. Ein
   Raster aus vierzig identischen Bildern sagt nichts und macht das Suchen
   schwerer. Die Liste dagegen liest sich wie ein Inhaltsverzeichnis. */

.pc-liste {
  border-top: 1px solid var(--sf-border);
}

.pc-zeile {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: start;
  padding: 26px 8px 26px 0;
  border-bottom: 1px solid var(--sf-border);
  transition: background 0.18s ease;
}
.pc-zeile:hover { background: var(--sf-surface-2); }

.pc-zeile-titel {
  font-family: var(--sf-font-display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.15;
  margin-bottom: 8px;
}
.pc-zeile-titel a { color: var(--sf-ink); }
.pc-zeile-titel a:hover { color: var(--sf-clay-deep); text-decoration: none; }

.pc-zeile-teaser {
  font-size: 0.9375rem;
  color: var(--sf-ink-muted);
  max-width: 76ch;
}


/* ═══════════════════════════════════════════════════════════════════════
   Abspiel-Knöpfe

   Zwei Bauformen, ein Verhalten: Der runde Knopf steht in der Liste, der
   breite auf der Detailseite und bei der neuesten Folge. Beide tragen die
   Klasse .pc-play und dieselben data-pc-*-Attribute; podcast.js kennt nur
   diese eine Klasse.

   Play und Pause liegen übereinander im Markup, sichtbar ist immer genau
   eines. Das spart das Nachladen eines Icons beim Umschalten — und damit
   das Flackern im Moment des Klicks.
   ═══════════════════════════════════════════════════════════════════════ */

.pc-play { cursor: pointer; }

.pc-ico-pause { display: none; }
.pc-play.is-playing .pc-ico-play  { display: none; }
.pc-play.is-playing .pc-ico-pause { display: block; }

/* ── Rund (Liste) ───────────────────────────────────────────────────── */

.pc-play-rund {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--sf-border);
  border-radius: 50%;
  background: var(--sf-surface-0);
  color: var(--sf-clay-deep);
  padding: 0;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.pc-play-rund .icon { width: 20px; height: 20px; }
/* Das Dreieck sitzt optisch links von der Mitte, wenn es geometrisch
   zentriert ist. Zwei Pixel nach rechts, und es stimmt. Bei Pause nicht —
   zwei Balken sind symmetrisch. */
.pc-play-rund .pc-ico-play { margin-left: 2px; }

.pc-play-rund:hover {
  background: var(--sf-sand);
  border-color: var(--sf-sand);
  color: var(--sf-on-dark);
}
.pc-play-rund.is-playing {
  background: var(--sf-clay-deep);
  border-color: var(--sf-clay-deep);
  color: var(--sf-on-dark);
}

/* ── Breit (Detailseite, neueste Folge) ─────────────────────────────── */

.pc-play-lg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.pc-play-lg .icon { width: 18px; height: 18px; }


/* ═══════════════════════════════════════════════════════════════════════
   Einzelne Folge
   ═══════════════════════════════════════════════════════════════════════ */

.pc-single { margin-bottom: 64px; }

.pc-single-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 52px;
}

.pc-single-cover {
  border-radius: var(--sf-radius-card);
  overflow: hidden;
  background: var(--sf-surface-5);
  aspect-ratio: 1 / 1;
}
.pc-single-cover img { width: 100%; height: 100%; object-fit: cover; }

.pc-single-meta .eyebrow { margin-bottom: 12px; }

.pc-single-title {
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem);
  margin-bottom: 14px;
}

.pc-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 0.875rem;
  color: var(--sf-ink-muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 26px;
}

.pc-single-actions { margin-top: 0; }
.pc-single-actions .btn .icon { width: 15px; height: 15px; }

.pc-notes { margin-bottom: 36px; }
.pc-notes .section-title { margin-bottom: 20px; }

/* ── Begriffe aus dem Wiki ──────────────────────────────────────────────
   Seit dem 30.09. stehen hier nicht mehr die Schlagwörter aus dem Feed,
   sondern die Wiki-Begriffe, die in der Folge vorkommen. Sie sind echte
   Links: Jeder führt auf die Folgenliste, gefiltert nach diesem Begriff. */

.pc-begriffe {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--sf-border);
}

.pc-begriffe-titel {
  font-family: var(--sf-font-display);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.2;
  margin-bottom: 4px;
}

.pc-begriffe-hinweis {
  font-size: 0.875rem;
  color: var(--sf-ink-muted);
  margin-bottom: 16px;
}

.pc-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Kopfkarte der gefilterten Liste ────────────────────────────────── */

.pc-begriff-karte {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  margin-bottom: 32px;
  background: var(--sf-surface-0);
  border: 1px solid var(--sf-border);
  border-left: 3px solid var(--sf-sand);
  border-radius: var(--sf-radius-card);
}

.pc-begriff-name {
  font-family: var(--sf-font-display);
  font-weight: 500;
  font-size: 1.625rem;
  line-height: 1.15;
  margin-bottom: 6px;
}

.pc-begriff-teaser {
  font-size: 0.9375rem;
  color: var(--sf-ink-muted);
  max-width: 62ch;
}

/* ── Begriffsleiste über der Liste ──────────────────────────────────── */

.pc-wolke { margin-bottom: 32px; }

/* ── Begriffe an der einzelnen Zeile ────────────────────────────────
   Bewusst keine Chips: In einer Liste von vierzig Zeilen würden hundert
   gerahmte Pillen die Titel erschlagen. Hier genügt gesetzter Text in der
   Akzentfarbe, getrennt durch Mittelpunkte. */

.pc-zeile-begriffe {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 10px;
  font-size: 0.8125rem;
}

.pc-zeile-begriff {
  color: var(--sf-clay);
  position: relative;
}
.pc-zeile-begriff + .pc-zeile-begriff::before {
  content: "·";
  position: absolute;
  left: -9px;
  color: var(--sf-sand-soft);
}
.pc-zeile-begriff:hover { color: var(--sf-clay-deep); }

/* ── Blättern ───────────────────────────────────────────────────────── */

.pc-nachbarn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 56px 0 32px;
}

.pc-nachbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius-card);
  background: var(--sf-surface-0);
  color: var(--sf-ink);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.pc-nachbar:hover {
  border-color: var(--sf-sand-soft);
  background: var(--sf-surface-2);
  text-decoration: none;
}
.pc-nachbar.is-empty { border: none; background: none; }
.pc-nachbar-rechts { justify-content: flex-end; text-align: right; }

.pc-nachbar .icon { width: 18px; height: 18px; color: var(--sf-sand); flex: none; }

.pc-nachbar-label {
  display: block;
  font-family: var(--sf-font-eyebrow);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sf-ink-muted);
  margin-bottom: 3px;
}

.pc-nachbar-title {
  display: block;
  font-family: var(--sf-font-display);
  font-size: 1.125rem;
  line-height: 1.2;
}

.pc-zurueck { margin-bottom: 8px; }


/* ═══════════════════════════════════════════════════════════════════════
   Abspielleiste

   Liegt fest am unteren Rand und überlebt das Scrollen und den Wechsel
   zwischen Übersicht und Detailseite nicht — ein Seitenwechsel setzt sie
   zurück. Das ist der Preis dafür, dass hier kein Single-Page-Gerüst läuft;
   die gemerkte Position sorgt dafür, dass man an derselben Stelle weiter
   hört.
   ═══════════════════════════════════════════════════════════════════════ */

.pc-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--sf-surface-0);
  border-top: 1px solid var(--sf-border);
  /* Die eine Stelle mit Schatten (siehe Kopf dieser Datei). Nach oben
     gerichtet und deutlich schwächer als --sf-shadow: Die Leiste soll sich
     abheben, nicht auf der Seite liegen. */
  box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.07);
}

/* Solange die Leiste steht, verdeckt sie die letzten Zeilen der Seite.
   Gesetzt wird die Klasse von podcast.js, sobald etwas läuft. */
body.has-podcast-player { padding-bottom: 92px; }

.pc-bar-inner {
  max-width: var(--sf-container-wide);
  margin: 0 auto;
  padding: 12px 28px;
  display: grid;
  grid-template-columns: 48px minmax(120px, 1fr) auto minmax(220px, 2fr) auto;
  align-items: center;
  gap: 18px;
}

.pc-bar-cover {
  width: 48px;
  height: 48px;
  border-radius: var(--sf-radius-sm);
  overflow: hidden;
  background: var(--sf-surface-5);
}
.pc-bar-cover img { width: 100%; height: 100%; object-fit: cover; }

.pc-bar-text { min-width: 0; }

.pc-bar-title {
  display: block;
  font-family: var(--sf-font-display);
  font-size: 1.0625rem;
  line-height: 1.2;
  color: var(--sf-ink);
  /* Ein Titel wie „Was verändert sich, wenn wir anfangen, bewusster zu
     leben?" ist länger als jede Leiste. Er wird gekürzt, nicht umgebrochen —
     eine zweistöckige Leiste, die je nach Folge die Höhe wechselt, springt
     beim Umschalten. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-bar-title:hover { color: var(--sf-clay-deep); }

.pc-bar-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--sf-ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Knöpfe in der Leiste ───────────────────────────────────────────── */

.pc-bar-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pc-ctrl {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: none;
  background: none;
  border-radius: 50%;
  color: var(--sf-clay);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.pc-ctrl:hover { background: var(--sf-surface-5); color: var(--sf-clay-deep); }
.pc-ctrl .icon { width: 19px; height: 19px; }

.pc-ctrl-main {
  width: 46px;
  height: 46px;
  background: var(--sf-clay-deep);
  color: var(--sf-on-dark);
}
.pc-ctrl-main:hover { background: var(--sf-clay); color: var(--sf-on-dark); }
.pc-ctrl-main .icon { width: 20px; height: 20px; }
.pc-ctrl-main .pc-ico-play { margin-left: 2px; }

.pc-bar .pc-ico-pause { display: none; }
.pc-bar.is-playing .pc-ico-play  { display: none; }
.pc-bar.is-playing .pc-ico-pause { display: block; }

.pc-ctrl-quiet { color: var(--sf-ink-muted); font-size: 1.375rem; line-height: 1; }

/* ── Fortschritt ────────────────────────────────────────────────────── */

.pc-bar-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pc-time {
  font-size: 0.75rem;
  color: var(--sf-ink-muted);
  font-variant-numeric: tabular-nums;
  min-width: 42px;
  text-align: center;
}

/* Der Schieberegler ist ein echtes <input type="range"> — wegen Tastatur,
   Screenreader und Touch. Sichtbar ist davon nichts Serienmäßiges: Spur und
   Griff werden komplett neu gezeichnet, der gefüllte Teil über die Variable
   --pc-fill, die podcast.js setzt. */
.pc-seek {
  --pc-fill: 0%;
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 20px;
  background: none;
  cursor: pointer;
}

.pc-seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right,
              var(--sf-sand) 0 var(--pc-fill),
              var(--sf-surface-6) var(--pc-fill) 100%);
}
.pc-seek::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--sf-surface-6);
}
.pc-seek::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--sf-sand);
}

.pc-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--sf-clay-deep);
  border: none;
  margin-top: -4.5px;   /* mittig auf der 4px-Spur */
}
.pc-seek::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--sf-clay-deep);
  border: none;
}

.pc-seek:focus-visible { outline: 2px solid var(--sf-clay-deep); outline-offset: 4px; }

/* ── Tempo und Schließen ────────────────────────────────────────────── */

.pc-bar-extra {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pc-speed {
  min-width: 46px;
  padding: 6px 10px;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius-pill);
  background: var(--sf-surface-0);
  font-size: 0.8125rem;
  color: var(--sf-clay-deep);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.pc-speed:hover { background: var(--sf-surface-5); border-color: var(--sf-sand-soft); }


/* ═══════════════════════════════════════════════════════════════════════
   Schmale Viewports
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .pc-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pc-hero-cover { max-width: 200px; }

  .pc-single-head {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .pc-single-cover { max-width: 180px; }

  .pc-nachbarn { grid-template-columns: 1fr; }
  .pc-nachbar-rechts { justify-content: flex-start; text-align: left; flex-direction: row-reverse; }

  .pc-liste-kopf { align-items: stretch; }
  .pc-suche input[type="search"] { width: 100%; }
  .pc-suche { flex: 1; }
}

@media (max-width: 760px) {
  /* Überschrift und Suchfeld stehen ab hier untereinander. Nebeneinander
     bleibt für das Feld eine Spalte übrig, in der nicht einmal mehr die
     Platzhalterschrift ganz hineinpasst — „Folgen durchsuc…". */
  .pc-liste-kopf {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
}

@media (max-width: 720px) {
  .pc-feature { padding: 26px 22px 28px; }

  .pc-zeile {
    grid-template-columns: 46px 1fr;
    gap: 16px;
    padding: 20px 0;
  }
  .pc-play-rund { width: 46px; height: 46px; }
  .pc-play-rund .icon { width: 17px; height: 17px; }
  .pc-zeile-titel { font-size: 1.25rem; }

  /* Auf dem Handy wird die Leiste zweizeilig: Titel und Knöpfe oben, der
     Fortschritt darunter über die ganze Breite. Ein 220px breiter
     Schieberegler neben fünf Knöpfen wäre mit dem Daumen nicht zu treffen. */
  .pc-bar-inner {
    grid-template-columns: 44px 1fr auto;
    grid-template-areas:
      "cover text controls"
      "progress progress progress";
    gap: 10px 14px;
    padding: 10px 18px 12px;
  }
  .pc-bar-cover  { grid-area: cover; width: 44px; height: 44px; }
  .pc-bar-text   { grid-area: text; }
  .pc-bar-controls { grid-area: controls; }
  .pc-bar-progress { grid-area: progress; }

  /* Tempo und Schließen fallen weg: Der Platz reicht nicht für beides, und
     der Player lässt sich über Pause und einen Seitenwechsel ebenso
     beenden. Das Tempo bleibt auf dem zuletzt gewählten Wert. */
  .pc-bar-extra { display: none; }

  body.has-podcast-player { padding-bottom: 126px; }
}

/* Wer Bewegung reduziert haben will, bekommt keine Übergänge. Der Player
   selbst bleibt vollständig bedienbar — Bewegung ist hier Zierde, nicht
   Funktion. */
@media (prefers-reduced-motion: reduce) {
  .pc-zeile,
  .pc-play-rund,
  .pc-nachbar,
  .pc-ctrl,
  .pc-speed { transition: none; }
}
