/* PRUEFMARKE: site.css Stand 2026-10-02-CF (Seitentitel-Fix: keine rohen nav-Schluessel) */

/* =========================================================
   SCHRIFT: Inter, lokal gehostet (CD-Manual: kein Google, kein Adobe).
   Regular 400 fuer Fliesstext, Bold 700 fuer Titel. Subset in public/fonts.
   ========================================================= */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-bold.woff2") format("woff2"); }

/* =========================================================
   STELLSCHRAUBEN. Die Markenfarben setzt brand_style() aus der config
   NACH dieser Datei (colors.vorrang = config); hier stehen Rueckfallwerte.
   Namen der Variablen sind Engine-Konvention (--petrol = primary usw.).
   ========================================================= */
:root {
    --beige: #c2cbc4;   /* Sage Grau nach Kundenmuster 02.09.2026 (ersetzt Messing #ece0c4); Variablenname historisch */
    --radius-bild: 24px;   /* nur fuer grosse Inhaltsbilder (Entscheid Gabriel 01.09.2026); UI bleibt bei --radius 4px */
    --paper:        #ffffff;   /* White: Seitengrund */
    --petrol-tint:  #f9f9f9;   /* Almost White: Sektionshintergrund */
    --ink:          #323538;   /* Text Color: ausschliesslich Schrift */
    --petrol:       #2b2e31;   /* Dark Gray: ausschliesslich Flaechen (Footer, dunkle Sektionen) */
    --petrol-deep:  #000000;
    --coral:        #5c7874;   /* Aare-Gruen interaktiv: Buttons, Links, Text (4.78:1) */
    --coral-soft:   #eff2f2;   /* Aare-Gruen 10 %: Karten, Trennflaechen */
    --accent-from:  #617d79;
    --accent-to:    #617d79;
    --accent-gradient: linear-gradient(100deg, #617d79 0%, #617d79 100%);
    --muted:        #323538;
    --rating:       #617d79;

    --gruen:        #617d79;   /* Aare-Gruen Basis (Flaechen, Bildmarke) */
    --gruen-hover:  #485d5a;   /* Hover 7.04:1 */
    --gruen-30:     #cfd8d7;   /* Tonleiter 30 % */
    --gruen-20:     #dfe5e4;   /* Tonleiter 20 % */

    --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius:        4px;      /* CD-Manual: Radius 4 px */
    --wrap:          1320px;   /* vorher 1180, Entscheid Gabriel 01.09.2026 (mehr Luft fuer Collage und Karten) */
    --measure:       42rem;    /* 45 bis 75 Zeichen je Zeile */
    --space-section: clamp(3.5rem, 7vw, 6.5rem);
    --hh:            88px;     /* Kopfhoehe Desktop */
    --hh-m:          72px;     /* Kopfhoehe Handy */
    --shadow-sm:     0 1px 2px rgba(43,46,49,.06), 0 6px 20px rgba(43,46,49,.06);
    --shadow-md:     0 12px 36px rgba(43,46,49,.12);
}

/* =========================================================
   GRUNDLAGEN
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--paper); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0; background: var(--paper); color: var(--ink);
    font-family: var(--font-body); font-weight: 400; font-size: 1.0625rem; line-height: 1.65;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    text-align: left;   /* Manual: immer linksbuendig, kein Blocksatz */
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.35rem); }
p { margin: 0 0 1.1rem; }
a { color: var(--coral); text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
a:hover { color: var(--gruen-hover); }
img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1.1rem; }
li { margin: 0 0 .35rem; }
strong, b { font-weight: 700; }
hr { border: 0; height: 1px; background: var(--gruen-20); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: var(--radius); }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.measure { max-width: var(--measure); }
.wrap.measure { margin-inline: auto; }   /* zentriert nur, wenn direkt als wrap gesetzt (Rechtstexte) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--petrol); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius) 0; }
.skip-link:focus { left: 0; }

/* =========================================================
   BUTTONS (Manual: Radius 4 px, keine Grossbuchstaben, Primaer/Hover/Sekundaer)
   ========================================================= */
.bh-btn, .gd-btn {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--font-body); font-weight: 400; font-size: 1rem; line-height: 1.2;
    padding: .85rem 1.6rem; border-radius: 100em;   /* pillenrund, Entscheid Gabriel 01.09.2026 (ersetzt 4px) */
    background: var(--coral); color: #fff; text-decoration: none;
    border: 1.5px solid var(--coral); cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.bh-btn:hover, .bh-btn:focus-visible, .gd-btn:hover { background: var(--gruen-hover); border-color: var(--gruen-hover); color: #fff; }
.bh-btn-sekundaer { background: transparent; color: var(--ink); border-color: var(--gruen-30); }
.bh-btn-sekundaer:hover, .bh-btn-sekundaer:focus-visible { background: var(--coral-soft); border-color: var(--coral); color: var(--ink); }
.bh-btn-weiss { background: #fff; color: var(--ink); border-color: #fff; }
.bh-btn-weiss:hover { background: var(--coral-soft); border-color: var(--coral-soft); color: var(--ink); }
.bh-ico { width: 1.1em; height: 1.1em; flex: 0 0 auto; }
.gd-button-zeile { display: inline-flex; flex-wrap: wrap; gap: .6rem .75rem; margin: 1.4rem .75rem 0 0; vertical-align: top; }
.gd-button-zeile + .gd-button-zeile { margin-top: .6rem; }
.prose .gd-button-zeile { max-width: none; }
.prose .gd-button-zeile a { text-decoration: none; }

/* =========================================================
   KOPF (Manual: Logo links, Menue rechts, weisser Balken bleibt beim Scrollen)
   ========================================================= */
.site-header {
    /* Kein backdrop-filter: er macht den Kopf zum Bezugsrahmen fuer das
       fixierte mobile Menue (dann ist es nur 72 px hoch).
       Flaeche in Aare-Gruen (Entscheid Gabriel 01.09.2026), abgedunkelte
       Fassung #5c7874: Weiss darauf misst 4.78:1, das Manual-Gruen nur
       4.45:1 (Accessibility). Elemente im Kopf sind weiss. */
    position: sticky; top: 0; z-index: 50; background: var(--coral);
    box-shadow: 0 1px 0 rgba(43,46,49,.12);
}
.hdr-inner { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; height: var(--hh); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; transition: height .25s ease; }
/* Kopf-Schrumpfen beim Scrollen bewusst entfernt (Entscheid Gabriel 01.09.2026):
   die mitwandernden Navigationspunkte unterbrachen das Design. */
.hdr-logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.hdr-logo .kk-logo { display: block; height: 56px; width: auto; }
.hdr-logo .kk-logo img { height: 56px; width: auto; }   /* Logo 1 : 0.531, Mindestbreite 160 px eingehalten (56 px hoch = 105 px breit, nur Signet-Region klein: Manual-Untergrenze gilt fuer die Gesamtmarke) */
.hdr-logo .kk-logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.hdr-nav-list { display: flex; gap: clamp(1.2rem, 2.4vw, 2.2rem); list-style: none; margin: 0; padding: 0; }
.hdr-nav-link { position: relative; display: inline-block; padding: .4rem 0; color: #fff; text-decoration: none; font-size: 1rem; }
.hdr-nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--beige); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }   /* Akzentlinie in der Ergaenzungsfarbe (seit 02.09.2026 Sage) */
.hdr-nav-link:hover::after { transform: scaleX(1); }
.hdr-nav-link[aria-current="page"] { color: #fff; font-weight: 700; }   /* aktiv bleibt WEISS: Messing auf dem Gruen misst nur 3.6:1 und wuerde die Accessibility-100 kosten; die Messing-Linie traegt die Farbe */
.hdr-nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-caret, .hdr-sub { display: none; }

/* Hamburger (nur Handy) */
.burger { display: none; width: 32px; height: 22px; position: relative; background: none; border: 0; padding: 0; cursor: pointer; z-index: 60; }
.burger::after { content: ""; position: absolute; inset: -11px -6px; }
.burger span { position: absolute; left: 0; right: 0; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s cubic-bezier(.65,0,.2,1), opacity .2s ease; }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 50%; margin-top: -1px; }
.burger span:nth-child(3) { bottom: 0; }
body.menu-open .burger span:nth-child(1) { top: 50%; margin-top: -1px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { bottom: 50%; margin-bottom: -1px; transform: rotate(-45deg); }

/* Mobiles Menue: weisse Flaeche unter dem Kopf, Punkte gross, aktiver in Aare-Gruen */
.mm { position: fixed; left: 0; right: 0; top: var(--hh-m); bottom: 0; z-index: 40; background: var(--paper); padding: 1.5rem 0 3rem; overflow: auto;
      transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .28s ease, opacity .28s ease, visibility 0s .28s; }
body.menu-open .mm { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .28s ease, opacity .28s ease; }
.mm-inner { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.mm-nav { list-style: none; margin: 0; padding: 0; }
.mm-item { margin: 0; }
.mm-main { display: block; padding: 1rem 0; font-size: 1.5rem; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gruen-20); }
.mm-main[aria-current="page"] { color: var(--coral); }
.mm-sub { display: none; }
body.menu-open { overflow: hidden; }

@media (max-width: 760px) {
    .hdr-inner { height: var(--hh-m); }
    .hdr-nav { display: none; }
    .hdr-logo .kk-logo, .hdr-logo .kk-logo img { height: 46px; }
    .burger { display: block; }
}
@media (min-width: 761px) { .mm { display: none; } }

/* =========================================================
   STARTSEITEN-HERO (Manual: Bern von oben, Logo mittig, kein Text)
   Das Foto ist ein <img> mit srcset und damit LCP-Kandidat; die weisse
   Aufhellung sorgt dafuer, dass das Logo auf ruhigem Grund steht.
   ========================================================= */
/* Hero (Entscheid Gabriel 01.09.2026, Lieferung BB): Desktop halb-halb.
   Links Weiss (Ruhe), rechts der farbige Studio-Slider (Stimmung), die
   Markenbox auf der Rasterflucht ueberlappt die Bildhaelfte (46rem-Box
   reicht ueber die Mittellinie: der «Bezug»). Ohne Slides: S/W-Standbild
   vollflaechig wie bisher. */
.bh-hero { position: relative; overflow: hidden; isolation: isolate; min-height: calc(100svh - var(--hh)); display: grid; align-items: center; padding: clamp(3rem, 8vw, 6rem) 0; background: var(--paper); }
.bh-hero-bild { position: absolute; inset: -22% 0; z-index: -1; }
.bh-hero-bild img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; filter: grayscale(1) contrast(1.04); }
.bh-hero-slider { position: absolute; inset: 0 0 0 50%; z-index: -1; }
@media (min-width: 761px) { .bh-hero-slider { border-bottom-left-radius: var(--radius-bild); overflow: hidden; } }
.bh-hero-slider .bh-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.bh-hero-slider .bh-slide.ist-an { opacity: 1; }
@media (max-width: 760px) {
    .bh-hero.hat-slider { display: block; padding: 0 0 clamp(2.5rem, 8vw, 4rem); min-height: 0; }
    .bh-hero-slider { position: relative; inset: auto; height: 52svh; }
    .bh-hero.hat-slider .wrap { position: relative; margin-top: -3.2rem; }
}
.bh-hero-titel { color: #fff; margin: 0 0 1rem; font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); line-height: 1.08; }
.bh-hero-box p { margin: 0; font-size: 1.1rem; max-width: 34rem; }
@media (max-width: 760px) { .bh-hero { min-height: calc(100svh - var(--hh-m)); } }
.bh-hero-wortmarke { display: block; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 5vw, 2.6rem); letter-spacing: .08em; text-transform: uppercase; color: var(--ink);  color: #fff; text-shadow: 0 2px 22px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.35); }
@media (max-width: 760px) {
    .bh-hero { min-height: min(72vh, 640px); }
    .bh-hero-bild img { object-position: center 45%; }
}

/* =========================================================
   KOPF DER UNTERSEITEN
   ========================================================= */
.bh-kopf { background: var(--petrol-tint); padding: clamp(2.6rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.bh-kopf-titel { margin: 0; }
.bh-kopf-lead { margin: .6rem 0 0; font-size: 1.15rem; max-width: var(--measure); }

/* =========================================================
   SEKTIONEN (Manual: heller Inhaltsblock, farbige Bildsektion, wieder Inhalt)
   ========================================================= */
.bh-sektion { padding: var(--space-section) 0; background: var(--paper); }
.bh-sektion-hell { background: var(--beige); }   /* Systementscheid Gabriel 01.09.2026: helle Sektionen tragen das Messing */
:is(.bh-sektion:not(.bh-sektion-hell):not(.bh-sektion-beige)) + .bh-sektion:not(.bh-sektion-hell):not(.bh-sektion-beige):not(:last-of-type) { padding-top: 0; }   /* Abstand faellt NUR weg, wenn Weiss auf Weiss folgt; nach farbigen Sektionen bleibt er (Preise, Philosophie, letzte Kontakt-Sektion) */
.bh-titel { margin: 0 0 clamp(1.4rem, 3vw, 2.2rem); }
.bh-titel-mitte { text-align: center; }
.bh-kopfzeile { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.bh-kopfzeile .bh-titel { margin: 0; }
.bh-kopfzeile .bh-btn { text-decoration: none; }
.bh-intro { margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.bh-leer { max-width: var(--measure); }

/* Text und Bild: Text links, Bilder rechts; jede zweite Sektion gespiegelt */
.bh-split-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
/* Kein Spalten-gap: die Bildspalte beginnt EXAKT auf der Wrap-Mitte
   (= Seitenmitte, wie die Hero-Haelfte); der Abstand haengt als
   padding an der Textspalte (Entscheid Gabriel 01.09.2026). */
@media (min-width: 900px) {
    .bh-split-inner { gap: 0; }
    .bh-split-inner .bh-split-text { padding-right: clamp(2rem, 5vw, 4.5rem); }
    .bh-split.ist-gespiegelt .bh-split-text { padding-right: 0; padding-left: clamp(2rem, 5vw, 4.5rem); }
}
@media (max-width: 899px) { .bh-split-inner { gap: clamp(2rem, 5vw, 4.5rem); } }
.bh-split.ist-gespiegelt .bh-split-text { order: 2; }
.bh-split.ist-gespiegelt .bh-split-bilder { order: 1; }
.bh-split-text h2 { margin-top: 0; }
.bh-split-bilder { display: grid; gap: 1rem; }
.bh-split-bilder.hat-mehrere { grid-template-columns: 1fr 1fr; align-items: start; }
.bh-split-bilder.hat-mehrere .bh-bild:first-child { grid-column: 1 / -1; }
.bh-split-bilder.hat-mehrere .bh-bild.ist-klein { grid-column: auto; max-width: none; }
.bh-bild { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.bh-bild img { width: 100%; height: auto; }
@media (max-width: 860px) {
    .bh-split-inner { grid-template-columns: 1fr; }
    .bh-split.ist-gespiegelt .bh-split-text, .bh-split.ist-gespiegelt .bh-split-bilder { order: initial; }
    .bh-split-bilder.hat-mehrere { grid-template-columns: 1fr 1fr; }
}

/* Bildband: volle Breite, Foto abgedunkelt (nicht zugedeckt), weisse Schrift.
   Handy: Variante ab 800 px, Desktop: die groesste. */
.bh-band { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: clamp(4rem, 12vw, 9rem) 0; background: var(--gruen); }
/* Bild-Layer mit Hoehenreserve: die Parallax-Verschiebung (site.js, data-plx)
   darf oben und unten nie den Rand freilegen. */
.bh-band-bild { position: absolute; inset: -22% 0; z-index: -2; }
.bh-band-bild img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.04); }
/* Kein Vollflaechen-Layer mehr (Entscheid Gabriel 01.09.2026): das
   S/W-Parallaxbild bleibt sichtbar, das Gruen sitzt in der Textbox. */
/* Textbox im Band: steht ruhig im Raster, dahinter wandert das S/W-Bild.
   Flaeche #5c7874 wie Kopf und Footer (Weiss darauf 4.78:1). */
.bh-band-inner, .bh-hero-box { background: var(--coral); border-radius: var(--radius-bild); padding: clamp(1.75rem, 4vw, 3rem); max-width: 46rem; box-shadow: 0 18px 50px rgba(43,46,49,.28); color: #fff; }
/* Band-Box endet auf der Containermitte (Entscheid Gabriel 01.09.2026):
   ergibt mit den 50%-Textsektionen darueber eine ruhige Zweispaltigkeit. */
@media (min-width: 900px) { .bh-band-inner { max-width: 50%; } }
.bh-band-inner .bh-band-titel { max-width: 30ch; }
.bh-band-titel { color: #fff; margin: 0; font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.bh-band-text { margin-top: 1rem; font-size: 1.1rem; max-width: var(--measure); }
.bh-band-text p:last-child { margin-bottom: 0; }
.bh-band-text a { color: #fff; }
.bh-band .bh-btn { background: #fff; border-color: #fff; color: var(--ink); }
.bh-band .bh-btn:hover { background: var(--coral-soft); }

/* Karten (Services im Ueberblick) */
.bh-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.bh-karte { background: var(--paper); border-radius: var(--radius-bild); padding: 1.6rem 1.5rem 1.4rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .4rem; }
.bh-karte-nr { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--coral); color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: .6rem; }
.bh-karte h3 { margin: 0 0 .2rem; font-size: 1.15rem; }
.bh-karte .prose p { margin-bottom: 0; }
.bh-karte .prose p:not(:last-child) { margin-bottom: .6rem; }

/* =========================================================
   FLIESSTEXT UND ELEMENTE (Seiteneditor)
   ========================================================= */
.prose { color: var(--ink); }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 1.8rem; }
.prose p, .prose ul, .prose ol { max-width: var(--measure); }
.prose > *:last-child { margin-bottom: 0; }
.gd-liste { padding-left: 0; list-style: none; }
.gd-liste li { position: relative; padding-left: 1.5rem; margin-bottom: .55rem; }
.gd-liste li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--gruen); }
ol.gd-liste { counter-reset: gd; }
ol.gd-liste li { padding-left: 2rem; }
ol.gd-liste li::before { content: counter(gd) "."; counter-increment: gd; width: auto; height: auto; top: 0; border-radius: 0; background: none; color: var(--coral); font-weight: 700; }
.gd-liste-haken li::before { width: .9rem; height: .9rem; top: .3em; border-radius: 0; background: none; border-left: 2px solid var(--gruen); border-bottom: 2px solid var(--gruen); transform: rotate(-45deg) scale(.8); }
.md-bild { margin: 1.5rem 0; border-radius: var(--radius); overflow: hidden; }
.md-bild.ist-klein { max-width: 300px; }
.gd-akk { border-top: 1px solid var(--gruen-20); }
.gd-akk:last-of-type { border-bottom: 1px solid var(--gruen-20); }
.gd-akk summary { cursor: pointer; padding: .9rem 2rem .9rem 0; font-weight: 700; list-style: none; position: relative; }
.gd-akk summary::-webkit-details-marker { display: none; }
.gd-akk summary::after { content: "+"; position: absolute; right: .2rem; top: .8rem; color: var(--gruen); font-size: 1.3rem; line-height: 1; }
.gd-akk[open] summary::after { content: "\2013"; }
.gd-akk-inhalt { padding: 0 0 1rem; }
.gd-termin { margin: 1.5rem 0; }

/* =========================================================
   OBJEKTKARTE (Manual: Bild, Adresse, Objektart, Eckdaten, Status)
   ========================================================= */
.bh-objekte { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.bh-objekt { background: var(--paper); border-radius: var(--radius-bild); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease; }
.bh-objekt:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .bh-objekt:hover { transform: none; } }
.bh-objekt-link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.bh-objekt-bild { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--coral-soft); }
.bh-objekt-bild img { width: 100%; height: 100%; object-fit: cover; }
.bh-objekt-bild-leer { background: linear-gradient(135deg, var(--coral-soft), var(--gruen-20)); }
.bh-objekt-body { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.25rem 1.25rem; flex: 1; }
.bh-objekt-titel { font-weight: 700; color: var(--coral); font-size: 1.12rem; line-height: 1.25; }
.bh-objekt-art { font-weight: 700; font-size: .95rem; }
.bh-objekt-eck { display: flex; flex-direction: column; font-size: .9rem; color: var(--ink); }
.bh-objekt-preis { font-weight: 700; margin-top: .3rem; }
.bh-objekt-status { margin-top: auto; padding-top: .8rem; font-weight: 700; font-size: .95rem; }
/* Referenzobjekte in normalen Farben (Wunsch Kunde 02.09.2026); die
   Graustufe ist raus, der Verkauft-Badge kennzeichnet weiterhin. */
.bh-objekt-badge { position: absolute; top: .7rem; left: .7rem; background: var(--petrol); color: #fff; font-size: .8rem; font-weight: 700; padding: .25rem .6rem; border-radius: var(--radius); }
.bh-objekt-bild { position: relative; }

/* Objektseite */
.bh-galerie-sektion { padding: clamp(1.5rem, 3vw, 2.5rem) 0 0; }
.bh-galerie { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(120px, auto); gap: .75rem; }
.bh-galerie-item { display: block; border-radius: 12px; overflow: hidden; background: var(--coral-soft); aspect-ratio: 4 / 3; }   /* kleine Kacheln: halber Bildradius */
.bh-galerie-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; border-radius: var(--radius-bild); }
.bh-galerie.ist-einzeln { grid-template-columns: 1fr; }
.bh-galerie.ist-einzeln .bh-galerie-item:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 9; }
.bh-galerie-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.bh-galerie-item:hover img { transform: scale(1.03); }
@media (max-width: 760px) { .bh-galerie { grid-template-columns: repeat(2, 1fr); } .bh-galerie-item:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; } }
.bh-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(43,46,49,.94); display: grid; place-items: center; }
.bh-lightbox[hidden] { display: none; }
.gd-lb-stage { width: 100%; height: 100%; display: grid; place-items: center; padding: 3rem; }
.gd-lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--radius); }
.bh-lb-knopf { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; padding: .5rem 1rem; z-index: 2; }
.bh-lb-schliessen { top: .6rem; right: .8rem; }
.bh-lb-zurueck { left: .4rem; top: 50%; transform: translateY(-50%); }
.bh-lb-weiter { right: .4rem; top: 50%; transform: translateY(-50%); }
.bh-objekt-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.bh-objekt-text .gd-button-zeile a { text-decoration: none; }
.bh-eckdaten { background: var(--petrol-tint); border-radius: var(--radius); padding: 1.5rem 1.6rem; position: sticky; top: calc(var(--hh) + 1rem); }
.bh-eckdaten-status { display: inline-block; margin: 0 0 1rem; padding: .3rem .7rem; border-radius: var(--radius); background: var(--coral); color: #fff; font-weight: 700; font-size: .9rem; }
.bh-eckdaten-status.ist-abgeschlossen { background: var(--petrol); color: #fff; }
.bh-eckdaten dl { margin: 0 0 1.2rem; }
.bh-eckdaten dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--gruen-20); }
.bh-eckdaten dt { margin: 0; }
.bh-eckdaten dd { margin: 0; font-weight: 700; text-align: right; }
.bh-eckdaten-kontakt { margin: 0; font-size: .95rem; }
.bh-objekt-nav .bh-kopfzeile { margin-bottom: 0; }   /* NICHT margin:0, das wuerde die wrap-Zentrierung (margin-inline:auto) loeschen */
.bh-objekt-nav .bh-kopfzeile > * { flex: 0 0 auto; }
.bh-objekt-nav .bh-kopfzeile > :nth-child(2) { margin-inline: auto; }   /* Alle Objekte mittig, Blaettern aussen */
.bh-objekt-nav .bh-btn { text-decoration: none; }
@media (max-width: 860px) { .bh-objekt-grid { grid-template-columns: 1fr; } .bh-eckdaten { position: static; } }

/* =========================================================
   UEBER UNS: Portraetkarte. KONTAKT: Kacheln (jede Angabe antippbar)
   ========================================================= */
.bh-sektion-portrait { background: var(--petrol-tint); padding-top: 0; }
.bh-portrait { max-width: 420px; margin: 0 auto; text-align: center; background: var(--paper); border-radius: var(--radius); padding: 2rem 1.5rem 1.8rem; box-shadow: var(--shadow-sm); }
.bh-portrait-bild { width: min(70%, 240px); margin: 0 auto 1.2rem; border-radius: var(--radius); overflow: hidden; }
.bh-portrait-name { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; margin: 0; }
.bh-portrait-rolle { margin: .2rem 0 .9rem; }
.bh-portrait-mail, .bh-portrait-tel { display: block; text-decoration: none; }
.bh-portrait-mail { font-weight: 700; color: var(--coral); font-size: 1.1rem; }
.bh-portrait-tel { color: var(--ink); margin-top: .3rem; }
.bh-sektion-kacheln { padding-bottom: clamp(2rem, 4vw, 3rem); }
.bh-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.bh-kachel { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; padding: 1.8rem 1.2rem 1.5rem; background: var(--paper); border: 1.5px solid var(--gruen-20); border-radius: var(--radius-bild); color: var(--ink); text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease; }
.bh-kachel:hover { border-color: var(--coral); box-shadow: var(--shadow-sm); color: var(--ink); }
.bh-kachel-ico { width: 2rem; height: 2rem; color: var(--gruen); margin-bottom: .5rem; }
.bh-kachel-titel { font-weight: 700; }
.bh-kachel-text { line-height: 1.4; }
.bh-kachel-hinweis { margin-top: .6rem; font-size: .85rem; color: var(--coral); font-weight: 700; }

/* =========================================================
   KONTAKTFORMULAR (Engine Kontakt::render, zwei Schritte)
   ========================================================= */
.gd-form { max-width: 40rem; }
.gd-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.gd-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .95rem; margin-bottom: 1rem; }
.gd-form input:not([type="checkbox"]), .gd-form textarea, .gd-form select { font: inherit; color: var(--ink); width: 100%; padding: .8rem .9rem; background: var(--paper); border: 1.5px solid var(--gruen-30); border-radius: var(--radius); appearance: none; -webkit-appearance: none; }
.gd-form input:focus, .gd-form textarea:focus, .gd-form select:focus { outline: 3px solid var(--coral); outline-offset: 1px; border-color: var(--coral); }
.gd-form select { background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23323538' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right .9rem center; padding-right: 2.4rem; cursor: pointer; }
.gd-form textarea { resize: vertical; min-height: 8rem; }
.gd-form ::placeholder { color: var(--ink); opacity: .45; }
.gd-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .gd-zwei { grid-template-columns: 1fr; } }
.gd-feld-gross { font-weight: 700; font-size: 1.05rem; }
.gd-haken { flex-direction: row; align-items: flex-start; gap: .6rem; }
.gd-haken input { width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; accent-color: var(--gruen); flex: 0 0 auto; }
.gd-pflicht { color: var(--gruen); }
.gd-freiwillig { font-size: .8rem; opacity: .7; }
.gd-hinweis { font-size: .9rem; }
.gd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gd-schritt-knoepfe { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .5rem; }
.gd-fortschritt { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; font-size: .9rem; }
.gd-fortschritt-bahn { flex: 1; height: 6px; background: var(--gruen-20); border-radius: 3px; overflow: hidden; }
.gd-fortschritt-fuellung { display: block; height: 100%; width: 50%; background: var(--gruen); transition: width .3s ease; }
.gd-fortschritt-fuellung span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gd-form-fehler { background: var(--coral-soft); border-left: 3px solid var(--gruen); padding: .8rem 1rem; border-radius: var(--radius); }
.gd-form-dank { background: var(--petrol-tint); padding: 1.5rem 1.6rem; border-radius: var(--radius); font-weight: 700; }
.gd-form-dank p { margin: 0; }

/* =========================================================
   FUSSZEILE (Manual: Dark Gray, Logo negativ, Kontaktdaten, Quick Links)
   ========================================================= */
.site-footer { background: var(--coral); color: #fff;   /* wie der Kopf, Entscheid Gabriel 01.09.2026 (vorher Dark Gray) */ padding: clamp(3rem, 6vw, 4.5rem) 0 1.6rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.bh-footer { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); }
.bh-footer p { margin: 0 0 .5rem; }
.bh-footer-wortmarke { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .06em; text-transform: uppercase; }
.bh-footer-marke img { width: 180px; height: auto; margin-bottom: 1rem; }
.bh-footer-claim { max-width: 28rem; }   /* keine Deckungs-Dimmung auf dem Gruen: selbst .95 misst nur 4.3:1 */
.bh-footer-titel { font-weight: 700; margin-bottom: .8rem; }
.bh-footer-punkt { margin: 0 .4rem; }
.bh-footer-links ul { list-style: none; margin: 0; padding: 0; }
.bh-footer-links li { margin: 0 0 .45rem; }
.bh-footer-unten { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.2); font-size: .85rem; }   /* Text voll deckend: auf dem Gruen faellt jede Dimmung unter 4.5:1 */
.bh-footer-unten p { margin: 0; }
@media (max-width: 760px) { .bh-footer { grid-template-columns: 1fr; gap: 1.8rem; } }

/* =========================================================
   NACH OBEN, HINWEIS, KLEINIGKEITEN
   ========================================================= */
.gd-to-top { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--petrol); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .3s, transform .3s; z-index: 60; box-shadow: var(--shadow-sm); }
.gd-to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.gd-to-top .gd-ico-arrow { width: 20px; height: 20px; transform: rotate(-90deg); }
@media print { .site-header, .site-footer, .gd-to-top, .burger { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation: none !important; } }

/* ---------- Modul Objekte: Filter, Preis, Ausstattung ---------- */
.bh-filter { display: flex; flex-wrap: wrap; gap: .9rem 1.1rem; align-items: flex-end; margin-bottom: clamp(1.4rem, 3vw, 2rem); }
.bh-filter label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 700; }
.bh-filter select, .bh-filter input { font: inherit; font-weight: 400; color: var(--ink); padding: .55rem .7rem; background: var(--paper); border: 1.5px solid var(--gruen-30); border-radius: var(--radius); min-width: 9.5rem; appearance: none; -webkit-appearance: none; }
.bh-filter select { background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23323538' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right .7rem center; padding-right: 2rem; cursor: pointer; }
.bh-filter-suche { flex: 1 1 200px; }
.bh-filter-suche input { width: 100%; min-width: 0; }
.bh-filter-leer { flex-basis: 100%; margin: 0; }
.bh-filter-reset { background: none; border: 0; padding: 0; font: inherit; color: var(--coral); text-decoration: underline; cursor: pointer; }
.bh-objekt[hidden] { display: none; }
.bh-preis { margin: 0 0 1.2rem; padding-top: .4rem; }
.bh-preis-zeile { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .35rem; font-size: .95rem; }
.bh-preis-zeile.ist-gross { font-weight: 700; font-size: 1.08rem; }
.bh-ausstattung { list-style: none; padding: 0; margin: 0 0 1.1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .35rem .9rem; max-width: none; }
.bh-ausstattung li { position: relative; padding-left: 1.4rem; margin: 0; }
.bh-ausstattung li::before { content: ""; position: absolute; left: 0; top: .48em; width: .8rem; height: .45rem; border-left: 2px solid var(--gruen); border-bottom: 2px solid var(--gruen); transform: rotate(-45deg); }
.bh-adresse-hinweis { font-size: .92rem; opacity: .85; }

/* Titelzeile mit Button rechts (Teaser Aktuelle Objekte) */
.bh-titelzeile { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.bh-titelzeile .bh-titel { margin-bottom: 0; }

/* Gruppentitel innerhalb des Objektrasters (Aktuell ausgeschrieben / Referenzen) */
.bh-gruppentitel { grid-column: 1 / -1; margin: 0 0 .2rem; }
.bh-gruppentitel-referenzen { margin-top: 1.6rem; }

/* Sanfte Parallax-Drift der grossen Inhaltsbilder */
.bh-split-bilder .bh-bild { overflow: hidden; border-radius: var(--radius-bild); }
/* Dreier-Collage nach Vorbild der Altseite: hohes Bild links, rechts ein
   Stapel, der sich auf dieselbe Hoehe streckt. Ein Abstandsmass ueberall,
   Unterkanten buendig. */
.bh-split-bilder.hat-drei { display: flex; gap: 1rem; }
.bh-split-bilder.hat-drei > .bh-bild:first-child { flex: 1.12; aspect-ratio: 3 / 4; }
.bh-split-stapel { flex: 1; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.bh-split-stapel .bh-bild { flex: 1; min-height: 0; }
.bh-split-bilder.hat-drei .bh-bild img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) {
    .bh-split-bilder.hat-drei { flex-direction: column; }
    .bh-split-bilder.hat-drei > .bh-bild:first-child { aspect-ratio: 4 / 3; flex: none; }
    .bh-split-stapel { flex-direction: row; }
    .bh-split-stapel .bh-bild { flex: 1; aspect-ratio: 4 / 3; }
}
.bh-split-bilder .bh-bild img,
.bh-galerie-item img,
.bh-objekt-bild img { transform: scale(1.15); will-change: transform; }
@media (prefers-reduced-motion: reduce) {
    .bh-split-bilder .bh-bild img, .bh-galerie-item img, .bh-objekt-bild img { transform: none; }
}

/* Einblenden beim Scrollen (Vorbild Altseite, Lieferung AK). Die Klassen
   vergibt site.js NUR fuer Elemente unterhalb des ersten Viewports: ohne
   JavaScript ist alles sichtbar, das LCP-Element wird nie versteckt. */
.anim-wart { opacity: 0; transform: translateY(26px); }
.anim-da { opacity: 1; transform: none; transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--anim-delay, 0s); }
@media (prefers-reduced-motion: reduce) {
    .anim-wart { opacity: 1; transform: none; }
    .anim-da { transition: none; }
}

/* Hero-Video: liegt zwischen Bild und Logo, blendet nach dem Laden ein */
.bh-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.bh-hero-video.ist-an { opacity: 1; }

/* ---------- Globale Suche (Lupe im Kopf, Overlay) ---------- */
.hdr-suche { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; margin-left: .4rem; padding: 0; background: none; border: 0; border-radius: var(--radius); color: #fff; cursor: pointer; }
.hdr-suche:hover { background: rgba(255,255,255,.16); }
@media (max-width: 899px) { .hdr-suche { margin-left: auto; margin-right: .4rem; } }

body.search-open { overflow: hidden; }
.search-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; justify-content: center; align-items: flex-start; }
.search-overlay[hidden] { display: none; }
.search-backdrop { position: absolute; inset: 0; background: rgba(43,46,49,.55); backdrop-filter: blur(2px); }
.search-box { position: relative; width: min(100% - 2rem, 44rem); margin-top: clamp(4rem, 12vh, 9rem); background: var(--paper); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(43,46,49,.35); overflow: hidden; }
.search-field { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; border-bottom: 1px solid rgba(43,46,49,.12); color: var(--coral); }
.search-input { flex: 1; border: 0; outline: none; font: inherit; font-size: 1.1rem; color: var(--ink); background: none; }
.search-input::-webkit-search-cancel-button, .search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-close { border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--ink); cursor: pointer; padding: .2rem .4rem; border-radius: var(--radius); }
.search-close:hover { background: var(--coral-soft); color: var(--coral); }
.search-hint { margin: 0; padding: .6rem 1rem; font-size: .85rem; color: var(--ink); opacity: .7; }
.search-results { list-style: none; margin: 0; padding: 0 0 .4rem; max-height: min(55vh, 26rem); overflow: auto; }
.search-results li { border-top: 1px solid rgba(43,46,49,.07); }
.search-results li:first-child { border-top: 0; }
.search-results a { display: block; padding: .7rem 1rem; text-decoration: none; color: var(--ink); }
.search-results a:hover, .search-results a:focus, .search-results li.ist-aktiv a { background: var(--coral-soft); }
.search-results .sr-title { display: block; font-weight: 700; color: var(--coral); }
.search-results .sr-text { display: block; font-size: .9rem; opacity: .8; margin-top: .15rem; }
.search-results .sr-type { display: inline-block; margin-top: .3rem; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--coral); }
.search-none { padding: .9rem 1rem; opacity: .75; }

/* ---------- Intro: Logo weiss auf Aare-Gruen, wandert in die Kopfzeile ---------- */
html.is-home:not(.intro-seen) { background: var(--coral); }
#introOverlay { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; background: var(--coral); z-index: 900; }
#introWrap { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 950; pointer-events: none; }
#introWrap .kk-logo { width: min(340px, 62vw); height: auto; display: block; opacity: 0; }
#introWrap .kk-logo img { width: 100%; height: auto; display: block; }
/* Nur die Kopfelemente warten aufs Intro. Der INHALT bleibt sichtbar: der
   gruene Vorhang (z-index 900) verdeckt ihn ohnehin, aber Lighthouse zaehlt
   verdeckte Farbe als gemalt, unsichtbare (opacity 0) nicht. So kostet das
   Intro keinen LCP-Punkt. */
html.is-home:not(.intro-seen) .hdr-logo .kk-logo,
html.is-home:not(.intro-seen) .hdr-nav,
html.is-home:not(.intro-seen) .hdr-suche,
html.is-home:not(.intro-seen) .burger { opacity: 0; }
/* Das LOGO blendet nicht: im Uebergabemoment ersetzt es das Intro-Logo
   deckungsgleich und muss sofort voll da sein (sonst blitzt es weg).
   Navigation, Lupe und Burger duerfen weich einblenden. */
.hdr-nav, .hdr-suche, .burger { transition: opacity .45s ease; }
html.intro-seen #introOverlay, html.intro-seen #introWrap { display: none; }
html.intro-seen .hdr-logo .kk-logo, html.intro-seen .hdr-nav, html.intro-seen .hdr-suche,
html.intro-seen .burger { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    #introOverlay, #introWrap { display: none; }
    html.is-home:not(.intro-seen) { background: var(--paper); }
    .hdr-logo .kk-logo, .hdr-nav, .hdr-suche, .burger { opacity: 1; }
}

/* ---------- Objektseite im geteilten Layout (Lieferung BC) ---------- */
.bh-objekte-split { position: relative; isolation: isolate; padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); }   /* isolate: sonst faellt der z-index -1 des Farb-Layers hinter den Seitengrund */
.bh-objekte-grau { position: absolute; inset: 0 0 0 50%; background: var(--beige); z-index: -1; }   /* Messing ab exakt Seitenmitte (Entscheid Gabriel 01.09.2026) */
.bh-objekte-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
/* Die Box laeuft sticky mit: der Filter bleibt beim Scrollen greifbar. */
.bh-objekte-box { position: sticky; top: calc(var(--hh) + 1.25rem); background: var(--coral); color: #fff; border-radius: var(--radius-bild); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: 0 18px 50px rgba(43,46,49,.28); }
.bh-objekte-box .bh-hero-titel { margin-bottom: .75rem; }
.bh-objekte-box .prose { color: #fff; }   /* .prose setzt sonst ink */
.bh-objekte-intro { max-width: none; }
.bh-objekte-intro p { margin-bottom: .75rem; }
.bh-filter-box { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; margin-top: 1.25rem; background: none; padding: 0; box-shadow: none; }
.bh-filter-box label { color: #fff; font-weight: 600; font-size: .92rem; display: flex; flex-direction: column; gap: .3rem; }
.bh-filter-box select, .bh-filter-box input { border-radius: var(--radius); border: 0; padding: .55rem .6rem; font: inherit; color: var(--ink); background: var(--paper); width: 100%; min-width: 0; box-sizing: border-box; }
.bh-filter-box .bh-filter-suche { grid-column: 1 / -1; }
.bh-filter-box .bh-filter-leer { grid-column: 1 / -1; margin: 0; color: #fff; }
.bh-filter-box .bh-filter-reset { border: 0; background: rgba(255,255,255,.16); color: #fff; border-radius: 100em; padding: .3rem .8rem; cursor: pointer; font: inherit; }
.bh-objekte-ergebnisse .bh-objekte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 899px) {
    .bh-objekte-grau { display: none; }
    /* minmax(0,1fr): sonst draengt die Mindestbreite des Suchfelds die Spur
       ueber den Rasterrand hinaus (links 20px, rechts nur noch 5px). */
    .bh-objekte-raster { grid-template-columns: minmax(0, 1fr); }
    .bh-objekte-box { position: static; }
    .bh-objekte-ergebnisse .bh-objekte { grid-template-columns: minmax(0, 1fr); }
    /* Filter mobil per CSS eingeklappt (JS nur zum Oeffnen): wuerde erst
       JavaScript verstecken, spraenge der Inhalt (CLS 0.13 gemessen). */
    .bh-filter-box { display: none; }
    .bh-filter-box[data-offen] { display: grid; }
}
.bh-filter-knopf { display: none; }
@media (max-width: 899px) {
    .bh-filter-knopf { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem; border: 1.5px solid rgba(255,255,255,.55); background: none; color: #fff; font: inherit; font-weight: 600; padding: .55rem 1.1rem; border-radius: 100em; cursor: pointer; }
}

/* ---------- Objekt-Einzelseite im Boxmodell (Lieferung BE) ---------- */
@media (min-width: 900px) { .bh-objekt-split .bh-objekte-raster { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }   /* nur Desktop, sonst schlaegt die Spezifitaet die Mobilregel */
.bh-objekt-fakten .bh-hero-titel.ist-klein { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); margin-bottom: .35rem; }
.bh-fakten-status { display: inline-block; margin: 0 0 .9rem; padding: .25rem .7rem; border-radius: var(--radius); background: #fff; color: var(--coral); font-weight: 700; font-size: .85rem; letter-spacing: .03em; }
.bh-fakten-unter { margin: 0 0 1.1rem; font-weight: 600; }
.bh-fakten-liste { margin: 0; border-top: 1px solid rgba(255,255,255,.28); }
.bh-fakten-liste > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.28); }
.bh-fakten-liste dt { margin: 0; }
.bh-fakten-liste dd { margin: 0; font-weight: 700; }
.bh-fakten-preis { margin-top: 1rem; }
.bh-fakten-preis .bh-preis-zeile { display: flex; justify-content: space-between; gap: 1rem; margin: .2rem 0; }
.bh-fakten-preis .bh-preis-zeile.ist-gross { font-size: 1.2rem; font-weight: 700; }
.bh-fakten-hinweis { margin: 1rem 0 0; font-size: .92rem; }
.bh-fakten-kontakt { margin: .5rem 0 0; }
.bh-fakten-kontakt a { color: #fff; font-weight: 700; }
.bh-fakten-knoepfe { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .6rem; }
/* Knoepfe auf der gruenen Box: invers */
.bh-btn.ist-invers { background: #fff; color: var(--coral); }
.bh-btn.ist-invers:hover { background: rgba(255,255,255,.88); }
.bh-btn-sekundaer.ist-invers { background: none; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.bh-btn-sekundaer.ist-invers:hover { background: rgba(255,255,255,.14); }
.bh-objekt-inhalt .bh-galerie { margin-bottom: clamp(1.5rem, 3vw, 2.2rem); }
.bh-objekt-inhalt .bh-objekt-text { max-width: none; }

/* ---------- Objekt-Einzelseite: Vollsplit wie der Startseiten-Hero (BG) ----------
   Rechte Bildschirmhaelfte randlos fuer die Bilder (Originalverhaeltnis,
   ohne Rundung, ohne Luecken: sie rutschen beim Scrollen unter der Box
   durch); links die vertikal zentrierte, stehende Markenbox, die bewusst
   in die Bildhaelfte ueberlappt. */
.bh-objekt-vollsplit { position: relative; background: var(--beige); }   /* Sage als Seitengrund der Einzelansicht (Wunsch Gabriel 02.09.2026) */
.bh-strecke-bild { display: block; }
.bh-strecke-bild img { width: 100%; height: auto; display: block; }
.bh-objekt-strecke { display: flex; flex-direction: column; }
@media (min-width: 900px) {
    .bh-objekt-vollsplit { display: grid; grid-template-columns: 1fr 1fr; }
    .bh-strecke-erste { grid-column: 2; grid-row: 1; }
    .bh-fakten-halter { grid-column: 1; grid-row: 1 / 3; position: sticky; top: var(--hh); height: calc(100svh - var(--hh)); display: grid; align-items: center; align-self: start; z-index: 2;
        /* Box auf der Rasterflucht der Seite */
        padding-left: max(1.25rem, calc((100vw - var(--wrap)) / 2)); }
    /* static: die Box erbt sonst das sticky der Objektlisten-Box und
       haengt 109px zu tief; zentriert wird sie vom Halter-Grid. */
    .bh-objekt-vollsplit .bh-objekt-fakten { position: static; width: min(44rem, calc(100% + clamp(3rem, 8vw, 9rem))); max-height: calc(100svh - var(--hh) - 2rem); overflow: auto; }
    .bh-objekt-inhalt { grid-column: 2; grid-row: 2; }
    .bh-objekt-inhalt .bh-objekt-text { padding: clamp(2rem, 4vw, 3.5rem) max(1.25rem, calc((100vw - var(--wrap)) / 2)) clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem); }
}
@media (max-width: 899px) {
    /* Wie der Hero mobil: Hauptbild oben, Box ueberlappend, Rest darunter.
       Der untere Sektionsabstand verhindert, dass die Box bei Objekten mit
       nur einem Bild direkt am Footer klebt. */
    .bh-objekt-vollsplit { padding-bottom: clamp(2.5rem, 8vw, 4rem); }
    .bh-fakten-halter { position: relative; z-index: 2; margin: -3.2rem 1.25rem 0; }
    .bh-objekt-inhalt .bh-objekt-text { padding: 1.5rem 1.25rem 2rem; }
    .bh-objekt-strecke { margin-top: 1.25rem; }
}
.bh-fakten-nav { margin: 1.2rem 0 0; display: flex; align-items: center; gap: .8rem; border-top: 1px solid rgba(255,255,255,.28); padding-top: 1rem; }
.bh-fakten-pfeil { display: inline-flex; align-items: center; justify-content: center; width: 2.3rem; height: 2.3rem; border: 1.5px solid rgba(255,255,255,.6); border-radius: 100em; color: #fff; text-decoration: none; font-size: 1.4rem; line-height: 1; }
.bh-fakten-pfeil:hover { background: rgba(255,255,255,.14); }
.bh-fakten-alle { color: #fff; font-weight: 600; margin-inline: auto; }

/* Buttonzeilen im Fliesstext untereinander (Entscheid Gabriel 01.09.2026);
   die Knopfreihe in der Objekt-Faktenbox behaelt ihre eigene Anordnung. */
.prose .gd-button-zeile { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; margin-right: 0; }
.prose .gd-button-zeile + .gd-button-zeile { margin-top: .7rem; }

/* Warmer Seitenausklang: Sektion «Aktuelle Objekte» auf Beige (Versuch) */
.bh-sektion-beige { background: var(--beige); }

/* ---------- Objektliste: zentrierte Box, Messing ab Seitenmitte (BL) ---------- */
@media (min-width: 900px) {
    .bh-objekte-split.ist-zentriert { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
    .bh-liste-halter { grid-column: 1; position: sticky; top: var(--hh); height: calc(100svh - var(--hh)); display: grid; align-items: center; align-self: start; z-index: 2;
        padding-left: max(1.25rem, calc((100vw - var(--wrap)) / 2)); }
    /* Box greift wie im Hero ueber die Mittellinie ins Messing */
    .bh-objekte-split.ist-zentriert .bh-objekte-box { position: static; width: min(46rem, calc(100% + 4.75rem)); max-height: calc(100svh - var(--hh) - 2rem); overflow: auto; }
    /* Karten beginnen mit Luft rechts der Ueberlappung und nutzen die GANZE
       Messinghaelfte bis kurz vor den Bildschirmrand (Entscheid Gabriel
       01.09.2026: auf grossen Schirmen war rechts ein leerer Streifen,
       weil die Flaeche auf der Rasterflucht endete). */
    .bh-objekte-split.ist-zentriert .bh-objekte-ergebnisse { grid-column: 2; padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 3.5rem) clamp(3rem, 6vw, 5rem) clamp(6rem, 5vw + 2.5rem, 10rem); }
    /* Spaltenzahl fliessend: so viele Karten, wie Platz haben (2 auf dem
       Laptop, 3 bis 4 auf grossen Monitoren). */
    .bh-objekte-split.ist-zentriert .bh-objekte-ergebnisse .bh-objekte { grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); }
}
@media (max-width: 899px) {
    .bh-liste-halter { margin: 0 1.25rem; }
    .bh-objekte-split.ist-zentriert { padding-top: 1.5rem; }
    .bh-objekte-split.ist-zentriert .bh-objekte-ergebnisse { padding: 1.5rem 1.25rem 2.5rem; }
}

/* Seiten-Hero der Unterseiten (BN): gleiche Buehne wie die Startseite */
.bh-seiten-hero .bh-hero-titel { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); }
.bh-hero-box p { color: #fff; }
.bh-hero-box p + p { margin-top: .75rem; }


/* Schluss-Sektionen behalten ihren Abstand (aus der Null-Regel oben per
   :not(:last-of-type) ausgenommen; Wunsch Gabriel fuer Kontakt, wirkt
   sinnvollerweise auf allen Seiten). */

/* Ueber uns: Portraet QUADRATISCH auf der Mitte-Flucht (Korrektur BS: das
   Original ist 2400x2400 mit einkomponiertem Logo links; 3:4 schnitt
   beide Seiten an). */
.bh-portrait-hoch { aspect-ratio: 1 / 1; }
.bh-portrait-hoch img { width: 100%; height: 100%; object-fit: cover; }
.bh-portrait-platzhalter { width: 100%; height: 100%; background: var(--beige); display: grid; place-items: center; color: var(--ink); font-weight: 600; letter-spacing: .02em; }
.bh-portrait-rolle { font-weight: 600; margin: -0.4rem 0 1rem; }

/* Kontakt: Formular links, Beratung als rechte Spalte (Entscheid BQ) */
.bh-kontakt-doppel { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .bh-kontakt-doppel { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .bh-kontakt-beratung { position: sticky; top: calc(var(--hh) + 1.5rem); } }
.bh-kontakt-beratung h2 { margin-top: 0; }

/* Hero-Video der Unterseiten (BV): liegt ueber dem Poster-Standbild */
.bh-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.bh-hero-video.ist-an { opacity: 1; }

/* Datenblatt-Link in der Objekt-Faktenbox (CD) */
.bh-datenblatt { margin: .9rem 0 0; font-size: .92rem; }
.bh-datenblatt a { color: var(--beige); text-decoration: underline; text-underline-offset: 3px; }
.bh-datenblatt a:hover { color: #fff; }
@media print { .bh-datenblatt { display: none; } }
