/* letteropress – Stylesheet
   Aufbau: Schriften · Grundwerte · Kolumnentitel · Kapitel I–X · Kolophon · Röntgenblick · Mobil */

/* ---------- Schriften (lokal, OFL) ---------- */
/* EB Garamond als variable Schrift (400–800), selbst erzeugt mit Ligaturen und Satzfunktionen – siehe 00_konzept/schrift-bauen.js */
@font-face { font-family: "EB Garamond"; src: url(../fonts/eb-garamond-wght.woff2) format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(../fonts/eb-garamond-italic-wght.woff2) format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
/* Nur für die Ligaturen-Probe: in der Source Serif 4 sind die Ligaturen deutlich sichtbar */
@font-face { font-family: "Source Serif Probe"; src: url(../fonts/source-serif-4-probe.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(../fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(../fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Grundwerte ---------- */
:root {
  --tinte: #193D46;          /* aus dem Logo */
  --tinte-tief: #142C33;
  --messing: #B8894A;
  --messing-hell: #D2A95E;   /* Buchseiten im Logo */
  --papier: #F4F1EA;
  --papier-hell: #FBF9F4;
  --satzschwarz: #1A1A1A;
  --grau: #5F5D57;
  --linie: rgba(30, 63, 72, .2);

  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --zeile: 1.8rem;            /* Grundlinienraster: 18 px × 1,6 */
  --rand: clamp(16px, 5vw, 4.5rem);
  --kopf-hoehe: 3.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf-hoehe) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--satzschwarz);
  font: 400 1.125rem/var(--zeile) var(--serif);
  font-variant-ligatures: common-ligatures;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tinte); text-decoration-thickness: .5px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--messing); }
h1, h2, h3 { font-weight: 500; color: var(--tinte); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; hyphens: auto; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--messing); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--tinte); color: var(--papier); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Kolumnentitel (Kopfzeile) ---------- */
.kolumne {
  position: sticky; top: 0; z-index: 50;
  height: var(--kopf-hoehe);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding-inline: var(--rand);
  background: color-mix(in srgb, var(--papier) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: .5px solid var(--linie);
}
.kolumne__marke { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--tinte); font-size: 1.25rem; letter-spacing: .01em; }
.kolumne__kapitel { justify-self: end; font-style: italic; color: var(--grau); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.kolumne__aktionen { display: flex; align-items: center; gap: .9rem; font-family: var(--sans); font-size: .875rem; }

.schalter { display: flex; align-items: center; gap: .45rem; background: none; border: 0; padding: .3rem 0; cursor: pointer; color: var(--grau); }
.schalter__spur { width: 1.9rem; height: 1.05rem; border-radius: 1rem; border: 1px solid var(--tinte); position: relative; transition: background .25s; }
.schalter__spur::after { content: ""; position: absolute; top: 2px; left: 2px; width: .7rem; height: .7rem; border-radius: 50%; background: var(--tinte); transition: transform .25s, background .25s; }
.schalter[aria-pressed="true"] .schalter__spur { background: var(--tinte); }
.schalter[aria-pressed="true"] .schalter__spur::after { transform: translateX(.85rem); background: var(--messing-hell); }
.schalter[aria-pressed="true"] { color: var(--tinte); }

.inhalt-knopf { background: none; border: .5px solid var(--tinte); border-radius: 2px; padding: .3rem .8rem; cursor: pointer; letter-spacing: .06em; text-transform: uppercase; font-size: .75rem; }
.inhalt-knopf:hover, .inhalt-knopf[aria-expanded="true"] { background: var(--tinte); color: var(--papier); }

/* Inhaltsverzeichnis als Overlay */
.verzeichnis { position: fixed; inset: var(--kopf-hoehe) 0 0 0; z-index: 49; background: color-mix(in srgb, var(--papier) 96%, transparent); display: grid; place-items: start center; padding: 6vh var(--rand); overflow-y: auto; }
.verzeichnis[hidden] { display: none; }
.verzeichnis__blatt { width: min(34rem, 100%); background: var(--papier-hell); padding: 3rem clamp(1.5rem, 6vw, 3.5rem); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 20px 50px -20px rgba(20,44,51,.35); }
.verzeichnis__titel { font-size: 1.6rem; color: var(--tinte); margin-bottom: var(--zeile); }
.verzeichnis ol, .leser-verzeichnis { list-style: none; margin: 0; padding: 0; }
.verzeichnis a { display: flex; align-items: baseline; gap: .4rem; text-decoration: none; color: var(--satzschwarz); padding: .1rem 0; }
.verzeichnis a i, .iv-zeile i, .leser-verzeichnis i { flex: 1; border-bottom: 1.5px dotted rgba(30,63,72,.45); transform: translateY(-.3em); min-width: 1.5rem; }
.verzeichnis a b { font-weight: 400; font-variant-numeric: oldstyle-nums; color: var(--messing); min-width: 2.2rem; text-align: right; }
.verzeichnis a:hover span { color: var(--tinte); text-decoration: underline; text-decoration-thickness: .5px; }

/* ---------- Kapitel allgemein ---------- */
.kapitel { max-width: 78rem; margin-inline: auto; padding: calc(var(--zeile) * 4) var(--rand); position: relative; }
.kapitel__kopf { display: grid; grid-template-columns: 5.5rem minmax(0, 40rem); column-gap: 1.5rem; margin-bottom: calc(var(--zeile) * 2); }
.kapitel__nr { grid-row: span 3; font-size: 1rem; color: var(--messing); letter-spacing: .12em; padding-top: .9rem; border-top: .5px solid var(--messing); align-self: start; }
.kapitel h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.1; letter-spacing: -.01em; }
.kapitel__vorspann { margin-top: var(--zeile); font-size: 1.25rem; line-height: 1.6; color: var(--grau); max-width: 36rem; }

.knoepfe { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; margin-top: calc(var(--zeile) * 1.5); }
.knopf { display: inline-flex; align-items: center; min-height: 2.9rem; padding: 0 1.4rem; font: 600 .95rem/1 var(--sans); letter-spacing: .02em; text-decoration: none; border-radius: 2px; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.knopf--voll { background: var(--tinte); color: var(--papier); border: 1px solid var(--tinte); box-shadow: 0 2px 0 var(--messing); }
.knopf--voll:hover { background: var(--tinte-tief); box-shadow: 0 4px 0 var(--messing); }
.knopf--linie { color: var(--tinte); border: 0; padding-inline: 0; background: linear-gradient(var(--messing), var(--messing)) 0 100% / 100% 1px no-repeat; border-radius: 0; }
.knopf--linie:hover { background-size: 100% 2px; }

/* ---------- I · Titelei ---------- */
.titelei { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; min-height: calc(100vh - var(--kopf-hoehe)); padding-top: calc(var(--zeile) * 2); }
.dachzeile { font: 600 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--messing); margin-bottom: var(--zeile); }
.titelei h1 { font-size: clamp(2.3rem, 4.5vw, 3.5rem); line-height: 1.06; letter-spacing: -.015em; }
.titelei h1 .zusammen { white-space: nowrap; }
.h1-zusatz { display: block; margin-top: .35em; font-size: .62em; font-style: italic; color: var(--messing); letter-spacing: 0; }
.vorspann { margin-top: calc(var(--zeile) * 1.2); font-size: 1.28rem; line-height: 1.55; max-width: 34rem; }
.eckdaten { margin-top: calc(var(--zeile) * 1.5); font: .85rem/1.5 var(--sans); color: var(--grau); }

/* Doppelseite mit drei Ebenen */
.doppelseite { margin: 0; position: relative; container-type: inline-size; aspect-ratio: 270 / 210; perspective: 1400px; }
.ebene { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; transform: translate3d(0, var(--py, 0), 0); transition: transform .15s linear; }
.ebene--papier { --py: calc(var(--parallax, 0) * 10px); }
.ebene--papier > div { background: var(--papier-hell); }
.ebene--papier > div:first-child { background: linear-gradient(to left, rgba(0,0,0,.09), transparent 7%) var(--papier-hell); box-shadow: -14px 24px 40px -18px rgba(20,44,51,.35); border-radius: 3px 0 0 3px; }
.ebene--papier > div:last-child { background: linear-gradient(to right, rgba(0,0,0,.08), transparent 6%) var(--papier-hell); box-shadow: 14px 24px 40px -18px rgba(20,44,51,.35); border-radius: 0 3px 3px 0; }
.ebene--raster { --py: calc(var(--parallax, 0) * -6px); opacity: .0; transition: opacity .5s, transform .15s linear; pointer-events: none; }
.doppelseite:hover .ebene--raster { opacity: .55; }
/* Satzspiegel nach den Werten des Beispielbuchs (Kopf 17,6 · Fuß 28,6 · innen 17,4 · außen 23,4 mm bei 135 × 210 mm) */
.ebene--raster > div { position: relative; }
.ebene--raster > div::before { content: ""; position: absolute; top: 6.52cqw; bottom: 10.6cqw; border: 1px dashed var(--messing);
  background: repeating-linear-gradient(to bottom, transparent 0 calc(2.3cqw - 1px), rgba(184,137,74,.45) calc(2.3cqw - 1px) 2.3cqw); }
.ebene--raster > div:first-child::before { left: 8.67cqw; right: 6.44cqw; }
.ebene--raster > div:last-child::before { left: 6.44cqw; right: 8.67cqw; }
.ebene--text { --py: calc(var(--parallax, 0) * -14px); }

.buchseite { position: relative; padding: 6.52cqw 8.67cqw 10.6cqw 6.44cqw; font-size: 1.72cqw; line-height: 2.3cqw; color: #222; }
.buchseite--links { padding: 6.52cqw 6.44cqw 10.6cqw 8.67cqw; }
.bs-kolumne { position: absolute; top: 3.6cqw; left: 8.67cqw; font-size: 1.15cqw; font-style: italic; letter-spacing: .02em; color: var(--grau); }
.bs-text { text-align: justify; hyphens: auto; text-wrap: wrap; }
.buchseite .bs-einzug { text-indent: 1.72cqw; }
.bs-kapitel { text-align: center; font-size: 2.6cqw; line-height: 4.6cqw; margin: 4.6cqw 0 2.3cqw; color: var(--tinte); }
.bs-initiale { float: left; font-size: 5.9cqw; line-height: 4.3cqw; padding: .2cqw .4cqw 0 0; color: var(--tinte); }  /* Höhe ≤ 2 Zeilen (4,6cqw), sonst rückt auch die dritte Zeile ein */
.bs-pagina { position: absolute; bottom: 6.2cqw; left: 0; right: 0; text-align: center; font-size: 1.2cqw; font-variant-numeric: oldstyle-nums; }
.doppelseite figcaption { position: absolute; top: 100%; left: 0; right: 0; margin-top: 1.2rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1.4rem; font: .8rem/1.4 var(--sans); color: var(--grau); }

/* ---------- Vorteile ---------- */
.vorteile__liste { list-style: none; margin: 0 0 0 7rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--zeile) * 1.2) clamp(2rem, 5vw, 5rem); max-width: 60rem; }
.vorteile__liste li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: .6rem; border-top: .5px solid var(--linie); padding-top: .9rem; }
.vorteile__nr { grid-row: span 2; font-size: 2.6rem; line-height: 1; color: var(--messing); font-variant-numeric: oldstyle-nums; }
.vorteile__liste h3 { font-size: 1.45rem; line-height: 1.25; margin-bottom: .45rem; }
.vorteile__liste li p:last-child { font-size: 1.08rem; line-height: 1.7rem; color: #333; }

.gegenueber { margin: calc(var(--zeile) * 3) 0 0 7rem; max-width: 60rem; overflow-x: auto; }
.gegenueber table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 1.08rem; }
.gegenueber caption { text-align: left; font-size: 1.5rem; color: var(--tinte); margin-bottom: 1rem; }
.gegenueber th, .gegenueber td { text-align: left; padding: .7rem .9rem; border-bottom: .5px solid var(--linie); vertical-align: top; }
.gegenueber thead th { font: 600 .72rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--grau); border-bottom: 1px solid var(--tinte); }
.gegenueber tbody th { font-weight: 400; font-style: italic; color: var(--grau); width: 30%; }
.gegenueber td:last-child { color: var(--tinte); background: rgba(184,137,74,.09); }
.gegenueber thead th:last-child { color: var(--messing); background: rgba(184,137,74,.09); }

/* ---------- Schreiben statt setzen (TXT-Vorschau) ---------- */
.auszeichnung { margin: 0 0 calc(var(--zeile) * 1.5) 7rem; display: flex; flex-wrap: wrap; gap: 1.2rem 3.5rem; }
.auszeichnung div { max-width: 24rem; }
.auszeichnung code { font: 1.05rem/1.4 Consolas, "Cascadia Mono", "Courier New", monospace; color: var(--tinte); background: var(--papier-hell); border: .5px solid var(--linie); padding: .2rem .55rem; }
.auszeichnung dd { margin: .55rem 0 0; color: var(--grau); line-height: 1.5; }

.txt-demo { margin-left: 7rem; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 23rem); gap: 1.5rem clamp(1rem, 3vw, 2.5rem); align-items: center; max-width: 62rem; }
.editor { background: #fff; border: 1px solid #D9D6CF; box-shadow: 0 24px 50px -32px rgba(20,44,51,.5); }
.editor__leiste { display: flex; justify-content: space-between; font: .78rem/1 var(--sans); color: #555; background: #F0EFEB; padding: .55rem .8rem; border-bottom: 1px solid #E2E0DA; }
.editor textarea { display: block; width: 100%; min-height: 23rem; border: 0; resize: vertical; padding: 1rem 1.1rem; font: .9rem/1.6 Consolas, "Cascadia Mono", "Courier New", monospace; color: #222; background: #fff; }
.editor textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--messing); }
.txt-demo__pfeil { font-size: 2rem; color: var(--messing); }
.txt-seite { width: 100%; aspect-ratio: 135 / 210; overflow: hidden; background: var(--papier-hell); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 30px 60px -30px rgba(20,44,51,.45); padding: 2rem 2.6rem 3.2rem 2rem; font-size: .84rem; line-height: 1.18rem; color: #222; }
.txt-seite p { text-align: justify; hyphens: auto; text-wrap: wrap; }
.txt-seite p + p { text-indent: 1em; }
.txt-seite .ts-kapitel { text-align: center; text-indent: 0; font-size: 1.2rem; line-height: 2.36rem; margin: 1.18rem 0; color: var(--tinte); }
.txt-seite .ts-zwischen { text-align: center; text-indent: 0; font-style: italic; font-size: .95rem; margin: 1.18rem 0 0; color: var(--tinte); }
.txt-seite .ts-kapitel + p, .txt-seite .ts-zwischen + p { text-indent: 0; }
.ts-init { float: left; font-size: 2.75rem; line-height: 2.1rem; padding: .18rem .3rem 0 0; color: var(--tinte); }
.txt-demo__hinweis { margin: 1.4rem 0 0 7rem; font: .88rem/1.5 var(--sans); color: var(--grau); max-width: 46rem; }

/* ---------- II · Die Verwandlung ---------- */
.verwandlung__buehne { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 6vw, 6rem); }
.verwandlung__schritte { list-style: none; margin: 0; padding: 0 0 30vh 7rem; }
.verwandlung__schritte li { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .4s; }
.verwandlung__schritte li.aktiv { opacity: 1; }
.verwandlung__schritte h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.verwandlung__schritte h3::before { content: attr(data-nr); }
.verwandlung__schritte li p { font-size: 1.18rem; max-width: 26rem; }

.verwandlung__seite-halter { container-type: inline-size; position: sticky; top: calc(var(--kopf-hoehe) + 6vh); height: max-content; display: grid; justify-items: center; }
.verwandlung__zaehler { margin-top: 1.2rem; font: .8rem var(--sans); letter-spacing: .1em; color: var(--grau); }

.probe-seite {
  --pw: min(100cqw, 25rem);
  --e: calc(var(--pw) / 100);
  --ps-zeile: calc(var(--e) * 5.7);
  width: var(--pw); aspect-ratio: 135 / 210; position: relative; overflow: hidden;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 30px 60px -30px rgba(20,44,51,.45);
  padding: calc(var(--e) * 9) calc(var(--e) * 9); font-family: Calibri, Carlito, Arial, sans-serif; font-size: calc(var(--e) * 3.6); line-height: 1.15;
  font-variant-ligatures: none; text-align: left; hyphens: manual; color: #111;
  transition: padding .7s cubic-bezier(.4,.1,.2,1), background-color .7s;
}
.ps-kapitel { font-weight: 700; font-size: calc(var(--e) * 4.6); margin-bottom: calc(var(--e) * 3); transition: all .6s; }
.ps-absatz { margin-bottom: calc(var(--e) * 2.4); text-wrap: wrap; hyphens: inherit; }
.ps-pagina { position: absolute; bottom: calc(var(--e) * 6); left: 0; right: 0; text-align: center; font-size: calc(var(--e) * 3.1); opacity: 0; transition: opacity .6s; }
.t::before { content: attr(data-r); }

/* Schritt 1: Buchschrift und Satzspiegel (rechte Seite: innen schmal, außen breit) */
.probe-seite.s1 { background: var(--papier-hell); padding: calc(var(--e) * 13) calc(var(--e) * 17) calc(var(--e) * 21) calc(var(--e) * 12.9); font-family: var(--serif); font-size: calc(var(--e) * 4.45); line-height: var(--ps-zeile); }
.probe-seite.s1 .ps-kapitel { font-weight: 500; text-align: center; font-size: calc(var(--e) * 5.6); line-height: calc(var(--ps-zeile) * 2); margin: var(--ps-zeile) 0; color: var(--tinte); }
.probe-seite.s1 .ps-absatz { margin: 0; }
.probe-seite.s1 .ps-absatz + .ps-absatz { text-indent: 1em; }
/* Schritte 2–4: Zeichen tauschen */
.probe-seite.s2 .q::before, .probe-seite.s3 .d::before, .probe-seite.s4 .e::before { content: attr(data-s); }
.probe-seite.s2:not(.s3) .q, .probe-seite.s3:not(.s4) .d, .probe-seite.s4:not(.s5) .e { animation: tinte 1.6s ease-out; }
/* Schritt 5: Ligaturen */
.probe-seite.s5 { font-variant-ligatures: common-ligatures; }
.probe-seite.s5:not(.s6) .lig { animation: tinte 1.6s ease-out; }
/* Schritt 6: Initiale über zwei Zeilen */
.probe-seite.s6 .ini { float: left; font-size: calc(var(--ps-zeile) * 2.45); line-height: calc(var(--ps-zeile) * 1.85); padding: calc(var(--e) * .4) calc(var(--e) * 1) 0 0; color: var(--tinte); }
/* Schritt 7: Blocksatz und Trennung */
.probe-seite:not(.s7) .ps-absatz { hyphens: none; }
.probe-seite.s7 { text-align: justify; }
.probe-seite.s7 .ps-absatz { hyphens: auto; }
/* Schritt 8: Pagina */
.probe-seite.s8 .ps-pagina { opacity: 1; font-variant-numeric: oldstyle-nums; }

@keyframes tinte { 0% { background: rgba(184,137,74,.55); } 100% { background: transparent; } }

/* ---------- III · Vergleich ---------- */
.vergleich__rahmen { position: relative; display: grid; max-width: 56rem; margin-left: 7rem; background: #fff; box-shadow: 0 30px 60px -35px rgba(20,44,51,.45); user-select: none; }
.vergleich__ebene { grid-area: 1 / 1; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 8vw, 6rem); }
.vergleich__ebene--vorher { font-family: Calibri, Carlito, Arial, sans-serif; font-size: 1.05rem; line-height: 1.25; color: #111; }
.vergleich__ebene--vorher p { margin-bottom: 1rem; hyphens: none; text-wrap: wrap; }
.vergleich__ebene--nachher { background: var(--papier-hell); font-size: 1.22rem; line-height: 1.75rem; text-align: justify; clip-path: inset(0 0 0 var(--pos)); }
.vergleich__ebene--nachher p { hyphens: auto; }
.bs-einzug { text-indent: 1.2em; }
.vergleich__marke { display: block; margin-bottom: 1.6rem; font: 600 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--grau); text-align: left; }
.vergleich__ebene--nachher .vergleich__marke { text-align: right; color: var(--messing); }
.vergleich__griff { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--tinte); pointer-events: none; }
.vergleich__griff span { position: absolute; top: 50%; left: 50%; width: 2.6rem; height: 2.6rem; translate: -50% -50%; border-radius: 50%; background: var(--tinte); box-shadow: 0 0 0 4px var(--papier-hell); }
.vergleich__griff span::before { content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--papier); font-size: 1.2rem; letter-spacing: .25em; padding-left: .2em; }
.vergleich__regler { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.vergleich__rahmen:has(.vergleich__regler:focus-visible) .vergleich__griff span { outline: 2px solid var(--messing); outline-offset: 4px; }

/* ---------- IV · Werkstatt ---------- */
.werkstatt__satz { display: grid; grid-template-columns: 5.5rem minmax(0, 15rem) minmax(0, 34rem) minmax(0, 13rem); gap: 1.5rem clamp(1.5rem, 3vw, 3rem); align-items: start; }
.werkstatt__bild { grid-column: 2; margin: 0; }
.platzhalter { aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center; background: repeating-linear-gradient(45deg, rgba(30,63,72,.05) 0 10px, transparent 10px 20px), var(--papier-hell); border: .5px solid var(--linie); color: var(--grau); font-style: italic; line-height: 1.4; }
.werkstatt__foto { width: 100%; height: auto; box-shadow: 0 24px 50px -30px rgba(20,44,51,.55); }
.werkstatt__bild figcaption { margin-top: .6rem; font: .8rem var(--sans); color: var(--grau); }
.werkstatt__text { grid-column: 3; font-size: 1.22rem; line-height: 1.95rem; }
.werkstatt__text p { text-align: justify; hyphens: auto; }
.werkstatt__text p + p { text-indent: 1.2em; }
.initiale-gross { float: left; font-size: 4.7rem; line-height: 3.6rem; padding: .22rem .5rem 0 0; color: var(--tinte); }  /* genau 2 Zeilen (2 × 1,95rem) */
.unterschrift { margin-top: 1.95rem; text-align: right !important; font-style: italic; color: var(--grau); text-indent: 0 !important; }
.marginalie { grid-column: 4; font-size: .98rem; line-height: 1.45; color: var(--grau); border-top: .5px solid var(--messing); padding-top: .8rem; margin-top: .4rem; }
.marginalie b { display: block; color: var(--tinte); font-weight: 500; font-style: italic; }

/* ---------- V · Satzproben ---------- */
.probe { display: grid; grid-template-columns: 5.5rem minmax(0, 20rem) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); padding: calc(var(--zeile) * 1.5) 0; border-top: .5px solid var(--linie); align-items: center; }
.probe__kopf { grid-column: 2; }
.probe__nr { font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--messing); margin-bottom: .8rem; }
.probe h3 { font-size: 1.7rem; margin-bottom: .5rem; }
.probe__kopf > p:not(.probe__nr) { color: var(--grau); font-size: 1.05rem; line-height: 1.6rem; }
.probe__muster { grid-column: 3; justify-self: center; }
.probe:nth-of-type(even) .probe__kopf { grid-column: 3; grid-row: 1; justify-self: start; max-width: 22rem; }
.probe:nth-of-type(even) .probe__muster { grid-column: 2; grid-row: 1; }

.umschalter { display: inline-flex; margin-top: 1.1rem; border: .5px solid var(--tinte); border-radius: 2px; overflow: hidden; }
.umschalter button { background: none; border: 0; padding: .45rem .9rem; cursor: pointer; font-family: var(--sans); font-size: .85rem; min-width: 3rem; }
.umschalter button + button { border-left: .5px solid var(--tinte); }
.umschalter button[aria-pressed="true"] { background: var(--tinte); color: var(--papier); }
.regler-zeile { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; font: .85rem var(--sans); color: var(--grau); }
.regler-zeile input { accent-color: var(--tinte); flex: 1; max-width: 12rem; }

.lig-muster { font-family: "Source Serif Probe", var(--serif); font-size: clamp(2.2rem, 5.6vw, 4.4rem); line-height: 1.2; color: var(--tinte); text-align: center; font-variant-ligatures: common-ligatures; }
.lig-hinweis { display: block; margin-top: 1rem; font: .8rem/1.4 var(--sans); color: var(--grau); }
.lig-muster[data-zustand="aus"] { font-variant-ligatures: none; }
.lig-muster[data-zustand="an"] .lig { color: var(--messing); }

.anf-muster { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.2; color: var(--tinte); }
.anf-muster .zusammen { white-space: nowrap; }
.anf-muster[data-zustand="schreibmaschine"] .anf-a::before { content: '"'; } .anf-muster[data-zustand="schreibmaschine"] .anf-z::before { content: '"'; }
.anf-muster[data-zustand="deutsch"] .anf-a::before { content: "„"; } .anf-muster[data-zustand="deutsch"] .anf-z::before { content: "“"; }
.anf-muster[data-zustand="buchsatz"] .anf-a::before { content: "»"; } .anf-muster[data-zustand="buchsatz"] .anf-z::before { content: "«"; }
.anf-a::before, .anf-z::before { color: var(--messing); }

.trenn-muster { width: min(var(--spalte), 100%); font-size: 1.2rem; line-height: 1.7rem; text-align: justify; hyphens: auto; padding: 0 .8rem; border-inline: .5px dashed var(--messing); transition: width .2s; }
.trenn-muster[data-zustand="aus"] { hyphens: none; }

.schutz-muster { display: flex; gap: 2px; }
.mini-seite { width: 8.5rem; aspect-ratio: 135 / 210; background: var(--papier-hell); box-shadow: 0 20px 40px -24px rgba(20,44,51,.45); padding: 1.1rem 1rem 1.6rem; display: flex; flex-direction: column; gap: .42rem; }
.mini-seite i { display: block; height: .3rem; background: rgba(30,63,72,.35); border-radius: 1px; transition: all .45s; }
.mini-seite i.kurz, .mini-seite i.waise { width: 38%; }
.mini-seite i.abs { margin-left: 12%; }
.mini-seite i.zug { height: 0; margin-bottom: -.42rem; opacity: 0; }
.schutz-muster[data-zustand="aus"] i.waise { background: var(--messing); box-shadow: 0 0 0 3px rgba(184,137,74,.25); }
.schutz-muster[data-zustand="an"] i.wandert { height: 0; margin-top: -.42rem; opacity: 0; }
.schutz-muster[data-zustand="an"] i.zug { height: .3rem; margin-bottom: 0; opacity: 1; background: var(--messing); }

/* ---------- VI · Vier Schritte ---------- */
.schrittfolge { list-style: none; margin: 0; padding: 0; counter-reset: schritt; }
.schritt { display: grid; grid-template-columns: 5.5rem minmax(0, 26rem) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); padding: calc(var(--zeile) * 1.5) 0; border-top: .5px solid var(--linie); align-items: start; }
.schritt__text { grid-column: 2; }
.schritt__nr { font-size: 3.4rem; line-height: 1; color: var(--messing); font-variant-numeric: oldstyle-nums; margin-bottom: .4rem; }
.schritt h3 { font-size: 1.7rem; margin-bottom: .5rem; }
.schritt__text > p:last-child { font-size: 1.1rem; line-height: 1.7rem; }

.dialog { grid-column: 3; justify-self: start; width: min(100%, 26rem); background: #F3F2EE; border: 1px solid #E2E0DA; padding: 1.3rem 1.4rem; font: 400 .82rem/1.35 var(--sans); color: #333; display: grid; gap: .8rem; box-shadow: 0 24px 50px -32px rgba(20,44,51,.5); }
.dialog label { display: grid; gap: .3rem; font-weight: 600; font-size: .75rem; }
.dialog__paar { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.feld { display: block; background: #fff; border: 1px solid #DAD8D2; padding: .45rem .6rem; font-weight: 400; font-size: .9rem; color: #222; }
.feld--wahl { background: linear-gradient(#fff, #F1F1F1); position: relative; }
.feld--wahl::after { content: "⌄"; position: absolute; right: .6rem; top: .25rem; color: #888; }
.dialog__titel { font-size: 1.15rem; color: #222; }
.dialog__hinweis { color: #777; font-size: .75rem; }
.dialog__probe { font-family: var(--serif); font-size: 1.5rem; color: var(--tinte); }
.dialog__zeile { background: #fff; border-bottom: 1px solid #ECEAE4; padding: .5rem .6rem; font-size: .75rem; }
.dialog--papier { background: var(--papier-hell); border: 0; font-family: var(--serif); font-size: .95rem; padding: 2rem 2.2rem 3rem; gap: .2rem; }
.iv-titel { font-size: 1.3rem; color: var(--tinte); margin-bottom: .8rem; }
.iv-zeile { display: flex; align-items: baseline; gap: .3rem; }
.iv-zeile b { font-weight: 400; font-variant-numeric: oldstyle-nums; }
.iv-zeile--ein { padding-left: 1rem; font-size: .9em; }

/* Echte Programmfenster */
.bildschirm { grid-column: 3; justify-self: start; width: 100%; max-width: 34rem; margin: 0; }
.bildschirm__lupe { display: block; width: 100%; padding: 0; border: 1px solid #DAD8D2; background: #F3F2EE; cursor: zoom-in; box-shadow: 0 24px 50px -32px rgba(20,44,51,.5); transition: transform .3s, box-shadow .3s; }
.bildschirm__lupe:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(20,44,51,.6); }
.bildschirm img { width: 100%; height: auto; }
.bildschirm figcaption { margin-top: .65rem; font: .8rem/1.4 var(--sans); color: var(--grau); }
.bildschirm--breit { width: auto; max-width: 60rem; margin: 0 0 calc(var(--zeile) * 2) 7rem; }
.probe--bild .bildschirm { justify-self: stretch; max-width: none; }
.probe:nth-of-type(even).probe--bild .bildschirm { grid-column: 2; }

.lupe { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.lupe::backdrop { background: rgba(20,44,51,.86); }
.lupe img { display: block; max-width: 96vw; max-height: 94vh; width: auto; height: auto; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.lupe__zu { position: absolute; top: -.6rem; right: -.6rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0; background: var(--papier); color: var(--tinte); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.3); }

/* ---------- VII · Druckreif ---------- */
.druckreif { max-width: none; background: var(--tinte); color: var(--papier); padding-block: calc(var(--zeile) * 3); }
.druckbogen { position: relative; max-width: 72rem; margin-inline: auto; padding: calc(var(--zeile) * 2) clamp(1rem, 4vw, 3rem); }
.druckreif h2 { color: var(--papier); }
.druckreif .kapitel__nr { color: var(--messing-hell); border-color: var(--messing-hell); }
.schnittmarke { position: absolute; width: 1.6rem; height: 1.6rem; border: 0 solid var(--messing-hell); }
.schnittmarke--lo { top: 0; left: 0; border-width: 1px 0 0 1px; }
.schnittmarke--ro { top: 0; right: 0; border-width: 1px 1px 0 0; }
.schnittmarke--lu { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.schnittmarke--ru { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.druckdaten { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--zeile) clamp(1.5rem, 4vw, 3.5rem); margin: 0 0 0 7rem; }
.druckdaten div { border-top: .5px solid rgba(244,241,234,.3); padding-top: .8rem; }
.druckdaten dt { font-size: 1.35rem; color: var(--messing-hell); }
.druckdaten dd { margin: .3rem 0 0; font-size: 1.05rem; line-height: 1.6rem; color: rgba(244,241,234,.85); }
.druckreif__fuss { margin: calc(var(--zeile) * 2) 0 0 7rem; font: .85rem/1.5 var(--sans); color: rgba(244,241,234,.6); max-width: 40rem; }

/* ---------- VIII · Für wen ---------- */
.leser-verzeichnis { margin-left: 7rem; max-width: 52rem; }
.leser-verzeichnis li { display: flex; align-items: baseline; gap: .6rem; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.5; padding: .55rem 0; }
.leser-verzeichnis li span { color: var(--tinte); white-space: nowrap; }
.leser-verzeichnis em { font-size: 1.05rem; color: var(--grau); text-align: right; }

/* ---------- IX · Lizenz & Warteliste ---------- */
.lizenz__satz { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 26rem); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: start; }
.lizenz__liste { grid-column: 2; list-style: none; margin: 0; padding: 0; font-size: 1.2rem; }
.lizenz__liste li { padding: .65rem 0 .65rem 1.8rem; border-bottom: .5px solid var(--linie); position: relative; }
.lizenz__liste li::before { content: "❧"; position: absolute; left: 0; color: var(--messing); }
.warteliste { grid-column: 3; background: var(--papier-hell); padding: 2rem clamp(1.3rem, 3vw, 2.2rem); box-shadow: 0 30px 60px -36px rgba(20,44,51,.5); display: grid; gap: 1.1rem; font-family: var(--sans); font-size: .9rem; }
.warteliste__titel { font: 500 1.6rem/1.2 var(--serif); color: var(--tinte); }
.warteliste label { display: flex; flex-wrap: wrap; column-gap: .3rem; row-gap: .35rem; font-weight: 600; color: var(--tinte); }
.warteliste label > input[type="text"], .warteliste label > input[type="email"] { flex-basis: 100%; }
.warteliste .optional { font-weight: 400; color: var(--grau); }
.warteliste input[type="text"], .warteliste input[type="email"] { font: 400 1.05rem var(--sans); padding: .55rem .1rem; border: 0; border-bottom: 1px solid var(--tinte); background: transparent; border-radius: 0; }
.warteliste input:focus { outline: none; border-bottom: 2px solid var(--messing); }
.warteliste .gruppe { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem 1.4rem; }
.warteliste .gruppe legend { width: 100%; padding: 0; margin-bottom: .5rem; font-weight: 600; color: var(--tinte); }
.warteliste .wahl { display: flex; flex-wrap: nowrap; align-items: center; gap: .5rem; font-weight: 400; }
.wahl input { accent-color: var(--tinte); width: 1.05rem; height: 1.05rem; margin: 0; }
.warteliste .einwilligung { display: grid; grid-template-columns: auto 1fr; gap: .6rem; font-weight: 400; color: var(--grau); line-height: 1.45; font-size: .82rem; }
.einwilligung input { accent-color: var(--tinte); width: 1.05rem; height: 1.05rem; margin-top: .1rem; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.warteliste { position: relative; }
.warteliste__meldung { min-height: 1.3em; color: var(--tinte); font-style: italic; font-family: var(--serif); font-size: 1.05rem; }

/* ---------- X · Fragen ---------- */
.fragen__liste { margin-left: 7rem; max-width: 46rem; }
.fragen__liste details { border-top: .5px solid var(--linie); }
.fragen__liste details:last-child { border-bottom: .5px solid var(--linie); }
.fragen__liste summary { list-style: none; cursor: pointer; padding: 1rem 2.5rem 1rem 0; font-size: 1.3rem; color: var(--tinte); position: relative; }
.fragen__liste summary::-webkit-details-marker { display: none; }
.fragen__liste summary::after { content: "+"; position: absolute; right: .3rem; top: .85rem; color: var(--messing); font-size: 1.5rem; transition: transform .25s; }
.fragen__liste details[open] summary::after { transform: rotate(45deg); }
.fragen__liste details p { padding: 0 0 1.2rem; font-size: 1.1rem; line-height: 1.75rem; color: #333; max-width: 40rem; }

/* ---------- Kolophon ---------- */
.kolophon { text-align: center; padding: calc(var(--zeile) * 4) var(--rand) calc(var(--zeile) * 3); display: grid; justify-items: center; gap: 1.2rem; border-top: .5px solid var(--linie); }
.kolophon__satz { font-style: italic; color: var(--grau); line-height: 1.6; }
.kolophon__links { font: .85rem var(--sans); color: var(--grau); }

/* ---------- Rechtsseiten ---------- */
.rechtstext { max-width: 42rem; margin: 0 auto; padding: calc(var(--zeile) * 3) var(--rand) calc(var(--zeile) * 4); }
.rechtstext h1 { font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1.1; margin-bottom: .4rem; }
.rechtstext__unter { color: var(--grau); font-style: italic; margin-bottom: calc(var(--zeile) * 1.5); }
.rechtstext h2 { font-size: 1.4rem; margin: calc(var(--zeile) * 1.6) 0 .5rem; padding-top: .7rem; border-top: .5px solid var(--linie); }
.rechtstext h3 { font-size: 1.15rem; margin: var(--zeile) 0 .4rem; }
.rechtstext p { margin-bottom: .8rem; text-align: justify; hyphens: auto; }
.rechtstext b { font-weight: 500; color: var(--tinte); }
.rechtstext .formular { text-align: left; background: var(--papier-hell); border: .5px solid var(--linie); padding: 1.2rem 1.4rem; font-size: 1rem; }
.entwurf { margin-bottom: calc(var(--zeile) * 1.5); padding: 1rem 1.2rem; background: rgba(184,137,74,.14); border-left: 3px solid var(--messing); font: .92rem/1.5 var(--sans); }
.rechtsseite .kolumne__aktionen a { text-decoration: none; color: inherit; }

/* ---------- Satzraster der Doppelseite ---------- */
.doppelseite.raster-an .ebene--raster { opacity: 1; }
.doppelseite.raster-an .ebene--papier { --py: calc(var(--parallax, 0) * 10px + 12px); }
.doppelseite.raster-an .ebene--text { --py: calc(var(--parallax, 0) * -14px - 12px); }
.doppelseite.raster-an .ebene--raster > div:last-child::after {
  content: "Satzspiegel nach dem Goldenen Schnitt";
  position: absolute; left: 6.44cqw; right: 8.67cqw; bottom: 7.4cqw; text-align: center;
  font: 600 1.15cqw/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--messing);
}

/* ---------- Mobil und Tablet ---------- */
@media (max-width: 960px) {
  .titelei { grid-template-columns: 1fr; min-height: 0; gap: calc(var(--zeile) * 2.5); padding-bottom: calc(var(--zeile) * 5); }
  .kapitel__kopf { grid-template-columns: 1fr; }
  .kapitel__nr { grid-row: auto; width: 3rem; margin-bottom: 1rem; padding-top: .6rem; }

  .verwandlung__buehne { grid-template-columns: 1fr; gap: 0; }
  .verwandlung__seite-halter { grid-row: 1; top: calc(var(--kopf-hoehe) + .6rem); z-index: 1; }
  .probe-seite { --pw: min(56vw, 15rem); }
  .verwandlung__zaehler { margin-top: .4rem; }
  .verwandlung__schritte { grid-row: 2; padding: 0 0 20vh; position: relative; z-index: 2; }
  .verwandlung__schritte li { min-height: 75vh; justify-content: flex-end; opacity: 1; }
  .verwandlung__schritte li > * { background: var(--papier-hell); }
  .verwandlung__schritte h3 { padding: 1rem 1.2rem 0; margin: 0; }
  .verwandlung__schritte li p { padding: .4rem 1.2rem 1.1rem; max-width: none; box-shadow: 0 24px 40px -30px rgba(20,44,51,.5); }
  .verwandlung__schritte li:not(.aktiv) { opacity: .0; }

  .vergleich__rahmen, .leser-verzeichnis, .fragen__liste, .druckdaten, .druckreif__fuss, .vorteile__liste, .gegenueber, .auszeichnung, .txt-demo, .txt-demo__hinweis { margin-left: 0; }
  .vorteile__liste { grid-template-columns: 1fr; }
  .txt-demo { grid-template-columns: 1fr; justify-items: center; }
  .editor { width: 100%; }
  .editor textarea { min-height: 15rem; }
  .txt-demo__pfeil { transform: rotate(90deg); line-height: 1; }
  .txt-seite { max-width: 22rem; }
  .werkstatt__satz { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .werkstatt__bild { grid-column: 1; }
  .werkstatt__text { grid-column: 2; }
  .marginalie { grid-column: 2; }

  .probe, .schritt { grid-template-columns: 1fr; }
  .probe__kopf, .probe__muster, .probe:nth-of-type(even) .probe__kopf, .probe:nth-of-type(even) .probe__muster, .schritt__text, .dialog { grid-column: 1; grid-row: auto; }
  .probe__muster { justify-self: start; }
  .bildschirm, .probe:nth-of-type(even).probe--bild .bildschirm { grid-column: 1; }
  .bildschirm--breit { margin-left: 0; }
  .lupe__zu { top: .4rem; right: .4rem; }
  .lizenz__satz { grid-template-columns: 1fr; }
  .lizenz__liste, .warteliste { grid-column: 1; }
}

@media (max-width: 640px) {
  :root { --kopf-hoehe: 3rem; }
  body { font-size: 1.0625rem; }
  .kolumne { grid-template-columns: auto 1fr; gap: .6rem; }
  .kolumne__kapitel { display: none; }
  .kolumne__marke span { font-size: 1.1rem; }
  .kolumne__aktionen { justify-self: end; gap: .6rem; }
  .schalter__text { font-size: .8rem; }
  .kapitel { padding-block: calc(var(--zeile) * 2.5); }
  .vorspann, .kapitel__vorspann { font-size: 1.12rem; }
  .werkstatt__satz { grid-template-columns: 1fr; }
  .werkstatt__bild { grid-column: 1; max-width: 14rem; }
  .werkstatt__text, .marginalie { grid-column: 1; }
  .werkstatt__text { font-size: 1.1rem; line-height: 1.8rem; }
  .leser-verzeichnis li { flex-wrap: wrap; gap: 0; }
  .leser-verzeichnis i { display: none; }
  .leser-verzeichnis em { flex-basis: 100%; text-align: left; }
  .vergleich__ebene { padding: 2rem 1.2rem; }
  .vergleich__ebene--nachher { font-size: 1.1rem; line-height: 1.6rem; }
  .dialog__paar { grid-template-columns: 1fr; }
  .gegenueber table { min-width: 0; }
  .gegenueber thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gegenueber tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: .5px solid var(--linie); padding: .4rem 0; }
  .gegenueber tbody th { grid-column: 1 / -1; width: auto; border: 0; padding-bottom: .2rem; }
  .gegenueber td { border: 0; }
  .gegenueber td::before { content: attr(data-label); display: block; font: 600 .62rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--grau); margin-bottom: .2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ebene { transform: none; }
}
