/* =====================================================================
   Basis-Stil der ganzen Seite (Nebel, Zettel-Board, Brief auf der Über-mich-Seite).
   Die Seite ist eine Fahrt vom dunklen Schwarzwaldmorgen ins Tageslicht.
   effekte.js setzt beim Scrollen --bg, --fg, --leise, --linie, --akzent
   an <html> (Klasse "fliesst"). Ohne JavaScript oder bei reduzierter
   Bewegung hat jeder Abschnitt seinen festen Ton (Abschnitt "statisch").
   ===================================================================== */

@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  /* Töne der Fahrt: Waldschwarz, Moos-Grau, Nebelgrau, heller Abschluss */
  --wald: #121714;
  --moos: #2a312c;
  --nebel: #b7bdb6;
  --messing: #e8aa51;

  /* Laufende Werte, effekte.js überschreibt sie beim Scrollen */
  --bg: #121714;
  --fg: #eef0ec;
  --leise: #d2d7d0;
  --linie: rgba(238, 240, 236, 0.16);
  --linie-stark: rgba(238, 240, 236, 0.3);
  --akzent: #e8aa51;
  --akzent-text: #e8aa51;

  --schrift: "Geist Variable", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --rand: clamp(1rem, 4vw, 2.5rem);
  --abstand: clamp(4.5rem, 10vw, 8.5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
picture {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
blockquote,
ol,
ul {
  margin: 0;
  padding: 0;
}
ol,
ul {
  list-style: none;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
a {
  color: inherit;
}

.nur-lesen {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--akzent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--messing);
  color: var(--wald);
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}
.skip-link:focus {
  top: 1rem;
}

.breit {
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--rand);
}

/* =====================================================================
   Statisch: fester Ton je Abschnitt (ohne JavaScript, bei reduzierter
   Bewegung). Mit Klasse "fliesst" setzt effekte.js die Farben fließend.
   ===================================================================== */
.hero { --ton: #121714; }
.satz { --ton: #1b221e; }
.sorgen { --ton: #2a312c; }
.leistungen { --ton: #4a544d; }
.probe { --ton: #b7bdb6; }
.ablauf { --ton: #dfe3dc; }
.schluss,
.fuss { --ton: #f2f4ef; }

html:not(.fliesst) :is(.satz, .sorgen, .leistungen, .probe, .ablauf, .schluss, .fuss) {
  background: var(--ton);
}
html:not(.fliesst) :is(.probe, .ablauf, .schluss, .fuss) {
  --fg: #1c221e;
  --leise: #3a443d;
  --linie: rgba(28, 34, 30, 0.18);
  --linie-stark: rgba(28, 34, 30, 0.32);
  --akzent: #a26b14;
  --akzent-text: #6b470f;
  color: var(--fg);
}

/* ---- Knöpfe -------------------------------------------------------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  background: var(--messing);
  color: var(--wald);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.knopf:hover {
  background: #f2bb6a;
}
.knopf:active {
  transform: translateY(1px) scale(0.985);
}
.knopf--klein {
  min-height: 2.6rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
}
.knopf--gross {
  min-height: 3.5rem;
  padding: 0.9rem 1.9rem;
  font-size: 1.0625rem;
}

/* ---- Links: Unterstreichung läuft von der Zeigerseite herein ------- */
.ul {
  --ul-pos: 0%;
  padding-bottom: 3px;
  text-decoration: none;
  background-image:
    linear-gradient(var(--akzent), var(--akzent)),
    linear-gradient(rgba(232, 170, 81, 0.4), rgba(232, 170, 81, 0.4));
  background-image:
    linear-gradient(var(--akzent), var(--akzent)),
    linear-gradient(color-mix(in srgb, var(--akzent) 40%, transparent), color-mix(in srgb, var(--akzent) 40%, transparent));
  background-repeat: no-repeat;
  background-position: var(--ul-pos) 100%, 0 100%;
  background-size: 0% 2px, 100% 2px;
  transition: background-size 0.5s var(--ease);
}
.ul:hover,
.ul:focus-visible {
  background-size: 100% 3px, 100% 2px;
}
.kopf__nav .ul,
.fuss__links .ul {
  background-size: 0% 2px, 0% 2px;
}
.kopf__nav .ul:hover,
.kopf__nav .ul:focus-visible,
.fuss__links .ul:hover,
.fuss__links .ul:focus-visible {
  background-size: 100% 2px, 0% 2px;
}
@media (hover: none) {
  .ul:not(.kopf__nav .ul):not(.fuss__links .ul) {
    background-size: 100% 2px, 100% 2px;
  }
}
.textlink {
  color: var(--fg);
  font-weight: 600;
}

/* ---- Kopfleiste ------------------------------------------------------ */
.kopf {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(18, 23, 20, 0.86);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  color: var(--fg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linie);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
/* Über Fotos immer dunkel, damit die Schrift lesbar bleibt */
.kopf--foto {
  --bg: #121714;
  --fg: #eef0ec;
  --leise: #d2d7d0;
  --linie: rgba(238, 240, 236, 0.16);
  --akzent: #e8aa51;
}
.kopf__innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
  max-width: 78rem;
  margin-inline: auto;
  padding: 0.6rem var(--rand);
}
.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.marke__logo {
  border-radius: 8px;
}
.marke__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.marke__name {
  font-weight: 800;
  letter-spacing: -0.01em;
}
.marke__claim {
  font-size: 0.8rem;
  color: var(--leise);
}
.kopf__nav {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2rem);
  font-size: 0.95rem;
  order: 3;
  width: 100%;
  padding-bottom: 0.2rem;
}
.kopf__nav a {
  padding-block: 0.35rem 0.4rem;
  color: var(--leise);
}
.kopf__nav a:hover {
  color: var(--fg);
}
@media (min-width: 860px) {
  .kopf__innen {
    flex-wrap: nowrap;
    padding-block: 0.7rem;
  }
  .kopf__nav {
    order: 0;
    width: auto;
    padding-bottom: 0;
    margin-left: auto;
  }
  .kopf__nav a {
    padding-block: 0.5rem 0.55rem;
  }
}
@media (max-width: 520px) {
  .marke__claim {
    display: none;
  }
  .kopf__innen {
    gap: 0.2rem 0.6rem;
  }
  .marke {
    gap: 0.5rem;
  }
  .marke__name {
    font-size: 0.95rem;
  }
  .kopf .knopf--klein {
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }
}
@media (max-width: 400px) {
  .marke__name {
    font-size: 0.9rem;
  }
  .kopf .knopf--klein {
    padding-inline: 0.7rem;
    font-size: 0.8rem;
  }
}

/* =====================================================================
   Fenster: Foto steht fest, der Inhalt scrollt darüber (nur mit "fliesst").
   clip-path begrenzt das feste Foto auf den eigenen Abschnitt.
   ===================================================================== */
.fenster {
  position: relative;
  clip-path: inset(0);
  background: #121714;
  --fg: #eef0ec;
  --leise: #d2d7d0;
  --linie: rgba(238, 240, 236, 0.16);
  --linie-stark: rgba(238, 240, 236, 0.3);
  --akzent: #e8aa51;
  --akzent-text: #e8aa51;
  color: var(--fg);
}
.fenster__rahmen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.fenster__bild {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fliesst .fenster__rahmen {
  position: fixed;
  inset: 0 auto auto 0;
  height: 100vh;
}
.fliesst .fenster__bild {
  transform: scale(var(--zoom, 1.05));
  filter: blur(var(--unscharf, 0px));
}

/* ---- Hero ------------------------------------------------------------- */
.hero {
  display: flex;
  align-items: flex-end;
  height: 100vh;
  height: 100svh;
  min-height: 34rem;
}
@media (max-width: 759px) {
  .hero {
    height: 88vh;
    height: 88svh;
    min-height: 31rem;
  }
}
.hero .fenster__bild {
  object-position: 50% 58%;
}
/* Nebelschicht: effekte.js zeichnet weiche Wolken, die dem Zeiger ausweichen */
.nebel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, rgba(0, 0, 0, 0.4) 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 50%, rgba(0, 0, 0, 0.4) 100%);
}
/* Abdunklung von unten über dem Nebel, damit die Schrift AA-Kontrast hat */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(18, 23, 20, 0.94) 0%,
    rgba(18, 23, 20, 0.8) 30%,
    rgba(18, 23, 20, 0.34) 62%,
    rgba(18, 23, 20, 0.28) 100%
  );
}
.hero__text {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding: 7rem var(--rand) clamp(2.25rem, 6vw, 4.5rem);
}
.hero h1 {
  max-width: 14em;
  font-size: clamp(2.05rem, 6.4vw, 5.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero__satz {
  max-width: 34rem;
  margin-top: clamp(1rem, 2.2vw, 1.6rem);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.5;
}
.hero .knopf {
  margin-top: clamp(1.25rem, 2.6vw, 2rem);
}
.hero__hinweis {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--leise);
}
@media (max-width: 759px) {
  .hero__text {
    padding-top: 9rem;
  }
  .hero .knopf {
    width: 100%;
  }
  .hero__hinweis {
    display: none;
  }
}

/* Worte tauchen einzeln aus der Unschärfe auf (Klasse "ein" setzt effekte.js) */
.w {
  display: inline-block;
}
.zerlegt .w {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(0.3em);
}
.hero.ein .w {
  opacity: 1;
  filter: blur(0);
  transform: none;
  transition: opacity 1s var(--ease), filter 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--i) * 75ms + 250ms);
}
.zerlegt ~ .hero__satz,
.zerlegt ~ .knopf,
.zerlegt ~ .hero__hinweis {
  opacity: 0;
  transform: translateY(0.8rem);
}
.hero.ein .hero__satz,
.hero.ein .knopf,
.hero.ein .hero__hinweis {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.hero.ein .hero__satz {
  transition-delay: 1.3s;
}
.hero.ein .knopf {
  transition-delay: 1.5s, 1.5s, 0s;
}
.hero.ein .hero__hinweis {
  transition-delay: 1.7s;
}

/* ---- Satz: Aus Zettelwirtschaft wird ein Ansprechpartner ----------- */
.satz {
  position: relative;
  padding-block: var(--abstand);
}
.satz__buehne {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--rand);
}
.satz__alt,
.satz__neu {
  font-size: clamp(2rem, 8.1vw, 7.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.satz__alt {
  color: var(--leise);
}
.satz__alt .a {
  position: relative;
  display: inline-block;
  margin-right: 0.18em;
  opacity: 0.5;
}
.satz__alt .a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 56%;
  height: 0.07em;
  background: var(--akzent);
}
.satz__neu .n {
  display: block;
}

/* Gepinnt nur mit "fliesst": eine Bühne, die höchstens 120 vh lang anhält */
.fliesst .satz {
  height: 230vh;
  padding-block: 0;
}
.fliesst .satz__buehne {
  position: sticky;
  top: 0;
  height: 100vh;
  align-content: center;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.fliesst .satz__alt,
.fliesst .satz__neu {
  grid-area: 1 / 1;
  align-self: center;
}
.fliesst .satz__alt .a {
  --s: clamp(0, calc((var(--p, 0) - var(--von)) / 0.06), 1);
  --f: clamp(0, calc((var(--p, 0) - var(--von) - 0.04) / 0.08), 1);
  opacity: calc(1 - var(--f));
  filter: blur(calc(var(--f) * 14px));
}
.fliesst .satz__alt .a::after {
  transform: scaleX(var(--s));
  transform-origin: 0 50%;
}
.fliesst .satz__alt .a:nth-child(1) { --von: 0.04; }
.fliesst .satz__alt .a:nth-child(2) { --von: 0.11; }
.fliesst .satz__alt .a:nth-child(3) { --von: 0.18; }
.fliesst .satz__alt .a:nth-child(4) { --von: 0.25; }
.fliesst .satz__neu .n {
  --e: clamp(0, calc((var(--p, 0) - var(--nvon)) / 0.14), 1);
  opacity: var(--e);
  filter: blur(calc((1 - var(--e)) * 16px));
  transform: translateY(calc((1 - var(--e)) * 0.35em));
}
.fliesst .satz__neu .n:nth-child(1) { --nvon: 0.38; }
.fliesst .satz__neu .n:nth-child(2) { --nvon: 0.5; }
@media (max-width: 759px) {
  .fliesst .satz {
    height: 200vh;
  }
  .satz__alt,
  .satz__neu {
    font-size: 8.8vw;
  }
}

/* ---- Sorgen: Zeile hellt auf, wenn sie in der Bildschirmmitte steht - */
.sorgen {
  padding-block: var(--abstand);
}
.fliesst .sorgen {
  padding-top: calc(var(--abstand) * 0.4);
}
.sorgen__titel {
  max-width: 34rem;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--leise);
}
.sorgen__reihe {
  position: relative;
  display: grid;
  gap: 1rem 4rem;
  padding-block: clamp(1.75rem, 4vw, 3rem);
  border-top: 1px solid var(--linie);
}
.sorgen__reihe:first-of-type {
  margin-top: clamp(2.25rem, 5vw, 4rem);
}
.sorgen__reihe:last-child {
  border-bottom: 1px solid var(--linie);
}
.sorgen__reihe::before {
  content: "";
  position: absolute;
  left: calc(var(--rand) * -0.5);
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--akzent);
  transform: scaleY(var(--licht, 0));
  transform-origin: 50% 50%;
}
@media (max-width: 759px) {
  .sorgen__reihe::before {
    left: calc(var(--rand) * -0.8);
  }
}
.sorge__zitat p {
  font-size: clamp(2rem, 5.4vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  opacity: calc(0.45 + 0.55 * var(--licht, 1));
}
.sorge__antwort {
  max-width: 30rem;
  color: var(--leise);
  opacity: calc(0.72 + 0.28 * var(--licht, 1));
  transform: translateY(calc((1 - var(--licht, 1)) * 0.6rem));
}
@media (min-width: 900px) {
  .sorgen__reihe {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: end;
  }
}

/* ---- Leistungen ------------------------------------------------------ */
.leistungen {
  padding-top: var(--abstand);
}
.leistungen__titel {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.band {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--linie-stark);
}
.band:last-child {
  padding-bottom: var(--abstand);
}
.band__innen {
  display: grid;
  gap: 2rem 4rem;
  align-items: center;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--rand);
}
.band__text h3 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.band__text p {
  max-width: 28rem;
  margin-top: 1rem;
}
.band__text .band__mass {
  margin-top: 0.75rem;
  color: var(--leise);
}
.band__text .textlink {
  display: inline-block;
  margin-top: 1.5rem;
}
@media (min-width: 900px) {
  .band__innen {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .band--gedreht .band__innen {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
  .band--gedreht .band__text {
    order: 2;
  }
}

/* Auftauchen aus der Unschärfe, sobald es ins Bild kommt (Klasse "da") */
.fliesst [data-auftauchen] {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(2.5rem);
}
.fliesst [data-auftauchen].da {
  opacity: 1;
  filter: blur(0);
  transform: none;
  transition: opacity 0.9s var(--ease), filter 0.9s var(--ease), transform 1s var(--ease);
}
.fliesst .shot-huelle[data-auftauchen].da {
  transition-delay: 0.12s;
}

/* Screenshot: kippt dem Zeiger nach, Glanzlicht folgt, Klick öffnet groß */
.shot {
  position: relative;
  display: block;
  overflow: clip;
  border: 1px solid var(--linie-stark);
  border-radius: 10px;
  background: #0b0e0c;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  cursor: zoom-in;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sk, 1));
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--glanz, 0);
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 55%);
}

/* ---- Zwischenruf: Hände als Fenster ----------------------------------- */
.zwischen {
  min-height: 78vh;
  min-height: 78svh;
}
.zwischen__klebt {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  min-height: inherit;
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding: 6rem var(--rand) clamp(2.5rem, 7vw, 5rem);
}
.zwischen .fenster__rahmen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 23, 20, 0.85) 0%, rgba(18, 23, 20, 0.62) 40%, rgba(18, 23, 20, 0.4) 100%);
}
.fliesst .zwischen {
  min-height: 175vh;
}
.fliesst .zwischen__klebt {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
  align-items: center;
  padding-block: 6rem;
}
@media (max-width: 759px) {
  .fliesst .zwischen {
    min-height: 150vh;
  }
}
.zwischen__satz {
  max-width: 13em;
  font-size: clamp(2.4rem, 6.2vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

/* ---- Arbeitsprobe: Demo im Bildschirmrahmen --------------------------- */
.probe {
  padding-block: var(--abstand);
}
.probe__titel {
  max-width: 38rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.028em;
}
.demo-buehne {
  margin-top: clamp(2rem, 4vw, 3rem);
}
.demo-rahmen {
  position: relative;
  max-width: 62rem;
  margin-inline: auto;
  border: 1px solid var(--linie-stark);
  border-radius: 14px;
  background: #0b0e0c;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
}
.demo-leiste {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 2rem;
  padding-inline: 0.9rem;
  background: #2a312c;
  border-bottom: 1px solid rgba(238, 240, 236, 0.16);
}
.demo-leiste i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #4a544d;
}
.demo-flaeche {
  position: relative;
  height: clamp(26rem, 68vh, 44rem);
  background: #0b0e0c;
}
.demo-flaeche iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #0b0e0c;
}
.demo-poster,
.demo-flaeche picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.demo-poster {
  object-fit: cover;
  object-position: 70% 50%;
}
.demo-poster__text {
  position: absolute;
  left: clamp(1.25rem, 4vw, 3rem);
  top: clamp(1.25rem, 5vw, 3rem);
  max-width: 24rem;
  text-shadow: 0 1px 14px #0b0e0c, 0 0 28px rgba(11, 14, 12, 0.9);
}
.demo-poster__name {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #9bd79b;
}
.demo-poster__zeile {
  margin-top: 0.4rem;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #f3f1ec;
}
.demo-start {
  position: absolute;
  inset: auto 0 clamp(1.25rem, 4vw, 2.5rem) 0;
  display: flex;
  justify-content: center;
}
.demo-rahmen.laeuft .demo-poster,
.demo-rahmen.laeuft .demo-poster__text,
.demo-rahmen.laeuft .demo-start,
.demo-rahmen.laeuft picture {
  display: none;
}
.demo-unter {
  max-width: 62rem;
  margin: 1.1rem auto 0;
  font-size: 0.9rem;
  color: var(--leise);
}
.demo-gross {
  color: var(--fg);
  font-weight: 600;
}
@media (max-width: 759px) {
  .demo-rahmen {
    width: min(100%, 390px);
    border-width: 2px;
    border-radius: 28px;
  }
  .demo-leiste {
    height: 1.6rem;
    justify-content: center;
  }
  .demo-leiste i {
    display: none;
  }
  .demo-leiste::after {
    content: "";
    width: 4rem;
    height: 0.4rem;
    border-radius: 99px;
    background: #4a544d;
  }
  .demo-flaeche {
    height: clamp(30rem, 74svh, 40rem);
  }
  .demo-poster {
    object-position: 50% 92%;
  }
  .demo-poster__zeile {
    font-size: 1.7rem;
  }
  .demo-unter {
    margin-inline: 0;
  }
}

/* Demo im großen Fenster: fest dunkel, unabhängig vom Seitenton */
.demo-dialog {
  border: 1px solid rgba(238, 240, 236, 0.3);
  padding: 0;
  width: min(96vw, 1500px);
  height: min(92vh, 960px);
  max-width: none;
  max-height: none;
  background: #0b0e0c;
  color: #eef0ec;
  border-radius: 14px;
  overflow: hidden;
}
.demo-dialog[open] {
  display: flex;
  flex-direction: column;
}
.demo-dialog::backdrop {
  background: rgba(8, 10, 9, 0.9);
  backdrop-filter: blur(4px);
}
.demo-dialog__kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.9rem;
  background: #2a312c;
  border-bottom: 1px solid rgba(238, 240, 236, 0.16);
  font-size: 0.9rem;
  color: #d2d7d0;
}
.demo-dialog iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: #0b0e0c;
}
.demo-dialog .btn {
  min-height: 2.4rem;
  padding: 0.4rem 1.1rem;
  background: transparent;
  color: #eef0ec;
  font: inherit;
  font-weight: 600;
  border: 1px solid rgba(238, 240, 236, 0.3);
  border-radius: 999px;
  cursor: pointer;
}
.demo-dialog .btn:hover {
  border-color: #eef0ec;
}
.demo-dialog :focus-visible,
.bild-dialog :focus-visible {
  outline-color: #e8aa51;
}

/* ---- Persönlich: Werkbank als Fenster --------------------------------- */
.person {
  display: flex;
  align-items: flex-end;
  min-height: 92vh;
  min-height: 92svh;
}
.fliesst .person {
  min-height: 135vh;
}
.person .fenster__bild {
  object-position: 50% 55%;
}
.person::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(18, 23, 20, 0.78) 0%, rgba(18, 23, 20, 0.5) 38%, rgba(18, 23, 20, 0) 68%),
    linear-gradient(to top, rgba(18, 23, 20, 0.95) 0%, rgba(18, 23, 20, 0.72) 34%, rgba(18, 23, 20, 0.12) 66%, rgba(18, 23, 20, 0) 100%);
}
@media (max-width: 759px) {
  .person::after {
    background: linear-gradient(to top, rgba(18, 23, 20, 0.97) 0%, rgba(18, 23, 20, 0.92) 50%, rgba(18, 23, 20, 0.5) 78%, rgba(18, 23, 20, 0.1) 100%);
  }
}
.person__innen {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding: 8rem var(--rand) clamp(3rem, 8vw, 6rem);
}
.person__text {
  max-width: 36rem;
}
.person__text h2 {
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.person__text p {
  margin-top: 1.25rem;
  font-size: 1.125rem;
}
.person__text h2 + p {
  margin-top: 1.5rem;
}
.person__fuss {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.person__avatar {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--linie-stark);
}

/* ---- Ablauf: Schritte leuchten nacheinander auf ----------------------- */
.ablauf {
  padding-block: var(--abstand);
}
.ablauf__titel {
  max-width: 36rem;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.schritte {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: clamp(2.25rem, 5vw, 4rem);
  padding-left: 1.75rem;
}
/* Linie: Spur und wachsende Füllung (--fill setzt effekte.js, ohne Skript voll) */
.schritte::before,
.schritte::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
}
.schritte::before {
  background: var(--linie-stark);
}
.schritte::after {
  background: var(--akzent);
  transform: scaleY(var(--fill, 1));
  transform-origin: 50% 0;
}
.schritte li {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  column-gap: 0.75rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--linie);
}
.schritte li::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 2rem;
  width: 14px;
  height: 14px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--akzent);
  box-shadow: 0 0 0 5px rgba(162, 107, 20, 0.18);
}
.schritt__nr {
  grid-row: 1 / span 3;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.schritt__zeit {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--akzent-text);
}
.schritte h3 {
  margin-top: 0.25rem;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.schritte li p:last-child {
  margin-top: 0.4rem;
  color: var(--leise);
}
/* Noch nicht erreichte Schritte stehen leiser da (nur mit "fliesst") */
.fliesst .schritte li {
  transition: opacity 0.6s var(--ease);
  opacity: 0.4;
}
.fliesst .schritte li::before {
  background: var(--linie-stark);
  box-shadow: none;
  transition: background-color 0.4s ease, box-shadow 0.6s var(--ease);
}
.fliesst .schritte li.an {
  opacity: 1;
}
.fliesst .schritte li.an::before {
  background: var(--akzent);
  box-shadow: 0 0 0 6px rgba(162, 107, 20, 0.22);
}
@media (min-width: 900px) {
  .schritte {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 2rem;
    padding-left: 0;
    padding-top: 1.75rem;
  }
  .schritte::before,
  .schritte::after {
    right: 0;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .schritte::after {
    transform: scaleX(var(--fill, 1));
    transform-origin: 0 50%;
  }
  .schritte li {
    display: block;
    padding: 1.5rem 0 0;
    border-bottom: 0;
  }
  .schritte li::before {
    left: 0;
    top: -1.75rem;
    margin-left: 0;
    margin-top: -6px;
  }
  .schritt__nr {
    display: block;
    margin-bottom: 1.5rem;
    font-size: 4rem;
  }
  .schritte h3 {
    margin-top: 0.4rem;
  }
}

/* ---- Schluss: heller Abschluss ---------------------------------------- */
.schluss {
  padding-block: calc(var(--abstand) * 1.1);
}
.schluss__innen {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.schluss h2 {
  max-width: 13em;
  font-size: clamp(2.2rem, 6.2vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.schluss__innen > p:not(.schluss__mail) {
  max-width: 32rem;
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--leise);
}
.schluss .knopf {
  margin-top: 2rem;
}
.schluss__mail {
  margin-top: 1.5rem;
  color: var(--leise);
}
@media (max-width: 759px) {
  .schluss .knopf {
    width: 100%;
  }
}

/* ---- Fußzeile ----------------------------------------------------------- */
.fuss {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--linie);
}
.fuss__innen {
  display: grid;
  gap: 1.75rem 3rem;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--rand);
}
.fuss__meta {
  margin-top: 0.75rem;
  max-width: 24rem;
  font-size: 0.95rem;
  color: var(--leise);
}
.fuss__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: 0.95rem;
}
.fuss__links a {
  padding-block: 0.4rem 0.45rem;
  color: var(--leise);
}
.fuss__links a:hover {
  color: var(--fg);
}
@media (min-width: 900px) {
  .fuss__innen {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .fuss__links {
    max-width: 30rem;
    justify-content: flex-end;
  }
}

/* ---- Große Bildansicht ------------------------------------------------- */
.bild-dialog {
  max-width: none;
  max-height: none;
  width: min(94vw, 1600px);
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #eef0ec;
  overflow: visible;
}
.bild-dialog[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.bild-dialog::backdrop {
  background: rgba(8, 10, 9, 0.88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.bild-dialog__bild {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border: 1px solid rgba(238, 240, 236, 0.3);
  border-radius: 10px;
  background: #0b0e0c;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
.bild-dialog__zu {
  align-self: flex-end;
  min-height: 2.6rem;
  padding: 0.45rem 1.2rem;
  background: rgba(18, 23, 20, 0.7);
  color: #eef0ec;
  font: inherit;
  font-weight: 600;
  border: 1px solid rgba(238, 240, 236, 0.35);
  border-radius: 999px;
  cursor: pointer;
}
.bild-dialog__zu:hover {
  border-color: #eef0ec;
}
@media (prefers-reduced-motion: no-preference) {
  .bild-dialog[open] .bild-dialog__bild {
    animation: bild-auf 0.55s var(--ease) both;
  }
  .bild-dialog[open]::backdrop {
    animation: schleier-auf 0.4s ease both;
  }
  @keyframes bild-auf {
    from {
      opacity: 0;
      filter: blur(14px);
      transform: scale(0.94);
    }
    to {
      opacity: 1;
      filter: blur(0);
      transform: none;
    }
  }
  @keyframes schleier-auf {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .ul,
  .knopf,
  .kopf {
    transition: none;
  }
}


/* =====================================================================
   Ergänzung 1: Zettel-Board im Hero.
   Klassen umbenannt, damit sie nicht mit dem Nebel-Hero kollidieren:
   .fenster -> .prog, .buehne -> .board, .licht -> .prog-licht.
   ===================================================================== */
.hero {
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: clip;
}
.hero__text {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: end;
}
.hero__links {
  min-width: 0;
}
.hero h1 {
  max-width: 14em;
  font-size: clamp(2.05rem, 7.4vw, 3.6rem);
  text-shadow: 0 2px 28px rgba(8, 11, 9, 0.55);
}
.hero__satz,
.hero__hinweis {
  text-shadow: 0 1px 18px rgba(8, 11, 9, 0.7);
}
@media (min-width: 960px) {
  .hero__text {
    grid-template-columns: minmax(0, 4.6fr) minmax(0, 6.6fr);
    gap: clamp(2rem, 4vw, 4rem);
  }
  .hero h1 {
    font-size: clamp(2.1rem, 3.1vw, 3.5rem);
  }
}
@media (max-width: 759px) {
  .hero {
    min-height: 88vh;
    min-height: 88svh;
  }
  .hero__text {
    padding-top: 9rem;
  }
}

/* Die Bühne: Programmfenster, darüber die Zettel. Maße in cqw, skaliert mit der Breite. */
.board {
  position: relative;
  container-type: inline-size;
  min-width: 0;
}
/* sanfte Abdunklung im Nebel, damit Fenster und Zettel nicht verschwimmen */
.board::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(10, 14, 12, 0.55), rgba(10, 14, 12, 0));
}
.prog {
  border: 1px solid rgba(238, 240, 236, 0.28);
  border-radius: 14px;
  background: #1c2127;
  overflow: hidden;
  box-shadow: 0 2.2rem 4.5rem rgba(0, 0, 0, 0.55), 0 0.3rem 1rem rgba(0, 0, 0, 0.35);
}
.prog__leiste {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 2rem;
  padding-inline: 0.9rem;
  background: #20252b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.prog__leiste i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #464e58;
}
.prog__titel {
  margin-left: 0.8rem;
  font-size: 0.75rem;
  color: #c3c8cf;
}
.prog__bild {
  width: 100%;
  height: auto;
  aspect-ratio: 1545 / 640; /* unterer, leerer Teil des Screenshots bleibt abgeschnitten */
  object-fit: cover;
  object-position: top;
}

.zettel-haufen {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.zettel {
  --i: 0;
  --papier: #f1ede4;
  --blei: #4a4f57;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  padding: 0.85em 1em 0.9em;
  background: var(--papier);
  color: #343941;
  font-size: clamp(0.8rem, 2.15cqw, 1.2rem);
  font-style: italic;
  line-height: 1.2;
  border-radius: 2px;
  box-shadow: 0 0.6em 1.4em rgba(0, 0, 0, 0.4), 0 0.1em 0.25em rgba(0, 0, 0, 0.3);
  transform: rotate(var(--r));
  animation: zettel-weg 0.95s cubic-bezier(0.55, 0, 0.7, 0.45) both;
  animation-delay: calc(1.5s + var(--i) * 0.55s);
}
.zettel__text {
  display: block;
  font-weight: 650;
}
.zettel__klein {
  display: block;
  margin-top: 0.35em;
  font-size: 0.78em;
  font-weight: 500;
  color: var(--blei);
}
.zettel__tape {
  position: absolute;
  left: 50%;
  top: -0.55em;
  width: 3.4em;
  height: 1.15em;
  margin-left: -1.7em;
  background: rgba(232, 170, 81, 0.62);
  transform: rotate(-3deg);
}
.zettel__strich {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 1.1em;
  height: 0.16em;
  background: #2b2f36;
  border-radius: 1em;
  transform: scaleX(0) rotate(-1.5deg);
  transform-origin: left center;
  animation: zettel-strich 0.35s ease-out both;
  animation-delay: calc(1.5s + var(--i) * 0.55s - 0.45s);
}
.z1 { --x: -2cqw; --y: 3cqw;  --w: 28cqw; --r: -7deg; --r2: 14deg;  --dx: 60cqw;  --dy: 25cqw; --i: 0; z-index: 1; }
.z2 { --x: 31cqw; --y: 0cqw;  --w: 30cqw; --r: 3.5deg; --r2: -9deg; --dx: 34cqw;  --dy: 29cqw; --i: 1; z-index: 2; }
.z3 { --x: 65cqw; --y: 7cqw;  --w: 29cqw; --r: -4deg; --r2: 8deg;   --dx: -4cqw;  --dy: 24cqw; --i: 2; z-index: 3; }
.z4 { --x: 4cqw;  --y: 27cqw; --w: 29cqw; --r: 5deg;  --r2: -12deg; --dx: 52cqw;  --dy: 7cqw;  --i: 3; z-index: 4; }
.z5 { --x: 40cqw; --y: 31cqw; --w: 32cqw; --r: -5deg; --r2: 10deg;  --dx: 25cqw;  --dy: 2cqw;  --i: 4; z-index: 5; }

@keyframes zettel-weg {
  0% {
    transform: rotate(var(--r));
    opacity: 1;
  }
  16% {
    transform: translate(0, -1.6cqw) rotate(calc(var(--r) * 1.4)) scale(1.05);
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) rotate(var(--r2)) scale(0.3);
    opacity: 0;
  }
}
@keyframes zettel-strich {
  from {
    transform: scaleX(0) rotate(-1.5deg);
  }
  to {
    transform: scaleX(1) rotate(-1.5deg);
  }
}

/* Die Aufgabenliste im Fenster leuchtet kurz auf, wenn alles abgelegt ist */
.prog-licht {
  position: absolute;
  left: 58cqw;
  top: 26.9cqw;
  width: 37.6cqw;
  height: 14.3cqw;
  border: 2px solid var(--messing);
  border-radius: 1.2cqw;
  opacity: 0;
  pointer-events: none;
  animation: prog-licht 2.2s ease-in-out both;
  animation-delay: 4.3s;
}
@keyframes prog-licht {
  0% { opacity: 0; }
  25% { opacity: 0.95; }
  70% { opacity: 0.95; }
  100% { opacity: 0; }
}

/* Schmales Board: größere Zettel, damit man sie lesen kann */
@container (max-width: 560px) {
  .zettel {
    font-size: 0.78rem;
    width: 40cqw;
  }
  .z1 { --y: 2cqw; --x: -1cqw; }
  .z2 { --x: 52cqw; --y: 1cqw; }
  .z3 { --x: 24cqw; --y: 16cqw; }
  .z4 { --x: 0cqw; --y: 24cqw; }
  .z5 { --x: 53cqw; --y: 29cqw; }
  .z1 { --dx: 66cqw; --dy: 30cqw; }
  .z2 { --dx: 26cqw; --dy: 31cqw; }
  .z3 { --dx: 52cqw; --dy: 17cqw; }
  .z4 { --dx: 78cqw; --dy: 10cqw; }
  .z5 { --dx: 20cqw; --dy: 5cqw; }
}

@media (prefers-reduced-motion: reduce) {
  .zettel-haufen,
  .prog-licht {
    display: none;
  }
}

/* =====================================================================
   Ergänzung 2: Über-mich-Seite (Brief).
   Die ganze Seite ist hell, die Kopfleiste bleibt dunkel wie auf der Startseite.
   ===================================================================== */
@font-face {
  font-family: "Newsreader Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/newsreader-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader Variable";
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/newsreader-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader Variable";
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/newsreader-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.seite-hell {
  --bg: #f6f6f3;
  --fg: #22272d;
  --leise: #4a525c;
  --linie: rgba(34, 39, 45, 0.16);
  --linie-stark: rgba(34, 39, 45, 0.3);
  --akzent: #a26b14;
  --akzent-text: #6b470f;
  --flaeche: #ffffff;
  --serif: "Newsreader Variable", "Newsreader", Georgia, "Times New Roman", serif;
}
.anfang {
  padding-block: clamp(6.5rem, 12vw, 9rem) clamp(3rem, 7vw, 6rem);
}
.anfang__raster {
  display: grid;
  grid-template-columns: minmax(0, 23rem) minmax(0, 40rem);
  justify-content: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--rand);
}
.foto {
  position: relative;
  margin: 0.75rem 0 0;
  padding: clamp(0.55rem, 1.2vw, 0.85rem);
  background: var(--flaeche);
  border: 1px solid #d8dbde;
  box-shadow: 0 1px 2px rgba(25, 29, 35, 0.08), 0 14px 32px -12px rgba(25, 29, 35, 0.28);
  transform: rotate(-1.4deg);
}
.foto img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
}
.brief {
  max-width: 38rem;
}
.brief__ort {
  font-size: 0.875rem;
  color: var(--leise);
  text-align: right;
}
.brief__betreff {
  margin-top: 1.4rem;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.brief__anrede,
.brief__text,
.brief__gruss {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  line-height: 1.68;
}
.brief__anrede {
  margin-top: 1.5rem;
}
.brief__text {
  margin-top: 0.95rem;
}
.brief__schluss {
  margin-top: 1.5rem;
}
.brief__name {
  margin-top: 0.15rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.005em;
}
.brief__amt {
  font-size: 0.875rem;
  color: var(--leise);
}

/* Der Brief schreibt sich Zeile für Zeile, bei reduzierter Bewegung steht alles sofort da. */
@media (prefers-reduced-motion: no-preference) {
  .foto,
  .brief > * {
    animation: brief-erscheint 0.9s cubic-bezier(0.2, 0.65, 0.2, 1) both;
    animation-delay: calc(var(--i, 0) * 150ms + 150ms);
  }
  .foto {
    --i: 0;
    animation-name: brief-foto;
  }
  .brief > :nth-child(1) { --i: 1; }
  .brief > :nth-child(2) { --i: 2; }
  .brief > :nth-child(3) { --i: 3; }
  .brief > :nth-child(4) { --i: 4; }
  .brief > :nth-child(5) { --i: 5; }
  .brief > :nth-child(6) { --i: 6; }
  .brief > :nth-child(7) { --i: 7; }
  @keyframes brief-erscheint {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes brief-foto {
    from { opacity: 0; transform: translateY(10px) rotate(-1.4deg); }
    to { opacity: 1; transform: rotate(-1.4deg); }
  }
}

.abschluss {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid var(--linie);
}
.abschluss__innen {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--rand);
}
.abschluss h2 {
  max-width: 16em;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.abschluss p {
  max-width: 32rem;
  margin-top: 1.1rem;
  font-size: 1.125rem;
  color: var(--leise);
}
.abschluss .knopf {
  margin-top: 1.75rem;
}

@media (max-width: 900px) {
  .anfang__raster {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }
  .foto {
    width: min(100%, 17rem);
    margin-inline: 0.5rem auto;
  }
}
@media (max-width: 759px) {
  .abschluss .knopf {
    width: 100%;
  }
}
