  /* Schriften lokal (SIL Open Font License), siehe fonts/LIZENZ.txt */
  @font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/instrument-serif-400.woff2") format("woff2"); }
  @font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/instrument-serif-400-italic.woff2") format("woff2"); }
  @font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/fonts/source-serif-4-var.woff2") format("woff2"); }
  @font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2"); }
  @font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2"); }

  :root {
    --papier: #f2ecdd; --papier-hell: #faf6ed; --papier-dunkel: #e7dec8;
    --tinte: #2a2420; --neben: #5a5047; --blau: #2c4a7f; --linie: #ccc2b0; --marker: #f3e18c; --etikett: #453c34;
    --titel: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --text: "Source Serif 4", "Iowan Old Style", Georgia, serif;
    --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
    --rand: clamp(16px, 5vw, 64px);
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 88px; }
  body { margin: 0; background: var(--papier); color: var(--tinte); font-family: var(--text);
         font-size: 1.1875rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
  img { max-width: 100%; height: auto; display: block; }
  a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
  a:hover { color: var(--blau); }
  :focus-visible { outline: 2px solid var(--blau); outline-offset: 3px; }

  /* Etiketten wie die Seitenköpfe im Buch */
  .etikett { font-family: var(--mono); font-size: 0.8125rem; line-height: 1.4; letter-spacing: 0.11em; text-transform: uppercase; color: var(--etikett); }

  /* Knopf */
  .knopf { display: inline-block; font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
           text-decoration: none; color: var(--papier-hell); background: var(--tinte); padding: 0.95em 1.4em; border: 1px solid var(--tinte); border-radius: 2px;
           transition: background .15s, border-color .15s; white-space: nowrap; }
  .knopf:hover { background: var(--blau); border-color: var(--blau); color: var(--papier-hell); }
  .knopf-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }

  /* Kopf, wandert mit */
  .kopf { position: sticky; top: 0; z-index: 20; background: rgba(242, 236, 221, 0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--linie); }
  .kopf-innen { max-width: 76rem; margin: 0 auto; padding: 12px var(--rand); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .name { font-family: var(--titel); font-size: 1.5rem; line-height: 1; text-decoration: none; }
  .kopf .knopf-zeile { flex-wrap: nowrap; }
  .kopf .knopf { padding: 0.7em 1.1em; }

  /* Leiste unten auf dem Handy */
  .leiste { display: none; transition: transform 0.4s ease, opacity 0.4s ease, visibility 0s; }
  .leiste.ruht { transform: translateY(100%); opacity: 0; visibility: hidden; transition: transform 0.4s ease, opacity 0.4s ease, visibility 0s 0.4s; }

  /* Abschnitte */
  .abschnitt { border-bottom: 1px solid var(--linie); }
  .innen { max-width: 76rem; margin: 0 auto; padding: clamp(56px, 9vw, 120px) var(--rand); display: grid; grid-template-columns: minmax(0, 38rem) minmax(0, 1fr); column-gap: clamp(16px, 4vw, 56px); }
  .inhalt { grid-column: 1; }
  .bild { grid-column: 2; align-self: start; justify-self: end; max-width: 26rem; width: 100%; }
  /* Randnotiz: eine Zeile aus dem Text daneben, läuft beim Lesen mit */
  .rand { grid-column: 2; align-self: start; justify-self: end; width: 100%; max-width: 17rem; position: sticky; top: 7.5rem; margin-top: 5.4rem; }
  .rand p { margin: 0; padding-top: 0.9rem; border-top: 1px solid var(--tinte); font-family: var(--titel); font-size: 1.75rem; line-height: 1.15; color: var(--neben); }
  .rand p.zitat { font-size: 1.9rem; color: var(--blau); }
  .rand span { display: block; }
  .bild img { width: 100%; }
  h2 { font-family: var(--titel); font-weight: 400; font-size: clamp(2.25rem, 5.2vw, 3.5rem); line-height: 1.04; letter-spacing: -0.005em; margin: 0 0 0.7em; }
  h3 { font-family: var(--titel); font-weight: 400; font-size: 1.75rem; line-height: 1.15; margin: 2.2em 0 0.45em; }
  p { margin: 0 0 1.35em; }
  .z span { display: block; }             /* Zeile für Zeile */
  .z span + span { margin-top: 0.12em; }
  .z span [lang] { display: inline; margin-top: 0; }   /* fremdsprachiges Wort in der Zeile */
  .inhalt > :last-child { margin-bottom: 0; }
  .leise { color: var(--neben); }
  .zitat { font-family: var(--titel); font-style: italic; color: var(--blau); font-size: 1.3em; line-height: 1.25; }
  mark { background: var(--marker); color: inherit; padding: 0.08em 0.25em; margin: 0 -0.25em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
  .gross { font-family: var(--titel); font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; margin: 0 0 0.2em; }
  .preis { font-family: var(--titel); font-size: clamp(2rem, 9.2vw, 3.1rem); white-space: nowrap; line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 0.18em; }

  /* Hervorheben, 3 Regeln:
     unterstrichen = Link, sonst nichts.
     gelb = Davids Haltung, nur in den grossen Aussagen, auf der Zeile, auf die es ankommt.
     blau kursiv = jemand spricht (wörtliche Rede). */
  .aussage { background: var(--papier-hell); }
  .aussage .innen { display: block; padding-top: clamp(64px, 10vw, 136px); padding-bottom: clamp(64px, 10vw, 136px); }
  .aussage p { margin: 0; font-family: var(--titel); font-size: clamp(2.3rem, 7vw, 5rem); line-height: 1.06; letter-spacing: -0.01em; }
  .aussage span { display: block; }
  .aussage .nach { margin-top: 0.5em; font-size: 0.56em; line-height: 1.2; color: var(--neben); letter-spacing: 0; }
  /* Das Gelb liegt wie ein Leuchtstift unter den Buchstaben: Unterlängen der Zeile darüber (g, p, j) bleiben ganz.
     #f8e997 mal Papier-hell ergibt wieder das Marker-Gelb. */
  .aussage mark { padding: 0 0.12em; margin: 0 -0.12em; background: #f8e997; mix-blend-mode: multiply; }

  /* Stimme von aussen */
  .beleg .innen { display: block; padding-top: clamp(36px, 5vw, 60px); padding-bottom: clamp(36px, 5vw, 60px); }
  .beleg blockquote { margin: 0 0 0.9rem; max-width: 46rem; font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
  .beleg .etikett { margin: 0; }

  /* Hero */
  .hero .innen { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); align-items: center; padding-top: clamp(40px, 7vw, 88px); }
  .hero .inhalt { grid-column: 1; max-width: 40rem; }
  .hero .bild { grid-column: 2; max-width: none; }
  .hero .bild img { aspect-ratio: 4 / 5; object-fit: cover; }
  h1 { margin: 0 0 0.5em; font-weight: 400; }
  h1 .etikett { display: block; margin-bottom: 2.2rem; }
  h1 .kicker { display: block; font-family: var(--titel); font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.1; color: var(--neben); }
  h1 .titel { display: block; font-family: var(--titel); font-size: clamp(4.5rem, 15vw, 10.5rem); line-height: 0.92; letter-spacing: -0.02em; }
  .hero p { font-size: 1.25rem; line-height: 1.5; max-width: 34rem; }
  .begriffe { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--linie); margin: 2rem 0 2.2rem; max-width: 34rem; }
  .begriffe div { position: relative; padding: 0.8rem 0.9rem 0.9rem; border-left: 1px solid var(--linie); }
  .begriffe a::after { content: ""; position: absolute; inset: 0; }   /* die ganze Zelle ist antippbar */
  .begriffe div:first-child { border-left: 0; }
  .begriffe b { display: block; font-family: var(--titel); font-weight: 400; font-size: 1.3rem; line-height: 1.15; }
  .begriffe .etikett { display: block; margin-top: 0.35rem; }
  .zahlen { margin: -0.5rem 0 1.6rem; }
  .zahlen b { font-size: 2rem; line-height: 1.05; }

  /* Wendepunkt */
  .wende { background: var(--tinte); color: var(--papier); border-bottom: 0; }
  .wende .innen { display: block; padding-top: clamp(72px, 12vw, 160px); padding-bottom: clamp(72px, 12vw, 160px); }
  .wende h2 { font-size: clamp(2.8rem, 9vw, 6.5rem); line-height: 0.98; margin: 0; }
  .wende h2 em { display: block; color: #cfc6b3; }

  /* Die 4 Schritte */
  .schritte { list-style: none; margin: 0 0 1.35em; padding: 0; border: 1px solid var(--linie); counter-reset: s; }
  .schritte li { counter-increment: s; padding: 0.75rem 0.9rem 0.8rem 3.2rem; border-top: 1px solid var(--linie); position: relative; }
  .schritte li:first-child { border-top: 0; }
  .schritte li::before { content: counter(s); position: absolute; left: 0.9rem; top: 1.05rem; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; color: var(--neben); }

  /* Bild wie im Buch eingeklebt */
  .foto { background: #fff; padding: 12px 12px 40px; box-shadow: 0 10px 28px rgba(42, 36, 32, 0.18); transform: rotate(1.6deg); }

  /* Fusszeile */
  footer { background: var(--papier-dunkel); }
  footer .innen { display: block; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
  footer .name { font-size: 2.4rem; display: block; margin-bottom: 0.3rem; }
  footer p { margin-bottom: 1.6em; }
  footer .haltung { display: grid; font-family: var(--titel); font-size: clamp(1.9rem, 4.6vw, 2.7rem); line-height: 1.12; margin: 0 0 1.1em; }
  footer .haltung span { grid-area: 1 / 1; opacity: 0; animation: haltung 42s infinite; }   /* 6 Sätze, je 7 s */
  footer .haltung span:nth-child(2) { animation-delay: 7s; }
  footer .haltung span:nth-child(3) { animation-delay: 14s; }
  footer .haltung span:nth-child(4) { animation-delay: 21s; }
  footer .haltung span:nth-child(5) { animation-delay: 28s; }
  footer .haltung span:nth-child(6) { animation-delay: 35s; }
  footer .haltung mark { padding: 0 0.12em; margin: 0 -0.06em; }
  /* 6 Striche über den Sätzen: so viele sind es, der dunkle ist der Satz, der gerade steht (gleicher Takt wie die Sätze) */
  footer .takt { display: flex; gap: 0.4rem; margin: 0 0 0.9em; }
  footer .takt i { position: relative; width: 1.5rem; height: 2px; background: var(--linie); background: color-mix(in srgb, var(--neben) 32%, transparent); }
  footer .takt i::after { content: ""; position: absolute; inset: 0; background: var(--tinte); opacity: 0; animation: haltung 42s infinite; }
  footer .takt i:nth-child(2)::after { animation-delay: 7s; }
  footer .takt i:nth-child(3)::after { animation-delay: 14s; }
  footer .takt i:nth-child(4)::after { animation-delay: 21s; }
  footer .takt i:nth-child(5)::after { animation-delay: 28s; }
  footer .takt i:nth-child(6)::after { animation-delay: 35s; }
  @keyframes haltung { 0% { opacity: 0; } 2% { opacity: 1; } 15.3% { opacity: 1; } 17.3% { opacity: 0; } 100% { opacity: 0; } }
  footer .klein { font-size: 1rem; color: var(--neben); }
  footer .recht { font-family: var(--mono); font-size: 0.8125rem; line-height: 1.7; letter-spacing: 0.05em; color: var(--etikett); margin: 0; }

  @media (max-width: 960px) {
    .innen { grid-template-columns: minmax(0, 1fr); }
    .bild { grid-column: 1; justify-self: start; margin-top: 2.5rem; max-width: 22rem; }
    .rand { display: none; }
    .hero .innen { grid-template-columns: minmax(0, 1fr); }
    /* einspaltig: zuerst der Titel, dann das Bild, dann der Text */
    .hero .inhalt { display: contents; }
    .hero .inhalt > * { order: 3; }
    .hero .inhalt > h1 { order: 1; margin-bottom: 1.9rem; }
    .hero .bild { grid-column: 1; order: 2; margin: 0 0 2rem; max-width: 20rem; }
    .hero .begriffe { margin-top: 0.3rem; }   /* im Raster fallen die Abstände nicht mehr zusammen */
    .hero .bild img { aspect-ratio: 1 / 1; object-position: 50% 12%; }
  }
  @media (max-width: 640px) {
    body { font-size: 1.125rem; padding-bottom: 72px; }
    /* kein Einzug: neue Zeilen haben Luft, umbrochene Zeilen stehen eng darunter */
    .z span { line-height: 1.42; }
    .z span + span { margin-top: 0.42em; }
    .z span.preis { line-height: 1.05; }
    .leiste .etikett { font-size: 0.75rem; line-height: 1.3; }
    .kopf .knopf-zeile { display: none; }
    .leiste { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 12px;
              padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--papier-hell); border-top: 1px solid var(--linie); }
    .leiste .knopf { padding: 1em 1em; font-size: 0.75rem; }
    /* Tippflächen in der Fusszeile */
    footer .klein a { display: inline-block; padding: 0.55em 0; }
    footer .recht a { display: inline-block; padding: 0.8em 0; }
    .begriffe { grid-template-columns: 1fr; }
    .begriffe div { border-left: 0; border-top: 1px solid var(--linie); }
    .begriffe div:first-child { border-top: 0; }
    .zahlen { grid-template-columns: repeat(3, 1fr); }
    .zahlen div { border-top: 0; border-left: 1px solid var(--linie); padding: 0.7rem 0.6rem 0.8rem; }
    .zahlen div:first-child { border-left: 0; }
    .zahlen b { font-size: 1.6rem; }
    h1 .etikett { margin-bottom: 1.4rem; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; } .knopf, .leiste, .leiste.ruht { transition: none; }
    footer .haltung span { animation: none; opacity: 1; grid-area: auto; }
    footer .haltung span + span { margin-top: 0.3em; }
    footer .takt { display: none; }   /* alle 6 Sätze stehen untereinander, es gibt nichts zu zählen */
  }

  /* Unterseiten (Ethik, Datenschutz, Impressum, 404) */
  .seite .innen { display: block; max-width: 46rem; }
  .seite h1 { font-family: var(--titel); font-size: clamp(2.6rem, 7vw, 4.2rem); line-height: 1.02; margin: 0.6rem 0 0.5em; }
  .seite h2 { font-size: 1.75rem; line-height: 1.15; margin: 2.2em 0 0.5em; }
  .seite h3 { font-size: 1.35rem; margin: 1.6em 0 0.3em; }
  .seite ul { margin: 0 0 1.35em; padding-left: 1.2em; }
  .seite li { margin-bottom: 0.35em; }
  .seite address { font-style: normal; margin: 0 0 1.35em; }
  .seite h1, .seite h2 { text-wrap: balance; }
  .seite .z span { text-wrap: pretty; }
  @media (min-width: 641px) { .seite .weiter a { white-space: nowrap; } }   /* ein Link bricht nicht mitten im Text */
  @media (max-width: 640px) { .seite .weiter { line-height: 2.2; } }        /* am Handy mehr Abstand zwischen den Links */
  .seite .stand { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--neben); margin-top: 3em; }
  footer .recht a { text-decoration: none; }
  footer .recht a:hover { text-decoration: underline; }

  /* Newsletter-Anmeldung */
  .anmelden { margin: 2.2rem 0 1.8rem; max-width: 34rem; }
  .anmelden label { display: block; margin-bottom: 0.55rem; }
  .feld-zeile { display: flex; flex-wrap: wrap; gap: 10px; }
  .anmelden input { flex: 1 1 15rem; min-width: 0; font: inherit; color: var(--tinte); background: var(--papier-hell); border: 1px solid var(--tinte); border-radius: 2px; padding: 0.55em 0.75em; }
  .anmelden input:focus-visible { outline-offset: 2px; }
  .anmelden .knopf { cursor: pointer; }

  /* Burnout-Gleichung (/burnoutology) */
  .gleichung { margin: 2rem 0 2.2rem; padding: 1.5rem 0 1.3rem; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
  .gleichung p { font-family: var(--titel); font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.14; margin: 0 0 0.7rem; }
  .gleichung p span { display: inline-block; white-space: nowrap; }
  .gleichung figcaption { margin: 0; }
  .seite .z b { font-weight: 600; }
  /* Gleichung: die 3 Teile erscheinen nacheinander, 1 Mal (Klasse «bereit» setzt das Skript auf der Seite) */
  .gleichung.bereit p span { opacity: 0; transition: opacity 0.9s ease; }
  .gleichung.bereit.los p span { opacity: 1; }
  .gleichung.bereit.los p span:nth-child(2) { transition-delay: 0.9s; }
  .gleichung.bereit.los p span:nth-child(3) { transition-delay: 1.8s; }
  @media (prefers-reduced-motion: reduce) { .gleichung.bereit p span { opacity: 1; transition: none; } }
  .seite .schluss { margin-top: 2.6em; }
