
/* start/assets/css/podcast.css — nur auf start/podcast/ eingebunden.
   Baut auf tokens.css, site.css (u. a. .form, .field, .consent, .hp) und
   pages.css auf. */

/* ------------------------------------------------------------------ */
/* OPT IN Podcast: eigene Bildsprache (2026-09-23)
   Der Podcast ist ausdruecklich kein Finanzformat. Deshalb bekommt die
   Seite eine sichtbare Abgrenzung zum Rest der Website:
   1. Hero als Buehne: eine laufende Menge (Open Peeps, CC0) statt
      Aurora-Hintergrund. Nachbau von Skiper UI "Skiper 39 / Crowd Canvas"
      (Autor Gurvinder Singh, skiper-ui.com), dort inspiriert von
      codepen.io/zadvorsky/pen/xxwbBQV. Hier ohne React, Tailwind und GSAP,
      die Bewegung rechnet ein kleines requestAnimationFrame-Skript.
   2. Studio-Band: die eigentlichen Podcast-Inhalte stehen auf Schwarzblau,
      die Menge laeuft direkt auf dessen Oberkante wie auf einem Buehnenrand.
   3. Der Schluss-CTA ist wieder hell, dort beginnt Optimum Finanz. */

.pod-hero {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem) 0 0;
  background: var(--paper);
  overflow: hidden;
}
.pod-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 46rem;
  text-align: center;
  display: grid;
  justify-items: center;
}
.pod-hero-copy h1 { font-size: clamp(2.6rem, 7vw, 4.75rem); letter-spacing: -0.035em; margin-bottom: 1.1rem; }
.pod-hero-copy .lede { max-width: 34rem; font-size: 1.125rem; margin-bottom: 1.75rem; }
.pod-hero-copy .cta-row { justify-content: center; }

/* Sendemarke: Pille mit pulsierendem Punkt, darunter die feine Linie aus
   dem Skiper-Original, die zur Headline fuehrt. */
.pod-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pod-mark .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(188, 143, 53, 0.6);
  animation: pod-live 2.2s ease-out infinite;
}
@keyframes pod-live {
  0% { box-shadow: 0 0 0 0 rgba(188, 143, 53, 0.55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(188, 143, 53, 0); }
}
.pod-line {
  display: block;
  width: 1px;
  height: clamp(2rem, 5vw, 3.5rem);
  margin: 0.9rem 0 1rem;
  background: linear-gradient(to bottom, rgba(17, 21, 26, 0), var(--ink));
}
.pod-hero-copy .kicker { margin-bottom: 0.75rem; }

/* Buehne der Menge. Die Figuren duerfen unten angeschnitten sein, sie
   stehen hinter der Oberkante des Studio-Bands. */
.pod-crowd {
  position: relative;
  height: clamp(250px, 44vh, 440px);
  margin-top: clamp(0.5rem, 2vw, 1.5rem);
}
.pod-crowd canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.pod-crowd-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: 0.9rem;
  z-index: 3;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  opacity: 0.75;
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pod-crowd-toggle:hover { opacity: 1; border-color: var(--gold); }
.pod-crowd-toggle svg { width: 16px; height: 16px; }
.pod-crowd-toggle .i-play { display: none; }
.pod-crowd-toggle[aria-pressed="true"] .i-play { display: block; }
.pod-crowd-toggle[aria-pressed="true"] .i-pause { display: none; }
.pod-crowd-toggle[hidden] { display: none; }

/* ------------------------------------------------------------------ */
/* Studio-Band */

.pod-studio {
  position: relative;
  background: var(--ink);
  color: var(--text-on-dark);
  border-top: 2px solid var(--gold);
}
.pod-studio .kicker { color: var(--gold); }
.pod-studio h2 { color: #fff; }
.pod-studio .lede { color: var(--muted-on-dark); }
.pod-studio .section { padding-block: var(--section-y); }
.pod-studio .section + .section { padding-top: 0; }

/* Worum es geht: redaktioneller Block mit Pegel als Deko */
.pod-intro {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; /* rechter Textblock mittig zur ganzen Section */
}
.pod-intro h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 1.5rem; }
.pod-intro p.pod-body {
  margin: 0;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-on-dark);
}
.pod-intro p.pod-body strong { color: #fff; font-weight: 600; }

/* Cover mit eingebettetem Pegel: das Cover liegt als Karte mit tiefem
   Schatten und feinem Goldrand, darunter ragt eine Glas-Leiste mit
   Play-Symbol und laufender Audio-Wave ins Bild. */
.pod-cover {
  position: relative;
  margin: 1.75rem 0 0;
  max-width: 380px;
  padding-bottom: 34px;
}
.pod-cover::before {
  /* weicher Goldschein hinter dem Cover */
  content: "";
  position: absolute;
  inset: 8% -6% 14% -6%;
  background: radial-gradient(closest-side, rgba(188, 143, 53, 0.30), rgba(188, 143, 53, 0));
  filter: blur(18px);
  z-index: 0;
}
.pod-cover img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 22px;
  border: 1px solid rgba(211, 178, 113, 0.35);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.25),
    0 18px 36px rgba(0, 0, 0, 0.35),
    0 50px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(-1.5deg);
  transition: transform 500ms var(--ease);
}
.pod-cover:hover img { transform: rotate(0deg) scale(1.01); }
.pod-cover-bar {
  position: absolute;
  z-index: 2;
  left: 8%;
  right: 8%;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1rem 0.7rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(17, 21, 26, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 230, 225, 0.14);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}
.pod-cover-play {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.pod-cover-play svg { width: 16px; height: 16px; margin-left: 2px; }

.pod-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 34px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.pod-wave span {
  display: block;
  flex: none;
  width: 3px;
  height: var(--h, 40%);
  border-radius: 2px;
  background: var(--gold);
  opacity: 0.85;
  transform-origin: center;
}
.js .pod-wave span { animation: pod-wave 1.3s ease-in-out infinite; animation-delay: calc(var(--i) * -0.11s); }
@keyframes pod-wave { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

.pod-facts {
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(232, 230, 225, 0.12);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.pod-facts li { font-size: var(--size-small); color: var(--muted-on-dark); line-height: 1.45; }
.pod-facts b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.125rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.pod-studio .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(232, 230, 225, 0.28);
}
.pod-studio .btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.pod-studio .btn-primary { background-image: radial-gradient(circle, #fff 49.5%, transparent 50.5%); }
.pod-studio .btn-primary:hover { color: var(--ink); }
.pod-archive-cta { display: flex; justify-content: center; margin-top: 1.75rem; }
.pod-studio .section.is-guest { padding-top: clamp(1rem, 3vw, 2rem); }

/* ------------------------------------------------------------------ */
/* Folgen: die vier neuesten Folgen als Karten. Keine YouTube-Einbettung,
   die Karten verlinken auf YouTube. Vorschaubilder kommen ueber
   podcast/folgen-bild.php vom eigenen Server (Cache), damit beim Aufruf
   der Seite nichts an Google geht. Faellt das Bild aus, steht eine
   typografische Karte mit Folgennummer und Gast da. */

.pod-episodes {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: 68rem;
  margin-inline: auto;
}
.pod-episodes-side { display: grid; gap: clamp(1rem, 2vw, 1.5rem); align-content: start; }

.pod-ep {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  background: #181e27;
  border: 1px solid rgba(232, 230, 225, 0.10);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.pod-ep:hover { transform: translateY(-3px); border-color: rgba(188, 143, 53, 0.55); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4); }
.pod-ep:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.pod-ep-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(80% 90% at 85% 10%, rgba(188, 143, 53, 0.35), rgba(188, 143, 53, 0) 60%),
    linear-gradient(135deg, #202733, #12161c);
}
/* Typografische Ersatzkarte, liegt immer unter dem Bild */
.pod-ep-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1rem, 2.4vw, 1.5rem);
}
.pod-ep-fallback .num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.92);
}
.pod-ep-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.pod-ep:hover .pod-ep-media img { transform: scale(1.04); }

.pod-ep-play {
  position: absolute;
  top: 50%; left: 50%;
  width: 58px; height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  background: rgba(17, 21, 26, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.pod-ep-play svg { width: 22px; height: 22px; margin-left: 3px; }
.pod-ep:hover .pod-ep-play { background: var(--gold); transform: scale(1.06); }

.pod-ep-chip {
  position: absolute;
  top: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: rgba(17, 21, 26, 0.78);
  color: #fff;
}
.pod-ep-chip.is-num { left: 0.8rem; background: var(--gold); color: var(--ink); }
.pod-ep-chip.is-len { right: 0.8rem; }

.pod-ep-body { padding: 1.1rem 1.25rem 1.3rem; display: grid; gap: 0.35rem; }
.pod-ep-gast { margin: 0; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.pod-ep-titel {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.3;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pod-ep.is-feature .pod-ep-titel { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.pod-ep.is-feature .pod-ep-body { padding: 1.4rem 1.6rem 1.6rem; }

/* Seitenkarten: Bild links, Text rechts */
.pod-episodes-side .pod-ep { flex-direction: row; align-items: stretch; }
.pod-episodes-side .pod-ep-media { flex: 0 0 44%; aspect-ratio: auto; min-height: 118px; }
.pod-episodes-side .pod-ep-fallback .num { font-size: 2.6rem; }
.pod-episodes-side .pod-ep-fallback { padding: 0.9rem 1rem; }
.pod-episodes-side .pod-ep-play { width: 36px; height: 36px; margin: 0; top: auto; left: auto; right: 0.7rem; bottom: 0.7rem; }
.pod-episodes-side .pod-ep-chip.is-num { display: none; }
.pod-episodes-side .pod-ep-play svg { width: 16px; height: 16px; }
.pod-episodes-side .pod-ep-chip.is-len { display: none; }
.pod-episodes-side .pod-ep-body { align-content: center; padding: 0.9rem 1.1rem; }
.pod-episodes-side .pod-ep-titel { font-size: 0.975rem; }

/* ------------------------------------------------------------------ */
/* Gast-Karte: Nachbau der 21st.dev "contact-card" (Rahmen mit Plus-Ecken,
   zwei Drittel Text und Eckdaten, ein Drittel Formular). Formularfelder
   kommen aus site.css (.form, .field, .consent, .hp). */

.pod-guest {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 68rem;
  margin-inline: auto;
  border: 1px solid rgba(232, 230, 225, 0.16);
  background: #151a21;
}
.pod-guest-plus {
  position: absolute;
  width: 24px; height: 24px;
  color: var(--gold);
}
.pod-guest-plus.tl { top: -12px; left: -12px; }
.pod-guest-plus.tr { top: -12px; right: -12px; }
.pod-guest-plus.bl { bottom: -12px; left: -12px; }
.pod-guest-plus.br { bottom: -12px; right: -12px; }

.pod-guest-info {
  padding: clamp(1.75rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}
.pod-guest-info h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 0; }
.pod-guest-info .lede { margin: 0; max-width: 34rem; }

.pod-guest-facts {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(232, 230, 225, 0.12);
  display: grid;
  gap: 0.25rem;
}
.pod-guest-facts li { display: flex; align-items: center; gap: 0.8rem; padding-block: 0.6rem; }
.pod-guest-facts .ico {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold);
}
.pod-guest-facts .ico svg { width: 20px; height: 20px; }
.pod-guest-facts b { display: block; color: #fff; font-weight: 600; font-size: var(--size-small); }
.pod-guest-facts span, .pod-guest-facts a { font-size: 0.8125rem; color: var(--muted-on-dark); }
.pod-guest-facts a { text-decoration: underline; text-underline-offset: 3px; }
.pod-guest-facts a:hover { color: var(--gold); }

/* Formularspalte hell, wie alle Formulare der Website */
.pod-guest-form {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  align-items: center;
}
.pod-guest-form .form {
  width: 100%;
  border: 0;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  gap: 0.95rem;
}
.pod-guest-form .field textarea { min-height: 96px; }
.pod-guest-form .field-hint { font-size: 0.75rem; color: var(--ink-faint); line-height: 1.4; margin: 0; }
.pod-guest-form .field input.is-invalid,
.pod-guest-form .field textarea.is-invalid { border-color: #a4262c; }

/* Umschalter: selbst Gast sein oder jemanden empfehlen */
.pod-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  margin: 0;
}
.pod-switch legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pod-switch input { position: absolute; opacity: 0; pointer-events: none; }
.pod-switch label {
  text-align: center;
  padding: 0.55rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.pod-switch input:checked + label { background: var(--ink); color: #fff; }
.pod-switch input:focus-visible + label { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

/* Felder nur fuer die Empfehlung */
.nur-empfehlung { display: grid; gap: 0.95rem; }
.pod-guest-form[data-art="selbst"] .nur-empfehlung { display: none; }

.pod-guest-form .btn { width: 100%; }
.pod-guest-danke { display: grid; gap: 0.6rem; text-align: left; }
.pod-guest-danke h3 { margin: 0; }
.pod-guest-danke p { margin: 0; color: var(--ink-muted); font-size: var(--size-small); }

@media (max-width: 900px) {
  .pod-episodes { grid-template-columns: 1fr; }
  .pod-guest { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pod-episodes-side .pod-ep { flex-direction: column; }
  .pod-episodes-side .pod-ep-media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
}

@media (max-width: 800px) {
  .pod-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .pod-cover { max-width: 340px; margin-inline: auto; }
  .pod-facts { grid-template-columns: 1fr; gap: 0.9rem; }
  .pod-crowd { height: clamp(220px, 38vh, 320px); }
}

@media (prefers-reduced-motion: reduce) {
  .pod-mark .dot, .js .pod-wave span { animation: none; }
}
