/* Schwatzarbeit · Der Deckel */

@font-face { font-family: "Spectral"; font-weight: 200; font-style: normal; font-display: swap; src: url("../fonts/spectral-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-weight: 200; font-style: italic; font-display: swap; src: url("../fonts/spectral-latin-200-italic.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/spectral-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-weight: 300; font-style: italic; font-display: swap; src: url("../fonts/spectral-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Pinyon Script"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/pinyon-script-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400 900; font-style: normal; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2"); }

:root {
  --papier: #fbf8f6;
  --papier-tief: #f3ede7;
  --tinte: #1e1a17;
  --tinte-leise: #5b514a;
  --bordeaux: #911a46;
  --bordeaux-tief: #741438;
  --bordeaux-hell: #e0628f;   /* Stift auf dem dunklen Foto */
  --linie: rgb(30 26 23 / .16);

  --serif: "Spectral", "Iowan Old Style", Georgia, serif;
  --hand: "Pinyon Script", "Snell Roundhand", cursive;
  --grotesk: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --rand: clamp(1rem, 4vw, 3.5rem);
  --abschnitt: clamp(3.5rem, 4.44vw, 4rem);
  --claim-groesse: clamp(3rem, 11.1vw, 10rem);
  --claim-versatz: 0px;
  --strich: 3;
  --hero-foto-y: 50%;
  --zitat-groesse: clamp(2.6rem, 2.92vw, 2.625rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font: 300 1.1875rem/1.6 var(--serif);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  caret-color: var(--bordeaux);
  scrollbar-color: var(--bordeaux) var(--papier-tief);
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--bordeaux); color: var(--papier); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; border-radius: 1px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Kleine Versalien in der Grotesk, wie die Logo-Unterzeile */
.folge__meta, .folge__links, .fuss h2, .fuss__zeile, .abo legend, .abo__feed label, .hero__deckel-text, .abo-knopf {
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------- Striche ---------- */
.striche { overflow: visible; fill: none; stroke-linecap: round; stroke-width: var(--strich); }
.striche path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.striche--hero { stroke: var(--bordeaux-hell); width: clamp(9rem, 22vw, 15rem); }
.striche--deckel { stroke: var(--bordeaux); width: 100%; stroke-width: calc(var(--strich) * 1.12); }

@media (prefers-reduced-motion: no-preference) {
  /* Hero: Pfade stecken im <use>, Strichwerte erben sie von dort */
  .js .striche--hero use { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .striche--hero.gezeichnet use { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease) .3s; }
  .js .striche--deckel path { stroke-dashoffset: 1; }
  .js .striche--deckel.gezeichnet path { stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--ease) calc(var(--i, 0) * 70ms), stroke .25s var(--ease), stroke-width .25s var(--ease); }
}

/* ---------- Einstieg ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) var(--rand) clamp(1.5rem, 4vw, 3rem);
  color: var(--papier);
  isolation: isolate;
  overflow: clip;
  background: #1b120c;
}
.hero__foto {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--hero-foto-y);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(20 12 8 / .45) 0%, rgb(20 12 8 / .05) 22%, rgb(20 12 8 / .2) 50%, rgb(20 12 8 / .78) 100%),
    linear-gradient(90deg, rgb(20 12 8 / .45) 0%, rgb(20 12 8 / 0) 60%);
}
.hero__logo { width: clamp(11rem, 22vw, 19rem); color: var(--papier); }
.hero__logo img { width: 100%; }
.claim {
  align-self: end;
  font-weight: 200;
  font-size: var(--claim-groesse);
  line-height: .98;
  letter-spacing: -.025em;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  text-shadow: 0 .02em .4em rgb(20 12 8 / .35);
}
.claim__zeile { display: block; }
.claim__zeile--2 { padding-left: var(--claim-versatz); }
.claim__zeile--3 { padding-left: calc(var(--claim-versatz) * .42); }
.claim em { font-style: italic; }
.hero__deckel {
  display: inline-flex; align-items: flex-end; gap: 1.25rem;
  justify-self: start;
  text-decoration: none;
  padding-right: 1rem;
}
.hero__deckel-text { padding-bottom: .4rem; border-bottom: 1px solid rgb(251 248 246 / .5); transition: border-color .3s var(--ease); }
.hero__deckel:hover .hero__deckel-text { border-color: var(--papier); }

/* ---------- Abo-Knopf ---------- */
.abo-knopf {
  position: fixed; right: 0; bottom: 0; z-index: 10;
  display: flex; align-items: flex-end;
  min-width: clamp(10rem, 16vw, 14rem);
  min-height: clamp(3.5rem, 6vw, 5rem);
  padding: 1.1rem 3.25rem 1.1rem 1.4rem;
  border: 0;
  background: var(--bordeaux);
  color: var(--papier);
  font-size: .9rem;
  text-align: left;
  cursor: pointer;
  transition: background-color .3s var(--ease);
}
.abo-knopf::after {
  content: ""; position: absolute; top: 1.1rem; right: 1.25rem;
  width: 1.15rem; height: 1.15rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2.5v11M2.5 8h11' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .4s var(--ease);
}
.abo-knopf:hover { background: var(--bordeaux-tief); }
.abo-knopf:hover::after { transform: rotate(90deg); }
.abo-knopf:focus-visible { outline-color: var(--papier); outline-offset: -6px; }

/* ---------- Der Podcast ---------- */
.podcast {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.5vw, 2rem);
  padding: var(--abschnitt) var(--rand);
}
.podcast__gross {
  grid-column: 2 / span 10;
  font-family: var(--hand);
  font-weight: 400;
  font-size: var(--zitat-groesse);
  line-height: 1.25;
  text-align: center;
  color: var(--bordeaux);
  text-wrap: balance;
}

/* ---------- Folgen ---------- */
.folgen {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.5vw, 2rem);
  padding: var(--abschnitt) var(--rand) calc(var(--abschnitt) + 4rem);
  border-top: 1px solid var(--linie);
}
.folgen__kopf { grid-column: 1 / span 11; margin-bottom: clamp(3rem, 6vw, 5rem); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 3rem; }
.folgen__kopf h2 { font-weight: 200; font-size: clamp(3rem, 8vw, 6rem); line-height: .95; letter-spacing: -.03em; }
.folgen__kopf p { max-width: 30ch; color: var(--tinte-leise); }

.folgen__deckel { grid-column: 1 / span 4; align-self: start; position: sticky; top: 2rem; }
.striche--deckel a { cursor: pointer; }
.striche--deckel path { transition: stroke .25s var(--ease), stroke-width .25s var(--ease); }
.striche--deckel path.an { stroke: var(--tinte); stroke-width: calc(var(--strich) * 1.8); }
@media (prefers-reduced-motion: no-preference) {
  .js .striche--deckel.gezeichnet path.an { animation: nachziehen .5s var(--ease); }
  @keyframes nachziehen { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}
.striche--deckel a:focus-visible { outline: none; }
.striche--deckel a:focus-visible path { stroke: var(--tinte); stroke-width: calc(var(--strich) * 1.8); }
.folgen__bild { margin-top: clamp(2.5rem, 5vw, 4rem); width: 72%; }
.folgen__bild img { border-radius: .75rem; }

.folgen__liste { grid-column: 5 / span 7; border-top: 1px solid var(--tinte); }
.folge {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr) auto;
  grid-template-areas: "nr titel links" "nr kurz links" "nr meta links";
  column-gap: 1.25rem;
  row-gap: .35rem;
  padding: 1.35rem 0 1.4rem;
  border-bottom: 1px solid var(--linie);
  scroll-margin-top: 2rem;
  transition: background-color .3s var(--ease);
}
.folge__nr {
  grid-area: nr;
  font-weight: 300; font-size: 1.5rem; line-height: 1.2;
  color: var(--bordeaux);
  font-variant-numeric: tabular-nums lining-nums;
}
.folge__titel { grid-area: titel; font-weight: 300; font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.2; letter-spacing: -.01em; }
.folge__kurz { grid-area: kurz; max-width: 46ch; color: var(--tinte-leise); font-size: 1.05rem; line-height: 1.45; margin-bottom: .35rem; }
.folge__kurz:empty { display: none; }
.folge__meta { grid-area: meta; display: flex; gap: 1.5rem; color: var(--tinte-leise); font-variant-numeric: tabular-nums; }
.folge__meta time { min-width: 7.2em; }
.folge__links { grid-area: links; align-self: center; display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.folge__links a { display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; padding: .15rem 0; border-bottom: 1px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease); }
.folge__links a:hover { color: var(--bordeaux); border-color: currentColor; }
.folge__links svg { width: .85rem; height: .85rem; transition: transform .25s var(--ease); }
.folge__links a:hover svg { transform: translate(2px, -2px); }
.folge.an { background: rgb(145 26 70 / .05); }
.folge.an .folge__titel { color: var(--bordeaux); }
.folge:target .folge__titel { color: var(--bordeaux); }

/* ---------- Fuß ---------- */
.fuss {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.5vw, 2rem);
  padding: var(--abschnitt) var(--rand) clamp(6rem, 10vw, 8rem);
  background: var(--bordeaux);
  color: var(--papier);
  margin-top: -2px;
}
.fuss ::selection { background: var(--papier); color: var(--bordeaux); }
.fuss :focus-visible { outline-color: var(--papier); }
.fuss__claim { grid-column: 1 / span 10; font-weight: 200; font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: 1; letter-spacing: -.025em; }
.fuss__spalten { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 2.5rem clamp(3rem, 10vw, 9rem); margin-top: clamp(4rem, 8vw, 7rem); }
.fuss h2 { color: rgb(251 248 246 / .72); margin-bottom: 1rem; font-size: .75rem; }
.fuss li + li { margin-top: .35rem; }
.fuss li a { font-size: 1.3rem; text-decoration-color: rgb(251 248 246 / .35); transition: text-decoration-color .2s; }
.fuss li a:hover { text-decoration-color: currentColor; }
.fuss__zeile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; grid-column: 1 / -1; margin-top: clamp(4rem, 8vw, 6rem); padding-top: 1rem; border-top: 1px solid rgb(251 248 246 / .3); color: rgb(251 248 246 / .8); }

/* ---------- Rechtliches (Impressum, Datenschutz) ---------- */
.fuss__zeile a { text-decoration-color: rgb(251 248 246 / .35); }
.fuss__zeile a:hover { text-decoration-color: currentColor; }
.recht__kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: clamp(1.25rem, 3vw, 2.5rem) var(--rand); border-bottom: 1px solid var(--linie); }
.recht__logo { width: clamp(9rem, 16vw, 13rem); }
.recht__zurueck, .recht__fuss { font: 500 .78rem var(--grotesk); letter-spacing: .14em; text-transform: uppercase; }
.recht__zurueck { text-decoration: none; border-bottom: 1px solid var(--linie); padding-bottom: .2rem; }
.recht__zurueck:hover { border-color: currentColor; }
.recht__text { max-width: 40rem; padding: var(--abschnitt) var(--rand); }
.recht__text h1 { font-weight: 200; font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -.025em; margin-bottom: 2.5rem; }
.recht__text h2 { font: 500 .78rem var(--grotesk); letter-spacing: .14em; text-transform: uppercase; color: var(--bordeaux); margin: 2.4rem 0 .6rem; }
.recht__text p + p { margin-top: .8em; }
.recht__fuss { padding: 2rem var(--rand) 3rem; border-top: 1px solid var(--linie); color: var(--tinte-leise); }

/* ---------- Abo-Dialog ---------- */
.abo {
  width: min(34rem, calc(100vw - 2rem));
  max-height: calc(100svh - 2rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 0;
  background: var(--papier);
  color: var(--tinte);
  box-shadow: 0 1.5rem 4rem -1rem rgb(20 12 8 / .45);
}
.abo::backdrop { background: rgb(30 18 12 / .62); backdrop-filter: blur(3px); }
.abo h2 { font-weight: 200; font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.05; letter-spacing: -.02em; padding-right: 5rem; }
.abo__hinweis { margin-top: .6rem; color: var(--tinte-leise); font-size: 1.05rem; }
.abo__schliessen-form { position: absolute; top: clamp(1rem, 3vw, 1.75rem); right: clamp(1rem, 3vw, 1.75rem); }
.abo__schliessen { border: 0; background: none; padding: .4rem 0; color: var(--tinte); font: 500 .78rem var(--grotesk); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; border-bottom: 1px solid var(--linie); }
.abo__schliessen:hover { border-color: currentColor; }
.abo__format { display: flex; gap: .5rem; margin: 1.6rem 0 0; padding: 0; border: 0; align-items: center; }
.abo__format legend { float: left; margin-right: 1rem; color: var(--tinte-leise); }
.abo__format label { position: relative; cursor: pointer; font: 500 .85rem var(--grotesk); letter-spacing: .08em; }
.abo__format input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.abo__format label { padding: .35rem .8rem; border: 1px solid var(--linie); transition: background-color .2s, color .2s, border-color .2s; }
.abo__format label:has(input:checked) { background: var(--tinte); color: var(--papier); border-color: var(--tinte); }
.abo__format label:has(input:focus-visible) { outline: 2px solid var(--bordeaux); outline-offset: 2px; }
.abo__apps { margin-top: 1.4rem; border-top: 1px solid var(--tinte); display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
.abo__apps a { display: flex; justify-content: space-between; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--linie); text-decoration: none; font-size: 1.2rem; transition: color .2s; }
.abo__apps a::after { content: ""; width: .8rem; height: .8rem; background: currentColor; opacity: .5; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 11.5 11.5 4.5M6 4.5h5.5V10' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; transition: opacity .2s, transform .25s var(--ease); }
.abo__apps a:hover { color: var(--bordeaux); }
.abo__apps a:hover::after { opacity: 1; transform: translate(2px, -2px); }
.abo__feed { margin-top: 1.8rem; }
.abo__feed label { color: var(--tinte-leise); }
.abo__feed .abo__hinweis { margin-top: .2rem; }
.abo__feld { display: flex; margin-top: .75rem; border: 1px solid var(--tinte); }
.abo__feld input { flex: 1; min-width: 0; border: 0; padding: .7rem .8rem; background: transparent; color: var(--tinte); font: 400 .95rem var(--grotesk); }
.abo__feld input:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: -2px; }
.abo__feld button { border: 0; padding: 0 1rem; background: var(--bordeaux); color: var(--papier); font: 500 .78rem var(--grotesk); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: background-color .2s; }
.abo__feld button:hover { background: var(--bordeaux-tief); }
@media (prefers-reduced-motion: no-preference) {
  .abo[open] { animation: abo-auf .45s var(--ease); }
  @keyframes abo-auf { from { opacity: 0; transform: translateY(1rem); } }
}

/* ---------- Schmal ---------- */
@media (max-width: 60rem) {
  .podcast__gross { grid-column: 1 / -1; }
  .folgen__deckel { grid-column: 1 / -1; position: static; margin-bottom: 3rem; }
  .folgen__deckel .striche { max-width: 26rem; }
  .folgen__bild { width: 60%; max-width: 22rem; margin-top: 2rem; }
  .folgen__kopf { grid-column: 1 / -1; }
  .folgen__liste { grid-column: 1 / -1; }
  .fuss__claim { grid-column: 1 / -1; }
}
@media (max-width: 34rem) {
  body { font-size: 1.125rem; }
  .folge { grid-template-columns: 3rem minmax(0, 1fr); grid-template-areas: "nr titel" "nr kurz" "nr meta" "nr links"; }
  .folge__links { flex-direction: row; gap: 1.25rem; margin-top: .4rem; }
  .abo__apps { grid-template-columns: 1fr; }
  .abo-knopf { min-width: 0; min-height: 0; align-items: center; gap: .7rem; padding: 1rem 1.1rem; }
  .abo-knopf::after { position: static; width: .95rem; height: .95rem; }
  /* Foto ganz zeigen statt nur der mittleren zwei; darunter läuft es ins Dunkel aus */
  .hero { padding-bottom: 5.5rem; }
  .hero__foto { height: auto; aspect-ratio: 1594 / 1155; top: 4.5rem; }
  .hero::after { background: linear-gradient(180deg, #1b120c 0, #1b120c 4.5rem, rgb(27 18 12 / 0) 7.5rem, rgb(27 18 12 / 0) 15rem, #1b120c calc(4.5rem + 72vw)); }
  .abo__feld { flex-direction: column; }
  .abo__feld button { padding: .8rem 1rem; }
}
