/* Stupid Fruity Podcast — stupidfruity.de
   Redaktionelles Layout: Haarlinien statt Kästen,
   Instrument Serif für Display, Inter für Text. */



:root {
  --ink:       #14110f;   /* warmes Schwarz, kein reines #000 */
  --ink-soft:  #4a443f;
  --ink-faint: #6e665f;
  --paper:     #fbfaf8;   /* leicht warmes Papierweiss */
  --paper-2:   #f2efea;
  --rule:      #ddd7cf;   /* Haarlinie */
  --rule-soft: #eae5dd;
  --accent:    #9c3312;   /* gebranntes Orangerot, sparsam eingesetzt */

  --display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --text:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter:  clamp(20px, 5vw, 48px);
  --measure: 34em;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:       #ece7e0;
    --ink-soft:  #b3aca4;
    --ink-faint: #8a827a;
    --paper:     #131110;
    --paper-2:   #1c1917;
    --rule:      #332e29;
    --rule-soft: #262220;
    --accent:    #e8825c;
  }
}
:root[data-theme="dark"] {
  --ink:       #ece7e0;
  --ink-soft:  #b3aca4;
  --ink-faint: #8a827a;
  --paper:     #131110;
  --paper-2:   #1c1917;
  --rule:      #332e29;
  --rule-soft: #262220;
  --accent:    #e8825c;
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-synthesis-weight: none;
}

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

a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

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

.wrap { width: 100%; max-width: 1100px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 720px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 0; top: 0; z-index: 50; background: var(--ink); color: var(--paper); padding: 12px 18px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Kopfzeile ---------- */

.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; min-height: 68px; padding-block: 12px;
}
.brand {
  font-family: var(--display); font-size: 26px; letter-spacing: 0;
  text-decoration: none; line-height: 1;
}
.brand img { display: none; }

.nav { display: flex; gap: clamp(16px, 3vw, 30px); }
.nav a {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  font-weight: 400; color: var(--ink-soft); text-decoration: none;
  padding-block: 4px; border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Hero mit Bannerfoto ---------- */

.hero--banner { border-bottom: 1px solid var(--rule); }
.hero__media { margin: 0; }
.hero__media img {
  width: 100%; height: clamp(190px, 26vw, 340px); object-fit: cover;
  object-position: 62% 30%;
  filter: saturate(.92);
}
.hero__content { padding-block: clamp(30px, 4.5vw, 52px); }

.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.04; letter-spacing: -.005em;
  margin: 0 0 14px; max-width: 16ch;
}
.hero__tag {
  font-size: clamp(18px, 2vw, 22px); line-height: 1.5;
  color: var(--ink-soft); margin: 0 0 28px; max-width: 30ch;
}

/* ---------- Links statt Buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 34px); align-items: center; }

.btn {
  display: inline-block; text-decoration: none; font-family: var(--mono);
  font-size: 12px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
  padding: 0 0 6px; border-bottom: 2px solid var(--ink);
  transition: color .15s ease, border-color .15s ease;
}
.btn:hover { color: var(--accent); border-bottom-color: var(--accent); }
.btn--primary { border-bottom-color: var(--accent); color: var(--accent); }
.btn--primary:hover { color: var(--ink); border-bottom-color: var(--ink); }
.btn--ghost, .btn--onphoto { /* Altlasten-Aliase */ }

/* ---------- Abschnitte ---------- */

.section { padding-block: clamp(44px, 7vw, 82px); }
.section + .section { border-top: 1px solid var(--rule); }

.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 4px;
  border-bottom: 1px solid var(--ink);
}
.section h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(27px, 3.6vw, 38px); letter-spacing: -.005em;
  margin: 0; line-height: 1.05;
}
.section__note { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--ink-faint); }
.section__note a { text-decoration-color: var(--rule); }

.page-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(40px, 5.6vw, 66px); line-height: 1.02;
  letter-spacing: -.008em;
  margin: 0 0 16px;
}
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: var(--measure); margin: 0; }

/* ---------- Folgenindex ---------- */

.episodes { list-style: none; margin: 0; padding: 0; }
.episodes li + li { border-top: 1px solid var(--rule-soft); }

.ep-card {
  display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto;
  align-items: baseline; gap: 0 clamp(14px, 2.5vw, 28px);
  padding-block: clamp(16px, 2vw, 22px);
  text-decoration: none; color: inherit;
}
.ep-card:hover .ep-card__title { color: var(--accent); }
.ep-card:hover .ep-card__go { opacity: 1; transform: translateX(3px); }

.ep-card__num {
  font-family: var(--mono); font-weight: 400;
  font-size: clamp(17px, 2vw, 20px); line-height: 1.45;
  color: var(--ink-faint); letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.ep-card__title {
  display: block; font-size: clamp(18px, 2.2vw, 23px); font-weight: 600;
  letter-spacing: -.01em; line-height: 1.25; margin-bottom: 4px;
  transition: color .15s ease;
}
.ep-card__meta { display: block; font-family: var(--mono); font-size: 13px; color: var(--ink-faint); }
.ep-card__meta-sep { opacity: .55; }
.ep-card__go {
  font-size: 18px; color: var(--ink-faint); opacity: 0;
  transition: opacity .15s ease, transform .15s ease;
}

@media (max-width: 620px) {
  .ep-card { grid-template-columns: 2.6em minmax(0, 1fr); }
  .ep-card__go { display: none; }
}

.section h2.year-head {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(30px, 5vw, 46px); letter-spacing: .02em;
  margin: clamp(44px, 6vw, 72px) 0 0; line-height: 1;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--ink);
}
.year-head span { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--ink-faint); letter-spacing: 0; }

/* ---------- Plattformen ---------- */

.platforms {
  display: grid; gap: 1px; background: var(--rule);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border: 1px solid var(--rule); margin-top: 26px;
}
.platform {
  display: flex; align-items: center; justify-content: center;
  min-height: 108px; padding: 24px; background: var(--paper);
  text-decoration: none; transition: background-color .15s ease;
}
.platform:hover { background: var(--paper-2); }
.platform img { max-height: 34px; width: auto; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .platform img[data-invert] { filter: invert(1) brightness(1.7); }
}
:root[data-theme="dark"] .platform img[data-invert] { filter: invert(1) brightness(1.7); }

.linklist { list-style: none; margin: 22px 0 0; padding: 0; }
.linklist li + li { border-top: 1px solid var(--rule-soft); }
.linklist a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-block: 14px; text-decoration: none; font-size: 17px;
}
.linklist a:hover { color: var(--accent); }
.linklist a::after { content: "↗"; font-size: 14px; color: var(--ink-faint); }

/* ---------- Folgenseite ---------- */

.ep-header { padding-block: clamp(34px, 5vw, 58px) clamp(20px, 3vw, 30px); }
.ep-kicker {
  margin: 0 0 clamp(20px, 3vw, 32px); font-family: var(--mono);
  font-size: 12px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
}
.ep-kicker a { text-decoration: none; color: var(--ink-faint); }
.ep-kicker a:hover { color: var(--accent); }

.ep-header h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(36px, 6vw, 62px); line-height: 1.06;
  letter-spacing: -.008em; margin: 0 0 18px;
}
.ep-meta { margin: 0; font-family: var(--mono); color: var(--ink-faint); font-size: 13px; letter-spacing: 0; }
.ep-meta__sep { opacity: .55; }

.prose { max-width: var(--measure); font-size: 18px; line-height: 1.75; }
.prose p { margin: 0 0 1.1em; }
.prose a { overflow-wrap: anywhere; text-decoration-color: var(--rule); }
.prose a:hover { color: var(--accent); }

/* ---------- Player ---------- */

.player { margin-block: clamp(26px, 4vw, 40px); max-width: var(--measure); }
.player__frame { border: 0; width: 100%; height: 232px; display: block; }

.player__consent { border: 1px solid var(--rule); padding: clamp(22px, 4vw, 34px); }
.player__consent p { margin: 0 0 18px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.player__consent .btn { background: none; border: 0; border-bottom: 2px solid var(--accent);
  color: var(--accent); font-family: var(--text); cursor: pointer; padding: 0 0 5px; }
.player__consent .btn:hover { color: var(--ink); border-bottom-color: var(--ink); }
.player__hint { margin: 18px 0 0 !important; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }

/* ---------- Blättern ---------- */

.pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 40px);
  border-top: 1px solid var(--ink); margin-top: clamp(40px, 6vw, 64px);
  padding-block: 26px clamp(30px, 5vw, 50px);
}
.pager a { text-decoration: none; }
.pager a:hover .pager__title { color: var(--accent); }
.pager__dir {
  display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 7px;
}
.pager__title { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; transition: color .15s ease; }
.pager--next { text-align: right; }

@media (max-width: 560px) {
  .pager { grid-template-columns: 1fr; gap: 24px; }
  .pager--next { text-align: left; }
}

/* ---------- Fusszeile ---------- */

.site-footer {
  border-top: 1px solid var(--rule); margin-top: clamp(50px, 8vw, 90px);
  padding-block: 34px clamp(40px, 6vw, 60px);
  font-family: var(--mono); font-size: 12px; color: var(--ink-faint);
}
.site-footer__inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: baseline; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin: 0; letter-spacing: .02em; }
