/* Ingenieurbüro Almis · Variante «Direkt» · Stand 06.11.2026 (Umbau nach der Umsetzungsvorlage vom 23.10.2026)
   Hell, redaktionell, persönlich, ruhig. Anthrazit für Text und Hauptknöpfe, Weiss und sehr helles Grau für Flächen,
   Gold sparsam: Textmarker hinter einem Wort je Überschrift, Nummern, feine Linien, in den Skizzen Lasten und Lastweg.
   Rundungen: 4 px (Bedienelemente) und 14 px (Flächen). Grundgerüst des Formulars: anfrage-formular.basis.css (vorher geladen). */

@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-wdth.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #1f2328;
  --ink-w: #4a5058;
  --gold: #b08d3c;
  --gold-h: #d2b46e;
  --gold-t: #7c6120;
  --grau: #e6e8eb;
  --papier: #f4f5f7;
  --linie: #c9cdd2;
  --fehler: #b3261e;
  --fehler-t: #8c1d18;
  --fehler-bg: #fcefee;
  --ok: #2e6b3f;
  --ok-t: #1f4d2c;
  --ok-bg: #edf5ef;
  --hinweis-bg: #faf5e8;
  --f-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Courier Prime", "Courier New", ui-monospace, monospace;
  --kopf: 64px;
  --gutter: clamp(18px, 4.4vw, 64px);
  --abschnitt: clamp(72px, 9vw, 140px);
  --r1: 4px;
  --r2: 14px;
  --aus: cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (min-width: 901px) { :root { --kopf: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf) + 16px); overflow-x: clip; }
body { margin: 0; font-family: var(--f-text); font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.15rem); line-height: 1.6; color: var(--ink); background: #fff; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
p { text-wrap: pretty; }
[id] { scroll-margin-top: calc(var(--kopf) + 16px); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r1); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Schrift ---------- */
.h2 { font-size: min(clamp(2.4rem, 5.4vw, 5.4rem), 19cqi); font-weight: 700; font-stretch: 78%; letter-spacing: -0.036em; line-height: 0.95; text-wrap: balance; word-spacing: 0.06em; }
.h2-lang { font-size: min(clamp(2rem, 3.7vw, 3.8rem), 17cqi); line-height: 1; letter-spacing: -0.03em; }
.lede { font-size: clamp(1.1rem, 0.45vw + 1rem, 1.35rem); line-height: 1.5; color: var(--ink-w); max-width: 46ch; }
.kz-titel, .hero-text, .fragen-kopf, .kontakt-text, .ueber-text { container-type: inline-size; min-width: 0; }

/* Textmarker: Gold hinter einem Schlüsselwort, streicht beim Einscrollen auf */
.mk { background-image: linear-gradient(var(--gold-h), var(--gold-h)); background-repeat: no-repeat; background-position: 0 88%; background-size: 100% 0.3em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.mk-hero { background-size: 100% 0.28em; background-position: 0 86%; }

/* ---------- Knöpfe und Links ---------- */
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform 0.25s var(--aus); }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px; background: var(--ink); color: #fff; font-weight: 700; font-size: 1.02rem; border: 0; border-radius: var(--r1); text-decoration: none; transition: background-color 0.25s, color 0.25s; white-space: nowrap; }
.knopf:hover { background: var(--gold); color: var(--ink); }
.knopf:hover .ic { transform: translateX(4px); }
.knopf-gross { min-height: 60px; padding: 0 32px; font-size: 1.12rem; }
.textlink { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; color: inherit; text-decoration: none; }
.textlink span { background-image: linear-gradient(var(--gold), var(--gold)); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 2px; padding-bottom: 2px; transition: background-size 0.25s var(--aus); }
.textlink:hover span { background-size: 100% 100%; }
.textlink:hover .ic { transform: translateY(3px); }

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow 0.3s; }
.kopf.ist-gescrollt { box-shadow: 0 1px 0 var(--grau); }
.kopf-in { display: flex; align-items: center; justify-content: space-between; height: var(--kopf); gap: 20px; }
.logo { display: block; flex: none; line-height: 0; }
.logo img { width: clamp(158px, 16vw, 236px); height: auto; display: block; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav ul { display: flex; gap: clamp(14px, 2vw, 32px); }
.nav ul a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 0.98rem; white-space: nowrap; text-decoration: none; background-image: linear-gradient(var(--gold), var(--gold)); background-repeat: no-repeat; background-position: 0 calc(50% + 14px); background-size: 0 2px; transition: background-size 0.3s var(--aus); }
.nav ul a:hover, .nav ul a[aria-current] { background-size: 100% 2px; }
.nav-knopf { min-height: 44px; padding: 0 20px; font-size: 0.96rem; }
.menue { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: none; border: 1.5px solid var(--ink); border-radius: var(--r1); font-weight: 700; }
.menue .ic-zu { display: none; }
html.menue-offen .menue .ic-menue { display: none; }
html.menue-offen .menue .ic-zu { display: block; }
/* Umbruch zum Menü-Knopf: mit «Projekte» neu gemessen (08.11.2026). Volle Kopfzeile braucht ~960 px, ab 1040 px bleiben ~80 px Puffer. */
@media (max-width: 1039px) {
  .menue { display: inline-flex; }
  .nav { position: fixed; inset: var(--kopf) 0 0 0; z-index: 60; background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 28px; padding: 20px var(--gutter) 32px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.25s, transform 0.3s var(--aus), visibility 0.3s; overflow-y: auto; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { font-size: clamp(1.9rem, 8.4vw, 2.8rem); font-weight: 700; font-stretch: 78%; letter-spacing: -0.03em; min-height: 64px; width: 100%; background-position: 0 100%; border-bottom: 1px solid var(--grau); }
  .nav-knopf { min-height: 60px; font-size: 1.1rem; }
  html.menue-offen { overflow: hidden; }
  html.menue-offen .nav { opacity: 1; visibility: visible; transform: none; }
  .no-js .menue { display: none; }
  .no-js .kopf-in { flex-wrap: wrap; height: auto; padding-block: 8px; }
  .no-js .nav { position: static; opacity: 1; visibility: visible; transform: none; flex-direction: row; flex-wrap: wrap; padding: 0; gap: 8px 20px; }
  .no-js .nav ul { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
  .no-js .nav ul a { font-size: 1rem; font-stretch: 100%; min-height: 44px; border: 0; width: auto; font-weight: 600; letter-spacing: 0; }
}

/* ---------- Einstieg ---------- */
.hero { padding-block: clamp(28px, 4.4vw, 72px) clamp(64px, 8vw, 128px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: clamp(40px, 6vw, 64px); align-items: center; }
.ortszeile { display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; margin-bottom: clamp(16px, 2vw, 28px); font-size: clamp(0.92rem, 0.25vw + 0.86rem, 1rem); color: var(--ink-w); font-weight: 500; }
.strich { width: 40px; height: 2px; background: var(--gold); flex: none; margin-right: 14px; }
.sep { display: inline-block; flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); margin: 0 0.8em; vertical-align: middle; }
.hero-h1 { font-size: min(8.4rem, 15.2cqi); font-weight: 700; font-stretch: 76%; letter-spacing: -0.036em; line-height: 0.92; word-spacing: 0.04em; }
.h1-z { display: block; }
.hero-zusatz { margin-top: 0.55em; font-size: min(clamp(1.35rem, 1.3vw + 1rem, 2.2rem), 8.6cqi); font-weight: 600; font-stretch: 88%; letter-spacing: -0.012em; line-height: 1.2; color: var(--ink-w); }
.hero-lede { margin-top: clamp(20px, 2.4vw, 30px); font-size: clamp(1.08rem, 0.35vw + 1rem, 1.25rem); line-height: 1.6; max-width: 56ch; }
.hero-aktionen { margin-top: clamp(26px, 3vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.hero-zeichen { margin: 0; justify-self: start; width: min(64%, 280px); }
.lz { display: block; width: 100%; height: auto; overflow: visible; }
.lz-hilfe { fill: none; stroke: var(--linie); stroke-width: 2.6; }
.lz-achse { stroke-dasharray: 30 10 6 10; }
@media (min-width: 901px) {
  .hero-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(36px, 5vw, 104px); }
  .hero-zeichen { justify-self: end; width: min(100%, 500px); }
}

/* ---------- Kopfzeile eines Abschnitts (Titel links, Text rechts) ---------- */
.kopfzeile { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 20px; margin-bottom: clamp(36px, 5vw, 72px); }
@media (min-width: 901px) { .kopfzeile { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 4vw, 72px); align-items: end; } }
.bauweisen { margin-top: 14px; font-weight: 600; max-width: 46ch; }

/* ---------- Bürovorstellung ---------- */
.buero { background: var(--papier); padding-block: var(--abschnitt); }
.drei { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 901px) { .drei { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 56px); } }
.punkt { position: relative; min-width: 0; padding-top: 22px; border-top: 1.5px solid var(--ink); }
.punkt::before { content: ""; position: absolute; left: 0; top: -2px; width: 48px; height: 3px; background: var(--gold); }
.punkt-t { font-size: clamp(1.35rem, 1.1vw + 1rem, 1.85rem); font-weight: 700; font-stretch: 82%; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 12px; text-wrap: balance; }
.punkt p { color: var(--ink-w); max-width: 42ch; }

/* ---------- Leistungen (aufklappbar) ---------- */
.leistungen { padding-block: var(--abschnitt); }
.l-liste { border-bottom: 1.5px solid var(--ink); }
.leistung { border-top: 1.5px solid var(--ink); }
.l-zeile { list-style: none; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) 44px; column-gap: 12px; row-gap: 10px; align-items: start; padding: 22px 0; cursor: pointer; }
.l-zeile::-webkit-details-marker { display: none; }
.l-zeile:focus-visible { outline-offset: 4px; }
.l-nr { grid-column: 1; grid-row: 1; padding-top: 0.5em; font-family: var(--f-mono); font-weight: 700; font-size: 1rem; line-height: 1; color: var(--gold-t); }
.l-titel { grid-column: 2; grid-row: 1; align-self: center; font-size: clamp(1.5rem, 1.9vw + 0.9rem, 2.6rem); font-weight: 700; font-stretch: 80%; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
.l-einstieg { grid-column: 2 / 4; grid-row: 2; display: block; max-width: 62ch; line-height: 1.6; }
.l-i { grid-column: 3; grid-row: 1; width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; transition: transform 0.3s var(--aus), background-color 0.2s, color 0.2s; }
.l-zeile:hover .l-i { background: var(--gold-h); }
.leistung[open] .l-i { transform: rotate(45deg); background: var(--ink); color: #fff; }
.leistung[open] .l-zeile { padding-bottom: 0; }
.l-inhalt { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 28px; padding-bottom: 36px; }
.l-text { padding-left: calc(2.6rem + 12px); min-width: 0; }
.l-weiter { max-width: 62ch; }
.l-weiter + .l-weiter { margin-top: 0.9em; }
.l-dazu { margin-top: 1.2em; max-width: 62ch; padding-left: 16px; border-left: 3px solid var(--gold); }
.l-dazu-k { font-weight: 700; }
.l-skizze { margin: 0; min-width: 0; }
.leistung[open] .l-inhalt { animation: aufklappen 0.45s var(--aus); }
@media (min-width: 901px) {
  .l-zeile, .l-inhalt { grid-template-columns: 4.2rem minmax(0, 5fr) minmax(0, 7fr) 44px; column-gap: clamp(16px, 2vw, 32px); }
  .l-zeile { padding: 30px 0; }
  .l-einstieg { grid-column: 3; grid-row: 1; padding-top: 0.25em; }
  .l-i { grid-column: 4; }
  .l-text { grid-column: 3; grid-row: 1; padding-left: 0; }
  .l-skizze { grid-column: 2; grid-row: 1; }
  .l-inhalt { padding-bottom: 44px; }
}
@media (max-width: 420px) { .l-zeile { grid-template-columns: 2.1rem minmax(0, 1fr) 44px; } .l-text { padding-left: calc(2.1rem + 12px); } }

/* Skizzen */
.skizze-box { background: #fff; border: 1px solid var(--linie); border-radius: var(--r1); padding: 16px; }
.sk-flaeche { position: relative; aspect-ratio: 4 / 3; width: 100%; }
.sk { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sk .z { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sk .zw { stroke: var(--ink-w); stroke-width: 1.2; }
.sk .zb { stroke-width: 3; }
.sk .zm { stroke: var(--ink-w); stroke-width: 1.4; }
.sk .zt { stroke-width: 1.8; }
.sk .zd { fill: none; stroke: var(--ink-w); stroke-width: 1.8; stroke-dasharray: 6 5; stroke-linecap: butt; }
.sk .fl { stroke: none; }
.sk .fw { fill: #fff; stroke: none; }
.sk .fs { fill: var(--ink); }
.sk .fg { fill: var(--grau); }
.sk .fb { fill: var(--linie); }
.sk .fa { fill: var(--ink-w); }
.sk .fln { stroke: #fff; stroke-opacity: 0.55; stroke-width: 1.2; }
.sk .k path { fill: none; stroke: var(--gold); stroke-linecap: butt; }
.sk .k .halo { stroke: #fff; }
.sk .k .kf { fill: var(--gold); }
.sk .achse { stroke: var(--ink-w); stroke-width: 1; stroke-dasharray: 12 3 2 3; fill: none; }
.sk .riss line { stroke: var(--ink); stroke-linecap: square; }
.sk .stiel { stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.pos, .achse-b { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-weight: 700; font-size: 12px; line-height: 1; z-index: 2; }
.pos { width: 24px; height: 24px; background: #fff; border: 1.5px solid var(--ink); color: var(--ink); }
.achse-b { width: 22px; height: 22px; background: var(--papier); border: 1.2px solid var(--ink-w); color: var(--ink-w); }
.legende { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 20px; margin-top: 14px; counter-reset: l; font-size: 0.94rem; line-height: 1.4; color: var(--ink-w); }
.legende li { counter-increment: l; position: relative; padding-left: 32px; min-height: 24px; padding-top: 1px; }
.legende li::before { content: counter(l); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; font-weight: 700; color: var(--ink); background: #fff; box-sizing: border-box; }
@media (min-width: 560px) and (max-width: 900px) { .legende { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Abschluss mit Knopf (Leistungen, Fragen) */
.abschluss { margin-top: clamp(32px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.abschluss-frage { flex: 1 1 16rem; min-width: 0; max-width: 32ch; font-size: clamp(1.2rem, 0.9vw + 1rem, 1.7rem); font-weight: 600; font-stretch: 90%; letter-spacing: -0.01em; line-height: 1.25; }

/* ---------- Projekterfahrung: Bildstrecke wie im Magazin ----------
   Grundgerüst: projekte.basis.css (vorher geladen), Markup aus projekte-html.mjs, Verhalten projekte-galerie.js.
   Grosse Bilder ohne Rahmen, Text darunter wie eine Bildlegende. Die Spur beginnt bündig mit dem Text und läuft rechts
   bis an den Fensterrand, damit die nächste Karte sichtbar hineinragt. Gold nur für Nummer, Zähler und die Linie beim Zeigen. */
.projekte { padding-block: var(--abschnitt); border-top: 1px solid var(--grau); container-type: inline-size;
  --pj-rechts: calc(var(--gutter) + max(0px, (100cqw - 1440px) / 2)); }
.h2-projekte { font-size: min(clamp(2.4rem, 5.4vw, 5.4rem), 12.4cqi); }

.pj-steuerung { margin-bottom: clamp(18px, 2.2vw, 30px); }
.pj-zaehler { font-family: var(--f-mono); font-weight: 700; font-size: 1rem; line-height: 1; letter-spacing: 0.04em; color: var(--ink-w); font-variant-numeric: tabular-nums; }
.pj-zaehler-jetzt { color: var(--gold-t); }
.pj-pfeil { width: 52px; height: 52px; background: #fff; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 50%; transition: background-color 0.2s, color 0.2s, opacity 0.2s; }
.pj-pfeil:not(:disabled):hover { background: var(--ink); color: #fff; }
.pj-pfeil:focus-visible { outline-offset: 3px; }

.projekte .pj-spur { grid-auto-columns: min(80%, 24rem); gap: 16px; padding-bottom: 6px;
  margin-right: calc(-1 * var(--pj-rechts)); padding-right: var(--pj-rechts); }
@media (min-width: 760px) { .projekte .pj-spur { grid-auto-columns: clamp(19rem, 36vw, 31rem); gap: clamp(20px, 2.2vw, 32px); } }
.pj-spur:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; border-radius: 2px; }

.pj-karte-innen { position: relative; }
.pj-bild { border-radius: var(--r1); background: var(--papier); isolation: isolate; }
.pj-bild img { transition: transform 0.9s var(--aus); }
.pj-bild::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left center; transition: transform 0.5s var(--aus); }
.pj-bild::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(31, 35, 40, 0.08); pointer-events: none; }
.pj-bild .pj-art { z-index: 2; padding: 5px 10px; background: rgba(255, 255, 255, 0.94); color: var(--ink); border-radius: 2px; box-shadow: 0 0 0 1px rgba(31, 35, 40, 0.1); font-size: 0.8rem; font-weight: 600; line-height: 1.2; letter-spacing: 0.02em; }
.pj:not(.pj--js) .pj-bild { cursor: auto; }
.pj-karte-innen:focus-within .pj-bild::after { transform: scaleX(1); }
@media (hover: hover) {
  .pj-karte-innen:hover .pj-bild img { transform: scale(1.035); }
  .pj-karte-innen:hover .pj-bild::after { transform: scaleX(1); }
}

.pj-text { padding-top: 18px; }
.pj-nr { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-weight: 700; font-size: 0.95rem; line-height: 1; color: var(--gold-t); }
.pj-nr::after { content: ""; flex: 0 0 28px; height: 1.5px; background: var(--gold); }
.pj-titel { margin-top: 12px; font-size: clamp(1.4rem, 0.8vw + 1.1rem, 1.9rem); font-weight: 700; font-stretch: 80%; letter-spacing: -0.022em; line-height: 1.08; text-wrap: balance; }
.pj-meta { margin-top: 8px; color: var(--ink-w); line-height: 1.45; }
.pj-tags { margin-top: 12px; gap: 2px 1.1em; font-size: 0.92rem; font-weight: 600; line-height: 1.4; }
.pj-tags li { display: inline-flex; align-items: center; gap: 0.5em; min-width: 0; }
.pj-tags li::before { content: ""; flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.pj-zuordnung { margin-top: 12px; margin-bottom: 8px; font-size: 0.86rem; line-height: 1.45; color: var(--ink-w); }
.pj-oeffnen, .pj-wechsel { padding: 0; background: none; border: 0; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; transition: text-decoration-color 0.2s; }
.pj-oeffnen svg, .pj-wechsel svg { flex: none; transition: transform 0.25s var(--aus); }
.pj-oeffnen:hover, .pj-wechsel:hover { text-decoration-color: var(--ink); }
.pj-oeffnen:hover svg, .pj-wechsel--weiter:hover svg { transform: translateX(4px); }
.pj-wechsel:not(.pj-wechsel--weiter):hover svg { transform: translateX(-4px); }

.pj-fortschritt { margin-top: clamp(24px, 2.6vw, 36px); background: var(--grau); }
.pj-fortschritt-balken { background: var(--ink); }
.pj-nachweis { margin-top: 12px; font-size: 0.82rem; line-height: 1.45; color: var(--ink-w); }

/* Projekt-Dialog: hell, ruhig, wie eine aufgeschlagene Doppelseite */
.pj-dialog { background: #fff; color: var(--ink); border-radius: var(--r2); box-shadow: 0 40px 90px -40px rgba(31, 35, 40, 0.55); }
.pj-dialog::backdrop { background: rgba(31, 35, 40, 0.62); }
.pj-dialog-innen { padding: clamp(20px, 3.4vw, 48px); }
.pj-dialog-kopf { padding-bottom: clamp(18px, 2vw, 26px); margin-bottom: clamp(20px, 2.6vw, 34px); border-bottom: 1.5px solid var(--ink); container-type: inline-size; }
.pj-dialog-titel { margin-top: 12px; font-size: min(clamp(1.9rem, 3.4vw, 3.4rem), 11cqi); font-weight: 700; font-stretch: 78%; letter-spacing: -0.03em; line-height: 1; text-wrap: balance; }
.pj-dialog-kopf .pj-meta { margin-top: 10px; }
.pj-zu { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 50%; transition: background-color 0.2s, color 0.2s; }
.pj-zu:hover { background: var(--ink); color: #fff; }
.pj-gross img { background: var(--papier); border-radius: var(--r1); }
.pj-gross figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-size: 0.95rem; line-height: 1.45; color: var(--ink-w); }
.pj-gross .pj-art { font-family: var(--f-mono); font-weight: 700; font-size: 0.85rem; color: var(--gold-t); }
.pj-daumen-knopf { position: relative; border: 0; border-radius: var(--r1); background: var(--papier); opacity: 0.62; transition: opacity 0.2s; }
.pj-daumen-knopf::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--ink); border-radius: inherit; opacity: 0; transition: opacity 0.2s; }
.pj-daumen-knopf:hover, .pj-daumen-knopf[aria-current="true"] { opacity: 1; }
.pj-daumen-knopf[aria-current="true"]::after { opacity: 1; }
.pj-fakten { gap: 0; border-top: 1.5px solid var(--ink); align-self: start; }
.pj-fakten div { padding: 12px 0; border-bottom: 1px solid var(--grau); }
.pj-fakten div:last-child { border-bottom: 0; }
.pj-fakten dt { font-size: 0.84rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.02em; color: var(--gold-t); }
.pj-fakten dd { margin-top: 3px; line-height: 1.45; }
.pj-dialog-fuss { margin-top: clamp(24px, 3vw, 40px); padding-top: 14px; border-top: 1px solid var(--linie); }
.pj-wechsel--weiter { margin-left: auto; }
.pj-wechsel--weiter span { text-align: right; }
.pj-dialog .pj-nachweis { margin-top: 18px; }
@media (max-width: 600px) {
  .pj-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); }
  .pj-dialog-fuss { flex-direction: column; align-items: stretch; gap: 4px; }
  .pj-wechsel { width: 100%; }
  .pj-wechsel--weiter { margin-left: 0; justify-content: space-between; }
  .pj-wechsel--weiter span { text-align: left; }
}
@keyframes pj-auf { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pj-grund { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .pj-dialog[open] { animation: pj-auf 0.4s var(--aus); }
  .pj-dialog[open]::backdrop { animation: pj-grund 0.3s ease; }
}

/* ---------- Arbeitsweise ---------- */
.arbeitsweise { background: var(--papier); padding-block: var(--abschnitt); }
.schritte { border-bottom: 1px solid var(--linie); }
.schritt { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 10px; padding-block: clamp(24px, 3vw, 40px); border-top: 1px solid var(--linie); }
.schritt-nr { font-size: clamp(3rem, 5.6vw, 5.4rem); font-weight: 700; font-stretch: 75%; letter-spacing: -0.04em; line-height: 0.85; color: var(--gold-t); font-variant-numeric: tabular-nums; }
.schritt-text { min-width: 0; }
.schritt-t { font-size: clamp(1.4rem, 1.3vw + 1rem, 2.1rem); font-weight: 700; font-stretch: 82%; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
.schritt-text p { margin-top: 10px; max-width: 62ch; color: var(--ink-w); }
@media (min-width: 901px) {
  .schritt { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: clamp(24px, 3vw, 48px); align-items: start; }
}
.einzel { margin-top: clamp(40px, 5vw, 72px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; padding: clamp(24px, 3vw, 44px); background: #fff; border-top: 3px solid var(--gold); border-radius: var(--r1) var(--r1) var(--r2) var(--r2); }
.einzel-text { flex: 1 1 26rem; min-width: 0; }
.einzel-t { font-size: clamp(1.45rem, 1.4vw + 1rem, 2.3rem); font-weight: 700; font-stretch: 80%; letter-spacing: -0.025em; line-height: 1.08; max-width: 24ch; text-wrap: balance; }
.einzel p { margin-top: 12px; max-width: 56ch; color: var(--ink-w); }

/* ---------- Über mich ---------- */
.ueber { padding-block: var(--abschnitt); }
.ueber-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.portrait { margin: 0; width: min(100%, 230px); aspect-ratio: 4 / 5; }
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r1); display: block; }
.portrait-leer { position: relative; display: grid; place-items: center; background-color: var(--papier); color: var(--ink); border-radius: var(--r1); --almis-mono-gap: var(--papier);
  --g: linear-gradient(var(--gold), var(--gold)); --t: linear-gradient(var(--grau), var(--grau));
  background-image: var(--g), var(--g), var(--g), var(--g), var(--g), var(--g), var(--g), var(--g), var(--t), var(--t), var(--t), var(--t);
  background-repeat: no-repeat;
  background-position: 16px 16px, 16px 16px, right 16px top 16px, right 16px top 16px, left 16px bottom 16px, left 16px bottom 16px, right 16px bottom 16px, right 16px bottom 16px, 33.333% 0, 66.666% 0, 0 33.333%, 0 66.666%;
  background-size: 36px 3px, 3px 36px, 36px 3px, 3px 36px, 36px 3px, 3px 36px, 36px 3px, 3px 36px, 1px 100%, 1px 100%, 100% 1px, 100% 1px; }
.portrait-leer .zeichen-mono { width: 40%; height: auto; display: block; }
.ueber-name { font-size: min(clamp(3rem, 6.6vw, 6.6rem), 17cqi); }
.ueber-titel { margin-top: 14px; font-size: min(clamp(1.3rem, 1.2vw + 1rem, 2rem), 7.6cqi); font-weight: 600; font-stretch: 88%; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink-w); }
.ueber-p { margin-top: 1em; max-width: 62ch; }
.ueber-titel + .ueber-p { margin-top: clamp(22px, 2.6vw, 34px); }
.unterschrift { margin-top: 36px; padding-top: 14px; border-top: 1.5px solid var(--ink); width: min(100%, 340px); display: flex; flex-direction: column; gap: 2px; }
.u-name { font-weight: 700; font-size: 1.15rem; }
.u-funktion { font-size: 0.95rem; color: var(--ink-w); }
@media (min-width: 901px) {
  .ueber-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 6vw, 112px); }
  .portrait { width: 100%; max-width: 480px; }
}

/* ---------- Häufige Fragen ---------- */
.fragen { background: var(--papier); padding-block: var(--abschnitt); }
.fragen-grid { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
@media (min-width: 901px) {
  .fragen-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 96px); }
  .fragen-kopf { position: sticky; top: calc(var(--kopf) + 32px); align-self: start; }
}
.fragen-liste { min-width: 0; }
.frage { border-top: 1.5px solid var(--ink); }
.frage:last-of-type { border-bottom: 1.5px solid var(--ink); }
.frage summary { list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 20px 0; min-height: 44px; cursor: pointer; }
.frage summary::-webkit-details-marker { display: none; }
.frage summary:focus-visible { outline-offset: 4px; }
.frage-t { min-width: 0; padding-top: 0.35em; font-size: clamp(1.15rem, 0.8vw + 0.95rem, 1.5rem); font-weight: 600; font-stretch: 90%; letter-spacing: -0.01em; line-height: 1.25; text-wrap: balance; }
.frage-i { flex: none; width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; transition: transform 0.3s var(--aus), background-color 0.2s, color 0.2s; }
.frage summary:hover .frage-i { background: var(--gold-h); }
.frage[open] .frage-i { transform: rotate(45deg); background: var(--ink); color: #fff; }
.frage-a { padding: 0 64px 26px 0; color: var(--ink-w); max-width: 64ch; }
.frage[open] .frage-a { animation: aufklappen 0.4s var(--aus); }
@media (max-width: 520px) { .frage-a { padding-right: 0; } }
@keyframes aufklappen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Kontakt und Formular ---------- */
.kontakt { padding-block: var(--abschnitt); }
.kontakt-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 1001px) { .kontakt-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 5vw, 96px); align-items: start; } }
.kontakt-text .lede { margin-top: 24px; }
.kontakt-p { margin-top: 14px; max-width: 46ch; color: var(--ink-w); }
.ansprechpartner { margin-top: 32px; display: flex; align-items: center; gap: 18px; padding: 20px 22px; background: var(--papier); border-left: 3px solid var(--gold); border-radius: 0 var(--r1) var(--r1) 0; max-width: 440px; --almis-mono-gap: var(--papier); }
.ap-zeichen { flex: none; width: 48px; color: var(--ink); line-height: 0; }
.ap-zeichen svg, .fuss-zeichen svg { width: 100%; height: auto; display: block; }
.ap-k { font-size: 0.88rem; font-weight: 700; color: var(--gold-t); letter-spacing: 0.03em; }
.ap-name { font-size: 1.3rem; font-weight: 700; font-stretch: 88%; line-height: 1.2; }
.ap-funktion { color: var(--ink-w); font-size: 0.98rem; }
.ap-direkt { margin-top: 6px; }
.ap-direkt a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; overflow-wrap: anywhere; }
.kontakt-formular { min-width: 0; background: #fff; border: 1px solid var(--linie); border-radius: var(--r2); padding: clamp(20px, 3vw, 40px); box-shadow: 0 28px 56px -40px rgba(31, 35, 40, 0.45); }

.af-pflicht-hinweis { margin-bottom: 18px; font-size: 0.92rem; color: var(--ink-w); }
.af-label { font-weight: 700; font-size: 0.98rem; line-height: 1.3; }
.af-stern { color: var(--gold-t); }
.af-eingabe { padding: 12px 14px; background: #fff; color: var(--ink); border: 1.5px solid var(--ink-w); border-radius: var(--r1); line-height: 1.4; transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; }
.af-eingabe:hover { border-color: var(--ink); }
.af-eingabe:focus { outline: 3px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
select.af-eingabe { -webkit-appearance: none; appearance: none; padding-right: 48px; cursor: pointer; }
.af-auswahl::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.af-feld--fehler .af-label { color: var(--fehler-t); }
.af-feld--fehler .af-eingabe { border-color: var(--fehler); box-shadow: inset 0 0 0 1px var(--fehler); background: var(--fehler-bg); }
.af-fehler { display: flex; align-items: flex-start; gap: 8px; color: var(--fehler-t); font-weight: 600; font-size: 0.95rem; line-height: 1.4; }
.af-fehler::before { content: "!"; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--fehler); color: #fff; font-size: 0.8rem; font-weight: 700; display: grid; place-items: center; }
.af-fehler[hidden] { display: none; }
.af-hinweis { font-size: 0.92rem; color: var(--ink-w); line-height: 1.45; }
.af-datei-knopf { padding: 0 20px; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r1); font-weight: 700; transition: background-color 0.2s, color 0.2s; }
.af-datei-knopf:hover { background: var(--ink); color: #fff; }
.af-datei-eingabe { width: 44px; height: 44px; }
.af-dateiliste:not(:empty) { margin-top: 4px; }
.af-datei { padding: 4px 4px 4px 14px; background: var(--papier); border-radius: var(--r1); font-size: 0.95rem; }
.af-datei-groesse { color: var(--ink-w); font-size: 0.88rem; }
.af-datei-weg { padding: 0 10px; background: none; border: 0; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.af-datei-weg:hover { color: var(--fehler-t); text-decoration-color: currentColor; }
.af-datenschutz { font-size: 0.92rem; line-height: 1.5; color: var(--ink-w); }
.af-datenschutz a { color: var(--ink); font-weight: 600; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.af-senden { display: inline-flex; align-items: center; justify-content: center; padding: 0 30px; background: var(--ink); color: #fff; border: 0; border-radius: var(--r1); font-weight: 700; font-size: 1.05rem; transition: background-color 0.25s, color 0.25s; }
.af-senden:hover { background: var(--gold); color: var(--ink); }
.af-status { padding: 16px 18px; border-left: 4px solid; border-radius: 0 var(--r1) var(--r1) 0; font-weight: 600; line-height: 1.5; }
.af-status[hidden] { display: none; }
.af-status--fehler { background: var(--fehler-bg); border-color: var(--fehler); color: var(--fehler-t); }
.af-status--hinweis { background: var(--hinweis-bg); border-color: var(--gold); color: var(--ink); }
.af-status--ok { background: var(--ok-bg); border-color: var(--ok); color: var(--ok-t); }

/* ---------- Fusszeile ---------- */
.fuss { background: var(--grau); color: var(--ink); padding-block: clamp(40px, 5vw, 72px) 24px; }
.fuss-kopf { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--linie); }
.fuss-zelle { min-width: 0; padding-block: 18px; }
.fuss-zelle + .fuss-zelle { border-top: 1px solid var(--linie); }
.fuss-firma { display: flex; align-items: center; gap: 16px; --almis-mono-gap: var(--grau); }
.fuss-zeichen { flex: none; width: 44px; color: var(--ink); line-height: 0; }
.fuss-name { font-weight: 700; font-size: 1.08rem; }
.fuss-unter, .fuss-person p:not(.fuss-name) { color: var(--ink-w); font-size: 0.95rem; }
.fuss-links ul { display: grid; }
.fuss-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.fuss-zeile { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; font-size: 0.9rem; color: var(--ink-w); }
.fuss-zeile .sep { background: var(--ink-w); }
.fuss-zeile a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (min-width: 761px) {
  .fuss-kopf { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); }
  .fuss-zelle { padding: 22px 24px; }
  .fuss-zelle:first-child { padding-left: 0; }
  .fuss-zelle + .fuss-zelle { border-top: 0; border-left: 1px solid var(--linie); }
}

/* ---------- Rechtliches ---------- */
.recht-in { max-width: 1040px; padding-block: clamp(40px, 6vw, 96px); }
.recht-kopf { container-type: inline-size; min-width: 0; }
.h2-recht { font-size: min(clamp(2.4rem, 5.6vw, 5rem), 12cqi); }
.recht-block { margin-top: clamp(40px, 5vw, 72px); }
.recht-block h2 { font-size: clamp(1.8rem, 2.6vw, 2.6rem); font-weight: 700; font-stretch: 80%; letter-spacing: -0.03em; line-height: 1; padding-top: 18px; border-top: 1.5px solid var(--ink); }
.recht-block h3 { font-size: 1.15rem; margin: 28px 0 6px; }
.recht-block p { max-width: 68ch; margin-top: 12px; }
.recht-dl { margin-top: 18px; }
.recht-dl > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; border-top: 1px solid var(--grau); }
.recht-dl dt { font-size: 0.88rem; font-weight: 700; color: var(--gold-t); }
.recht-dl dd { min-width: 0; }
@media (min-width: 761px) { .recht-dl > div { grid-template-columns: 12rem minmax(0, 1fr); gap: 24px; } }

/* ---------- Bewegung (zurückhaltend; Inhalte stehen ohne Skript und bei reduzierter Bewegung sofort da) ---------- */
@keyframes zeichnen { to { stroke-dashoffset: 0; } }
@keyframes ein { to { opacity: 1; } }
@keyframes last { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes aufziehen { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fuellen { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes traeger { from { opacity: 0; transform: translateX(-3%); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .js .mk { background-size: 0 0.3em; transition: background-size 0.9s var(--aus) 0.1s; }
  .js .mk.an { background-size: 100% 0.3em; }
  .js .mk-hero { background-size: 0 0.28em; transition-delay: 0.7s; }
  .js .mk-hero.an { background-size: 100% 0.28em; }

  .js .lz-hilfe { opacity: 0; animation: ein 0.9s ease 0.1s forwards; }
  .js .lz-a { stroke: var(--ink); stroke-width: 4; stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; animation: zeichnen 1.3s var(--aus) 0.2s forwards, fuellen 0.6s ease 1.1s forwards; }
  .js .lz-traeger { opacity: 0; transform-box: fill-box; animation: traeger 0.8s var(--aus) 1.3s forwards; }

  .skizzen-zeichnen .l-skizze .z { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .skizzen-zeichnen .l-skizze :is(.fl, .fw, .fs, .fg, .fb, .fa, .zd, .k, .riss, .achse, .fln, .stiel, .pos, .achse-b) { opacity: 0; }
  .skizzen-zeichnen .l-skizze g[clip-path] { opacity: 0; }
  .skizzen-zeichnen .l-skizze.zeichnet .z { animation: zeichnen 0.8s var(--aus) both; animation-delay: calc(min(var(--d, 0), 18) * 35ms); }
  .skizzen-zeichnen .l-skizze.zeichnet :is(.fl, .fw, .fs, .fg, .fb, .fa, .zd, .achse, .fln, .stiel), .skizzen-zeichnen .l-skizze.zeichnet g[clip-path] { animation: ein 0.5s ease 0.25s both; }
  .skizzen-zeichnen .l-skizze.zeichnet .riss { animation: ein 0.1s linear 0.3s both, aufziehen 1.1s var(--aus) 0.3s both; }
  .skizzen-zeichnen .l-skizze.zeichnet .k { animation: last 0.6s var(--aus) 0.8s both; }
  .skizzen-zeichnen .l-skizze.zeichnet :is(.pos, .achse-b) { animation: ein 0.4s ease 0.9s both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}

/* Überlappungs-Schutz (LESSONS.md, K&P V14) — bleibt am Ende der Datei */
html { overflow-wrap: break-word; }
h1, h2, h3, .h2, .hero-h1, .l-titel, .schritt-t, .einzel-t, .frage-t, .punkt-t, .abschluss-frage { hyphens: auto; overflow-wrap: anywhere; }
address, a[href^="mailto:"], a[href^="tel:"] { overflow-wrap: anywhere; }
