/* ==========================================================================
   Ebel Immobilien Service – Stylesheet
   ========================================================================== */

/* ---------- Schriften (lokal gehostet, DSGVO-freundlich) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  --bg: #F6F2EA;
  --surface: #FFFFFF;
  --surface-2: #EEE8DC;
  --ink: #13241C;
  --muted: #56665D;
  --line: rgba(19, 36, 28, .12);
  --line-strong: rgba(19, 36, 28, .2);
  --brand: #0E5A3A;
  --brand-ink: #FFFFFF;
  --brand-tint: rgba(14, 90, 58, .08);
  --accent: #B98A3E;
  --accent-soft: #E2B867;
  --accent-ink: #1A1205;

  --hero-bg: #0B2A1F;
  --hero-deep: #071A13;
  --hero-ink: #F3EEE4;
  --hero-muted: rgba(243, 238, 228, .72);

  /* Kopfbereich (Hero): hell = Tag, dunkel = Nacht */
  --h-bg:
    radial-gradient(120% 70% at 85% 110%, #E2D4B8 0%, transparent 55%),
    radial-gradient(80% 60% at 10% 0%, #FBF8F2 0%, transparent 60%),
    linear-gradient(180deg, #F4EFE6 0%, #EFE7D8 70%, #E7DCC6 100%);
  --h-ink: #13241C;
  --h-muted: #4C5C53;
  --h-accent: #94692A;
  --h-eyebrow: #0E5A3A;
  --h-line: rgba(19, 36, 28, .07);
  --h-line-soft: rgba(19, 36, 28, .035);
  --h-plan-grid: rgba(14, 90, 58, .12);
  --h-plan-wall: rgba(14, 90, 58, .6);
  --h-plan-thin: rgba(14, 90, 58, .55);
  --h-plan-gold: rgba(148, 105, 42, .85);
  --h-plan-room: rgba(19, 36, 28, .8);
  --h-plan-area: rgba(19, 36, 28, .55);
  --h-cross: rgba(148, 105, 42, .45);
  --h-label-bg: rgba(246, 242, 234, .85);
  --h-label-border: rgba(148, 105, 42, .35);
  --h-ghost: rgba(19, 36, 28, .3);
  --h-ghost-hover: rgba(19, 36, 28, .06);
  --h-sky-back: rgba(14, 90, 58, .14);
  --h-house: #0F3527;
  --h-tree: #0B2A1F;
  --h-win: rgba(243, 238, 228, .1);

  --map-water: #A8C9D6;
  --shadow: 0 1px 2px rgba(19, 36, 28, .05), 0 12px 32px -12px rgba(19, 36, 28, .18);
  --shadow-lg: 0 30px 80px -30px rgba(19, 36, 28, .35);

  --show-sun: none;
  --show-moon: block;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --header-h: 84px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1813;
    --surface: #12221B;
    --surface-2: #0F1E18;
    --ink: #ECF1EC;
    --muted: #A2B3A9;
    --line: rgba(236, 241, 236, .1);
    --line-strong: rgba(236, 241, 236, .18);
    --brand: #4CC285;
    --brand-ink: #06140E;
    --brand-tint: rgba(76, 194, 133, .1);
    --accent: #E2B867;
    --accent-soft: #E2B867;
    --map-water: #2B5566;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .8);
    --h-bg:
      radial-gradient(120% 70% at 85% 110%, #1B5A41 0%, transparent 55%),
      radial-gradient(80% 60% at 10% 0%, #10382A 0%, transparent 60%),
      linear-gradient(180deg, #0B2A1F 0%, #0D3125 70%, #134433 100%);
    --h-ink: #F3EEE4;
    --h-muted: rgba(243, 238, 228, .72);
    --h-accent: #E2B867;
    --h-eyebrow: #E2B867;
    --h-line: rgba(243, 238, 228, .045);
    --h-line-soft: rgba(243, 238, 228, .025);
    --h-plan-grid: rgba(226, 184, 103, .13);
    --h-plan-wall: rgba(243, 238, 228, .55);
    --h-plan-thin: rgba(243, 238, 228, .6);
    --h-plan-gold: rgba(226, 184, 103, .8);
    --h-plan-room: rgba(243, 238, 228, .82);
    --h-plan-area: rgba(243, 238, 228, .55);
    --h-cross: rgba(226, 184, 103, .4);
    --h-label-bg: rgba(7, 26, 19, .55);
    --h-label-border: rgba(226, 184, 103, .3);
    --h-ghost: rgba(243, 238, 228, .35);
    --h-ghost-hover: rgba(243, 238, 228, .08);
    --h-sky-back: #0F3A2B;
    --h-house: #071A13;
    --h-tree: #08211A;
    --h-win: rgba(243, 238, 228, .07);
    --show-sun: block;
    --show-moon: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1813;
  --surface: #12221B;
  --surface-2: #0F1E18;
  --ink: #ECF1EC;
  --muted: #A2B3A9;
  --line: rgba(236, 241, 236, .1);
  --line-strong: rgba(236, 241, 236, .18);
  --brand: #4CC285;
  --brand-ink: #06140E;
  --brand-tint: rgba(76, 194, 133, .1);
  --accent: #E2B867;
  --accent-soft: #E2B867;
  --map-water: #2B5566;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --h-bg:
    radial-gradient(120% 70% at 85% 110%, #1B5A41 0%, transparent 55%),
    radial-gradient(80% 60% at 10% 0%, #10382A 0%, transparent 60%),
    linear-gradient(180deg, #0B2A1F 0%, #0D3125 70%, #134433 100%);
  --h-ink: #F3EEE4;
  --h-muted: rgba(243, 238, 228, .72);
  --h-accent: #E2B867;
  --h-eyebrow: #E2B867;
  --h-line: rgba(243, 238, 228, .045);
  --h-line-soft: rgba(243, 238, 228, .025);
  --h-plan-grid: rgba(226, 184, 103, .13);
  --h-plan-wall: rgba(243, 238, 228, .55);
  --h-plan-thin: rgba(243, 238, 228, .6);
  --h-plan-gold: rgba(226, 184, 103, .8);
  --h-plan-room: rgba(243, 238, 228, .82);
  --h-plan-area: rgba(243, 238, 228, .55);
  --h-cross: rgba(226, 184, 103, .4);
  --h-label-bg: rgba(7, 26, 19, .55);
  --h-label-border: rgba(226, 184, 103, .3);
  --h-ghost: rgba(243, 238, 228, .35);
  --h-ghost-hover: rgba(243, 238, 228, .08);
  --h-sky-back: #0F3A2B;
  --h-house: #071A13;
  --h-tree: #08211A;
  --h-win: rgba(243, 238, 228, .07);
  --show-sun: block;
  --show-moon: none;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s ease, color .4s ease;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0;
  font-variation-settings: "opsz" 96;
}
h2 em, h1 em { font-style: italic; }

p { margin: 0 0 1em; }

::selection { background: var(--accent-soft); color: #1A1205; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 640px) { .container { padding-inline: 28px; } }
@media (min-width: 1100px) { .container { padding-inline: 40px; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: currentColor;
}
.eyebrow--light { color: var(--accent-soft); }
.hero .eyebrow { color: var(--h-eyebrow); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 .97rem/1 var(--font-sans);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .35s var(--ease), background-color .3s, box-shadow .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s var(--ease);
}
.btn:hover svg { transform: translateX(4px); }
.btn--primary { --btn-bg: var(--brand); --btn-fg: var(--brand-ink); }
.btn--primary:hover { box-shadow: 0 10px 24px -10px var(--brand); }
.btn--accent { --btn-bg: var(--accent-soft); --btn-fg: var(--accent-ink); }
.btn--accent:hover { box-shadow: 0 12px 30px -10px rgba(226, 184, 103, .7); }
.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--h-ink);
  border-color: var(--h-ghost);
}
.btn--ghost-light:hover { --btn-bg: var(--h-ghost-hover); border-color: var(--h-ink); }
.btn--text { --btn-bg: transparent; --btn-fg: var(--muted); padding-inline: 12px; }
.btn--text:hover { --btn-fg: var(--ink); }
.btn--small { min-height: 42px; padding: 0 20px; font-size: .9rem; }
.btn[hidden] { display: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 4px;
}
.link-arrow svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  transition: transform .3s var(--ease);
}
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* ---------- Logo & Logo-Animation ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.logo-mark {
  width: 44px;
  height: 44px;
  flex: none;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lm-roof, .lm-spine { stroke-dasharray: 1; stroke-dashoffset: 0; }
.lm-bar { transform-box: fill-box; transform-origin: 0 50%; }
.lm-window {
  fill: var(--accent-soft);
  stroke: none;
  filter: drop-shadow(0 0 3px rgba(226, 184, 103, .8));
}
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__word {
  display: flex;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: .06em;
  font-variation-settings: "opsz" 144;
}
.logo__word span { display: inline-block; }
.logo__sub {
  margin-top: 5px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .8;
  white-space: nowrap;
}

.is-drawing .lm-roof { animation: lm-draw .9s var(--ease-io) both; }
.is-drawing .lm-spine { animation: lm-draw .45s .5s var(--ease-io) both; }
.is-drawing .lm-bar { animation: lm-floor .5s var(--ease) both; }
.is-drawing .lm-bar--1 { animation-delay: .8s; }
.is-drawing .lm-bar--2 { animation-delay: .95s; }
.is-drawing .lm-bar--3 { animation-delay: 1.1s; }
.is-drawing .lm-window { animation: lm-light 1.1s 1.3s both; }
.is-drawing .logo__word span,
.is-drawing .preloader__word span { animation: lm-letter .7s var(--ease) both; }
.is-drawing :is(.logo__word, .preloader__word) span:nth-child(1) { animation-delay: .9s; }
.is-drawing :is(.logo__word, .preloader__word) span:nth-child(2) { animation-delay: .98s; }
.is-drawing :is(.logo__word, .preloader__word) span:nth-child(3) { animation-delay: 1.06s; }
.is-drawing :is(.logo__word, .preloader__word) span:nth-child(4) { animation-delay: 1.14s; }
.is-drawing :is(.logo__sub, .preloader__sub) { animation: lm-track 1.1s 1.35s var(--ease) both; }

@keyframes lm-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes lm-floor { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes lm-light {
  0% { opacity: 0; filter: none; }
  18% { opacity: 1; }
  28% { opacity: .15; }
  42% { opacity: 1; }
  52% { opacity: .4; }
  100% { opacity: 1; filter: drop-shadow(0 0 3px rgba(226, 184, 103, .8)); }
}
@keyframes lm-letter { from { opacity: 0; transform: translateY(60%); } to { opacity: 1; transform: none; } }
@keyframes lm-track { from { opacity: 0; letter-spacing: .05em; } to { opacity: .8; } }

/* ---------- Intro / Preloader ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  background: var(--hero-bg);
  color: var(--hero-ink);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-io);
}
.js.intro-seen .preloader { display: none; }
.preloader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.preloader__inner { display: grid; justify-items: center; gap: 18px; }
.logo-mark--xl { width: 116px; height: 116px; stroke-width: 3.2; }
.preloader__word {
  display: flex;
  overflow: hidden;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 3.4rem;
  line-height: 1.1;
  letter-spacing: .1em;
}
.preloader__sub {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .4em;
  text-transform: uppercase;
  opacity: .8;
}

/* ---------- Scroll-Fortschritt & Cursor ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1001;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent-soft));
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}

.cursor { display: none; }
.has-cursor .cursor {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1400;
  pointer-events: none;
  transition: opacity .3s;
}
.cursor.is-hidden,
.in-hero .cursor { opacity: 0; }
.cursor__ring, .cursor__dot {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
}
.cursor__ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1.5px solid var(--accent);
  transition: transform .35s var(--ease), background-color .35s, border-color .35s, border-radius .35s;
}
.cursor__dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--brand);
}
.cursor.is-hover .cursor__ring {
  transform: scale(1.6);
  background: rgba(226, 184, 103, .14);
  border-color: transparent;
}

/* ---------- Hinweis-Banner (CMS, standardmäßig ausgeschaltet) ---------- */
.notice-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1002;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 12px;
  padding: 10px 16px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: .9rem;
  line-height: 1.4;
  text-align: center;
}
.notice-bar strong { font-weight: 800; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  top: var(--banner-h, 0px);
  z-index: 1000;
  color: var(--h-ink);
  transition: background-color .4s, color .4s, box-shadow .4s, backdrop-filter .4s;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
  transition: height .4s var(--ease);
}
.site-header.is-scrolled {
  --header-h: 70px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  color: var(--ink);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled .logo-mark { color: var(--brand); }
.site-header .logo-mark { width: 40px; height: 40px; }

.main-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a:not(.btn) {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  opacity: .88;
  transition: opacity .3s;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1.5px;
  background: var(--accent-soft);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.main-nav a:not(.btn):hover,
.main-nav a.is-active { opacity: 1; }
.main-nav a:not(.btn):hover::after,
.main-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.main-nav__cta-mobile { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.header-phone {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 30%, transparent);
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  transition: background-color .3s, border-color .3s;
}
.header-phone:hover { border-color: var(--accent-soft); }
.header-phone svg { width: 16px; height: 16px; fill: var(--h-accent); }
.site-header.is-scrolled .header-phone svg { fill: var(--accent); }
@media (min-width: 1180px) { .header-phone { display: inline-flex; } }

.theme-toggle, .nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: border-color .3s, transform .3s var(--ease);
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--accent-soft); }
.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.theme-toggle .icon-sun { display: var(--show-sun); }
.theme-toggle .icon-moon { display: var(--show-moon); }
.theme-toggle:active svg { transform: rotate(40deg); }

.nav-toggle { display: none; }
.nav-toggle span {
  grid-area: 1 / 1;
  width: 18px;
  height: 1.8px;
  background: currentColor;
  transition: transform .4s var(--ease);
}
.nav-toggle span:first-child { transform: translateY(-4px); }
.nav-toggle span:last-child { transform: translateY(4px); }
.nav-open .nav-toggle span:first-child { transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: rotate(-45deg); }

@media (max-width: 959px) {
  .nav-toggle { display: inline-grid; }
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 100px 28px 40px;
    background: var(--hero-bg);
    color: var(--hero-ink);
    clip-path: circle(0 at calc(100% - 38px) 42px);
    transition: clip-path .7s var(--ease-io);
    visibility: hidden;
  }
  .nav-open .main-nav { clip-path: circle(150% at calc(100% - 38px) 42px); visibility: visible; }
  .nav-open .site-header { color: var(--hero-ink); background: transparent; box-shadow: none; backdrop-filter: none; }
  .nav-open .site-header .logo-mark { color: inherit; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a:not(.btn) {
    padding: 8px 0;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 8vw, 2.8rem);
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s, transform .5s var(--ease);
  }
  .main-nav a:not(.btn)::after { left: 0; right: auto; width: 60px; bottom: 6px; }
  .nav-open .main-nav a:not(.btn) { opacity: 1; transform: none; }
  .nav-open .main-nav li:nth-child(1) a { transition-delay: .2s; }
  .nav-open .main-nav li:nth-child(2) a { transition-delay: .26s; }
  .nav-open .main-nav li:nth-child(3) a { transition-delay: .32s; }
  .nav-open .main-nav li:nth-child(4) a { transition-delay: .38s; }
  .nav-open .main-nav li:nth-child(5) a { transition-delay: .44s; }
  .main-nav__cta-mobile { display: inline-flex; align-self: flex-start; --btn-bg: var(--accent-soft); --btn-fg: var(--accent-ink); }
  .nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  --mx: 70vw;
  --my: 40vh;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + var(--banner-h, 0px) + 48px) 0 clamp(170px, 24vw, 280px);
  overflow: hidden;
  background: var(--h-bg);
  color: var(--h-ink);
}

.hero__grid,
.hero__plan,
.hero__cross {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero__grid {
  background-image:
    linear-gradient(var(--h-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--h-line) 1px, transparent 1px),
    linear-gradient(var(--h-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--h-line-soft) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 85%);
}

/* Grundriss-Lupe */
.hero__plan {
  --r: 280px;
  background-image:
    linear-gradient(var(--h-plan-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--h-plan-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .55) 40%, transparent 72%);
  mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .55) 40%, transparent 72%);
  opacity: .95;
}
@media (max-width: 700px) { .hero__plan { --r: 190px; } }
.hero__plan svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke-linecap: square;
}
.plan-walls { stroke: var(--h-plan-wall); stroke-width: 7; }
.plan-doors { stroke: var(--h-plan-gold); stroke-width: 2; }
.plan-windows { stroke: var(--h-plan-thin); stroke-width: 2; }
.plan-dims { stroke: var(--h-plan-gold); stroke-width: 1.5; }
.plan-labels text {
  fill: var(--h-plan-gold);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .08em;
  text-anchor: middle;
}
.plan-labels .room { fill: var(--h-plan-room); font-family: var(--font-serif); font-style: italic; font-size: 26px; letter-spacing: 0; }
.plan-labels .area { fill: var(--h-plan-area); font-size: 16px; }

/* Fadenkreuz wie am Zeichenbrett */
.hero__cross { opacity: 0; transition: opacity .5s; z-index: 0; }
.hero.is-tracking .hero__cross { opacity: 1; }
.hero__cross-x,
.hero__cross-y { position: absolute; left: 0; top: 0; }
.hero__cross-x {
  width: 100%;
  height: 1px;
  transform: translateY(var(--my));
  background: repeating-linear-gradient(90deg, var(--h-cross) 0 6px, transparent 6px 12px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.hero__cross-y {
  width: 1px;
  height: 100%;
  transform: translateX(var(--mx));
  background: repeating-linear-gradient(180deg, var(--h-cross) 0 6px, transparent 6px 12px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 80%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 15%, #000 80%, transparent);
}
.hero__cross-label {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(calc(var(--mx) + 16px), calc(var(--my) + 14px));
  padding: 4px 9px;
  border: 1px solid var(--h-label-border);
  border-radius: 6px;
  background: var(--h-label-bg);
  backdrop-filter: blur(4px);
  color: var(--h-accent);
  font-size: .7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
  white-space: nowrap;
}

.hero__content { position: relative; z-index: 1; }
.hero__title {
  max-width: 13ch;
  font-size: clamp(2.9rem, 8.2vw, 6.6rem);
  line-height: .98;
  letter-spacing: -.025em;
  font-variation-settings: "opsz" 144;
}
.hero__title em {
  color: var(--h-accent);
  font-weight: 300;
}
.hero__lead {
  max-width: 54ch;
  margin: 28px 0 36px;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--h-muted);
}
.hero__lead p { margin: 0; }
.hero__lead p + p { margin-top: .8em; }
.hero__lead strong { color: var(--h-ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 640px;
  margin: 56px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--h-ghost);
}
.hero__stats div { min-width: 0; }
.hero__stats dt {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--h-ink);
  font-variant-numeric: tabular-nums;
}
.hero__stats dd {
  margin: 8px 0 0;
  font-size: .85rem;
  line-height: 1.35;
  color: var(--h-muted);
}

/* Skyline */
.hero__skyline {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 0;
  width: 100%;
  height: clamp(150px, 20vw, 260px);
  pointer-events: none;
}
.sky-back path, .sky-back rect { fill: var(--h-sky-back); }
.sky-front .house { fill: var(--h-house); }
.sky-front .tree { fill: var(--h-tree); }
.win {
  fill: var(--h-win);
  transition: fill .5s ease;
}
.win.on {
  fill: #F2C66D;
  transition: fill .15s ease;
  filter: drop-shadow(0 0 5px rgba(242, 198, 109, .85));
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1.5px solid var(--h-ghost);
  border-radius: 14px;
  transition: opacity .4s;
}
.page-scrolled .hero__scroll { opacity: 0; pointer-events: none; }
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--accent-soft);
  animation: scroll-hint 2s var(--ease) infinite;
}
@keyframes scroll-hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Orte-Laufband ---------- */
.towns {
  overflow: hidden;
  padding: 22px 0;
  background: var(--hero-deep);
  color: var(--hero-ink);
  border-top: 1px solid rgba(243, 238, 228, .06);
}
.towns__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.towns:hover .towns__track { animation-play-state: paused; }
.towns__list {
  display: flex;
  flex: none;
  margin: 0;
  padding: 0;
  list-style: none;
}
.towns__list li {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  white-space: nowrap;
  opacity: .9;
}
.towns__list li::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent-soft);
  transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.section--tinted { background: var(--surface-2); }
.section--dark { background: var(--hero-bg); color: var(--hero-ink); }

.section-head { max-width: 780px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
}
.section-head h2 em { color: var(--brand); }
.section--dark .section-head h2 em { color: var(--accent-soft); }
.section-head__lead {
  margin-top: 22px;
  max-width: 60ch;
  font-size: 1.12rem;
  color: var(--muted);
}
.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

/* Spotlight-Karten (folgen dem Mauszeiger) */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), var(--brand-tint), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
}
.spot:hover::before { opacity: 1; }

/* ---------- Leistungen ---------- */
.services {
  display: grid;
  gap: 22px;
}
@media (min-width: 900px) { .services { grid-template-columns: repeat(3, 1fr); } }

.service {
  padding: clamp(28px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s, border-color .5s;
}
.service:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}
.service__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 30px;
  border-radius: 18px;
  background: var(--brand-tint);
}
.service__icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service__icon .hl { stroke: var(--accent); }
.service__icon .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease-io) .3s; }
.service.is-visible .service__icon .draw { stroke-dashoffset: 0; }
.service__num {
  position: absolute;
  top: 28px;
  right: 32px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--line-strong);
}
.service h3 { font-size: 1.8rem; margin-bottom: 14px; }
.service p { color: var(--muted); }

.checklist {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: .96rem;
  font-weight: 600;
}
.checklist li { display: flex; gap: 12px; align-items: baseline; }
.checklist li::before {
  content: "";
  flex: none;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateY(-3px) rotate(-45deg);
}

/* ---------- Angebote ---------- */
.listings {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.listing {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
/* Ein einzelnes Angebot wird groß im Querformat gezeigt */
.listing:only-of-type { grid-column: 1 / -1; }
@media (min-width: 960px) {
  .listing:only-of-type { grid-template-columns: 1.15fr 1fr; }
}

/* Bilder: das erste ist das Titelbild, weitere erscheinen als Vorschaubilder */
.listing__media {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  align-content: start;
  gap: 10px;
  padding: 12px;
}
.listing__media img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface-2);
  cursor: zoom-in;
  opacity: .75;
  transition: opacity .3s, filter .4s, outline-color .3s;
  outline: 2px solid transparent;
  outline-offset: -2px;
}
.listing__media img:hover,
.listing__media img:focus-visible { opacity: 1; outline-color: var(--brand); }
.listing__media img:first-of-type {
  grid-column: 1 / -1;
  grid-row: 1;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  opacity: 1;
  outline: 0;
}
.listing__media img:first-of-type:hover { filter: brightness(1.06); }
@media (min-width: 960px) {
  .listing:only-of-type .listing__media img:first-of-type { aspect-ratio: auto; height: 100%; min-height: 360px; }
  .listing:only-of-type .listing__media { grid-template-rows: 1fr; grid-auto-rows: 70px; }
}
.listing__badges {
  position: absolute;
  left: 26px;
  top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  pointer-events: none;
}
.badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 42, 31, .82);
  backdrop-filter: blur(6px);
  color: #F3EEE4;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge--gold { background: var(--accent-soft); color: var(--accent-ink); }
.listing__count {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  margin: 14px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 42, 31, .82);
  color: #F3EEE4;
  font-size: .78rem;
  font-weight: 700;
}
.listing__count svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

.listing__body { display: flex; flex-direction: column; padding: clamp(22px, 3vw, 40px); }
.listing__meta {
  margin: 0 0 10px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.listing__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 18px; }
.listing__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--brand);
}
.listing__price small { font-family: var(--font-sans); font-size: .9rem; color: var(--muted); }
.facts {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.facts div { flex: 1 1 40%; padding: 14px 16px; background: var(--surface); box-shadow: 0 0 0 .5px var(--line); }
/* Leere optionale Felder entfernt das CMS – dann auch die Beschriftung ausblenden */
.facts div:not(:has(dd)),
.facts:not(:has(dd)) { display: none; }
.facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; }
.listing__tags ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.listing__tags p { margin: 0 0 22px; color: var(--muted); }
.listing__tags li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: .82rem;
  font-weight: 700;
}
.listing__desc { color: var(--muted); }
.listing__desc ul { padding-left: 1.2em; }
.listing__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 12px; }
.listing__date { margin: 16px 0 0; font-size: .8rem; color: var(--muted); }

.listings__empty {
  grid-column: 1 / -1;
  padding: 48px 28px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
}

.search-order {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: clamp(24px, 3vw, 36px);
  border: 1.5px dashed color-mix(in srgb, var(--brand) 40%, transparent);
  border-radius: 24px;
}
.search-order h3 { font-size: 1.6rem; margin-bottom: 6px; }
.search-order p { margin: 0; color: var(--muted); max-width: 56ch; }

/* ---------- Ablauf ---------- */
.steps {
  --p: 0;
  position: relative;
  display: grid;
  gap: 40px;
  margin: 0;
  padding: 0 0 0 44px;
  list-style: none;
  counter-reset: step;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line-strong);
}
.steps::after {
  background: linear-gradient(180deg, var(--brand), var(--accent-soft));
  transform-origin: 50% 0;
  transform: scaleY(var(--p));
}
.step { position: relative; counter-increment: step; }
.step::before {
  content: "Schritt " counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.step__dot {
  position: absolute;
  left: -44px;
  top: 0;
  z-index: 1;
  width: 22px;
  height: 22px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  transition: border-color .5s, background-color .5s, box-shadow .5s;
}
.step.is-passed .step__dot {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 0 6px var(--brand-tint);
}
.step h3 { font-size: 1.5rem; margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; }

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
    padding: 56px 0 0;
  }
  .steps::before,
  .steps::after {
    left: 0;
    right: 0;
    top: 10px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .steps::after {
    background: linear-gradient(90deg, var(--brand), var(--accent-soft));
    transform-origin: 0 50%;
    transform: scaleX(var(--p));
  }
  .step__dot { left: 0; top: -56px; }
}

/* ---------- Über uns ---------- */
.about {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 960px) { .about { grid-template-columns: 380px 1fr; gap: 90px; } }

.about__visual { text-align: center; }
.portrait {
  position: relative;
  width: min(280px, 72vw);
  aspect-ratio: 1;
  margin: 0 auto 24px;
  padding: 18px;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 50%;
  filter: saturate(.9);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.portrait__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--accent-soft);
  stroke-width: 1.2;
  stroke-dasharray: 2 9;
  animation: spin 50s linear infinite;
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(243, 238, 228, .15);
  border-radius: 50%;
}
@keyframes spin { to { transform: rotate(360deg); } }
.portrait__name { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 1.8rem; }
.portrait__role { margin: 4px 0 0; color: var(--hero-muted); font-size: .92rem; }

.about__quote { margin: 0 0 28px; }
.about__quote p {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1;
  color: var(--accent-soft);
}
.about__body p { color: var(--hero-muted); max-width: 62ch; }
.about__body strong { color: var(--hero-ink); }
.about__body a { color: var(--accent-soft); }

.values {
  display: grid;
  gap: 20px;
  margin: 40px 0 32px;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values li { padding-top: 18px; border-top: 1px solid rgba(226, 184, 103, .4); }
.values strong { display: block; margin-bottom: 6px; font-family: var(--font-serif); font-weight: 400; font-size: 1.5rem; }
.values span { font-size: .93rem; color: var(--hero-muted); }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(243, 238, 228, .18);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--hero-ink);
}
.badges li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(226, 184, 103, .2);
}

/* ---------- Verkaufs-Check ---------- */
.check { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) {
  .check { grid-template-columns: 1fr 1.15fr; gap: 72px; }
  .check__head { position: sticky; top: 120px; }
}
.check__note { margin-top: 18px; font-size: .88rem; color: var(--muted); }

.wizard {
  overflow: hidden;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.wizard__progress {
  height: 4px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--line);
}
.wizard__progress span {
  display: block;
  height: 100%;
  width: calc(var(--step, 1) / 3 * 100%);
  background: linear-gradient(90deg, var(--brand), var(--accent-soft));
  transition: width .6s var(--ease);
}
.wizard__count {
  margin: 0 0 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted);
}
.wizard__step { margin: 0; padding: 0; border: 0; min-width: 0; }
.js .wizard__step { display: none; }
.js .wizard__step.is-active { display: block; animation: step-in .55s var(--ease) both; }
.wizard__step.is-back { animation-name: step-in-back !important; }
@keyframes step-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
.wizard legend {
  margin-bottom: 24px;
  padding: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
}

.chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
  gap: 12px;
}
.chip { position: relative; cursor: pointer; }
.chip input, .segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  font-weight: 700;
  font-size: .92rem;
  text-align: center;
  transition: border-color .3s, background-color .3s, transform .3s var(--ease);
}
.chip svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .3s;
}
.chip:hover span { border-color: var(--line-strong); transform: translateY(-2px); }
.chip input:checked + span { border-color: var(--brand); background: var(--brand-tint); }
.chip input:checked + span svg { stroke: var(--brand); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label, .field__label { font-size: .88rem; font-weight: 700; }
.field output { color: var(--brand); font-variant-numeric: tabular-nums; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.optional { font-weight: 500; color: var(--muted); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; }
.field :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}
.field .is-invalid { border-color: #C2410C; }
.field input[type="range"] { width: 100%; accent-color: var(--brand); }

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}
.segmented label { flex: 1 1 auto; position: relative; cursor: pointer; }
.segmented span {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  color: var(--muted);
  transition: background-color .3s, color .3s;
}
.segmented input:checked + span { background: var(--brand); color: var(--brand-ink); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); }

.wizard__hint { font-size: .85rem; color: var(--muted); }
.wizard__error { min-height: 1.4em; margin: 12px 0 0; font-size: .88rem; font-weight: 700; color: #C2410C; }
.wizard__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

.wizard__done { text-align: center; padding: 30px 0 10px; }
.wizard__done svg {
  width: 72px; height: 72px; margin: 0 auto 18px;
  fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.wizard__done path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lm-draw 1s .2s var(--ease-io) forwards; }
.wizard__done h3 { font-size: 1.8rem; margin-bottom: 10px; }
.wizard__done p { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 20px; }
@media (min-width: 960px) { .faq { grid-template-columns: 1fr 1.5fr; gap: 72px; } }
.faq__list { border-top: 1px solid var(--line-strong); }
/* Ohne sichtbare Fragen wird der Abschnitt ausgeblendet */
#faq:not(:has([data-cms-entry]:not([hidden]))) { display: none; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    linear-gradient(var(--brand), var(--brand)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--brand), var(--brand)) center / 1.5px 12px no-repeat;
  transition: transform .4s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--brand-tint); }
.faq details > div { padding: 0 48px 24px 0; color: var(--muted); }
.faq details[open] > div { animation: fade-down .45s var(--ease); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Kontakt ---------- */
.contact { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1.05fr; gap: 72px; } }
.contact__list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.contact-card:hover { transform: translateX(6px); border-color: var(--brand); box-shadow: var(--shadow); }
.contact-card small {
  display: block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand);
}
.contact-card__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--brand-ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-card__icon svg path:only-child { fill: var(--brand-ink); stroke: none; }

.map-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  min-width: 0;
  aspect-ratio: 6 / 5;
}
@media (max-width: 560px) { .map-card { aspect-ratio: 4 / 5; } }
.map-card__art { width: 100%; height: 100%; }
.map-card__art { display: block; }
.map-bg { fill: var(--surface-2); }
.map-gridlines { stroke: var(--line); fill: url(#map-grid); }
#map-grid path { fill: none; stroke: var(--line); stroke-width: 1; }
.map-green { fill: var(--brand-tint); }
.map-water { fill: none; stroke: var(--map-water); stroke-width: 22; stroke-linecap: round; opacity: .55; }
.map-road { fill: none; stroke: var(--surface); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.map-road--main { stroke-width: 16; }
.map-road--minor { stroke-width: 5; }
.map-blocks rect { fill: var(--line-strong); }
.map-pin path { fill: var(--brand); }
.map-pin__dot { fill: var(--accent-soft); }
.map-pin__pulse {
  fill: var(--brand);
  opacity: .25;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { from { transform: scale(.4); opacity: .45; } to { transform: scale(2.4); opacity: 0; } }
.map-card__info {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(10px);
}
.map-card__info p { margin: 0; font-size: .95rem; line-height: 1.45; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 80px 0 32px;
  background: var(--hero-deep);
  color: var(--hero-muted);
  font-size: .95rem;
}
.site-footer__inner {
  display: grid;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(243, 238, 228, .1);
}
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer .logo { color: var(--hero-ink); margin-bottom: 18px; }
.site-footer__title {
  margin-bottom: 16px;
  font-family: var(--font-sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; transition: color .3s; }
.site-footer a:hover { color: var(--hero-ink); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  font-size: .85rem;
}
.site-footer__bottom p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.lightbox[open] { display: grid; place-items: center; animation: fade-in .35s ease; }
.lightbox::backdrop { background: rgba(5, 15, 11, .9); backdrop-filter: blur(6px); }
.lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 80vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.lightbox__caption { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-size: .9rem; opacity: .8; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(0, 0, 0, .3);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; margin-top: -26px; }
.lightbox__nav--next { right: 16px; top: 50%; margin-top: -26px; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .15); }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Scroll-Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.rv-1 { --d: .09s; } .rv-2 { --d: .18s; } .rv-3 { --d: .27s; } .rv-4 { --d: .36s; } .rv-5 { --d: .45s; }
.hv-0 { --d: .1s; } .hv-1 { --d: .22s; } .hv-2 { --d: .34s; } .hv-3 { --d: .46s; } .hv-4 { --d: .58s; } .hv-5 { --d: .7s; }
.js .service[data-reveal].is-visible:hover { transform: translateY(-6px); transition-delay: 0s; }

/* ---------- Rechtliche Seiten ---------- */
.legal-page .site-header { color: var(--ink); background: color-mix(in srgb, var(--bg) 88%, transparent); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(16px); }
.legal-page .site-header .logo-mark { color: var(--brand); }
.legal {
  max-width: 820px;
  margin-inline: auto;
  padding: calc(var(--header-h) + 64px) 16px 100px;
}
@media (min-width: 640px) { .legal { padding-inline: 28px; } }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 40px; }
.legal h2 { font-size: 1.6rem; margin: 44px 0 14px; }
.legal h3 { font-family: var(--font-sans); font-weight: 700; font-size: 1.05rem; margin: 26px 0 8px; letter-spacing: 0; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--ink); }
.legal .notice {
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--surface-2);
  font-size: .95rem;
}
.legal-back { display: inline-flex; margin-top: 40px; }
.not-found { min-height: 70vh; }
.not-found h1 { max-width: 16ch; }
.not-found > p:not(.eyebrow) { max-width: 52ch; font-size: 1.1rem; }
.not-found__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .towns__track { animation: none; flex-wrap: wrap; }
  .js .preloader { display: none; }
}
