/* Werkbuch. Portfolio Aleks Paramonov. Stand November 2026.
   Papier, Tinte, ein Gruenstift. Mobil zuerst, ab 700 px acht Spalten, ab 1024 px zwoelf.

   Inhalt
   01 Schriften und Ersatzschriften   07 Fallstudie: Kopf           13 Balken, Zettel, Wort
   02 Werte (Farben, Masse)           08 Abzug (ein Rahmen)         14 Ende einer Fallstudie, Schlussblock
   03 Grundlagen                      09 Buehne und Video           15 (frei, Kacheln seit Runde 4 entfernt)
   04 Raster                          10 Stiftmarken                16 Schlussabschnitte
   05 Leiste                          11 Punkte und Bildreihen      17 Lupe (Dialog)
   06 Kopf                            12 Vergleich und Ablauf       18 Unterseiten, Druck

   Feste Rollen der Schriften (nicht aendern):
   Archivo schmal  nur Titel und Ziffern          (--f-plakat)
   Archivo breit   nur kleine Etiketten und Knoepfe (--f-etikett)
   Newsreader      nur Lesetext, Bildunterschriften und gruene Stiftnotizen (--f-text)
   Seit Runde 4 (G6) gibt es keine Handschrift mehr: Notizen stehen in Newsreader halbfett und gruen.

   Hover (G9): Jede :hover-Regel steht in @media (hover: hover) and (pointer: fine).
   Auf Touch-Geraeten bleibt so kein Hover-Zustand nach dem Tippen haengen. :active bleibt ausserhalb.

   Schatten-Regel: Die Schraffur gehoert nur der Buehne und dem Zettel mit Zahlen.
   Alle anderen Abzuege tragen nur den 2-px-Rahmen. Knoepfe haben eine Tintenkante,
   nur der Hauptknopf eine gruene.
*/

/* ============================================================
   01 Schriften
   ============================================================ */
@font-face {
  font-family: "Archivo Schmal";
  src: url("../assets/fonts/archivo-schmal-900.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo Breit";
  src: url("../assets/fonts/archivo-breit-700.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/newsreader-text.woff2") format("woff2");
  font-weight: 400 650; font-style: normal; font-display: swap;
}
/* Ersatzschriften mit angepasster Laufweite. Die Werte stammen aus werkzeug/schriften.py
   und sind etwas kleiner gewaehlt als gemessen, damit kein Titel abgeschnitten wird,
   solange die Webschrift noch laedt oder wenn sie fehlt. */
@font-face {
  font-family: "Plakat Ersatz A";
  src: local("Impact");
  size-adjust: 84%; ascent-override: 104%; descent-override: 25%; line-gap-override: 0%;
}
@font-face {
  font-family: "Plakat Ersatz B";
  src: local("Arial Narrow Bold"), local("ArialNarrow-Bold");
  font-weight: 400 900;
  size-adjust: 88%; ascent-override: 100%; descent-override: 24%; line-gap-override: 0%;
}
@font-face {
  font-family: "Plakat Ersatz C";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"),
       local("Helvetica Bold"), local("Helvetica-Bold"), local("Roboto Bold"), local("Roboto-Bold"),
       local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Noto Sans Bold"), local("NotoSans-Bold");
  font-weight: 400 900;
  size-adjust: 70%; ascent-override: 124%; descent-override: 30%; line-gap-override: 0%;
}
@font-face {
  font-family: "Etikett Ersatz A";
  src: local("Verdana Bold"), local("Verdana-Bold");
  font-weight: 400 900;
  size-adjust: 93%; ascent-override: 94%; descent-override: 23%; line-gap-override: 0%;
}
@font-face {
  font-family: "Etikett Ersatz B";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"),
       local("Roboto Bold"), local("Roboto-Bold"), local("Liberation Sans Bold"), local("LiberationSans-Bold");
  font-weight: 400 900;
  size-adjust: 110%; ascent-override: 80%; descent-override: 19%; line-gap-override: 0%;
}
@font-face {
  font-family: "Text Ersatz A";
  src: local("Georgia");
  size-adjust: 96%; ascent-override: 77%; descent-override: 28%; line-gap-override: 0%;
}
@font-face {
  font-family: "Text Ersatz B";
  src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"), local("Noto Serif");
  size-adjust: 105%; ascent-override: 70%; descent-override: 25%; line-gap-override: 0%;
}

/* ============================================================
   02 Werte
   ============================================================ */
:root {
  /* Farben */
  --papier: #F2F2EC;       /* Grund der Seite */
  --zettel: #FCFCF8;       /* Rand der Abzuege, Zettel, leise Knoepfe */
  --tinte: #0D1A2D;        /* Schrift, Linien, Schraffur */
  --tinte-2: #414B5C;      /* Bildunterschriften: 7,8 zu 1 auf Papier */
  --gruen: #0F9A4C;        /* Flaechen, grosse Ziffern, Stiftstriche. Auf Papier nur fuer Grosses (3,25 zu 1). Tinte darauf: 4,8 zu 1 */
  --gruen-tief: #086B37;   /* gruene Schrift auf Papier: Notizen, kleine Ziffern (5,9 zu 1) */
  --gruen-hell: #37D886;   /* nur auf Tinte: Punkt im Etikett live, Linien im Kontaktfeld */
  --linie: rgba(13, 26, 45, .24);

  /* Schriften */
  --f-plakat: "Archivo Schmal", "Plakat Ersatz A", "Plakat Ersatz B", "Plakat Ersatz C", "Arial Narrow", sans-serif;
  --f-etikett: "Archivo Breit", "Etikett Ersatz A", "Etikett Ersatz B", Verdana, Arial, sans-serif;
  --f-text: "Newsreader", "Text Ersatz A", "Text Ersatz B", Georgia, "Times New Roman", serif;

  /* Schriftgroessen. Nichts auf der Seite ist kleiner als 12 px (.75rem). */
  --t-etikett: .75rem;
  --t-etikett-gross: .8125rem;
  --t-klein: .9375rem;
  --t-text: 1.125rem;
  --t-vorspann: clamp(1.3rem, 1.02rem + 1.25vw, 1.8rem);
  --t-punkt: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem);
  --t-rubrik: clamp(3rem, 1.9rem + 5vw, 5.4rem);
  --t-hand: 1.3rem;          /* gruene Notizen (.abzug__notiz, .hand), auf allen Breiten gleich */

  /* Abstaende */
  --a1: 4px; --a2: 8px; --a3: 12px; --a4: 16px; --a5: 24px; --a6: 32px; --a7: 48px; --a8: 64px; --a9: 96px; --a10: 128px;
  --rand: 16px;
  --leiste-h: 48px;
  --abschnitt: 72px;         /* Abstand zwischen grossen Bloecken */
  --projekt-luft: 28px;      /* Luft ueber dem Kopf einer Fallstudie (unter der Leiste) */

  /* Abzug: ein Rahmen fuer alle Medien */
  --passepartout: 6px;       /* heller Rand */
  --schatten: 8px;           /* Versatz der Schraffur (nur Buehne und Zahlen-Zettel) */
  --schraffur: repeating-linear-gradient(-45deg, var(--tinte) 0 1.6px, transparent 1.6px 5px);
  --winkel: polygon(calc(100% - var(--schatten)) 0, 100% 0, 100% 100%, 0 100%, 0 calc(100% - var(--schatten)), calc(100% - var(--schatten)) calc(100% - var(--schatten)));

  /* Knopf: volle Kante */
  --kante: 4px 4px 0 var(--tinte);

  /* Pfeile fuer den Ablauf (Tinte) */
  --pfeil-unten: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 26'%3E%3Cpath d='M7 1.5v21M1.8 17.2 7 22.6l5.2-5.4' fill='none' stroke='%230D1A2D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --pfeil-rechts: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 14'%3E%3Cpath d='M2 7h25M21.6 1.8 27 7l-5.4 5.2' fill='none' stroke='%230D1A2D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  color-scheme: light;
}

/* ============================================================
   03 Grundlagen
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  /* Weiches Scrollen setzt werkbuch.js erst nach dem Laden (Runde 5, B5): Der Rueckweg index.html#<key>
     springt so sofort auf die Karte, statt animiert ueber die ganze Startseite zu laufen. */
  scroll-padding-top: calc(var(--leiste-h) + 12px);
}

body {
  margin: 0;
  background-color: var(--papier);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .05 0 0 0 0 .1 0 0 0 0 .18 0 0 0 .18 -.06'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23k)'/%3E%3C/svg%3E");
  color: var(--tinte);
  font-family: var(--f-text);
  font-size: var(--t-text);
  line-height: 1.5;
  font-synthesis: none;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}

main { display: block; overflow-x: clip; }

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
p, h1, h2, h3, h4, figure, dl, dd, ol, ul, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
strong, b { font-weight: 650; }
em { font-style: normal; font-weight: 600; }

a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; text-decoration-color: var(--gruen); }
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-thickness: 4px; }
}

/* Fokus: zweifarbiger Ring, sichtbar auf Papier, Gruen und dunklem Video */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 3px solid var(--tinte);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--zettel), 0 0 0 8px var(--tinte);
  border-radius: 1px;
}

.unsichtbar {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.sprung {
  position: absolute; left: 16px; top: -90px; z-index: 60;
  background: var(--tinte); color: var(--papier);
  font-family: var(--f-etikett); font-size: var(--t-etikett-gross); padding: 14px 18px;
  text-decoration: none;
}
.sprung:focus { top: 8px; }

/* Schriftrollen als Klassen (fuer eigene Abschnitte) */
.plakat { font-family: var(--f-plakat); font-weight: 900; line-height: .86; letter-spacing: -.012em; }
.etikett { font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett); line-height: 1.3; letter-spacing: .01em; }
.hand { font-family: var(--f-text); font-weight: 600; font-size: var(--t-hand); line-height: 1.2; color: var(--gruen-tief); }
.vorspann { font-size: var(--t-vorspann); line-height: 1.27; font-weight: 500; text-wrap: pretty; }

/* Rubrik: kleine Zwischenueberschrift (Was es ist, Technik, Zum Nachpruefen ...) */
.rubrik {
  font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett-gross); line-height: 1.3; letter-spacing: .01em;
  border-top: 3px solid var(--tinte); padding-top: 10px; margin-bottom: 10px;
}

/* Plakatschrift: Archivo schmal setzt enge Wortabstaende. Etwas mehr Luft zwischen den Woertern.
   Unter 2rem kein negativer Buchstabenabstand. */
.plakat, .kopf__name, .kopf__fakten dd, .lage__name, .projekt__titel, .beleg__text > :is(h3, h4), .punkt > :is(h3, h4),
.leitsatz span, .schritte b, .abschnitt__titel, .zeitleiste dt, .kontakt__wege a,
.leiste__marke, .leiste__projekt, .vergleich dd { word-spacing: .12em; }
.kopf__fakten dd, .lage__name, .zeitleiste dt, .schritte b, .leiste__marke, .leiste__projekt, .vergleich dd { letter-spacing: 0; }

/* Text-Abstaende nach WCAG 1.4.12: grosse Woerter duerfen umbrechen, statt aus dem Bild zu laufen */
.kopf__name, .leitsatz span, .projekt__titel, .abschnitt__titel, .punkte__titel, .kontakt__wege a { overflow-wrap: anywhere; }
.kontakt__wege a { max-width: 100%; }

/* Knoepfe: ein Hauptknopf in Tinte mit gruener Kante, alle anderen leiser mit Tintenkante */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 10px 18px;
  border: 2px solid var(--tinte);
  background: var(--zettel); color: var(--tinte);
  box-shadow: var(--kante);
  font-family: var(--f-etikett); font-weight: 700; font-size: .875rem; line-height: 1.15;
  text-decoration: none; text-align: center;
  transition: translate .12s ease, box-shadow .12s ease;
}
.knopf--haupt { background: var(--tinte); color: var(--zettel); box-shadow: 4px 4px 0 var(--gruen); }
@media (hover: hover) and (pointer: fine) {
  .knopf:hover { translate: -2px -2px; box-shadow: 6px 6px 0 var(--tinte); }
  .knopf--haupt:hover { box-shadow: 6px 6px 0 var(--gruen); }
}
.knopf:active { translate: 2px 2px; box-shadow: 2px 2px 0 var(--tinte); }
.knopf:focus-visible { box-shadow: 0 0 0 5px var(--zettel), 0 0 0 8px var(--tinte); }
.knopf--klein { min-height: 44px; padding: 8px 14px; font-size: var(--t-etikett-gross); }
.knopf[href^="http"]::after { content: "\2197"; content: "\2197" / ""; font-size: 1.1em; line-height: 1; }

/* Stand: jede Form steht fuer einen Zustand, nie nur die Farbe */
.stand {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett); line-height: 1.25; letter-spacing: .01em;
}
.stand::before {
  content: ""; flex: none; width: .82em; height: .82em; border-radius: 50%;
  background: currentColor;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.stand--test::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); box-shadow: inset 0 0 0 2px currentColor; }
.stand--bau::before { background: none; box-shadow: inset 0 0 0 2px currentColor; }
.stand--versuch::before { border-radius: 1px; }
.stand--pille { border: 2px solid var(--tinte); border-radius: 99px; padding: .34em .85em .36em .7em; }
.stand--pille.stand--live { background: var(--tinte); color: var(--zettel); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.stand--pille.stand--live::before { background: var(--gruen-hell); }

/* ============================================================
   04 Raster
   ============================================================ */
.blatt {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-inline: var(--rand);
}

/* ============================================================
   05 Leiste: laeuft auf jeder Seite oben mit
   Startseite:  .leiste__marke, .leiste__wege (vier Links auf Abschnitte), .leiste__pdf
   Fallstudie:  .leiste--fall mit .leiste__marke (ab 1024 px), .leiste__zurueck, .leiste__projekt,
                .leiste__weiter, .leiste__kontakt (ab 1024 px), .leiste__pdf
   Das Script markiert auf der Startseite den Abschnitt, in dem man liest (aria-current),
   und fuellt auf jeder Seite den gruenen Fortschrittsstrich.
   Am Handy (unter 700 px) steht der Lebenslauf als Feld wie die Wege, ohne Knopfkante:
   Startseite  Projekte | Ueber mich | Kontakt | Lebenslauf
   Fallstudie  <- Projekte | N |        Weiter -> | Lebenslauf
   Die Reihenfolge im Bild ist die Reihenfolge im HTML (Tab-Taste, Screenreader, G8).
   Ab 700 px ist der Lebenslauf ein kleiner Knopf rechts.
   ============================================================ */
.leiste {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: stretch;
  min-height: var(--leiste-h);
  background: var(--papier);
  border-bottom: 2px solid var(--tinte);
  font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett); line-height: 1.15;
}
.leiste__innen { display: contents; }
.leiste a { color: var(--tinte); text-decoration: none; }
.leiste a:focus-visible { outline-offset: -5px; box-shadow: inset 0 0 0 2px var(--zettel); }
.leiste__marke, .leiste__kontakt { display: none; }
/* Zusatz eines Wegs ("Alle", ": Name", " (PDF)") und Name des Projekts: sichtbar erst ab 700 px.
   Darunter bleiben sie fuer Screenreader im Namen des Links (G8): "Weiter: Outava", "Lebenslauf (PDF)".
   Immer ein ganzes Wort mit Leerzeichen davor, damit der sichtbare Text am Anfang des Namens steht. */
@media (max-width: 699.98px) {
  .leiste__lang, .leiste__projekt span {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  /* "Alle" vor "Projekte" faellt ganz weg: es nennt kein anderes Ziel, und der Name beginnt so mit dem sichtbaren Wort */
  .leiste__zurueck .leiste__lang { display: none; }
}

/* Startseite am Handy: vier gleich breite Felder ueber die ganze Breite (drei Wege und der Lebenslauf) */
.leiste__wege { flex: 3 1 0; min-width: 0; display: flex; margin: 0; padding: 0; list-style: none; font-size: 0; }
.leiste__wege > ul, .leiste__wege > ol { flex: 1 1 auto; min-width: 0; display: flex; }
.leiste__wege li { flex: 1 1 0; min-width: 0; display: flex; }
.leiste__wege li + li, .leiste__wege > a + a { border-left: 1px solid var(--linie); }
.leiste__wege a, .leiste .leiste__pdf {
  flex: 1 1 0; min-width: 0; min-height: 44px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 4px 3px;
  font-size: var(--t-etikett); line-height: 1.1;
  hyphens: manual; overflow-wrap: normal;
}
.leiste__wege .leiste__breit { display: none; }
@media (hover: hover) and (pointer: fine) {
  .leiste__wege a:hover, .leiste .leiste__pdf:hover { text-decoration: underline; text-decoration-color: var(--gruen); text-decoration-thickness: 3px; text-underline-offset: .3em; }
}
.leiste__wege a[aria-current] { background: var(--tinte); color: var(--zettel); text-decoration: none; }
.leiste .leiste__pdf { border-left: 1px solid var(--linie); white-space: nowrap; }

/* Fallstudie am Handy: links zurueck und Ziffer, rechts weiter und Lebenslauf */
.leiste--fall { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; padding-inline: var(--rand); }
.leiste--fall .leiste__innen > * { grid-row: 1; }
/* display: block, damit die Leerzeichen zwischen Pfeil und Wort bleiben (in flex fallen sie weg) */
.leiste__zurueck, .leiste__weiter, .leiste__kontakt { align-self: center; line-height: 44px; white-space: nowrap; }
.leiste__zurueck, .leiste__weiter { display: block; }
.leiste__zurueck { grid-column: 1; padding-right: 12px; }
.leiste__weiter { grid-column: 3; justify-self: end; padding-inline: 12px; }
@media (hover: hover) and (pointer: fine) {
  .leiste__zurueck:hover, .leiste__weiter:hover, .leiste__kontakt:hover { text-decoration: underline; text-decoration-color: var(--gruen); text-decoration-thickness: 3px; text-underline-offset: .3em; }
}
.leiste__projekt {
  grid-column: 2; align-self: center; min-width: 0;
  padding: 0 12px; border-left: 1px solid var(--linie); border-right: 1px solid var(--linie);
  font-family: var(--f-plakat); font-weight: 900; font-size: 1.05rem; line-height: 44px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.leiste__projekt b { font-weight: 900; color: var(--gruen-tief); }
.leiste--fall .leiste__pdf { grid-column: 4; align-self: stretch; padding-inline: 12px 0; border-left: 1px solid var(--linie); }

/* Fortschritt: Anteil der Seite, der schon gelesen ist */
.leiste__fortschritt { position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; pointer-events: none; }
.leiste__fortschritt span { display: block; height: 100%; background: var(--gruen); transform-origin: left center; transform: scaleX(var(--fortschritt, 0)); }

/* ============================================================
   06 Kopf
   ============================================================ */

.kopf.blatt {
  grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
  column-gap: 14px;
  padding-top: 10px; padding-bottom: 40px;
}
.kopf > * { grid-column: 1 / -1; }

.kopf__namefeld { container-type: inline-size; }
.kopf__name {
  font-family: var(--f-plakat); font-weight: 900; letter-spacing: -.012em;
  font-size: 25cqi; line-height: .8;
}
.kopf__name span { display: block; }

.kopf__rolle { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; }
.kopf__beruf {
  background: var(--gruen); color: var(--tinte);
  font-family: var(--f-etikett); font-weight: 700; font-size: 1.2rem; line-height: 1.1;
  padding: .26em .5em .3em;
  rotate: -1.5deg;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.kopf__ort {
  font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett-gross); line-height: 1.1;
  border: 2px solid var(--tinte); padding: .42em .7em;
}
.kopf__zusatz { flex-basis: 100%; font-size: .9375rem; line-height: 1.3; font-weight: 500; }

/* Portraet */
.kopf__portrait {
  grid-column: 1; align-self: start;
  margin: 14px 0 0 8px;
  border: 2px solid var(--tinte);
  box-shadow: -8px 8px 0 var(--gruen);     /* der gruene Block gehoert allein dem Portraet */
  rotate: -2deg;
  background: var(--tinte);
}
.kopf__portrait img { width: 100%; aspect-ratio: 435 / 580; object-fit: cover; }

.kopf__satz { font-size: 1.125rem; line-height: 1.3; font-weight: 500; margin-top: 16px; text-wrap: pretty; }

.kopf__fakten {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px;
  margin-top: 14px; border-top: 3px solid var(--tinte);
}
.kopf__fakten > div { padding: 7px 0 8px; border-bottom: 1px solid var(--linie); }
.kopf__fakten dt { font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett); line-height: 1.3; letter-spacing: .01em; }
.kopf__fakten dd { font-family: var(--f-plakat); font-weight: 900; font-size: 1.26rem; line-height: 1.02; margin-top: 3px; }

.kopf__knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.kopf__knoepfe .knopf--haupt { flex: 1 1 100%; }
.kopf__knoepfe .knopf { flex: 1 1 auto; }

/* Lagebild: sieben Projekte und ihr Stand */
.lage { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; margin-top: 28px; border-top: 3px solid var(--tinte); }
.lage li { border-bottom: 1px solid var(--linie); }
.lage a {
  display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); column-gap: 8px; align-items: center;
  min-height: 56px; padding: 7px 0; text-decoration: none;
}
.lage__nr { grid-row: 1 / span 2; font-family: var(--f-plakat); font-weight: 900; font-size: 2.3rem; line-height: .8; color: var(--gruen-tief); }
.lage__name { font-family: var(--f-plakat); font-weight: 900; font-size: clamp(1rem, 5vw, 1.2rem); line-height: 1; hyphens: manual; }
.lage .stand { font-size: var(--t-etikett); }
@media (hover: hover) and (pointer: fine) {
  .lage a:hover .lage__name { text-decoration: underline; text-decoration-color: var(--gruen); text-decoration-thickness: 3px; text-underline-offset: .12em; }
}

/* ============================================================
   07 Fallstudie: Kapitelzeile, Ziffer, Titel, Steckbrief
   Reihen im Kopf: 1 Kapitelzeile, 2 bis 4 Ziffer neben Titel, Kurzzeile und Knoepfen,
   danach in der Reihenfolge des HTML: Steckbrief, Buehne (oder Reihe mit zwei Abzuegen), Zettel.
   ============================================================ */
.projekt { padding-top: var(--projekt-luft); }

.projekt__kopf.blatt { grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: end; }
.projekt__kopf > * { grid-column: 1 / -1; }

/* "Projekt 3 von 7" mit einer Linie bis zum Rand */
.kapitelzeile {
  grid-column: 1 / -1; grid-row: 1;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
  font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett-gross); line-height: 1.3; letter-spacing: .01em;
}
.kapitelzeile::after { content: ""; flex: 1 1 auto; height: 2px; background: var(--tinte); }
/* Name in der Kapitelzeile (Runde 5, B6; ab 1024 px aus, siehe unten). Unter 375 px passt "Projekt 3 von 7 · Aleks Paramonov"
   nicht mehr neben die Linie, sie fiele weg. Dann bleibt die Linie hinter der Nummer, der Name steht allein
   in der zweiten Zeile, ohne Trennpunkt. */
@media (max-width: 374.98px) {
  .kapitelzeile { flex-wrap: wrap; row-gap: 2px; }
  .kapitelzeile > span { display: contents; }
  .kapitelzeile::after { order: 1; }
  .kapitelzeile__name { order: 2; flex-basis: 100%; }
  .kapitelzeile__trenner { display: none; }
}

.projekt__nr {
  grid-column: 1; grid-row: 2;
  font-family: var(--f-plakat); font-weight: 900; font-size: 7.6rem; line-height: .74; color: var(--gruen);
  margin: 0 0 -.02em -.03em;
}
.projekt__titelfeld { grid-column: 2; grid-row: 2; container-type: inline-size; min-width: 0; }
.projekt__titel {
  font-family: var(--f-plakat); font-weight: 900; letter-spacing: -.012em;
  /* --titel-em: Breite der laengsten Zeile in em. Werte je Projekt stehen unten. */
  font-size: min(calc(93cqi / var(--titel-em-schmal, var(--titel-em, 4))), 5.4rem);
  line-height: .86; hyphens: manual;
}
.projekt__kurz { font-size: var(--t-vorspann); line-height: 1.24; font-weight: 500; margin-top: 16px; text-wrap: pretty; }
.projekt__tor { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
/* Jeder Status ist eine Pille mit Rahmen (G4). Nur "live" ist gefuellt. */

/* Breite der Titel in em (gemessen mit Archivo schmal 900). Zweite Zahl: laengste Zeile nach dem Umbruch am Handy. */
#zodiacally       { --titel-em: 3.63; }
#geschenkideen    { --titel-em: 8.72; --titel-em-schmal: 5.6; }
#proteinvergleich { --titel-em: 5.7;  --titel-em-schmal: 3.2; }
#outava           { --titel-em: 2.5; }
#hoerbuch         { --titel-em: 4.86; --titel-em-schmal: 3.13; }
#afuku            { --titel-em: 2.1; }
#agenten          { --titel-em: 8.31; --titel-em-schmal: 5.2; }

.steckbrief { margin-top: 26px; border-bottom: 2px solid var(--tinte); }
.steckbrief > div { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); column-gap: 10px; padding: 10px 0 11px; border-top: 1px solid var(--tinte); }
.steckbrief > div:first-child { border-top-width: 3px; }
.steckbrief dt { font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett); line-height: 1.3; padding-top: .28em; }
.steckbrief dd { font-size: 1rem; line-height: 1.4; }
.steckbrief a { overflow-wrap: anywhere; padding-block: 14px; margin-block: -14px; }   /* 44 px hoch zum Tippen, ohne die Zeile zu verschieben (G12) */
/* Am Handy: Etikett ueber der Angabe, Zeitraum und Online nebeneinander. Lange Angaben ("Mein Anteil")
   laufen so ueber die ganze Breite statt in einer schmalen Spalte neben dem Etikett.
   Steht unter "Online" eine Adresse, bekommt sie die ganze Breite und bricht nicht mitten im Wort (G5);
   "Zeitraum" steht dann ebenfalls allein in seiner Zeile. */
@media (max-width: 699.98px) {
  .steckbrief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .steckbrief > div { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); row-gap: 3px; padding: 9px 0 12px; align-content: start; }
  .steckbrief > div:nth-child(2), .steckbrief > div:nth-child(3) { grid-column: auto; }
  .steckbrief > div:nth-child(3):has(a), .steckbrief:has(> div:nth-child(3) a) > div:nth-child(2) { grid-column: 1 / -1; }
  .steckbrief dt { padding-top: 0; }
  .steckbrief a { overflow-wrap: normal; }
  /* Erst die Buehne, dann der Steckbrief (G7): Im ersten Bildschirm steht ein Bild des Produkts.
     Nur das Bild wandert, das HTML bleibt in seiner Reihenfolge (Steckbrief, Buehne, Was es tut). */
  .projekt__kopf > .steckbrief, .projekt__kopf > .zettel { order: 3; }
  .projekt__kopf > .einstieg__tut { order: 4; }
  /* Seit G7 folgt auf den Steckbrief immer ein Block mit eigener Linie oben ("Was es tut", Zettel oder der
     naechste Abschnitt). Die Linie unten entfaellt deshalb wie ab 700 px, sonst stehen zwei Linien uebereinander. */
  .projekt__kopf > .steckbrief { border-bottom: 0; }
}
.standliste li { display: grid; grid-template-columns: 1rem minmax(0, 1fr); column-gap: 8px; align-items: baseline; }
.standliste li + li { margin-top: 4px; }
.standliste li::before {
  content: ""; width: .7em; height: .7em; border-radius: 50%; background: var(--tinte); translate: 0 -.02em;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.standliste .stand--test::before { background: linear-gradient(90deg, var(--tinte) 50%, transparent 50%); box-shadow: inset 0 0 0 2px var(--tinte); }
.standliste .stand--bau::before { background: none; box-shadow: inset 0 0 0 2px var(--tinte); }
.standliste .stand--versuch::before { border-radius: 1px; }
.standliste li.stand { display: grid; font: inherit; letter-spacing: 0; gap: 0 8px; }

/* Zwei Abzuege als Buehne (Outava, Hoerbuch-Shop) und ein Zettel im Kopf */
.projekt__kopf > .abzugreihe { margin-top: 26px; }
.projekt__kopf > .zettel { margin-top: 26px; }

/* ============================================================
   08 Abzug: ein Rahmen fuer alle Medien
   ============================================================ */
.abzug { min-width: 0; }
.abzug__flaeche { position: relative; }
.abzug__rahmen {
  position: relative; isolation: isolate; display: block;
  border: 2px solid var(--tinte);
  padding: var(--passepartout);
  background: var(--zettel);
}
/* Schraffur als Schatten: nur die Buehne (und der Zettel mit Zahlen, Abschnitt 13) */
.abzug--buehne .abzug__rahmen { margin: 0 var(--schatten) var(--schatten) 0; }
.abzug--buehne .abzug__rahmen::after {
  content: ""; position: absolute; z-index: -1;
  left: calc(var(--schatten) - 2px); top: calc(var(--schatten) - 2px);
  right: calc(var(--schatten) * -1 - 2px); bottom: calc(var(--schatten) * -1 - 2px);
  background: var(--schraffur);
  clip-path: var(--winkel);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
/* Zeile am Rahmen: links Quelle, rechts ein Hinweis wie "gerenderte Vorschau" */
.abzug__kopf {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px;
  padding: 1px 2px 6px;
  font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett); line-height: 1.25; letter-spacing: .01em;
}
/* lange Adressen brechen bei 320 px um, statt aus dem Rahmen zu ragen */
.abzug__kopf span { min-width: 0; overflow-wrap: anywhere; }
.abzug__kopf span:last-child { text-align: right; }
.abzug__kopf span:only-child { text-align: left; }
.abzug__bild { display: block; position: relative; background: var(--tinte); }
.abzug__bild img { width: 100%; }
a.abzug__bild { cursor: zoom-in; }
a.abzug__bild:focus-visible { outline-offset: 3px; }

.abzug figcaption, .bildtext {
  font-size: var(--t-klein); line-height: 1.4; color: var(--tinte-2);
  margin-top: 14px; max-width: 46em;
}
.abzug figcaption b, .bildtext b {
  font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett); color: var(--tinte);
  margin-right: .6em; white-space: nowrap;
}

/* Groessen */
.abzug--hoch { max-width: 300px; }               /* Handy-Hochformat */
.abzug--klein { max-width: 30rem; }
.abzug--mitte { margin-inline: auto; }
.abzug__rahmen--klein { --passepartout: 4px; }   /* kleiner Abzug, zum Beispiel auf einer Karte */

/* ============================================================
   09 Buehne und Video
   ============================================================ */
/* Buehne: das eine grosse Medium einer Fallstudie. Steht im Kopf nach dem Steckbrief
   oder spaeter allein in einem .blatt. Am Handy fast randlos. */
.abzug--buehne { margin-top: 26px; }
.abzug--buehne .abzug__rahmen { margin-inline: calc(var(--rand) * -1 + 6px) calc(var(--rand) * -1 + 6px + var(--schatten)); }
.abzugreihe > .abzug--buehne { margin-top: 0; }
.abzugreihe > .abzug--buehne .abzug__rahmen { margin-inline: 0 var(--schatten); }
/* die Schraffur ragt unter den Rahmen: die Bildunterschrift haelt denselben Abstand wie bei jedem Abzug */
.abzug--buehne figcaption { margin-top: calc(14px + var(--schatten)); }

.clip { position: relative; display: block; background: var(--tinte); aspect-ratio: var(--ar, 16 / 10); overflow: hidden; }
.clip__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: transparent; }
/* Ohne JavaScript zeigt Chrome eigene Bedienelemente als Flaeche ueber dem Posterbild: dann nur Posterbild und Link "Video oeffnen" */
html:not(.js) .clip video { display: none; }
/* Knopf zum Abspielen und Anhalten. Das Script setzt ihn rechts in die Zeile am Rahmen (.abzug__kopf),
   damit er nie auf dem Bild liegt. Ohne diese Zeile steht er unten links im Bild.
   Ohne JavaScript steht dort der Link "Video oeffnen" (noscript). */
.clip__knopf {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: .6em;
  min-width: 44px; min-height: 44px; padding: 8px 14px;
  background: var(--zettel); color: var(--tinte);
  border: 2px solid var(--tinte); box-shadow: 0 0 0 2px var(--zettel);
  font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett-gross); line-height: 1;
  text-decoration: none; cursor: pointer;
}
/* Zeichen ohne Text (wird nicht vorgelesen): Dreieck zum Abspielen, zwei Balken waehrend das Video laeuft */
.clip__knopf::before {
  content: ""; flex: none; width: .62em; height: .74em;
  background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.clip__knopf[data-zustand="laeuft"]::before {
  width: .58em; clip-path: none;
  background: linear-gradient(90deg, currentColor 0 34%, transparent 34% 66%, currentColor 66%);
}
@media (hover: hover) and (pointer: fine) {
  .clip__knopf:hover { background: var(--gruen); }
}
.clip__knopf:focus-visible { outline: 3px solid var(--tinte); outline-offset: 2px; box-shadow: 0 0 0 5px var(--zettel), 0 0 0 8px var(--tinte); }
.clip__knopf[hidden] { display: none; }

/* In der Zeile am Rahmen: rechts, ohne Halo, je 4 px Luft zur Rahmenkante oben und rechts und zum Bild unten.
   Die Zeile waechst nur so weit wie noetig. */
.abzug__kopf:has(> .clip__knopf) { justify-content: flex-start; align-items: center; gap: 4px 16px; }
.abzug__kopf > .clip__knopf {
  position: static; flex: none;
  margin: calc(var(--passepartout) * -1 + 3px) calc(var(--passepartout) * -1 + 2px) -2px auto;
  min-height: 44px; padding: 0 12px;
  box-shadow: none; font-size: var(--t-etikett);
}
/* Ohne JavaScript: Der Link "Video oeffnen" (noscript im .clip) steht an derselben Stelle wie der Knopf,
   rechts in der Zeile am Rahmen. Die Zeile bekommt dafuer dieselbe Hoehe wie mit Knopf.
   :has(a.clip__knopf) trifft nur ohne Script, denn mit Script ist der Inhalt von noscript kein Element. */
.abzug__kopf:has(+ .clip a.clip__knopf) { min-height: calc(52px - var(--passepartout)); align-items: center; padding-right: 8.4rem; }
.clip:has(a.clip__knopf) { overflow: visible; }
.clip a.clip__knopf {
  left: auto; right: calc(4px - var(--passepartout)); bottom: calc(100% + 4px);
  padding: 0 12px; box-shadow: none; font-size: var(--t-etikett);
}
/* ein zweiter Hinweis in der Zeile (zum Beispiel "Wiedergabe") bleibt rechts, direkt vor dem Knopf */
.abzug__kopf:has(> .clip__knopf) > span + span { margin-left: auto; }
.abzug__kopf > span + span ~ .clip__knopf { margin-left: 0; }

/* ============================================================
   10 Stiftmarken: Kreis, Pfeil, Notiz. Hoechstens eine Marke je Abzug.
   ============================================================ */
.projekt { counter-reset: stift; }
.abzug[data-kreis] { counter-increment: stift; }

/* Notiz in Newsreader halbfett und gruen (G6, K4). Kreis und Pfeil bleiben der Stift. */
.abzug__notiz {
  font-family: var(--f-text); font-weight: 600; font-size: var(--t-hand); line-height: 1.2; color: var(--gruen-tief);
  margin: 12px 0 0; max-width: 17em; text-wrap: balance;
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: start;
}
/* Ziffer der Marke: verbindet Punkt im Bild, Ausschnitt und Notiz */
.abzug__notiz::before, .stift__punkt::before {
  content: counter(stift);
  display: grid; place-items: center;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%; background: var(--gruen-tief); color: var(--zettel);
  font-family: var(--f-etikett); font-weight: 700; font-size: .75rem; line-height: 1;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.abzug__notiz::before { margin-top: .15rem; }

.stift__kreis {
  position: absolute; overflow: visible; pointer-events: none; display: none;
  left: calc(var(--kx) * 1%); top: calc(var(--ky) * 1%); width: calc(var(--kw) * 1%); height: calc(var(--kh) * 1%);
}
.stift__kreis path, .stift__pfeil path {
  fill: none; stroke: var(--gruen); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.stift__pfeil { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; display: none; }
.stift__pfeil path { stroke: var(--gruen-tief); stroke-width: 3; }

/* Handy: nummerierter Punkt im Bild, darunter der vergroesserte Ausschnitt und die Notiz */
.stift__punkt {
  position: absolute; pointer-events: none;
  left: clamp(3px, calc(var(--kx) * 1% - 1.7rem), calc(100% - 1.7rem));
  top: calc((var(--ky) + var(--kh) / 2) * 1% - .75rem);
}
.stift__punkt::before { box-shadow: 0 0 0 2px var(--zettel); }
.abzug__ausschnitt {
  display: block; margin: 12px 0 0;
  border: 2px solid var(--gruen-tief); padding: 3px; background: var(--zettel);
}
.abzug--buehne .abzug__ausschnitt { margin-right: var(--schatten); }
.abzug__ausschnitt img { width: 100%; }

/* ============================================================
   11 Einstieg, Punkte und Bildreihen
   ============================================================ */
.einstieg { margin-top: 40px; row-gap: 28px; }
.einstieg__ist > p { font-size: var(--t-vorspann); line-height: 1.27; font-weight: 500; text-wrap: pretty; }
.einstieg__tut > p + p { margin-top: .7em; }

.woerter { margin-top: 22px; display: grid; row-gap: 8px; clear: both; }

/* Rubrik ueber den Punkten: klein wie "Was es ist". Die Punkttitel tragen die Groesse. */
.punkte { margin-top: var(--abschnitt); }
.punkte__titel { font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett-gross); line-height: 1.3; letter-spacing: .01em; }
.punkte__titel > span { grid-column: 1 / -1; display: block; border-top: 3px solid var(--tinte); padding-top: 10px; }
/* erster Punkt dicht unter der Rubrik (hoechstens 32 px) */
.punkte > .punkte__titel + * { margin-top: 22px; }

.beleg { margin-top: 44px; row-gap: 24px; }
.beleg__text > :is(h3, h4), .punkt > :is(h3, h4) {
  font-family: var(--f-plakat); font-weight: 900; letter-spacing: -.008em;
  font-size: var(--t-punkt); line-height: .96; text-wrap: balance;
  margin-bottom: .4em;
}
.beleg__nr, .punkt__nr {
  display: block; font-family: var(--f-plakat); font-weight: 900; font-size: 1.15em; line-height: .8; color: var(--gruen-tief); margin-bottom: .14em;
}
.beleg__text > p { max-width: 34em; }
.beleg__text > p + p { margin-top: .7em; }
.beleg__text > * + .balken, .beleg__text > * + .zettel, .beleg__text > * + .wort, .beleg__text > * + .vergleich, .beleg__text > * + .ablauf { margin-top: 22px; }

/* kurze Form: Punkte nebeneinander. Text, Zettel und Zeichnung eines Punkts stehen in .punkt__text (K2),
   damit die Titel einer Reihe ab 700 px unten buendig stehen (Abschnitt "Ab 700 px"). */
.punkte--kurz { margin-top: 44px; row-gap: 30px; }
.punkt > p, .punkt__text > p { max-width: 34em; }
.punkt > p + p, .punkt__text > p + p { margin-top: .7em; }
.punkt > * + :is(.zettel, .balken, .wort, .ablauf), .punkt__text > * + :is(.zettel, .balken, .wort, .ablauf) { margin-top: 20px; }

/* Leitsatz direkt unter der Rubrik, vor dem ersten Punkt (Feld "Leitsatz unter der Rubrik", Baukasten 6.6).
   Groesse wie ein Vorspann; die Punkte folgen mit weniger Luft als sonst unter der Rubrik. */
.punkte__leitsatz { max-width: 26em; font-size: var(--t-vorspann); line-height: 1.27; font-weight: 500; text-wrap: pretty; }
.punkte > .blatt:has(> .punkte__leitsatz) + :is(.punkte--kurz, .beleg) { margin-top: 36px; }

/* Reihe aus zwei bis vier Abzuegen */
.abzugreihe { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px var(--a5); align-items: start; }
.abzugreihe--hoch { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
.abzugreihe--hoch .abzug--hoch { max-width: none; }

/* Falten: am Handy bleiben nur die ersten Abzuege einer Reihe offen (data-falten="1" oder "2").
   Den Knopf setzt das Script. Ohne Script bleibt alles sichtbar. */
.falte__knopf { display: none; }
@media (max-width: 699.98px) {
  .abzugreihe.ist-gefaltet[data-falten="1"] > :nth-child(n+2),
  .abzugreihe.ist-gefaltet[data-falten="2"] > :nth-child(n+3) { display: none; }
  .falte__knopf { display: inline-flex; margin-top: 24px; cursor: pointer; }
  .falte__knopf::before { content: "+"; content: "+" / ""; font-size: 1.3em; line-height: .8; }
  .falte__knopf[aria-expanded="true"]::before { content: "\2212"; content: "\2212" / ""; }
}

/* ============================================================
   12 Vergleich und Ablauf
   ============================================================ */
/* Vergleich: zwei Spalten Text, zum Beispiel "Im Versuch" und "Im Plan". Am Handy untereinander. */
.vergleich { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 18px; margin-top: 28px; max-width: 64rem; }
.vergleich > div { border-top: 3px solid var(--tinte); padding-top: 10px; }
.vergleich dt { font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett-gross); line-height: 1.3; letter-spacing: .01em; }
.vergleich dd {
  margin-top: 8px;
  font-family: var(--f-plakat); font-weight: 900; font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.15rem); line-height: 1.02;
  text-wrap: balance;
}
.vergleich__fuss { margin-top: 14px; font-size: var(--t-klein); line-height: 1.4; color: var(--tinte-2); max-width: 40em; }

/* Ablauf: Kaesten mit Pfeilen. Untereinander, wenn wenig Platz ist; nebeneinander ab 40rem Breite. */
.aufbau, .beleg__text, .punkt, .punkt__text, .einstieg__ist, .einstieg__tut { container-type: inline-size; }
/* Ein Punkt mit .punkt__text ist ab 700 px ein Subgrid. Ein Container (layout containment) kann das nicht sein,
   deshalb misst dort .punkt__text die Breite fuer den Ablauf. */
.punkt:has(> .punkt__text) { container-type: normal; }
.ablauf {
  display: grid; grid-template-columns: minmax(0, 30rem); row-gap: 26px;
  margin-top: 18px; padding: 0; list-style: none;
}
.ablauf > li {
  position: relative;
  border: 2px solid var(--tinte); background: var(--zettel);
  padding: 9px 12px 10px;
  font-size: 1rem; line-height: 1.35; font-weight: 500;
}
.ablauf > li + li::before {
  content: ""; position: absolute; left: 20px; top: -28px; width: 14px; height: 26px;
  background: var(--pfeil-unten) center / 14px 26px no-repeat;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
@container (min-width: 40rem) {
  .ablauf { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 32px; row-gap: 0; }
  .ablauf > li + li::before { left: -33px; top: 50%; width: 30px; height: 14px; translate: 0 -50%; background-image: var(--pfeil-rechts); background-size: 30px 14px; }
}

/* ============================================================
   13 Balken, Zettel, Wort
   ============================================================ */
/* Balken: Zahlen als Zeichnung in Tinte und Gruen */
.balken { max-width: 34rem; }
.balken__titel { font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett); line-height: 1.35; color: var(--tinte); margin: 0 0 10px; }
.balken dl > div { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--linie); }
.balken dt { font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett); line-height: 1.25; }
.balken dd { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 3px; font-size: var(--t-klein); line-height: 1.25; }
.balken dd::before {
  content: ""; display: block; height: 18px; width: max(4px, calc(var(--wert) * 1%));
  background: var(--gruen); border: 2px solid var(--tinte);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.balken__mass dd::before { background: var(--schraffur); }
.balken__zahl { font-family: var(--f-plakat); font-weight: 900; font-size: 1.5rem; line-height: .9; margin-right: .2em; }
.balken__fuss { font-size: var(--t-klein); line-height: 1.4; color: var(--tinte-2); margin-top: 8px; border-top: 2px solid var(--tinte); padding-top: 8px; }

/* Zettel: Papier mit Rahmen. Nur der Zettel mit Zahlen (table.zahlen) traegt die Schraffur. */
.zettel {
  position: relative; isolation: isolate;
  background: var(--zettel); border: 2px solid var(--tinte);
  padding: 14px 16px 16px;
  max-width: 34rem;
}
/* eigene Regel, weil Browser ohne :has sonst die ganze Liste verwerfen */
.zettel:has(> .zahlen) { margin-right: var(--schatten); margin-bottom: var(--schatten); }
.zettel:has(> .zahlen)::after {
  content: ""; position: absolute; z-index: -1;
  left: calc(var(--schatten) - 2px); top: calc(var(--schatten) - 2px);
  right: calc(var(--schatten) * -1 - 2px); bottom: calc(var(--schatten) * -1 - 2px);
  background: var(--schraffur);
  clip-path: var(--winkel);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.zettel__titel { font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett-gross); line-height: 1.3; margin-bottom: 8px; }
.zettel li { position: relative; padding-left: 1.5em; font-size: 1rem; line-height: 1.4; }
.zettel li + li { margin-top: 7px; }
.zettel li::before { content: ""; position: absolute; left: 0; top: .32em; width: .72em; height: .72em; border: 2px solid var(--tinte); }
.zettel li b { font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett); margin-right: .4em; }

.zettel__fuss { font-size: var(--t-klein); line-height: 1.4; border-top: 2px solid var(--tinte); margin-top: 6px; padding-top: 10px; }

/* Zahlen: grosse Ziffern mit einer Zeile Erklaerung, meist auf einem Zettel */
.zahlen { border-collapse: collapse; width: 100%; }
.zahlen caption { text-align: left; font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett); line-height: 1.3; padding-bottom: 8px; }
.zahlen tr { border-top: 1px solid var(--linie); }
.zahlen th { font-family: var(--f-plakat); font-weight: 900; font-size: 2.5rem; line-height: .9; text-align: left; padding: 9px 14px 4px 0; vertical-align: baseline; white-space: nowrap; width: 1%; }
.zahlen td { font-size: 1rem; line-height: 1.3; font-weight: 500; padding: 9px 0 7px; vertical-align: baseline; }

/* Wort: ein Fachwort in einem halben Satz erklaert */
.wort { font-size: var(--t-klein); line-height: 1.4; color: var(--tinte-2); border-left: 3px solid var(--gruen); padding-left: 10px; max-width: 30em; }
.wort b { font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett); color: var(--tinte); margin-right: .5em; }

/* ============================================================
   14 Ende einer Fallstudie: Technik, Fuer Entwickler: Aufbau, Zum Nachpruefen, Schlussblock
   ============================================================ */
.projekt__ende { margin-top: var(--abschnitt); row-gap: 30px; }
.technik > p { font-size: 1.06rem; line-height: 1.45; }
.belege li { position: relative; padding-left: 1.3em; line-height: 1.42; }
.belege li + li { margin-top: 7px; }
.belege li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7em; height: 2px; background: var(--tinte); }
.belege a { overflow-wrap: anywhere; }

/* Fuer Entwickler: Aufbau. details ist ohne Script bedienbar. Knopf wie beim Falten. */
.aufbau { margin-top: 20px; }
.aufbau > summary {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 44px; padding: 8px 14px;
  border: 2px solid var(--tinte); background: var(--zettel); color: var(--tinte);
  box-shadow: var(--kante);
  font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett-gross); line-height: 1.15;
  cursor: pointer; list-style: none; user-select: none;
  transition: translate .12s ease, box-shadow .12s ease;
}
.aufbau > summary::-webkit-details-marker { display: none; }
.aufbau > summary::before { content: "+"; content: "+" / ""; font-size: 1.3em; line-height: .8; width: .6em; text-align: center; }
.aufbau[open] > summary::before { content: "\2212"; content: "\2212" / ""; }
@media (hover: hover) and (pointer: fine) {
  .aufbau > summary:hover { translate: -2px -2px; box-shadow: 6px 6px 0 var(--tinte); }
}
.aufbau > summary:active { translate: 2px 2px; box-shadow: 2px 2px 0 var(--tinte); }
.aufbau > summary:focus-visible { box-shadow: 0 0 0 5px var(--zettel), 0 0 0 8px var(--tinte); }
.aufbau[open] > summary { margin-bottom: 8px; }
.aufbau > p { margin-top: 14px; font-size: var(--t-klein); line-height: 1.45; max-width: 34em; }

/* Schlussblock (K1): Uebergang zum naechsten Projekt, darunter der Weg zum Gespraech.
   Kapitelzeile wie oben auf der Fallstudie, dann ein Link mit gruener Ziffer, Name in Plakatschrift,
   Kurzzeile und (ab 1024 px) dem Kartenbild als Abzug rechts. Darunter die E-Mail-Adresse als Text,
   dann leise "Alle Projekte" und "Lebenslauf als PDF". Nach Projekt 7: nur der Name ("Ueber mich und Kontakt"). */
.fall-ende.blatt { margin-top: var(--abschnitt); }
.fall-ende__kapitel {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-family: var(--f-etikett); font-weight: 700; line-height: 1.3;
}
.fall-ende__kapitel::after { content: ""; flex: 1 1 auto; height: 2px; background: var(--tinte); }

.fall-ende__naechstes {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: start;
  padding-bottom: 24px; border-bottom: 1px solid var(--linie);
  color: var(--tinte); text-decoration: none;
}
/* Groesse wie eine Rubrik, am Handy hoechstens so gross, dass der laengste Name ("Proteinvergleich", 5,7 em)
   mit Ziffer und Pfeil in eine Zeile passt (zusammen rund 7 em) */
.fall-ende__ziffer, .fall-ende__name {
  grid-row: 1; font-family: var(--f-plakat); font-weight: 900; line-height: .86;
  font-size: min(var(--t-rubrik), calc((100vw - 2 * var(--rand) - 14px) / 7));
}
.fall-ende__ziffer { grid-column: 1; color: var(--gruen); line-height: .8; margin-left: -.03em; }
.fall-ende__name {
  grid-column: 2; letter-spacing: -.012em; word-spacing: .12em; overflow-wrap: anywhere; hyphens: manual;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: .06em; text-underline-offset: .1em;
  text-decoration-skip-ink: none; transition: text-decoration-color .15s ease;
}
/* ohne Ziffer (nach Projekt 7) beginnt der Name am linken Rand */
.fall-ende__name:first-child { grid-column: 1 / -1; }
/* Pfeil mit geschuetztem Leerzeichen davor: er bricht nie allein in die naechste Zeile */
.fall-ende__name::after { content: "\a0\2192"; content: "\a0\2192" / ""; color: var(--gruen-tief); font-size: .62em; vertical-align: .2em; }
.fall-ende__kurz {
  grid-column: 2; grid-row: 2; margin-top: 12px; max-width: 26em;
  font-size: var(--t-vorspann); line-height: 1.27; font-weight: 500; text-wrap: pretty;
}
.fall-ende__bild { display: none; }
@media (hover: hover) and (pointer: fine) {
  .fall-ende__naechstes:hover .fall-ende__name { text-decoration-color: var(--gruen); }
}
.fall-ende__naechstes:focus-visible { outline-offset: 8px; }

/* Weg zum Gespraech (G3, K3): Etikett "E-Mail", darunter die Adresse in Lesetext, daneben "Adresse kopieren"
   (nur mit Zwischenablage). Die groesste Schrift am Ende gehoert dem naechsten Projekt, nicht der Adresse. */
.fall-ende__kontakt { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin-top: 14px; }
.fall-ende__kontakt > .kontakt__art { flex: 0 0 100%; color: var(--tinte); }
.fall-ende__kontakt > a {
  display: inline-flex; align-items: center; min-height: 48px; max-width: 100%;
  font-family: var(--f-text); font-weight: 500; font-size: var(--t-vorspann); letter-spacing: 0; line-height: 1.2;
  overflow-wrap: anywhere;
}
.knopf[hidden] { display: none; }
.fall-ende .kontakt__meldung { font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett); line-height: 1.3; color: var(--gruen-tief); }
.fall-ende .kontakt__meldung:empty { display: none; }
/* Am Handy oeffnet die Adresse direkt das Mailprogramm. "Adresse kopieren" steht dort nur im Kontakt der Startseite. */
@media (max-width: 699.98px) {
  .fall-ende .kontakt__kopieren, .fall-ende .kontakt__meldung { display: none; }
}
.fall-ende__wege {
  display: flex; flex-wrap: wrap; gap: 0 26px; margin-top: 2px;
  font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett-gross); line-height: 1.3;
}
.fall-ende__wege a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tinte-2); text-decoration-thickness: 1px; text-underline-offset: .3em; }
@media (hover: hover) and (pointer: fine) {
  .fall-ende__wege a:hover { color: var(--tinte); text-decoration-thickness: 2px; }
}

/* Fuss der Fallstudie: vom Schlussblock abgesetzt, Links leise */
body.fallstudie .fuss.blatt { border-top: 1px solid var(--linie); margin-top: 56px; }
.fuss__links a { color: var(--tinte-2); text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) {
  .fuss__links a:hover { color: var(--tinte); text-decoration-thickness: 2px; }
}

/* 15: Platzhalter, Kacheln und "Ausserdem" sind seit Runde 4 entfernt (G12). Keine Seite nutzt sie mehr. */

/* ============================================================
   16 Schlussabschnitte
   ============================================================ */
/* So arbeite ich: gruenes Feld */
.arbeit { background: var(--gruen); margin-top: var(--abschnitt); padding-block: 44px 48px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.arbeit .rubrik { justify-self: start; border-top: 0; padding: 0; margin: 0 0 14px; background: var(--tinte); color: var(--zettel); padding: .5em .8em; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.leitsatz { font-family: var(--f-plakat); font-weight: 900; letter-spacing: -.012em; line-height: .86; container-type: inline-size; }
.leitsatz span { display: block; font-size: 18.3cqi; }
/* das Wort Tests ist die groesste Zeile */
.leitsatz .leitsatz__tests { font-size: 52cqi; line-height: .76; color: var(--papier); margin: .04em 0 .03em -.02em; }

.schritte { counter-reset: schritt; margin-top: 34px; border-bottom: 2px solid var(--tinte); }
.schritte li { counter-increment: schritt; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 10px; padding: 12px 0 14px; border-top: 2px solid var(--tinte); }
.schritte li::before { content: counter(schritt); grid-row: 1 / span 2; font-family: var(--f-plakat); font-weight: 900; font-size: 3.4rem; line-height: .8; color: var(--papier); }
.schritte b { font-family: var(--f-plakat); font-weight: 900; font-size: 2rem; line-height: .95; }
.schritte span { font-size: 1.06rem; line-height: 1.4; font-weight: 500; margin-top: 4px; }
.arbeit__schluss { font-size: var(--t-vorspann); line-height: 1.27; font-weight: 500; margin-top: 26px; max-width: 26em; text-wrap: pretty; }

/* Ueber mich: Kurz zu mir, Werdegang */
.abschnitt { padding-top: var(--abschnitt); }
.abschnitt__titel { font-family: var(--f-plakat); font-weight: 900; letter-spacing: -.012em; font-size: var(--t-rubrik); line-height: .86; }
.fliesstext { margin-top: 22px; }
.fliesstext p { max-width: 35em; }
.fliesstext p + p { margin-top: .85em; }
.fliesstext p:first-child { font-size: var(--t-vorspann); line-height: 1.27; font-weight: 500; text-wrap: pretty; }

.zeitleiste { margin-top: 24px; border-bottom: 2px solid var(--tinte); }
.zeitleiste > div { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 4px; padding: 12px 0 14px; border-top: 2px solid var(--tinte); }
.zeitleiste dt { font-family: var(--f-plakat); font-weight: 900; font-size: 1.7rem; line-height: 1; }
.zeitleiste dd { font-size: 1.1rem; line-height: 1.4; max-width: 36em; }

/* Kontakt: Feld in Tinte */
.kontakt { background: var(--tinte); color: var(--zettel); margin-top: var(--abschnitt); padding-block: 48px 56px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.kontakt .blatt { container-type: inline-size; }
.kontakt__titel { font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett-gross); line-height: 1.3; justify-self: start; background: var(--gruen); color: var(--tinte); padding: .5em .8em; margin-bottom: 18px; }
.kontakt__text { font-size: var(--t-vorspann); line-height: 1.27; font-weight: 500; max-width: 24em; text-wrap: pretty; }
.kontakt__wege { margin-top: 30px; display: grid; row-gap: 14px; }
.kontakt__wege li { display: grid; justify-items: start; }
.kontakt__art { font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett); line-height: 1.3; color: var(--gruen-hell); }
/* Am Handy fuellt die Adresse die Breite in einer Zeile, ab 700 px die feste Groesse */
.kontakt__wege a {
  justify-self: start; display: inline-flex; align-items: center; min-height: 48px;
  font-family: var(--f-plakat); font-weight: 900; letter-spacing: -.008em;
  font-size: min(calc(100cqi / 9.9), 2.4rem); line-height: 1;
  text-decoration-color: var(--gruen-hell); text-decoration-thickness: .06em; text-underline-offset: .12em;
  text-decoration-skip-ink: none;
}
@media (hover: hover) and (pointer: fine) {
  .kontakt__wege a:hover { text-decoration-color: var(--zettel); }
}
.kontakt__knoepfe { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.kontakt .knopf { border-color: var(--zettel); box-shadow: 4px 4px 0 rgba(252, 252, 248, .42); }
.kontakt .knopf--haupt { background: var(--zettel); color: var(--tinte); box-shadow: 4px 4px 0 var(--gruen-hell); }
@media (hover: hover) and (pointer: fine) {
  .kontakt .knopf:hover { box-shadow: 6px 6px 0 rgba(252, 252, 248, .42); }
  .kontakt .knopf--haupt:hover { box-shadow: 6px 6px 0 var(--gruen-hell); }
}
.kontakt .knopf:not(.knopf--haupt) { background: var(--tinte); color: var(--zettel); }
.kontakt :focus-visible, .kontakt .knopf:focus-visible { outline-color: var(--zettel); box-shadow: 0 0 0 5px var(--tinte), 0 0 0 8px var(--zettel); }

.fuss.blatt { padding-block: 22px 30px; row-gap: 8px; font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett); line-height: 1.4; }
.fuss__links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.fuss__links a { display: inline-flex; align-items: center; min-height: 44px; }

/* Etiketten als gesperrte Versalien: kurze Namen von Feldern, Rubriken und Zeichnungen, nie ganze Saetze.
   Ein System fuer alle Etiketten (auch Titel von Balken, Zetteln und Zahlentafeln). */
.rubrik, .punkte__titel, .kapitelzeile, .fall-ende__kapitel, .steckbrief dt, .kopf__fakten dt, .kopf__etikett, .vergleich dt, .kontakt__titel, .kontakt__art,
.balken__titel, .zettel__titel, .zahlen caption {
  text-transform: uppercase; letter-spacing: .07em; font-size: var(--t-etikett);
}

/* ============================================================
   17 Lupe: Bild gross im Dialog
   ============================================================ */
.lupe {
  width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100dvh;
  margin: 0; padding: 0; border: 0;
  background: var(--tinte); color: var(--zettel);
}
.lupe[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lupe::backdrop { background: var(--tinte); }
.lupe__leiste { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 16px; border-bottom: 1px solid rgba(252, 252, 248, .3); }
.lupe__titel { font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett); line-height: 1.3; min-width: 0; }
.lupe__knoepfe { display: flex; gap: 8px; flex: none; }
.lupe__knoepfe button {
  min-width: 44px; min-height: 44px; padding: 8px 14px; cursor: pointer;
  background: var(--zettel); color: var(--tinte); border: 2px solid var(--zettel);
  font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett-gross); line-height: 1;
}
@media (hover: hover) and (pointer: fine) {
  .lupe__knoepfe button:hover { background: var(--gruen-hell); }
}
.lupe :focus-visible { outline: 3px solid var(--zettel); outline-offset: 2px; box-shadow: 0 0 0 5px var(--tinte), 0 0 0 8px var(--zettel); }
.lupe__flaeche { overflow: auto; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 12px; overscroll-behavior: contain; }
.lupe__flaeche img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: var(--zettel); cursor: zoom-in; }
.lupe--gross .lupe__flaeche { grid-template: auto / auto; place-items: start; }
.lupe--gross .lupe__flaeche img { max-width: none; max-height: none; cursor: zoom-out; }
/* Handy: grosse Stufe ist 250 % der Bildschirmbreite (die volle Datei waere bis zu fuenfmal breiter als der Bildschirm).
   Querformate oeffnen gleich in dieser Stufe (werkbuch.js, Lupe). */
@media (max-width: 699.98px) {
  .lupe--gross .lupe__flaeche img { width: 250vw; height: auto; }
}
/* Handy-Aufnahmen (data-lupe-art="handy", Runde 5, B11) oeffnen am Handy in Fensterbreite, so gross wie auf dem
   eigenen Handy; man scrollt nach unten. "Groesser" schaltet wie sonst auf die grosse Stufe (werkbuch.js, Lupe). */
.lupe--handy .lupe__flaeche { grid-template: auto / minmax(0, 1fr); place-items: start center; }
.lupe--handy .lupe__flaeche img { width: 100%; max-height: none; }
.lupe__text { font-size: var(--t-klein); line-height: 1.4; padding: 10px 16px 14px; border-top: 1px solid rgba(252, 252, 248, .3); max-height: 30vh; overflow: auto; }
.lupe__text:empty { display: none; }

/* Zeichen fuer die Lupe ohne Maus (Runde 5, B11): Etikett "Vergroessern" unten rechts im Bild.
   Nur mit Script (sonst oeffnet der Link die Datei), ohne Text fuer Screenreader (der Link heisst "Bild vergroessern: ..."),
   nur am Bildschirm (nicht im Druck). */
@media screen and (hover: none) {
  .js a.abzug__bild[data-lupe]::after {
    content: "Vergr\F6\DF ern"; content: "Vergr\F6\DF ern" / "";
    position: absolute; right: 0; bottom: 0; z-index: 1; pointer-events: none;
    padding: 3px 7px 4px;
    background: var(--tinte); color: var(--zettel);
    font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett); line-height: 1.25; letter-spacing: .01em;
  }
}

/* ============================================================
   Zeichnen der Stiftmarken (nur mit JavaScript und ohne Wunsch nach weniger Bewegung)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .js .abzug[data-kreis] .stift__kreis path, .js .abzug[data-kreis] .stift__pfeil path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .abzug[data-kreis].ist-da .stift__kreis path { stroke-dashoffset: 0; transition: stroke-dashoffset .7s ease-out .15s; }
  .js .abzug[data-kreis].ist-da .stift__pfeil path { stroke-dashoffset: 0; transition: stroke-dashoffset .4s ease-out .8s; }
  .js .abzug[data-kreis].ist-da .stift__pfeil path + path { transition-duration: .2s; transition-delay: 1.15s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .knopf, .aufbau > summary, .leiste .leiste__pdf { transition: none; }
}

/* ============================================================
   Ab 700 px: acht Spalten. Diese Breite ist eigens gestaltet.
   ============================================================ */
@media (min-width: 700px) {
  :root { --rand: 40px; --schatten: 10px; --passepartout: 8px; --abschnitt: 104px; --projekt-luft: 40px; }

  .blatt { grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: 20px; }
  .blatt > * { grid-column: 1 / -1; }

  /* Leiste der Startseite: Name links, vier Wege in der Mitte, Lebenslauf rechts */
  .leiste { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); column-gap: 20px; padding-inline: var(--rand); }
  .leiste__marke {
    grid-column: 1; grid-row: 1; justify-self: start;
    display: flex; align-items: center; min-height: 44px;
    font-family: var(--f-plakat); font-weight: 900; font-size: 1.3rem; line-height: 1; white-space: nowrap;
  }
  @media (hover: hover) and (pointer: fine) {
    .leiste__marke:hover { text-decoration: underline; text-decoration-color: var(--gruen); text-decoration-thickness: 3px; text-underline-offset: .14em; }
  }
  .leiste__wege { grid-column: 2; grid-row: 1; justify-content: center; }
  .leiste__wege > ul, .leiste__wege > ol { flex: 0 0 auto; }
  .leiste__wege li, .leiste__wege .leiste__breit { flex: 0 0 auto; display: flex; }
  .leiste__wege li + li, .leiste__wege > a + a { border-left: 0; }
  .leiste__wege a { flex: 0 0 auto; padding: 4px 14px; font-size: var(--t-etikett-gross); white-space: nowrap; }

  /* Knopf "Lebenslauf (PDF)": klein und leise, damit er in die Leiste passt (G12) */
  .leiste .leiste__pdf {
    display: inline-flex; flex: none; align-items: center; align-self: center; justify-self: end;
    grid-column: 3; grid-row: 1;
    min-height: 30px; padding: 4px 10px; margin: 0;
    border: 2px solid var(--tinte); background: var(--zettel); color: var(--tinte);
    box-shadow: 2px 2px 0 var(--tinte);
    font-size: var(--t-etikett); line-height: 1.1; text-decoration: none;
    transition: translate .12s ease, box-shadow .12s ease;
  }
  /* im Flex-Feld faellt das fuehrende Leerzeichen sonst weg */
  .leiste__pdf .leiste__lang { white-space: pre; }
  @media (hover: hover) and (pointer: fine) {
    .leiste .leiste__pdf:hover { translate: -1px -1px; box-shadow: 3px 3px 0 var(--tinte); text-decoration: none; }
  }
  .leiste .leiste__pdf:active { translate: 1px 1px; box-shadow: 1px 1px 0 var(--tinte); }
  .leiste .leiste__pdf:focus-visible { outline-offset: 2px; box-shadow: 0 0 0 5px var(--zettel), 0 0 0 8px var(--tinte); }

  /* Leiste der Fallstudie: zurueck, Projekt, weiter, (Kontakt ab 1024 px), Lebenslauf */
  .leiste--fall { grid-template-columns: auto minmax(0, 1fr) auto auto; column-gap: 0; }
  .leiste--fall .leiste__zurueck { padding-right: 18px; }
  .leiste__projekt b { margin-right: .15em; }
  .leiste--fall .leiste__projekt { padding: 0 18px; text-align: left; font-size: 1.2rem; border-right: 0; }
  .leiste--fall .leiste__weiter { grid-column: 3; padding: 0 20px 0 18px; border-left: 1px solid var(--linie); }
  .leiste--fall .leiste__pdf { grid-column: 4; align-self: center; padding-inline: 10px; border: 2px solid var(--tinte); }
  .leiste__zurueck, .leiste__weiter, .leiste__kontakt { font-size: var(--t-etikett-gross); }

  .fuss.blatt { padding-bottom: 30px; }

  /* Kopf: Name ueber die ganze Breite, Rolle neben "Aleks" */
  .kopf.blatt { grid-template-columns: repeat(8, minmax(0, 1fr)); padding-top: 18px; padding-bottom: 52px; }
  .kopf__namefeld { grid-column: 1 / -1; grid-row: 1; }
  .kopf__name { font-size: 25.1cqi; }
  .kopf__rolle { grid-column: 5 / -1; grid-row: 1; align-self: start; margin-top: 3.2vw; flex-direction: row; z-index: 1; }
  .kopf__beruf { font-size: clamp(1.3rem, 3.1vw, 1.9rem); }
  .kopf__zusatz { font-size: 1.08rem; }
  .kopf__portrait { grid-column: 1 / 3; grid-row: 2; margin: 30px 0 0 6px; box-shadow: -12px 12px 0 var(--gruen); }
  .kopf__satz { grid-column: 1 / -1; grid-row: 3; font-size: 1.62rem; line-height: 1.27; margin-top: 28px; }
  .kopf__fakten { grid-row: 4; grid-template-columns: repeat(4, auto); justify-content: space-between; column-gap: 20px; margin-top: 34px; }
  .kopf__fakten > div { border-bottom: 0; padding: 12px 0 0; }
  .kopf__fakten dd { font-size: 1.36rem; }
  .kopf__knoepfe { grid-row: 5; margin-top: 28px; gap: 12px 18px; }
  .kopf__knoepfe .knopf, .kopf__knoepfe .knopf--haupt { flex: 0 0 auto; }
  .lage { grid-row: 6; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; margin-top: 34px; }

  /* Kopf einer Fallstudie: Raster wie jedes Blatt */
  .projekt__kopf.blatt { grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: 20px; align-items: start; }
  .kapitelzeile { margin-bottom: 22px; }
  .projekt__nr { grid-column: 1 / 2; grid-row: 2 / span 3; font-size: clamp(11rem, 27vw, 15rem); align-self: start; }
  .projekt__titelfeld { grid-column: 2 / -1; grid-row: 2; padding-left: clamp(26px, 5vw, 50px); }
  .projekt__titel { font-size: min(calc(93cqi / var(--titel-em-schmal, var(--titel-em, 4))), 7.6rem); }
  .projekt__kurz { grid-column: 2 / -1; grid-row: 3; padding-left: clamp(26px, 5vw, 50px); margin-top: 14px; }
  .projekt__tor { grid-column: 2 / -1; grid-row: 4; padding-left: clamp(26px, 5vw, 50px); margin-top: 16px; }
  .steckbrief { margin-top: 30px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; border-bottom: 0; }
  .steckbrief > div { grid-template-columns: minmax(0, 1fr); row-gap: 4px; border-top: 3px solid var(--tinte); padding: 10px 0 18px; align-content: start; }
  .steckbrief dt { padding-top: 0; }

  .abzug--buehne { margin-top: 30px; }
  .abzug--buehne .abzug__rahmen { margin-inline: 0 var(--schatten); }
  .projekt__kopf > .abzugreihe, .projekt__kopf > .zettel { margin-top: 30px; }
  .clip__knopf { left: 14px; bottom: 14px; }

  .einstieg { margin-top: 56px; column-gap: 20px; grid-template-rows: auto 1fr; }
  .einstieg__ist { grid-column: 1 / 6; }
  .einstieg__tut { grid-column: 1 / 6; }
  .einstieg > .abzug { grid-column: 6 / -1; grid-row: 1 / span 2; align-self: start; }

  /* Beleg: Text und Abzug nebeneinander, abwechselnd */
  .beleg { margin-top: 72px; align-items: start; }
  .beleg--hoch > .beleg__text { grid-column: 1 / 6; grid-row: 1; }
  .beleg--hoch > .abzug { grid-column: 6 / -1; grid-row: 1; max-width: none; }
  .beleg--hoch.beleg--bild-links > .beleg__text { grid-column: 4 / -1; }
  .beleg--hoch.beleg--bild-links > .abzug { grid-column: 1 / 4; }

  .punkte--kurz { grid-template-columns: repeat(8, minmax(0, 1fr)); margin-top: 56px; }
  .punkte--kurz > .punkt { grid-column: span 4; }
  .punkte--kurz > .punkt:last-child:nth-child(odd) { grid-column: 1 / 6; }
  /* Titel einer Reihe oben buendig, damit die Punktziffern auf einer Linie stehen (Runde 4, G2), und die Texte
     beginnen auf einer Linie: jeder Punkt belegt zwei Zeilen des Rasters, Titel oben, .punkt__text unten.
     Nur fuer Punkte mit .punkt__text, ohne Proteinvergleich. */
  .punkte--kurz:not(:where(#proteinvergleich *)) { grid-template-rows: auto auto; }
  .punkte--kurz:not(:where(#proteinvergleich *)) > .punkt:has(> .punkt__text) {
    grid-row: span 2; display: grid; grid-template-rows: subgrid; row-gap: 0; align-content: start;
  }
  .punkte--kurz:not(:where(#proteinvergleich *)) > .punkt:has(> .punkt__text) > :is(h3, h4) { align-self: start; }
  .punkte--kurz > .punkt > .punkt__text { min-width: 0; }

  .abzugreihe { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 20px; margin-top: 48px; }
  .abzugreihe--drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .abzugreihe--hoch { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .vergleich { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .blatt > .ablauf { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 32px; row-gap: 0; }
  .blatt > .ablauf > li + li::before { left: -33px; top: 50%; width: 30px; height: 14px; translate: 0 -50%; background-image: var(--pfeil-rechts); background-size: 30px 14px; }

  .projekt__ende { grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: 20px; }
  .projekt__ende > .technik { grid-column: 1 / 5; }
  .projekt__ende > .belege { grid-column: 5 / -1; grid-row: 1 / span 2; }
  .projekt__ende > .zettel { grid-column: 1 / 5; align-self: start; }

  .fall-ende__naechstes { column-gap: 20px; padding-bottom: 28px; }
  .fall-ende__ziffer, .fall-ende__name { font-size: var(--t-rubrik); }


  .arbeit { padding-block: 64px 68px; }
  .leitsatz span { font-size: 13.4cqi; }
  .leitsatz .leitsatz__tests { font-size: 52cqi; }
  .schritte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .schritte li:last-child { grid-column: 1 / -1; }
  .fliesstext { grid-column: 1 / 7; }
  .zeitleiste > div { grid-template-columns: 13.5rem minmax(0, 1fr); column-gap: 20px; align-items: baseline; }
  .kontakt { padding-block: 72px 80px; }
  .kontakt__wege a { font-size: clamp(2.4rem, 4.2vw, 3.8rem); }
  .fuss.blatt > p { grid-column: 1 / 5; align-self: center; }
  .fuss.blatt > .fuss__links { grid-column: 5 / -1; justify-content: flex-end; }
}

/* 700 bis 959 px: Name, vier Wege und Lebenslauf in einer Zeile, etwas enger und ohne sichtbares "(PDF)".
   Wie am Handy bleibt der Zusatz im Namen des Links (G8). */
@media (min-width: 700px) and (max-width: 959.98px) {
  .leiste { column-gap: 12px; }
  .leiste__wege a { padding-inline: 9px; }
  .leiste__pdf .leiste__lang {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
}
/* 700 bis 1279 px: Die Fallstudie zeigt "Weiter" ohne sichtbaren Namen, damit der Projektname nie abgeschnitten wird
   (ab 1024 px steht links zusaetzlich die Marke). Der Name des Links bleibt "Weiter: <Projekt>" (aria-label, G8).
   Die Marke "Aleks Paramonov" steht in der Fallstudie erst ab 1024 px (G11). */
@media (min-width: 700px) and (max-width: 1279.98px) {
  .leiste__weiter .leiste__lang {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
}
@media (min-width: 700px) and (max-width: 1023.98px) {
  .leiste--fall .leiste__marke { display: none; }
}

/* Nur 700 bis 1023 px: Beleg mit Ueberschrift links, Text rechts, Abzug darunter eingerueckt.
   Die Abzuege wechseln die Seite: einmal bis zum rechten Rand, einmal bis zum linken. */
@media (min-width: 700px) and (max-width: 1023.98px) {
  .beleg:not(.beleg--hoch) > .beleg__text { display: grid; grid-template-columns: 3fr 5fr; column-gap: 20px; align-items: start; }
  .beleg:not(.beleg--hoch) > .beleg__text > :is(h3, h4) { grid-column: 1; grid-row: 1 / span 6; margin-bottom: 0; }
  .beleg:not(.beleg--hoch) > .beleg__text > :not(h3, h4) { grid-column: 2; }
  .beleg:not(.beleg--hoch) > .abzug { grid-column: 2 / -1; }
  .beleg--bild-links:not(.beleg--hoch) > .abzug { grid-column: 1 / 8; }
  .beleg { row-gap: 34px; }
}

/* Handy: Stiftmarke als Punkt, Notiz und Ausschnitt darunter */
@media (max-width: 699.98px) {
  .abzug--buehne .abzug__notiz { margin-right: var(--schatten); }
  .abzug--buehne .abzug__kopf { padding-inline: 8px; }
  .abzug--buehne .abzug__kopf > .clip__knopf { margin-right: calc(var(--passepartout) * -1 - 4px); }
}
html:not(.js) .stift__punkt { display: none; }

/* Ab 700 px: Kreis und Pfeil statt Punkt. Der vergroesserte Ausschnitt bleibt (G10): er steht unter dem Abzug
   in dessen Breite, nach der Notiz, damit der Pfeil von der Notiz zum Kreis nicht ueber den Ausschnitt laeuft. */
@media (min-width: 700px) {
  .stift__kreis, .stift__pfeil { display: block; }
  .stift__punkt { display: none; }
  .abzug[data-kreis] .abzug__flaeche { display: flex; flex-direction: column; }
  .abzug[data-kreis] .abzug__ausschnitt { order: 2; margin-top: 16px; }
  .abzug__notiz { margin: 30px 0 0 6%; max-width: 15em; }
  .js .abzug__notiz::before { display: none; }
  .js .abzug__notiz { display: block; }
  .abzug[data-notiz-lage$="-rechts"] .abzug__notiz { margin-left: auto; margin-right: 6%; }
  .abzug--buehne[data-notiz-lage$="-rechts"] .abzug__notiz { margin-right: calc(6% + var(--schatten)); }
  /* Notiz ueber dem Abzug: fuer Kreise im oberen Drittel */
  .abzug[data-notiz-lage^="oben"] .abzug__flaeche { display: flex; flex-direction: column; }
  .abzug[data-notiz-lage^="oben"] .abzug__notiz { order: -1; margin-top: 0; margin-bottom: 34px; }
}

/* ============================================================
   Ab 1024 px: zwoelf Spalten, Randnotizen
   ============================================================ */
@media (min-width: 1024px) {
  /* --abschnitt: zwei Stufen ab 1024 px (K5). 112 px hier, 80 px setzen nur die kurzen Fallstudien (Hoerbuch, Afuku). */
  :root { --schatten: 12px; --abschnitt: 112px; --projekt-luft: 44px; --leiste-h: 46px; --t-text: 1.1875rem; }

  .blatt {
    padding-inline: 0;
    grid-template-columns: minmax(var(--rand), 1fr) repeat(12, minmax(0, 104px)) minmax(var(--rand), 1fr);
    column-gap: 24px;
  }
  .blatt > * { grid-column: 2 / -2; }

  /* Leiste: Innenkante wie die Satzkante der Seite */
  .leiste { padding-inline: max(calc(var(--rand) + 24px), calc((100% - 1512px) / 2)); }
  .leiste__wege a { padding: 4px 16px; }
  /* Fallstudie: Marke "Aleks Paramonov" links (G11), Kontakt vor dem Lebenslauf.
     Wer direkt auf einer Fallstudie landet, sieht so sofort, wessen Arbeit er liest. */
  .leiste--fall { grid-template-columns: auto auto minmax(0, 1fr) auto auto auto; }
  .leiste--fall .leiste__marke { grid-column: 1; padding-right: 20px; }
  .leiste--fall .leiste__zurueck { grid-column: 2; padding-left: 20px; border-left: 1px solid var(--linie); }
  .leiste--fall .leiste__projekt { grid-column: 3; }
  .leiste--fall .leiste__weiter { grid-column: 4; }
  .leiste__kontakt { display: block; grid-column: 5; padding: 0 20px; border-left: 1px solid var(--linie); }
  .leiste--fall .leiste__pdf { grid-column: 6; }
  /* Name in der Kapitelzeile nur unter 1024 px (Runde 5, B6): ab hier steht er links in der Leiste */
  .kapitelzeile__name { display: none; }

  /* Kopf: alles auf einem Bildschirm */
  .kopf.blatt {
    grid-template-columns: minmax(var(--rand), 1fr) repeat(12, minmax(0, 104px)) minmax(var(--rand), 1fr);
    column-gap: 24px; padding-top: 16px; padding-bottom: 44px;
    grid-template-rows: auto auto auto 1fr auto auto;
  }
  .kopf__namefeld { grid-column: 2 / 9; grid-row: 1; }
  .kopf__name { font-size: min(25.1cqi, 23.5vh); }
  .kopf__rolle { grid-column: 2 / 9; grid-row: 2; margin-top: 16px; flex-wrap: nowrap; }
  .kopf__beruf { font-size: clamp(1.25rem, 1.75vw, 1.7rem); white-space: nowrap; flex: none; }
  .kopf__ort { flex: none; }
  .kopf__zusatz { flex-basis: auto; font-size: 1.02rem; line-height: 1.25; margin-left: 4px; max-width: 17em; }
  .kopf__satz { grid-column: 2 / 9; grid-row: 3; font-size: clamp(1.3rem, 1.72vw, 1.62rem); line-height: 1.26; margin-top: 18px; max-width: 30em; }
  .kopf__knoepfe { grid-column: 2 / 9; grid-row: 4; align-self: start; margin-top: 20px; gap: 12px 20px; }
  .kopf__portrait {
    grid-column: 12 / -2; grid-row: 1 / span 4; align-self: end; justify-self: end; z-index: 2;
    width: min(100%, 26vh); margin: 0 -18px 4px 0; rotate: 2.2deg; box-shadow: -12px 12px 0 var(--gruen);
  }
  .kopf__fakten { grid-column: 2 / -2; grid-row: 5; margin-top: 26px; grid-template-columns: 3.05fr 3.75fr 2.75fr 2.45fr; justify-content: stretch; column-gap: 24px; }
  .kopf__fakten dd { font-size: clamp(1.4rem, 1.95vw, 1.75rem); }
  .lage { grid-column: 2 / -2; grid-row: 6; grid-template-columns: repeat(7, auto); justify-content: space-between; column-gap: 18px; margin-top: 20px; border-top: 1px solid var(--tinte); }
  .lage li { border-bottom: 0; }
  .lage a { min-height: 50px; padding: 9px 0 0; grid-template-columns: auto minmax(0, 1fr); column-gap: 7px; }
  .lage__nr { font-size: 2.5rem; }
  .lage__name { font-size: clamp(1rem, 1.42vw, 1.3rem); }
  .lage .stand { align-items: flex-start; }
  .lage .stand::before { margin-top: .2em; }

  /* Kopf einer Fallstudie: Titel und Steckbrief passen zusammen auf den ersten Bildschirm */
  .projekt__kopf.blatt { grid-template-columns: minmax(var(--rand), 1fr) repeat(12, minmax(0, 104px)) minmax(var(--rand), 1fr); column-gap: 24px; }
  .projekt__kopf { --spalte: calc((min(100vw, 1640px) - 392px) / 12); }
  /* Ziffer fuellt genau die erste Spalte */
  .projekt__nr { grid-column: 2 / 3; grid-row: 2 / span 3; font-size: calc((var(--spalte) + 14px) / .44); white-space: nowrap; }
  .projekt__titelfeld { grid-column: 3 / -2; grid-row: 2; padding-left: 0; }
  .projekt__titel { font-size: min(calc(96cqi / var(--titel-em, 4)), 8.9rem, 15.5vh); }
  .projekt__kurz { grid-column: 3 / -2; grid-row: 3; padding-left: 0; margin-top: 18px; max-width: 34em; }
  /* Knoepfe unter der Kurzzeile: lange Titel fuellen die ganze Zeile, daneben ist kein Platz */
  .projekt__tor { grid-column: 3 / -2; grid-row: 4; padding-left: 0; margin-top: 16px; }
  .steckbrief { margin-top: 26px; grid-template-columns: 3.5fr 2.5fr 2fr 4fr; column-gap: 24px; }
  .steckbrief > div { padding: 10px 0 0; }
  .steckbrief dd { font-size: 1.02rem; line-height: 1.38; }

  /* Buehne: rund 1100 px breit */
  .blatt > .abzug--buehne { grid-column: 3 / -2; }
  .blatt > .abzug--buehne figcaption { max-width: 52em; }
  .blatt > .abzug--buehne.abzug--links { grid-column: 2 / -3; }
  .blatt > .abzug--buehne.abzug--voll { grid-column: 2 / -2; }

  .einstieg { margin-top: 80px; column-gap: 24px; grid-template-rows: auto 1fr; row-gap: 40px; }
  .einstieg__ist { grid-column: 2 / 8; grid-row: 1; }
  .einstieg__tut { grid-column: 2 / 8; grid-row: 2; align-self: start; }
  .einstieg > .abzug { grid-column: 9 / -2; grid-row: 1 / span 2; }
  .einstieg--ohne-bild .einstieg__ist { grid-column: 2 / 8; grid-row: 1; }
  .einstieg--ohne-bild .einstieg__tut { grid-column: 8 / -2; grid-row: 1; }
  /* Was es tut im Kopf neben der Buehne laeuft beim Lesen mit (G1): keine leere Flaeche neben dem Bild.
     Es bleibt in seinem Rasterfeld, kommt also nie ueber den Steckbrief, die Punkte oder den Schlussblock,
     und haelt 40 px Abstand zur Leiste. Steht nichts daneben, ist das Feld so hoch wie der Text und nichts bewegt sich. */
  .projekt__kopf > .einstieg__tut { position: sticky; top: calc(var(--leiste-h) + 40px); align-self: start; }
  /* "Was es ist" entfaellt: "Was es tut" rueckt nach oben und links */
  .einstieg > .einstieg__tut:first-child { grid-row: 1; }
  .einstieg--ohne-bild > .einstieg__tut:first-child { grid-column: 2 / 9; }

  .punkte__titel > span { grid-column: 2 / -2; }

  .beleg { margin-top: 96px; }
  .beleg > .beleg__text { grid-column: 2 / 7; grid-row: 1; }
  .beleg > .abzug { grid-column: 7 / -2; grid-row: 1; }
  .beleg--bild-links > .beleg__text { grid-column: 9 / -2; }
  .beleg--bild-links > .abzug { grid-column: 2 / 9; }
  .beleg--hoch > .beleg__text { grid-column: 2 / 8; }
  .beleg--hoch > .abzug { grid-column: 9 / 13; justify-self: end; width: 100%; max-width: 300px; }
  .beleg--hoch.beleg--bild-links > .beleg__text { grid-column: 7 / -2; }
  .beleg--hoch.beleg--bild-links > .abzug { grid-column: 3 / 6; }

  .punkte--kurz { grid-template-columns: minmax(var(--rand), 1fr) repeat(12, minmax(0, 104px)) minmax(var(--rand), 1fr); margin-top: 72px; }
  .punkte--kurz > .punkt, .punkte--kurz > .punkt:last-child:nth-child(odd) { grid-column: span 4; }
  .punkte--kurz > .punkt:first-child { grid-column: 2 / span 4; }
  /* drei Punkte in einer Reihe: Titel etwas kleiner, damit sie in vier Spalten hoechstens drei Zeilen brauchen */
  .punkte--kurz:has(> .punkt:nth-child(3)) > .punkt > :is(h3, h4) { font-size: clamp(2rem, 1.1rem + 1.6vw, 2.6rem); }

  .abzugreihe { gap: 40px 24px; margin-top: 64px; }
  .abzugreihe--hoch { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: 4%; column-gap: 5%; }

  .vergleich { column-gap: 48px; }

  /* Randnotiz: Notiz steht neben dem Abzug, der Pfeil zeigt auf den Kreis */
  .abzug[data-notiz-lage^="rechts"] .abzug__flaeche, .abzug[data-notiz-lage^="links"] .abzug__flaeche {
    display: grid; grid-template-columns: minmax(0, 1fr) 11.5rem; column-gap: 22px; align-items: start;
  }
  .abzug[data-notiz-lage^="links"] .abzug__flaeche { grid-template-columns: 11.5rem minmax(0, 1fr); }
  .abzug[data-notiz-lage^="links"] .abzug__rahmen { grid-column: 2; grid-row: 1; }
  .abzug[data-notiz-lage^="links"] .abzug__notiz { grid-column: 1; grid-row: 1; }
  .abzug[data-notiz-lage^="rechts"] .abzug__notiz, .abzug[data-notiz-lage^="links"] .abzug__notiz { margin: 8% 0 0; max-width: none; }
  .abzug[data-notiz-lage$="-unten"] .abzug__notiz { align-self: end; margin: 0 0 14%; }
  .abzug[data-notiz-lage^="rechts"] .abzug__ausschnitt { grid-column: 1; grid-row: 2; }
  .abzug[data-notiz-lage^="links"] .abzug__ausschnitt { grid-column: 2; grid-row: 2; }
  .abzug[data-notiz-lage^="rechts"] figcaption { max-width: calc(100% - 11.5rem - 22px); }
  .abzug[data-notiz-lage^="links"] figcaption { margin-left: calc(11.5rem + 22px); }

  .projekt__ende { grid-template-columns: minmax(var(--rand), 1fr) repeat(12, minmax(0, 104px)) minmax(var(--rand), 1fr); column-gap: 24px; }
  .projekt__ende > .technik { grid-column: 2 / 7; grid-row: 1; }
  .projekt__ende > .belege { grid-column: 8 / -2; grid-row: 1; }
  .projekt__ende > .zettel { grid-column: 2 / 7; grid-row: 2; }

  /* Schlussblock: Ziffer in Spalte 2 wie oben im Kopf, Name und Kurzzeile ab Spalte 3,
     das Kartenbild als Abzug rechts (Spalten 9 bis 13), unten buendig mit der Kurzzeile.
     Darunter links die Adresse, rechts die zwei leisen Wege. */
  /* Ziffer links in Spalte 2 wie im Kopf (G3). Name und Ziffer unten in ihrer Zeile, direkt ueber der Kurzzeile,
     auch wenn das Kartenbild die Zeile hoeher macht. */
  .fall-ende__naechstes { grid-column: 2 / -2; grid-template-columns: subgrid; grid-template-rows: 1fr auto; column-gap: 24px; padding-bottom: 24px; align-items: end; }
  .fall-ende__ziffer { grid-column: 1 / 2; justify-self: start; }
  .fall-ende__name { grid-column: 2 / 8; }
  /* Der laengste Name mit Pfeil ("Proteinvergleich ->", 6,5 em) passt in die sechs Spalten des Namens.
     Ohne diese Grenze bricht er zwischen 1024 und rund 1300 px mitten im Wort. Ab 1440 px bleibt es bei der Rubrikgroesse. */
  .fall-ende__ziffer, .fall-ende__name { font-size: min(var(--t-rubrik), calc(((min(100vw, 1640px) - 392px) / 2 + 120px) / 6.9)); }
  .fall-ende__name:first-child { grid-column: 1 / -1; }
  .fall-ende__kurz { grid-column: 2 / 8; }
  /* Kartenbild in einem Format fuer alle sieben (G3): 244 x 160 mit Rahmen, oben buendig zugeschnitten */
  .fall-ende__bild {
    display: block; grid-column: 8 / -1; grid-row: 1 / 3; justify-self: end; align-self: end;
    width: 244px; height: 160px; max-width: 100%; max-height: none; object-fit: cover; object-position: center top;
    border: 2px solid var(--tinte); padding: var(--passepartout); background: var(--zettel);
  }
  .fall-ende__kontakt { grid-column: 2 / 10; grid-row: 3; align-self: end; margin-top: 12px; }
  .fall-ende__wege { grid-column: 10 / -2; grid-row: 3; justify-self: end; align-self: end; margin-top: 12px; }


  .arbeit { padding-block: 84px 88px; }
  .arbeit .rubrik { grid-column: 2 / -2; }
  .leitsatz { grid-column: 2 / -2; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto auto; align-items: end; }
  .leitsatz span { font-size: 7.6cqi; }
  .leitsatz span:nth-child(1) { grid-column: 1; grid-row: 1; align-self: end; padding-right: 2.4cqi; }
  .leitsatz span:nth-child(2) { grid-column: 1; grid-row: 2; padding-right: 2.4cqi; }
  .leitsatz .leitsatz__tests { grid-column: 2; grid-row: 1 / span 2; font-size: 28.4cqi; line-height: .74; margin: 0; align-self: end; }
  .leitsatz span:nth-child(4) { grid-column: 2; grid-row: 3; }
  .schritte { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 24px; margin-top: 52px; border-bottom: 0; }
  .schritte li, .schritte li:last-child { grid-column: auto; grid-template-columns: minmax(0, 1fr); padding: 14px 0 0; align-content: start; }
  .schritte li::before { grid-row: auto; font-size: 4.6rem; margin-bottom: 10px; }
  .schritte b { font-size: 2.2rem; }
  .schritte span { margin-top: 8px; }
  .arbeit__schluss { grid-column: 2 / 10; margin-top: 44px; }

  .abschnitt__titel { grid-column: 2 / 7; grid-row: 1; }
  .fliesstext { grid-column: 7 / -2; grid-row: 1; margin-top: 8px; }
  .zeitleiste { grid-column: 7 / -2; grid-row: 1; margin-top: 8px; }
  .zeitleiste > div { grid-template-columns: 15rem minmax(0, 1fr); }
  .zeitleiste dt { font-size: 1.9rem; }

  .kontakt { padding-block: 96px 104px; }
  .kontakt .blatt { container-type: normal; }
  .kontakt__text { grid-column: 2 / 10; }
  .kontakt__wege { grid-column: 2 / -2; margin-top: 40px; }
  .kontakt__knoepfe { margin-top: 40px; }
  .fuss.blatt > p { grid-column: 2 / 8; }
  .fuss.blatt > .fuss__links { grid-column: 8 / -2; }
}

@media (min-width: 1280px) {
  /* Ein Fallstudien-Kopf fuer alle sieben (K4): Kurzzeile links, Pille und Knopf rechts in derselben Zeile.
     Mit zwei Knoepfen (Zodiacally) ebenfalls rechts, ueber zwei Zeilen und unten buendig (G4). */
  .projekt__kurz { grid-column: 3 / 9; }
  .projekt__tor { grid-column: 9 / -2; grid-row: 3; align-self: end; justify-content: flex-end; }
  .projekt__tor:has(> .knopf ~ .knopf) { grid-column: 9 / -2; grid-row: 3 / span 2; align-self: end; justify-content: flex-end; }

  /* Steckbrief im 12er-Raster (G12): die vier Felder stehen auf den Spaltenkanten der Seite,
     3, 2, 3 und 4 Spalten breit. "Online" bekommt drei Spalten, damit keine Adresse mitten im Wort bricht. */
  @supports (grid-template-columns: subgrid) {
    .projekt__kopf > .steckbrief { grid-template-columns: subgrid; }
    .projekt__kopf > .steckbrief > div:nth-child(1) { grid-column: span 3; }
    .projekt__kopf > .steckbrief > div:nth-child(2) { grid-column: span 2; }
    .projekt__kopf > .steckbrief > div:nth-child(3) { grid-column: span 3; }
    .projekt__kopf > .steckbrief > div:nth-child(4) { grid-column: span 4; }
  }

  .beleg > .beleg__text { grid-column: 2 / 6; }
  .beleg--bild-links > .beleg__text { grid-column: 10 / -2; }
  .beleg--hoch > .beleg__text { grid-column: 2 / 8; }
  .beleg--hoch.beleg--bild-links > .beleg__text { grid-column: 7 / -2; }
}

@media (min-width: 1340px) {
  .lage__name { white-space: nowrap; }
}

/* Handy quer (G12): Bei hoechstens 500 px Hoehe laeuft die Leiste nicht mit. Sie naehme sonst ein Achtel
   des Bildschirms ein und koennte beim Blaettern mit der Tab-Taste das Ziel verdecken. Sprungziele halten 12 px Luft. */
@media (orientation: landscape) and (max-height: 500px) {
  html { scroll-padding-top: 12px; }
  .leiste { position: relative; }
}

/* Handy quer (breit, aber niedrig): der Name im Kopf richtet sich nach der Hoehe, sonst fuellt er den ganzen Bildschirm */
@media (min-width: 700px) and (max-height: 540px) {
  /* Name in den Spalten 1 bis 5 (seine Groesse misst sich an dieser Breite), die Rolle rechts daneben:
     so beruehrt sie auch die zweite Zeile "Paramonov" nie */
  .kopf__namefeld { grid-column: 1 / 6; }
  .kopf__name { font-size: min(25.1cqi, 30vh); }
  .kopf__rolle { grid-column: 6 / -1; }
}

/* ============================================================
   Erzwungene Farben (Windows-Kontrastdesigns, G12)
   Dort fallen Hintergrundfarben und Schatten weg. Zeichen, die nur aus Flaeche bestehen
   (Stand-Punkte, Balken, Striche), behalten deshalb die Systemfarbe der Schrift.
   ============================================================ */
@media (forced-colors: active) {
  .stand::before, .standliste li::before, .clip__knopf::before, .balken dd::before,
  .belege li::before, .recht__text li::before, .kapitelzeile::after, .fall-ende__kapitel::after, .leiste__fortschritt span {
    forced-color-adjust: none;
  }
  .stand::before, .standliste li::before, .stand--pille.stand--live::before { background: CanvasText; box-shadow: none; }
  .stand--test::before, .standliste .stand--test::before { background: linear-gradient(90deg, CanvasText 50%, transparent 50%); box-shadow: inset 0 0 0 2px CanvasText; }
  .stand--bau::before, .standliste .stand--bau::before { background: none; box-shadow: inset 0 0 0 2px CanvasText; }
  .clip__knopf::before { background: ButtonText; }
  .balken dd::before { background: CanvasText; border-color: CanvasText; }
  .balken__mass dd::before { background: repeating-linear-gradient(-45deg, CanvasText 0 1.6px, Canvas 1.6px 5px); }
  .belege li::before, .recht__text li::before, .kapitelzeile::after, .fall-ende__kapitel::after { background: CanvasText; }
  .leiste__fortschritt span { background: Highlight; }
}

/* ============================================================
   18 Unterseiten (Impressum, Datenschutz) und Vorschau
   ============================================================ */
.recht { padding-top: 40px; padding-bottom: 64px; }
.recht h1 { font-family: var(--f-plakat); font-weight: 900; letter-spacing: -.012em; font-size: clamp(3.6rem, 14vw, 8rem); line-height: .86; hyphens: manual; overflow-wrap: anywhere; }
.recht__text { margin-top: 26px; max-width: 38em; }
.recht__text h2 { font-family: var(--f-etikett); font-weight: 700; font-size: var(--t-etikett-gross); line-height: 1.3; border-top: 3px solid var(--tinte); padding-top: 10px; margin: 34px 0 10px; }
.recht__text p + p { margin-top: .8em; }
.recht__text ul { margin-top: .6em; }
.recht__text li { position: relative; padding-left: 1.3em; }
.recht__text li::before { content: ""; position: absolute; left: 0; top: .7em; width: .7em; height: 2px; background: var(--tinte); }
.recht__text li + li { margin-top: 5px; }
.recht__text address { font-style: normal; }
.recht__zurueck { margin-top: 36px; }
@media (min-width: 1024px) {
  .recht h1 { grid-column: 2 / -2; }
  .recht__text { grid-column: 5 / 12; }
  .recht__zurueck { grid-column: 5 / 12; }
}
body.vorschau .projekt:first-child, body.vorschau main > :first-child { padding-top: 40px; }

/* ============================================================
   Druck und PDF
   Auf Papier zaehlen Text, Buehne und Adressen. Bedienung, Bildreihen und Ausschnitte fallen weg,
   Links drucken ihre Adresse, die Schraffur wird zu einer feinen Linie.
   ============================================================ */
@media print {
  @page { margin: 14mm 12mm; }
  :root { --abschnitt: 30px; --schatten: 5px; --passepartout: 4px; --projekt-luft: 0px; }
  html { scroll-behavior: auto; }
  body { background: #fff; font-size: 10.5pt; line-height: 1.42; }
  .leiste, .sprung, .knopf, .clip__knopf, .falte__knopf, .lupe, .aufbau, .fall-ende__kapitel, .fall-ende__naechstes, .fall-ende__wege,
  .abzugreihe, .abzug__ausschnitt, .stift__punkt, .stift__pfeil, .kontakt__knoepfe, .lage { display: none !important; }
  /* Fallstudie auf Papier: vom Schlussblock bleibt nur die Adresse */
  .fall-ende.blatt { border-top: 2px solid var(--tinte); padding-top: 6pt; margin-top: 16pt; }
  .fall-ende__kontakt { margin: 0; }
  .fall-ende__kontakt > a { min-height: 0; font-size: 16pt; }
  main { overflow: visible; }
  .blatt { display: block; padding-inline: 0; }
  .blatt > * { margin-bottom: 8pt; }

  /* Kopf */
  .kopf.blatt { display: block; position: relative; padding: 0 0 12pt; }
  .kopf__name { font-size: 58pt; line-height: .82; }
  /* !important, weil die Anordnung des Kopfs in assets/kopf/abschnitt.css mit #oben arbeitet */
  .kopf__portrait { position: absolute !important; right: 0; top: 0; width: 34mm !important; margin: 0 !important; rotate: none !important; box-shadow: none !important; }
  .kopf__rolle { margin: 10pt 40mm 0 0; }
  .kopf__beruf { rotate: none; font-size: 14pt; }
  .kopf__zusatz { margin: 0; max-width: none; font-size: 10.5pt; }
  .kopf__satz { margin: 12pt 40mm 0 0; font-size: 13pt; max-width: none; }
  .kopf__fakten { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 0 12pt; margin-top: 12pt; }
  .kopf__fakten > div { border-bottom: 0; }
  .kopf__fakten dd { font-size: 13pt; }
  .kopf__knoepfe { margin-top: 8pt; gap: 4pt 14pt; }
  .kopf__knoepfe > a:not(.knopf) { min-height: 0; }

  /* gruene und dunkle Felder werden zu Papier mit Linie: keine helle Schrift geht verloren */
  .arbeit, .kontakt { background: none !important; color: var(--tinte); padding-block: 10pt; border-top: 3px solid var(--tinte); margin-top: 16pt; }
  .schritte li::before, .leitsatz .leitsatz__tests { color: var(--gruen-tief); }
  .leitsatz .leitsatz__tests { font-size: 48pt; }
  .leitsatz { font-size: 26pt; display: block; }
  .leitsatz span { font-size: 26pt; }
  .kontakt__titel, .arbeit .rubrik { background: none; color: var(--tinte); padding: 0; }
  .kontakt__wege a { font-size: 24pt; text-decoration-color: var(--gruen); }
  .kontakt__wege a[href]::after { content: none !important; }
  .kontakt__art { color: var(--tinte); }

  /* Fallstudie */
  .projekt { break-before: page; padding-top: 0; }
  body.fallstudie .projekt { break-before: auto; }
  .projekt__kopf.blatt { display: block; }
  .kapitelzeile { margin-bottom: 6pt; }
  .projekt__nr { font-size: 60pt; float: left; margin: 0 12pt 0 0; color: var(--gruen-tief); }
  .projekt__titelfeld, .projekt__kurz, .projekt__tor { padding-left: 0; }
  .projekt__titel { font-size: 44pt; }
  .projekt__kurz { font-size: 14pt; margin-top: 6pt; }
  .projekt__tor { clear: both; margin-top: 8pt; }
  .steckbrief { clear: both; display: grid; grid-template-columns: 1fr 1fr; column-gap: 14pt; margin-top: 10pt; border-bottom: 0; }
  .steckbrief > div { grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--tinte); padding: 5pt 0 8pt; }
  .einstieg, .beleg, .punkte, .projekt__ende, .abzug--buehne, .vergleich { margin-top: 14pt; }
  .beleg > .beleg__text, .beleg > .abzug { grid-column: auto; grid-row: auto; }
  .abschnitt__titel { font-size: 30pt; }
  .beleg__text > :is(h3, h4), .punkt > :is(h3, h4) { font-size: 19pt; }
  .vergleich { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14pt; }
  .vergleich dd { font-size: 15pt; }
  .ablauf > li { padding: 4pt 8pt; font-size: 10pt; }
  .abzug, .zettel, .balken, .steckbrief > div, .schritte li, .zeitleiste > div, .einstieg__ist, .einstieg__tut, .punkt, .technik, .belege, .vergleich, .ablauf > li { break-inside: avoid; }
  h2, h3, h4, .rubrik, .punkte__titel, .kapitelzeile { break-after: avoid; }
  .abzug { max-width: 140mm; }
  .abzug--hoch, .beleg--hoch > .abzug { max-width: 52mm; width: auto; justify-self: start; }
  .abzug--buehne .abzug__rahmen { margin-inline: 0 var(--schatten); }
  .abzug figcaption { margin-top: 6pt; font-size: 9.5pt; }

  /* Schraffur als feine Linie */
  .abzug--buehne .abzug__rahmen::after { background: none; border-right: 1px solid var(--tinte); border-bottom: 1px solid var(--tinte); }
  .zettel:has(> .zahlen)::after { background: none; border-right: 1px solid var(--tinte); border-bottom: 1px solid var(--tinte); }

  /* Stiftmarke: Kreis bleibt, Notiz mit Ziffer darunter */
  .stift__kreis { display: block; }
  .stift__kreis path { stroke-dashoffset: 0 !important; }
  .abzug__notiz { display: grid; margin: 6pt 0 0; font-size: 13pt; }
  .abzug__notiz::before { display: grid !important; }

  /* Linkziele lesbar machen */
  main a[href^="http"]::after, .fuss a[href^="http"]::after { content: " (" attr(href) ")" !important; font-family: var(--f-text); font-weight: 400; font-size: 8.5pt; word-break: break-all; text-decoration: none; }
  a[href^="mailto:"]::after { content: ""; }
  .abzug__bild[href]::after, .lage a::after, .steckbrief a::after { content: none !important; }
  .fuss.blatt { padding: 8pt 0 0; }
  .fuss.blatt > * { margin-bottom: 0; }
  .fuss__links { display: none; }
}
