/* schroeder-matthias.de
   Mobile first. Farben und Kacheln aus dem Pocket-Umschlag (BoD, ISBN 978-3-6967-9240-4):
   Grünverlauf, Signalrot, Bandnummer in der roten Kachel.
   Keine externen Schriften oder Skripte (DSGVO). */

:root {
  --green-1: #55b748;
  --green-2: #32802f;
  --green-3: #1d5a1c;
  --red: #ef4130;
  --red-ink: #ffffff;
  --ink: #0f1a12;
  --ink-2: #33413a;
  --muted: #5f6d64;
  --paper: #f3f5ef;
  --surface: #ffffff;
  --line: #d9dfd4;
  --hero-grad: linear-gradient(118deg, var(--green-1) 0%, #46a33f 40%, var(--green-2) 100%);

  --sans: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Roboto Mono", monospace;

  --g: clamp(16px, 5vw, 96px);           /* Seitenrand */
  --tab-h: 64px;                         /* Höhe der mobilen Tableiste */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9eee6;
    --ink-2: #c3ccc0;
    --muted: #93a093;
    --paper: #0d140f;
    --surface: #151f17;
    --line: #26342a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -.025em; font-weight: 800; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: #fff; color: #000; padding: 10px 14px; }
.skip:focus { left: 8px; }

.label {
  font: 600 .75rem/1.2 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
}
.tile {
  display: inline-grid; place-items: center;
  background: var(--red); color: var(--red-ink);
  font-weight: 800; line-height: 1;
  aspect-ratio: 1;
}

/* ================= Kopfzeile ================= */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 var(--g);
  color: #fff;
  transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s;
}
.top.solid { background: color-mix(in srgb, var(--paper) 92%, transparent); color: var(--ink); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand .tile { width: 34px; font-size: .9rem; }
.top-nav { display: none; }
.top-nav ul { display: flex; gap: clamp(8px, 2vw, 32px); list-style: none; margin: 0; padding: 0; }
.top-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.top-nav a:hover, .top-nav a[aria-current="true"] { border-color: var(--red); }

/* ================= Mobile Tableiste ================= */
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 70;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar ul { display: grid; grid-template-columns: repeat(5, 1fr); height: var(--tab-h); margin: 0; padding: 0; list-style: none; }
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%;
  text-decoration: none; font-size: .68rem; font-weight: 600; color: var(--muted);
}
.tabbar svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="true"] { color: var(--ink); }
.tabbar a[aria-current="true"] svg { stroke: var(--red); }

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .top-nav { display: block; }
}

/* ================= Hero ================= */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  background: var(--hero-grad); color: #fff;
  padding: 84px var(--g) 28px;
  display: grid; grid-template-rows: 1fr auto; gap: 28px;
}
.hero::before { /* roter Rücken wie auf dem Umschlag */
  content: ""; position: absolute; inset: 0 auto 0 0; width: clamp(6px, 1.2vw, 18px); background: var(--red);
}
.hero-grid { display: grid; gap: 32px; align-content: center; }
.hero .label { color: rgba(255,255,255,.85); margin-bottom: 18px; display: block; }
.hero h1 { font-size: clamp(2.6rem, 11.5vw, 9.5rem); line-height: .94; letter-spacing: -.045em; }
.hero h1 span { display: block; }
.hero h1 .q { color: var(--green-3); }
.hero .intro { font-size: clamp(1.05rem, 1.6vw, 1.35rem); max-width: 36ch; margin-top: 24px; color: rgba(255,255,255,.94); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 0 22px; border-radius: 0; border: 2px solid currentColor;
  font-weight: 700; text-decoration: none; cursor: pointer; background: none;
  transition: transform .2s var(--ease), background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-white { background: #fff; border-color: #fff; color: var(--green-3); }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Das Pocket als 3D-Buch: Vorderseite (Cover), Rücken (aus dem BoD-Umschlag), Seitenblock
   oben/unten/rechts, Rückseite. Maße in cqw = Breite des Buchs; Dicke --t nach BoD:
   11 mm Rücken bei 120 mm Breite (174 Seiten, 90 g) = 9,2 %. Höhe 190/120 = 158,2cqw. */
.hero-book { perspective: 2200px; justify-self: center; width: min(62vw, 340px); container-type: inline-size; position: relative; margin: 0; }
.book3d {
  --t: 9.2cqw;
  position: relative; aspect-ratio: 900 / 1424;
  transform-style: preserve-3d;
  transform: rotateY(-20deg) rotateX(-4deg) rotateZ(.5deg);
}
/* Übergang erst, wenn der Zeiger das Buch bewegt (main.js) – sonst „dreht“ es sich beim Laden aus der Flachlage ein */
.book3d.tilt { transition: transform .5s var(--ease); }
.book3d > * { position: absolute; display: block; }
.b-front { inset: 0; transform: translateZ(calc(var(--t) / 2)); }
.b-front picture, .b-front img { width: 100%; height: 100%; display: block; }
.b-front::after { /* Falz am Rücken und Glanz der Umschlagfolie */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.2) 0, rgba(255,255,255,.14) 2.2%, rgba(0,0,0,.08) 4%, transparent 7%),
    linear-gradient(115deg, rgba(255,255,255,.16), transparent 45%);
}
.b-back { inset: 0; background: #2f7a2c; transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); }
.b-spine {
  top: 0; height: 100%; width: var(--t); left: calc(50% - var(--t) / 2);
  background: url(../img/pocket-spine.jpg) center / 100% 100%;
  transform: rotateY(-90deg) translateZ(50cqw);
}
.b-pages, .b-top, .b-bottom { --paper: repeating-linear-gradient(var(--dir), #f6f2e8 0 1px, #ddd6c5 1px 2px, #f1ece0 2px 3px); }
.b-pages {
  --dir: 90deg;
  top: .8cqw; height: calc(100% - 1.6cqw); width: calc(var(--t) - .8cqw); left: calc(50% - var(--t) / 2 + .4cqw);
  background: linear-gradient(90deg, rgba(0,0,0,.2), transparent 30%, transparent 70%, rgba(0,0,0,.12)), var(--paper);
  transform: rotateY(90deg) translateZ(49.4cqw);
}
.b-top, .b-bottom {
  --dir: 180deg;
  left: .4cqw; width: calc(100% - 1.2cqw); height: calc(var(--t) - .8cqw); top: calc(50% - var(--t) / 2 + .4cqw);
  background: linear-gradient(180deg, rgba(0,0,0,.12), transparent 40%), var(--paper);
}
.b-top { transform: rotateX(90deg) translateZ(78.7cqw); }
.b-bottom { transform: rotateX(-90deg) translateZ(78.7cqw); }
.hero-book::after { /* Schatten auf der „Tischfläche“ */
  content: ""; position: absolute; left: 4%; right: -10%; top: 148cqw; height: 16cqw; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(5, 35, 5, .55), transparent 70%); filter: blur(8px);
}
.hero-book figcaption { margin-top: 26px; font: 500 .7rem/1.5 var(--mono); color: rgba(255,255,255,.85); text-align: center; }

/* Zahlenleiste 0–8 */
.rail { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; }
.rail a {
  position: relative; display: grid; place-items: center; aspect-ratio: 1;
  font-weight: 800; font-size: clamp(1rem, 4.5vw, 2.6rem); text-decoration: none;
  color: #fff; border: 2px solid rgba(255,255,255,.55);
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.rail a:first-child { background: var(--red); border-color: var(--red); }
.rail a:hover { background: #fff; color: var(--green-2); transform: translateY(-4px); }
.rail-cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font: 500 .72rem/1.4 var(--mono); color: rgba(255,255,255,.85); }

@media (min-width: 900px) {
  .hero { padding-top: 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 120px); align-items: center; }
  .hero h1 { font-size: clamp(2.8rem, min(6vw, 10vh), 9rem); }
  .hero-book { width: min(100%, 400px, 44vh); }
  .rail { gap: 8px; }
  .rail a { aspect-ratio: auto; height: clamp(76px, 9vh, 110px); place-items: start; padding: 12px 16px 0; line-height: 1; }
  .rail a small { position: absolute; left: 16px; bottom: 10px; font: 500 .66rem/1.2 var(--mono); opacity: .9; letter-spacing: .02em; }
}
.rail a small { display: none; }
@media (min-width: 1200px) { .rail a small { display: block; } }

/* ================= Abschnitte allgemein ================= */
.sec { padding: clamp(64px, 10vw, 160px) var(--g); position: relative; }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 72px); }
.sec-head .label { color: var(--red); }
.sec-head h2 { font-size: clamp(2.2rem, 7.5vw, 6.5rem); line-height: .95; letter-spacing: -.04em; }
.sec-head p { max-width: 58ch; color: var(--ink-2); font-size: clamp(1.02rem, 1.4vw, 1.2rem); margin: 0; }
@media (min-width: 1100px) {
  .sec-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; column-gap: 6vw; }
  .sec-head .label { grid-column: 1 / -1; }
}

/* ================= Finder ================= */
.finder { background: var(--surface); border-bottom: 1px solid var(--line); }
.search {
  position: relative; display: flex; align-items: center;
  border-bottom: 4px solid var(--ink);
}
.search svg { width: clamp(24px, 3vw, 44px); height: auto; stroke: var(--ink); fill: none; stroke-width: 2.2; flex: none; }
.search input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font: 800 clamp(1.6rem, 6vw, 4.6rem)/1.1 var(--sans); letter-spacing: -.03em;
  padding: 12px 0 12px 14px; outline: none;
}
.search input::placeholder { color: color-mix(in srgb, var(--ink) 28%, transparent); }
.search input::-webkit-search-cancel-button { display: none; }
.search .clear { border: 0; background: none; cursor: pointer; font-size: 1.6rem; color: var(--muted); padding: 8px; }
.search .clear[hidden] { display: none; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 6px; scrollbar-width: none; margin: 0 calc(-1 * var(--g)); padding-left: var(--g); padding-right: var(--g); }
.chips::-webkit-scrollbar { display: none; }
.chips button {
  flex: none; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  padding: 9px 16px; font-weight: 600; font-size: .92rem; cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (min-width: 900px) { .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 22px 0 6px; } }

.f-status { font: 500 .8rem/1.4 var(--mono); color: var(--muted); margin: 22px 0 14px; min-height: 1.4em; }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; background: var(--line); border: 2px solid var(--line); }
.results:empty { display: none; }
.hit { background: var(--surface); display: grid; grid-template-columns: auto 1fr; gap: 14px 18px; padding: 18px; animation: rise .35s var(--ease) both; }
.hit .tile { width: 52px; font-size: 1.6rem; }
.hit .tile small { display: block; font: 600 .5rem/1 var(--mono); letter-spacing: .1em; margin-bottom: -6px; }
.hit h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -.015em; line-height: 1.15; }
.hit .praxis { font-size: .88rem; color: var(--muted); margin: 4px 0 0; }
.hit .frage { margin: 10px 0 0; color: var(--ink-2); font-style: italic; }
.hit .links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.hit .links a {
  font-size: .86rem; font-weight: 600; text-decoration: none; padding: 7px 12px;
  border: 1.5px solid var(--line); display: inline-flex; gap: 6px; align-items: center;
}
.hit .links a:hover { border-color: var(--red); }
.hit .links a.band { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (min-width: 720px) { .hit .links { grid-column: 2; } }
@media (min-width: 1100px) { .results { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1700px) { .results { grid-template-columns: repeat(3, 1fr); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.f-empty { padding: 28px; background: var(--surface); color: var(--ink-2); grid-column: 1 / -1; }
.f-empty a { color: var(--red); font-weight: 700; }

/* ================= Reihe ================= */
.series { background: var(--paper); }
.shelf { display: grid; gap: 28px; }
.shelf-tabs {
  display: grid; grid-auto-flow: column; grid-auto-columns: 74px; gap: 6px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--g)); padding: 4px var(--g) 8px;
  position: sticky; top: 60px; z-index: 5; background: var(--paper);
}
.shelf-tabs::-webkit-scrollbar { display: none; }
.shelf-tabs button {
  scroll-snap-align: start; cursor: pointer; text-align: left;
  border: 2px solid var(--line); background: var(--surface);
  aspect-ratio: 1; padding: 8px; display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease);
}
.shelf-tabs button b { font-size: 2rem; line-height: 1; font-weight: 800; }
.shelf-tabs button span { font-size: .62rem; line-height: 1.15; font-weight: 600; color: var(--muted); display: none; }
.shelf-tabs button:hover { border-color: var(--ink); }
.shelf-tabs button[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.shelf-tabs button[aria-selected="true"] span { color: rgba(255,255,255,.9); }

.vol { display: grid; gap: 28px; }
.vol + .vol { margin-top: 64px; }
.js .vol + .vol { margin-top: 0; }
.vol[hidden] { display: none; }
.vol.enter { animation: rise .45s var(--ease) both; }
.vol-cover { width: min(64vw, 300px); }
.vol-cover img, .vol-cover .cv { box-shadow: 18px 24px 44px rgba(15, 40, 15, .28); }
.vol h3 { font-size: clamp(2rem, 6vw, 4.4rem); letter-spacing: -.035em; line-height: .98; }
.vol .kicker { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 14px; }
.vol .kicker .label { color: var(--red); }
.badge { font: 600 .72rem/1 var(--mono); letter-spacing: .06em; padding: 7px 10px; border: 1.5px solid currentColor; text-transform: uppercase; }
.badge.ok { color: var(--green-2); }
.badge.soon { color: var(--muted); }
.vol .sub { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-2); margin: 14px 0 18px; max-width: 54ch; }
.vol .ask { font-size: clamp(1.25rem, 2.2vw, 1.8rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.25; border-left: 6px solid var(--red); padding-left: 16px; margin: 0 0 22px; max-width: 32ch; }
.vol .blurb { max-width: 62ch; color: var(--ink-2); }
.facts-row { display: flex; flex-wrap: wrap; gap: 0; margin: 22px 0; border-top: 2px solid var(--ink); }
.facts-row div { padding: 12px 22px 0 0; margin-right: 22px; }
.facts-row b { display: block; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1; letter-spacing: -.03em; }
.facts-row span { font: 500 .72rem/1.4 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.toc { list-style: none; padding: 0; margin: 8px 0 0; columns: 1; column-gap: 32px; }
.toc li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; font-size: .95rem; }
.toc li i { font: 600 .75rem/1.6 var(--mono); font-style: normal; color: var(--red); min-width: 2.2em; }
.toc-h { margin-top: 26px; color: var(--muted); }

@media (min-width: 720px) {
  .shelf-tabs { grid-auto-columns: 96px; }
  .shelf-tabs button span { display: block; }
  .toc { columns: 2; }
}
@media (min-width: 1100px) {
  .shelf { grid-template-columns: minmax(300px, 30vw) minmax(0, 1fr); gap: clamp(40px, 5vw, 110px); align-items: start; }
  .shelf-tabs {
    position: sticky; top: 90px; margin: 0; padding: 0; overflow: visible;
    grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; gap: 8px;
  }
  .shelf-tabs button { padding: 14px; }
  .shelf-tabs button b { font-size: clamp(2.4rem, 3.4vw, 4rem); }
  .shelf-tabs button span { font-size: .78rem; }
  .vol { grid-template-columns: minmax(220px, 22vw) minmax(0, 1fr); gap: clamp(32px, 4vw, 80px); align-items: start; }
  .vol-cover { width: 100%; position: sticky; top: 90px; }
}

/* CSS-Umschlag im Stil des Pocket-Covers (für Bände ohne fertiges Coverbild) */
.cv {
  container-type: inline-size; position: relative; aspect-ratio: 120 / 190; overflow: hidden;
  background: linear-gradient(115deg, var(--green-1), var(--green-2)); color: #fff;
  display: flex; flex-direction: column;
}
.cv.praxis { aspect-ratio: 170 / 220; }
.cv.praxis .t { font-size: 9.6cqw; }
.cv::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4.3cqw; background: var(--red); }
.cv > * { margin-left: 13cqw; margin-right: 8cqw; }
.cv .s { font-weight: 700; font-size: 4.3cqw; line-height: 1.25; margin-top: 8cqw; }
.cv .t { font-weight: 800; font-size: 11cqw; line-height: 1; text-transform: uppercase; letter-spacing: -.01em; margin-top: auto; hyphens: manual; }
.cv .u { font-weight: 600; font-size: 4.8cqw; line-height: 1.25; margin-top: 3cqw; margin-bottom: auto; }
.cv .a { font-weight: 700; font-size: 4.5cqw; margin-bottom: 7cqw; margin-right: 34cqw; }
.cv .n {
  position: absolute; right: 0; bottom: 0; width: 25cqw; aspect-ratio: 1;
  background: var(--red); display: grid; place-items: center; font-weight: 800; font-size: 13cqw; margin: 0;
}

/* ================= Pocket-Anatomie ================= */
.anatomy { background: var(--ink); color: #eef3ea; overflow: hidden; }
@media (prefers-color-scheme: dark) { .anatomy { background: #050a06; } }
.anatomy .sec-head p { color: #b9c6b6; }
.anat { display: grid; gap: 40px; }
.page {
  background: #fdfdfb; color: #1b1f1c; padding: clamp(22px, 4vw, 48px);
  font-size: clamp(.86rem, 1.1vw, 1rem); line-height: 1.55; position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.45); max-width: 640px;
}
.page h4 { font-size: 1.5em; margin: 0 0 .4em; letter-spacing: -.02em; line-height: 1.15; }
.page .lead { font-style: italic; color: #4a524c; margin-bottom: 1.1em; }
.page .box { background: #e9f4e6; border-left: 5px solid var(--green-2); padding: 12px 16px; margin: 0 0 1.2em; }
.page .box b.k { display: block; font: 700 .72em/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--green-2); margin-bottom: 8px; }
.page .box div { display: grid; grid-template-columns: 2.4em 1fr; gap: 10px; padding: 3px 0; }
.page .box div strong { font-size: 1.3em; color: var(--green-3); line-height: 1.1; }
.page h5 { font-size: 1.08em; margin: 1em 0 .3em; }
.page .pfoot { margin-top: 1.4em; padding-top: 10px; border-top: 1px solid #d5dad4; display: flex; justify-content: space-between; font: 600 .78em/1.3 var(--mono); color: #6a736c; }
.mark { position: relative; }
.pin {
  position: absolute; right: -14px; top: -10px; z-index: 2;
  width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--red); color: #fff; font-weight: 800; font-size: .85rem; border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(239, 65, 48, .25);
}
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: n; }
.notes li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.notes li::before {
  counter-increment: n; content: counter(n);
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 800;
}
.notes b { display: block; font-size: 1.15rem; margin-bottom: 2px; color: #fff; }
.notes span { color: #b9c6b6; }
@media (min-width: 1000px) {
  .anat { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 140px); align-items: center; }
  .page { transform: rotate(-1.5deg); justify-self: end; }
}

/* ================= Autor ================= */
.author { display: grid; background: var(--surface); }
/* Hintergrund = Grau des Fotos: Das Bild bleibt nah an seiner Originalgröße (344 × 431)
   und sitzt unten, die Fläche drumherum füllt das Grau. */
.author-photo { position: relative; background: #c4c4c4; min-height: min(118vw, 520px); overflow: hidden; }
.author-photo img {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: auto; height: 100%; max-height: 560px; max-width: none;
}
.author-photo .tag { position: absolute; left: 0; bottom: 0; background: var(--red); color: #fff; padding: 14px 18px; font-weight: 800; font-size: clamp(1.2rem, 2.4vw, 2rem); letter-spacing: -.02em; line-height: 1.05; }
.author-photo .tag small { display: block; font: 500 .72rem/1.4 var(--mono); letter-spacing: .06em; opacity: .9; margin-top: 4px; }
.author-text { padding: clamp(48px, 8vw, 140px) var(--g); }
.author-text .label { color: var(--red); display: block; margin-bottom: 14px; }
.author-text h2 { font-size: clamp(2.2rem, 6vw, 5.4rem); letter-spacing: -.04em; margin-bottom: 26px; }
.author-text .big { font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.45; font-weight: 600; letter-spacing: -.01em; max-width: 40ch; }
.author-text p { max-width: 62ch; color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); margin: 34px 0; }
.stats div { background: var(--surface); padding: 18px; }
.stats b { display: block; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.04em; }
.stats span { font: 500 .72rem/1.4 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; }
.pills li { border: 1.5px solid var(--line); padding: 6px 12px; font-size: .88rem; font-weight: 600; }
.author .btn { color: var(--ink); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.photo-quote { display: none; }
@media (min-width: 1000px) {
  .author { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .author-photo { position: sticky; top: 0; height: 100vh; min-height: 640px; }
  .author-photo img { height: min(62vh, 560px); }
  .photo-quote {
    display: block; position: absolute; top: clamp(90px, 12vh, 140px); left: var(--g); right: var(--g); margin: 0;
    font-weight: 800; font-size: clamp(2rem, 3.6vw, 4.2rem); line-height: .98; letter-spacing: -.04em; color: #2c332e;
  }
}

/* ================= Ratgeber ================= */
.guides { background: var(--paper); }
.guide-cols { display: grid; gap: 36px; }
.guide-cols h3 { font-size: 1.05rem; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid var(--ink); padding-bottom: 8px; letter-spacing: -.01em; }
.guide-cols h3 span { font: 600 .75rem/1 var(--mono); color: var(--red); }
.guide-cols ul { list-style: none; margin: 0; padding: 0; }
.guide-cols a { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; line-height: 1.35; transition: padding .2s var(--ease), color .2s; }
.guide-cols a::after { content: "↗"; color: var(--red); font-weight: 700; flex: none; }
.guide-cols a:hover { padding-left: 8px; color: var(--green-2); }
@media (min-width: 720px) { .guide-cols { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
@media (min-width: 1300px) { .guide-cols { grid-template-columns: repeat(4, 1fr); } }

/* ================= Seminare ================= */
.talks { background: var(--green-3); color: #fff; }
.talks .sec-head p { color: rgba(255,255,255,.85); }
.talks .sec-head .label { color: #ffd2cc; }
.talk-main { display: grid; gap: 2px; background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.18); }
.talk-main > div { background: var(--green-3); padding: clamp(22px, 3vw, 44px); }
.talk-topic h3 { font-size: clamp(1.6rem, 3.4vw, 3rem); letter-spacing: -.03em; line-height: 1.04; margin: 10px 0 18px; }
.talk-topic ul { padding-left: 1.1em; margin: 0 0 18px; }
.talk-topic li { margin-bottom: 6px; }
.talk-topic .note { font-size: .9rem; color: rgba(255,255,255,.75); margin: 0; }
.fmt b { display: block; white-space: nowrap; font-size: clamp(2.2rem, 3.3vw, 4.2rem); line-height: 1; letter-spacing: -.04em; }
.fmt .label { display: block; color: #ffd2cc; margin: 12px 0 6px; }
.fmt p { margin: 0; color: rgba(255,255,255,.88); }
@media (min-width: 1000px) { .talk-main { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ================= Kontakt ================= */
.contact { background: var(--red); color: #fff; }
.contact .label { color: rgba(255,255,255,.9); display: block; margin-bottom: 18px; }
.contact h2 { font-size: clamp(2rem, 4.6vw, 4.4rem); letter-spacing: -.04em; max-width: 16ch; margin-bottom: 24px; }
.contact-grid { display: grid; gap: 40px; }
.ways { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid rgba(255,255,255,.55); }
.ways a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px;
  padding: 18px 0; border-top: 2px solid rgba(255,255,255,.55); text-decoration: none;
  transition: padding .2s var(--ease);
}
.ways a::after { content: "→"; grid-row: 1 / span 2; grid-column: 2; font-size: 1.5rem; font-weight: 700; transition: transform .2s var(--ease); }
.ways .label { color: rgba(255,255,255,.85); margin: 0; }
.ways b { font-size: clamp(1.25rem, 2vw, 1.8rem); letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
.ways a:hover { padding-left: 10px; }
.ways a:hover::after { transform: translateX(6px); }
.contact .fine { font-size: .9rem; color: rgba(255,255,255,.85); max-width: 52ch; margin: 0; }
@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 160px); align-items: end; }
}

/* ================= Fuß ================= */
.foot { background: var(--ink); color: #b9c6b6; padding: 28px var(--g); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }
@media (prefers-color-scheme: dark) { .foot { background: #050a06; } }
.foot nav { display: flex; gap: 22px; }
.foot a { color: #e9eee6; }

/* ================= Einblenden beim Scrollen ================= */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ================= Rechtstexte ================= */
.legal-top { background: var(--hero-grad); color: #fff; padding: 110px var(--g) 48px; position: relative; }
.legal-top::before { content: ""; position: absolute; inset: 0 auto 0 0; width: clamp(6px, 1.2vw, 18px); background: var(--red); }
.legal-top h1 { font-size: clamp(2.4rem, 8vw, 6rem); letter-spacing: -.04em; }
.legal { padding: clamp(40px, 6vw, 96px) var(--g); max-width: 900px; }
.legal h2 { font-size: 1.3rem; margin: 2em 0 .5em; letter-spacing: -.01em; }
.legal a { color: var(--red); font-weight: 600; }
.legal .muted { color: var(--muted); font-size: .9rem; margin-top: 2em; }
body.plain { padding-bottom: 0; }
@media (max-width: 999px) { .pin { right: 4px; } }
