/* ============================================
   JOACHIM HÖFE · V2 "Dark Editorial"
   Tiefgrün · Sand · Grain · Motion · 2026
   ============================================ */

:root {
  --bg: #0f1410;
  --bg-2: #141b15;
  --panel: #1a231c;
  --ink: #efe9dc;
  --muted: #a8ac9e;
  --sand: #cfae72;
  --sand-soft: rgba(207, 174, 114, 0.14);
  --line: rgba(239, 233, 220, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Film-Grain */
body::before {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: var(--sand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 820px; }
::selection { background: var(--sand); color: var(--bg); }

/* ---------- Scroll-Progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--sand); z-index: 300; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; transition: background 0.3s, box-shadow 0.3s; }
.site-header.scrolled { background: rgba(15, 20, 16, 0.9); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 86px; }
.brand { font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.3em; color: var(--ink); text-transform: uppercase; white-space: nowrap; }
.brand em { color: var(--sand); font-style: italic; text-transform: none; letter-spacing: 0.05em; }
.brand:hover { text-decoration: none; }
.main-nav { display: flex; gap: 2px; align-items: center; }
.main-nav a { color: var(--ink); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; padding: 10px 14px; opacity: 0.85; }
.main-nav a:hover { color: var(--sand); opacity: 1; text-decoration: none; }
.lang { border: 1px solid var(--line); padding: 7px 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 1.4rem; cursor: pointer; }
@media (max-width: 900px) {
  .header-inner { height: 64px; gap: 10px; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    order: -1; flex: none; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 12px; font-size: 0;
    transition: border-color 0.2s ease;
  }
  .nav-toggle::before { content: "☰"; font-size: 1.15rem; line-height: 1; }
  .main-nav.open ~ .nav-toggle::before { content: "✕"; }
  .btn-cta { flex: 1; text-align: center; margin-left: 0; padding: 13px 10px; }
  .btn-call {
    display: flex !important; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex: none;
    border: 1px solid rgba(207, 174, 114, 0.55); border-radius: 12px; color: var(--sand);
  }
  .btn-call svg { width: 18px; height: 18px; }
  /* Premium-Overlay-Menü */
  .main-nav {
    position: fixed; left: 0; right: 0; top: 64px; bottom: 0; z-index: 150;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 26px 26px 44px; overflow-y: auto;
    background:
      radial-gradient(circle at 88% 8%, rgba(207, 174, 114, 0.12), transparent 55%),
      linear-gradient(180deg, var(--bg-2), var(--bg));
    transform: translateX(103%); visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.45s;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav a {
    font-family: var(--serif); text-transform: none; letter-spacing: 0.02em;
    font-size: 1.55rem; font-weight: 400; padding: 17px 4px;
    border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(14px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
  }
  .main-nav.open a { opacity: 1; transform: none; }
  .main-nav.open a:nth-child(1) { transition-delay: 0.06s; }
  .main-nav.open a:nth-child(2) { transition-delay: 0.11s; }
  .main-nav.open a:nth-child(3) { transition-delay: 0.16s; }
  .main-nav.open a:nth-child(4) { transition-delay: 0.21s; }
  .main-nav.open a:nth-child(5) { transition-delay: 0.26s; }
  .main-nav.open a:nth-child(6) { transition-delay: 0.31s; }
  .main-nav.open a:nth-child(7) { transition-delay: 0.36s; }
  .main-nav a.active::after { display: none; }
  .main-nav .lang {
    align-self: flex-start; margin-top: 26px; border: 1px solid var(--line) !important;
    border-radius: 999px; font-family: var(--font); font-size: 0.78rem;
    letter-spacing: 0.22em; text-transform: uppercase; padding: 11px 24px;
  }
  .main-nav .theme-toggle { margin: 16px 0 0; align-self: flex-start; width: 46px; height: 46px; }
  html:has(.main-nav.open) { overflow: hidden; }
  /* Overlay ist hell/dunkel je Theme – Hero-Ausnahme fürs Menü zurücknehmen */
  html[data-theme="light"] .site-header:not(.scrolled) .main-nav a { color: var(--ink); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,20,16,0.92) 5%, rgba(15,20,16,0.25) 55%, rgba(15,20,16,0.55)); }
.hero-content { position: relative; z-index: 2; width: 100%; padding-top: 130px; padding-bottom: 110px; }
/* Auf flachen/breiten Bildschirmen Logo verkleinern, damit nichts unter den Header rutscht */
@media (max-height: 900px) { .hero-logo { height: clamp(160px, 30vh, 300px); } }
@media (max-height: 700px) { .hero-logo { height: clamp(130px, 26vh, 220px); } .hero-content { padding-bottom: 70px; } }
.hero .kicker { font-size: 0.8rem; letter-spacing: 0.5em; text-transform: uppercase; color: var(--sand); margin-bottom: 20px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 12vw, 9.5rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero h1 .l2 { display: block; font-style: italic; text-transform: none; color: var(--sand); margin-left: clamp(20px, 8vw, 140px); }
.hero .sub { font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 2.2vw, 1.35rem); color: rgba(239,233,220,0.9); max-width: 560px; margin: 30px 0 40px; }
.hero .btn-row { justify-content: flex-start; }

/* Zeilen-Reveal im Hero */
.rise { display: block; overflow: hidden; }
.rise > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes kb { from { transform: scale(1.08); } to { transform: scale(1); } }
  .hero-bg { animation: kb 3.2s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
  @keyframes riseUp { from { transform: translateY(110%); } to { transform: none; } }
  .rise > span { animation: riseUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .rise.d1 > span { animation-delay: 0.25s; }
  .rise.d2 > span { animation-delay: 0.45s; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  .hero .kicker { animation: fadeUp 0.8s 0.15s both; }
  .hero .sub { animation: fadeUp 0.8s 0.9s both; }
  .hero .btn-row { animation: fadeUp 0.8s 1.1s both; }
  .reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2,0.8,0.2,1); transition-delay: var(--reveal-delay, 0s); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 0; width: max-content; }
.marquee-track span {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  padding-right: 12px;
}
.marquee-track span b { color: var(--sand); font-weight: 400; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  .marquee-track { animation: scrollX 90s linear infinite; }
}

/* ---------- Buttons ---------- */
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-block;
  padding: 17px 42px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.25s;
  position: relative;
}
.btn { border-radius: 999px; }
.btn::after { content: "\2192"; font-size: 1em; line-height: 1; transition: transform 0.3s ease; display: inline-block; margin-left: 10px; }
.btn:hover::after { transform: translateX(5px); }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn-sand { background: var(--sand); color: #1c1608; }
.btn-sand:hover { box-shadow: 0 14px 40px rgba(207, 174, 114, 0.35); }
.btn-line { border-color: rgba(239,233,220,0.45); color: var(--ink); }
.btn-line:hover { border-color: var(--sand); color: var(--sand); }

/* ---------- Sektionen ---------- */
.section { padding: 130px 0; position: relative; }
.section.tint { background: var(--bg-2); }
.eyebrow {
  display: inline-block; color: var(--sand); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.35em; text-transform: uppercase; margin-bottom: 22px;
  padding: 9px 18px 8px 20px; border: 1px solid rgba(207, 174, 114, 0.35); border-radius: 999px;
  background: rgba(207, 174, 114, 0.06);
}
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.1; margin-bottom: 24px; }
.h2 em { font-style: italic; color: var(--sand); }
.lead { font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.65; }
.copy { color: var(--muted); font-size: 1.02rem; max-width: 720px; }
.center { text-align: center; }
.center .copy { margin: 0 auto; }

/* Riesige Hintergrund-Typo */
.ghost {
  position: absolute;
  top: 40px; right: -30px;
  font-family: var(--serif);
  font-size: clamp(8rem, 22vw, 20rem);
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(239, 233, 220, 0.08);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  white-space: nowrap;
}

/* ---------- Fakten (Counter) ---------- */
.facts { padding: 80px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; text-align: center; perspective: 900px; }
.fact {
  background: linear-gradient(170deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 18px;
  padding: 36px 24px 40px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.fact:hover { border-color: rgba(207, 174, 114, 0.5); box-shadow: 0 26px 50px rgba(0, 0, 0, 0.4); }
.fact .l { font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.fact .n { font-family: var(--serif); font-size: clamp(1.8rem, 2.6vw, 2.9rem); color: var(--sand); line-height: 1.1; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes factFloat { from { transform: translateY(0); } to { transform: translateY(-7px); } }
  .fact { animation: factFloat 3.4s ease-in-out infinite alternate; }
  .fact:nth-child(2) { animation-delay: 0.6s; }
  .fact:nth-child(3) { animation-delay: 1.2s; }
  .fact:nth-child(4) { animation-delay: 1.8s; }
  .fact:hover { animation-play-state: paused; }
}

/* ---------- Highlights (Tilt-Karten) ---------- */
.hl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 60px; perspective: 900px; }
.hl { border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 40px 32px;
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
  transform-style: preserve-3d;
  will-change: transform;
}
.hl:hover { border-color: rgba(207, 174, 114, 0.5); box-shadow: 0 30px 60px rgba(0,0,0,0.45); }
.hl .num { color: var(--sand); font-family: var(--serif); font-style: italic; font-size: 1rem; display: block; margin-bottom: 16px; }
.hl .hl-t { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 8px; display: block; }
.hl p { color: var(--muted); font-size: 0.92rem; line-height: 1.65; }

/* ---------- Horizontale Galerie ---------- */
.hgal-wrap { margin-top: 60px; }
.hgal {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--sand) transparent;
  cursor: grab;
}
.hgal::-webkit-scrollbar { height: 4px; }
.hgal::-webkit-scrollbar-thumb { background: var(--sand); }
.hgal figure { flex: 0 0 min(78vw, 760px); scroll-snap-align: center; position: relative; overflow: hidden; }
.hgal img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.7s ease; }
.hgal figure:hover img { transform: scale(1.04); }
.hgal figcaption { position: absolute; left: 18px; bottom: 14px; font-family: var(--serif); font-style: italic; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,0.7); }
.gal-note { color: var(--muted); font-style: italic; font-family: var(--serif); margin-top: 14px; }

/* ---------- Sticky-Lage ---------- */
.sticky-split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.sticky-media { position: sticky; top: 120px; }
.sticky-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.dist-item { padding: 30px 0; border-bottom: 1px solid var(--line); }
.dist-item strong { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; display: block; }
.dist-item .min { color: var(--sand); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.22em; text-transform: uppercase; }
.dist-item p { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }
@media (max-width: 860px) { .sticky-split { grid-template-columns: 1fr; } .sticky-media { position: static; } }

/* ---------- Wohnungsliste ---------- */
.table-scroll { overflow-x: auto; margin-top: 56px; border: 1px solid var(--line); }
.unit-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.unit-table th, .unit-table td { padding: 17px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.unit-table thead th { font-family: var(--serif); font-weight: 400; font-size: 1.02rem; color: var(--sand); letter-spacing: 0.06em; background: var(--bg-2); position: sticky; top: 0; }
.unit-table td { color: var(--muted); }
.unit-table td strong { color: var(--ink); font-size: 1.02rem; }
.unit-table tbody tr { transition: background 0.15s; }
.unit-table tbody tr:hover { background: var(--sand-soft); }
.u-free { color: #8fc7a2; font-weight: 700; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; }
.notes { margin-top: 30px; }
.notes p { color: var(--muted); font-size: 0.85rem; margin-bottom: 8px; }

/* ---------- Formular ---------- */
.contact-form { max-width: 640px; margin: 52px auto 0; text-align: left; }
.contact-form label { display: block; margin-bottom: 20px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 15px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  font-family: var(--font); font-size: 1rem; letter-spacing: normal; text-transform: none;
}
.contact-form input { height: 54px; }
.contact-form select { height: 54px; -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23cfae72' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.contact-form :focus { outline: none; border-color: var(--sand); }
.form-note { margin-top: 18px; font-size: 0.82rem; color: var(--muted); letter-spacing: normal; text-transform: none; font-weight: 400; }

/* ---------- Sticky-CTA ---------- */
.cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  background: rgba(15, 20, 16, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(207, 174, 114, 0.4);
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 12px 20px; flex-wrap: wrap;
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cta-bar.show { transform: none; }
.cta-bar-label { font-family: var(--serif); font-style: italic; color: var(--ink); }
.btn-sm { padding: 11px 26px; font-size: 0.68rem; }
@media (max-width: 640px) { .cta-bar-label { display: none; } .cta-bar .btn-sm { flex: 1; text-align: center; } }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 780px; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: 2.4rem; margin-bottom: 28px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; margin: 36px 0 14px; color: var(--sand); }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 70px 0 40px; }
.fbrand { font-family: var(--serif); font-size: 1.4rem; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 14px; }
.fbrand em { color: var(--sand); font-style: italic; text-transform: none; }
.site-footer p { color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); margin-left: 18px; }
.footer-bottom a:first-child { margin-left: 0; }

/* ---------- Film / Luftaufnahmen ---------- */
.film-section { position: relative; }
.film-wrap {
  position: relative; margin-top: 44px;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(207, 174, 114, 0.08), transparent 55%),
    linear-gradient(160deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.film-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 30px;
}
.film-play {
  width: 84px; height: 84px; border-radius: 50%;
  border: 1px solid rgba(207, 174, 114, 0.55); color: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; padding-left: 6px;
  animation: filmPulse 2.6s ease-in-out infinite;
}
@keyframes filmPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(207, 174, 114, 0.25); }
  50% { box-shadow: 0 0 0 22px rgba(207, 174, 114, 0); }
}
.film-ph strong { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 400; }
.film-ph p { color: var(--muted); max-width: 480px; font-size: 0.95rem; }

/* ---------- Interaktive Karte ---------- */
.map-block {
  position: relative; margin-top: 44px; min-height: 480px;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(207, 174, 114, 0.07), transparent 60%),
    linear-gradient(200deg, var(--panel), var(--bg-2));
}
.map-block iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(0.2) saturate(0.85); }
.map-facade {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 18px; padding: 30px;
}
.map-pin { position: relative; width: 18px; height: 18px; }
.map-pin span {
  position: absolute; inset: 0; border-radius: 50%; background: var(--sand);
  box-shadow: 0 0 0 6px rgba(207, 174, 114, 0.18);
}
.map-pin::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid rgba(207, 174, 114, 0.5);
  animation: pinPulse 2.2s ease-out infinite;
}
@keyframes pinPulse {
  0% { transform: scale(0.55); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.map-addr {
  font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--ink);
}
.map-note { max-width: 520px; font-size: 0.8rem; color: var(--muted); }
.map-ext { margin-top: 16px; font-size: 0.9rem; }
.map-ext a { color: var(--sand); text-decoration: none; border-bottom: 1px solid rgba(207, 174, 114, 0.35); }
.map-ext a:hover { border-bottom-color: var(--sand); }
@media (max-width: 640px) { .map-block { min-height: 400px; } }

/* ---------- Warum kaufen ---------- */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px;
}
.why-card {
  position: relative; padding: 34px 28px 30px;
  background: linear-gradient(170deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 18px;
  transition: border-color 0.35s ease, transform 0.35s ease;
}
.why-card:hover { border-color: rgba(207, 174, 114, 0.5); transform: translateY(-4px); }
.why-num {
  display: block; font-family: var(--serif); font-style: italic;
  color: rgba(207, 174, 114, 0.55); font-size: 1rem; margin-bottom: 16px;
}
.why-t {
  display: block; font-family: var(--serif); font-size: 1.35rem; margin-bottom: 12px; color: var(--ink);
}
.why-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.quote-band {
  margin: 70px auto 0; max-width: 820px; text-align: center; padding: 0 10px;
}
.quote-band p {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.5; color: var(--ink);
}
.quote-band cite {
  display: block; margin-top: 22px; font-style: normal;
  font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sand);
}
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Leaflet-Karte (Airbnb-inspiriert) ---------- */
#map { position: absolute; inset: 0; z-index: 1; }
.map-block.loaded { background: var(--bg-2); }
.map-block .leaflet-tile { filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(0.9) saturate(0.65); }
.map-block .leaflet-container { background: var(--bg-2); font-family: var(--font) !important; }
.map-block .leaflet-control-attribution { background: rgba(15, 20, 16, 0.8); color: var(--muted); font-size: 0.62rem; }
.map-block .leaflet-control-attribution a { color: var(--sand); }
.map-block .leaflet-control-zoom a { background: var(--panel); color: var(--ink); border-color: var(--line); }
.map-block .leaflet-control-zoom a:hover { background: var(--bg-2); color: var(--sand); }
.map-block .leaflet-popup-content-wrapper {
  background: var(--panel); color: var(--muted);
  border: 1px solid rgba(207, 174, 114, 0.3); border-radius: 14px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
}
.map-block .leaflet-popup-tip { background: var(--panel); }
.map-block .leaflet-popup-content { font-family: var(--font); font-size: 0.82rem; line-height: 1.55; margin: 14px 18px; }
.map-block .leaflet-popup-content strong {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: 1.15rem; color: var(--ink); margin-bottom: 4px;
}
.map-block .leaflet-popup-close-button { color: var(--muted) !important; }
.jh-marker { background: transparent; border: none; }
.jh-pin {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  background: var(--sand); color: #1c1608;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 700;
  border: 3px solid #10150f; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.jh-ripple {
  position: absolute; inset: -9px; border-radius: 50%;
  background: rgba(207, 174, 114, 0.3);
  animation: jhRipple 2s ease-out infinite; z-index: -1;
}
@keyframes jhRipple {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.1); opacity: 0; }
}
.jh-dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid #10150f; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}
.map-chips { display: none; flex-wrap: wrap; gap: 10px; margin-top: 34px; margin-bottom: -14px; }
.map-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  font-family: var(--font); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  transition: all 0.25s ease;
}
.map-chip span {
  font-size: 0.68rem; padding: 2px 8px; border-radius: 999px;
  background: rgba(239, 233, 220, 0.08); color: var(--muted);
}
.map-chip:hover { border-color: rgba(207, 174, 114, 0.5); color: var(--ink); }
.map-chip.active { background: var(--sand); border-color: var(--sand); color: #1c1608; }
.map-chip.active span { background: rgba(28, 22, 8, 0.15); color: #1c1608; }

/* ---------- Radius-Labels auf der Karte ---------- */
.radius-label {
  background: rgba(15, 20, 16, 0.85); color: var(--sand);
  border: 1px solid rgba(207, 174, 114, 0.4); border-radius: 999px;
  padding: 4px 12px; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap; width: max-content !important; transform: translateX(-50%);
}

/* ---------- Wohnungsliste: klickbare Zeilen ---------- */
.unit-table tr.u-row { cursor: pointer; }
.unit-table tr.u-row td a { color: var(--sand); text-decoration: none; font-weight: 700; }
.unit-table .u-arrow { color: var(--sand); opacity: 0; transition: opacity 0.2s ease; }
.unit-table tr.u-row:hover .u-arrow { opacity: 1; }

/* ---------- Wohnungs-Landingpages ---------- */
.u-top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: start; }
.u-viz img { width: 100%; border-radius: 18px; border: 1px solid var(--line); }
.u-viz figcaption { margin-top: 10px; font-size: 0.78rem; color: var(--muted); }
.plan-box {
  margin-top: 22px; padding: 30px; text-align: center;
  border: 1px dashed rgba(207, 174, 114, 0.45); border-radius: 18px;
}
.plan-box strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; display: block; margin-bottom: 8px; }
.plan-box p { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.u-facts {
  background: linear-gradient(170deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px;
}
.uf-t { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; margin-bottom: 18px; }
.uf-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem;
}
.uf-row:last-child { border-bottom: 0; }
.uf-row span { color: var(--muted); }
.uf-row strong { color: var(--ink); font-weight: 600; text-align: right; }

/* Gebäude-Diagramm */
.stack-wrap { margin-top: 44px; display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.floor-row { display: flex; align-items: center; gap: 14px; }
.floor-l { width: 90px; flex: none; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); text-align: right; }
.cells { display: flex; gap: 8px; flex: 1; }
.cell {
  flex: 1; height: 52px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--muted); font-size: 0.82rem; font-weight: 600; text-decoration: none;
  transition: all 0.2s ease;
}
.cell:hover { border-color: var(--sand); color: var(--ink); transform: translateY(-3px); text-decoration: none; }
.cell.cur { background: var(--sand); border-color: var(--sand); color: #1c1608; font-weight: 700; box-shadow: 0 10px 26px rgba(207, 174, 114, 0.3); }

/* Rechner */
.calc-form { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-top: 36px; }
.calc-form label { display: flex; flex-direction: column; gap: 8px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.calc-form input {
  height: 54px; width: 260px; padding: 0 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); font-size: 1.05rem;
}
.calc-form input:focus { outline: none; border-color: var(--sand); }
.calc-tax { margin-top: 30px; color: var(--muted); font-size: 0.9rem; }
.calc-tax strong { color: var(--sand); }
.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 16px; }
.res-card {
  background: linear-gradient(170deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 14px; padding: 20px 20px 22px;
}
.res-card span { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.res-card strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; color: var(--ink); }
.res-eff strong { color: var(--sand); }
.res-eff strong.pos { color: #9ab98a; }
.calc-table thead th { white-space: nowrap; }

@media (max-width: 860px) {
  .u-top { grid-template-columns: 1fr; }
  .floor-l { width: 60px; }
  .cell { height: 44px; font-size: 0.72rem; }
  .calc-form input { width: 100%; }
  .calc-form label { flex: 1 1 100%; }
  .calc-form .btn { flex: 1; text-align: center; }
}

/* ---------- Header-CTA ---------- */
.btn-cta {
  display: inline-block; margin-left: 18px; flex: none;
  padding: 11px 24px; border-radius: 999px;
  background: var(--sand); color: #1c1608;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(207, 174, 114, 0.35); text-decoration: none; }
@media (max-width: 640px) { .btn-cta { font-size: 0.6rem; } }

/* ---------- CTA-Streifen ---------- */
.cta-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; text-align: center; }
.cta-strip.tint { background: var(--bg-2); }
.cta-line {
  font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.35;
  max-width: 720px; margin: 0 auto 26px;
}
.cta-strip .btn-row { justify-content: center; }
.cta-sub { display: block; margin-top: 18px; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.06em; }

/* ---------- Formular-Status ---------- */
.form-status { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 10px; font-size: 0.92rem; text-align: center; }
.form-status.ok { display: block; background: rgba(154, 185, 138, 0.12); border: 1px solid rgba(154, 185, 138, 0.5); color: #b8d3a8; }
.form-status.err { display: block; background: rgba(224, 122, 95, 0.1); border: 1px solid rgba(224, 122, 95, 0.5); color: #e8a595; }

/* ---------- Logo-Mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 24px; height: 24px; color: var(--sand); flex: none; }
.walk-label { background: rgba(207, 174, 114, 0.95); color: #1c1608; border-color: transparent; font-weight: 700; }

/* ---------- Rechner: interaktive Jahre + große Effektiv-Zahl ---------- */
.tax-link { color: var(--sand); font-size: 0.85rem; text-decoration: none; border-bottom: 1px solid rgba(207, 174, 114, 0.35); }
.tax-link:hover { border-bottom-color: var(--sand); }
.calc-hint { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }
.calc-hint strong { color: var(--sand); }
.calc-row { cursor: pointer; transition: background 0.15s ease; }
.calc-row.active td { background: rgba(207, 174, 114, 0.14); }
.calc-row.active td:first-child { color: var(--sand); font-weight: 700; }
.res-card.res-eff {
  grid-column: 1 / -1; text-align: center; padding: 36px 24px 40px;
  border-color: rgba(207, 174, 114, 0.45);
  background: radial-gradient(ellipse at 50% 0%, rgba(207, 174, 114, 0.1), transparent 65%),
    linear-gradient(170deg, var(--panel), var(--bg-2));
}
.res-card.res-eff strong { font-size: clamp(3rem, 8vw, 5.2rem); line-height: 1.05; }
.eff-label { display: block; margin-top: 12px; font-style: normal; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- Rechenweg-Seite ---------- */
.rw { max-width: 800px; }
.rw-step { position: relative; padding: 34px 0 38px; border-bottom: 1px solid var(--line); }
.rw-step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin-bottom: 10px; }
.rw-step > p { color: var(--muted); max-width: 640px; line-height: 1.7; }
.rw-num { display: block; font-family: var(--serif); font-style: italic; color: rgba(207, 174, 114, 0.6); font-size: 1.1rem; margin-bottom: 12px; }
.split-bar { display: flex; gap: 4px; margin-top: 22px; height: 58px; }
.split-bar > div { display: flex; align-items: center; justify-content: center; border-radius: 10px; min-width: 0; overflow: hidden; }
.split-bar span { font-size: 0.72rem; letter-spacing: 0.06em; white-space: nowrap; padding: 0 8px; }
.sb-a { background: rgba(207, 174, 114, 0.85); color: #1c1608; font-weight: 700; }
.sb-b { background: rgba(239, 233, 220, 0.14); color: var(--ink); }
.sb-c { background: rgba(239, 233, 220, 0.1); color: var(--muted); }
.rw-sum { margin-top: 12px; font-family: var(--serif); font-size: 1.1rem; color: var(--sand); }
.afa-chart { display: flex; gap: 12px; align-items: flex-end; margin-top: 26px; height: 190px; }
.afa-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; text-align: center; height: 100%; gap: 6px; }
.afa-fill { background: linear-gradient(180deg, rgba(207, 174, 114, 0.9), rgba(207, 174, 114, 0.45)); border-radius: 8px 8px 3px 3px; }
.afa-bar strong { font-size: 0.72rem; color: var(--ink); font-weight: 600; }
.afa-bar span { font-size: 0.68rem; color: var(--muted); }
.eq { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.eq-row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 0.92rem; }
.eq-row .eq-sign { font-family: var(--serif); font-size: 1.2rem; width: 16px; text-align: center; }
.eq-row .eq-l { flex: 1; color: var(--muted); }
.eq-row strong { color: var(--ink); font-weight: 600; white-space: nowrap; }
.eq-row.plus .eq-sign { color: #9ab98a; }
.eq-row.minus .eq-sign { color: #d98a76; }
.eq-row.res { border-color: rgba(207, 174, 114, 0.5); background: rgba(207, 174, 114, 0.08); }
.eq-row.res strong, .eq-row.res .eq-sign { color: var(--sand); font-family: var(--serif); font-size: 1.15rem; }
.rw-formula { margin-top: 22px; padding: 24px 26px; border: 1px dashed rgba(207, 174, 114, 0.45); border-radius: 14px; font-size: 1.05rem; line-height: 1.7; color: var(--muted); max-width: 640px; }
.rw-formula strong { color: var(--sand); }
.rw-ass { padding-top: 38px; }
.rw-ass h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; margin-bottom: 14px; }
.rw-ass ul { padding-left: 20px; color: var(--muted); line-height: 1.8; font-size: 0.92rem; }
.rw-ass .form-note { margin-top: 18px; }

/* ---------- Druck / PDF ---------- */
@media print {
  body { background: #fff !important; color: #1a1a1a !important; }
  body::before, .progress, .site-header, .cta-bar, .no-print, .btn-cta { display: none !important; }
  main { padding-top: 0 !important; }
  .section, .section.tint { background: #fff !important; padding: 20px 0 !important; }
  .rw-step h3, .h2, .rw-ass h3 { color: #1a1a1a !important; }
  .rw-step > p, .eq-row .eq-l, .rw-ass ul, .lead, .rw-formula { color: #444 !important; }
  .eq-row, .rw-formula { background: #fff !important; border-color: #ccc !important; }
  .eq-row strong { color: #1a1a1a !important; }
  .eq-row.res strong, .rw-sum, .rw-formula strong, .eyebrow { color: #8a6d2f !important; }
  .eyebrow { background: none !important; border-color: #ccc !important; }
  .sb-a { background: #cfae72 !important; color: #1c1608 !important; }
  .sb-b, .sb-c { background: #eee !important; color: #444 !important; }
  .afa-bar strong { color: #1a1a1a !important; }
  .afa-bar span { color: #666 !important; }
}

/* ---------- Hero-Hintergrundvideo ---------- */
video.hero-bg { object-fit: cover; animation: none; }

/* ---------- Etagen-Zwischenzeilen in der Wohnungsliste ---------- */
.unit-table tr.floor-head td {
  background: rgba(207, 174, 114, 0.1);
  border-top: 1px solid rgba(207, 174, 114, 0.35);
  border-bottom: 1px solid rgba(207, 174, 114, 0.2);
  padding: 13px 18px;
}
.unit-table tr.floor-head span {
  font-family: var(--serif); font-style: italic;
  color: var(--sand); font-size: 1.02rem; letter-spacing: 0.04em;
}

/* ---------- Theme-Umschalter & helles Theme (Default: dunkel) ---------- */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; flex: none;
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  font-size: 1.05rem; line-height: 1; margin-left: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { border-color: var(--sand); color: var(--sand); transform: rotate(180deg); }

html[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #edf0ea;              /* sanftes Grün für Wechsel-Sektionen */
  --panel: #ffffff;
  --ink: #141b15;               /* exakter Ton der dunklen Seite */               /* dunkles Grün als Textfarbe */
  --muted: #626b60;
  --sand: #a9853f;
  --line: rgba(20, 27, 21, 0.18);
}
/* Dunkelgrün bleibt präsent: Footer, Sticky-Leiste und Akzentflächen */
html[data-theme="light"] .site-footer { background: #141b15; border-top-color: rgba(207, 174, 114, 0.3); }
html[data-theme="light"] .site-footer .fbrand { color: #efe9dc; }
html[data-theme="light"] .site-footer p, html[data-theme="light"] .footer-bottom,
html[data-theme="light"] .footer-bottom a { color: #a8ac9e; }
html[data-theme="light"] .cta-bar { background: rgba(15, 20, 16, 0.97); border-top-color: rgba(207, 174, 114, 0.45); }
html[data-theme="light"] .cta-bar-label { color: #efe9dc; }
html[data-theme="light"] .cta-bar .btn-line { border-color: rgba(239, 233, 220, 0.5); color: #efe9dc; }
html[data-theme="light"] .quote-band p { color: #1a231c; }
html[data-theme="light"] .unit-table thead th { background: #141b15; color: #cfae72; }
html[data-theme="light"] .why-card, html[data-theme="light"] .fact, html[data-theme="light"] .hl {
  background: #ffffff; border-color: rgba(20, 27, 21, 0.16);
}
html[data-theme="light"] .hl .num, html[data-theme="light"] .why-num { color: rgba(169, 133, 63, 0.75); }
html[data-theme="light"] .eyebrow { background: rgba(20, 27, 21, 0.05); border-color: rgba(20, 27, 21, 0.22); color: #7a5f2a; }
html[data-theme="light"] .map-chip.active { background: #141b15; border-color: #141b15; color: #f5f4ec; }
html[data-theme="light"] .map-chip.active span { background: rgba(245, 244, 236, 0.2); color: #f5f4ec; }
html[data-theme="light"] .btn-cta { background: #141b15; color: #f5f4ec; }
html[data-theme="light"] .btn-cta:hover { box-shadow: 0 10px 28px rgba(20, 27, 21, 0.3); }
html[data-theme="light"] .cell.cur { background: #141b15; border-color: #141b15; color: #cfae72; }
html[data-theme="light"] body::before { opacity: 0.025; }
html[data-theme="light"] .site-header.scrolled { background: rgba(255, 255, 255, 0.93); }
/* Hero bleibt dunkel über dem Video, läuft unten in den hellen Grund aus */
html[data-theme="light"] .hero::after {
  background: linear-gradient(to top,
    rgba(255, 255, 255, 0.98) 2%,
    rgba(20, 27, 21, 0.62) 16%,
    rgba(20, 27, 21, 0.48) 55%,
    rgba(20, 27, 21, 0.58) 100%);
}
html[data-theme="light"] .hero .sub,
html[data-theme="light"] .hero .kicker { text-shadow: 0 2px 18px rgba(15, 20, 16, 0.85); }
html[data-theme="light"] .hero-logo { filter: drop-shadow(0 4px 26px rgba(15, 20, 16, 0.65)); }
html[data-theme="light"] .hero .btn-line { background: rgba(15, 20, 16, 0.35); backdrop-filter: blur(4px); }
/* Hero-Logo & Header über dem Hero bleiben hell (Creme) – erst beim Scrollen Grün auf Weiß */
html[data-theme="light"] .hero-logo.logo-on-light { display: none !important; }
html[data-theme="light"] .hero-logo.logo-on-dark { display: block !important; }
html[data-theme="light"] .site-header:not(.scrolled) .main-nav a { color: #efe9dc; }
html[data-theme="light"] .site-header:not(.scrolled) .main-nav a:hover { color: #cfae72; }
html[data-theme="light"] .site-header:not(.scrolled) .brand .logo-on-light { display: none !important; }
html[data-theme="light"] .site-header:not(.scrolled) .brand .logo-on-dark { display: block !important; }
html[data-theme="light"] .site-header:not(.scrolled) .theme-toggle { color: #efe9dc; border-color: rgba(239, 233, 220, 0.4); }
html[data-theme="light"] .site-header:not(.scrolled) .nav-toggle { color: #efe9dc; }
html[data-theme="light"] .site-header:not(.scrolled) .btn-cta { background: #cfae72; color: #1c1608; }
html[data-theme="light"] .hero h1 { color: #efe9dc; }
html[data-theme="light"] .hero h1 .l2 { color: #cfae72; }
html[data-theme="light"] .hero .kicker { color: #cfae72; }
html[data-theme="light"] .hero .sub { color: rgba(239, 233, 220, 0.92); }
html[data-theme="light"] .hero .btn-line { border-color: rgba(239, 233, 220, 0.55); color: #efe9dc; }
html[data-theme="light"] .hero .btn-sand { background: #cfae72; }
html[data-theme="light"] .ghost { -webkit-text-stroke-color: rgba(32, 41, 31, 0.09); }
html[data-theme="light"] .cta-bar { background: rgba(246, 243, 234, 0.95); border-top-color: rgba(169, 133, 63, 0.45); }
html[data-theme="light"] .map-block .leaflet-tile { filter: none; }
html[data-theme="light"] .map-block .leaflet-container { background: #e8e8e5; }
html[data-theme="light"] .map-block .leaflet-control-attribution { background: rgba(255, 255, 255, 0.85); color: #555; }
html[data-theme="light"] .map-block .leaflet-control-zoom a { background: #fff; color: #333; }
html[data-theme="light"] .jh-pin { border-color: #fff; background: #a9853f; color: #fff; }
html[data-theme="light"] .jh-dot { border-color: #fff; }
html[data-theme="light"] .radius-label { background: rgba(255, 255, 255, 0.9); color: #7a5f2a; border-color: rgba(169, 133, 63, 0.5); }
html[data-theme="light"] .walk-label { background: rgba(169, 133, 63, 0.95); color: #fff; }
html[data-theme="light"] .hl:hover { box-shadow: 0 24px 48px rgba(32, 41, 31, 0.14); }
html[data-theme="light"] .fact:hover, html[data-theme="light"] .why-card:hover { box-shadow: 0 20px 44px rgba(32, 41, 31, 0.12); }
html[data-theme="light"] .cell.cur { box-shadow: 0 10px 24px rgba(169, 133, 63, 0.35); }
html[data-theme="light"] .film-ph strong, html[data-theme="light"] .map-addr { color: var(--ink); }

/* ---------- Logo (PNG, hell/dunkel je Theme) ---------- */
.brand .logo { height: 52px; width: auto; display: block; }
.logo-on-light { display: none !important; }
html[data-theme="light"] .logo-on-dark { display: none !important; }
html[data-theme="light"] .logo-on-light { display: block !important; }
.flogo { height: 150px; width: auto; margin-bottom: 18px; }
.klogo { height: 110px; width: auto; margin: 0 auto 26px; display: block; }
@media (max-width: 640px) { .brand .logo { height: 42px; } .flogo { height: 110px; } }

/* ---------- Logo im Hero ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-logo { height: clamp(230px, 34vw, 400px); width: auto; display: block; margin: 6px 0 0 -8px; }
@media (prefers-reduced-motion: no-preference) { .hero-logo { animation: fadeUp 0.9s 0.35s both; } }

/* ---------- Nummerierte Marker + Karten-Legende ---------- */
.jh-num {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  color: #fff; font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.map-legend {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px 34px; margin-top: 36px;
}
.leg-group h4 {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.leg-bar { display: inline-block; flex: 1; max-width: 90px; height: 3px; border-radius: 2px; order: 2; }
.leg-group ul { list-style: none; padding: 0; }
.leg-group li {
  display: grid; grid-template-columns: 26px 1fr; gap: 4px 12px; align-items: baseline;
  padding: 7px 0; cursor: pointer; border-radius: 8px;
}
.leg-group li:hover .leg-name { color: var(--sand); }
.leg-n {
  grid-row: span 2; align-self: start;
  width: 24px; height: 24px; border-radius: 50%;
  color: #fff; font-size: 0.68rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.leg-name { color: var(--ink); font-size: 0.95rem; font-weight: 600; transition: color 0.2s ease; }
.leg-d { grid-column: 2; color: var(--muted); font-size: 0.8rem; }

/* ---------- Interaktiver Etagen-Grundriss ---------- */
.plan-view { position: relative; margin-top: 22px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.plan-view img { width: 100%; display: block; }
.plan-spot {
  position: absolute; border-radius: 6px;
  border: 2px solid rgba(207, 174, 114, 0.0);
  background: rgba(20, 27, 21, 0.0);
  transition: background 0.2s ease, border-color 0.2s ease;
}
a.plan-spot:hover { background: rgba(20, 27, 21, 0.14); border-color: rgba(20, 27, 21, 0.5); }
.plan-spot span {
  position: absolute; top: 6px; left: 6px;
  min-width: 26px; height: 26px; padding: 0 4px; border-radius: 999px;
  background: rgba(20, 27, 21, 0.75); color: #efe9dc;
  font-size: 0.72rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.plan-spot.cur { background: rgba(207, 174, 114, 0.32); border-color: #a9853f; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35); }
.plan-spot.cur span { background: #a9853f; color: #fff; }
.plan-cap { margin-top: 12px; font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ---------- Wohnungsfinder ---------- */
.ff-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.ff-fl {
  padding: 10px 20px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  font-family: var(--font); font-size: 0.82rem; font-weight: 600; transition: all 0.2s ease;
}
.ff-fl:hover { border-color: rgba(207, 174, 114, 0.5); color: var(--ink); }
.ff-fl.active { background: var(--sand); border-color: var(--sand); color: #1c1608; }
.ff-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
.ff-stage { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.ff-stage > img { width: 100%; display: block; }
.ff-view {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(15, 20, 16, 0.8); color: #a8ac9e;
  font-size: 0.68rem; letter-spacing: 0.08em; padding: 6px 12px; border-radius: 999px;
}
.ff-spot {
  position: absolute; border-radius: 8px;
  border: 2px solid rgba(207, 174, 114, 0);
  background: rgba(207, 174, 114, 0); transition: all 0.2s ease;
}
.ff-spot span {
  position: absolute; top: 6px; left: 6px; min-width: 26px; height: 26px; padding: 0 5px;
  border-radius: 999px; background: rgba(15, 20, 16, 0.72); color: #efe9dc;
  font-size: 0.7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.ff-spot.hot, .ff-spot:hover {
  background: rgba(207, 174, 114, 0.34); border-color: #cfae72;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}
.ff-spot.hot span, .ff-spot:hover span { background: #cfae72; color: #1c1608; }
.ff-list { display: flex; flex-direction: column; gap: 8px; max-height: 640px; overflow-y: auto; padding-right: 4px; }
.ff-row {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center;
  padding: 13px 16px; border-radius: 12px; text-decoration: none;
  background: linear-gradient(170deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); transition: all 0.2s ease;
}
.ff-row:hover, .ff-row.hot { border-color: #cfae72; transform: translateX(-3px); text-decoration: none; }
.ff-nr {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(207, 174, 114, 0.5); color: var(--sand);
  font-weight: 700; font-size: 0.82rem; display: inline-flex; align-items: center; justify-content: center;
}
.ff-row.hot .ff-nr, .ff-row:hover .ff-nr { background: var(--sand); color: #1c1608; border-color: var(--sand); }
.ff-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ff-main strong { color: var(--ink); font-size: 0.92rem; }
.ff-main em { color: var(--muted); font-style: normal; font-size: 0.78rem; }
.ff-right { text-align: right; display: flex; flex-direction: column; gap: 3px; }
.ff-right strong { color: var(--sand); font-family: var(--serif); font-size: 1.05rem; }
.ff-right em { font-style: normal; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; }
@media (max-width: 960px) {
  .ff-grid { grid-template-columns: 1fr; }
  .ff-list { max-height: none; }
}

/* ---------- Scrollspy: aktiver Menüpunkt ---------- */
.main-nav a { position: relative; }
.main-nav a.active { color: var(--sand) !important; }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px; background: var(--sand);
}
.main-nav a.lang.active::after { display: none; }
/* Footer bleibt dunkelgrün – dort im hellen Theme das Creme-Logo zeigen */
html[data-theme="light"] .site-footer .logo-on-dark { display: block !important; }
html[data-theme="light"] .site-footer .logo-on-light { display: none !important; }

/* ---------- Kennzahlen-Kacheln: Feinschliff ---------- */
.fact { position: relative; overflow: hidden; padding: 40px 24px 42px; }
.fact::before {
  content: ""; position: absolute; inset: 9px;
  border: 1px solid rgba(207, 174, 114, 0.18); border-radius: 12px;
  pointer-events: none; transition: border-color 0.3s ease;
}
.fact::after {
  content: ""; position: absolute; top: -45%; left: 50%; transform: translateX(-50%);
  width: 130%; height: 90%;
  background: radial-gradient(ellipse, rgba(207, 174, 114, 0.13), transparent 65%);
  pointer-events: none;
}
.fact:hover::before { border-color: rgba(207, 174, 114, 0.55); }
.fact .l { margin-bottom: 0; }
.fact .l::after {
  content: ""; display: block; width: 28px; height: 2px; border-radius: 2px;
  background: var(--sand); opacity: 0.75; margin: 14px auto 18px;
}
.fact .n { position: relative; z-index: 1; text-shadow: 0 12px 40px rgba(207, 174, 114, 0.25); }
html[data-theme="light"] .fact::after { background: radial-gradient(ellipse, rgba(169, 133, 63, 0.1), transparent 65%); }
html[data-theme="light"] .fact .n { text-shadow: none; }

/* Film-Placeholder als Button */
button.film-ph { width: 100%; border: 0; background: transparent; cursor: pointer; font-family: var(--font); color: var(--ink); }
button.film-ph:hover .film-play { border-color: var(--sand); background: rgba(207, 174, 114, 0.12); }
.main-nav a { white-space: nowrap; }
/* Ohne Brand links: Navigation beginnt am linken Rand */
.header-inner { justify-content: flex-start; }
.header-inner .main-nav { margin-right: auto; }
/* Sticky-CTA-Leiste verdeckt nicht mehr die Footer-Links */
body:has(.cta-bar) .site-footer { padding-bottom: 130px; }

/* ---------- Wohnungslisten-Filter ---------- */
.w-filter {
  display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
  margin: 22px 0 26px; padding: 20px 24px;
  background: linear-gradient(170deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 16px;
}
.wf-group { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wf-label { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.wf-label strong { color: var(--sand); font-size: 0.85rem; }
.wf-chips { display: flex; gap: 8px; }
.wf-chip {
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  font-family: var(--font); font-size: 0.8rem; font-weight: 600; transition: all 0.2s ease;
}
.wf-chip:hover { border-color: rgba(207, 174, 114, 0.5); color: var(--ink); }
.wf-chip.active { background: var(--sand); border-color: var(--sand); color: #1c1608; }
.wf-rangegroup input[type="range"] {
  width: 200px; accent-color: #cfae72; cursor: pointer;
}
.wf-count { margin-left: auto; font-family: var(--serif); font-style: italic; color: var(--sand); font-size: 0.95rem; white-space: nowrap; }
@media (max-width: 700px) {
  .w-filter { gap: 16px; }
  .wf-count { margin-left: 0; }
}

/* ---------- Mobile Feinschliff (gesamte Seite) ---------- */
.btn-call { display: none; }
@media (max-width: 760px) {
  .container { padding: 0 22px; }
  .hero-content { padding-top: 104px; padding-bottom: 84px; }
  .hero-logo { height: clamp(150px, 46vw, 240px); margin-left: -4px; }
  .hero .sub { font-size: 1.02rem; margin: 24px 0 30px; }
  .hero .btn-row { width: 100%; }
  .btn-row .btn { flex: 1 1 auto; text-align: center; }
  .btn { padding: 15px 22px; }
  .eyebrow { font-size: 0.62rem; letter-spacing: 0.26em; padding: 8px 14px 7px 16px; }
  .marquee-track span { font-size: 0.88rem; }
  .ghost { display: none; }
  .facts-grid { gap: 14px; }
  .fact { padding: 30px 18px 32px; }
  .hgal figure { flex: 0 0 86vw; }
  .dist-item { padding: 20px 0; }
  .cta-strip { padding: 52px 0; }
  .map-block { min-height: 380px; }
  .map-chips { gap: 8px; }
  .map-chip { padding: 9px 14px; font-size: 0.74rem; }
  .map-legend { gap: 22px; }
  .why-card { padding: 28px 22px; }
  .quote-band p { font-size: 1.32rem; }
  .w-filter { padding: 16px 18px; gap: 14px; }
  .wf-group { width: 100%; }
  .wf-rangegroup input[type="range"] { width: 100%; flex: 1; }
  .wf-count { margin-left: 0; }
  .unit-table th, .unit-table td { font-size: 0.82rem; padding: 12px 12px; }
  .ff-view { font-size: 0.6rem; left: 8px; bottom: 8px; }
  .ff-spot span { min-width: 22px; height: 22px; font-size: 0.62rem; top: 4px; left: 4px; }
  .contact-form { text-align: left; }
  .form-status { font-size: 0.86rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-bottom a { margin-left: 0; margin-right: 18px; }
  .flogo { height: 96px; }
  .klogo { height: 84px; }
  /* Wohnungsseiten */
  .floor-l { width: 46px; font-size: 0.58rem; }
  .cells { gap: 5px; }
  .cell { height: 40px; font-size: 0.66rem; border-radius: 8px; }
  .plan-spot span { min-width: 22px; height: 22px; font-size: 0.62rem; top: 4px; left: 4px; }
  .u-facts { padding: 24px 18px; }
  .uf-row { font-size: 0.86rem; }
  .res-card.res-eff strong { font-size: clamp(2.3rem, 13vw, 3.4rem); }
  .calc-table th, .calc-table td { font-size: 0.8rem; }
  .rw-step { padding: 28px 0 32px; }
  .afa-chart { height: 150px; gap: 7px; }
  .afa-bar strong { font-size: 0.6rem; }
  .eq-row { font-size: 0.84rem; padding: 12px 14px; gap: 10px; }
  .split-bar span { font-size: 0.58rem; }
}
/* Mehr/Weniger-Button in der Finder-Liste */
.ff-list .list-toggle { align-self: center; margin-top: 10px; background: transparent; border: 1px solid var(--line); color: var(--ink); font-family: var(--font); font-size: 0.82rem; font-weight: 600; padding: 12px 26px; border-radius: 999px; cursor: pointer; transition: all 0.2s ease; }
.ff-list .list-toggle:hover { border-color: var(--sand); color: var(--sand); }

/* ---------- Mobile: Highlights als Swipe-Karussell ---------- */
@media (max-width: 760px) {
  .hl-grid {
    display: flex; gap: 14px; margin-top: 40px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px 22px 18px; margin-left: -22px; margin-right: -22px;
    scrollbar-width: thin; scrollbar-color: var(--sand) transparent;
  }
  .hl-grid::-webkit-scrollbar { height: 4px; }
  .hl-grid::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 2px; }
  .hl-grid::-webkit-scrollbar-track { background: rgba(207, 174, 114, 0.12); }
  .hl { flex: 0 0 72vw; scroll-snap-align: center; padding: 28px 24px; }
  .hl .num { margin-bottom: 10px; }
  /* Warum-kaufen-Karten ebenfalls wischen statt stapeln */
  .why-grid {
    display: flex; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px 22px 18px; margin-left: -22px; margin-right: -22px;
    scrollbar-width: thin; scrollbar-color: var(--sand) transparent;
  }
  .why-grid::-webkit-scrollbar { height: 4px; }
  .why-grid::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 2px; }
  .why-card { flex: 0 0 80vw; scroll-snap-align: center; }
}
/* Mobile: kompaktere Sektionsabstände */
@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .facts { padding: 56px 0; }
  .hgal-wrap { margin-top: 8px; }
  .gal-note { margin-top: 10px; }
}

/* Mobile: Karten-Legende als Akkordeon */
@media (max-width: 960px) {
  .map-legend { display: block; margin-top: 26px; }
  .leg-group h4 {
    cursor: pointer; margin-bottom: 0; padding: 15px 0;
    border-bottom: 1px solid var(--line); user-select: none;
  }
  .leg-group h4::after {
    content: "▾"; color: var(--sand); font-size: 0.9rem;
    margin-left: 4px; transition: transform 0.25s ease; display: inline-block;
  }
  .leg-group.collapsed h4::after { transform: rotate(-90deg); }
  .leg-group ul { padding: 10px 0 6px; }
  .leg-group.collapsed ul { display: none; }
}

/* ---------- Mobile: Wohnungsliste als Karten statt Quer-Scroll ---------- */
@media (max-width: 760px) {
  #wohnungen .table-scroll { overflow: visible; border: 0; margin-top: 40px; }
  #wohnungen .unit-table, #wohnungen .unit-table tbody { display: block; width: 100%; }
  #wohnungen .unit-table thead { display: none; }
  #wohnungen .unit-table tr.floor-head { display: block; padding: 4px 0 12px; }
  #wohnungen .unit-table tr.floor-head td { display: block; background: transparent; border: 0; padding: 10px 2px; }
  #wohnungen .unit-table tr.u-row {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    grid-template-areas:
      "nr m2 price"
      "nr rooms rent"
      "nr od st";
    gap: 2px 14px; align-items: center;
    background: linear-gradient(170deg, var(--panel), var(--bg-2));
    border: 1px solid var(--line); border-radius: 14px;
    padding: 16px 16px 14px; margin-bottom: 10px;
  }
  #wohnungen .unit-table tr.u-row td { display: block; border: 0; padding: 0; background: transparent !important; }
  #wohnungen .unit-table tr.u-row td:nth-child(1) { grid-area: nr; }
  #wohnungen .unit-table tr.u-row td:nth-child(1) a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid rgba(207, 174, 114, 0.5); font-size: 0.82rem;
  }
  #wohnungen .unit-table tr.u-row td:nth-child(2) { grid-area: m2; font-weight: 700; color: var(--ink); font-size: 0.98rem; }
  #wohnungen .unit-table tr.u-row td:nth-child(3) { grid-area: rooms; color: var(--muted); font-size: 0.8rem; }
  #wohnungen .unit-table tr.u-row td:nth-child(3)::after { content: " Zimmer"; }
  html:lang(en) #wohnungen .unit-table tr.u-row td:nth-child(3)::after { content: " rooms"; }
  #wohnungen .unit-table tr.u-row td:nth-child(4) { grid-area: od; color: var(--muted); font-size: 0.8rem; }
  #wohnungen .unit-table tr.u-row td:nth-child(5) { grid-area: price; text-align: right; }
  #wohnungen .unit-table tr.u-row td:nth-child(5) strong { font-family: var(--serif); color: var(--sand); font-size: 1.15rem; white-space: nowrap; }
  #wohnungen .unit-table tr.u-row td:nth-child(6) { grid-area: rent; text-align: right; color: var(--muted); font-size: 0.76rem; white-space: nowrap; }
  #wohnungen .unit-table tr.u-row td:nth-child(6)::before { content: "Miete ca. "; }
  html:lang(en) #wohnungen .unit-table tr.u-row td:nth-child(6)::before { content: "rent approx. "; }
  #wohnungen .unit-table tr.u-row td:nth-child(7) { grid-area: st; text-align: right; }
  #wohnungen .unit-table .u-arrow { display: none; }
  #wohnungen .notes { margin-top: 18px; }
}

/* ---------- Mobile Hero: statisches Bild + entspannter Text ---------- */
.hero-bg-still { display: none; }
@media (max-width: 760px) {
  .hero-bg-video { display: none; }
  .hero-bg-still { display: block; }
  .hero .kicker { letter-spacing: 0.28em; font-size: 0.72rem; }
  .hero .sub { max-width: 100%; }
  .hero .btn-row { gap: 12px; }
  .hero .btn-row .btn { flex: 1 1 100%; min-width: 0; }
  .btn { letter-spacing: 0.12em; white-space: nowrap; }
  .hero-content, .hero-content * { min-width: 0; }
}

/* Legende: Zähler-Chip + deutlicheres Dropdown mobil */
.leg-cnt {
  order: 3; margin-left: 12px; min-width: 24px; height: 24px; padding: 0 7px;
  border-radius: 999px; background: rgba(207, 174, 114, 0.14); color: var(--sand);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
@media (max-width: 960px) {
  .leg-group { margin-bottom: 10px; }
  .leg-group h4 {
    background: linear-gradient(170deg, var(--panel), var(--bg-2));
    border: 1px solid var(--line); border-radius: 14px;
    padding: 16px 18px; margin: 0;
    transition: border-color 0.2s ease;
  }
  .leg-group h4:active { border-color: var(--sand); }
  .leg-bar { max-width: 34px; }
  .leg-cnt { margin-left: auto; }
  .leg-group h4::after {
    content: "▾"; font-size: 1.05rem; margin-left: 12px; color: var(--sand);
  }
  .leg-group ul { padding: 12px 8px 8px; }
}

/* Mobile: Wohnungsliste – Breiten-Fix + Etagen als Dropdown-Karten */
@media (max-width: 760px) {
  #wohnungen .unit-table { min-width: 0 !important; width: 100%; }
  #wohnungen .unit-table tr.u-row { width: 100%; box-sizing: border-box; }
  #wohnungen tr.fh-toggle { cursor: pointer; padding: 0 0 12px; }
  #wohnungen tr.fh-toggle td {
    display: flex !important; align-items: center; gap: 10px;
    background: linear-gradient(170deg, var(--panel), var(--bg-2)) !important;
    border: 1px solid var(--line) !important; border-radius: 14px;
    padding: 16px 18px !important;
  }
  #wohnungen tr.fh-toggle td span { flex: 1; font-size: 0.95rem; }
  #wohnungen tr.fh-toggle .fh-cnt {
    flex: none; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
    background: rgba(207, 174, 114, 0.14); color: var(--sand);
    font-family: var(--font); font-style: normal; font-size: 0.68rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
  }
  #wohnungen tr.fh-toggle td::after {
    content: "▾"; color: var(--sand); font-size: 1.05rem;
    transition: transform 0.25s ease;
  }
  #wohnungen tr.fh-toggle.collapsed td::after { transform: rotate(-90deg); }
}
