/* ===========================================================
   Pestalozzistrasse 9, Birr – Projektwebseite der EMPERIO AG
   Gestaltung nach emperio.ch (vermessen 18.09.2026): Die Seite ist
   weiss, farbige Flächen sind eingerückte Boxen mit Radius. Keine
   Schatten, keine Rahmen- oder Farbbalken; Zustände zeigen sich über
   die Fläche. Axiforma 600 für alles, was führt, 400 für Text.
   Kilis Entscheide vom 18.09.2026: Radien wie emperio.ch, aber keine
   Versalien, keine Sperrung, kein Slogan, kein farbiges Musterband.
   =========================================================== */

@font-face { font-family: "Axiforma"; src: url("fonts/Axiforma-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Axiforma"; src: url("fonts/Axiforma-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Axiforma"; src: url("fonts/Axiforma-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Axiforma"; src: url("fonts/Axiforma-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Markenfarben (emperio.ch) */
  --gruen-dunkel: #015048;      /* Nav, dunkle Boxen, Fuss, Textlinks */
  --gruen: #00a887;             /* Akzent: Icons auf Hell. Weiss darauf nur 3.0:1, als Fokusrand auf Grau/Mint zu schwach (2.8:1) */
  --mint: #2ed9c3;              /* Icons auf Dunkel, erledigte Etappen */
  --petrol: #06262d;            /* nur Text und Modellschatten, keine Fläche */
  --hellgrau: #d9d9d9;
  --grau: #bdbdbd;
  --rot: #e40014;               /* nur Formularfehler */
  --rot-text: #c8001a;          /* Fehlertext auf getönten Flächen (5.5:1) */

  /* Text */
  --text: #06262d;
  --text-weich: #4b4d4d;        /* Fliesstext, Leads */
  --titel: #072b28;             /* Überschriften */
  --text-kurz: #313937;         /* Vorzeilen, Labels */
  --text-karte: #424242;
  --text-leise: #757575;        /* Kleingedrucktes auf Weiss (4.6:1); auf Grau/Mint siehe .flaeche-leise */
  --text-auf-dunkel: #eaf9f7;
  --fuss-link: #eaeaea;
  --platzhalter: #757575;

  /* Flächen und Linien */
  --weiss: #ffffff;
  --flaeche: #f5f5f5;
  --flaeche-mint: #eaf9f7;
  --flaeche-dunkel: #015048;
  --flaeche-dunkel-2: #05655b;
  --linie: #e0e0e0;
  --linie-hell: #eeeeee;
  --linie-dunkel: #0e7066;
  --punkt: #86e9dc;
  --pille-inaktiv-dunkel: #74a9a4;
  --fehler-flaeche: #fef2f2;
  --fehler-rand: #ffcaca;

  /* Statusplaketten (Form wie «Verkauft» auf emperio.ch, Radius 6) */
  --status-verfuegbar-flaeche: #eaf9f7;  --status-verfuegbar-text: #015048;
  --status-reserviert-flaeche: #e0e0e0;  --status-reserviert-text: #424242;
  --status-verkauft-flaeche:   #015048;  --status-verkauft-text:   #ffffff;

  /* Primärknopf: Dunkelgrün mit weisser Schrift (9.4:1).
     Umschalten auf emperio-Mint: --knopf-flaeche: var(--gruen); --knopf-hover: #00977a;
     (Weiss auf Mint erreicht nur 3.0:1, unter WCAG AA) */
  --knopf-flaeche: var(--gruen-dunkel);
  --knopf-hover: #013c36;
  --knopf-text: #ffffff;

  /* Schrift */
  --schrift: "Axiforma", system-ui, sans-serif;
  --groesse-h1: 72px;
  --groesse-h2: 52px;
  --groesse-h3: 32px;
  --groesse-h3-klein: 24px;

  /* Radien */
  --radius-pille: 9999px;
  --radius-knopf: 16px;
  --radius-feld: 16px;
  --radius-bild: 16px;
  --radius-karte: 24px;
  --radius-infokarte: 20px;
  --radius-klein: 12px;
  --radius-plakette: 6px;

  /* Bewegung */
  --tempo: cubic-bezier(0.4, 0, 0.2, 1);
  --dauer: 0.15s;
  --dauer-lang: 0.3s;

  /* Abstände */
  --kopf-hoehe: 110px;
  --seitenrand: 24px;
  --rahmen-max: 1440px;
  --abschnitt-abstand: 120px;
  --kopfblock-abstand: 60px;
  --vorzeile-abstand: 30px;
  --raster-abstand: 16px;
  --karte-innen: 24px;
  --box-innen: 48px 34px 34px;
  --box-dunkel-innen: 60px 40px 80px;
  --knopf-hoehe: 60px;
  --feld-hoehe: 64px;
}

@media (max-width: 1023px) {
  :root {
    --kopf-hoehe: 67px;
    --seitenrand: 16px;
    --abschnitt-abstand: 80px;
    --kopfblock-abstand: 30px;
    --vorzeile-abstand: 24px;
    --karte-innen: 16px;
    --box-innen: 32px 16px;
    --box-dunkel-innen: 40px 24px;
    --knopf-hoehe: 56px;
    --radius-karte: 20px;
    --groesse-h1: 34px;
    --groesse-h2: 32px;
    --groesse-h3: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { --dauer: 0.01ms; --dauer-lang: 0.01ms; }
}

/* Auf grauen und mintfarbenen Flächen reicht #757575 nicht für AA (4.2:1) */
.flaeche-leise, .iso-oben, .iso-buehne, .haus-karte, .garage, .ausstattung-kasten, .projekt,
.kontakt-kasten, .zahlen li, .titel-kennzahlen dl div {
  --text-leise: #6b6b6b;
  --platzhalter: #6b6b6b;
}

/* ---------- Grundlagen ---------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-bottom: 96px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--schrift);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
strong, b { font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gruen-dunkel); color: #fff; }
:focus-visible { outline: 2px solid var(--gruen-dunkel); outline-offset: 3px; }
/* Fokusrand Dunkelgrün: auf Weiss 9.4:1, auf Grau 8.6:1, auf Mint 8.7:1. Auf Dunkelgrün und
   auf dem abgedunkelten Titelfoto weiss */
.menue :focus-visible, .baustand :focus-visible, .fuss :focus-visible, .kontaktleiste :focus-visible,
.leuchtkasten :focus-visible, .haus-karte.ist-gewaehlt :focus-visible, .titel-box :focus-visible,
.kopf.menue-offen :focus-visible { outline-color: #fff; }
/* Fokusziele nicht unter der Kopfzeile oder der Schnellkontakt-Leiste verstecken.
   Oben: Abstand nur an Elementen im Inhalt (Kopf, Menü und Leiste sind fix bzw. klebend und
   scrollen nicht mit; Sprünge zu Abschnitten regelt .abschnitt). Unten: Freiraum für die
   Leiste am Fenster, damit er auch für die Schreibmarke in Textfeldern gilt. */
main :is(a[href], button, input, select, textarea, [tabindex="0"]), .fuss a[href] {
  scroll-margin-top: calc(var(--kopf-hoehe) + 16px);
}

h1, h2, h3, h4 {
  font-weight: 600; color: var(--titel); line-height: 1.2; letter-spacing: normal;
  /* keine automatische Silbentrennung in Titeln; nur wenn ein Wort nicht passt, bricht es um */
  overflow-wrap: break-word; hyphens: manual;
}
h1, h2 { text-wrap: balance; }
h2 { font-size: var(--groesse-h2); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprunglink {
  position: absolute; left: 12px; top: -80px; z-index: 300;
  background: var(--gruen-dunkel); color: #fff; padding: 12px 18px; border-radius: var(--radius-klein);
  font-weight: 600; text-decoration: none;
}
.sprunglink:focus { top: 12px; }

/* Mittelpunkt als Trenner – Axiforma setzt «·» zu tief */
.trenner {
  display: inline-block; width: 6px; height: 6px; margin: 0 10px;
  background: currentColor; border-radius: 50%; vertical-align: middle;
  position: relative; top: -0.08em;
}

/* Linienicons im Stil von emperio.ch */
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Bausteine ---------- */

.rahmen { width: 100%; max-width: var(--rahmen-max); margin: 0 auto; padding: 0 var(--seitenrand); }
.abschnitt {
  padding: var(--abschnitt-abstand) 0 0;
  /* Beim Sprung aus dem Menü steht die Überschrift bzw. Box knapp unter der Kopfzeile */
  scroll-margin-top: calc(var(--kopf-hoehe) - var(--abschnitt-abstand) + 24px);
}

.vorzeile {
  font-weight: 500; font-size: 16px; line-height: 1.45; color: var(--text-kurz);
  margin-bottom: var(--vorzeile-abstand);
}
.einleitung { max-width: 760px; margin-bottom: var(--kopfblock-abstand); }
.einleitung .lead, .lead { font-size: 16px; line-height: 1.4; color: var(--text-weich); }
.einleitung .lead { margin-top: 24px; max-width: 655px; }
.kleingedruckt { margin-top: 24px; font-size: 14px; line-height: 1.4; color: var(--text-leise); }
.kleingedruckt a { color: var(--gruen-dunkel); }

/* Kopfblock: links Vorzeile und Titel, rechts unten bündig eine Angabe */
.titelzeile {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap;
  gap: 20px 48px; margin-bottom: var(--kopfblock-abstand);
}
.titelzeile > div { max-width: 700px; }
.titelzeile > .lead { max-width: 340px; }
.stand { font-size: 14px; line-height: 1.4; color: var(--text-leise); }

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--knopf-hoehe); padding: 12px 42px;
  font: 600 16px/1.3 var(--schrift); text-align: center; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius-knopf); background: none; cursor: pointer;
  transition: background-color var(--dauer) var(--tempo), color var(--dauer) var(--tempo),
              border-color var(--dauer) var(--tempo), opacity var(--dauer) var(--tempo);
}
.btn svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn-voll { background: var(--knopf-flaeche); color: var(--knopf-text); }
.btn-rand { background: #fff; color: var(--gruen-dunkel); border-color: var(--gruen-dunkel); }
.btn-hell { background: #fff; color: var(--gruen-dunkel); }
.btn-rand-hell { color: #fff; border-color: #fff; }
.btn-info { font-weight: 400; color: var(--text-leise); white-space: nowrap; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
@media (hover: hover) {
  .btn-voll:hover { background: var(--knopf-hover); }
  .btn-rand:hover { background: rgba(1, 80, 72, 0.05); }
  .btn-hell:hover { opacity: 0.9; }
  .btn-rand-hell:hover { background: rgba(255, 255, 255, 0.1); }
}

/* Textlink mit Pfeilkreis */
.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 16px/1.2 var(--schrift); color: var(--gruen-dunkel); text-decoration: none;
  transition: gap var(--dauer) var(--tempo);
}
.textlink svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.textlink-zurueck svg { transform: rotate(180deg); }
@media (hover: hover) { .textlink:hover { gap: 12px; } }

/* Statusplaketten */
.status {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--radius-plakette);
  font: 600 14px/20px var(--schrift); white-space: nowrap;
  background: var(--status-verfuegbar-flaeche); color: var(--status-verfuegbar-text);
}
.ist-reserviert .status, .status.ist-reserviert { background: var(--status-reserviert-flaeche); color: var(--status-reserviert-text); }
.ist-verkauft .status, .status.ist-verkauft { background: var(--status-verkauft-flaeche); color: var(--status-verkauft-text); }

/* ---------- Kopf ---------- */

.kopf {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  transition: background-color var(--dauer-lang) var(--tempo);
}
/* .ist-gescrollt setzt main.js weiterhin, es gibt aber keinen Schatten mehr */
.kopf-innen {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--kopf-hoehe); max-width: var(--rahmen-max); margin: 0 auto; padding: 0 var(--seitenrand);
}
.marke { display: block; flex: none; border-radius: 4px; }
.marke img { width: 111px; height: 40px; transition: filter var(--dauer-lang) var(--tempo); }
.kopf-rechts { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.kopf-telefon {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font: 600 16px/1 var(--schrift); color: var(--gruen-dunkel); text-decoration: none;
  transition: opacity var(--dauer) var(--tempo), color var(--dauer-lang) var(--tempo);
}
@media (hover: hover) { .kopf-telefon:hover { opacity: 0.8; } }

/* Navigation als Pille (ab 1280 px alle sieben Punkte) */
.menue {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--gruen-dunkel); border-radius: var(--radius-pille); padding: 8px;
}
.menue-liste { list-style: none; display: flex; gap: 16px; }
.menue-liste a {
  display: flex; align-items: center; height: 46px; padding: 0 18px; border-radius: var(--radius-pille);
  font: 500 14px/22px var(--schrift); color: #fff; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dauer) var(--tempo);
}
@media (hover: hover) { .menue-liste a:hover { background: rgba(255, 255, 255, 0.1); } }
.menue-liste a:focus-visible { outline-offset: -2px; }
.menue-extra { display: none; }

.menue-knopf {
  display: none; position: relative; flex: none; width: 48px; height: 48px; margin-right: -3px;
  background: none; border: 0; border-radius: var(--radius-klein); cursor: pointer;
}
.menue-strich { position: absolute; left: 3px; top: 50%; width: 42px; height: 0; }
.menue-strich::before, .menue-strich::after {
  content: ""; position: absolute; left: 0; width: 42px; height: 3px; border-radius: 2px;
  background: var(--gruen-dunkel);
  transition: transform var(--dauer-lang) var(--tempo), background-color var(--dauer-lang) var(--tempo);
}
.menue-strich::before { top: -5px; }
.menue-strich::after { top: 2px; }
.kopf.menue-offen .menue-strich::before { transform: translateY(3.5px) rotate(30deg); background: #fff; }
.kopf.menue-offen .menue-strich::after { transform: translateY(-3.5px) rotate(-30deg); background: #fff; }

/* Rechtsseiten: nur der Rückweg */
.kopf-zurueck { margin-left: auto; min-height: 44px; }

@media (max-width: 1279px) {
  .menue-knopf { display: block; }
  .menue {
    position: fixed; top: var(--kopf-hoehe); left: 0; right: 0; transform: none;
    max-height: calc(100vh - var(--kopf-hoehe)); overflow-y: auto; overscroll-behavior: contain;
    border-radius: 0 0 20px 20px; padding: 24px var(--seitenrand) 32px;
    opacity: 0; visibility: hidden;
    transition: opacity var(--dauer-lang) var(--tempo), visibility 0s linear var(--dauer-lang);
  }
  .kopf.menue-offen .menue { opacity: 1; visibility: visible; transition-delay: 0s; }
  /* Zielflächen 44 px hoch; mit 8 px Abstand bleibt der Zeilenabstand wie zuvor (rund 52 px) */
  .menue-liste { flex-direction: column; gap: 8px; max-width: calc(var(--rahmen-max) - 2 * var(--seitenrand)); margin: 0 auto; }
  .menue-liste a { height: auto; min-height: 44px; padding: 0; border-radius: 4px; font: 600 24px/1.2 var(--schrift); }
  .menue-liste a:focus-visible { outline-offset: 2px; }
  @media (hover: hover) { .menue-liste a:hover { background: none; opacity: 0.8; } }
  .menue-extra {
    display: flex; flex-direction: column; align-items: stretch; gap: 12px;
    max-width: calc(var(--rahmen-max) - 2 * var(--seitenrand)); margin: 32px auto 0;
  }
  .menue-extra .btn { min-height: 56px; }
  .menue-tel { display: flex; align-items: center; min-height: 44px; font-size: 16px; color: var(--text-auf-dunkel); text-decoration: none; }
  /* Offenes Menü: Kopfzeile dunkel, Logo weiss, feine Linie */
  .kopf.menue-offen { background: var(--gruen-dunkel); }
  .kopf.menue-offen::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--linie-dunkel); }
  .kopf.menue-offen .marke img { filter: brightness(0) invert(1); }
  .kopf.menue-offen .kopf-telefon { color: #fff; }
}
@media (max-width: 1023px) {
  .marke img { width: 96px; height: 35px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .menue-extra { flex-direction: row; align-items: center; gap: 32px; }
  .menue-extra .btn { min-width: 240px; }
}
@media (max-width: 640px) {
  .kopf-rechts .kopf-telefon { display: none; }
}

/* ---------- Titel: Bildbox wie die emperio-Startseite ---------- */

.titel { max-width: var(--rahmen-max); margin: 0 auto; padding: 0 var(--seitenrand); }
.titel-a {
  --kennzahlen-breite: min(420px, 32vw);
  display: grid; grid-template-columns: minmax(0, 1fr) var(--kennzahlen-breite);
}
.titel-box {
  grid-column: 1 / -1; grid-row: 1;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 560px; min-height: clamp(560px, calc(100vh - var(--kopf-hoehe) - 24px), 820px);
  min-height: clamp(560px, calc(100svh - var(--kopf-hoehe) - 24px), 820px);
  padding: 34px calc(var(--kennzahlen-breite) + 34px + 48px) 48px 34px;
  border-radius: var(--radius-karte); background: var(--petrol); color: #fff;
}
.titel-foto { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
/* Verlauf von emperio.ch (oben dunkel), dazu links eine leichte Abdunkelung für die Schrift */
.titel-box::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(356.61deg, rgba(0, 0, 0, 0) 4.18%, rgba(0, 0, 0, 0.5) 52.26%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.24) 45%, rgba(0, 0, 0, 0) 70%);
}
.ort { display: flex; align-items: center; flex-wrap: wrap; font: 500 16px/1.3 var(--schrift); }
.titel-box .ort { color: #fff; }
.titel-box .ort .trenner { background: var(--punkt); }
.titel-haupt { margin-top: auto; padding-top: 48px; }
.titel h1 { font-size: min(var(--groesse-h1), 5vw); line-height: 1.1; color: #fff; max-width: 11em; }
.titel-lead { margin-top: 12px; max-width: 453px; font: 500 16px/1.4 var(--schrift); color: #fff; }
.titel-knoepfe { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 56px; }
.titel-knoepfe .btn { min-width: 220px; }

/* Kennzahlen als weisse Karte rechts in der Bildbox (wo emperio.ch das Suchpanel hat) */
.titel-kennzahlen {
  grid-column: 2; grid-row: 1; align-self: center; margin-right: 34px; z-index: 1;
  background: #fff; border-radius: var(--radius-karte); padding: 24px;
}
.titel-kennzahlen dl { display: grid; gap: 16px; }
.titel-kennzahlen dl div {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--flaeche); border: 1px solid var(--linie-hell); border-radius: var(--radius-knopf); padding: 14px 20px;
}
.titel-kennzahlen dt { font-size: 14px; line-height: 1.4; color: var(--text-leise); }
.titel-kennzahlen dd { font: 600 24px/1.3 var(--schrift); color: var(--titel); white-space: nowrap; }
/* Die Karte ist 32vw breit: unter 1280 px passt der Preis in 24 px nicht auf eine Zeile */
@media (min-width: 1024px) and (max-width: 1279px) {
  .titel-kennzahlen dd { font-size: 20px; }
}

@media (max-width: 1023px) {
  .titel-a { display: block; }
  .titel-box {
    min-height: 560px; padding: 48px 24px 24px;
  }
  .titel-foto { object-position: 28% 50%; }
  .titel-box::after {
    background:
      linear-gradient(356.61deg, rgba(0, 0, 0, 0) 4.18%, rgba(0, 0, 0, 0.5) 52.26%),
      linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0) 75%);
  }
  .titel h1 { font-size: var(--groesse-h1); }
  .titel-knoepfe { margin-top: 32px; flex-direction: column; gap: 12px; }
  .titel-knoepfe .btn { width: 100%; min-width: 0; }
  .titel-kennzahlen {
    margin: 16px 0 0; padding: 16px; background: var(--flaeche); border-radius: var(--radius-karte);
  }
  .titel-kennzahlen dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .titel-kennzahlen dl div { background: #fff; border: 0; padding: 14px 16px; }
  .titel-kennzahlen dd { font-size: 18px; white-space: nowrap; }
}
/* Drei Kacheln nebeneinander erst, wenn der Preis hineinpasst (ab rund 716 px) */
@media (max-width: 760px) {
  .titel-kennzahlen dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .titel-kennzahlen dl div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .titel-kennzahlen dl div { padding: 12px; }
  .titel-kennzahlen dd { font-size: 16px; }
}
@media (max-width: 359px) {
  .titel-kennzahlen dl { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Häuser (Modellbühne in iso.css) ---------- */

.karten { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--raster-abstand); }
.haus-karte {
  height: 100%; display: flex; flex-direction: column;
  background: var(--flaeche); border-radius: var(--radius-bild);
  padding: 20px; cursor: pointer; color: var(--text);
  transition: background-color var(--dauer) var(--tempo), color var(--dauer) var(--tempo);
}
@media (hover: hover) { .haus-karte:hover { background: var(--flaeche-mint); } }
.haus-name { font-size: 24px; line-height: 1.2; }
.haus-typ { font-size: 14px; line-height: 1.4; color: var(--text-leise); margin: 2px 0 14px; }
.haus-werte { font-size: 14px; margin-bottom: 18px; }
.haus-werte div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--linie-hell); }
.haus-werte dt { color: var(--text-leise); }
.haus-werte dd { font-weight: 500; font-size: 15px; white-space: nowrap; color: var(--titel); }
.haus-preis { font: 600 20px/1.3 var(--schrift); color: var(--titel); margin-top: auto; }
.haus-fuss { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; }
.haus-mehr {
  display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1.2 var(--schrift);
  padding: 12px 0; margin: -12px 0;   /* Trefferfläche 44 px hoch, Lage unverändert */
  color: var(--gruen-dunkel); text-decoration: none; transition: gap var(--dauer) var(--tempo);
}
.haus-mehr svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .haus-karte:hover .haus-mehr { gap: 10px; } }
.haus-karte.ist-reserviert .haus-preis, .haus-karte.ist-verkauft .haus-preis { color: var(--text-leise); }
/* Gewählt: dunkelgrün wie die dunkle Leistungskarte auf emperio.ch */
.haus-karte.ist-gewaehlt { background: var(--flaeche-dunkel); color: #fff; }
.haus-karte.ist-gewaehlt .haus-name, .haus-karte.ist-gewaehlt .haus-werte dd,
.haus-karte.ist-gewaehlt .haus-preis, .haus-karte.ist-gewaehlt .haus-mehr { color: #fff; }
.haus-karte.ist-gewaehlt .haus-typ, .haus-karte.ist-gewaehlt .haus-werte dt { color: var(--text-auf-dunkel); }
.haus-karte.ist-gewaehlt .haus-werte div, .haus-karte.ist-gewaehlt .haus-werte { border-color: rgba(255, 255, 255, 0.2); }
.haus-karte.ist-gewaehlt.ist-verkauft .status { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #fff; }

.garage {
  margin-top: var(--raster-abstand); background: var(--flaeche); border-radius: var(--radius-bild); padding: 20px 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; font-size: 16px; color: var(--text);
}
.garage strong { font-weight: 600; color: var(--titel); }

.haus-detail { scroll-margin-top: calc(var(--kopf-hoehe) + 20px); }
.haus-detail:focus { outline: none; }
.legende-garten::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: #93bd7f; margin: 0 6px -1px 12px; }
.detail-werte { display: grid; grid-template-columns: 1fr 1fr; }
.detail-werte div { display: flex; flex-direction: column-reverse; }
.detail-preis { display: flex; align-items: center; flex-wrap: wrap; }
.detail-knoepfe { display: flex; flex-wrap: wrap; }

/* ---------- Baustand: dunkle Box ---------- */

.baustand {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 60px; align-items: center;
  background: var(--flaeche-dunkel); color: #fff; border-radius: var(--radius-karte);
  padding: var(--box-dunkel-innen);
}
.baustand > * { position: relative; z-index: 1; }
.baustand .einleitung { margin-bottom: 0; }
.baustand .vorzeile, .baustand h2 { color: #fff; }
.baustand .lead { color: var(--text-auf-dunkel); }
/* Baustellenfotos über die ganze Breite der Box */
.baustelle { grid-column: 1 / -1; }
.baustelle-titel { font-weight: 500; font-size: 16px; color: #fff; margin-bottom: 16px; }
.baustelle-bilder { display: grid; grid-template-columns: 1fr 1fr; gap: var(--raster-abstand); }
.baustelle .bild { aspect-ratio: 16 / 9; background: rgba(255, 255, 255, 0.08); }
/* Feines Linienmuster aus der Verkaufsdokumentation, nur hier */
.baustand > .baustand-muster {
  position: absolute; right: 0; bottom: 0; z-index: 0; width: 424px; height: auto;
  pointer-events: none; user-select: none;
}
.zeitleiste { list-style: none; counter-reset: etappe; }
.zeitleiste li {
  position: relative; padding: 0 0 28px 50px; font: 500 18px/1.45 var(--schrift);
  color: rgba(255, 255, 255, 0.7);
}
.zeitleiste li:last-child { padding-bottom: 0; }
.zeitleiste li::before {
  content: ""; position: absolute; left: 13px; top: 32px; bottom: 4px; width: 2px;
  background: rgba(255, 255, 255, 0.2); border-radius: 1px;
}
.zeitleiste li:last-child::before { display: none; }
.zeitleiste li::after {
  counter-increment: etappe; content: counter(etappe);
  position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: 600 13px/1 var(--schrift); color: rgba(255, 255, 255, 0.7);
  border: 2px solid var(--pille-inaktiv-dunkel); background: var(--gruen-dunkel);
}
.zeitleiste li.ist-erledigt { color: #fff; }
.zeitleiste li.ist-erledigt::before { background: var(--mint); }
.zeitleiste li.ist-erledigt::after {
  content: ""; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23015048' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  border-color: var(--mint);
}

/* ---------- Projekt: Mint-Box ---------- */

.projekt {
  background: var(--flaeche-mint); border-radius: var(--radius-karte); padding: var(--box-innen);
}
.projekt .einleitung {
  max-width: none; margin-bottom: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px;
}
.projekt .einleitung > .vorzeile { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
.projekt .einleitung > h2, .projekt .einleitung > .fliesstext { grid-column: 2; max-width: 655px; }
.fliesstext { margin-top: 24px; color: var(--text-weich); }
.fliesstext p + p { margin-top: 14px; }
.fakten { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--raster-abstand); margin-top: 60px; }
.fakten li { background: #fff; border-radius: var(--radius-bild); padding: 24px; display: flex; flex-direction: column; gap: 2px; }
.fakten svg {
  width: 56px; height: 56px; padding: 16px; margin-bottom: 18px; border-radius: var(--radius-knopf);
  background: var(--flaeche-mint); fill: none; stroke: var(--gruen-dunkel); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.fakt-titel { font-size: 14px; line-height: 1.4; color: var(--text-leise); }
.fakt-wert { font: 500 18px/1.45 var(--schrift); color: var(--titel); }

/* Bildband als Bildbox */
.bildband { position: relative; max-width: var(--rahmen-max); margin: var(--abschnitt-abstand) auto 0; padding: 0 var(--seitenrand); }
.bildband img { width: 100%; height: clamp(300px, 52vw, 640px); object-fit: cover; border-radius: var(--radius-karte); background: var(--flaeche); }
.glas-marke {
  position: absolute; left: calc(var(--seitenrand) + 24px); bottom: 24px;
  padding: 6px 12px; border-radius: var(--radius-karte);
  /* emperio.ch nutzt Weiss 20 %; auf dem hellen Innenraumbild reicht das nicht für die Schrift */
  background: rgba(0, 0, 0, 0.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 500 14px/1.4 var(--schrift); color: #fff;
}

/* ---------- Galerie und Lightbox ---------- */

.galerie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--raster-abstand); }
.bild { display: block; overflow: hidden; background: var(--flaeche); aspect-ratio: 3 / 2; border-radius: var(--radius-bild); }
.bild-gross { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.bild img { width: 100%; height: 100%; object-fit: cover; }
.bild:focus-visible { outline: 2px solid var(--gruen-dunkel); outline-offset: 3px; }

.leuchtkasten {
  position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center;
  padding: 5vh 88px; background: rgba(1, 80, 72, 0.96);
}
.leuchtkasten img { max-width: 100%; max-height: 84vh; object-fit: contain; border-radius: var(--radius-bild); }
.leuchtkasten button {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.7);
  background: none; color: #fff; font: 400 28px/1 var(--schrift); cursor: pointer;
  transition: border-color var(--dauer) var(--tempo), background-color var(--dauer) var(--tempo);
}
@media (hover: hover) { .leuchtkasten button:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); } }
.leuchtkasten .lk-zu { top: 16px; right: 16px; width: 48px; height: 48px; border-color: transparent; font-size: 36px; }
.lk-zurueck { left: 20px; top: 50%; transform: translateY(-50%); padding-bottom: 4px; }
.lk-weiter { right: 20px; top: 50%; transform: translateY(-50%); padding-bottom: 4px; }
.lk-text { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: var(--text-auf-dunkel); font-size: 14px; padding: 0 60px; }

/* ---------- Ausstattung: graue Box mit weissen Karten ---------- */

.ausstattung-kasten { background: var(--flaeche); border-radius: var(--radius-karte); padding: 48px 40px 40px; }
.ausstattung { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--raster-abstand); }
.spez { background: #fff; border-radius: var(--radius-bild); padding: 24px; }
.spez h3 { font-size: var(--groesse-h3-klein); line-height: 1.45; margin-bottom: 16px; }
.spez ul { list-style: none; }
.spez li {
  position: relative; padding-left: 36px; font-size: 16px; line-height: 1.45; color: var(--text-weich);
}
.spez li + li { margin-top: 10px; }
.spez li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a887' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.8 10A10 10 0 1 1 17 3.34'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
}

/* ---------- Lage ---------- */

.lage { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 60px; align-items: start; }
.lage h3 { font-size: var(--groesse-h3-klein); line-height: 1.45; margin-bottom: 16px; }
.poi-gruppe + .poi-gruppe { margin-top: 24px; }
.poi-gruppe h4 { font: 500 14px/1.4 var(--schrift); color: var(--text-leise); margin-bottom: 4px; }
.distanzen table { width: 100%; border-collapse: collapse; }
.distanzen tr { border-bottom: 1px solid var(--linie-hell); }
.distanzen th { text-align: left; font-weight: 400; padding: 12px 0; display: flex; align-items: center; color: var(--text); }
.distanzen td { text-align: right; padding: 12px 0; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 500; color: var(--titel); }
.poi-marke {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 22px; height: 22px; margin-right: 12px; border-radius: 50%;
  font-style: normal; font-size: 12px; font-weight: 600; color: #fff; background: var(--gruen-dunkel);
}
.ist-einkauf .poi-marke { background: var(--gruen); color: var(--petrol); }
.ist-verkehr .poi-marke { background: var(--mint); color: var(--gruen-dunkel); }

.zahlen { list-style: none; display: grid; gap: var(--raster-abstand); }
.zahlen li { background: var(--flaeche-mint); border-radius: var(--radius-bild); padding: 24px; }
.zahl { display: block; font: 600 40px/1.2 var(--schrift); color: var(--gruen-dunkel); }
.zahl-text { display: block; font-size: 14px; line-height: 1.4; color: var(--text-weich); margin-top: 4px; }

.karte-rahmen { margin-top: 60px; }
.karte {
  position: relative; width: 100%; height: 460px; background: var(--flaeche); z-index: 0;
  border-radius: var(--radius-karte); overflow: hidden; isolation: isolate;
}
.karte .leaflet-tile-pane { filter: saturate(0.6) brightness(1.04); }
.karte .leaflet-container, .karte.leaflet-container { font-family: var(--schrift); }
.karte .leaflet-control-container .leaflet-top.leaflet-left .leaflet-control { margin: 16px 0 0 16px; }
.karte .leaflet-bar, .karte.leaflet-touch .leaflet-bar { border: 0; box-shadow: none; border-radius: var(--radius-klein); overflow: hidden; }
.karte .leaflet-bar a, .karte.leaflet-touch .leaflet-bar a {
  width: 36px; height: 36px; line-height: 36px; color: var(--gruen-dunkel); font-weight: 400; border-bottom: 1px solid var(--linie);
}
.karte .leaflet-bar a:last-child { border-bottom: 0; }
.karte .leaflet-bar a:first-child, .karte .leaflet-bar a:last-child { border-radius: 0; }
.karte .leaflet-control-attribution {
  margin: 0 14px 10px 0; padding: 2px 8px; border-radius: 8px; font-size: 11px; background: rgba(255, 255, 255, 0.85);
}
.karte .leaflet-control-attribution a { color: var(--gruen-dunkel); }
.karte .leaflet-popup-content-wrapper { border-radius: var(--radius-klein); box-shadow: none; border: 1px solid var(--linie); }
.karte .leaflet-popup-tip { box-shadow: none; }
.karte .leaflet-popup-content { font-size: 14px; line-height: 1.5; margin: 12px 16px; color: var(--text); }
.karte .leaflet-tooltip.poi-hinweis {
  border-radius: var(--radius-klein); box-shadow: none; border: 1px solid var(--linie);
  padding: 6px 10px; font: 400 12px/1.4 var(--schrift); color: var(--text);
}
.standort { display: flex; align-items: center; }
.standort-punkt {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--gruen-dunkel); border: 3px solid #fff;
}
.standort-name {
  margin-left: 8px; padding: 4px 12px; white-space: nowrap; border-radius: var(--radius-pille);
  background: #fff; color: var(--gruen-dunkel); font: 600 13px/1.4 var(--schrift);
}
.poi-punkt {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font: 600 11px/1 var(--schrift); color: #fff; background: var(--gruen-dunkel);
}
.poi-punkt.ist-einkauf { background: var(--gruen); color: var(--petrol); }
.poi-punkt.ist-verkehr { background: var(--mint); color: var(--gruen-dunkel); }
.karte-legende { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-size: 14px; color: var(--text-weich); }
.karte-legende li::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; background: var(--gruen-dunkel); vertical-align: -1px; }
.karte-legende .einkauf::before { background: var(--gruen); }
.karte-legende .verkehr::before { background: var(--mint); }

/* ---------- Kontakt: Mint-Box mit Berater und Formular ---------- */

.kontakt-kasten {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start;
  background: var(--flaeche-mint); border-radius: var(--radius-karte); padding: 40px;
}
.kontakt-kasten .einleitung { margin-bottom: 40px; }
.berater { display: flex; align-items: center; gap: 24px; }
.berater-bild {
  width: 120px; height: 120px; flex: none; border-radius: 50%;
  object-fit: cover; object-position: 50% 25%; background: var(--linie);
}
.berater-text { min-width: 0; }
.berater-text .vorzeile { margin-bottom: 6px; font-size: 14px; }
.berater-name { font: 600 18px/1.45 var(--schrift); color: var(--titel); }
.berater-funktion { font-size: 14px; line-height: 1.4; color: var(--text-weich); margin-bottom: 10px; }
.berater-zeile + .berater-zeile { margin-top: 6px; }
.berater-zeile a {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 16px/1.3 var(--schrift); color: var(--gruen-dunkel); text-decoration: none;
}
.berater-zeile svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gruen); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .berater-zeile a:hover span { text-decoration: underline; text-underline-offset: 3px; } }
.berater-firma { margin-top: 12px; font-size: 14px; line-height: 1.4; color: var(--text-leise); }
.laden { margin-top: 40px; }
.laden .btn { padding-left: 28px; padding-right: 28px; }

.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.feld { display: flex; flex-direction: column; grid-column: 1 / -1; min-width: 0; }
.feld-halb { grid-column: span 1; }
.feld label { font: 500 14px/1.4 var(--schrift); color: var(--text-kurz); margin-bottom: 8px; }
.feld input, .feld select, .feld textarea {
  width: 100%; height: var(--feld-hoehe); padding: 0 16px; font: 400 16px/1.4 var(--schrift); color: var(--text);
  background: #fff; border: 1px solid var(--linie-hell); border-radius: var(--radius-feld);
  transition: border-color var(--dauer) var(--tempo), box-shadow var(--dauer) var(--tempo);
}
.feld select {
  -webkit-appearance: none; appearance: none; padding-right: 48px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23015048' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 16px center / 18px 18px no-repeat;
}
.feld textarea { height: auto; min-height: 189px; padding: 16px; resize: vertical; }
.feld ::placeholder { color: var(--platzhalter); opacity: 1; }
/* Auswahl ohne Wert («Bitte wählen») grau wie ein Platzhalter, die Liste selbst in Textfarbe */
.feld select:has(option[value=""]:checked) { color: var(--platzhalter); }
.feld select option { color: var(--text); }
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: none; border-color: var(--gruen-dunkel); box-shadow: inset 0 0 0 1px var(--gruen-dunkel);
}
.feld :is(input, select, textarea).ist-falsch, .feld :is(input, select, textarea).ist-falsch:focus {
  border-color: var(--rot); box-shadow: inset 0 0 0 1px var(--rot);
}
.feld-fehler { font-size: 14px; line-height: 1.4; color: var(--rot-text); margin-top: 6px; }
.feld-fehler:empty { display: none; }
.feld label.einwilligung {
  display: flex; gap: 12px; align-items: flex-start; margin: 0;
  font: 400 14px/1.45 var(--schrift); color: var(--text-weich); cursor: pointer;
}
.einwilligung input { width: 20px; height: 20px; margin-top: 0; flex: none; accent-color: var(--gruen); cursor: pointer; }
.einwilligung input:focus-visible { outline: 2px solid var(--gruen-dunkel); outline-offset: 2px; box-shadow: none; }
.einwilligung a { color: var(--gruen-dunkel); }
.einwilligung.ist-falsch span { color: var(--rot-text); }
.feld-aktionen { gap: 12px; }
.feld-aktionen .btn { width: 100%; min-height: 64px; }
.feld-aktionen .kleingedruckt { margin-top: 0; }
.formular-fehler, .formular-meldung.ist-fehler {
  padding: 16px 20px; border-radius: var(--radius-knopf);
  background: var(--fehler-flaeche); border: 1px solid var(--fehler-rand); color: var(--rot-text);
  font-size: 16px; line-height: 1.45;
}
.formular-meldung { margin-bottom: 24px; scroll-margin-top: calc(var(--kopf-hoehe) + 20px); }
.formular-danke, .formular-meldung.ist-ok {
  position: relative; padding: 20px 24px 20px 60px; border-radius: var(--radius-knopf);
  background: #fff; font: 500 18px/1.45 var(--schrift); color: var(--gruen-dunkel);
  scroll-margin-top: calc(var(--kopf-hoehe) + 20px);
}
.formular-danke::before, .formular-meldung.ist-ok::before {
  content: ""; position: absolute; left: 24px; top: 22px; width: 24px; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300a887' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.8 10A10 10 0 1 1 17 3.34'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
}
.formular-danke:focus { outline: none; }
.formular-danke:focus-visible { outline: 2px solid var(--gruen-dunkel); outline-offset: 3px; }
/* Honigtopf: aus dem Blickfeld, aber nicht display:none – manche Bots überspringen das */
.honigtopf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Schnellkontakt als dunkle Pille ---------- */

.kontaktleiste {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  display: flex; align-items: center; gap: 12px; padding: 6px;
  background: var(--gruen-dunkel); color: #fff; border: 2px solid #fff; border-radius: var(--radius-pille);
  transform: translateY(0);
  transition: transform var(--dauer-lang) var(--tempo), opacity var(--dauer-lang) var(--tempo), visibility 0s;
}
.kontaktleiste.ist-versteckt {
  transform: translateY(140%); opacity: 0; pointer-events: none; visibility: hidden;
  transition: transform var(--dauer-lang) var(--tempo), opacity var(--dauer-lang) var(--tempo), visibility 0s linear var(--dauer-lang);
}
.kontaktleiste img { width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 22%; background: var(--linie); }
.kontaktleiste-text { display: flex; flex-direction: column; font-size: 14px; line-height: 1.3; padding-right: 4px; }
.kontaktleiste-text strong { font-weight: 600; color: #fff; }
.kontaktleiste-text a { text-decoration: none; color: var(--text-auf-dunkel); font-weight: 400; white-space: nowrap; padding: 5px 0; margin: -5px 0; }
.kontaktleiste-knopf {
  display: flex; align-items: center; height: 44px; padding: 0 20px; border-radius: var(--radius-pille);
  background: #fff; color: var(--gruen-dunkel); font: 600 14px/1 var(--schrift); text-decoration: none;
  transition: background-color var(--dauer) var(--tempo);
}
@media (hover: hover) { .kontaktleiste-knopf:hover { background: var(--flaeche-mint); } }

/* ---------- Fuss ---------- */

.fuss {
  max-width: var(--rahmen-max); margin: 100px auto 0;
  background: var(--flaeche-dunkel); color: #fff; border-radius: 24px 24px 0 0;
}
.fuss-innen { padding: 80px var(--seitenrand); }
.fuss-oben { display: flex; flex-wrap: wrap; gap: 40px 80px; }
.fuss-marke { min-width: 245px; }
.fuss-logo { width: 145px; height: 52px; }
.fuss-projekt { margin-top: 24px; font: 500 16px/1.45 var(--schrift); color: #fff; display: flex; flex-wrap: wrap; align-items: center; }
.fuss-projekt .trenner { background: var(--punkt); }
.fuss-titel { font: 600 18px/1.45 var(--schrift); color: #fff; margin-bottom: 16px; }
.fuss-adresse p:not(.fuss-titel) { font: 300 14px/22px var(--schrift); color: rgba(255, 255, 255, 0.7); }
.fuss-adresse strong { font: 600 16px/28px var(--schrift); color: #fff; }
.fuss a { color: var(--fuss-link); text-decoration: none; transition: color var(--dauer) var(--tempo); }
.fuss-adresse a { font-weight: 400; }
@media (hover: hover) { .fuss a:hover { color: #fff; } }
.haftung {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--linie-dunkel);
  font: 300 12px/19px var(--schrift); color: rgba(255, 255, 255, 0.7);
}
.haftung p { max-width: 920px; }
.fuss-unten {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px;
  margin-top: 24px; font: 300 12px/19px var(--schrift); color: #fff;
}
.fuss-rechtliches { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.fuss-unten a { color: #fff; padding: 12px 0; margin: -12px 0; }   /* Trefferfläche 43 px hoch, Lage unverändert */
@media (hover: hover) { .fuss-unten a:hover { color: rgba(255, 255, 255, 0.8); } }
/* Rechtsseiten: kompakter Fuss */
.fuss-kompakt .fuss-innen { padding: 32px var(--seitenrand); }
.fuss-kompakt .fuss-unten { margin-top: 0; }

/* ---------- Rechtliche Seiten ---------- */

.rechtstext { padding: 120px 0 100px; }
.rechtstext .rahmen { max-width: calc(800px + 2 * var(--seitenrand)); }
.rechtstext h1 { font-size: var(--groesse-h2); margin-bottom: 16px; }
.rechtstext .stand { margin: 0 0 40px; }
.rechtstext h2 { font-size: 24px; line-height: 1.45; margin: 40px 0 12px; }
.rechtstext p, .rechtstext li { font-size: 16px; line-height: 1.5; color: var(--text-weich); }
.rechtstext p + p { margin-top: 12px; }
.rechtstext ul { list-style: none; margin: 10px 0 14px; }
.rechtstext li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.rechtstext li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gruen); }
.rechtstext a:not(.textlink) { color: var(--gruen-dunkel); text-underline-offset: 2px; }
.rechtstext .zurueck-zeile { margin-top: 48px; }
.rechtstext + .fuss { margin-top: 0; }

/* ---------- Anpassungen für kleinere Bildschirme ---------- */

@media (max-width: 1023px) {
  .baustand, .lage { grid-template-columns: 1fr; gap: 40px; }
  .projekt .einleitung { grid-template-columns: 1fr; }
  .projekt .einleitung > .vorzeile { grid-row: auto; margin-bottom: var(--vorzeile-abstand); }
  .projekt .einleitung > h2, .projekt .einleitung > .fliesstext { grid-column: 1; }
  .fakten { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .ausstattung { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ausstattung-kasten { padding: 32px 24px 24px; }
  .kontakt-kasten { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 32px 24px; }
  .kontakt-kasten .einleitung { margin-bottom: 32px; }
  .laden { margin-top: 32px; }
  .fuss { margin-top: 80px; }
  .fuss-innen { padding: 48px var(--seitenrand) 24px; }
  .rechtstext { padding: 80px 0 60px; }
}

@media (max-width: 760px) {
  .titelzeile { flex-direction: column; align-items: flex-start; gap: 16px; }
  .baustand > .baustand-muster { width: 300px; }
  .baustelle-bilder { grid-template-columns: 1fr; }
  .zeitleiste li { font-size: 16px; padding-bottom: 24px; }
  .fakten { grid-template-columns: 1fr; }
  .fakten li {
    padding: 16px; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; align-items: center;
  }
  .fakten svg { grid-row: 1 / span 2; margin: 0; }
  .fakt-titel { align-self: end; }
  .fakt-wert { align-self: start; font-size: 16px; }
  .galerie { grid-template-columns: 1fr 1fr; gap: 8px; }
  .bild-gross { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3 / 2; }
  .galerie .bild:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .ausstattung { grid-template-columns: 1fr; }
  .ausstattung-kasten { padding: 24px 16px 20px; }
  .spez { padding: 20px; }
  .spez h3 { font-size: 20px; }
  .zahl { font-size: 32px; }
  .karte { height: 360px; }
  .karte .leaflet-bar a, .karte.leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; }
  .kontakt-kasten { padding: 24px 16px; }
  .berater { gap: 16px; }
  .berater-bild { width: 78px; height: 78px; }
  .formular { grid-template-columns: 1fr; }
  .feld-halb { grid-column: 1 / -1; }
  .leuchtkasten { padding: 64px 12px 80px; }
  .lk-zurueck, .lk-weiter { top: auto; bottom: 56px; transform: none; }
  .lk-text { bottom: 18px; padding: 0 16px; }
  /* Schnellkontakt über die ganze Breite */
  .kontaktleiste { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); }
  .kontaktleiste-knopf { margin-left: auto; }
  .fuss-oben { flex-direction: column; align-items: center; text-align: center; gap: 32px; }
  .fuss-marke { width: auto; display: flex; flex-direction: column; align-items: center; }
  .fuss-projekt { justify-content: center; }
  .haftung { margin-top: 40px; }
  .fuss-unten { flex-direction: column; align-items: center; text-align: center; }
  .fuss-rechtliches { justify-content: center; }
}

@media (max-width: 640px) {
  .btn { padding-left: 24px; padding-right: 24px; }
  .laden .btn {
    width: 100%; display: grid; grid-template-columns: 24px auto; justify-content: center;
    column-gap: 12px; row-gap: 0; text-align: left; padding-top: 14px; padding-bottom: 14px;
  }
  .laden .btn svg { grid-row: 1 / span 2; }
  .glas-marke { left: calc(var(--seitenrand) + 16px); bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .kopf, .kontaktleiste, .karte-rahmen, .formular-rahmen, .baustand-muster, .titel-knoepfe, .glas-marke, .menue-extra { display: none; }
  /* Titel: Foto als eigenes Bild, Schrift dunkel. Ohne Hintergrundgrafiken druckt der Browser
     den Verlauf sonst als weisse Fläche über das Foto und hellt die weisse Schrift nur auf Grau auf. */
  .titel-a { display: block; }
  .titel-box { min-height: 0; padding: 0; background: none; color: var(--titel); border-radius: 0; overflow: visible; }
  .titel-box::after { display: none; }
  .titel-foto { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-bild); margin-bottom: 16px; }
  .titel-box .ort, .titel h1, .titel-lead { color: var(--titel); }
  .titel-haupt { padding-top: 16px; }
  .trenner { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .titel-kennzahlen { display: block; margin: 16px 0 0; padding: 0; background: none; }
  .titel-kennzahlen dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .titel-kennzahlen dl div { border: 1px solid var(--linie); }
  .titel-kennzahlen dl div:first-child { grid-column: auto; }
  .abschnitt { padding: 30px 0 0; }
  .baustand, .projekt, .ausstattung-kasten, .kontakt-kasten, .fuss {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}
