/* ==========================================================================
   Grindelhof – Exposé-Website
   Layout: eine Erzählung in Kapiteln auf tiefem Immergrün, gerahmt von feinen
   Goldlinien (wie die Coming-Soon-Seite): Fassade als Bühne, Eckdaten-Band,
   Beschreibung, Vorher/Nachher, Ausstattung, Galerie, Grundrisse, Lage, Preis,
   Kontakt. Bewusst ein einziges, dunkles Erscheinungsbild.
   ========================================================================== */

:root {
  --ground: #0e1714;
  --ground-2: #15211d;
  --ground-3: #1b2a25;
  --line: rgba(201, 169, 97, 0.28);
  --gold: #c9a961;
  --gold-light: #ead39b;
  --gold-deep: #9a7a3c;
  --gold-soft: #b9a57a;
  --ivory: #eee6d3;
  --ivory-dim: #c9c1ad;
  --paper: #f4efe3;
  --ink: #1d2622;
  --font-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-body: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Pinyon Script", "Edwardian Script ITC", "Snell Roundhand", cursive;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-light); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--gold-light); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--ground); }

/* ---------- Atmosphäre: Glows, historische Karte, Körnung ---------- */
.ground {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55% 40% at 10% 8%, rgba(242, 214, 205, 0.07), transparent 70%),
    radial-gradient(50% 40% at 92% 35%, rgba(205, 220, 236, 0.05), transparent 70%),
    radial-gradient(70% 45% at 50% 100%, rgba(196, 220, 200, 0.06), transparent 70%),
    radial-gradient(120% 90% at 50% 40%, var(--ground-2), var(--ground) 70%);
}
.ground .map {
  position: absolute; inset: -2%;
  background: url("assets/rotherbaum-karte.jpg") center / cover no-repeat;
  filter: grayscale(1) sepia(0.85) saturate(1.6) brightness(0.9) contrast(1.15);
  mix-blend-mode: luminosity;
  opacity: 0.09;
}
.ground::after {
  content: ""; position: absolute; inset: 0; opacity: 0.16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .site-footer { position: relative; z-index: 1; }

/* ---------- Typografie ---------- */
.eyebrow {
  margin: 0;
  font-family: var(--font-body); font-weight: 400;
  font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold-soft);
}
.script {
  margin: 0;
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 3.9rem); line-height: 1.25;
  color: var(--gold);
  padding: 0.05em 0.2em 0.15em 0;
  background: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold) 30%, var(--gold-light) 55%, var(--gold) 80%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--ivory); text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.08; letter-spacing: 0.005em; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.2; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.18rem); color: var(--ivory); }
.muted { color: var(--ivory-dim); }

.rule { display: flex; align-items: center; gap: 14px; width: min(220px, 60vw); }
.rule span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.rule span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.rule i { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--gold); display: block; flex: none; }

.wrap {
  width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(80px, 11vw, 150px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { justify-items: center; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px;
  font-family: var(--font-body); font-weight: 400; font-size: 0.78rem;
  letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--gold); cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn-gold { background: linear-gradient(100deg, var(--gold-deep), var(--gold) 45%, var(--gold-light)); color: var(--ground); border-color: var(--gold-light); }
.btn-gold:hover { background: var(--gold-light); }
.btn-line { background: rgba(14, 23, 20, 0.35); color: var(--gold-light); backdrop-filter: blur(6px); }
.btn-line:hover { background: var(--gold); color: var(--ground); }

/* ---------- Navigation ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ground);
}
.nav {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(14, 23, 20, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.nav-brand {
  font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; letter-spacing: 0.3em;
  text-decoration: none; color: var(--gold-light); white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.nav-links a {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  color: var(--ivory); opacity: 0.86; position: relative; padding-block: 6px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { opacity: 1; color: var(--gold-light); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-links .nav-cta { border: 1px solid var(--gold); padding: 9px 18px; color: var(--gold-light); opacity: 1; }
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--gold); color: var(--ground); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--gold-light); transition: transform 0.35s var(--ease), opacity 0.2s; }
.nav-toggle span:nth-child(1) { top: 16px; } .nav-toggle span:nth-child(2) { top: 22px; } .nav-toggle span:nth-child(3) { top: 28px; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile { display: none; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile {
    display: grid; gap: 4px; overflow: hidden; max-height: 0; transition: max-height 0.5s var(--ease);
    background: rgba(14, 23, 20, 0.97); border-bottom: 1px solid var(--line);
  }
  .nav.is-open { background: rgba(14, 23, 20, 0.97); }
  .nav.is-open .nav-mobile { max-height: 80vh; }
  .nav-mobile a {
    display: block; padding: 14px 0; text-decoration: none; color: var(--ivory);
    font-family: var(--font-display); font-size: 1.5rem; border-top: 1px solid rgba(201, 169, 97, 0.12);
  }
  .nav-mobile .wrap { padding-block: 8px 24px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 980px); min-height: max(640px, min(100svh, 980px));
  display: grid; align-items: end; overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%;
  transform: scale(1.12); animation: heroZoom 22s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1.0); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 23, 20, 0.72) 0%, rgba(14, 23, 20, 0.15) 26%, rgba(14, 23, 20, 0.2) 48%, rgba(14, 23, 20, 0.9) 82%, var(--ground) 100%),
    radial-gradient(80% 55% at 50% 66%, rgba(14, 23, 20, 0.62), transparent 72%);
}
.hero-frame {
  position: absolute; z-index: 0; pointer-events: none;
  inset: calc(92px + env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) 18px max(18px, env(safe-area-inset-left, 0px));
  border: 1px solid rgba(201, 169, 97, 0.5);
}
.hero-frame::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(154, 122, 60, 0.4); }
.hero-content {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 18px;
  padding-block: 140px clamp(64px, 9vw, 110px);
}
.wordmark {
  margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 7.6vw, 8rem); letter-spacing: 0.2em; max-width: 100%; line-height: 0.95; padding-left: 0.2em;
  background: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold) 28%, var(--gold-light) 50%, var(--gold) 72%, var(--gold-deep) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.45));
}
.hero .script { font-size: clamp(2.2rem, 5.6vw, 4.2rem); margin-top: -0.2em; }
  .hero .eyebrow { color: var(--gold-light); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8); }
.hero-sub { max-width: 40rem; font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--ivory); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 10px; }
.hero-cue {
  position: absolute; left: 50%; bottom: 30px; z-index: 2; width: 1px; height: 52px; transform: translateX(-50%);
  background: linear-gradient(var(--gold), transparent); overflow: hidden;
}
.hero-cue::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold-light); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { to { top: 110%; } }
.hero-load > * { animation: rise 1.2s var(--ease) both; }
.hero-load > *:nth-child(2) { animation-delay: 0.15s; } .hero-load > *:nth-child(3) { animation-delay: 0.35s; }
.hero-load > *:nth-child(4) { animation-delay: 0.5s; } .hero-load > *:nth-child(5) { animation-delay: 0.65s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Eckdaten ---------- */
.facts { border-block: 1px solid var(--line); background: rgba(21, 33, 29, 0.72); backdrop-filter: blur(4px); }
.facts-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fact { display: grid; gap: 6px; align-content: center; justify-items: center; text-align: center; padding: clamp(26px, 3.4vw, 40px) 12px; position: relative; }
.fact + .fact::before { content: ""; position: absolute; left: 0; top: 26%; bottom: 26%; width: 1px; background: var(--line); }
.fact-value {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.05;
  color: var(--gold-light); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap;
}
.fact-value small { font-size: 0.55em; margin-left: 0.15em; color: var(--gold); }
.fact-label { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-soft); }
@media (max-width: 860px) {
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(5) { grid-column: 1 / -1; }
  .fact + .fact::before { display: none; }
  .fact { border-bottom: 1px solid rgba(201, 169, 97, 0.14); }
  .fact:nth-child(odd):not(:last-child) { border-right: 1px solid rgba(201, 169, 97, 0.14); }
}

/* ---------- Beschreibung ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.intro-text { display: grid; gap: 22px; align-content: start; max-width: 36rem; }
.intro-text .dropcap::first-letter {
  float: left; font-family: var(--font-display); font-size: 4.6em; line-height: 0.78; padding: 0.06em 0.12em 0 0; color: var(--gold);
}
.frame {
  position: relative; padding: 10px; border: 1px solid var(--gold);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.9);
}
.frame::after { content: ""; position: absolute; inset: 4px; border: 1px solid var(--gold-deep); opacity: 0.7; pointer-events: none; }
.frame img { width: 100%; aspect-ratio: 1407 / 1118; object-fit: cover; }
.intro-media { position: relative; padding-bottom: 14%; }
.intro-media .frame-sub {
  position: absolute; width: 46%; right: -6%; bottom: 0; background: var(--ground);
}
.intro-media .frame-sub img { aspect-ratio: 4 / 3.4; }
.caption-tag {
  position: absolute; left: 22px; bottom: 22px; z-index: 2;
  font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-light); background: rgba(14, 23, 20, 0.72); padding: 7px 12px; backdrop-filter: blur(4px);
}
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-media .frame-sub { right: 0; }
}

/* ---------- Nutzungsideen ---------- */
.uses { text-align: center; }
.uses-line {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.15; margin: 0;
  color: var(--ivory); text-wrap: balance;
}
.rotator { display: inline-grid; vertical-align: bottom; text-align: center; justify-items: center; width: auto !important; }
.rotator > span { white-space: nowrap; }
.rotator > span b { font-weight: 400; font-style: normal; color: var(--ivory); }
.rotator > span {
  grid-area: 1 / 1; font-style: italic; color: var(--gold-light);
  opacity: 0; transform: translateY(0.4em); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.rotator > span.is-on { opacity: 1; transform: none; }
.uses-list { list-style: none; margin: clamp(36px, 5vw, 56px) auto 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 1000px; border-block: 1px solid var(--line); }
.uses-list li {
  display: grid; justify-items: center; gap: 12px; padding: 26px 8px; position: relative; cursor: default;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory-dim);
  transition: color 0.4s var(--ease), background 0.4s var(--ease);
}
.uses-list li + li::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.uses-list li.is-on, .uses-list li:hover { color: var(--gold-light); background: rgba(201, 169, 97, 0.06); }
.uses-list svg { width: 30px; height: 30px; stroke: var(--gold); fill: none; stroke-width: 1.1; }
@media (max-width: 760px) {
  .uses-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .uses-list li:nth-child(4)::before { display: none; }
  .uses-list li:nth-child(n+4) { border-top: 1px solid rgba(201, 169, 97, 0.14); }
}

/* ---------- Vorher / Nachher ---------- */
.compare-wrap { display: grid; gap: 22px; }
.compare {
  position: relative; aspect-ratio: 1407 / 1118; max-width: 100%; overflow: hidden; user-select: none; touch-action: pan-y;
  border: 1px solid var(--gold); outline: 1px solid rgba(154, 122, 60, 0.5); outline-offset: 6px;
  --pos: 50%;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--gold-light);
  box-shadow: 0 0 18px rgba(234, 211, 155, 0.6); pointer-events: none;
}
.compare-knob {
  position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid var(--gold-light); background: rgba(14, 23, 20, 0.78); backdrop-filter: blur(6px);
  display: grid; place-items: center;
}
.compare-knob svg { transform: rotate(-45deg); width: 26px; height: 26px; stroke: var(--gold-light); fill: none; stroke-width: 1.4; }
.compare-label {
  position: absolute; top: 18px; z-index: 2; font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase;
  background: rgba(14, 23, 20, 0.78); color: var(--gold-light); padding: 8px 12px; pointer-events: none;
}
.compare-label.l { left: 18px; } .compare-label.r { right: 18px; }
.compare input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
}
.compare:has(input:focus-visible) .compare-knob { outline: 1px solid var(--gold-light); outline-offset: 6px; }
.compare-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.86rem; color: var(--ivory-dim); }

/* ---------- Ausstattung ---------- */
.spec-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); }
.spec-text { display: grid; gap: 22px; align-content: start; max-width: 36rem; }
.spec-lists { display: grid; gap: 34px; align-content: start; }
.spec-block h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.spec-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.spec-list li {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ivory);
}
.spec-list li::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg) translateY(-2px); justify-self: center; }
.spec-list.is-open li::before { border-style: dashed; border-color: var(--gold-soft); }
.spec-list li span { color: var(--ivory-dim); font-size: 0.92rem; }
@media (max-width: 900px) { .spec-grid { grid-template-columns: 1fr; } }

/* ---------- Galerie ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense;
  gap: clamp(10px, 1.4vw, 18px);
}
.g-item {
  position: relative; padding: 0; border: 0; background: var(--ground-2); cursor: zoom-in; overflow: hidden;
  grid-column: span 4; aspect-ratio: 1407 / 1118;
}
.g-item:nth-child(1) { grid-column: span 8; grid-row: span 2; aspect-ratio: auto; }
.g-item:nth-child(2), .g-item:nth-child(3) { grid-column: span 4; }
.g-item:nth-child(7), .g-item:nth-child(8) { grid-column: span 6; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.8s var(--ease); filter: saturate(0.92); }
.g-item::after {
  content: ""; position: absolute; inset: 8px; border: 1px solid rgba(234, 211, 155, 0); transition: border-color 0.5s var(--ease); pointer-events: none;
}
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.05); filter: saturate(1.04); }
.g-item:hover::after, .g-item:focus-visible::after { border-color: rgba(234, 211, 155, 0.75); }
.g-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; text-align: left;
  background: linear-gradient(transparent, rgba(14, 23, 20, 0.88));
  display: flex; align-items: baseline; gap: 12px;
}
.g-num { font-family: var(--font-display); font-size: 1.05rem; color: var(--gold); font-variant-numeric: lining-nums; }
.g-title { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory); }
.gallery-note { margin-top: 18px; font-size: 0.82rem; color: var(--ivory-dim); }
@media (max-width: 760px) {
  .g-item, .g-item:nth-child(n) { grid-column: span 6; grid-row: auto; aspect-ratio: 1407 / 1118; }
  .g-item:nth-child(1) { grid-column: 1 / -1; }
  .g-cap { padding: 26px 10px 8px; }
  .g-title { font-size: 0.58rem; letter-spacing: 0.14em; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(8, 13, 11, 0.95); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
  padding: calc(64px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-figure { margin: 0; display: grid; gap: 14px; justify-items: center; max-width: min(1400px, 100%); }
.lb-figure img { max-height: calc(100svh - 170px); width: auto; max-width: 100%; border: 1px solid var(--line); transition: opacity 0.25s; }
.lb-figure img.is-plan { background: var(--paper); }
.lb-caption { display: flex; gap: 14px; align-items: baseline; font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory); }
.lb-caption b { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; letter-spacing: 0.06em; color: var(--gold); }
.lb-btn {
  position: absolute; background: rgba(14, 23, 20, 0.6); border: 1px solid var(--line); color: var(--gold-light);
  width: 52px; height: 52px; display: grid; place-items: center; cursor: pointer; font-size: 1.7rem; line-height: 1;
  transition: background 0.3s, border-color 0.3s;
}
.lb-btn:hover { background: var(--gold); color: var(--ground); border-color: var(--gold); }
.lb-close { top: calc(12px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
.lb-prev { left: max(16px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(16px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .lb-prev, .lb-next { top: auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: none; } }

/* ---------- Grundrisse & Flächen ---------- */
.plans { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.plan-tabs { display: flex; gap: 0; border: 1px solid var(--line); width: max-content; max-width: 100%; margin-bottom: 18px; }
.plan-tab {
  background: none; border: 0; padding: 12px 22px; cursor: pointer;
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ivory-dim);
}
.plan-tab + .plan-tab { border-left: 1px solid var(--line); }
.plan-tab[aria-selected="true"] { background: var(--gold); color: var(--ground); }
.plan-sheet {
  position: relative; background: var(--paper); padding: clamp(14px, 3vw, 34px); border: 1px solid var(--gold);
  outline: 1px solid rgba(154, 122, 60, 0.5); outline-offset: 6px; cursor: zoom-in; display: block; width: 100%;
}
.plan-sheet img { width: 100%; max-height: 720px; object-fit: contain; mix-blend-mode: multiply; }
.plan-sheet .zoom-hint {
  position: absolute; right: 12px; bottom: 12px; font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); border: 1px solid rgba(29, 38, 34, 0.3); padding: 6px 10px; background: rgba(244, 239, 227, 0.9);
}
.area-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.area-table caption { text-align: left; margin-bottom: 14px; }
.area-table th, .area-table td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 300; vertical-align: middle; }
.area-table th[scope="rowgroup"] {
  padding-top: 26px; font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); font-weight: 400;
}
.area-table td.num { text-align: right; white-space: nowrap; width: 7.5em; font-family: var(--font-display); font-size: 1.2rem; color: var(--ivory); }
.area-table .bar { display: block; height: 2px; margin-top: 8px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-light)); width: var(--w); transform-origin: left; }
.area-table tr.is-sub td { color: var(--ivory-dim); }
.area-table tr.total td { border-bottom: 0; border-top: 1px solid var(--gold); padding-top: 18px; }
.area-table tr.total td:first-child { font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-soft); }
.area-table tr.total td.num { font-size: 1.9rem; color: var(--gold-light); }
.area-extra { margin-top: 26px; display: grid; gap: 10px; font-size: 0.92rem; color: var(--ivory-dim); }
.area-extra strong { color: var(--ivory); font-weight: 400; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Lage ---------- */
.lage-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.lage-text { display: grid; gap: 20px; max-width: 36rem; }
.lage-map { position: relative; border: 1px solid var(--line); background: rgba(21, 33, 29, 0.7); padding: 10px; }
.lage-map svg { display: block; width: 100%; height: auto; }
.lage-map figcaption { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ivory-dim); padding: 10px 6px 2px; }
.map-street { stroke: var(--gold-deep); stroke-width: 2; fill: none; stroke-linecap: round; opacity: 0.85; }
.map-street.minor { stroke-width: 1; opacity: 0.5; }
.map-hero { stroke: var(--gold-light); stroke-width: 4.5; fill: none; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(234, 211, 155, 0.6)); }
.map-water { fill: rgba(140, 170, 175, 0.12); stroke: rgba(185, 165, 122, 0.4); stroke-width: 1; }
.map-green { fill: rgba(150, 180, 140, 0.1); }
.map-label { paint-order: stroke; stroke: #15211d; stroke-width: 5px; stroke-linejoin: round; font-family: var(--font-body); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; fill: var(--gold-soft); }
.map-label.big { font-family: var(--font-display); font-size: 17px; letter-spacing: 0.08em; text-transform: none; fill: var(--gold-light); font-style: italic; }
.map-label.water { fill: rgba(205, 220, 236, 0.6); font-style: italic; font-family: var(--font-display); font-size: 18px; text-transform: none; letter-spacing: 0.1em; }
.map-u { fill: var(--ground); stroke: var(--gold-light); stroke-width: 1.4; }
.map-u-txt { font-family: var(--font-body); font-size: 12px; font-weight: 400; fill: var(--gold-light); }
.map-pin { fill: var(--gold-light); }
.map-pulse { fill: none; stroke: var(--gold-light); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: pulse 2.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(3.4); opacity: 0; } }
.chips { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.chips li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.chips b { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; color: var(--gold-light); }
.chips span { color: var(--ivory-dim); font-size: 0.95rem; }
.lage-more { display: grid; gap: 18px; margin-top: clamp(40px, 6vw, 70px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lage-more p { color: var(--ivory-dim); }
@media (max-width: 900px) {
  .lage-grid, .lage-more { grid-template-columns: 1fr; }
  .chips li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Preis & Energie ---------- */
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 34px); }
.card {
  position: relative; border: 1px solid var(--gold); padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(160deg, rgba(27, 42, 37, 0.9), rgba(14, 23, 20, 0.9));
}
.card::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(154, 122, 60, 0.45); pointer-events: none; }
.card .eyebrow { margin-bottom: 18px; }
.price {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(3rem, 7vw, 5.2rem); line-height: 1;
  background: linear-gradient(100deg, var(--gold-deep), var(--gold) 35%, var(--gold-light) 60%, var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-variant-numeric: lining-nums; padding-bottom: 0.08em;
}
.kv { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); }
.kv li { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.kv li span:first-child { color: var(--ivory-dim); }
.kv li span:last-child { text-align: right; color: var(--ivory); }
.energy-scale { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 3px; margin-top: 6px; }
.energy-scale span {
  height: 34px; display: grid; place-items: center; font-size: 0.72rem; font-weight: 400; color: rgba(14, 23, 20, 0.85);
  position: relative;
}
.energy-scale span:nth-child(1) { background: #3f8a52; } .energy-scale span:nth-child(2) { background: #5e9e4c; }
.energy-scale span:nth-child(3) { background: #87ae49; } .energy-scale span:nth-child(4) { background: #b2bd46; }
.energy-scale span:nth-child(5) { background: #d6c247; } .energy-scale span:nth-child(6) { background: #dba54a; }
.energy-scale span:nth-child(7) { background: #d5834a; } .energy-scale span:nth-child(8) { background: #c8604a; }
.energy-scale span:nth-child(9) { background: #b4434a; }
.energy-scale span.is-current { outline: 2px solid var(--gold-light); outline-offset: 3px; z-index: 1; color: #0e1714; font-weight: 500; }
.energy-scale span.is-current::after {
  content: "109,78"; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  font-size: 0.68rem; color: var(--gold-light); white-space: nowrap; letter-spacing: 0.04em;
}
.energy-scale + .kv { margin-top: 40px; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }

/* ---------- Zitat ---------- */
.quote { text-align: center; padding-block: 0 clamp(80px, 11vw, 140px); }
.quote blockquote {
  margin: 0 auto; max-width: 52rem; font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.55rem, 3.2vw, 2.4rem); line-height: 1.35; color: var(--ivory); text-wrap: balance;
}
.quote .rule { margin: 28px auto 0; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.contact-info { display: grid; gap: 22px; }
.agent { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; align-items: center; padding: 24px 0; border-block: 1px solid var(--line); }
.agent-mono {
  width: 76px; height: 76px; display: grid; place-items: center; border: 1px solid var(--gold); position: relative;
  font-family: var(--font-display); font-size: 1.7rem; color: var(--gold-light); letter-spacing: 0.04em;
}
.agent-mono::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(154, 122, 60, 0.5); }
.agent-name { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; color: var(--ivory); }
.agent-role { font-size: 0.9rem; color: var(--ivory-dim); }
.agent-lines { display: grid; gap: 6px; font-size: 0.98rem; }
.agent-lines a { color: var(--gold-light); text-decoration: none; border-bottom: 1px solid rgba(234, 211, 155, 0.3); }
.agent-lines a:hover { border-color: var(--gold-light); }
.agent-lines span { color: var(--ivory-dim); display: inline-block; min-width: 4.5em; }

.form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); background: rgba(21, 33, 29, 0.75); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-soft); padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(14, 23, 20, 0.6); border: 0; border-bottom: 1px solid rgba(201, 169, 97, 0.45);
  color: var(--ivory); font-family: var(--font-body); font-weight: 300; font-size: 1rem; padding: 12px 2px; border-radius: 0;
  transition: border-color 0.3s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; padding: 12px; border: 1px solid rgba(201, 169, 97, 0.3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-light); }
.field select option { background: var(--ground); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; cursor: pointer; }
.pills input { position: absolute; opacity: 0; inset: 0; }
.pills span {
  display: inline-block; padding: 9px 14px; border: 1px solid var(--line); font-size: 0.74rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ivory-dim); transition: all 0.25s;
}
.pills input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ground); }
.pills input:focus-visible + span { outline: 1px solid var(--gold-light); outline-offset: 3px; }
.consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 0.86rem; color: var(--ivory-dim); line-height: 1.55; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: 0.92rem; min-height: 1.4em; }
.form-status[data-state="success"] { color: var(--gold-light); }
.form-status[data-state="error"] { color: #e8a48c; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Hinweise & Footer ---------- */
.notes { padding-block: 0 clamp(60px, 8vw, 100px); }
.notes-box { border-top: 1px solid var(--line); padding-top: 28px; display: grid; gap: 10px; font-size: 0.82rem; color: var(--ivory-dim); max-width: 60rem; }
.site-footer { border-top: 1px solid var(--line); background: rgba(10, 17, 15, 0.9); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-block: 42px calc(42px + env(safe-area-inset-bottom, 0px)); }
.footer-brand { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.3em; color: var(--gold-light); }
.footer-brand small { display: block; font-family: var(--font-body); font-size: 0.66rem; letter-spacing: 0.22em; color: var(--gold-soft); text-transform: uppercase; margin-top: 4px; }
.footer-legal { display: flex; gap: 18px; justify-content: center; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; }
.footer-legal a { color: var(--ivory-dim); text-decoration: none; }
.footer-legal a:hover { color: var(--gold-light); }
.partner { justify-self: end; display: grid; justify-items: end; gap: 10px; text-decoration: none; }
.partner small { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-soft); }
.partner img { width: 170px; height: auto; }
.partner .q-fallback { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.12em; color: var(--gold-light); }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .partner { justify-self: center; justify-items: center; }
}

/* ---------- Rechtliche Unterseiten ---------- */
.legal { padding-block: calc(130px + env(safe-area-inset-top, 0px)) 100px; }
.legal-inner { max-width: 50rem; display: grid; gap: 16px; }
.legal h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--gold-light); margin: 0 0 12px; }
.legal h2 { font-size: 1.7rem; margin-top: 28px; color: var(--gold-light); }
.legal h3 { font-size: 1.25rem; margin-top: 14px; }
.legal p, .legal li { color: var(--ivory-dim); font-size: 0.98rem; }
.legal address { font-style: normal; color: var(--ivory); }

/* ---------- Scroll-Reveal (nur mit JS, Ruhezustand sichtbar) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-media img, .hero-media video { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-load > .wordmark { animation: rise 1.2s var(--ease) 0.15s both, sheen 9s ease-in-out 1.4s infinite alternate; }
  @keyframes sheen { from { background-position: 0% 0; } to { background-position: 100% 0; } }
}

@media (max-width: 560px) {
  .wordmark { letter-spacing: 0.12em; padding-left: 0.12em; font-size: 2.6rem; }
  .hero-content { padding-block: 130px 80px; gap: 14px; }
  .hero-frame { inset: calc(84px + env(safe-area-inset-top, 0px)) 10px 10px 10px; }
  .hero-actions .btn { width: 100%; }
  .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(14, 23, 20, 0.42); }
  .hero-cue { display: none; }
  .kv li { flex-direction: column; gap: 2px; }
  .kv li span:last-child { text-align: left; }
}

/* ---------- Hero: Fokus auf die Gewerbeeinheit im Erdgeschoss ---------- */
.hero-media img, .hero-media video { transform-origin: 50% 92%; }
@media (min-width: 900px) {
  .hero { align-items: start; }
  .hero-content { padding-block: calc(110px + env(safe-area-inset-top, 0px)) 0; }
  .hero-media img, .hero-media video { object-position: 50% 97%; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(14, 23, 20, 0.78) 0%, rgba(14, 23, 20, 0.55) 22%, rgba(14, 23, 20, 0.35) 52%, rgba(14, 23, 20, 0) 68%, rgba(14, 23, 20, 0) 90%, var(--ground) 100%),
      radial-gradient(60% 45% at 50% 34%, rgba(14, 23, 20, 0.55), transparent 75%);
  }
  .hero-cue { display: none; }
}
@media (min-width: 900px) {
  .hero-load > .wordmark { font-size: clamp(2rem, min(7.6vw, 13.5vh), 8rem); }
  .hero .script { font-size: clamp(2rem, min(5.2vw, 7.5vh), 4rem); }
}
@media (max-width: 899px) {
  .hero { align-items: start; min-height: max(600px, 100svh); }
  .hero-content { padding-block: calc(100px + env(safe-area-inset-top, 0px)) 0; gap: 12px; }
  .hero-media img, .hero-media video { object-position: 22% 100%; transform-origin: 22% 100%; }
  .hero::before {
    background: linear-gradient(180deg, rgba(14, 23, 20, 0.85) 0%, rgba(14, 23, 20, 0.7) 45%, rgba(14, 23, 20, 0.35) 64%, rgba(14, 23, 20, 0) 76%, rgba(14, 23, 20, 0) 94%, var(--ground) 100%);
  }
  .hero::after { display: none; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: auto; padding: 0 16px; font-size: 0.66rem; letter-spacing: 0.18em; min-height: 46px; }
  .hero-cue { display: none; }
}

/* ---------- Hero-Video (Loop) ---------- */
.hero-media { background: var(--ground) url("assets/video/grindelhof-start-v2-poster.jpg") 50% 97% / cover no-repeat; }
.hero-media video { display: block; }
@media (max-width: 899px) {
  .hero-media { background-position: 22% 100%; }
}

/* ---------- Hero-Video: Hinweis „KI-generiert" unten links klar sichtbar ---------- */
.hero-media video { transform: none !important; animation: none !important; object-position: 50% 100%; }
.hero-media { background-position: 50% 100%; }
@media (min-width: 900px) {
  .hero::before {
    background:
      linear-gradient(180deg, rgba(14, 23, 20, 0.78) 0%, rgba(14, 23, 20, 0.55) 22%, rgba(14, 23, 20, 0.35) 52%, rgba(14, 23, 20, 0) 68%),
      radial-gradient(60% 45% at 50% 34%, rgba(14, 23, 20, 0.55), transparent 75%);
  }
  .hero-frame { bottom: 66px; }
}
@media (max-width: 899px) {
  .hero-media video { object-position: 0% 100%; }
  .hero-media { background-position: 0% 100%; }
  .hero::before {
    background: linear-gradient(180deg, rgba(14, 23, 20, 0.85) 0%, rgba(14, 23, 20, 0.7) 45%, rgba(14, 23, 20, 0.35) 64%, rgba(14, 23, 20, 0) 76%);
  }
  .hero-frame { bottom: 30px; }
}

/* ---------- Handschriftlicher Schriftzug „Grindelhof" ---------- */
.hero-signature {
  display: block; width: clamp(150px, min(17vw, 19vh), 250px); height: auto; margin-bottom: -6px;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.55));
}
.hero-load > *:nth-child(6) { animation-delay: 0.8s; }
@media (max-width: 899px) {
  .hero-signature { width: clamp(130px, 40vw, 180px); margin-bottom: -4px; }
}

/* ---------- Historische Karte als Video (Sternschanze), leicht transparent im Hintergrund ---------- */
.ground .map {
  background: none; filter: sepia(0.35) saturate(0.85) brightness(0.9); mix-blend-mode: normal; opacity: 0.18; overflow: hidden;
}
.map-video { position: absolute; display: block; }
@media (min-width: 900px) and (min-aspect-ratio: 1 / 1) {
  .map-video { width: 104vw; height: auto; left: -2vw; top: calc(120px - 10vw); }
}
@media (max-width: 899px), (max-aspect-ratio: 1 / 1) {
  .map-video { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 16%; }
}
@media (prefers-reduced-motion: reduce) { .map-video { display: none; } .ground .map { background: url("assets/video/sternschanze-karte-poster.jpg") 30% 16% / cover no-repeat; } }

/* ---------- Handschriftlicher Schriftzug als Logo in der Navigation ---------- */
.nav-brand { display: inline-flex; align-items: center; line-height: 0; letter-spacing: 0; }
.nav-signature { display: block; width: auto; height: 68px; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55)); transition: opacity 0.3s; }
.nav-brand:hover .nav-signature { opacity: 0.85; }
@media (max-width: 560px) { .nav-signature { height: 54px; } }

/* ---------- Bildunterschrift mit Zusatzzeile ---------- */
.caption-tag small { display: block; margin-top: 4px; font-size: 0.78em; letter-spacing: 0.2em; color: var(--ivory-dim); }
@media (max-width: 900px) {
  .caption-tag { left: 16px; bottom: 26px; max-width: calc(48% - 16px); letter-spacing: 0.16em; line-height: 1.5; }
  .caption-tag small { letter-spacing: 0.12em; }
}

/* ---------- Flächentabelle: „ca." vor den Werten ---------- */
.area-table td.num { width: 9.5em; }
@media (max-width: 560px) {
  .area-table td.num { width: auto; padding-left: 12px; font-size: 1.05rem; }
  .area-table tr.total td.num { font-size: 1.55rem; }
}

/* ---------- Makler-Logo statt Monogramm ---------- */
.agent-mono img { width: 46px; height: auto; position: relative; z-index: 1; }

/* ---------- Cookie-Link im Seitenfuß ---------- */
.footer-cookie-btn {
  appearance: none; border: 0; background: none; padding: 0; margin: 0; cursor: pointer;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ivory-dim);
}
.footer-cookie-btn:hover, .footer-cookie-btn:focus-visible { color: var(--gold-light); }

/* ---------- Cookie-Consent-Banner ---------- */
html.cc-open { overflow: hidden; }
.cc-overlay {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: max(4vh, env(safe-area-inset-top, 0px)) max(16px, 4vw) max(4vh, env(safe-area-inset-bottom, 0px));
  background: rgba(8, 13, 11, 0.72); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  animation: ccFade 0.35s var(--ease) both;
}
@keyframes ccFade { from { opacity: 0; } to { opacity: 1; } }
.cc-dialog {
  position: relative; width: min(580px, 100%); max-height: 92vh; overflow-y: auto;
  background: linear-gradient(160deg, var(--ground-3), var(--ground) 85%);
  border: 1px solid var(--gold); padding: clamp(24px, 4vh, 40px) clamp(22px, 3.4vw, 38px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); font-family: var(--font-body); font-weight: 300; color: var(--ivory);
}
.cc-dialog::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(154, 122, 60, 0.45); pointer-events: none; }
.cc-title {
  margin: 0 0 0.7em; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  line-height: 1.15; color: var(--gold-light);
}
.cc-text { margin: 0 0 1.4em; font-size: 0.95rem; line-height: 1.7; color: var(--ivory); }
.cc-text a { color: var(--gold-light); text-underline-offset: 3px; }
.cc-categories { margin: 0 0 1.3em; padding-top: 1em; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 1.1em; }
.cc-categories[hidden] { display: none; }
.cc-category { display: flex; flex-direction: column; gap: 0.35em; }
.cc-category-head { display: flex; align-items: center; gap: 0.8em; }
.cc-category-label { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.cc-category-desc { margin: 0; font-size: 0.86rem; line-height: 1.6; color: var(--ivory-dim); }
.cc-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-switch-slider { position: absolute; inset: 0; border: 1px solid rgba(201, 169, 97, 0.5); border-radius: 22px; background: rgba(14, 23, 20, 0.6); transition: background-color 0.2s; }
.cc-switch-slider::before { content: ""; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; border-radius: 50%; background: var(--gold-soft); transition: transform 0.2s, background-color 0.2s; }
.cc-switch input:checked + .cc-switch-slider { background: var(--gold); border-color: var(--gold); }
.cc-switch input:checked + .cc-switch-slider::before { transform: translateX(18px); background: var(--ground); }
.cc-switch input:disabled + .cc-switch-slider { opacity: 0.65; }
.cc-switch input:focus-visible + .cc-switch-slider { outline: 1px solid var(--gold-light); outline-offset: 3px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; }
.cc-btn {
  appearance: none; border: 1px solid var(--gold); background: transparent; color: var(--gold-light); cursor: pointer;
  min-height: 44px; padding: 0 18px; font-family: var(--font-body); font-weight: 400; font-size: 0.68rem;
  letter-spacing: 0.2em; text-transform: uppercase; transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.cc-btn[hidden] { display: none; }
.cc-btn-link { border-color: transparent; padding-left: 0; margin-right: auto; color: var(--ivory-dim); }
.cc-btn-link:hover, .cc-btn-link:focus-visible { color: var(--gold-light); text-decoration: underline; text-underline-offset: 4px; }
.cc-btn-secondary:hover, .cc-btn-secondary:focus-visible { background: rgba(201, 169, 97, 0.14); }
.cc-btn-primary { background: linear-gradient(100deg, var(--gold-deep), var(--gold) 45%, var(--gold-light)); color: var(--ground); border-color: var(--gold-light); }
.cc-btn-primary:hover, .cc-btn-primary:focus-visible { background: var(--gold-light); }
@media (max-width: 520px) {
  .cc-actions { flex-direction: column-reverse; align-items: stretch; }
  .cc-btn { width: 100%; }
  .cc-btn-link { margin-right: 0; padding-left: 18px; }
}
@media (prefers-reduced-motion: reduce) { .cc-overlay { animation: none; } }
@media (min-width: 521px) {
  .cc-dialog { width: min(660px, 100%); }
  .cc-btn { padding: 0 14px; letter-spacing: 0.12em; font-size: 0.64rem; }
  .cc-btn-link { flex-basis: 100%; order: -1; justify-content: flex-start; text-align: left; min-height: 32px; margin: -6px 0 4px; }
}
