/*
  lehmhub, Richtung "Strich"
  Grund #E9E6DF (Papier) / Tusche #1E1A16 / eine Lavur Lehmocker #B99A6E
  Schibsted Grotesk (Marke, Navigation, Ueberschriften) + Newsreader (Text, kursive Hinweisworte)
  Gilt fuer Startseite und alle Kapitelseiten: ein Strich, eine Typografie, ein Rhythmus.
*/
/* fonts: self-hosted (schriften/, SIL Open Font License), no request to Google */
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../schriften/newsreader-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../schriften/newsreader-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../schriften/newsreader-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../schriften/newsreader-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../schriften/schibsted-grotesk-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../schriften/schibsted-grotesk-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --grund: #E9E6DF;
  --tusche: #1E1A16;
  --leise: #5A534A;
  --hauch: rgba(30, 26, 22, 0.14);
  --lehm: #B99A6E;
  --rand: clamp(16px, 4vw, 56px);
  --spalte: 34rem;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --grotesk: "Schibsted Grotesk", "Helvetica Neue", Helvetica, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
}
/* the site is always paper; no dark theme, the drawing lives on paper */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--grund) var(--strich-papier, none) repeat; background-size: var(--strich-papier-groesse, auto); color: var(--tusche); -webkit-text-size-adjust: 100%; }
body { font-family: var(--serif); font-size: 19px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
img, canvas { display: block; }
.versteckt { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ head */
.kopf { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: baseline; justify-content: space-between; padding: 30px var(--rand); }
.marke { font-family: var(--grotesk); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; color: var(--tusche); }
.navi { display: flex; align-items: baseline; gap: 28px; font-family: var(--grotesk); font-size: 14.5px; }
.navi a { color: var(--leise); text-decoration: none; padding: 6px 0; }
.navi a:hover, .navi a[aria-current="page"] { color: var(--tusche); }
.navi .neben { margin-left: 20px; display: flex; gap: 28px; }
a:focus-visible, button:focus-visible { outline: 1.5px solid var(--tusche); outline-offset: 4px; border-radius: 2px; }

@media (max-width: 760px) {
  .kopf { flex-direction: column; align-items: stretch; gap: 14px; padding: 22px var(--rand) 0; }
  .kopf-zeile { display: flex; justify-content: space-between; align-items: baseline; }
  .navi { justify-content: space-between; gap: 0; font-size: clamp(12px, 3.6vw, 14.5px); }
  .navi .neben { display: none; }
}
@media (min-width: 761px) { .kopf-zeile .klein { display: none; } }
.kopf-zeile { display: contents; }
.kopf-zeile .klein { font-family: var(--grotesk); font-size: 14px; color: var(--leise); text-decoration: none; }
@media (max-width: 760px) { .kopf-zeile { display: flex; } .kopf-zeile .klein + .klein { margin-left: 18px; } }

/* ------------------------------------------------------------ engine parts (shared) */
.strich { position: relative; }
.strich-flaeche { position: absolute; inset: 0; }
.strich-ziele, .strich-worte { position: absolute; inset: 0; pointer-events: none; }
.strich-ziel { position: absolute; background: none; border: 0; padding: 0; margin: 0; opacity: 0; pointer-events: none; }
.strich-ziel:focus-visible { opacity: 1; outline: 1px dashed rgba(30, 26, 22, 0.45); outline-offset: 2px; }
.strich-wort { position: absolute; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1; color: var(--tusche); white-space: nowrap; transform: translate(0, -55%); opacity: 0; transition: opacity 0.45s ease; }
.strich-wort.links { transform: translate(-100%, -55%); }
.strich-wort.an { opacity: 1; }
.strich.tippbar { cursor: pointer; }
.strich.hat-zieh { cursor: ew-resize; }
.strich.zieht { cursor: grabbing; }
.strich-zieh { position: absolute; left: 0; right: 0; height: 28px; outline: none; }
.strich-zieh:focus-visible { outline: 1px dashed rgba(30, 26, 22, 0.45); outline-offset: 2px; }
.strich-zieh-wort { position: absolute; top: 50%; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--leise); white-space: nowrap; }
.strich-zieh-wort.links { left: calc(var(--x0, 0px) - 14px); transform: translate(-100%, -40%); }
.strich-zieh-wort.rechts { right: calc(var(--x1, 0px) - 14px); transform: translate(100%, -40%); }
@media (prefers-reduced-motion: reduce) { .strich-wort { transition: none; } }
/* phone: the drag words sit under the rail, flush with its ends and clear of the line, the stops and the grip
   (the grip reaches about 6 px below the rail), so long words never touch it and stay on the page */
@media (max-width: 760px) {
  .strich-zieh-wort { top: calc(50% + 11px); font-size: 14.5px; line-height: 1; }
  .strich-zieh-wort.links { left: var(--x0, 0px); transform: none; }
  .strich-zieh-wort.rechts { right: var(--x1, 0px); transform: none; text-align: right; }
}

/* visible notes at a drawing (engine: p.notiz); from the plaster pilot, shared since round 5 */
.strich-notizen { position: absolute; inset: 0; pointer-events: none; }
.strich-notiz { position: absolute; font-family: var(--serif); font-style: italic; font-size: 16.5px; line-height: 1.22; color: var(--tusche); transform: translate(0, -0.62em); opacity: 0; transition: opacity 0.45s ease; }
.strich-notiz.links { transform: translate(-100%, -0.62em); text-align: right; }
.strich-notiz.an { opacity: 1; }
.strich-notiz > span { display: block; }
.strich-notiz .z2 { font-size: 14.5px; color: var(--leise); }
.strich-notiz.klein { font-size: 14.5px; line-height: 1.2; }
.strich-notiz.klein .z2 { font-size: 13px; }
/* the step line under the drawing: a title in the hand, the line beneath in plain reading type */
.strich-notiz.folge { font-size: 18px; }
.strich-notiz.folge .z2 { margin-top: 5px; font-style: normal; font-size: 16px; line-height: 1.45; color: var(--tusche); }
.strich-notiz.folge.klein { font-size: 15.5px; }
.strich-notiz.folge.klein .z2 { margin-top: 3px; font-size: 14px; line-height: 1.4; }
.strich-notiz.leise { color: var(--leise); }
@media (prefers-reduced-motion: reduce) { .strich-notiz { transition: none; } }

/* ------------------------------------------------------------ start: the scene */
.buehne { position: relative; height: 100vh; height: 100svh; min-height: 560px; }
/* phone: the scene is wide, not tall; the stage ends below it so the line and the start of the text are in view */
@media (max-width: 760px) { .buehne { height: 74vh; height: 74svh; min-height: 520px; } .unten { padding-top: var(--s6); } }
.kreislauf { position: absolute; inset: 0; }
.weg { position: fixed; inset: 0; pointer-events: none; z-index: 1; }

/* ------------------------------------------------------------ start: below the scene */
.unten { position: relative; z-index: 2; padding: var(--s9) var(--rand) var(--s8); }
.einfuehrung { margin-left: 42%; max-width: var(--spalte); font-size: 22px; line-height: 1.5; }
.einfuehrung p + p { margin-top: var(--s4); }
.einfuehrung h1 { font-family: var(--grotesk); font-weight: 500; font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -0.025em; line-height: 1.1; margin-bottom: var(--s4); }
.platzhalter { color: var(--leise); font-style: italic; }

.einstiege { list-style: none; margin-top: var(--s9); }
.einstieg { display: grid; grid-template-columns: 34% 1fr; gap: 0 6%; align-items: center; margin-left: 8%; padding: var(--s6) 0; }
.einstieg + .einstieg { margin-top: var(--s7); }
.einstieg a { text-decoration: none; }
.einstieg-bild { position: relative; aspect-ratio: 4 / 3; width: 100%; max-width: 360px; }
.einstieg h2 { font-family: var(--grotesk); font-weight: 500; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.02em; line-height: 1.1; }
.einstieg h2 a { background-image: linear-gradient(var(--tusche), var(--tusche)); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.4s ease; }
.einstieg h2 a:hover, .einstieg h2 a:focus-visible { background-size: 100% 1.5px; }
.einstieg p { margin-top: var(--s3); max-width: 26rem; color: var(--tusche); }
.einstieg .weiter { display: inline-block; margin-top: var(--s4); font-family: var(--grotesk); font-size: 15px; color: var(--leise); text-decoration: none; }
.einstieg .weiter:hover { color: var(--tusche); }

.fuss { position: relative; z-index: 2; padding: var(--s8) var(--rand) var(--s7); margin-left: 8%; display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--grotesk); font-size: 14.5px; }
.fuss a { color: var(--leise); text-decoration: none; padding: 4px 0; }
.fuss a:hover { color: var(--tusche); }

@media (max-width: 760px) {
  body { font-size: 18px; }
  .unten { padding-top: var(--s8); }
  .einfuehrung { margin-left: 44px; font-size: 20px; }
  .einstiege { margin-top: var(--s8); }
  .einstieg { grid-template-columns: 1fr; margin-left: 44px; padding: var(--s4) 0; }
  .einstieg-bild { max-width: 100%; margin-bottom: var(--s4); }
  .fuss { margin-left: 44px; }
}
@media (prefers-reduced-motion: reduce) { .einstieg h2 a { transition: none; } }

/* ------------------------------------------------------------ chapter frame (same on every chapter page) */
/* chapter head: the same frame on every chapter. Desktop: title and intro left, drawing right (70 % of the screen);
   phone: drawing on top, title and intro below. The drawing draws itself once (Strich: z.einmal). */
.kapitel-kopf { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 4vw; align-items: center; padding: 110px var(--rand) var(--s8); min-height: 78vh; }
.kopf-text { align-self: center; padding-bottom: var(--s5); }
.kopf-bild { position: relative; height: 70vh; height: 70svh; min-height: 380px; max-height: 760px; }
.kopf-bild > .strich { position: absolute; inset: 0; }
/* a section of the start scene: the soil fades into the paper at both sides */
.kopf-bild.ausschnitt { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%); }
.kapitel-kopf h1 { font-family: var(--grotesk); font-weight: 500; font-size: clamp(40px, 5.2vw, 76px); letter-spacing: -0.03em; line-height: 1.02; max-width: 12ch; }
.kapitel-kopf p { margin-top: var(--s5); max-width: var(--spalte); font-size: 22px; line-height: 1.5; }
.schritte { list-style: none; }
.schritt { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 5vw; padding: 0 var(--rand); min-height: 170vh; }
.schritt-bild { position: sticky; top: 9vh; height: 82vh; align-self: start; }
.schritt-bild .strich { position: absolute; inset: 0; }
.schritt-text { padding-top: 46vh; padding-bottom: 40vh; max-width: var(--spalte); }
.schritt-text h2 { font-family: var(--grotesk); font-weight: 500; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.02em; line-height: 1.12; }
.schritt-text p { margin-top: var(--s4); }
.schritt-text .tun { margin-top: var(--s5); font-style: italic; color: var(--leise); }
.kapitel-ende { padding: var(--s9) var(--rand) var(--s8); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 5vw; }
.kapitel-ende .strich { height: 200px; }
.kapitel-ende a { font-family: var(--grotesk); font-size: 22px; text-decoration: none; }
.kapitel-ende a span { color: var(--leise); display: block; font-size: 15px; margin-bottom: 6px; }
.kapitel-ende .ende-finder { margin-top: var(--s6); font-size: 17px; color: var(--leise); }
.kapitel-ende .ende-finder a { font-family: var(--serif); font-size: inherit; color: var(--tusche); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .kapitel-kopf { grid-template-columns: 1fr; padding-top: 128px; min-height: 0; }
  .kopf-bild { order: -1; height: min(80vw, 48vh); height: min(80vw, 48svh); min-height: 240px; margin: 0 calc(-1 * var(--rand)) var(--s4); }
  .kopf-text { padding-bottom: 0; }
  .kapitel-kopf p { font-size: 20px; }
  .schritt { grid-template-columns: 1fr; min-height: 0; padding: 0; }
  .schritt-bild { top: 0; height: 52vh; height: 52svh; z-index: 1; background: var(--grund) var(--strich-papier, none) repeat; background-size: var(--strich-papier-groesse, auto); background-attachment: fixed; }
  .schritt-text { padding: var(--s6) var(--rand) 70vh; }
  .kapitel-ende { grid-template-columns: 1fr; }
}

/* a step whose drawing has a drag: its stops follow the scrolling (engine: zieh), the engine gives the step the scroll
   length it needs (a quarter of the screen per stop) as --halte-zusatz */
.schritt.hat-halte .schritt-text::after { content: ""; display: block; height: var(--halte-zusatz, 0px); }
/* reduced motion: no drawing that stays while the text moves; the drawing shows its end state */
@media (prefers-reduced-motion: reduce) { .schritt-bild { position: relative; top: auto; } }

/* ------------------------------------------------------------ shared by all chapters */
/* the large chapter drawing below the chapter title */
.kapitel-zeichnung { position: relative; margin: var(--s7) calc(-1 * var(--rand)) 0; height: clamp(300px, 44vw, 66vh); }
.kapitel-zeichnung > .strich { position: absolute; inset: 0; }
/* sources of a page and the approval note */
.quellen { padding: var(--s8) var(--rand) var(--s6); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 5vw; }
.quellen > * { grid-column: 2; max-width: var(--spalte); }
.quellen h2 { font-family: var(--grotesk); font-weight: 500; font-size: 15px; color: var(--leise); }
.quellen ul { list-style: none; margin-top: var(--s3); font-size: 15.5px; line-height: 1.5; color: var(--leise); }
.quellen li + li { margin-top: var(--s2); }
.quellen .vermerk { margin-top: var(--s5); font-style: italic; font-size: 15.5px; color: var(--leise); }
@media (max-width: 760px) {
  .kapitel-zeichnung { height: 64vw; margin-top: var(--s6); }
  .quellen { grid-template-columns: 1fr; }
  .quellen > * { grid-column: 1; }
}

/* the drag shows itself once (engine: zieh vorfuehren); afterwards a quiet word at the grip, gone at the first own drag */
.strich-zieh-hinweis { position: absolute; bottom: calc(50% + 12px); left: 0; transform: translate(-100%, 0); margin-left: -8px; font-family: var(--serif); font-style: italic; font-size: 15.5px; line-height: 1; color: var(--leise); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.6s ease; }
.strich-zieh-hinweis.an { opacity: 1; }
@media (max-width: 760px) { .strich-zieh-hinweis { font-size: 14.5px; } }
@media (prefers-reduced-motion: reduce) { .strich-zieh-hinweis { transition: none; } }
