/* Neuberger Immobilien & Finanzen — Basis-Stylesheet
   Corporate Design nach 60-30-10-Regel:
   60 % Neutral (Weiß, helles Grau, Anthrazit für Text/Flächen),
   30 % dunkle Flächen (Anthrazit: Hero, Footer, Topbar),
   10 % CI-Grün aus dem Logo (#006F00) — nur für CTAs, Links und Akzente. */

:root {
  --gruen: #006F00;          /* CI-Primärgrün (logo.svg) — nur Akzente */
  --gruen-dunkel: #004000;   /* CI-Dunkelgrün — Hover-Zustände */
  --gold: #C9A227;           /* CI-Gold (Markenfarbe Grün/Gold lt. Kunde) — CTAs */
  --gold-dunkel: #A8861B;    /* Gold-Hover */
  --gold-text: #241a00;      /* dunkler Text auf Gold (Kontrast AA) */
  --akzent: #006F00;         /* Primär-CTA */
  --akzent-hell: #b8e0b8;    /* helle Grün-Nuance, sparsam */
  --anthrazit: #232B26;      /* dunkle Neutralfläche (Hero, CTA-Banner) */
  --anthrazit-tief: #1A211C; /* Footer, Topbar */
  --ueberschrift: #1F2823;   /* Überschriften: dunkles Anthrazit statt Grün */
  --grau: #595959;           /* CI-Grau (logo.svg) — Sekundärtext */
  --grau-hell: #f5f6f5;
  --linie: #e3e6e3;
  --text: #262b27;
  --radius: 10px;
  --schatten: 0 2px 12px rgba(26, 33, 28, 0.08);
  --maxw: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Schnellere Tap-Reaktion auf Touch-Geräten (kein 300-ms-Delay) */
a, button, input, select, textarea, summary { touch-action: manipulation; }
/* Inline-SVGs in Buttons/Links sauber zum Text ausrichten */
.btn svg, .tel-cta svg { vertical-align: -0.18em; margin-right: 0.35rem; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: #fff;
}

img { max-width: 100%; height: auto; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */
.topbar {
  background: var(--anthrazit-tief);
  color: #e8ebe8;
  font-size: 0.85rem;
  padding: 0.35rem 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: var(--akzent-hell); text-decoration: none; }

header.site {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--linie);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.8rem; padding-bottom: 0.8rem; gap: 1rem;
}
.logo { text-decoration: none; color: var(--gruen); line-height: 1.2; display: flex; align-items: center; gap: 0.85rem; }
.logo strong { font-size: 1.15rem; display: block; }
.logo span { font-size: 0.78rem; color: var(--grau); letter-spacing: 0.06em; text-transform: uppercase; }
.logo img { height: 52px; width: auto; display: block; }
/* Markenclaim neben dem Logo (Kunde: durchgängig einsetzen) */
.logo .claim { border-left: 2px solid var(--gold); padding-left: 0.85rem; white-space: nowrap; line-height: 1.5; }
@media (max-width: 1020px) { .logo .claim { display: none; } }

/* ---------- Ratgeber-Artikel ---------- */
.artikel { max-width: 780px; }
.artikel h2 { margin-top: 2.2rem; }
.artikel ul, .artikel ol { padding-left: 1.3rem; }
.artikel li { margin-bottom: 0.45rem; }
.artikel-bild { margin: 1.6rem 0; }
.artikel-bild img { display: block; width: 100%; height: auto; border-radius: 10px; }
.artikel-bild figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: var(--grau-text, #666); }
.artikel-hero { margin-top: 1rem; }
.karte .karte-thumb { display: block; width: 100%; height: 160px; object-fit: cover; border-radius: 10px; margin-bottom: 0.9rem; }

nav.haupt ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
nav.haupt a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.95rem; }
nav.haupt a:hover, nav.haupt a[aria-current="page"] { color: var(--gruen); }
.tel-cta {
  background: var(--gruen); color: #fff !important; padding: 0.5rem 1rem;
  border-radius: var(--radius); font-weight: 600; white-space: nowrap;
}
.tel-cta:hover { background: var(--gruen-dunkel); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--linie); border-radius: 6px;
  min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text);
}
.nav-toggle svg { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  nav.haupt { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--linie); box-shadow: var(--schatten); }
  nav.haupt.offen { display: block; }
  nav.haupt ul { flex-direction: column; gap: 0; padding: 0.5rem 1.25rem 1rem; }
  nav.haupt li { border-top: 1px solid var(--grau-hell); }
  nav.haupt a { display: block; padding: 0.7rem 0; }
  /* Spezifität nav.haupt a schlägt .tel-cta — deshalb hier mit vollem Selektor */
  nav.haupt a.tel-cta { display: block; padding: 0.7rem 1rem; margin-top: 0.5rem; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(150deg, var(--anthrazit-tief) 0%, var(--anthrazit) 55%, #2e3b32 100%);
  color: #fff;
  padding: 4rem 0 4.5rem;
}
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.25; margin: 0 0 1rem; }
.hero p.sub { font-size: 1.15rem; max-width: 640px; color: #c9d1ca; margin: 0 0 1.8rem; }
.hero .badges { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; font-size: 0.9rem; color: var(--akzent-hell); }

/* Hero mit Regional-/Drohnenaufnahme (Kundenbilder) */
.hero-foto {
  background-size: cover;
  background-position: center;
  padding: 5.5rem 0 6rem;
  position: relative;
}
.hero-foto .wrap { position: relative; z-index: 2; }
.hero-foto p.sub { color: #e2e8e2; }
.hero-foto .badges { color: #d9e6d4; }
@media (max-width: 720px) { .hero-foto { padding: 3.5rem 0 4rem; } }

/* Startseiten-Banner: Video-Band (Fallback: Bild) mit Logo-Stanze, Inhalt liegt darunter */
.hero-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  height: clamp(340px, 52vw, 680px);
  overflow: hidden;
}
/* Scroll-Bühne (Referenz luebke-kelber): main.js setzt .pin (nur bei erlaubter
   Bewegung) und macht die Bühne höher als den Hero — der Hero klebt solange am
   oberen Rand, bis die Stanzen-Animation durchgelaufen ist, erst dann scrollt
   die Seite weiter. Ohne JS/mit reduzierter Bewegung: normales Banner. */
.hero-buehne { position: relative; }
.hero-buehne.pin .hero-banner {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
}
/* CLS-Fix: Geometrie der Scroll-Bühne schon VOR dem ersten Paint vorgeben —
   ein Inline-Skript im <head> der Startseite setzt html.hero-pin (nur bei
   erlaubter Bewegung). Der Browser malt sonst erst das kleine Banner und
   main.js vergrößert es danach: die Sektionen darunter springen (CLS ~0,49).
   79px = gemessene Header-Höhe; main.js zieht die exakten Werte inline nach. */
html.hero-pin .hero-buehne { height: calc(200vh - 79px); height: calc(200svh - 79px); }
html.hero-pin .hero-buehne .hero-banner {
  position: sticky; top: 79px;
  height: calc(100vh - 79px); height: calc(100svh - 79px);
}
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
/* Slogan unterhalb der Logo-Stanze — Position folgt der wachsenden Stanze,
   bleibt aber per min() immer im Banner */
.hero-slogan {
  position: absolute; left: 0; right: 0; z-index: 3; margin: 0;
  top: min(calc(50% + var(--stanze-groesse, 480px) / 4.1 + 1.1rem), calc(100% - 3.2rem));
  text-align: center; color: var(--ueberschrift);
  font-weight: 600; font-size: clamp(1rem, 2.2vw, 1.5rem); letter-spacing: 0.05em;
  /* skaliert und verblasst beim Scrollen gemeinsam mit der Stanze (main.js) */
  transform: scale(var(--slogan-skala, 1));
  transform-origin: center top;
  opacity: var(--slogan-deckung, 1);
  /* lesbar auch ohne Mask-Unterstützung (Slogan dann direkt auf dem Video) */
  text-shadow: 0 0 14px rgba(255,255,255,0.9), 0 0 4px rgba(255,255,255,0.75);
}

/* Intro-Sektion unter dem Banner (ehemaliger Hero-Inhalt) */
.intro { padding: 3.2rem 0 0.6rem; }
.intro h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.25; color: var(--ueberschrift); margin: 0 0 0.9rem; }
.intro .sub { font-size: 1.13rem; color: var(--grau); max-width: 680px; margin: 0 0 1.7rem; }
.intro .badges { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.9rem; font-size: 0.9rem; color: var(--gruen); font-weight: 500; }
.intro .btn, .band-dunkel .btn { margin: 0 0.75rem 0.75rem 0; }
.intro .btn + .btn, .band-dunkel .btn + .btn { margin-left: 0; }

/* Logo-Stanze: halbtransparente Fläche, aus der das Logo ausgeschnitten ist —
   durch die Logo-Form scheint die Drohnenaufnahme ungetrübt durch.
   Wächst beim Scrollen (--stanze-groesse via main.js). */
.hero-logo-stanze {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: rgba(255, 255, 255, var(--stanze-deckung, 0.94));
  -webkit-mask-image: linear-gradient(#fff, #fff), url('/assets/logo.svg');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: 0 0, var(--stanze-pos, center 50%);
  -webkit-mask-size: 100% 100%, var(--stanze-groesse, 480px);
  -webkit-mask-composite: xor;
  mask-image: linear-gradient(#fff, #fff), url('/assets/logo.svg');
  mask-repeat: no-repeat;
  mask-position: 0 0, var(--stanze-pos, center 50%);
  mask-size: 100% 100%, var(--stanze-groesse, 480px);
  mask-composite: exclude;
}
/* Ohne Mask-Unterstützung: Fläche weglassen, Basis-Verlauf reicht */
@supports not ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .hero-logo-stanze { display: none; }
}

/* Pflichtfeld-Kennzeichnung in Formularen */
.pflicht { color: var(--gruen); font-weight: 700; }

/* Foto-Avatare (Jakob) in Autor-/Makler-Boxen */
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* Platzhalter-Flächen (Referenzen, Karte) mit Icon statt Emoji */
.objekt-bild svg { color: var(--grau); opacity: 0.7; }

/* Eingestreute Regionalbilder */
.bild-rund { border-radius: var(--radius); display: block; box-shadow: var(--schatten); }
.portrait { border-radius: var(--radius); display: block; box-shadow: var(--schatten); margin-bottom: 1.2rem; max-width: 320px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 0.75rem 1.5rem; border-radius: var(--radius); border: 0; cursor: pointer; font-size: 1rem;
}
/* Nebeneinanderstehende Buttons: Abstand auch beim Zeilenumbruch (mobil) */
.hero .btn { margin: 0 0.75rem 0.75rem 0; }
.hero .btn + .btn { margin-left: 0; }
.btn-gold { background: var(--gold); color: var(--gold-text); }
.btn-gold:hover { background: var(--gold-dunkel); color: var(--gold-text); }
.btn-hell { background: #fff; color: var(--ueberschrift); }
.btn-hell:hover { background: var(--grau-hell); }
.btn-blau { background: var(--anthrazit); color: #fff; }
.btn-blau:hover { background: var(--anthrazit-tief); }
.btn + .btn { margin-left: 0.75rem; }

/* ---------- Abschnitte ---------- */
section { padding: 3.5rem 0; }
section.grau { background: var(--grau-hell); }

/* Kicker: kleines Overline-Label über Sektions-Überschriften */
.kicker {
  color: var(--gruen); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.09em; text-transform: uppercase; margin: 0 0 0.35rem;
}
.kicker-hell { color: var(--gold); }

/* Dunkles Band (z. B. "Warum Neuberger?" mit Foto) */
.band-dunkel {
  background: linear-gradient(150deg, var(--anthrazit-tief) 0%, var(--anthrazit) 60%, #2e3b32 100%);
  color: #dfe5df;
}
.band-dunkel h2 { color: #fff; }
.band-dunkel h2::after { background: var(--gold); }
.band-dunkel .haken li::before { color: var(--gold); }
.band-dunkel strong { color: #fff; }
.band-dunkel .claim-zeile {
  color: var(--gold); font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; font-size: 0.9rem; margin: 1.4rem 0 1rem;
}
.band-dunkel .portrait { margin: 0; max-width: 380px; justify-self: center; }
@media (max-width: 800px) { .band-dunkel .portrait { margin-top: 1.5rem; } }

/* Artland-Feature-Karte in der Standorte-Sektion */
.karte-artland {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  overflow: hidden; padding: 0;
}
.karte-artland .ka-bild { min-height: 220px; background-size: cover; background-position: center; }
.karte-artland .ka-text { padding: 1.6rem 1.8rem; }
.karte-artland .ka-text h3 { margin-top: 0; }
@media (max-width: 720px) {
  .karte-artland { grid-template-columns: 1fr; }
  .karte-artland .ka-bild { min-height: 160px; }
}

/* Schritte-Liste (nummeriert, z. B. Rechner-Band) */
.schritte { list-style: none; padding: 0; margin: 1rem 0 0; counter-reset: schritt; }
.schritte li { position: relative; padding-left: 3rem; margin-bottom: 1.1rem; counter-increment: schritt; }
.schritte li::before {
  content: counter(schritt);
  position: absolute; left: 0; top: 0;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--akzent-hell); color: var(--gruen-dunkel);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
h2 { color: var(--ueberschrift); font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 0.6rem; }
h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--gruen); border-radius: 2px; margin-top: 0.5rem; }
.cta-banner h2::after { margin-left: auto; margin-right: auto; }
.einleitung { color: var(--grau); max-width: 700px; margin-bottom: 2rem; }
h3 { color: var(--ueberschrift); margin: 1.6rem 0 0.5rem; }

/* ---------- Karten ---------- */
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin-top: 1.5rem; }
.karte {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--schatten);
}
.karte h3 { margin-top: 0; font-size: 1.1rem; }
.karte .icon { margin-bottom: 0.6rem; display: block; color: var(--gruen); }
.karte .icon svg { display: block; }
/* Nummerierte Ablauf-Karten (statt Ziffern-Emojis) */
.karte-nr {
  display: flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; margin-bottom: 0.6rem;
  background: var(--akzent-hell); color: var(--gruen-dunkel);
  font-weight: 700; font-size: 1.05rem;
}
.karte a.mehr { color: var(--gruen); font-weight: 600; text-decoration: none; }
.karte a.mehr:hover { text-decoration: underline; }

/* ---------- FAQ (details/summary) ---------- */
.faq details {
  border: 1px solid var(--linie); border-radius: var(--radius);
  margin-bottom: 0.7rem; background: #fff;
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 0.9rem 1.2rem; color: var(--ueberschrift);
  list-style: none; position: relative;
}
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; color: var(--akzent); font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.2rem 1rem; margin: 0; }

/* ---------- Formulare & Rechner ---------- */
form.block, .rechner {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--schatten);
}
.feld { margin-bottom: 1rem; }
.feld label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; color: var(--ueberschrift); }
.feld input, .feld select, .feld textarea {
  width: 100%; padding: 0.65rem 0.8rem; border: 1px solid var(--linie);
  border-radius: 6px; font-size: 1rem; font-family: inherit; background: #fff;
}
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: 2px solid var(--gruen); border-color: var(--gruen); }
.felder-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .felder-2 { grid-template-columns: 1fr; } }

.ergebnis {
  margin-top: 1.5rem; padding: 1.4rem; border-radius: var(--radius);
  background: var(--grau-hell); border-left: 4px solid var(--akzent); display: none;
}
.ergebnis.sichtbar { display: block; }
.ergebnis .wert { font-size: 1.7rem; font-weight: 700; color: var(--gruen); }
/* Lead-Formular im Rechner-Ergebnis (Bewertung + Baufinanzierung) */
.ergebnis .lead-form { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--linie); position: relative; }
.hinweis { font-size: 0.82rem; color: var(--grau); }

/* ---------- Tabellen ---------- */
table.daten { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
table.daten th, table.daten td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--linie); }
table.daten th { color: var(--ueberschrift); background: var(--grau-hell); }

/* ---------- Breadcrumb ---------- */
/* Nur Oben-Abstand setzen — das Padding-Shorthand würde die
   Seitenabstände der .wrap-Klasse auf 0 überschreiben (Mobil-Bug). */
.breadcrumb { font-size: 0.85rem; color: var(--grau); padding-top: 1rem; }
.breadcrumb a { color: var(--grau); text-decoration: none; }
.breadcrumb a:hover { color: var(--gruen); }

/* ---------- CTA-Banner ---------- */
.cta-banner { background: var(--anthrazit); color: #fff; text-align: center; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #c9d1ca; max-width: 620px; margin: 0.5rem auto 1.5rem; }

/* ---------- Objekt-Platzhalter ---------- */
.objekt-bild {
  height: 180px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(135deg, #3a453d, #232B26);
  display: flex; align-items: center; justify-content: center; color: #9aa79d; font-size: 2.5rem;
}
.objekt { border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--schatten); }
.objekt .inhalt { padding: 1.2rem 1.4rem; }
.objekt .preis { color: var(--gruen); font-weight: 700; font-size: 1.15rem; }
.objekt .ort { color: var(--grau); font-size: 0.9rem; }

/* ---------- Footer ---------- */
footer.site { background: var(--anthrazit-tief); color: #c6cdc6; padding: 3rem 0 1.5rem; font-size: 0.92rem; }
/* Spaltentitel als <p>: h4 nach h2 verletzte die Überschriften-Hierarchie (A11y) */
.footer-titel { color: #fff; font-size: 1rem; font-weight: 700; margin: 0 0 0.7rem; }
footer.site a { color: #c6cdc6; text-decoration: none; }
footer.site a:hover { color: var(--akzent-hell); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 0.35rem; }
.footer-unten { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2rem; padding-top: 1.2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; font-size: 0.82rem; color: #99a19a; }

/* ---------- Sonstiges ---------- */
.zwei-spalten { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 800px) { .zwei-spalten { grid-template-columns: 1fr; } }
ul.haken { list-style: none; padding: 0; }
ul.haken li { padding-left: 1.6rem; position: relative; margin-bottom: 0.5rem; }
ul.haken li::before { content: "✓"; position: absolute; left: 0; color: var(--akzent); font-weight: 700; }
.autor-box {
  display: flex; gap: 1rem; align-items: center; background: var(--grau-hell);
  border-radius: var(--radius); padding: 1rem 1.4rem; margin-top: 2rem;
}
.autor-box .avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--gruen);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}

/* ---------- Objektkarten & Exposés ---------- */
.objekt-foto { position: relative; display: block; }
.objekt-foto img { width: 100%; height: 210px; object-fit: cover; display: block; }
.objekt-foto-leer {
  height: 210px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #3a453d, #232B26); color: #9aa79d;
}
.badge {
  position: absolute; top: 0.8rem; left: 0.8rem; padding: 0.22rem 0.75rem;
  border-radius: 999px; font-size: 0.78rem; font-weight: 600; color: #fff; letter-spacing: 0.02em;
}
.badge-verfuegbar { background: var(--gruen); }
.badge-reserviert { background: #a87b00; }
.badge-verkauft, .badge-vermietet { background: #5a615b; }
.badge-gesuch { background: var(--anthrazit); }
.objekt h3 { margin: 0.35rem 0 0.3rem; font-size: 1.05rem; line-height: 1.35; }
.objekt h3 a { color: var(--ueberschrift); text-decoration: none; }
.objekt h3 a:hover { color: var(--gruen); }
.objekt .preis-label { font-size: 0.8rem; color: var(--grau); font-weight: 500; }
.objekt .fakten { color: var(--grau); font-size: 0.9rem; margin: 0.4rem 0 0; }
.objekt { transition: box-shadow 0.2s ease, transform 0.2s ease; display: flex; flex-direction: column; }
.objekt:hover { box-shadow: 0 6px 22px rgba(26, 33, 28, 0.14); transform: translateY(-2px); }
.objekt .inhalt { display: flex; flex-direction: column; flex: 1; }

/* Karten-Details */
.objekt-foto { overflow: hidden; }
.objekt-foto img { transition: transform 0.35s ease; }
.objekt:hover .objekt-foto img { transform: scale(1.045); }
.foto-anzahl {
  position: absolute; right: 0.7rem; bottom: 0.7rem;
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(26, 33, 28, 0.72); color: #fff;
  font-size: 0.78rem; font-weight: 600; padding: 0.22rem 0.55rem; border-radius: 20px;
}
.objekt-meta {
  margin: 0 0 0.15rem; color: var(--gruen); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.objekt-fakten {
  list-style: none; display: flex; gap: 1.4rem; padding: 0.7rem 0;
  margin: 0.6rem 0 0.4rem; border-top: 1px solid var(--linie);
}
.objekt-fakten li { display: flex; flex-direction: column; }
.of-wert { font-weight: 700; font-size: 0.95rem; color: var(--ueberschrift); white-space: nowrap; }
.of-label { font-size: 0.75rem; color: var(--grau); }
.objekt-fuss {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem;
  margin-top: auto; padding-top: 0.5rem; border-top: 1px solid var(--linie);
}
.objekt-fuss .preis { margin: 0; }
.objekt-mehr { color: var(--gruen); font-weight: 600; font-size: 0.88rem; white-space: nowrap; opacity: 0; transition: opacity 0.2s ease; }
.objekt:hover .objekt-mehr { opacity: 1; }
@media (hover: none) { .objekt-mehr { opacity: 1; } }

/* Filterleiste auf der Angebots-Übersicht */
/* Wichtig: .objekt ist ein Flex-Container — dessen display würde das
   hidden-Attribut des Browsers überschreiben. Deshalb explizit: */
article.objekt[hidden] { display: none; }
.objekt-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0 0 1.4rem; }
.filter-chip {
  border: 1px solid var(--linie); background: #fff; color: var(--text);
  padding: 0.45rem 1.1rem; border-radius: 22px; font-size: 0.9rem; font-weight: 500;
  min-height: 44px; display: inline-flex; align-items: center;
  cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.filter-chip:hover { border-color: var(--gruen); color: var(--gruen); }
.filter-chip.filter-aktiv { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.filter-leer { margin: 0 0 1.4rem; }
.expose-bild { position: relative; }
.expose-bild img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); display: block; }
@media (prefers-reduced-motion: reduce) { .objekt { transition: none; } .objekt:hover { transform: none; } }

/* ---------- Exposé (Objekt-Detailseite) ---------- */
section.expose { padding: 1.5rem 0 3.5rem; }

/* Galerie: großes Titelbild + zwei Nebenbilder */
.galerie {
  display: grid; grid-template-columns: 2fr 1fr; gap: 0.6rem;
  border-radius: var(--radius); overflow: hidden;
}
.galerie-einzeln { grid-template-columns: 1fr; }
.galerie button { padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; display: block; }
.galerie-haupt img { width: 100%; height: 440px; object-fit: cover; display: block; }
.galerie-einzeln .galerie-haupt img { max-height: 460px; height: auto; }
.galerie-nebenspalte { display: grid; grid-template-rows: 1fr 1fr; gap: 0.6rem; }
.galerie-neben img { width: 100%; height: 217px; object-fit: cover; display: block; }
.galerie .badge { position: absolute; top: 0.9rem; left: 0.9rem; }
.galerie-mehr {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(26, 33, 28, 0.55); color: #fff; font-weight: 600; font-size: 1.05rem;
}
@media (max-width: 720px) {
  .galerie { grid-template-columns: 1fr; }
  .galerie-haupt img { height: 260px; }
  .galerie-nebenspalte { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .galerie-neben img { height: 110px; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(15, 19, 16, 0.94);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(94vw, 1400px); max-height: 82vh; object-fit: contain; border-radius: 6px; }
.lightbox .lb-zaehler { color: #cfd6d0; margin-top: 0.8rem; font-size: 0.9rem; }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, 0.12); color: #fff; border: 0;
  border-radius: 50%; width: 46px; height: 46px; font-size: 1.3rem; cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox .lb-zu { top: 1rem; right: 1rem; }
.lightbox .lb-zurueck { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-vor { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Layout: Hauptspalte + klebende Seitenspalte */
.expose-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.2rem; margin-top: 1.6rem; }
@media (max-width: 900px) { .expose-layout { grid-template-columns: 1fr; } }
.expose-seitenspalte { display: flex; flex-direction: column; gap: 1.2rem; }
@media (min-width: 901px) {
  .expose-seitenspalte { position: sticky; top: 90px; align-self: start; }
}

.expose-kopf { border-bottom: 1px solid var(--linie); padding-bottom: 1.4rem; }
.expose-art { color: var(--gruen); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; margin: 0 0 0.3rem; }
.expose-kopf h1 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3; margin: 0 0 0.4rem; color: var(--ueberschrift); }
.expose-ort { color: var(--grau); margin: 0; }

.kennzahlen { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 1.2rem; }
.kennzahl { display: flex; flex-direction: column; }
.kz-wert { font-weight: 700; font-size: 1.15rem; color: var(--ueberschrift); }
.kz-label { font-size: 0.82rem; color: var(--grau); }

.expose-abschnitt { padding: 1.8rem 0 0.4rem; }
.expose-abschnitt h2 { font-size: 1.3rem; }
.merkmale { columns: 2; gap: 2rem; margin: 0.8rem 0 1rem; }
.merkmale li { break-inside: avoid; }
@media (max-width: 600px) { .merkmale { columns: 1; } }
.grundriss { border: 1px solid var(--linie); border-radius: var(--radius); margin: 0.6rem 0; background: #fff; }

/* Energieeffizienz-Skala */
.energie-skala { display: flex; gap: 3px; margin-top: 1rem; max-width: 480px; }
.ek {
  flex: 1; text-align: center; padding: 0.35rem 0; font-size: 0.8rem; font-weight: 600;
  color: #fff; border-radius: 4px; opacity: 0.45;
}
.ek-aktiv { opacity: 1; outline: 2px solid var(--ueberschrift); outline-offset: 1px; transform: scale(1.12); }
.ek-aplus, .ek-a { background: #00803d; }
.ek-b { background: #4ca32b; }
.ek-c { background: #97bf0d; }
.ek-d { background: #f4e600; color: #3a3a00; }
.ek-e { background: #f0a500; }
.ek-f { background: #e2670c; }
.ek-g, .ek-h { background: #cc2d1f; }

/* Sidebar-Karten */
.preis-karte, .eckdaten-karte, .makler-karte {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--schatten);
}
.preis-karte .badge { position: static; display: inline-block; margin-bottom: 0.6rem; }
.preis-gross { font-size: 1.9rem; font-weight: 700; color: var(--ueberschrift); margin: 0; line-height: 1.15; }
.preis-label { color: var(--grau); margin: 0.15rem 0 0.9rem; font-size: 0.9rem; }
.daten-schmal { font-size: 0.88rem; margin: 0.6rem 0 1rem; }
.daten-schmal td { padding: 0.42rem 0; }
.daten-schmal td:last-child { text-align: right; font-weight: 600; color: var(--ueberschrift); }
.btn-breit { display: block; text-align: center; margin: 0 0 0.6rem !important; }
.eckdaten-karte h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.eckdaten-karte .daten-schmal { margin-bottom: 0; }
.makler-karte { display: flex; gap: 0.9rem; align-items: flex-start; }
.makler-karte .avatar {
  background: var(--gruen); color: #fff; border-radius: 50%; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
