/* ==========================================================================
   Klaus Zimmermann Immobilien — Objekt-Landingpage
   Design-System 1:1 aus der Hauptsite (Anthrazit #2B2E3F + kühle Grautöne,
   Logo-Rot als sparsamer Akzent, Cormorant Garamond + Inter, Radius 0).
   Ergänzt um Landing-spezifische Komponenten & modernere Animationen.
   ========================================================================== */

/* ---------- Fonts (lokal gehostet, DSGVO-konform) ---------- */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/CormorantGaramond-600-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Inter-400-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Inter-500-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Inter-500-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

/* ---------- Tokens ---------- */

:root {
  --ink: #23262f;
  --brand: #2b2e3f;
  --text: #383b44;
  --muted: #6b6f79;
  --faint: #64676f;
  --bg: #fbfbfa;
  --surface: #f2f2f0;
  --line: #e3e3e0;
  --line-strong: #c9c9c5;
  --red: #c1271d;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Reset & Basis ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 1rem;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.65rem); }

p { margin: 0 0 1.2em; max-width: 65ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

ul { margin: 0 0 1.2em; padding-left: 1.2em; }

::selection { background: var(--brand); color: #fff; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ---------- Skip-Link ---------- */

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.9em 1.4em;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }

.lead {
  font-size: clamp(1.125rem, 1.8vw, 1.3rem);
  line-height: 1.65;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--red);
}

.section-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 1.05em 1.9em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.15s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brand);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease);
}
.btn:hover::before { transform: translateX(0); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline::before { background: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: #fff; }

.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light::before { background: var(--bg); }
.btn-light:hover { border-color: #fff; color: var(--ink); }

.btn-ghost-light { background: transparent; border-color: rgb(255 255 255 / 0.45); color: #fff; }
.btn-ghost-light::before { background: rgb(255 255 255 / 0.12); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .btn::before { display: none; }
  .btn:hover { background: var(--brand); }
  .btn-outline:hover { background: var(--ink); }
  .btn-light:hover { background: var(--bg); }
  .btn-ghost-light:hover { background: rgb(255 255 255 / 0.12); }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(251 251 250 / 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 76px;
}

.logo { line-height: 0; }
.logo img { width: clamp(150px, 16vw, 190px); height: auto; }

.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.2rem); }

.site-nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding-block: 0.4em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--ink); border-bottom-color: var(--red); }
.site-nav .btn { padding: 0.8em 1.5em; font-size: 0.9rem; }

.nav-toggle { display: none; background: none; border: none; padding: 0.5rem; cursor: pointer; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ---------- Hero (Portal) ---------- */

.hero {
  position: relative;
  overflow: clip;
  background: var(--brand);
  color: #fff;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  transform: scale(1.08);
  animation: hero-kenburns 22s var(--ease) infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(35 38 47 / 0.55) 0%, rgb(35 38 47 / 0.35) 45%, rgb(43 46 63 / 0.9) 100%);
}
@keyframes hero-kenburns {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(-2%, -2%, 0); }
}

.hero-inner {
  min-height: min(82vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(4rem, 10vw, 7rem);
}

.hero .eyebrow { color: rgb(255 255 255 / 0.7); }
.hero .eyebrow::before { background: var(--red); }

.hero h1 { color: #fff; max-width: 16ch; margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; color: rgb(255 255 255 / 0.62); }

.hero .lead { color: rgb(255 255 255 / 0.82); max-width: 52ch; margin-bottom: 2.6rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.7);
  text-decoration: none;
}
.hero-scroll .line {
  display: block; width: 46px; height: 1px; background: rgb(255 255 255 / 0.4); position: relative; overflow: hidden;
}
.hero-scroll .line::after {
  content: ""; position: absolute; inset: 0; width: 40%; background: #fff;
  animation: scroll-hint 2.4s var(--ease) infinite;
}
@keyframes scroll-hint {
  0% { transform: translateX(-120%); } 60%,100% { transform: translateX(300%); }
}

/* Kennzahlen-Leiste im Hero */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.8rem, 5vw, 3.5rem);
  margin-top: clamp(2.6rem, 6vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid rgb(255 255 255 / 0.16);
}
.hero-stat .num {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 600;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hero-stat .lbl { display: block; margin-top: 0.5rem; font-size: 0.86rem; color: rgb(255 255 255 / 0.62); }

@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; transform: scale(1.05); }
  .hero-scroll .line::after { animation: none; }
}

/* ---------- Filter-/Kategorie-Leiste ---------- */

.filterbar {
  position: sticky;
  top: 76px;
  z-index: 40;
  background: rgb(251 251 250 / 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.filterbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.5rem;
  padding-block: 0.9rem;
}
.filterbar .anzahl {
  margin-right: auto;
  font-size: 0.86rem;
  color: var(--muted);
}
.filterbar .anzahl strong { color: var(--ink); font-weight: 600; }
.chip {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  padding: 0.5em 1.05em;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Objekt-Grid & Karten ---------- */

.objekt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.objekt-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.objekt-card:hover {
  color: var(--text);
  box-shadow: 0 28px 55px -30px rgb(35 38 47 / 0.32);
  transform: translateY(-4px);
}

.objekt-card-media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--surface); }
.objekt-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.objekt-card:hover .objekt-card-media img { transform: scale(1.05); }

.objekt-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: var(--red);
  padding: 0.45em 0.85em;
}
.objekt-badge.neutral { background: rgb(35 38 47 / 0.9); }

.objekt-card-body { padding: 1.6rem 1.8rem 1.9rem; display: flex; flex-direction: column; flex: 1; }
.objekt-meta { font-size: 0.86rem; color: var(--muted); margin-bottom: 0.6rem; letter-spacing: 0.01em; }
.objekt-card-body h2 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); margin-bottom: 0.5rem; }
.objekt-ort { font-size: 0.95rem; color: var(--muted); margin-bottom: 1.1rem; display: flex; align-items: center; gap: 0.45rem; }
.objekt-ort svg { width: 15px; height: 15px; color: var(--red); flex: none; }

.objekt-fakten {
  list-style: none; padding: 0; margin: 0 0 1.4rem;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.3rem;
  font-size: 0.88rem; color: var(--text);
}
.objekt-fakten li { display: flex; align-items: center; gap: 0.4rem; }
.objekt-fakten svg { width: 15px; height: 15px; color: var(--faint); flex: none; }

.objekt-foot {
  margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.objekt-preis { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--ink); }
.objekt-card .mehr {
  font-size: 0.9rem; font-weight: 500; color: var(--ink);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.objekt-card .mehr svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.objekt-card:hover .mehr svg { transform: translateX(4px); }

/* Platzhalter-Karte: „Weitere Objekte in Kürze" (kein erfundenes Objekt) */
.objekt-card.soon {
  border-style: dashed;
  border-color: var(--line-strong);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  min-height: 320px;
}
.objekt-card.soon:hover { transform: none; box-shadow: none; }
.objekt-card.soon .soon-icon {
  width: 46px; height: 46px; color: var(--faint); margin-bottom: 1.2rem;
}
.objekt-card.soon h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.objekt-card.soon p { font-size: 0.95rem; color: var(--text); margin-bottom: 1.4rem; }

@media (prefers-reduced-motion: reduce) {
  .objekt-card { transition: border-color 0.3s var(--ease); }
  .objekt-card:hover { transform: none; }
  .objekt-card:hover .objekt-card-media img { transform: none; }
}

/* ---------- Featured-Objekt (großer Teaser) ---------- */

.featured {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.featured:hover { box-shadow: 0 34px 70px -34px rgb(35 38 47 / 0.3); transform: translateY(-3px); }
.featured-media { position: relative; overflow: hidden; min-height: 420px; }
.featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.featured:hover .featured-media img { transform: scale(1.04); }
.featured-body { padding: clamp(2rem, 4vw, 3.4rem); display: flex; flex-direction: column; justify-content: center; }
.featured-body h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 0.9rem; }
.featured-body .objekt-preis { font-size: clamp(1.6rem, 3vw, 2rem); margin: 0.4rem 0 1.8rem; }
.featured .objekt-fakten { font-size: 0.95rem; gap: 0.7rem 1.6rem; margin-bottom: 2rem; }

@media (prefers-reduced-motion: reduce) {
  .featured:hover { transform: none; }
  .featured:hover .featured-media img { transform: none; }
}

/* ---------- Leistungen / Kategorien ---------- */

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.leistung { border-top: 1px solid var(--line-strong); padding-top: 1.6rem; transition: border-color 0.4s var(--ease); }
.leistung-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-bottom: 1.2rem; color: var(--ink);
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
}
.leistung-icon svg { width: 100%; height: 100%; }
.leistung:hover { border-color: var(--red); }
.leistung:hover .leistung-icon { color: var(--red); transform: translateY(-3px); }
.leistung h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.leistung p { color: var(--muted); font-size: 0.96rem; }
@media (prefers-reduced-motion: reduce) { .leistung:hover .leistung-icon { transform: none; } }

/* ---------- CTA-Band ---------- */

.cta-band { background: var(--brand); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgb(255 255 255 / 0.75); }
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2.5rem;
}
.cta-inner > div:first-child { max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-grid h3 {
  font-family: var(--sans); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 1.1rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.55rem; }
.footer-grid a { color: var(--text); text-decoration: none; }
.footer-grid a:hover { color: var(--red); }
.footer-logo img { width: 180px; margin-bottom: 1.2rem; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.85rem; color: var(--faint);
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */

.prose { max-width: 75ch; padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem); }
.prose h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 2rem; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-top: 2.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 2em; }
.prose a { color: var(--ink); word-break: break-word; }
.prose .zurueck {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.92rem; color: var(--muted); text-decoration: none; margin-bottom: 1.5rem;
}
.prose .zurueck:hover { color: var(--ink); }
.prose .zurueck svg { width: 16px; height: 16px; }
.hinweis-box {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.1rem 1.3rem;
  background: var(--surface);
  border-left: 2px solid var(--line-strong);
  font-size: 0.9rem;
  color: var(--muted);
}
.hinweis-box p { max-width: none; margin: 0; }

/* ---------- Objekt-Detailseite ---------- */

.zurueck {
  display: inline-block;
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2rem;
}
.zurueck:hover { color: var(--ink); }

.detail-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.detail-kopf .objekt-meta { margin-bottom: 0.6rem; }
.detail-kopf h1 { margin: 0; }
.detail-kopf .objekt-preis { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); }

.galerie { display: grid; gap: 12px; }
.galerie-haupt {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  cursor: zoom-in;
}
.galerie-reihe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.galerie-reihe img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: zoom-in;
  transition: opacity 0.25s var(--ease);
}
.galerie-reihe img:hover { opacity: 0.85; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.fakten {
  background: var(--surface);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  position: sticky;
  top: 100px;
}
.fakten h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.fakt-liste { list-style: none; margin: 0; padding: 0; }
.fakten .fakt { display: flex; align-items: flex-start; gap: 0.9rem; padding: 0.85rem 0; }
.fakten .fakt + .fakt { border-top: 1px solid var(--line-strong); }
.fakten .fakt-icon { flex: none; width: 20px; height: 20px; margin-top: 0.15rem; color: var(--red); }
.fakten .fakt-icon svg { width: 100%; height: 100%; }
.fakten .fakt-label { display: block; font-size: 0.82rem; letter-spacing: 0.02em; color: var(--text); }
.fakten .fakt-value { display: block; margin-top: 0.1rem; font-weight: 500; color: var(--ink); }
.fakten .btn { width: 100%; margin-top: 1.4rem; }
.fakten .fakten-hinweis { font-size: 0.85rem; color: var(--text); margin-top: 1.1rem; }

.highlights {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 2.5rem;
}
.highlights li { display: flex; gap: 0.8rem; align-items: baseline; font-size: 1rem; }
.highlights li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 1px;
  background: var(--red);
  transform: translateY(-4px);
}

.detail-abschnitt { margin-top: clamp(2.5rem, 5vw, 4rem); }
.detail-abschnitt h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

.rechtliches {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 75ch;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgb(20 21 26 / 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.open { display: flex; }

body.no-scroll { overflow: hidden; }
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.2s var(--ease);
}
.lightbox img.wechselt { opacity: 0; }
.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: rgb(255 255 255 / 0.8);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 1rem;
  font-family: var(--sans);
}
.lightbox button:hover { color: #fff; }
.lightbox .lb-close { top: 0.5rem; right: 0.75rem; }
.lightbox .lb-prev { left: 0.25rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 0.25rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-counter {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgb(255 255 255 / 0.7);
  font-size: 0.9rem;
}

/* ---------- Scroll-Reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: calc(var(--stagger, 0) * 80ms);
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Mobile ---------- */

@media (max-width: 980px) {
  .leistungen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .featured { grid-template-columns: minmax(0, 1fr); }
  .featured-media { min-height: 260px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .fakten { position: static; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .filterbar { top: 76px; }
  .filterbar .anzahl { width: 100%; margin-bottom: 0.3rem; }

  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 76px 0 0 0; z-index: 49;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); padding: 1.5rem var(--gutter);
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0s 0.35s; overflow-y: auto;
  }
  .site-nav.open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
  .site-nav a:not(.btn) {
    font-size: 1.3rem; font-family: var(--serif); font-weight: 600;
    padding: 1rem 0; width: 100%; border-bottom: 1px solid var(--line);
  }
  .site-nav .btn { margin-top: 1.5rem; width: 100%; }
  body.nav-open { overflow: hidden; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .leistungen-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
  .objekt-grid { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .filterbar, .hero-scroll { display: none; }
}
