/* Unbekannte Schweiz: Farben und Schrift wie Kanalbanner (scripts/kanal_assets.py) */
:root {
  --pergament: #edd2ae;
  --pergament-hell: #f4e4c9;
  --nebel: #f1e2ce;
  --tinte: #262c24;
  --sepia: #543f2b;
  --tiefrot: #801c18;
  --tiefrot-dunkel: #5e1411;
  --linie: rgb(38 44 36 / 0.22);

  --schrift-titel: "Big Caslon", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --schrift-text: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --text: clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
  --text-klein: 0.9rem;
  --zeile: 1.62;
  --spalte: 38rem;
  --abstand: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
  --abstand-gross: clamp(3rem, 2rem + 5vw, 7rem);
  --dauer: 160ms;
}

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

html {
  background: var(--pergament);
  color: var(--tinte);
  font-family: var(--schrift-text);
  font-size: 100%;
  font-variant-numeric: oldstyle-nums;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-size: var(--text);
  line-height: var(--zeile);
  background:
    radial-gradient(ellipse at 50% 0%, var(--pergament-hell) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 120%, rgb(94 60 30 / 0.12) 0%, transparent 55%),
    var(--pergament);
  min-height: 100vh;
}

a { color: var(--tiefrot); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--tiefrot-dunkel); text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--tiefrot); outline-offset: 3px; border-radius: 2px; }

.sprung {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.9rem;
  background: var(--tinte);
  color: var(--pergament-hell);
  z-index: 10;
}
.sprung:focus { top: 1rem; }
.sprung:hover { color: var(--pergament-hell); } /* sonst greift a:hover: Dunkelrot auf Tinte */

/* Kopf mit Illustration (Startseite) */
.kopf {
  container-type: inline-size;
  display: grid;
  max-width: 100rem;
  margin: 0 auto;
}
.kopf > * { grid-area: 1 / 1; }
.kopf__bild {
  display: block;
  width: 100%;
  height: auto;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 9%, #000 86%, transparent 100%);
}
.kopf__text {
  position: relative; /* über dem maskierten Bild (eigener Stapelkontext) */
  z-index: 1;
  align-self: start;
  padding-top: 20.5cqw;
  text-align: center;
}
/* Nebelfeld hinter der Schrift, wie der Halo im Kanalbanner */
.kopf__schild {
  display: inline-block;
  padding: 0.8em 2.6em 1em;
  background: radial-gradient(ellipse closest-side, rgb(241 226 206 / 0.92) 55%, rgb(241 226 206 / 0) 100%);
}
@container (max-width: 40rem) {
  .kopf__text { grid-area: 2 / 1; padding-top: 0.25rem; }
  .kopf__schild { background: none; padding: 0.4em 1rem 0; }
}

.marke {
  margin: 0;
  font-family: var(--schrift-titel);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.7cqw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.leitsatz {
  margin: 0.45em 0 0;
  color: var(--tiefrot);
  font-size: clamp(1rem, 1.75cqw, 1.6rem);
  letter-spacing: 0.03em;
}

/* Kleiner Kopf (Unterseiten) */
.kopfzeile {
  max-width: var(--spalte);
  margin: 0 auto;
  padding: var(--abstand) 1.25rem 0;
  border-bottom: 1px solid var(--linie);
}
.kopfzeile a {
  display: inline-block;
  padding-bottom: 1rem;
  color: var(--tinte);
  font-family: var(--schrift-titel);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.kopfzeile a:hover { color: var(--tiefrot); }

/* Inhalt */
.spalte {
  max-width: var(--spalte);
  margin: 0 auto;
  padding: var(--abstand) 1.25rem var(--abstand-gross);
}
.spalte h1 {
  margin: 0 0 0.2em;
  font-family: var(--schrift-titel);
  font-weight: 400;
  font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
  line-height: 1.1;
}
.spalte h2 {
  margin: 2.2em 0 0.4em;
  font-size: 1.15em;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.stand { margin-top: 0; color: var(--sepia); font-size: var(--text-klein); }

.einstieg {
  margin: 0 0 var(--abstand);
  font-size: 1.28em;
  line-height: 1.5;
}

.saeulen {
  list-style: none;
  margin: 0 0 var(--abstand);
  padding: 0;
  border-top: 1px solid var(--linie);
}
.saeulen li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  column-gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--linie);
}
.saeulen__nr {
  grid-row: span 2;
  color: var(--tiefrot);
  font-family: var(--schrift-titel);
  font-size: 1.9rem;
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.saeulen h2 { margin: 0; font-size: 1.05em; }
.saeulen p { margin: 0.2em 0 0; color: var(--sepia); }

.knopf {
  display: inline-block;
  padding: 0.7em 1.3em;
  border: 1px solid var(--tiefrot);
  color: var(--tiefrot);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color var(--dauer) ease-out, color var(--dauer) ease-out;
}
.knopf:hover { background: var(--tiefrot); color: var(--pergament-hell); }
.knopf:active { background: var(--tiefrot-dunkel); }

/* Folgen, vom YouTube-Abgleich erzeugt (scripts/site_build.py) */
.folgen { margin: 0 0 var(--abstand); }
.folgen > h2 { margin-top: 0; }
.folgen__liste {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--linie);
}
.folge {
  position: relative; /* Bezug für die Klickfläche des Titel-Links */
  display: grid;
  grid-template-columns: minmax(8rem, 2fr) 3fr;
  column-gap: 1.1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--linie);
}
.folge__bild {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--linie);
}
.folgen__liste .folge__titel {
  margin: 0;
  font-family: var(--schrift-titel);
  font-size: 1.2em;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
}
.folge__titel a { color: var(--tinte); text-decoration: none; }
.folge__titel a::after { content: ""; position: absolute; inset: 0; } /* ganze Zeile klickbar */
.folge:hover .folge__titel a { color: var(--tiefrot); }
.folge__meta { margin: 0.35em 0 0; color: var(--sepia); font-size: var(--text-klein); }
.folgen__mehr { margin: 1rem 0 0; }
@media (max-width: 30rem) {
  .folge { grid-template-columns: 1fr; row-gap: 0.7rem; }
}

/* Seite einer Folge */
.vorschau {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.4rem 0 1.2rem;
  border: 1px solid var(--linie);
}
.beschreibung { margin-top: var(--abstand); overflow-wrap: anywhere; }

.adresse { font-style: normal; }
/* E-Mail ohne Link: ein Klick markiert die ganze Adresse zum Kopieren */
.mail {
  -webkit-user-select: all;
  user-select: all;
}
/* Köder gegen Adress-Sammler: steht im HTML, ist unsichtbar und wird nicht mitkopiert */
.tarn { display: none; }

/* Fuss */
.fuss {
  max-width: var(--spalte);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2.5rem;
  border-top: 1px solid var(--linie);
  color: var(--sepia);
  font-size: var(--text-klein);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
}
.fuss nav { display: flex; gap: 1.25rem; }
.fuss a { color: var(--sepia); }
.fuss a:hover { color: var(--tiefrot); }

@media (prefers-reduced-motion: reduce) {
  .knopf { transition: none; }
}
