/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
  --fg:          #1c1c1e;
  --fg-soft:     #3a3a3c;
  --bg:          #ffffff;
  --surface:     #f5f5f7;
  --accent:      #1a4f7a;
  --accent-mid:  #2a6496;
  --accent-pale: #e8f0f8;
  --muted:       #6e6e73;
  --border:      #e5e5ea;
  --max-w:       860px;
  --font-ui:     -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif;
  --font-text:   Georgia, "Times New Roman", serif;
  --font-mono:   ui-monospace, "SF Mono", "Cascadia Code", monospace;
  --radius:      6px;
  --radius-lg:   10px;
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ───────────────────────────────────────────────────────────────────── */
html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-mid); text-decoration: underline; }

/* ── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  min-width: 0;
}

.site-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent);
  white-space: nowrap;
}

.site-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-soft);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--surface);
  color: var(--accent);
  text-decoration: none;
}

/* ── Main ───────────────────────────────────────────────────────────────────── */
.site-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

/* ── Episode list (index + section) ─────────────────────────────────────────── */
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: var(--fg);
}

.season-group {
  margin-bottom: 2.5rem;
}

.season-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.episode-list {
  list-style: none;
}

.episode-list li {
  border-bottom: 1px solid var(--border);
}

.episode-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.5rem;
  color: var(--fg);
  border-radius: var(--radius);
  transition: background 0.12s;
  margin: 0 -0.5rem;
}

.episode-list a:hover {
  background: var(--surface);
  text-decoration: none;
}

.episode-list a:hover .ep-title {
  color: var(--accent);
}

.ep-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 2.8rem;
}

.ep-title {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: color 0.12s;
}

.ep-date {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Single episode ──────────────────────────────────────────────────────────── */
.episode-back {
  margin-bottom: 1.5rem;
}

.episode-back a {
  font-size: 0.875rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0;
}

.episode-back a:hover {
  color: var(--accent);
  text-decoration: none;
}

.episode-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.player {
  width: 100%;
  height: 40px;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  accent-color: var(--accent);
}

.fachbegriffe {
  margin-bottom: 2rem;
}

.fachbegriffe strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.tag {
  display: inline-block;
  background: var(--accent-pale);
  color: var(--accent);
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
  margin: 0.2rem 0.3rem 0.2rem 0;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.12s;
}

.tag:hover {
  background: #d0e4f5;
}

/* ── Transcript ──────────────────────────────────────────────────────────────── */
.transcript {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--fg-soft);
}

.transcript-description {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.transcript-description ul {
  padding-left: 1.2rem;
}

.transcript > p:first-child,
.transcript > ul:first-child {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.transcript h2 {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
  margin: 2.5rem 0 1rem;
  line-height: 1.4;
}

.transcript p {
  margin-bottom: 1rem;
}

.transcript ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* ── Static pages ────────────────────────────────────────────────────────────── */
.page h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
  color: var(--fg);
}

.page-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--fg-soft);
}

.page-content h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  margin: 2rem 0 0.5rem;
}

.page-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  margin: 1.25rem 0 0.35rem;
}

.page-content p {
  margin-bottom: 1rem;
}

.page-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Responsive: tablet ──────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .header-inner { height: auto; padding: 0.75rem 1.25rem; flex-wrap: wrap; }
  .header-brand { width: 100%; }
  .site-subtitle { display: none; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 0.3rem 0.5rem; font-size: 0.82rem; }
  .site-main { padding: 2rem 1.25rem 3rem; }
  .episode-header h1 { font-size: 1.35rem; }
}

/* ── Responsive: phone ───────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .site-main { padding: 1.5rem 1rem 3rem; }
  .ep-date { display: none; }
  .meta { gap: 0.35rem 0.85rem; font-size: 0.82rem; }
  .episode-header h1 { font-size: 1.2rem; }
  .transcript { font-size: 0.95rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
