/* Junimann-Bau · Zimmerei & Holzbau, Munster
   Designsystem in einer Datei. Farben, Schrift und Abstände stehen oben als Variablen.
   Grundsätze (wie bei allen Baumagnet-Seiten): keine Weichzeichner (backdrop-filter), keine Endlos-Zooms
   auf Fotos, Bewegung nur über opacity und transform, bei „Bewegung reduzieren“ alles ruhig. */

@font-face {
  font-family: "Jakarta";
  src: url("../fonts/plus-jakarta-sans-variabel.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: optional; /* nie nachträglich tauschen: sonst springen Überschriften auf dem Handy */
}

:root {
  /* Farben (aus dem Logo: Schwarz und Rot, dazu warme Holz- und Papiertöne) */
  --nacht: #1b1814;      /* fast Schwarz, warm */
  --nacht-2: #26221c;
  --nacht-3: #332d25;
  --papier: #f7f2ea;
  --papier-2: #eee5d7;
  --weiss: #fffdf9;
  --tinte: #1b1814;
  --grau: #5c544a;       /* Nebentext auf Papier, Kontrast 6,7:1 */
  --grau-hell: #b9afa2;  /* Nebentext auf Nacht, Kontrast 8:1 */
  --holz: #c98a4b;       /* Holzton auf dunklem Grund, Kontrast 6,1:1 */
  --holz-dunkel: #8b5a2b;/* Holzton auf Papier, Kontrast 5,2:1 */
  --holz-hell: #e7c79f;
  --rot: #b8333d;        /* Logo-Rot, weiße Schrift darauf 5,9:1 */
  --rot-tief: #8f2530;
  --rot-hell: #e46b72;   /* Rot auf dunklem Grund */
  --linie: rgba(27, 24, 20, .12);
  --linie-hell: rgba(255, 253, 249, .14);

  --schrift: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --breite: 1200px;
  --rand: clamp(18px, 4vw, 32px);
  --rad: 14px;
  --rad-klein: 9px;
  --schatten: 0 18px 40px -22px rgba(27, 24, 20, .45);
  --fein: cubic-bezier(.22, .8, .2, 1);
  --kopf-h: 62px;
}
@media (min-width: 1200px) { :root { --kopf-h: 78px; } }

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--papier); color: var(--tinte); font-family: var(--schrift); font-size: 1.0625rem; line-height: 1.65; font-weight: 450; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, picture { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; font-weight: 800; letter-spacing: -.022em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6.2vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); letter-spacing: -.012em; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2 { overflow-wrap: break-word; }
summary, legend, .marke, .assi__hinweis, .foto__text b { text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; border-radius: 4px; }
.abschnitt--dunkel :focus-visible, .hero :focus-visible, .fuss :focus-visible { outline-color: var(--holz-hell); }
::selection { background: var(--holz-hell); color: var(--tinte); }

.huelle { width: 100%; max-width: calc(var(--breite) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); }
.sprung { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--rot); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.sprung:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kleine Überzeile mit roter Kerbe */
.marke { display: inline-flex; align-items: center; gap: .6em; margin-bottom: 14px; font-size: .78rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; color: var(--holz-dunkel); }
.marke::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--rot); flex: none; }
.abschnitt--dunkel .marke, .hero .marke, .team-funnel .marke { color: var(--holz); }
.vorspann { font-size: clamp(1.06rem, 1.6vw, 1.2rem); color: var(--grau); max-width: 60ch; }
.abschnitt--dunkel .vorspann { color: var(--grau-hell); }

/* ---------- Knöpfe (mit gleitender Füllung) ---------- */
.knopf { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: 0 1.45em; border: 2px solid var(--rot); border-radius: 10px; background: var(--rot); color: #fff; font-weight: 750; font-size: 1rem; letter-spacing: .005em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: color .3s var(--fein), border-color .3s var(--fein); }
.knopf::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--rot-tief); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--fein); }
.knopf:hover::before, .knopf:focus-visible::before { transform: scaleX(1); }
.knopf:hover { border-color: var(--rot-tief); }
.knopf svg { width: 20px; height: 20px; flex: none; }
.knopf .pfeil { transition: transform .35s var(--fein); }
.knopf:hover .pfeil { transform: translateX(4px); }
.knopf--hell { background: var(--weiss); border-color: var(--weiss); color: var(--tinte); }
.knopf--hell::before { background: var(--holz-hell); }
.knopf--hell:hover { border-color: var(--holz-hell); }
.knopf--linie { background: transparent; border-color: currentColor; color: var(--tinte); }
.knopf--linie::before { background: var(--tinte); }
.knopf--linie:hover { color: var(--weiss); border-color: var(--tinte); }
.abschnitt--dunkel .knopf--linie { color: var(--weiss); }
.abschnitt--dunkel .knopf--linie::before { background: var(--weiss); }
.abschnitt--dunkel .knopf--linie:hover { color: var(--tinte); border-color: var(--weiss); }
.knopf--klein { min-height: 44px; padding: 0 1.1em; font-size: .94rem; }
.verweis { display: inline-flex; align-items: center; gap: .45em; font-weight: 750; color: var(--rot); text-decoration: none; }
.verweis svg { width: 18px; height: 18px; transition: transform .3s var(--fein); }
.verweis:hover svg { transform: translateX(4px); }
.abschnitt--dunkel .verweis, .team-funnel .verweis { color: var(--holz-hell); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinte); }
.logo__figur { display: block; width: 33px; height: 43px; flex: none; background: currentColor; -webkit-mask: url("../bilder/logo-figur.png") center / contain no-repeat; mask: url("../bilder/logo-figur.png") center / contain no-repeat; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-weight: 800; font-size: 1.12rem; letter-spacing: .07em; color: var(--rot); }
.logo__zusatz { margin-top: 5px; font-size: .66rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--grau); }
@media (min-width: 1200px) {
  .kopf .logo__figur { width: 40px; height: 52px; }
  .kopf .logo__name { font-size: 1.28rem; }
  .kopf .logo__zusatz { font-size: .66rem; }
}

/* ---------- Kopfleiste ---------- */
.kopf { position: sticky; top: 0; z-index: 50; height: var(--kopf-h); background: var(--papier); border-bottom: 1px solid var(--linie); transition: box-shadow .3s; }
.kopf::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--rot); transform-origin: 0 50%; transform: scaleX(var(--lauf, 0)); }
.kopf.unterwegs { box-shadow: 0 10px 24px -18px rgba(27, 24, 20, .5); }
.kopf__innen { height: 100%; display: flex; align-items: center; gap: 14px; }
.kopf__innen > .logo { margin-right: auto; }
.menue { display: none; }
.kopf__tel { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 44px; height: 44px; border-radius: 10px; color: var(--tinte); text-decoration: none; font-weight: 750; }
.kopf__tel svg { width: 22px; height: 22px; color: var(--rot); }
.kopf__tel span { display: none; }
.kopf__anfrage { display: none; }
.kopf__burger { width: 44px; height: 44px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: var(--nacht); border: 0; border-radius: 10px; cursor: pointer; }
.kopf__burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--weiss); transition: transform .3s var(--fein), opacity .2s; }
.kopf__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.kopf__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.kopf__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 640px) { .kopf__anfrage { display: inline-flex; } }
@media (min-width: 1200px) {
  .kopf__burger { display: none; }
  .menue { display: flex; align-items: center; gap: 2px; }
  .menue > li { position: relative; }
  .menue > li > a, .menue > li > button { display: inline-flex; align-items: center; gap: 5px; height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; font-size: .97rem; font-weight: 650; text-decoration: none; cursor: pointer; transition: background .2s; }
  .menue > li > a:hover, .menue > li > button:hover { background: var(--papier-2); }
  .menue > li > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--rot); border-radius: 0; }
  .menue button svg { width: 12px; height: 12px; transition: transform .25s; }
  .aufklapp { position: absolute; top: 100%; left: -8px; min-width: 270px; padding: 8px; border-radius: 12px; background: var(--weiss); box-shadow: 0 24px 48px -24px rgba(27, 24, 20, .45), 0 0 0 1px var(--linie); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .25s var(--fein), visibility .2s; }
  .menue > li:hover .aufklapp, .menue > li:focus-within .aufklapp { opacity: 1; visibility: visible; transform: none; }
  .menue > li:hover button svg, .menue > li:focus-within button svg { transform: rotate(180deg); }
  .aufklapp a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; text-decoration: none; font-size: .95rem; font-weight: 600; }
  .aufklapp a:hover, .aufklapp a[aria-current="page"] { background: var(--papier); }
  .aufklapp svg { width: 30px; height: 22px; color: var(--holz-dunkel); flex: none; }
  .aufklapp li:last-child a { margin-top: 4px; border-top: 1px solid var(--linie); border-radius: 0 0 8px 8px; }
}
@media (min-width: 1360px) {
  .kopf__tel { width: auto; padding: 0 10px; }
  .kopf__tel span { display: inline; }
}

/* Mobilmenü */
.mobil { position: fixed; inset: var(--kopf-h) 0 0 0; z-index: 49; overflow-y: auto; padding: 14px var(--rand) 32px; background: var(--papier); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--fein), visibility .25s; }
.mobil.offen { visibility: visible; opacity: 1; transform: none; }
.mobil__haupt { display: flex; align-items: center; justify-content: space-between; padding: 13px 2px; border-bottom: 1px solid var(--linie); font-size: 1.22rem; font-weight: 750; text-decoration: none; }
.mobil__haupt[aria-current="page"] { color: var(--rot); }
.mobil__unter { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 0 14px; border-bottom: 1px solid var(--linie); }
.mobil__unter a { padding: 9px 12px; border-radius: 8px; background: var(--weiss); font-size: .95rem; font-weight: 600; text-decoration: none; }
.mobil__knoepfe { display: grid; gap: 10px; margin-top: 22px; }
.mobil__knoepfe .knopf--hell { border-color: var(--linie); }
@media (min-width: 1200px) { .mobil { display: none; } }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(64px, 9vw, 118px) 0; }
.abschnitt--knapp { padding: clamp(48px, 6vw, 76px) 0; }
.abschnitt--weiss { background: var(--weiss); }
.abschnitt--holz { background: var(--papier-2); }
.abschnitt--dunkel { background: var(--nacht); color: var(--weiss); }
.kopfzeile { max-width: 760px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.kopfzeile--mitte { margin-inline: auto; text-align: center; }
.kopfzeile--mitte .marke { justify-content: center; }
.kopfzeile p { color: var(--grau); }
.abschnitt--dunkel .kopfzeile p { color: var(--grau-hell); }
.zweispaltig { display: grid; gap: 28px 64px; align-items: start; }
@media (min-width: 900px) { .zweispaltig { grid-template-columns: 1fr 1fr; } }

/* Zeichnungs-Raster (wie Bauplan-Papier), sehr dezent */
.plan { background-image: linear-gradient(var(--linie) 1px, transparent 1px), linear-gradient(90deg, var(--linie) 1px, transparent 1px); background-size: 32px 32px; background-position: -1px -1px; }

/* ---------- Kopfbereich Startseite ---------- */
.hero { position: relative; overflow: hidden; background: var(--nacht); color: var(--weiss); }
.hero__muster { position: absolute; inset: 0; pointer-events: none; color: var(--holz); opacity: .13; }
.hero__muster svg { position: absolute; right: -8%; bottom: -2%; width: min(1100px, 130%); height: auto; }
.hero__raster { position: relative; display: grid; gap: 34px; padding-top: clamp(34px, 6vw, 84px); padding-bottom: clamp(40px, 6vw, 90px); align-items: center; }
@media (min-width: 980px) { .hero__raster { grid-template-columns: 1.08fr .92fr; gap: 56px; } }
.hero h1 { margin: 0 0 .45em; font-size: clamp(1.6rem, 9.8vw, 4.35rem); line-height: 1.07; }
.hero__ort { display: block; margin-bottom: 16px; font-size: .78rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; color: var(--holz); line-height: 1.3; }
.hero__ort::before { content: ""; display: inline-block; vertical-align: middle; width: 22px; height: 3px; margin: -3px .6em 0 0; border-radius: 2px; background: var(--rot); }
/* Feste Zeilen, das Wechselwort bleibt immer in Zeile 2 (siehe README) */
.hero__zeile1, .wechsel { display: block; white-space: nowrap; }
.wechsel { margin-top: .08em; }
.wechsel__fuer { color: var(--holz-hell); }
.wechsel__kasten { display: inline-block; vertical-align: top; padding: 0 .2em .02em; margin-left: .04em; border-radius: .14em; background: var(--weiss); color: var(--rot); overflow: hidden; transition: width .45s var(--fein); box-sizing: border-box; }
.wechsel__wort { display: inline-block; }
.wechsel__wort.raus { animation: wort-raus .34s var(--fein) both; }
.wechsel__wort.rein { animation: wort-rein .5s var(--fein) both; }
@keyframes wort-raus { to { opacity: 0; transform: translateY(-40%); } }
@keyframes wort-rein { from { opacity: 0; transform: translateY(45%); } to { opacity: 1; transform: none; } }
.hero__text { max-width: 36em; font-size: clamp(1.06rem, 1.6vw, 1.2rem); color: #e0d8cd; }
.hero__knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.hero__knoepfe .knopf { flex: 1 1 230px; }
@media (min-width: 560px) { .hero__knoepfe .knopf { flex: 0 0 auto; } }
.hero__punkte { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .95rem; color: #e0d8cd; }
.hero__punkte li { display: inline-flex; align-items: center; gap: 8px; }
.hero__punkte svg { width: 20px; height: 20px; color: var(--holz); flex: none; }

.hero__bildspalte { position: relative; }
.hero__foto { position: relative; margin: 0; border-radius: var(--rad); overflow: hidden; background: var(--nacht-3); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.hero__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 50%; }
@media (min-width: 980px) { .hero__foto img { aspect-ratio: 4 / 3.3; } }
.hero__foto figcaption { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 8px; background: rgba(27, 24, 20, .82); color: var(--weiss); font-size: .82rem; font-weight: 650; }
.hero__foto figcaption::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--holz); }
/* Startbewegung: Holzlatten geben das Foto frei (unter einer Sekunde) */
.hero__latten { position: absolute; inset: 0; display: flex; pointer-events: none; }
.hero__latten i { flex: 1; height: 100%; background: linear-gradient(90deg, #b07338, #c98a4b 40%, #b9793d 70%, #9c6431); border-right: 2px solid #8b5a2b; }
.js .hero__latten i { animation: latte-weg .75s var(--fein) both; animation-delay: calc(140ms + var(--i) * 55ms); }
.js .hero__latten i:nth-child(odd) { animation-name: latte-weg-unten; }
@keyframes latte-weg { to { transform: translateY(-102%); visibility: hidden; } }
@keyframes latte-weg-unten { to { transform: translateY(102%); visibility: hidden; } }
html:not(.js) .hero__latten { display: none; }
.hero__klein { display: none; }
@media (min-width: 980px) {
  .hero__klein { display: block; position: absolute; left: -46px; bottom: -34px; width: 44%; margin: 0; border: 6px solid var(--nacht); border-radius: var(--rad); overflow: hidden; box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .8); }
  .hero__klein img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
}
/* Einblenden beim Laden */
.js .auf { animation: auf .8s var(--fein) both; animation-delay: calc(var(--n, 0) * 90ms + 60ms); }
@keyframes auf { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Bauphasen: Dachstuhl entsteht beim Scrollen ---------- */
.bau { background: var(--weiss); }
.bau__raster { display: grid; gap: 22px; }
.bau__bild { position: sticky; top: calc(var(--kopf-h) + 10px); z-index: 2; padding: 14px 14px 10px; border-radius: var(--rad); background: var(--papier); box-shadow: 0 0 0 1px var(--linie), 0 -14px 0 var(--weiss); }
.bau__bild svg { width: 100%; height: auto; max-height: 36vh; margin-inline: auto; }
.bau__stand { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--grau); }
.bau__stand b { color: var(--rot); font-variant-numeric: tabular-nums; }
.bau__balken { flex: 1; height: 3px; border-radius: 3px; background: var(--papier-2); overflow: hidden; }
.bau__balken i { display: block; height: 100%; background: var(--rot); transform-origin: 0 50%; transform: scaleX(0); transition: transform .6s var(--fein); }
.bau[data-stufe="1"] .bau__balken i { transform: scaleX(.25); }
.bau[data-stufe="2"] .bau__balken i { transform: scaleX(.5); }
.bau[data-stufe="3"] .bau__balken i { transform: scaleX(.75); }
.bau[data-stufe="4"] .bau__balken i { transform: scaleX(1); }
.bau__schritte { display: grid; gap: 18vh; padding: 4vh 0 10vh; }
.bau__schritt { padding: 22px 22px 20px; border-radius: var(--rad); background: var(--papier); box-shadow: 0 0 0 1px var(--linie); transition: box-shadow .4s, transform .5s var(--fein); }
.bau__schritt:not(.aktiv) span { color: var(--grau); }
.bau__schritt.aktiv { opacity: 1; box-shadow: 0 0 0 2px var(--rot), var(--schatten); }
.bau__schritt span { display: inline-block; margin-bottom: 6px; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--rot); }
.bau__schritt h3 { margin-bottom: .35em; }
.bau__schritt p { margin: 0; color: var(--grau); }
@media (min-width: 900px) {
  .bau__raster { grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
  .bau__bild { top: calc(var(--kopf-h) + 40px); padding: 28px 28px 18px; }
  .bau__bild svg { max-height: 58vh; }
  .bau__schritte { gap: 30vh; padding: 14vh 0 26vh; }
}
/* Zeichnung: Linien werden Stufe für Stufe gezogen */
.zeich { fill: none; stroke: var(--tinte); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.zeich .holz { fill: #e6c59c; }
.zeich .holz-d { fill: #c98a4b; }
.zeich .duenn { stroke-width: 1.6; }
.zeich .mass { stroke: var(--holz-dunkel); stroke-width: 1.5; stroke-dasharray: 5 5; }
.zeich text { fill: var(--holz-dunkel); stroke: none; font: 700 13px var(--schrift); letter-spacing: .06em; }
.zeich .rot { stroke: var(--rot); }
.zeich .rotf { fill: var(--rot); stroke: none; }
.zeich .gruen { fill: #3f6b3a; stroke: #2c4e29; stroke-width: 1.5; }
.js .bau .st { opacity: 0; transform: translateY(10px); transition: opacity .55s var(--fein), transform .65s var(--fein); }
.js .bau .st path.zug, .js .bau .st line.zug { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--fein) .1s; }
.js .bau[data-stufe="1"] .st1, .js .bau[data-stufe="2"] :is(.st1, .st2), .js .bau[data-stufe="3"] :is(.st1, .st2, .st3), .js .bau[data-stufe="4"] .st { opacity: 1; transform: none; }
.js .bau[data-stufe="1"] .st1 .zug, .js .bau[data-stufe="2"] :is(.st1, .st2) .zug, .js .bau[data-stufe="3"] :is(.st1, .st2, .st3) .zug, .js .bau[data-stufe="4"] .st .zug { stroke-dashoffset: 0; }
.js .bau .nur2 { opacity: 0; transition: opacity .5s var(--fein); }
.js .bau[data-stufe="2"] .nur2 { opacity: 1; }
.st4 .kranz { transform-box: fill-box; transform-origin: 50% 100%; }
.js .bau[data-stufe="4"] .st4 .kranz { animation: kranz .9s var(--fein) .25s both; }
@keyframes kranz { from { transform: translateY(-30px) scale(.6); } 60% { transform: translateY(3px) scale(1.04); } to { transform: none; } }

/* ---------- Laufband ---------- */
.laufband { overflow: hidden; background: var(--nacht); color: var(--weiss); padding: 18px 0; border-block: 1px solid var(--nacht-3); }
.laufband__spur { display: flex; width: max-content; gap: 0; }
.laufband__spur span { display: inline-flex; align-items: center; gap: 14px; padding: 0 26px; font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 700; white-space: nowrap; }
.laufband__spur svg { width: 34px; height: 24px; color: var(--holz); flex: none; }
.laufband__spur span::after { content: ""; width: 7px; height: 7px; margin-left: 26px; border-radius: 1px; background: var(--rot); transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) { .laufband__spur { animation: band 46s linear infinite; } .laufband:hover .laufband__spur, .js .laufband:not(.laeuft) .laufband__spur { animation-play-state: paused; } }
@keyframes band { to { transform: translateX(-50%); } }

/* ---------- Leistungskarten ---------- */
.karten { display: grid; gap: 16px; }
@media (min-width: 640px) { .karten { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .karten { grid-template-columns: repeat(6, 1fr); } .karten > * { grid-column: span 2; } .karten > :nth-child(4), .karten > :nth-child(5) { grid-column: span 3; } }
.karte { position: relative; display: flex; flex-direction: column; border-radius: var(--rad); background: var(--weiss); box-shadow: 0 0 0 1px var(--linie); text-decoration: none; overflow: hidden; transition: transform .4s var(--fein), box-shadow .4s var(--fein); }
.karte:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--linie), var(--schatten); }
.karte__bild { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--papier); color: var(--tinte); border-bottom: 1px solid var(--linie); }
.karte__bild.plan { background-color: var(--papier); background-size: 22px 22px; }
.karte__bild svg { width: 74%; height: auto; max-height: 84%; transition: transform .6s var(--fein); }
.karte:hover .karte__bild svg { transform: translateY(-3px) scale(1.03); }
.karte__text { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.karte__text h3 { margin-bottom: .35em; }
.karte__text p { color: var(--grau); font-size: .98rem; margin-bottom: 14px; }
.karte__text .verweis { margin-top: auto; }
.karte__nr { position: absolute; top: 12px; left: 14px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; color: var(--holz-dunkel); }

/* Line-Art-Zeichnungen der Leistungen */
.la { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.la .f { fill: #e6c59c; }
.la .f2 { fill: #c98a4b; }
.la .r { stroke: var(--rot); }
.la .d { stroke-width: 1.3; }
.la .w { fill: var(--weiss); }

/* ---------- Projekte (echte Fotos) ---------- */
.projekte { display: grid; gap: 14px; }
@media (min-width: 760px) { .projekte { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; } .projekte .foto:first-child { grid-row: span 2; } }
.foto { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--rad); overflow: hidden; background: var(--nacht-3); cursor: zoom-in; text-align: left; color: var(--weiss); }
.foto img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s var(--fein); }
.projekte .foto:first-child img { aspect-ratio: auto; min-height: 100%; }
@media (min-width: 760px) { .projekte .foto:first-child img { position: absolute; inset: 0; } .projekte .foto:first-child { min-height: 460px; } }
.foto:hover img { transform: scale(1.03); }
.foto__text { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(27, 24, 20, .88)); }
.foto__text b { display: block; font-size: 1.08rem; }
.foto__text span { font-size: .88rem; color: #e0d8cd; }
.foto__lupe { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(27, 24, 20, .7); }
.foto__lupe svg { width: 18px; height: 18px; }
dialog.gross { width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--rad); background: var(--nacht); color: var(--weiss); overflow: hidden; }
dialog.gross::backdrop { background: rgba(15, 13, 10, .86); }
dialog.gross img { width: 100%; max-height: 80vh; object-fit: contain; background: #000; }
dialog.gross p { margin: 0; padding: 12px 64px 14px 18px; font-weight: 650; }
.gross__zu, .gross__vor, .gross__zurueck { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(27, 24, 20, .78); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.gross__zu { top: 10px; right: 10px; }
.gross__vor { right: 10px; top: 40%; }
.gross__zurueck { left: 10px; top: 40%; }

/* ---------- Gründe ---------- */
.gruende { display: grid; gap: 14px; counter-reset: grund; }
@media (min-width: 700px) { .gruende { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .gruende { grid-template-columns: repeat(4, 1fr); } }
.grund { position: relative; padding: 24px 22px 22px; border-radius: var(--rad); background: var(--nacht-2); box-shadow: inset 0 0 0 1px var(--linie-hell); }
.grund svg { width: 40px; height: 40px; color: var(--holz); margin-bottom: 16px; }
.grund h3 { color: var(--weiss); }
.grund p { margin: 0; color: var(--grau-hell); font-size: .98rem; }

/* ---------- Inhaber ---------- */
.inhaber { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .inhaber { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.inhaber__bild { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: min(420px, 60vw); margin-inline: auto; border-radius: 50%; background: var(--papier-2); color: var(--tinte); overflow: hidden; }
.inhaber__bild .logo__figur { width: 48%; height: 62%; }
.inhaber__bild::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 2px dashed rgba(139, 90, 43, .35); }
.zitat { margin: 0 0 18px; font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.zitat::before { content: "„"; color: var(--rot); }
.zitat::after { content: "“"; color: var(--rot); }
.unterschrift { font-weight: 750; }
.unterschrift span { display: block; font-weight: 500; color: var(--grau); font-size: .95rem; }

/* ---------- Assistenten (Anfrage, Bewerbung) ---------- */
.assi { position: relative; padding: clamp(20px, 3.4vw, 34px); border-radius: calc(var(--rad) + 4px); background: var(--weiss); color: var(--tinte); box-shadow: 0 0 0 1px var(--linie), var(--schatten); }
.assi__titel { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rot); }
.assi__titel svg { width: 18px; height: 18px; }
.assi__kopf { display: flex; align-items: center; justify-content: space-between; min-height: 36px; margin-bottom: 8px; }
.assi__zaehl { margin-left: auto; font-size: .85rem; font-weight: 700; color: var(--grau); }
.assi__zurueck { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 4px; border: 0; background: none; font-weight: 700; color: var(--grau); cursor: pointer; }
.assi__zurueck svg { width: 18px; height: 18px; }
.assi__balken { height: 6px; border-radius: 6px; background: var(--papier-2); overflow: hidden; margin-bottom: 24px; }
.assi__balken i { display: block; height: 100%; background: linear-gradient(90deg, var(--rot), #d4573f); border-radius: 6px; transform-origin: 0 50%; transform: scaleX(.2); transition: transform .5s var(--fein); }
.assi fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.assi fieldset.dran { animation: schritt .45s var(--fein) both; }
@keyframes schritt { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.assi legend { padding: 0; margin-bottom: 6px; font-size: clamp(1.3rem, 3vw, 1.65rem); font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.assi__hinweis { margin: 0 0 18px; color: var(--grau); font-size: .96rem; }
.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .kacheln--drei { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kacheln--eins { grid-template-columns: 1fr; }
.kachel { position: relative; display: block; cursor: pointer; }
.kachel input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kachel > span { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; min-height: 64px; height: 100%; padding: 14px 16px; border-radius: 12px; background: var(--papier); box-shadow: inset 0 0 0 1.5px var(--linie); font-weight: 700; line-height: 1.25; hyphens: manual; overflow-wrap: break-word; transition: box-shadow .2s, background .2s, transform .2s var(--fein); }
@media (max-width: 420px) { .kachel > span { font-size: .97rem; } }
@media (max-width: 380px) { .kachel > span { padding: 12px; font-size: .93rem; } .assi { padding: 18px 14px; } }
.kacheln--eins .kachel > span { flex-direction: row; align-items: center; min-height: 58px; }
.kachel svg { width: 30px; height: 30px; color: var(--holz-dunkel); }
.kachel:hover > span { box-shadow: inset 0 0 0 2px var(--holz-dunkel); }
.kachel input:checked + span { background: #fbeceb; box-shadow: inset 0 0 0 2.5px var(--rot); }
.kachel input:checked + span svg { color: var(--rot); }
.kachel input:focus-visible + span { outline: 3px solid var(--rot); outline-offset: 2px; }
.kachel:active > span { transform: scale(.98); }
.felder { display: grid; gap: 14px; }
@media (min-width: 640px) { .felder--zwei { grid-template-columns: 1fr 1fr; } .feld.breit { grid-column: 1 / -1; } }
.feld label { display: block; margin-bottom: 6px; font-size: .92rem; font-weight: 700; }
.feld small { font-weight: 500; color: var(--grau); }
.feld input, .feld textarea, .feld select { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid #cfc5b7; border-radius: 10px; background: var(--weiss); font: inherit; font-size: 1rem; color: var(--tinte); transition: border-color .2s, box-shadow .2s; }
.feld textarea { min-height: 120px; resize: vertical; }
.feld input[type="file"] { padding: 12px; background: var(--papier); }
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--rot); box-shadow: 0 0 0 4px rgba(184, 51, 61, .15); }
.haekchen { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 4px; font-size: .92rem; color: var(--grau); cursor: pointer; }
.haekchen input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--rot); }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.assi__weiter { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.assi__weiter .knopf { flex: 1 1 auto; }
@media (min-width: 560px) { .assi__weiter .knopf { flex: 0 0 auto; } }
.assi__fehler { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: #fbeceb; color: var(--rot-tief); font-weight: 650; }
.assi__danke { text-align: center; padding: 20px 6px; }
.assi__danke svg { width: 78px; height: 78px; margin: 0 auto 16px; color: #3f7a3a; }
.assi__danke circle, .assi__danke path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: haken 1s var(--fein) .15s forwards; }
.assi__danke path { animation-delay: .55s; }
@keyframes haken { to { stroke-dashoffset: 0; } }
.assi__danke p { color: var(--grau); max-width: 46ch; margin-inline: auto; }
.assi__notiz { margin: 16px 0 0; font-size: .85rem; color: var(--grau); text-align: center; }

/* Bewerber-Funnel auf der Startseite */
.team-funnel { background: var(--nacht); color: var(--weiss); }
.team-funnel__raster { display: grid; gap: 28px; }
@media (min-width: 980px) { .team-funnel__raster { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; } .team-funnel__kopf { grid-column: 1; } .team-funnel .assi { grid-column: 2; grid-row: 1 / span 2; } .team-funnel__extra { grid-column: 1; } }
.team-funnel h2 { color: var(--weiss); }
.team-funnel__vorteile { display: grid; gap: 14px; margin: 8px 0 22px; }
.team-funnel__vorteile li { display: flex; gap: 14px; align-items: flex-start; }
.team-funnel__vorteile svg { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--nacht-3); color: var(--holz); flex: none; }
.team-funnel__vorteile b { display: block; }
.team-funnel__vorteile span { color: var(--grau-hell); font-size: .96rem; }

/* ---------- Einzugsgebiet ---------- */
.orte { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.orte li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--weiss); box-shadow: 0 0 0 1px var(--linie); font-weight: 650; font-size: .95rem; }
.orte svg { width: 18px; height: 18px; color: var(--rot); }
.abschnitt--dunkel .orte li { background: var(--nacht-2); box-shadow: inset 0 0 0 1px var(--linie-hell); }

/* ---------- Schluss-Aufruf ---------- */
.schluss { position: relative; overflow: hidden; background: var(--rot); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.schluss::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-55deg, transparent 0 34px, rgba(255, 255, 255, .05) 34px 36px); pointer-events: none; }
.schluss__innen { position: relative; display: grid; gap: 26px; align-items: center; }
@media (min-width: 900px) { .schluss__innen { grid-template-columns: 1.3fr 1fr; } }
.schluss h2 { color: #fff; }
.schluss p { margin: 0; color: #fbe3e4; font-size: 1.1rem; max-width: 46ch; }
.schluss__knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .schluss__knoepfe { justify-content: flex-end; } }
.schluss .knopf { background: var(--weiss); border-color: var(--weiss); color: var(--tinte); flex: 1 1 220px; }
.schluss .knopf::before { background: var(--holz-hell); }
.schluss .knopf--rand { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.schluss .knopf--rand::before { background: var(--nacht); }
.schluss .knopf--rand:hover { border-color: var(--nacht); }
@media (min-width: 560px) { .schluss .knopf { flex: 0 0 auto; } }

/* ---------- Fußzeile ---------- */
.fuss { background: var(--nacht); color: var(--grau-hell); padding: clamp(52px, 7vw, 84px) 0 28px; font-size: .95rem; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--weiss); }
.fuss__raster { display: grid; gap: 34px; }
@media (min-width: 700px) { .fuss__raster { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .fuss__raster { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.fuss h2 { margin-bottom: 14px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--weiss); font-weight: 750; }
.fuss li { margin-bottom: 8px; }
.fuss li a { background: linear-gradient(currentColor 0 0) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--fein), color .2s; padding-bottom: 2px; }
.fuss li a:hover { background-size: 100% 1px; }
.fuss a[aria-current="page"] { color: var(--weiss); }
.fuss .logo { color: var(--papier); margin-bottom: 18px; }
.fuss .logo__figur { width: 46px; height: 60px; }
.fuss .logo__name { color: var(--rot-hell); font-size: 1.3rem; }
.fuss .logo__zusatz { color: var(--grau-hell); }
.fuss__unten { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--linie-hell); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; font-size: .85rem; }
.fuss__recht { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }

/* Größere Tippflächen auf dem Handy (Fußzeile, Brotkrumen, Textverweise) */
@media (max-width: 899px) {
  .fuss li { margin-bottom: 2px; }
  .fuss li a, .fuss__recht a { display: inline-block; padding: 10px 0; }
  .brotkrumen { margin-bottom: 8px; }
  .brotkrumen a { display: inline-block; padding: 10px 0; }
  .verweis { padding: 9px 0; }
}

/* Feste Leiste unten (nur Handy) */
.leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--nacht); box-shadow: 0 -10px 24px -16px rgba(0, 0, 0, .7); transform: translateY(110%); visibility: hidden; transition: transform .35s var(--fein), visibility .35s; }
.leiste.sichtbar { transform: none; visibility: visible; }
.leiste .knopf { min-height: 48px; padding: 0 .8em; }
@media (min-width: 900px) { .leiste { display: none; } }
@media (max-width: 899px) { .fuss { padding-bottom: 96px; } }

/* ---------- Unterseiten ---------- */
.seitenkopf { position: relative; overflow: hidden; background: var(--nacht); color: var(--weiss); padding: clamp(30px, 5vw, 64px) 0 clamp(40px, 6vw, 76px); }
.seitenkopf .hero__muster svg { width: min(900px, 120%); right: -10%; bottom: -10%; }
.seitenkopf__raster { position: relative; display: grid; gap: 30px; align-items: center; }
@media (min-width: 940px) { .seitenkopf__raster--bild { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.seitenkopf h1 { font-size: clamp(2rem, 5.4vw, 3.5rem); margin-bottom: .4em; }
.seitenkopf p { color: #e0d8cd; font-size: clamp(1.05rem, 1.5vw, 1.18rem); max-width: 40em; }
.seitenkopf .hero__knoepfe { margin-bottom: 0; }
.seitenkopf__bild { margin: 0; border-radius: var(--rad); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.seitenkopf__bild img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.seitenkopf__zeichnung { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: var(--rad); background: var(--papier); color: var(--tinte); }
.seitenkopf__zeichnung.plan { background-color: var(--papier); background-size: 26px 26px; }
.seitenkopf__zeichnung svg { width: 78%; height: auto; }
.brotkrumen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 20px; font-size: .86rem; color: var(--grau-hell); }
.brotkrumen a { text-decoration: none; }
.brotkrumen a:hover { color: var(--weiss); text-decoration: underline; }
.brotkrumen li { display: inline-flex; align-items: center; }
.brotkrumen li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.brotkrumen [aria-current] { color: var(--weiss); }

.inhalt-raster { display: grid; gap: 36px; }
@media (min-width: 980px) { .inhalt-raster { grid-template-columns: 1.4fr .9fr; gap: 64px; align-items: start; } }
.text-block h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 1.2em; }
.text-block h2:first-child { margin-top: 0; }
.text-block p { color: #3d372f; }
.haken-liste { display: grid; gap: 12px; margin: 6px 0 22px; }
.haken-liste li { display: flex; gap: 12px; align-items: flex-start; }
.haken-liste svg { width: 24px; height: 24px; margin-top: 2px; padding: 4px; border-radius: 50%; background: #fbeceb; color: var(--rot); flex: none; }
.haken-liste b { display: block; }
.haken-liste span { color: var(--grau); }
.leistungs-raster { display: grid; gap: 12px; margin: 10px 0 26px; }
@media (min-width: 640px) { .leistungs-raster { grid-template-columns: 1fr 1fr; } }
.leistungs-raster li { padding: 18px 18px 16px; border-radius: 12px; background: var(--weiss); box-shadow: 0 0 0 1px var(--linie); }
.leistungs-raster b { display: block; margin-bottom: 4px; }
.leistungs-raster span { color: var(--grau); font-size: .96rem; }
.seitenleiste { display: grid; gap: 16px; }
@media (min-width: 980px) { .seitenleiste { position: sticky; top: calc(var(--kopf-h) + 24px); } }
.infokarte { padding: 24px; border-radius: var(--rad); background: var(--nacht); color: var(--weiss); }
.infokarte h2 { font-size: 1.3rem; color: var(--weiss); }
.infokarte p { color: var(--grau-hell); font-size: .98rem; }
.infokarte .knopf { width: 100%; margin-top: 6px; }
.infokarte--hell { background: var(--weiss); color: var(--tinte); box-shadow: 0 0 0 1px var(--linie); }
.infokarte--hell h2 { color: var(--tinte); }
.infokarte--hell p { color: var(--grau); }
.infokarte .tel { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.infokarte .tel svg { width: 24px; height: 24px; color: var(--rot); }

.ablauf { display: grid; gap: 14px; counter-reset: schritt; }
@media (min-width: 760px) { .ablauf { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ablauf { grid-template-columns: repeat(4, 1fr); } }
.ablauf li { position: relative; padding: 24px 20px 20px; border-radius: var(--rad); background: var(--weiss); box-shadow: 0 0 0 1px var(--linie); counter-increment: schritt; }
.ablauf li::before { content: "0" counter(schritt); display: block; margin-bottom: 10px; font-size: 2rem; font-weight: 800; line-height: 1; color: var(--holz); letter-spacing: -.02em; }
.ablauf b { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.ablauf span { color: var(--grau); font-size: .96rem; }

.fragen { display: grid; gap: 10px; }
.fragen details { border-radius: 12px; background: var(--weiss); box-shadow: 0 0 0 1px var(--linie); }
.fragen summary { position: relative; padding: 18px 52px 18px 20px; font-weight: 750; cursor: pointer; list-style: none; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2.5px solid var(--rot); border-bottom: 2.5px solid var(--rot); transform: rotate(45deg); transition: transform .3s var(--fein); }
.fragen details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.fragen details p { margin: 0; padding: 0 20px 18px; color: var(--grau); }

.weitere { display: grid; gap: 10px; }
@media (min-width: 640px) { .weitere { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .weitere { grid-template-columns: repeat(4, 1fr); } }
.weitere a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--weiss); box-shadow: 0 0 0 1px var(--linie); font-weight: 750; text-decoration: none; transition: box-shadow .3s, transform .3s var(--fein); }
.weitere a:hover { box-shadow: 0 0 0 2px var(--rot); transform: translateY(-2px); }
.weitere svg { width: 46px; height: 32px; color: var(--holz-dunkel); flex: none; }

@media (max-width: 639px) {
  .karte__bild { aspect-ratio: 2 / 1; }
  .karte__bild svg { width: 62%; }
  .karte__text { padding: 16px 18px 18px; }
}
@media (max-width: 759px) {
  .ablauf li { display: grid; grid-template-columns: 52px 1fr; column-gap: 10px; padding: 18px 18px 16px; }
  .ablauf li::before { grid-row: span 2; margin: 0; font-size: 1.75rem; }
}
/* Tablet: Kopffoto flacher, ungerade letzte Karte über die ganze Breite (keine halb leere Reihe) */
@media (min-width: 640px) and (max-width: 979px) { .hero__foto img { aspect-ratio: 16 / 9; } }
@media (min-width: 640px) and (max-width: 999px) {
  .karten > :last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .karten > :last-child:nth-child(odd) .karte__bild { flex: 1 1 50%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--linie); }
  .karten > :last-child:nth-child(odd) .karte__text { flex: 1 1 50%; }
}
/* Desktop: die zwei breiten Karten bekommen eine flachere Zeichnungsfläche */
@media (min-width: 1000px) { .karten > :nth-child(4) .karte__bild, .karten > :nth-child(5) .karte__bild { aspect-ratio: 21 / 9; } }

/* Offene Stellen (Karriere) */
.stellen { display: grid; gap: 14px; }
@media (min-width: 760px) { .stellen { grid-template-columns: repeat(3, 1fr); } }
.stelle { padding: 22px 22px 20px; border-radius: var(--rad); background: var(--weiss); box-shadow: 0 0 0 1px var(--linie); }
.stelle > svg { width: 52px; height: 36px; margin-bottom: 12px; color: var(--holz-dunkel); }
.stelle h3 { margin-bottom: .55em; }
.stelle p { margin: 0 0 8px; color: var(--grau); font-size: .98rem; }
.stelle p:last-child { margin: 0; }
.stelle b { color: var(--tinte); }

/* Projekte-Seite */
.projekt { display: grid; gap: 22px; align-items: center; padding: 26px 0; border-top: 1px solid var(--linie); }
.projekt:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .projekt { grid-template-columns: 1.2fr 1fr; gap: 56px; } .projekt:nth-child(even) .foto { order: 2; } }
.projekt .foto img { aspect-ratio: 16 / 9; }
.projekt .foto__text { display: none; }
.projekt h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.projekt p { color: var(--grau); }
.etikett { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 6px; background: var(--papier-2); font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--holz-dunkel); }

/* Kontakt */
.kontaktkarten { display: grid; gap: 12px; }
@media (min-width: 760px) { .kontaktkarten { grid-template-columns: repeat(3, 1fr); } }
.kontaktkarte { display: flex; flex-direction: column; gap: 6px; padding: 24px 22px; border-radius: var(--rad); background: var(--weiss); box-shadow: 0 0 0 1px var(--linie); text-decoration: none; transition: box-shadow .3s, transform .3s var(--fein); }
a.kontaktkarte:hover { box-shadow: 0 0 0 2px var(--rot); transform: translateY(-2px); }
.kontaktkarte svg { width: 42px; height: 42px; padding: 9px; margin-bottom: 8px; border-radius: 10px; background: #fbeceb; color: var(--rot); }
.kontaktkarte span { color: var(--grau); font-size: .92rem; }
.kontaktkarte b { font-size: 1.15rem; word-break: break-word; }

/* Rechtstexte */
.recht { max-width: 780px; }
.recht h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 1.8em 0 .5em; }
.recht h3 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.recht p, .recht li { color: #3d372f; }
.recht ul { margin: 0 0 1em; padding-left: 1.2em; list-style: disc; }
.recht li { margin-bottom: .35em; }
.recht address { font-style: normal; margin-bottom: 1em; }
.offen { padding: 1px 6px; border-radius: 5px; background: #fff1c2; box-shadow: inset 0 0 0 1px #e8c95c; color: #6b4e00; font-weight: 650; }
.hinweis-box { margin: 0 0 28px; padding: 16px 18px; border-radius: 12px; background: #fff7dc; box-shadow: inset 0 0 0 1px #ecd27b; color: #5c4600; font-size: .95rem; }
.hinweis-box b { display: block; margin-bottom: 2px; }

/* 404 */
.fehlerseite { text-align: center; padding-top: clamp(60px, 12vw, 140px); padding-bottom: clamp(60px, 12vw, 140px); }
.fehlerseite .hero__knoepfe { justify-content: center; }
.fehlerseite .zahl { font-size: clamp(5rem, 18vw, 9rem); font-weight: 800; line-height: 1; color: var(--holz); letter-spacing: -.04em; }

/* ---------- Einblenden beim Scrollen ---------- */
.js .ein { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--fein), transform .9s var(--fein); transition-delay: var(--v, 0s); }
.js .ein.da { opacity: 1; transform: none; }
.js .ein-liste > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--fein), transform .8s var(--fein); }
.js .ein-liste.da > * { opacity: 1; transform: none; }
.js .ein-liste.da > :nth-child(2) { transition-delay: .07s; }
.js .ein-liste.da > :nth-child(3) { transition-delay: .14s; }
.js .ein-liste.da > :nth-child(4) { transition-delay: .21s; }
.js .ein-liste.da > :nth-child(5) { transition-delay: .28s; }
.js .ein-liste.da > :nth-child(6) { transition-delay: .35s; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__latten { display: none; }
  .js .ein, .js .ein-liste > *, .js .bau .st { opacity: 1; transform: none; }
  .js .bau .st .zug { stroke-dashoffset: 0; }
}
