/* avak.de · Gestaltung nach design-richtung.md, Werte aus den abgenommenen Skizzen in skizzen/ */

@font-face {
  font-family: "Karmina Sans";
  src: url("/assets/fonts/KarminaSans-VF-Upright.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}

:root {
  /* Farben */
  --schwarz: #111112;
  --anthrazit: #2E2E30;
  --dunkelgrau: #4C4C4E;
  --mittelgrau: #8F8F91;
  --hellgrau: #CCCCCE;
  --weiss: #FFFFFF;
  --rot: #CE1719;
  --rot-dunkel: #A51215;
  --rot-tief: #3A0607;      /* Ton in Ton auf Rot, Kontrast gut 3 : 1 */
  --foto-hell: #E4E4E6;     /* Platzhalter für Fotos auf hellem Grund */

  /* Gewichte: Medium als leichter Gegenpart, Heavy für Überschriften */
  --medium: 500;
  --heavy: 900;

  /* Abstände */
  --rand: clamp(20px, 3.4vw, 48px);
  --einzug: clamp(20px, 12vw, 180px);
  --logo-h: clamp(40px, 4vw, 58px);
  --kopf-h: calc(var(--rand) + var(--logo-h));

  /* Einstieg der Startseite (für das Regler-Panel in Phase 6) */
  --satz-top: clamp(150px, 19vh, 200px);
  --satz-gr: clamp(4rem, min(13.2vw, 14.5vh), 15.5rem);   /* abgenommen: 13,2 % der Breite, höchstens 14,5 % der Höhe */
  --satz-links: calc(var(--rand) * .6);
  --portrait-h: 86%;
  --vorstellung-b: min(38rem, 46vw);

  /* Schriftgrößen */
  --text: 1.0625rem;
  --h2: clamp(2.5rem, 5.2vw, 5rem);
  --h2-kontakt: clamp(3rem, 8.4vw, 8rem);
  --zitat: clamp(1.375rem, 2.4vw, 2.375rem);
  --lesetext: clamp(1.1875rem, 1.6vw, 1.4375rem);

  /* Bewegung */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --laufband-tempo: 40;      /* Laufband: Pixel pro Sekunde, schieben per Maus, Wischen, Trackpad */
}

/* ---------- Grundlage ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-family: "Karmina Sans", sans-serif; font-synthesis: none; font-kerning: normal;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scrollbar-color: var(--dunkelgrau) var(--hellgrau);
}
/* Fuß immer am unteren Rand, auch bei kurzen Seiten wie Kontakt und Bestätigung (Catherine 15.11.2026) */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
main { flex: 1 0 auto; }
body { position: relative; background: var(--weiss); color: var(--schwarz); font-size: var(--text); line-height: 1.55; font-weight: 400; overflow-x: clip; }
::selection { background: var(--schwarz); color: var(--weiss); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* Wörter in Versalien im Text als echte Kapitälchen (OpenType smcp/c2sc) */
.kap { font-variant-caps: all-small-caps; letter-spacing: .05em; hyphens: manual; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.springen { position: absolute; z-index: 10; top: 8px; left: 8px; padding: .6rem 1rem; background: var(--weiss); color: var(--schwarz); font-weight: var(--medium); text-decoration: none; transform: translateY(-160%); }
.springen:focus { transform: none; }

/* Flächen */
.rot { background: var(--rot); color: var(--weiss); }
.anthrazit { background: var(--anthrazit); color: var(--weiss); }
.hellgrau { background: var(--hellgrau); color: var(--schwarz); }
.weiss { background: var(--weiss); color: var(--schwarz); }
.rot ::selection { background: var(--weiss); color: var(--rot); }
.anthrazit ::selection { background: var(--weiss); color: var(--schwarz); }
/* Aneinanderstoßende Flächen: keine Haarlinie */
main > section, main > nav { margin-bottom: -1px; }

/* ---------- Kopf: liegt auf der Farbe des ersten Abschnitts ---------- */
.kopf { position: absolute; z-index: 5; top: 0; left: 0; right: 0; padding: var(--rand) var(--rand) 0; display: flex; justify-content: space-between; align-items: flex-start; color: var(--weiss); }
.kopf.hell { color: var(--schwarz); }
.marke img { height: var(--logo-h); width: auto; }
.kopf nav ul { display: flex; gap: clamp(18px, 2.4vw, 36px); font-weight: var(--medium); font-size: var(--text); }
.kopf nav a { text-decoration: none; }
.kopf nav a:hover, .kopf nav a[aria-current] { text-decoration: underline; }

/* ---------- Überschriften ---------- */
h1, h2 { font-weight: var(--heavy); }
h2 { font-size: var(--h2); line-height: 1; letter-spacing: .015em; text-wrap: balance; }
.leicht { font-weight: var(--medium); letter-spacing: -.01em; }
.kraeftig { font-weight: var(--heavy); letter-spacing: .015em; }

/* ---------- Platzhalter für Fotos (bis Catherine die Bilder liefert) ---------- */
.foto { background: var(--dunkelgrau); color: var(--hellgrau); display: flex; align-items: flex-end; padding: 20px; font-size: .9375rem; font-weight: var(--medium); letter-spacing: .03em; }
.weiss .foto, .hellgrau .foto { background: var(--foto-hell); color: var(--dunkelgrau); }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto:has(> img) { padding: 0; }
/* Screenshots von Websites (12.11.2026): eingerückt auf Hellgrau mit leichtem Schatten, damit sie sich vom weißen Seitengrund lösen.
   Regel für alle Projektseiten: Fotos randlos, Gestaltetes (Drucksachen, Screens) auf Hellgrau. Höhe ergibt sich aus dem Bild. */
.foto.bildschirm, .bilder .foto.bildschirm { display: block; aspect-ratio: auto; padding: 5.5% 7%; background: var(--hellgrau); }
.foto.bildschirm img { display: block; height: auto; object-fit: initial; box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 12px 40px rgb(0 0 0 / .14); }

/* Diashow (Schwanberg, Stundengebet): Bilder liegen übereinander, das nächste blendet in 3 s darüber ein (main.js).
   Bei »weniger Bewegung« bleibt das erste Bild stehen. */
.diashow { position: relative; overflow: hidden; }
.diashow img { position: absolute; inset: 0; opacity: 0; transition: opacity 3s linear; }
.diashow img.an { opacity: 1; }

/* ========== Startseite ========== */

/* Einstieg: rote Fläche, Haltungssatz Ton in Ton, Porträt davor, Text immer unter dem Satz */
.einstieg { position: relative; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; padding: var(--satz-top) 0 clamp(40px, 7vh, 72px); }
.satz { position: relative; z-index: 1; margin-left: var(--satz-links); color: var(--rot-tief); text-transform: uppercase; font-size: var(--satz-gr); line-height: .84; letter-spacing: -.01em; }
.satz span { display: block; }
.satz .leicht { font-weight: var(--medium); letter-spacing: -.01em; }
.satz .kraeftig { font-weight: var(--heavy); letter-spacing: -.01em; }
.portrait { display: block; }
.einstieg .portrait { position: absolute; z-index: 2; right: 0; bottom: 0; height: var(--portrait-h); width: auto; max-width: none; pointer-events: none; }
.einstieg .portrait img { height: 100%; width: auto; max-width: none; }
.vorstellung { position: relative; z-index: 3; margin: auto 0 0 var(--einzug); padding-top: clamp(32px, 4.5vh, 52px); width: var(--vorstellung-b); }
.vorstellung h1 { font-size: var(--text); font-weight: var(--medium); letter-spacing: .02em; margin-bottom: .9rem; }
.vorstellung p { font-size: clamp(1.0625rem, 1.35vw, 1.3125rem); line-height: 1.5; }
.vorstellung a { display: inline-block; margin-top: 1rem; font-weight: var(--medium); }
.vorstellung a:hover { text-decoration-thickness: 2px; }

/* Projekte: wandern beim Scrollen seitwärts, der Abschnitt bleibt stehen, bis alle sechs durch sind */
.projekte { position: relative; height: 420vh; }
.buehne { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.projekte h2 { position: absolute; top: var(--rand); left: var(--rand); }
.spur { display: flex; gap: clamp(16px, 2.6vw, 40px); padding: 0 var(--rand); will-change: transform; }
.projekt { flex: 0 0 auto; width: min(62vw, 980px); aspect-ratio: 3 / 2; max-height: 68svh; text-decoration: none; position: relative; transition: color .25s ease-out; }
.projekt:hover { color: var(--weiss); }
.projekt:focus-visible { outline-color: var(--weiss); }
/* Projektname mit Pfeil unter dem Bild, erscheint beim Überfahren (16.11.2026: sonst sieht man nicht, dass die Bilder zu Projektseiten führen) */
.projekt .name { position: absolute; left: 0; top: 100%; margin-top: .8rem; display: flex; align-items: center; gap: .4em; font-size: .9375rem; font-weight: var(--medium); letter-spacing: .03em; white-space: nowrap; opacity: 0; transition: opacity .3s ease-out; }
.projekt .name svg { flex: 0 0 auto; width: .75em; height: .75em; transition: transform .35s var(--ease); }
.projekt:hover .name, .projekt:focus-visible .name { opacity: 1; }
.projekt:hover .name svg { transform: translateX(.15em); }
/* Seitlich wischen am Ende der Reihe blättert nicht im Browser zurück */
.spur { overscroll-behavior-x: contain; }

/* Was ich gut kann: rote Überschrift, Aufklappliste mit weißen Linien */
.koennen { padding: clamp(80px, 12vw, 180px) var(--rand); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.koennen h2, .fragen h2 { text-align: right; position: sticky; top: var(--rand); color: var(--rot); }

.liste { border-top: 1.5px solid var(--weiss); }
.liste details { border-bottom: 1.5px solid var(--weiss); }
.liste summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 1.05rem 0; font-size: clamp(1.25rem, 1.9vw, 1.75rem); font-weight: var(--medium); line-height: 1.3; transition: color .2s ease-out; }
.liste summary::-webkit-details-marker { display: none; }
.liste summary svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--weiss); transition: transform .35s var(--ease); }
.liste details[open] summary svg { transform: rotate(45deg); }
.liste summary:hover { color: var(--dunkelgrau); }
.liste summary:focus-visible { outline-offset: 2px; }
.liste details p { max-width: 62ch; padding: 0 0 1.4rem; hyphens: none; font-size: var(--lesetext); line-height: 1.6; }   /* Lesetext überall gleich groß (Catherine 15.11.2026), vorher Grundschrift 17 px */

/* Stimme: ein Zitat, groß und mittig, viel Weißraum */
.stimme { padding: clamp(120px, 20vw, 300px) var(--rand); text-align: center; }
.stimme blockquote { max-width: 40ch; margin: 0 auto; font-size: var(--zitat); line-height: 1.5; font-weight: var(--medium); letter-spacing: .012em; text-wrap: balance; }
.stimme figcaption { margin-top: 2.5rem; font-size: var(--text); letter-spacing: .02em; color: var(--dunkelgrau); }

/* Weitere Arbeiten: Laufband über die ganze Breite */
.weitere { padding: clamp(80px, 10vw, 150px) 0; overflow: hidden; }
.weitere h2 { padding: 0 var(--rand); margin-bottom: clamp(56px, 8vw, 128px); }
.band { display: flex; width: max-content; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; will-change: transform; }
.band.zieht { cursor: grabbing; }
.band img { -webkit-user-drag: none; }
.band ul { display: flex; gap: clamp(14px, 1.8vw, 28px); padding-right: clamp(14px, 1.8vw, 28px); }
.arbeit { position: relative; }
.arbeit:focus-visible { outline-color: var(--weiss); outline-offset: 6px; }
/* Jedes Bild behält sein Format: gleiche Höhe, Breite aus dem Bild (09.11.2026) */
.arbeit .foto { display: block; height: clamp(220px, 34vh, 380px); padding: 0; background: none; }
.arbeit .foto img { width: auto; height: 100%; object-fit: contain; }
.arbeit p { margin-top: .7rem; max-width: 26ch; font-size: .9375rem; line-height: 1.4; color: var(--hellgrau); opacity: 0; transition: opacity .3s ease-out; }
.arbeit:hover p, .arbeit:focus-within p, .arbeit:focus p { opacity: 1; }

/* ---------- Kontakt auf Rot (alle Seiten außer »Kontakt«) ---------- */
.schluss { padding: clamp(80px, 11vw, 170px) var(--rand) clamp(96px, 12vw, 180px); }
.schluss h2 { font-size: var(--h2-kontakt); line-height: .92; }
.schluss h2 span { display: block; }
.schluss .anliegen { margin-top: clamp(28px, 3vw, 44px); font-size: clamp(1.125rem, 1.5vw, 1.375rem); max-width: 34ch; }
.knopf { display: inline-block; margin-top: 1.75rem; padding: 1rem 1.5rem; background: var(--weiss); color: var(--schwarz); font-weight: var(--medium); font-size: 1.125rem; text-decoration: none; transition: background-color .2s ease-out, color .2s ease-out; }
.knopf:hover { background: var(--schwarz); color: var(--weiss); }
.knopf:focus-visible { outline-color: var(--weiss); }

/* ---------- Fußzeile ---------- */
.fuss { background: var(--rot); color: var(--weiss); padding: 0 var(--rand); }
.fuss ::selection { background: var(--weiss); color: var(--rot); }
.fuss-oben { display: grid; grid-template-columns: 1fr 1fr; gap: 40px var(--rand); align-items: start; margin: 0 calc(var(--rand) * -1); padding: clamp(40px, 4vw, 56px) var(--rand) 0; border-top: 1px solid var(--weiss); }
.fuss-marke { justify-self: start; }
.fuss-marke img { height: var(--logo-h); width: auto; }   /* gleich groß wie im Kopf */
.fuss-titel { font-size: .9375rem; line-height: 1.4; font-weight: var(--medium); letter-spacing: .02em; margin-bottom: .8rem; }
.fuss-weitere ul { display: grid; gap: .3rem; font-size: .9375rem; line-height: 1.4; }
.fuss-weitere a:hover { text-decoration-thickness: 2px; }
.fuss-unten { margin: clamp(56px, 6vw, 96px) calc(var(--rand) * -1) 0; padding: 1.1rem var(--rand); background: var(--weiss); color: var(--schwarz); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: .9375rem; }
.fuss-unten ::selection { background: var(--schwarz); color: var(--weiss); }
.fuss-unten ul { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.fuss-unten a { text-decoration: none; }
.fuss-unten a:hover, .fuss-unten a[aria-current] { text-decoration: underline; }

/* ========== Projektseiten ========== */
.titel { padding: calc(var(--kopf-h) + clamp(96px, 14vh, 160px)) var(--rand) clamp(40px, 5vw, 72px); }
.titel h1 .kraeftig { display: block; max-width: 13em; font-size: clamp(2.75rem, 6.4vw, 6.25rem); line-height: .98; text-wrap: balance; }
.titel h1 .leistung { display: block; margin-top: clamp(14px, 1.6vw, 24px); font-size: clamp(1.125rem, 1.75vw, 1.75rem); line-height: 1.3; font-weight: 400; letter-spacing: .025em; }
.auftakt-bild { width: 100%; aspect-ratio: 2 / 1; }
/* 15.11.2026: Auftaktbild mit weißem Überstand unter der Farbfläche (Energiekalender, 2880 × 1600, Fläche endet bei 1440).
   Der Überstand (160 von 2880 px Breite) wird vom Abstand zum Text abgezogen, damit Fläche bis erste Zeile gleich bleibt wie auf den anderen Seiten.
   Prozent im padding beziehen sich auf die Breite, also auf die Bildbreite. */
.auftakt-bild.ueberstand { aspect-ratio: 2880 / 1600; }
.bericht.nach-ueberstand { padding-top: calc(clamp(80px, 10vw, 160px) - 100% * 160 / 2880); }

.bericht { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 6vw, 112px); padding: clamp(80px, 10vw, 160px) var(--rand); }
.steckbrief { border-top: 1px solid var(--hellgrau); align-self: start; }
.steckbrief div { padding: .9rem 0; border-bottom: 1px solid var(--hellgrau); }
.steckbrief dt { font-size: .9375rem; font-weight: var(--medium); letter-spacing: .02em; color: var(--dunkelgrau); margin-bottom: .2rem; }
.steckbrief dd { font-size: var(--text); line-height: 1.45; }
.steckbrief a { text-decoration-color: var(--mittelgrau); }
.steckbrief a:hover { text-decoration-color: currentColor; }
.erzaehlung p { font-size: var(--lesetext); line-height: 1.6; max-width: 38em; hyphens: none; }
.erzaehlung p + p { margin-top: 1.1em; }

.bilder { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 32px); padding: 0 var(--rand) clamp(96px, 12vw, 180px); }
.bilder .ganz { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.bilder .halb { grid-column: span 6; aspect-ratio: 4 / 5; }
.bilder .versetzt { grid-column: 5 / -1; aspect-ratio: 3 / 2; }

/* Leiste mit kleinen Bildern unter den großen (10.11.2026). Alle gleich hoch, jedes im eigenen Format:
   --r ist das Seitenverhältnis (Breite / Höhe), die Reihe füllt genau die Satzbreite. */
.bilder:has(+ .leiste) { padding-bottom: clamp(56px, 7vw, 112px); }
.leiste { padding: 0 var(--rand) clamp(96px, 12vw, 180px); }
.leiste ul { display: flex; align-items: flex-start; gap: clamp(16px, 2.2vw, 32px); }
.leiste li { flex: var(--r) 1 0; min-width: 0; max-width: calc(260px * var(--r)); }  /* höchstens 260 px hoch */
.leiste .foto { aspect-ratio: var(--r); padding: 12px; font-size: .8125rem; }
.leiste figcaption { margin-top: .6rem; font-size: .875rem; line-height: 1.35; color: var(--dunkelgrau); }

.weiter { padding: clamp(72px, 9vw, 140px) var(--rand); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.weiter .naechstes { text-decoration: none; display: block; }
.weiter .naechstes small { display: block; font-size: var(--text); font-weight: var(--medium); letter-spacing: .02em; margin-bottom: .8rem; }
.weiter .naechstes strong { display: flex; align-items: center; gap: .35em; font-size: var(--h2); line-height: 1; font-weight: var(--heavy); letter-spacing: .015em; text-wrap: balance; }
.weiter .naechstes svg { flex: 0 0 auto; width: .7em; height: .7em; transition: transform .35s var(--ease); }
.weiter .naechstes:hover svg { transform: translateX(.15em); }
.weiter .naechstes:hover strong { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .12em; }
.weiter .alle { font-weight: var(--medium); font-size: 1.125rem; }
.weiter .alle:hover { text-decoration-thickness: 2px; }

/* ========== Über mich ========== */
.ich { position: relative; height: clamp(480px, 66svh, 700px); overflow: hidden; display: flex; flex-direction: column; }
.ich h1 { position: relative; z-index: 2; margin-top: auto; padding: 0 var(--rand) clamp(40px, 6vh, 72px); font-size: clamp(2rem, 3.8vw, 3.5rem); line-height: 1; }
.ich h1 span { display: block; }
.ich .portrait { position: absolute; z-index: 1; right: 0; bottom: 0; height: 96%; width: auto; max-width: none; pointer-events: none; }
.ich .portrait img { height: 100%; width: auto; max-width: none; }

.lauftext { padding: clamp(80px, 10vw, 160px) var(--rand) clamp(40px, 5vw, 80px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.lauftext > div { grid-column: 4 / 12; }
.lauftext p { font-size: var(--lesetext); line-height: 1.6; max-width: 38em; hyphens: none; }
.lauftext p + p { margin-top: 1.1em; }

.zeile { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); padding: clamp(40px, 5vw, 80px) var(--rand); }
.zeile h2 { grid-column: 1 / 4; font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: 1.15; font-weight: 850; }   /* Zwischenüberschriften Über mich (Catherine 15.11.2026) */
.zeile .inhalt { grid-column: 4 / 12; }
.zeile p { font-size: var(--lesetext); line-height: 1.6;   /* Lesetext überall gleich groß (Catherine 15.11.2026), vorher 1.125rem */ max-width: 40em; hyphens: none; }
.zeile p + p { margin-top: 1em; }
.zeile a:hover { text-decoration-thickness: 2px; }
/* feine Linie über einer Zeile, eingerückt bis zum Seitenrand */
.linie { --linie: var(--hellgrau); background-image: linear-gradient(var(--linie), var(--linie)); background-size: calc(100% - 2 * var(--rand)) 1px; background-position: center top; background-repeat: no-repeat; }
.anthrazit.linie { --linie: var(--dunkelgrau); }
.zeile.schlusszeile { padding-bottom: clamp(96px, 12vw, 180px); }

.stationen { padding: clamp(80px, 11vw, 170px) var(--rand); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); }
.stationen ol { border-top: 1.5px solid var(--weiss); }
.stationen li { display: grid; grid-template-columns: 11rem 1fr; gap: 24px; padding: 1rem 0; border-bottom: 1.5px solid var(--weiss); font-size: 1.125rem; line-height: 1.45; }
.stationen .jahr { font-weight: var(--medium); font-variant-numeric: tabular-nums; }
.stationen h2, .vorlieben h2 { color: var(--rot); }

.vorlieben { padding: clamp(96px, 13vw, 200px) var(--rand); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 112px); }
.vorlieben h2 { margin-bottom: clamp(24px, 3vw, 44px); }
.vorlieben li { font-size: clamp(1.5rem, 2.6vw, 2.5rem); line-height: 1.3; font-weight: var(--medium); letter-spacing: -.005em; }

/* Oben weniger Luft als unten bis zur grauen Linie, sonst hängt die Widmung optisch durch (09.11.2026) */
.widmung { padding: clamp(64px, 8vw, 120px) var(--rand) clamp(96px, 11vw, 170px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.widmung figure { grid-column: 5 / 9; }
.widmung .foto { display: block; padding: 0; background: none; }
.widmung .foto img { height: auto; }
.widmung figcaption { margin-top: 1rem; font-size: .9375rem; color: var(--hellgrau); }

.fragen { padding: clamp(80px, 12vw, 180px) var(--rand); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }

/* ========== Kontakt ========== */
.kontakt { position: relative; min-height: 72svh; padding: calc(var(--kopf-h) + clamp(110px, 15vh, 170px)) var(--rand) clamp(96px, 12vw, 180px); }
.kontakt h1 { color: var(--rot-tief); text-transform: uppercase; font-weight: var(--heavy); font-size: clamp(4rem, min(13.2vw, 18vh), 15.5rem); line-height: .84; letter-spacing: -.01em; margin-left: calc(var(--rand) * -.4); }
.angaben { margin: clamp(40px, 5vw, 72px) 0 0 var(--einzug); max-width: 46rem; }
.angaben .anliegen { font-size: var(--lesetext); line-height: 1.5; max-width: 30em; }
.angaben .mail { display: inline-block; margin-top: clamp(24px, 3vw, 40px); font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.1; font-weight: var(--medium); letter-spacing: .01em; text-decoration: none; }
.angaben .mail:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .14em; }
.angaben .weitere-angaben { margin-top: clamp(24px, 3vw, 40px); font-size: clamp(1.125rem, 1.4vw, 1.3125rem); line-height: 1.6; }
.angaben .weitere-angaben a { text-decoration: none; }
.angaben .weitere-angaben a:hover { text-decoration: underline; }

/* ========== Impressum, Datenschutz, 404: Text auf Weiß ========== */
.textseite { padding: calc(var(--kopf-h) + clamp(80px, 12vh, 140px)) var(--rand) clamp(96px, 12vw, 180px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.textseite > * { grid-column: 4 / 12; }
.textseite h1 { font-size: clamp(2.75rem, 6.4vw, 6.25rem); line-height: .98; letter-spacing: .015em; margin-bottom: clamp(40px, 5vw, 72px); text-wrap: balance; }
.textseite h2 { font-size: clamp(1.375rem, 2vw, 1.875rem); line-height: 1.2; font-weight: 700; margin: 2.2em 0 .6em; }   /* Bold (Catherine 15.11.2026) */
.textseite p, .textseite li { font-size: 1.125rem; line-height: 1.6; max-width: 40em; hyphens: none; }
.textseite p + p, .textseite p + ul, .textseite ul + p { margin-top: 1em; }
.textseite h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; margin: 2em 0 .5em; }
.textseite .versal { font-variant-caps: all-small-caps; letter-spacing: .04em; }   /* Pflichtabsätze in Versalien als echte Kapitälchen (Catherine 15.11.2026) */
.textseite h4, .textseite h5 { font-size: 1.125rem; line-height: 1.4; font-weight: var(--medium); margin: 1.6em 0 .4em; }
.textseite h2 + h3, .textseite h3 + h4 { margin-top: 0; }
.textseite ul { display: grid; gap: .6em; padding-left: 1.2em; list-style: disc; }
.textseite a { overflow-wrap: anywhere; }.textseite .offen { padding: 1rem 0; border-top: 1px solid var(--hellgrau); border-bottom: 1px solid var(--hellgrau); color: var(--dunkelgrau); }
.textseite .knopf { border: 1.5px solid var(--schwarz); }

/* Meldeformular nach Art. 16 DSA (inhalte-melden/): scharfe Ecken, kein Rot */
.meldehinweis { display: none; margin-top: clamp(32px, 4vw, 48px); }
.meldehinweis:target { display: block; color: var(--schwarz); }
.meldung { display: grid; gap: 1.75rem; max-width: 40em; margin-top: clamp(40px, 5vw, 64px); }
.meldung .feld { display: grid; gap: .5rem; }
.meldung label { font-weight: var(--medium); font-size: 1.125rem; line-height: 1.4; }
.meldung .hinweis { font-size: 1rem; line-height: 1.5; color: var(--dunkelgrau); }
.meldung .feld .hinweis { margin-top: -.25rem; }
.meldung input[type="text"], .meldung input[type="email"], .meldung textarea {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--dunkelgrau); border-radius: 0;
  background: var(--weiss); color: var(--schwarz); font: inherit; font-size: 1.125rem; line-height: 1.5;
  -webkit-appearance: none; appearance: none; transition: border-color .2s ease-out;
}
.meldung textarea { min-height: 12rem; resize: vertical; }
.meldung input:hover, .meldung textarea:hover { border-color: var(--schwarz); }
.meldung input:focus-visible, .meldung textarea:focus-visible { border-color: var(--schwarz); outline: 2px solid var(--schwarz); outline-offset: 2px; }
.meldung .feld-haken { grid-template-columns: auto 1fr; align-items: start; gap: .9rem; }
.meldung .feld-haken label { font-weight: 400; }
.meldung input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: .15rem; border: 1.5px solid var(--dunkelgrau); border-radius: 0;
  background: var(--weiss) center / 14px 14px no-repeat; cursor: pointer;
}
.meldung input[type="checkbox"]:hover { border-color: var(--schwarz); }
.meldung input[type="checkbox"]:checked { border-color: var(--schwarz); background-color: var(--schwarz); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3.2 3.2L12 3.8' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E"); }
.meldung input[type="checkbox"]:focus-visible { outline: 2px solid var(--schwarz); outline-offset: 3px; }
.meldung .feld-falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.meldung .knopf { justify-self: start; margin-top: .25rem; font-family: inherit; cursor: pointer; border-radius: 0; }

/* ========== Handy ========== */
@media (max-width: 760px) {
  .einstieg { min-height: 0; padding: 0 0 40px; }
  .satz { margin-left: 0; padding: 130px var(--rand) 0; font-size: 15.5vw; }
  /* Porträt im Fluss; Ausschnitt wie in der Skizze (dort 165 % Breite bei −65 % Versatz, hier am zugeschnittenen Bild) */
  .einstieg .portrait { position: relative; height: auto; width: 110.8%; margin: -18vw 0 0 -10.8%; }
  .einstieg .portrait img { width: 100%; height: auto; }
  .vorstellung { width: auto; padding: 0 var(--rand); margin: -8vw 0 0; }

  /* Projekte: eine Reihe zum Wischen mit Einrasten, unten etwa ein Drittel mehr Luft als oben */
  .projekte { height: auto; }
  .buehne { position: relative; height: auto; display: block; padding: 72px 0 200px; }
  .projekte h2 { position: static; margin: 0 var(--rand) 56px; }
  /* Kacheln auch hier quer (12.11.2026, Vorbild marinarachello.com): ganze Komposition statt Ausschnitt.
     Einrasten in der Mitte, links und rechts bleibt ein Streifen der Nachbarn sichtbar und zeigt, dass man wischen kann. */
  .spur { overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 11vw; scrollbar-width: none; }
  .spur::-webkit-scrollbar { display: none; }
  .projekt { width: 78vw; aspect-ratio: 3 / 2; max-height: none; scroll-snap-align: center; }
  .projekt .name { opacity: 1; }
  /* Die Wischreihe schneidet alles unter den Bildern ab: Platz für den Projektnamen, die Luft darunter bleibt gleich */
  .spur { padding-bottom: 2.5rem; }
  .buehne { padding-bottom: calc(200px - 2.5rem); }

  .koennen, .fragen { grid-template-columns: 1fr; }
  .koennen h2, .fragen h2 { text-align: left; position: static; order: -1; }
  .stimme { padding: 96px var(--rand); }
  .arbeit p { opacity: 1; }
  .fuss-oben { grid-template-columns: 1fr; }

  .titel { padding-top: calc(var(--kopf-h) + 72px); }
  .bericht { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; padding-bottom: 40px; }  /* 12.11.2026: Desktop-Luft war auf dem Handy zu viel (80 px) */
  .bericht.nach-ueberstand { padding-top: calc(40px - 100% * 160 / 2880); }
  .erzaehlung { order: -1; }
  .bilder .halb, .bilder .versetzt { grid-column: 1 / -1; }
  .leiste ul { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--rand); scrollbar-width: none; margin: 0 calc(var(--rand) * -1); padding: 0 var(--rand); }
  .leiste ul::-webkit-scrollbar { display: none; }
  .leiste li { flex: 0 0 auto; width: calc(170px * var(--r)); scroll-snap-align: start; }

  .ich { height: auto; padding-top: var(--kopf-h); }
  /* Porträt 02: Kopf etwa auf einem Drittel, der Ellbogen bleibt im Bild */
  .ich .portrait { position: relative; height: auto; width: 112%; margin: 24px 0 0 4%; }
  .ich .portrait img { width: 100%; height: auto; }
  /* 15.11.2026 (Catherine): Titel liegt auf dem Bild, die dunkle Fläche endet mit dem Bild.
     Vorher schob padding-bottom 6vh die Fläche unter das Bild, auf dem iPhone wanderte der Streifen beim Scrollen. */
  .ich h1 { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 0 var(--rand) 5.5vw; }
  .lauftext { padding-top: 40px; }   /* 15.11.2026: 80 px nach dem Bild waren zu viel (Catherine) */
  .linie { background-image: none; }  /* 15.11.2026: keine Linien zwischen den Abschnitten auf dem Handy (Catherine) */
  /* Ohne Linie addierten sich die Innenabstände zweier gleichfarbiger Abschnitte zu 80 px vor der Headline (Catherine 15.11.2026) */
  .weiss + .weiss.zeile, .anthrazit + .anthrazit.zeile { padding-top: 0; }
  .widmung:has(+ .zeile) { padding-bottom: 40px; }
  .lauftext > div, .zeile h2, .zeile .inhalt, .widmung figure, .textseite > * { grid-column: 1 / -1; }
  .zeile h2 { margin-bottom: 1rem; }
  .stationen, .vorlieben { grid-template-columns: 1fr; }
  .stationen li { grid-template-columns: 1fr; gap: 2px; }
}
/* Schmale Handys: Mit drei Menüpunkten (17.11.2026, „Projekte“ dazu) reicht der Platz neben der Wortmarke nicht mehr.
   Die Punkte stehen untereinander, rechtsbündig. */
@media (max-width: 480px) {
  .kopf nav ul { flex-direction: column; align-items: flex-end; gap: 0; }
  .kopf nav a { white-space: nowrap; }
}
/* Sehr schmale Handys (320 px, z. B. iPhone mit Anzeigezoom „Größerer Text“): „Energiekalender“ passt in der
   Titelschrift nicht in eine Zeile. Titel etwas kleiner statt Trennung (Catherine 15.11.2026). */
@media (max-width: 359px) {
  .titel h1 .kraeftig { font-size: 2.375rem; }
  .weiter .naechstes strong { font-size: 2rem; }
}
/* Geräte ohne Mouseover: Bildunterschrift im Laufband steht immer klein unter dem Bild */
@media (hover: none) { .arbeit p, .projekt .name { opacity: 1; } }

/* Weniger Bewegung: Projekte und Laufband stehen still und lassen sich von Hand seitwärts bewegen (Laufband über main.js) */
@media (prefers-reduced-motion: reduce) and (min-width: 761px) {
  .buehne { padding: calc(var(--rand) + 6.5rem) 0 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .projekte { height: auto; }
  .buehne { position: relative; height: auto; display: block; }
  .spur { overflow-x: auto; transform: none !important; padding-bottom: 2.5rem; }
  .liste summary svg, .weiter .naechstes svg, .projekt .name, .projekt .name svg { transition: none; }
}

/* Silbentrennung (Catherine 15.11.2026): am Desktop Flattersatz ohne Trennung, auch ohne weiche Trennstriche.
   Auf dem Handy automatisch, mindestens drei Buchstaben vor und nach der Trennung, höchstens zwei Trennungen hintereinander.
   hyphenate-limit-chars: Chrome, Edge, Firefox. Chrome zählt ein folgendes Satzzeichen mit (»Verla-ge,«),
   deshalb nach der Trennung 4: drei Buchstaben plus Satzzeichen, ohne Satzzeichen vier Buchstaben.
   -webkit-hyphenate-limit-*: Safari und alle Browser auf dem iPhone, dort genau drei und drei.
   Die Begrenzung auf zwei Zeilen kennt nur Safari. */
@media (max-width: 760px) {
  .liste details p, .erzaehlung p, .lauftext p, .zeile p, .textseite p, .textseite li {
    -webkit-hyphens: auto; hyphens: auto;
    hyphenate-limit-chars: 7 3 4;
    -webkit-hyphenate-limit-before: 3; -webkit-hyphenate-limit-after: 3;
    -webkit-hyphenate-limit-lines: 2; hyphenate-limit-lines: 2;
  }
}
