/* witte immobilien GmbH – Stylesheet */
:root {
  --bg: oklch(0.985 0.004 90);
  --bg-tint: oklch(0.955 0.012 30);
  --bg-tint-strong: oklch(0.94 0.025 30);
  --surface: #fff;
  --text: oklch(0.22 0.03 25);
  --muted: oklch(0.5 0.035 25);
  --border: oklch(0.9 0.015 30);
  --primary: oklch(0.46 0.17 28);
  --primary-dark: oklch(0.38 0.15 28);
  --on-primary: oklch(0.98 0.01 30);
  --accent: oklch(0.78 0.14 45);
  --on-accent: oklch(0.28 0.08 35);
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgb(60 20 10 / .06), 0 8px 24px rgb(60 20 10 / .06);
  --container: 1200px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; } /* Sprungziele nicht unter dem fixierten Header */
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 5.5vw, 3.75rem); font-weight: 700; }
h1, h2 { hyphens: auto; overflow-wrap: break-word; } /* lange Wörter wie „Studentenwohnungen“ am Handy trennen */
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.section { padding: 80px 0; }
.section--tint { background: var(--bg-tint); }
.section--tint-strong { background: var(--bg-tint-strong); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.075rem; }
.kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font: inherit; font-weight: 600; font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--ghost { background: rgb(255 255 255 / .1); color: var(--on-primary); border-color: rgb(255 255 255 / .35); }
.btn--ghost:hover { background: rgb(255 255 255 / .2); }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: var(--on-primary); }
.btn--block { width: 100%; }
.link-arrow { color: var(--primary); font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(253 252 249 / .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo img { height: 24px; width: auto; }
@media (max-width: 400px) { .logo img { height: 20px; } }
.site-footer .logo img { height: 20px; }
.site-header .logo img { mix-blend-mode: multiply; } /* weißer JPG-Hintergrund verschmilzt mit dem Header */
.logo-mark {
  width: 38px; height: 38px; border-radius: var(--radius);
  background: var(--primary); color: var(--on-primary);
  display: grid; place-items: center; flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 1.05rem; }
.logo-text small { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  text-decoration: none; color: var(--muted); font-size: .93rem; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius); white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--primary); background: var(--bg-tint); }
.main-nav .btn { margin-left: 8px; color: var(--on-primary); }
.main-nav .btn:hover { background: var(--primary-dark); color: var(--on-primary); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius);
  width: 44px; height: 44px; cursor: pointer; color: var(--text);
}
@media (max-width: 1180px) {
  .nav-toggle { display: grid; place-items: center; }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px; }
  .main-nav .btn { margin: 8px 0 0; }
}

/* Hero */
.hero { position: relative; color: var(--on-primary); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  /* Foto in Originalfarben, nur neutral abgedunkelt für die Lesbarkeit */
  background: linear-gradient(100deg, rgb(10 12 16 / .72) 0%, rgb(10 12 16 / .45) 45%, rgb(10 12 16 / .05) 100%);
}
.hero h1, .hero .lead { text-shadow: 0 2px 16px rgb(0 0 0 / .35); }
.hero-content { position: relative; z-index: 1; padding: 120px 0 96px; max-width: 760px; }
.hero .kicker { color: var(--accent); }
.hero p.lead { font-size: 1.15rem; opacity: .92; max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 64px; }
.hero-stats strong { display: block; font-size: 2rem; line-height: 1.1; }
.hero-stats span { font-size: .85rem; opacity: .8; }
.page-hero .hero-content { padding: 88px 0 72px; }
/* Überschrift ab Tablet-Breite in einer Zeile halten (z. B. „Persönlich. Regional. Verlässlich.“) */
@media (min-width: 768px) {
  .hero-title--oneline { white-space: nowrap; font-size: min(3.75rem, 4.4vw); }
}
/* dasselbe für Seitentitel ohne Titelbild (z. B. Presse) */
.page-title--oneline { font-size: clamp(2rem, 4.5vw, 3rem); }
@media (min-width: 768px) {
  .page-title--oneline { white-space: nowrap; font-size: min(3rem, 4vw); }
}

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin-bottom: 0; }
.icon-badge {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--bg-tint-strong); color: var(--primary);
  display: grid; place-items: center; margin-bottom: 18px;
}

/* Property cards */
.property-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.property-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgb(60 20 10 / .12); }
.property-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-tint); }
.property-media img { width: 100%; height: 100%; object-fit: cover; }
.property-card.is-closed .property-media img { filter: grayscale(.5) brightness(.9); }
.badge {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 11px; border-radius: 999px;
  font-size: .75rem; font-weight: 700;
  background: var(--primary); color: var(--on-primary);
}
.badge--miete { background: var(--accent); color: var(--on-accent); }
.badge--prep { background: oklch(0.97 0.01 90); color: var(--text); box-shadow: inset 0 0 0 1px oklch(0.85 0.03 60); }
.badge--closed { background: oklch(0.3 0.02 25); color: #fff; }
.property-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.property-location { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.property-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.property-price { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.property-facts {
  display: grid; gap: 6px;
  padding: 14px 0; border-top: 1px solid var(--border); margin: auto 0 16px;
}
.property-facts--empty { padding: 0; border: 0; } /* keine Eckdaten: Button bleibt trotzdem unten */
/* jede Angabe eine Zeile: Bezeichnung links, Wert rechts */
.property-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.property-facts dt { font-size: .8rem; color: var(--muted); }
.property-facts dd { margin: 0; font-weight: 600; font-size: .9rem; text-align: right; overflow-wrap: anywhere; }
.property-card .btn { align-self: stretch; }

/* Filter */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 32px; box-shadow: var(--shadow);
}
.filter-group { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; }
.filter-group label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.segmented { display: flex; background: var(--bg-tint); border-radius: var(--radius); padding: 4px; }
.segmented button {
  flex: 1; border: 0; background: none; font: inherit; font-size: .9rem; font-weight: 600;
  padding: 8px 10px; border-radius: 6px; cursor: pointer; color: var(--muted);
}
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--primary); box-shadow: 0 1px 3px rgb(0 0 0 / .1); }
.result-count { color: var(--muted); margin-bottom: 20px; }
.empty-state { text-align: center; padding: 48px 16px; color: var(--muted); grid-column: 1 / -1; }

/* Forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; }
input, select, textarea {
  font: inherit; color: var(--text);
  padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
textarea { min-height: 140px; resize: vertical; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: oklch(0.55 0.2 25); }
.field-error { font-size: .8rem; color: oklch(0.5 0.2 25); }
.form-send-error { margin: 12px 0 0; font-size: .9rem; color: oklch(0.5 0.2 25); }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.checkbox input { width: auto; margin-top: 4px; }
.form-success {
  padding: 16px 18px; border-radius: var(--radius);
  background: oklch(0.95 0.05 150); color: oklch(0.35 0.1 150); font-weight: 500;
}

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .icon-badge { margin: 0; flex-shrink: 0; }
.contact-list strong { display: block; }
.contact-list a, .contact-list span { color: var(--muted); text-decoration: none; }
.contact-list a:hover { color: var(--primary); }

/* Steps */
.steps { counter-reset: step; }
.step-num { font-size: 2.6rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 12px; display: block; }

/* Split */
.split { display: grid; gap: 48px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.split-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { flex-shrink: 0; color: var(--primary); margin-top: 3px; }

/* Über uns: Zeitleiste und Ausbildung */
.split--top { align-items: start; }
.timeline { list-style: none; padding: 0; margin: 28px 0 0; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 22px 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--bg-tint); }
.timeline-year { display: block; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.timeline p { margin: 0; }
.qualification .check-list { margin-top: 16px; }
.qualification .check-list span { color: var(--text); }
.qualification-role { margin: -4px 0 0; }

/* Regions */
.region-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; color: #fff; text-decoration: none; }
.region-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.region-card:hover img { transform: scale(1.04); }
.region-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, oklch(0.2 0.05 25 / .9), transparent 65%); }
.region-card div { position: relative; z-index: 1; padding: 28px; }
.region-card p { opacity: .88; margin-bottom: 10px; font-size: .95rem; }
.region-card span { font-weight: 600; color: var(--accent); }

/* Testimonials */
.quote { font-size: 1.02rem; color: var(--text) !important; font-style: italic; margin-bottom: 20px !important; }
.quote-author strong { display: block; }
.quote-author span { font-size: .85rem; color: var(--muted); }
.placeholder-note {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: oklch(0.93 0.08 90); color: oklch(0.4 0.08 70); padding: 3px 8px; border-radius: 4px; margin-bottom: 12px;
}

/* Compare (Vorher/Nachher) */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.compare .card h3 { display: flex; align-items: center; gap: 10px; }
.compare ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.compare li { margin-bottom: 6px; }
.compare .card--after { border-color: var(--primary); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 22px; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--primary); color: var(--on-primary); border-radius: var(--radius-lg); padding: 48px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: .88; }
@media (max-width: 600px) { .cta-band { padding: 32px 24px; } }

/* Detail page */
.breadcrumb { font-size: .85rem; color: var(--muted); padding: 24px 0 0; }
.breadcrumb a { color: var(--muted); }
.detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-end; margin: 16px 0 24px; }
.detail-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 6px; }
.detail-price { font-size: 1.9rem; font-weight: 700; color: var(--primary); }
/* Galerie */
.gallery-wrap { position: relative; }
.gallery {
  display: grid; gap: 8px;
  grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr;
  height: clamp(300px, 46vw, 540px);
  border-radius: var(--radius-lg); overflow: hidden;
}
.gallery-item {
  position: relative; border: 0; padding: 0; margin: 0; overflow: hidden;
  background: var(--bg-tint); min-height: 0; cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: oklch(0.2 0.05 25 / 0); transition: background .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover::after { background: oklch(0.2 0.05 25 / .15); }
.gallery-item:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.gallery-main { grid-row: span 2; cursor: zoom-in; }
.gallery-main.is-swapping img { animation: gallery-swap .45s ease; }
@keyframes gallery-swap { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
.count-1 .gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.count-1 .gallery-main { grid-row: auto; }
.count-2 .gallery-thumb { grid-row: span 2; }
.gallery-all {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 0; border-radius: 999px;
  background: rgb(255 255 255 / .95); color: var(--text);
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  box-shadow: 0 4px 16px rgb(0 0 0 / .18); transition: transform .2s, background .2s;
}
.gallery-all:hover { transform: translateY(-1px); background: #fff; }
.count-1 .gallery-all { display: none; }
@media (max-width: 640px) {
  /* Am Handy: großes Bild oben, zwei kleine nebeneinander darunter */
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 110px; height: 380px; border-radius: var(--radius); }
  .gallery-main { grid-row: auto; grid-column: span 2; }
  .count-2 .gallery-thumb { grid-row: auto; grid-column: span 2; }
  .gallery-all { left: 12px; bottom: 130px; padding: 8px 14px; font-size: .82rem; }
  .count-1 .gallery { grid-template-rows: 1fr; }
}
.detail-layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) 380px; margin-top: 40px; align-items: start; }
@media (max-width: 960px) { .detail-layout { grid-template-columns: 1fr; } }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0 0 32px; }
.facts-grid div { background: var(--bg-tint); border-radius: var(--radius); padding: 14px 16px; }
.facts-grid dt { font-size: .78rem; color: var(--muted); }
.facts-grid dd { margin: 0; font-weight: 700; }
.feature-list { columns: 2 220px; padding: 0; list-style: none; margin: 0 0 32px; }
.feature-list li { padding: 6px 0 6px 26px; position: relative; break-inside: avoid; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
/* Detailseite: Nutzflächen-Tabelle und Nutzungsideen (optionale Felder flaechen / abschnitte) */
.area-table { width: 100%; border-collapse: collapse; margin: 0 0 8px; }
.area-table th, .area-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--border); }
.area-table th { font-weight: 500; color: var(--muted); width: 45%; padding-right: 16px; }
.area-table td { font-weight: 600; }
.area-table .is-total th, .area-table .is-total td { color: var(--primary); border-bottom: 0; border-top: 2px solid var(--primary); }
.use-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 16px 0 12px; }
.use-item { background: var(--bg-tint); border-radius: var(--radius); padding: 16px 18px; }
.use-item h3 { font-size: 1rem; margin-bottom: 4px; }
.use-item p { font-size: .9rem; color: var(--muted); margin: 0; }
.sticky-card { position: sticky; top: 96px; }
.status-pill { display: inline-block; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg-tint-strong); color: var(--primary); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgb(14 9 8 / .96); backdrop-filter: blur(6px);
  display: none; grid-template-rows: auto minmax(0, 1fr) auto auto;
  color: #fff; animation: lb-fade .25s ease;
}
.lightbox.is-open { display: grid; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; }
.lb-counter { font-size: .9rem; font-weight: 600; letter-spacing: .05em; color: rgb(255 255 255 / .8); }
.lightbox button { font: inherit; cursor: pointer; border: 0; }
.lb-close, .lb-nav {
  display: grid; place-items: center; border-radius: 999px;
  background: rgb(255 255 255 / .1); color: #fff; transition: background .2s, transform .2s;
}
.lb-close { width: 44px; height: 44px; }
.lb-close:hover, .lb-nav:hover { background: rgb(255 255 255 / .22); }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 20px; min-height: 0; }
.lb-img {
  max-width: min(100%, 1400px); max-height: 100%; object-fit: contain;
  border-radius: var(--radius); box-shadow: 0 20px 60px rgb(0 0 0 / .5);
  opacity: 0; transform: scale(.98); transition: opacity .3s, transform .3s;
}
.lb-img.is-loaded { opacity: 1; transform: none; }
.lb-nav { flex-shrink: 0; width: 52px; height: 52px; }
.lb-nav:active { transform: scale(.94); }
.lb-caption { text-align: center; font-size: .9rem; color: rgb(255 255 255 / .7); padding: 14px 20px 4px; }
.lb-thumbs {
  display: flex; gap: 8px; justify-content: safe center;
  padding: 12px 20px 20px; overflow-x: auto; scrollbar-width: thin;
}
.lb-thumbs button {
  flex: 0 0 auto; width: 76px; height: 54px; padding: 0; border-radius: 6px; overflow: hidden;
  background: none; opacity: .45; outline: 2px solid transparent; outline-offset: 2px;
  transition: opacity .2s, outline-color .2s;
}
.lb-thumbs button:hover { opacity: .8; }
.lb-thumbs button.is-active { opacity: 1; outline-color: var(--accent); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lightbox.is-single .lb-nav, .lightbox.is-single .lb-thumbs, .lightbox.is-single .lb-counter { visibility: hidden; }
@media (max-width: 640px) {
  .lb-stage { padding: 0; }
  .lb-img { border-radius: 0; }
  .lb-nav { position: absolute; top: 50%; translate: 0 -50%; width: 42px; height: 42px; background: rgb(0 0 0 / .45); z-index: 1; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-thumbs { justify-content: flex-start; }
  .lb-thumbs button { width: 60px; height: 44px; }
}

/* Footer */
.site-footer {
  position: relative;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, oklch(0.32 0.08 28 / .55), transparent 70%),
    oklch(0.2 0.025 25);
  color: oklch(0.85 0.01 30);
  padding: 72px 0 28px;
}
.site-footer::before { /* Akzentlinie oben */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.footer-grid { display: grid; gap: 48px 40px; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }
.site-footer h4 {
  color: var(--accent); font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.site-footer a { color: oklch(0.86 0.01 30); text-decoration: none; font-size: .93rem; transition: color .2s; }
.site-footer a:hover { color: var(--accent); }
.site-footer .logo { display: inline-flex; background: #fff; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 20px; }
.site-footer p { font-size: .93rem; line-height: 1.7; color: oklch(0.76 0.01 30); max-width: 320px; margin-bottom: 0; }
.footer-links a { display: inline-flex; align-items: center; gap: 0; }
.footer-links a::before {
  content: "›"; color: var(--accent); width: 0; overflow: hidden; opacity: 0;
  transition: width .2s, opacity .2s, margin .2s;
}
.footer-links a:hover::before { width: 10px; opacity: 1; margin-right: 4px; }
.footer-contact li { display: flex; align-items: center; gap: 12px; font-size: .93rem; color: oklch(0.86 0.01 30); }
.footer-icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 999px;
  display: grid; place-items: center;
  background: oklch(1 0 0 / .07); color: var(--accent);
}
.footer-bottom {
  border-top: 1px solid oklch(1 0 0 / .1); margin-top: 56px; padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  font-size: .84rem; color: oklch(0.62 0.01 30);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: .84rem; color: oklch(0.72 0.01 30); }

/* Immobiliensuche */
.search-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  border-top: 4px solid var(--primary);
}
.search-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.badge-inline { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg-tint-strong); color: var(--primary); }
.badge-inline--miete { background: oklch(0.93 0.06 50); color: var(--on-accent); }
.search-ref { font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.search-card h3 { margin-bottom: 6px; }
.search-card .property-location { margin-bottom: 16px; }
.search-card > p { font-size: .94rem; margin-bottom: 14px; }
.search-card h4 { font-size: 1rem; margin-bottom: 6px; }
.search-card .feature-list { columns: 1; margin-bottom: 20px; }
.search-card .feature-list li { padding: 4px 0 4px 24px; font-size: .94rem; }
.search-budget {
  margin-top: auto; display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0; border-top: 1px solid var(--border); margin-bottom: 16px;
}
.search-budget span { font-size: .82rem; color: var(--muted); }
.search-budget strong { font-size: 1.2rem; color: var(--primary); }
.search-budget strong.search-budget-text { font-size: .94rem; text-align: right; }

/* Presse */
.press-note {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--bg-tint); border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg); padding: 24px 28px; margin-bottom: 48px; max-width: 900px;
}
.press-note .icon-badge { flex-shrink: 0; margin: 0; background: var(--surface); }
.press-note h3 { margin-bottom: 6px; }
.press-note p { margin: 0; color: var(--muted); }
.press-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.press-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.press-media {
  border: 0; padding: 24px; margin: 0; cursor: zoom-in;
  background: var(--bg-tint); display: grid; place-items: center; height: 340px;
}
.press-media img { max-height: 100%; width: auto; box-shadow: 0 8px 24px rgb(0 0 0 / .15); transition: transform .4s; }
.press-media:hover img { transform: scale(1.03) rotate(-.5deg); }
.press-body { padding: 22px 24px 26px; }
.press-source { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.press-body h3 { margin: 6px 0 8px; }
.press-body p { color: var(--muted); font-size: .95rem; margin-bottom: 10px; }
.press-hint { font-size: .8rem; color: var(--muted); }
@media (max-width: 560px) { .press-note { flex-direction: column; padding: 20px; } }

/* Legal */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 36px; }
.legal p, .legal li { color: var(--muted); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
