/* tiefgeist.de. Ein einziges Schriftbild, viel Luft, gedeckte Farben.
   Die Seite soll sich langsam anfühlen, ohne langsam zu laden.
   Papierton statt Weiß, warmes Dunkelbraun statt Schwarz, Moos als einziger Akzent. */

:root {
  --papier: #f6f3ed;
  --papier-2: #efeae1;
  --karte: #fbf9f5;
  --tinte: #2b2723;
  --tinte-2: #554d45;
  --tinte-3: #857a6e;
  --linie: #e3dcd0;
  --linie-fein: #ece6db;
  --moos: #6f7f61;
  --moos-hell: #8d9c7f;
  --ton: #b08968;

  --lesebreite: 36rem;
  --breite: 72rem;
  --rand: clamp(1.25rem, 5vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-farbe="hell"]) {
    --papier: #191715;
    --papier-2: #201d1a;
    --karte: #211e1a;
    --tinte: #eae4da;
    --tinte-2: #c3bab0;
    --tinte-3: #948b81;
    --linie: #332f2a;
    --linie-fein: #2a2724;
    --moos: #9aab8b;
    --moos-hell: #b0bfa3;
    --ton: #c9a184;
  }
}

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

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 1.075rem;
  line-height: 1.75;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration-color: var(--linie); text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--moos); }

.wrap { width: min(var(--breite), 100%); margin-inline: auto; padding-inline: var(--rand); }
.lese { width: min(var(--lesebreite), 100%); margin-inline: auto; }

/* ── Kopf ───────────────────────────────────────────────────────────── */
.kopf {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--papier) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie-fein);
}
.kopf__in {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4.25rem;
}
.marke {
  font-weight: 600; font-size: 1.2rem; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
}
.marke span { color: var(--moos); }
.nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 1.1rem; }
.nav a {
  font-size: .9rem; color: var(--tinte-2); text-decoration: none;
  padding-block: .3rem; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--tinte); border-bottom-color: var(--moos); }

/* ── Auftakt ────────────────────────────────────────────────────────── */
.auftakt { padding-block: clamp(4rem, 12vh, 8rem) clamp(3rem, 8vh, 5rem); }
.auftakt h1 {
  font-weight: 600;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -.012em;
  margin: 0 0 1.5rem;
  max-width: 20ch;
}
.auftakt p {
  font-size: clamp(1.075rem, 2vw, 1.25rem);
  color: var(--tinte-2);
  max-width: 46ch;
  margin: 0;
}
.leise {
  display: inline-block; margin-bottom: 1.75rem;
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--moos);
}
.leise::before {
  content: ""; display: inline-block; width: 1.75rem; height: 1px;
  background: var(--moos); vertical-align: .35em; margin-right: .7rem;
}

/* ── Abschnitte ─────────────────────────────────────────────────────── */
.band { padding-block: clamp(3rem, 8vh, 5.5rem); }
.band + .band { border-top: 1px solid var(--linie-fein); }
.band__kopf { margin-bottom: 2.5rem; }
.band__kopf h2 {
  font-weight: 600; font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 .6rem; letter-spacing: -.008em;
}
.band__kopf p { margin: 0; color: var(--tinte-2); max-width: 48ch; }

.raster { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }

.karte {
  display: flex; flex-direction: column;
  background: var(--karte);
  border: 1px solid var(--linie-fein);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color .4s ease;
}
.karte:hover { border-color: var(--linie); }
.karte__bild { aspect-ratio: 16 / 10; overflow: hidden; background: var(--papier-2); }
.karte__bild img { width: 100%; height: 100%; object-fit: cover; }
.karte__text { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.karte__bereich { font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; color: var(--moos); }
.karte__titel { margin: 0; font-size: 1.16rem; font-weight: 600; line-height: 1.35; letter-spacing: -.004em; }
.karte__titel a { text-decoration: none; }
.karte__titel a:hover { text-decoration: underline; text-decoration-color: var(--moos); }
.karte__anriss { margin: 0; font-size: .96rem; color: var(--tinte-2); line-height: 1.65; }

/* ── Bereichskacheln ────────────────────────────────────────────────── */
.kacheln { display: grid; gap: 1px; background: var(--linie-fein); border: 1px solid var(--linie-fein);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.kachel {
  background: var(--papier); padding: 1.8rem 1.6rem; text-decoration: none;
  display: flex; flex-direction: column; gap: .5rem;
  transition: background .4s ease;
}
.kachel:hover { background: var(--karte); }
.kachel b { font-weight: 600; font-size: 1.1rem; }
.kachel span { color: var(--tinte-2); font-size: .95rem; line-height: 1.6; }
.kachel em { font-style: normal; color: var(--tinte-3); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

/* ── Artikel ────────────────────────────────────────────────────────── */
.beitrag { padding-block: clamp(2.5rem, 6vh, 4rem) clamp(3rem, 9vh, 6rem); }
.krume { font-size: .85rem; color: var(--tinte-3); margin-bottom: 2rem; }
.krume a { text-decoration: none; }
.krume span { margin-inline: .45rem; }

.beitrag h1 {
  font-weight: 600; font-size: clamp(1.85rem, 4.6vw, 2.85rem);
  line-height: 1.2; letter-spacing: -.012em; margin: 0 0 1.25rem; max-width: 22ch;
}
.anriss { font-size: 1.2rem; color: var(--tinte-2); line-height: 1.7; margin: 0 0 1.5rem; }
.zeile { font-size: .86rem; color: var(--tinte-3); margin: 0 0 2.5rem; }

.beitrag__bild { margin: 0 0 2.75rem; }
.beitrag__bild img { border-radius: 2px; }
.beitrag__bild figcaption {
  margin-top: .7rem; font-size: .8rem; color: var(--tinte-3);
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
}
.kilabel {
  border: 1px solid var(--linie); border-radius: 2px;
  padding: .1rem .45rem; font-size: .72rem; letter-spacing: .04em; color: var(--tinte-3);
}

.text h2 {
  font-weight: 600; font-size: 1.45rem; line-height: 1.3; letter-spacing: -.006em;
  margin: 3rem 0 1rem;
}
.text h3 { font-weight: 600; font-size: 1.15rem; margin: 2rem 0 .75rem; }
.text p { margin: 0 0 1.35rem; }
.text ul, .text ol { margin: 0 0 1.5rem; padding-left: 1.35rem; }
.text li { margin-bottom: .6rem; }
.text strong { font-weight: 600; }

.text blockquote {
  margin: 2.25rem 0; padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--moos);
  color: var(--tinte-2); font-size: 1.12rem; line-height: 1.7;
}
.text blockquote p:last-child { margin-bottom: 0; }
.text blockquote cite { display: block; margin-top: .7rem; font-size: .85rem; color: var(--tinte-3); font-style: normal; }

.uebung {
  margin: 2.5rem 0; padding: 1.6rem 1.75rem;
  background: var(--karte); border: 1px solid var(--linie-fein); border-radius: 2px;
}
.uebung > b {
  display: block; font-size: .76rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--moos); margin-bottom: .8rem; font-weight: 600;
}
.uebung p:last-child, .uebung ul:last-child, .uebung ol:last-child { margin-bottom: 0; }

.fragen { margin: 2.5rem 0 0; }
.fragen details {
  border-top: 1px solid var(--linie-fein); padding: 1rem 0;
}
.fragen details:last-of-type { border-bottom: 1px solid var(--linie-fein); }
.fragen summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; color: var(--moos); font-weight: 500; }
.fragen details[open] summary::after { content: "\2013"; }
.fragen details > div { padding-top: .8rem; color: var(--tinte-2); }
.fragen details > div p:last-child { margin-bottom: 0; }

.quellen { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--linie-fein); }
.quellen h2 { font-size: 1.05rem; margin: 0 0 .9rem; }
.quellen ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; color: var(--tinte-2); }
.quellen li { margin-bottom: .7rem; line-height: 1.6; }

.weiter { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--linie-fein); }
.weiter h2 { font-size: 1.05rem; margin: 0 0 1.25rem; }

/* ── Musik ──────────────────────────────────────────────────────────── */
.klang {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 40;
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--karte); color: var(--tinte-2);
  border: 1px solid var(--linie); border-radius: 999px;
  padding: .55rem 1rem .55rem .8rem;
  font-family: inherit; font-size: .82rem; font-weight: 500;
  cursor: pointer; box-shadow: 0 1px 12px rgba(43, 39, 35, .06);
  transition: color .4s ease, border-color .4s ease;
}
.klang:hover { color: var(--tinte); border-color: var(--moos-hell); }
.klang__welle { display: inline-flex; align-items: flex-end; gap: 2px; height: .85rem; }
.klang__welle i {
  display: block; width: 2px; height: 30%; background: var(--moos); border-radius: 1px;
  transition: height .5s ease;
}
.klang[aria-pressed="true"] .klang__welle i { animation: welle 2.4s ease-in-out infinite; }
.klang[aria-pressed="true"] .klang__welle i:nth-child(2) { animation-delay: .3s; }
.klang[aria-pressed="true"] .klang__welle i:nth-child(3) { animation-delay: .6s; }
.klang[aria-pressed="true"] .klang__welle i:nth-child(4) { animation-delay: .9s; }
@keyframes welle {
  0%, 100% { height: 25%; }
  50% { height: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .klang[aria-pressed="true"] .klang__welle i { animation: none; height: 65%; }
}

/* ── Fuß ────────────────────────────────────────────────────────────── */
.fuss {
  border-top: 1px solid var(--linie-fein);
  padding-block: 3rem 4rem;
  font-size: .9rem; color: var(--tinte-2);
}
.fuss__raster { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.fuss h3 { font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; color: var(--tinte-3); margin: 0 0 .9rem; font-weight: 600; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: .5rem; }
.fuss a { text-decoration: none; }
.fuss a:hover { text-decoration: underline; text-decoration-color: var(--moos); }
.fuss__unten { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--linie-fein);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; color: var(--tinte-3); font-size: .84rem; }

/* ── Einfache Seiten ────────────────────────────────────────────────── */
.schlicht { padding-block: clamp(2.5rem, 6vh, 4rem) clamp(3rem, 9vh, 6rem); }
.schlicht h1 { font-weight: 600; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.22; margin: 0 0 1.5rem; }
.schlicht h2 { font-weight: 600; font-size: 1.3rem; margin: 2.5rem 0 .9rem; }
.schlicht p, .schlicht li { color: var(--tinte-2); }
.schlicht ul { padding-left: 1.35rem; }

.suchfeld {
  width: 100%; padding: .9rem 1.1rem; font: inherit; font-size: 1rem;
  background: var(--karte); color: var(--tinte);
  border: 1px solid var(--linie); border-radius: 2px;
}
.suchfeld:focus { outline: 2px solid var(--moos-hell); outline-offset: 2px; }
.treffer { margin-top: 2rem; }
.treffer li { margin-bottom: 1.25rem; }

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

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