/* Schreinerei Sponsel – gemeinsame Gestaltung aller Seiten (Look „B2“, schwarz wie die Fahrzeuge).
   Die Seiten selbst tragen ihre Gestaltung großteils direkt im HTML (aus den Entwürfen übernommen).
   Hier steht, was für alle gilt: Farben, Schriften, Kopf, Fuß, Handy-Regeln und die gebauten Bausteine
   (Werkbuch, Ratgeber, Fragen, Formular). */

:root {
  --schwarz: #0C0A08;
  --flaeche: #17130F;          /* etwas hellerer Hintergrund für Abschnitte */
  --text: #EFEFED;
  --grau: #C8CECA;             /* ruhiger Nebentext */
  --rot: #CD0000;
  --linie: rgba(239, 239, 237, 0.18);
  --braun: #30200D;            /* Text auf weißen Abschnitten */
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* gilt auch, wenn im HTML ein display steht */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--schwarz); color: var(--text);
  font-family: 'Barlow', Arial, sans-serif; font-weight: 300; line-height: 1.5;
  overflow-x: hidden;
}
main { overflow-x: clip; }   /* angeschnittene Baumscheiben dürfen nicht seitlich scrollen lassen */
img, video { max-width: 100%; }
img { height: auto; }   /* Höhe aus dem width/height-Attribut nicht übernehmen, sonst greift aspect-ratio nicht */
a { color: var(--text); }
a:hover { color: #FFFFFF; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--rot); outline-offset: 3px;
}
.mono { font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.wrap { max-width: 1440px; margin: 0 auto; padding-left: 5%; padding-right: 5%; }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprung { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--rot); color: #fff; padding: 12px 18px; }
.sprung:focus { top: 16px; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

/* ---------- Kopf mit Menü ----------
   Steht fest oben im Fenster. Ganz oben liegt er durchsichtig auf dem Titelbild (wie im Entwurf),
   beim Scrollen wird er schwarz und flacher (Klasse .klein, gesetzt von main.js).
   .kopf-platz hält im Titelbild den Platz frei, den der Kopf vorher eingenommen hat. */
:root { --kopf-hoehe: 85px; --kopf-klein: 64px; --leiste: 0px; }
/* Höhe der Leiste unter dem Kopf: rote Leistungs-Leiste bzw. Werkbuch-Filter */
.mit-leiste { --leiste: 52px; }
.mit-filter { --leiste: 68px; }
.kopf-leiste {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  transition: background-color .2s, box-shadow .2s;
}
.kopf-leiste.sofort, .kopf-leiste.sofort * { transition: none !important; }
.kopf-leiste.klein { background: rgba(12, 10, 8, 0.97); box-shadow: 0 1px 0 var(--linie); }
.kopf-platz { height: calc(var(--kopf-hoehe) + var(--leiste)); }
.kopf { width: 100%; display: flex; align-items: center; gap: 24px; min-height: var(--kopf-hoehe); transition: min-height .2s; }
.kopf-leiste.klein .kopf { min-height: var(--kopf-klein); }
.kopf-logo { margin-right: auto; align-self: flex-start; }
.kopf-logo img { width: 150px; height: auto; display: block; transition: width .2s; }
.kopf-leiste.klein .kopf-logo { align-self: center; }
.kopf-leiste.klein .kopf-logo img { width: 96px; }
.kopf-menue { display: flex; gap: 32px; }
.kopf-menue a { text-decoration: none; padding: 6px 0 4px; white-space: nowrap; }
.kopf-menue a[aria-current="page"] { border-bottom: 1px solid var(--rot); }
.kopf-knoepfe { display: flex; gap: 10px; margin-left: 16px; }
.kopf-knopf {
  text-decoration: none; white-space: nowrap; font-size: 12px; font-weight: 500;
  padding: 12px 16px; border: 1px solid rgba(239, 239, 237, 0.6); background: rgba(12, 10, 8, 0.35);
}
.kopf-knopf.rot { background: var(--rot); border-color: var(--rot); color: #fff; }
.kopf-knopf:hover { border-color: #fff; }

/* Untermenü „Leistungen“: Eine unsichtbare Brücke füllt die Lücke zum Menüpunkt, und es schließt erst nach
   einer Viertelsekunde – so bleibt es offen, während man mit der Maus hinunterfährt. */
.menue-punkt { position: relative; }
.menue-punkt > a { display: block; }
.menue-auswahl {
  position: absolute; left: -20px; top: 100%; min-width: 280px; padding: 14px 20px; margin-top: 12px;
  background: rgba(12, 10, 8, 0.97); border: 1px solid var(--linie);
  display: flex; flex-direction: column; gap: 4px; visibility: hidden; opacity: 0;
  transition: opacity .15s .25s, visibility 0s .4s;
}
.menue-auswahl::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.menue-auswahl a { padding: 8px 0; letter-spacing: .12em; }
.menue-punkt:hover .menue-auswahl, .menue-punkt:focus-within .menue-auswahl {
  visibility: visible; opacity: 1; transition: opacity .15s, visibility 0s;
}
/* Nach einem Klick im Untermenü bleibt es zu, bis die Maus den Menüpunkt verlassen hat (werkbuch.js) */
.menue-punkt.zu .menue-auswahl { visibility: hidden; opacity: 0; transition: none; }
.menue-knopf {
  display: none; background: none; border: 1px solid var(--linie); color: var(--text);
  padding: 10px 14px; cursor: pointer;
}

/* Rote Leiste „Leistungen“ und Werkbuch-Filter: Teil des festen Kopfs, also von Anfang an oben zu sehen */
.leistungen-leiste { background: var(--rot); }
.leistungen-leiste > .wrap { display: flex; font-size: 13px; overflow-x: auto; scrollbar-width: none; }
.leistungen-leiste > .wrap::-webkit-scrollbar { display: none; }
.leistungen-leiste a { text-decoration: none; color: #fff; padding: 16px 24px; white-space: nowrap; flex: 0 0 auto; }
/* Titelbild der Leistungsseiten: mindestens so hoch wie bisher, aber nie so knapp, dass Kopf und Leiste den Text verdecken */
.titelbild { height: auto !important; min-height: clamp(600px, 62.5vw, 900px); display: flex; flex-direction: column; justify-content: flex-end; }
.titelbild > .wrap { position: relative !important; bottom: auto !important; padding-top: 32px; padding-bottom: 72px; }
.leistungen-leiste a:hover { background: rgba(12, 10, 8, 0.18); }
.leistungen-leiste a[aria-current="page"] { color: var(--rot); background: var(--schwarz); font-weight: 500; }
.filter-leiste { background: rgba(12, 10, 8, 0.97); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.filter-leiste > .wrap { padding-top: 12px; padding-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.filter-leiste .filter { min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.filter-leiste .filter::-webkit-scrollbar { display: none; }
.filter-leiste button { white-space: nowrap; flex: 0 0 auto; }
[id] { scroll-margin-top: calc(var(--kopf-klein) + var(--leiste) + 16px); }
.handy-menue {
  position: fixed; inset: 0; z-index: 40; background: var(--schwarz); overflow-y: auto;
  padding: 28px 6% 48px; display: flex; flex-direction: column; gap: 8px;
}
.handy-menue[hidden] { display: none; }
.handy-menue .zu { align-self: flex-end; background: none; border: 1px solid var(--linie); color: var(--text); padding: 10px 14px; cursor: pointer; }
.handy-menue a { text-decoration: none; font-size: 30px; padding: 6px 0; border-bottom: 1px solid var(--linie); }
.handy-menue .unter { font-size: 20px; color: var(--grau); padding-left: 16px; }
.handy-menue .kontaktzeile { margin-top: 24px; font-size: 18px; border: 0; color: var(--grau); }

/* Leiste unten am Handy: Anrufen und Anfragen immer griffbereit */
.handy-leiste { display: none; }

/* ---------- Fuß ---------- */
.fuss { position: relative; overflow: hidden; border-top: 1px solid rgba(239, 239, 237, 0.12); }
.fuss-baum { position: absolute; left: 50%; top: -120px; width: 900px; height: 900px; margin-left: -450px; opacity: 0.08; pointer-events: none; }
.fuss-inhalt {
  position: relative; padding-top: clamp(64px, 8.33vw, 120px); padding-bottom: 64px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; font-size: 16px; color: var(--grau);
}
.fuss-spalte { display: flex; flex-direction: column; gap: 10px; }
.fuss-spalte a { text-decoration: none; }
.fuss-balken { position: relative; background: var(--rot); }
.fuss-balken .wrap { padding-top: 18px; padding-bottom: 18px; font-size: 14px; color: #fff; font-weight: 500; }

/* ---------- Bausteine der gebauten Seiten (Werkbuch, Ratgeber, Fragen, Rechtliches) ---------- */
.titel { position: relative; padding-bottom: clamp(48px, 7vw, 96px); }
.titel > .wrap { padding-top: clamp(48px, 7vw, 110px); }
.titel h1 {
  margin: 20px 0 0; font-family: 'Barlow Condensed', 'Barlow', sans-serif; font-weight: 600;
  font-size: clamp(48px, 8.3vw, 120px); line-height: 0.9; text-transform: uppercase;
}
.titel h1 span { color: var(--rot); }
.titel .unterzeile { margin: 24px 0 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; max-width: 720px; }
/* Projektseite im Werkbuch: zuerst das große Bild, Name und Untertitel liegen unten im Bild.
   Der Verlauf oben hält Kopf und Pfad lesbar, der Verlauf unten die Überschrift. */
.titel.mit-bild { min-height: clamp(480px, 86svh, 980px); display: flex; flex-direction: column; padding-bottom: 0; overflow: hidden; }
.titel.mit-bild > .titelfoto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.titel.mit-bild::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,10,8,.6) 0%, rgba(12,10,8,0) 24%, rgba(12,10,8,0) 48%, rgba(12,10,8,.88) 100%);
}
.titel.mit-bild > .wrap {
  position: relative; z-index: 1; width: 100%; flex: 1; display: flex; flex-direction: column;
  justify-content: space-between; padding-top: 20px; padding-bottom: clamp(28px, 4.5vw, 64px);
}
.titel.mit-bild h1 { font-size: clamp(40px, 6.2vw, 96px); text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.titel.mit-bild .unterzeile { font-size: clamp(16px, 1.6vw, 22px); margin-top: 16px; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.titel.mit-bild .pfad, .titel.mit-bild .pfad a { color: #E4E6E3; }
/* Hochkant-Titelbild: am Computer rechts in voller Höhe, links der Titel auf dunklem Grund */
@media (min-width: 801px) {
  .titel.mit-bild.hoch > .titelfoto { left: auto; width: 46%; }
  .titel.mit-bild.hoch::after { background: linear-gradient(180deg, rgba(12,10,8,.6) 0%, rgba(12,10,8,0) 24%); }
  .titel.mit-bild.hoch > .wrap > div { max-width: 50%; }
}
.pfad { margin: 0; color: var(--grau); }
.pfad a { text-decoration: none; color: var(--grau); }
.abschnitt { padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(56px, 8vw, 120px); }
.flaeche { background: var(--flaeche); }
.h2 { margin: 0 0 40px; font-weight: 300; font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.015em; }

.fliesstext { max-width: 760px; font-size: 19px; line-height: 1.75; color: var(--grau); }
.fliesstext h2 { color: var(--text); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; margin: 48px 0 14px; }
.fliesstext h3 { color: var(--text); font-weight: 400; font-size: 22px; margin: 32px 0 10px; }
.fliesstext p { margin: 0 0 18px; }
.fliesstext ul { margin: 0 0 18px; padding-left: 20px; }
.fliesstext li { margin-bottom: 10px; }
.fliesstext a { color: var(--text); }
.fliesstext strong { color: var(--text); font-weight: 500; }
.vorspann { font-size: clamp(21px, 1.9vw, 26px); line-height: 1.5; color: var(--text); margin: 0 0 32px; }
.hinweis { border-left: 3px solid var(--rot); padding: 4px 0 4px 20px; color: var(--grau); }

.eckdaten { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 40px; border-top: 1px solid var(--linie); margin: 0; }
.eckdaten div { padding: 18px 0; border-bottom: 1px solid var(--linie); }
.eckdaten dt { margin: 0 0 6px; }
.eckdaten dd { margin: 0; font-size: 18px; }

.bildfolge { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.bildfolge figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.bildfolge figure:first-child { grid-column: 1 / -1; }
.bildfolge img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.bildfolge figure:first-child img { aspect-ratio: 16 / 9; }
.bildfolge figcaption { display: flex; flex-direction: column; gap: 6px; }
.bildfolge figcaption strong { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.bildfolge figcaption span { font-size: 16px; line-height: 1.6; color: var(--grau); max-width: 640px; }

/* Werkbuch: Filter und Kacheln */
.filter { display: flex; flex-wrap: wrap; gap: 10px; }
.filter button {
  background: none; color: var(--text); border: 1px solid var(--linie); padding: 12px 18px; cursor: pointer;
}
.filter button[aria-pressed="true"] { background: var(--rot); border-color: var(--rot); color: #fff; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 32px; }
.kachel { text-decoration: none; display: flex; flex-direction: column; gap: 12px; background: none; border: 0; padding: 0; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.kachel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: opacity .2s; }
.kachel:hover img { opacity: .85; }
.kachel .art { color: var(--grau); font-size: 12px; display: flex; justify-content: space-between; gap: 12px; }
.kachel .art em { font-style: normal; color: var(--rot); }
.kachel .name { font-size: 24px; font-weight: 300; }
.kachel[hidden] { display: none; }

/* Großansicht eines Werkbuch-Bildes */
.grossbild { border: 0; padding: 0; background: transparent; color: var(--text); max-width: min(1200px, 94vw); width: 100%; }
.grossbild::backdrop { background: rgba(12, 10, 8, 0.92); }
.grossbild img { width: 100%; max-height: 74vh; object-fit: contain; display: block; }
.grossbild .unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding: 18px 0; }
.grossbild .unten strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 24px; text-transform: uppercase; }
.grossbild .unten span { color: var(--grau); font-size: 16px; max-width: 720px; display: block; }
.grossbild button { background: none; border: 1px solid var(--linie); color: var(--text); padding: 10px 14px; cursor: pointer; }

/* Ratgeber-Übersicht */
.beitraege { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 48px 32px; }
.beitrag { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.beitrag img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.beitrag .name { font-size: 26px; line-height: 1.2; }
.beitrag .kurz { color: var(--grau); font-size: 16px; line-height: 1.6; }

/* Fragen & Antworten */
.fragen { border-top: 1px solid var(--linie); max-width: 980px; }
.fragen details { border-bottom: 1px solid var(--linie); }
.fragen summary { padding: 24px 40px 24px 0; font-size: clamp(19px, 1.6vw, 22px); position: relative; }
.fragen summary::after { content: '+'; position: absolute; right: 4px; top: 20px; color: var(--rot); font-size: 26px; }
.fragen details[open] summary::after { content: '–'; }
.fragen details p { margin: 0 0 24px; color: var(--grau); font-size: 17px; line-height: 1.7; max-width: 820px; }
.gruppe { margin: 64px 0 18px; color: var(--rot); }
.gruppe:first-child { margin-top: 0; }

/* Aufruf am Seitenende */
.aufruf { background: var(--rot); color: #fff; }
.aufruf .wrap { padding-top: clamp(56px, 7vw, 110px); padding-bottom: clamp(56px, 7vw, 110px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.aufruf h2 { margin: 0; font-family: 'Barlow Condensed', 'Barlow', sans-serif; font-weight: 600; font-size: clamp(44px, 6vw, 88px); line-height: 0.92; text-transform: uppercase; }
.knopf { display: inline-block; text-decoration: none; background: var(--schwarz); color: #fff; padding: 20px 30px; font-weight: 500; border: 0; cursor: pointer; }
.knopf.rot { background: var(--rot); }
.knopf.rahmen { background: none; border: 1px solid currentColor; padding: 19px 29px; }

/* ---------- Kontakt: Wahl zwischen Projektanfrage und Terminwunsch ---------- */
.wege { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; scroll-margin-top: calc(var(--kopf-klein) + var(--leiste) + 24px); }
.wege button {
  display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer; font: inherit; color: var(--text);
  background: var(--schwarz); border: 1px solid var(--linie); padding: 20px 22px;
}
.wege strong { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 26px; text-transform: uppercase; letter-spacing: .02em; }
.wege span { font-size: 15px; color: var(--grau); }
.wege button[aria-selected="true"] { border: 2px solid var(--rot); padding: 19px 21px; }
.wege button[aria-selected="true"] strong { color: var(--rot); }

/* ---------- Projektanfrage (Kontakt) ---------- */
.room {
  display: flex; flex-direction: column; gap: 12px; text-align: left; padding: 0; background: var(--schwarz); color: var(--text);
  border: 1px solid var(--linie); cursor: pointer; font-family: 'Barlow', sans-serif;
}
.room span { padding: 0 18px 18px; font-size: 19px; font-weight: 300; }
.room img { width: 100%; height: 150px; object-fit: cover; display: block; }
.room[aria-pressed="true"] { border: 2px solid var(--rot); }
.room[aria-pressed="true"] span::after { content: ' ✓'; color: var(--rot); }
.schritt[hidden] { display: none; }
.wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.wahl label { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--linie); padding: 20px; cursor: pointer; font-size: 18px; }
.wahl input { accent-color: var(--rot); margin-top: 5px; }
.wahl label:has(input:checked) { border-color: var(--rot); }
.feld { display: flex; flex-direction: column; gap: 8px; }
.feld label { font-size: 12px; color: var(--grau); }
.feld input, .feld textarea, .feld select {
  font: inherit; font-size: 18px; color: var(--text); background: var(--schwarz); border: 1px solid var(--linie); padding: 14px 16px; width: 100%;
  color-scheme: dark;   /* Kalender- und Auswahlknöpfe hell auf dunklem Grund */
}
.feld textarea { min-height: 160px; resize: vertical; }
.felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.felder .breit { grid-column: 1 / -1; }
.schritt-fuss { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.schritt-fuss .zurueck { background: none; border: 0; color: var(--grau); cursor: pointer; padding: 12px 0; }
.meldung { padding: 20px; border: 1px solid var(--rot); }
.honig { position: absolute; left: -9999px; }

/* ---------- Handy und Tablet ----------
   Die Entwurfsmaße wachsen per clamp() mit. Feste Raster (raster-3/4/5/12) brechen hier um.
   !important ist nötig, weil die Rastermaße direkt im HTML stehen. */
@media (max-width: 1360px) {
  .kopf-menue { gap: 22px; }
  .kopf-knopf { padding: 11px 12px; }
}
@media (max-width: 1220px) {
  /* zu eng für Menü und Knöpfe: Menü wandert hinter den Knopf „Menü“, die Knöpfe bleiben */
  .kopf-menue { display: none; }
  .menue-knopf { display: block; }
}
@media (max-width: 980px) {
  :root { --kopf-hoehe: 72px; --kopf-klein: 60px; }
  .kopf-logo img { width: 120px; }
  .kopf-leiste.klein .kopf-logo img { width: 90px; }
  .raster-12 { grid-template-columns: 1fr !important; }
  .raster-12 > * { grid-column: auto !important; padding-top: 0 !important; }
  .raster-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .raster-4 > * { padding-left: 0 !important; padding-right: 24px !important; }
}
@media (max-width: 760px) {
  body { padding-bottom: 64px; }
  /* am Handy übernimmt die Leiste unten die Knöpfe aus dem Kopf */
  .kopf-knoepfe { display: none; }
  .handy-leiste {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    border-top: 1px solid var(--linie);
  }
  .handy-leiste a { text-align: center; padding: 20px 6px; text-decoration: none; background: var(--schwarz); font-size: 12px; }
  .handy-leiste a + a { border-left: 1px solid var(--linie); }
  .handy-leiste a:last-child { background: var(--rot); color: #fff; border-left: 0; }
  /* rote Leiste und Werkbuch-Filter: eine Zeile zum Wischen statt mehrerer Zeilen */
  .mit-leiste { --leiste: 46px; }
  .mit-filter { --leiste: 64px; }
  .leistungen-leiste a { padding: 13px 18px; }
  .filter-leiste > .wrap { padding-top: 10px; padding-bottom: 10px; }
  .raster-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .raster-3 > [style*="span 3"] { grid-column: 1 / -1 !important; }
  .raster-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; font-size: 9px !important; letter-spacing: .06em; }
  .bildfolge { grid-template-columns: 1fr; }
  .felder { grid-template-columns: 1fr; }
  .wege strong { font-size: 21px; }
  .wege span { font-size: 13px; }
  .wege button { padding: 16px 14px; }
  .wege button[aria-selected="true"] { padding: 15px 13px; }
  .fuss-baum { width: 600px; height: 600px; margin-left: -300px; }
  table { font-size: 15px; }
}
@media (max-width: 560px) {
  .raeume { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .room img { height: 96px; }
  .room span { padding: 0 12px 12px; font-size: 16px; }
  .raster-4 { grid-template-columns: 1fr !important; }
  .raster-4 > * { border-right: 0 !important; padding-right: 0 !important; }
  .kacheln, .beitraege { grid-template-columns: 1fr; }
}
/* Startseite: Die Bühne ist um 45 % Bildschirmhöhe länger als das Titelbild. Auf dieser Strecke bleibt das Bild
   stehen (sticky) und der Text blendet nach und nach aus (--weg 0 → 1 setzt main.js), dann scrollt es weiter.
   Das Foto selbst wird nie abgedunkelt. */
.start-buehne { height: calc(clamp(620px, 100svh, 1000px) + 45svh); }
.start-text { opacity: calc(1 - var(--weg, 0)); transform: translateY(calc(var(--weg, 0) * -48px)); }
/* Schrift direkt auf dem Foto: leichter Schatten, damit sie auch auf hellen Bildstellen lesbar bleibt */
.start-buehne h1, .start-buehne p { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); }
@media (prefers-reduced-motion: reduce) {
  .start-buehne { height: auto; }
  .start-buehne > section { position: relative !important; }
  .start-text { opacity: 1 !important; transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Projektseiten: Blättern zum vorherigen/nächsten Projekt im selben Bereich */
.blaettern { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center;
  border-top: 1px solid var(--linie); padding-top: 28px; padding-bottom: clamp(56px, 8vw, 120px); }
.blaettern a { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 6px; }
.blaettern .vor { text-align: right; align-items: flex-end; }
.blaettern span.mono { font-size: 12px; color: var(--grau); }
.blaettern strong { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.blaettern a:hover strong, .blaettern a:focus-visible strong { color: var(--rot); }
.blaettern .alle { font-size: 12px; color: var(--grau); text-align: center; }
@media (max-width: 760px) {
  .blaettern { grid-template-columns: 1fr 1fr; }
  .blaettern .alle { grid-column: 1 / -1; order: 3; }
}

/* Handy (19.11.2026): Fotos immer ganz zeigen, nichts abschneiden.
   Titelbilder (Klasse „kopfbild“, setzt bauen.cjs) stehen am Handy oben in voller Breite, der Titel darunter.
   Alle übrigen Fotos bekommen ihr eigenes Seitenverhältnis statt eines festen Ausschnitts.
   Ausgenommen: Startseiten-Bild (bildschirmfüllend gewollt), Material-Muster und Raum-Knöpfe im Anfrage-Formular.
   Tablet (20.11.): Auch dort stand die Überschrift sonst über den Gesichtern (Gruppenfoto), daher bis 1023 px. */
@media (max-width: 1023px) {
  .kopfbild { height: auto !important; min-height: 0 !important; display: flex !important; flex-direction: column;
    justify-content: flex-start !important; overflow: visible; }
  .kopfbild > .kopf-platz { order: -2; }
  .kopfbild > img:first-child { order: -1; position: relative !important; inset: auto !important;
    left: auto !important; width: 100% !important; height: auto !important; }
  .kopfbild > [aria-hidden="true"]:not(.kopf-platz), .kopfbild > div[style*="gradient"], .kopfbild::after { display: none !important; }
  .kopfbild > .wrap { position: relative !important; bottom: auto !important; left: auto !important; right: auto !important;
    padding-top: 28px !important; padding-bottom: 48px !important; }
  .kopfbild > .wrap > div { max-width: none !important; }
}
@media (max-width: 760px) {
  main img[width]:not([src$=".svg"]):not(.start-foto):not([style*="position: absolute"]):not([src*="material-"]):not(.room img) {
    height: auto !important; aspect-ratio: auto !important; }
}
