/* ==========================================================================
   Rüger und Hausjell Immobilien – Stylesheet
   Designlinie „Nordisches Editorial“: Nachtblau, Papier, Abendlicht.
   ========================================================================== */

/* ---------- Schriften (lokal gehostet, keine Drittanbieter) ---------- */
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --night: #071321;
  --night-2: #0b1a2c;
  --night-3: #12263d;
  --paper: #f2f0ec;
  --paper-2: #e9e4db;
  --paper-3: #ddd6ca;
  --ink: #0b1526;
  --ink-2: rgba(11, 21, 38, .74);
  --ink-3: rgba(11, 21, 38, .66);
  --on-night: #f2f0ec;
  --on-night-2: rgba(242, 240, 236, .74);
  --on-night-3: rgba(242, 240, 236, .64);
  --glow: #c9a46a;
  --glow-2: #e0c08a;
  --glow-ink: #735522;
  --rule: rgba(11, 21, 38, .14);
  --rule-night: rgba(242, 240, 236, .16);

  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  --gutter: clamp(20px, 4.4vw, 72px);
  --max: 1480px;
  --header-h: 84px;

  --ease: cubic-bezier(.2, .75, .1, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 450;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }
::selection { background: var(--glow); color: var(--night); }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--paper); color: var(--night); padding: 10px 16px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Typografie ---------- */
.display, .h1, .h2, .h3, .statement { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; }
.h1 { font-size: clamp(3.1rem, 7.4vw, 8.4rem); line-height: .94; }
.h2 { font-size: clamp(2.2rem, 4.3vw, 4.25rem); line-height: 1.02; }
.h3 { font-size: clamp(1.6rem, 2.3vw, 2.3rem); line-height: 1.12; }
.h2 em, .h1 em, .display em { font-style: italic; }
/* Kursive Schlussphrase einer Überschrift nie mitten im Ausdruck umbrechen */
.h1 em, .h2 em, .h3 em, .display em, .panel--cta h3 em { white-space: nowrap; }
.lead { font-size: clamp(1.06rem, 1.25vw, 1.22rem); line-height: 1.7; color: var(--ink-2); max-width: 38em; }
.label {
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3);
}
.on-night .label { color: var(--on-night-3); }
.on-night { color: var(--on-night); }
.on-night .lead, .on-night p { color: var(--on-night-2); }

/* Abschnittskennung: 01 —— Haltung */
.sec-head { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(36px, 5vw, 72px); }
.sec-head__num { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em; line-height: 1; color: var(--glow-ink); }
.on-night .sec-head__num { color: var(--glow); }
.sec-head__rule { width: 64px; height: 1px; background: currentColor; opacity: .3; }

/* Link mit wandernder Unterstreichung */
.ulink {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .6s var(--ease);
  padding-bottom: 2px;
}
.ulink:hover { background-size: 0 1px; background-position: 100% 100%; }

.arrow-link { display: inline-flex; align-items: center; gap: 12px; font-weight: 650; font-size: .95rem; letter-spacing: .01em; }
.arrow-link svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.arrow-link:hover svg { transform: translateX(5px); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--night); --fg: var(--paper); --bg-h: var(--night-3); --fg-h: var(--paper); --bd: transparent;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 28px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-family: var(--sans); font-size: .92rem; font-weight: 700; letter-spacing: .04em;
  transition: color .5s var(--ease), border-color .5s var(--ease);
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bg-h);
  transform: translateY(101%);
  transition: transform .6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--fg-h); }
.btn svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--light { --bg: var(--paper); --fg: var(--night); --bg-h: var(--glow); --fg-h: var(--night); }
.btn--glow { --bg: var(--glow); --fg: var(--night); --bg-h: var(--paper); --fg-h: var(--night); }
.btn--line-light { --bg: transparent; --fg: var(--paper); --bd: rgba(242,240,236,.36); --bg-h: var(--paper); --fg-h: var(--night); }
.btn--line-dark { --bg: transparent; --fg: var(--ink); --bd: rgba(11,21,38,.24); --bg-h: var(--night); --fg-h: var(--paper); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 13px; color: inherit; }
.logo .mark { height: 38px; width: auto; flex: none; fill: currentColor; }
.logo__wm { display: flex; flex-direction: column; justify-content: space-between; height: 38px; line-height: 1; }
.logo__wm span { display: block; font-size: 9.6px; font-weight: 550; letter-spacing: .2em; }
.logo__wm span:last-child { font-size: 11.5px; font-weight: 750; letter-spacing: .01em; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  color: var(--on-night);
  transition: transform .6s var(--ease), background-color .5s ease, color .5s ease, box-shadow .5s ease, height .4s var(--ease);
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: transparent; transition: background-color .5s ease, backdrop-filter .5s ease;
}
.header.is-scrolled { --header-h: 72px; }
.header.is-scrolled::before { background: rgba(7, 19, 33, .78); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.header[data-theme="light"] { color: var(--ink); }
.header.is-scrolled[data-theme="light"]::before { background: rgba(242, 240, 236, .84); box-shadow: 0 1px 0 var(--rule); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); }
.nav a { font-size: .86rem; font-weight: 600; letter-spacing: .02em; position: relative; padding: 6px 0; opacity: .86; transition: opacity .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover { opacity: 1; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { opacity: 1; }
.header__cta { display: flex; align-items: center; gap: 14px; }
.header .btn { min-height: 46px; padding: 0 20px; font-size: .84rem; }
.header[data-theme="dark"] .btn--head { --bg: var(--paper); --fg: var(--night); --bg-h: var(--glow); --fg-h: var(--night); }
.header[data-theme="light"] .btn--head { --bg: var(--night); --fg: var(--paper); --bg-h: var(--glow); --fg-h: var(--night); }
.menu-btn { display: none; align-items: center; gap: 12px; height: 46px; padding: 0 4px; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.menu-btn__icon { position: relative; width: 26px; height: 12px; }
.menu-btn__icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease), width .5s var(--ease); }
.menu-btn__icon i:first-child { top: 0; }
.menu-btn__icon i:last-child { top: 10px; left: auto; width: 70%; }
.menu-open .menu-btn__icon i:first-child { top: 5px; transform: rotate(45deg); }
.menu-open .menu-btn__icon i:last-child { top: 5px; width: 100%; transform: rotate(-45deg); }

/* Mobiles Menü */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--night); color: var(--on-night);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 22px) var(--gutter) max(24px, env(safe-area-inset-bottom)); overflow-y: auto; gap: 28px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-io);
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__main { display: grid; align-content: start; }
.menu__label { color: var(--on-night-3); margin-bottom: 10px; }
.menu__list { border-top: 1px solid var(--rule-night); }
.menu__list li { border-bottom: 1px solid var(--rule-night); overflow: hidden; }
.menu__list a {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 13px 0; font-family: var(--serif); font-size: 1.65rem; line-height: 1.15; letter-spacing: 0;
  transform: translateY(100%); transition: transform .8s var(--ease), color .3s;
}
.menu__n { font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .14em; color: var(--glow); }
.menu__a { width: 18px; height: 18px; color: var(--on-night-3); transition: transform .4s var(--ease), color .3s; }
.menu__list a:hover .menu__a, .menu__list a:focus-visible .menu__a { color: var(--glow); transform: translateX(4px); }
.menu-open .menu__list a { transform: none; }
.menu-open .menu__list li:nth-child(2) a { transition-delay: .05s; }
.menu-open .menu__list li:nth-child(3) a { transition-delay: .1s; }
.menu-open .menu__list li:nth-child(4) a { transition-delay: .15s; }
.menu-open .menu__list li:nth-child(5) a { transition-delay: .2s; }
.menu-open .menu__list li:nth-child(6) a { transition-delay: .25s; }
.menu__foot { display: grid; gap: 22px; font-size: .92rem; color: var(--on-night-2); }
.menu__info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 18px; border-top: 1px solid var(--rule-night); }
.menu__info .label { color: var(--on-night-3); margin-bottom: 4px; font-size: .64rem; }
.menu__info a, .menu__info span { color: var(--on-night); overflow-wrap: anywhere; }
.menu__foot .btn { width: 100%; }
.menu-open { overflow: hidden; }
.menu-open .header { color: var(--on-night); }
.menu-open .header::before { background: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* Sprachumschalter */
.lang { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; letter-spacing: .14em; }
.lang a { opacity: .66; padding: 6px 2px; transition: opacity .3s; }
.lang a:hover, .lang a.is-current { opacity: 1; }
.lang a.is-current { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.lang span { opacity: .45; }
.footer .lang a { opacity: 1; color: var(--on-night-3); }
.footer .lang a.is-current, .footer .lang a:hover { color: var(--paper); }
.menu__info .lang { font-size: .86rem; }
@media (max-width: 480px) {
  .header--legal .btn { display: none; }
  .menu-btn__label { display: none; } /* schmale Handys: nur Symbol, Platz für den Sprachumschalter */
  .menu-btn { width: 44px; justify-content: flex-end; }
}

/* ---------- Intro ---------- */
.intro { display: none; }
.has-intro .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 120;
  background: var(--night); color: var(--paper);
  transition: transform 1s var(--ease-io);
}
.intro-done .intro { transform: translateY(-100%); pointer-events: none; }
.intro__logo { display: flex; align-items: center; gap: 22px; }
.intro .mark { height: 72px; width: auto; fill: currentColor; overflow: visible; }
.intro .mark rect { transform-box: fill-box; }
.intro .mark .b1, .intro .mark .b2, .intro .mark .b3 { transform: scaleX(0); transform-origin: left center; animation: bar .8s var(--ease) forwards; }
.intro .mark .b2 { transform-origin: right center; animation-delay: .12s; }
.intro .mark .b3 { animation-delay: .24s; }
.intro .mark .b4 { transform: scaleY(0); transform-origin: center top; animation: barY .9s var(--ease) .32s forwards; }
.intro__wm { display: flex; flex-direction: column; justify-content: space-between; height: 72px; line-height: 1; overflow: hidden; }
.intro__wm span { display: block; font-size: 17px; font-weight: 550; letter-spacing: .2em; opacity: 0; transform: translateY(8px); animation: wm .8s var(--ease) forwards; }
.intro__wm span:nth-child(1) { animation-delay: .5s; }
.intro__wm span:nth-child(2) { animation-delay: .58s; }
.intro__wm span:nth-child(3) { animation-delay: .66s; font-size: 21px; font-weight: 750; letter-spacing: .01em; }
@keyframes bar { to { transform: scaleX(1); } }
@keyframes barY { to { transform: scaleY(1); } }
@keyframes wm { to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; color: var(--on-night); background: var(--night);
  overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img {
  object-fit: cover; object-position: 50% 44%;
  transform: scale(1.14);
  transition: transform 2.6s var(--ease);
  will-change: transform;
}
.is-ready .hero__media img { transform: scale(1.02); }
.hero__media-inner { position: absolute; inset: 0; will-change: transform; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,19,33,.62) 0%, rgba(7,19,33,.08) 26%, rgba(7,19,33,0) 44%, rgba(7,19,33,.55) 72%, rgba(7,19,33,.94) 100%),
    linear-gradient(90deg, rgba(7,19,33,.62) 0%, rgba(7,19,33,.14) 55%, rgba(7,19,33,0) 100%);
}
.hero__inner {
  position: relative; width: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(var(--header-h) + clamp(20px, 4vh, 48px));
  padding-bottom: clamp(28px, 5vh, 56px);
}
.hero__meta { display: flex; justify-content: space-between; gap: 20px; color: var(--on-night-2); }
.hero__meta .label { color: inherit; }
.hero__meta .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--glow); margin-right: 12px; vertical-align: middle; box-shadow: 0 0 0 0 rgba(201,164,106,.6); animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201,164,106,.55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(201,164,106,0); } }
.hero__main { margin-top: auto; }
.hero__title { font-size: clamp(3.2rem, 7.9vw, 8.8rem); line-height: .92; max-width: 11.5em; }
.hero__title .line { display: block; }
.hero__title em { color: var(--glow-2); }
.hero__foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px;
  margin-top: clamp(28px, 4.4vh, 48px); padding-top: clamp(22px, 3vh, 32px);
  border-top: 1px solid var(--rule-night);
}
.hero__lede { max-width: 34em; font-size: clamp(1rem, 1.15vw, 1.14rem); color: var(--on-night-2); }
.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: .66rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--on-night-2);
  writing-mode: vertical-rl;
}
.hero__scroll i { position: relative; width: 1px; height: 64px; background: rgba(242,240,236,.25); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--paper); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }

/* Wortweise Einblendung */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(108%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + 120ms); }
.is-ready .hero [data-split] .w > span,
.js [data-split].is-in .w > span { transform: none; }
.js .hero__fade { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js.is-ready .hero__fade { opacity: 1; transform: none; }
.js.is-ready .hero__fade.d1 { transition-delay: .55s; }
.js.is-ready .hero__fade.d2 { transition-delay: .75s; }
.js.is-ready .hero__fade.d3 { transition-delay: .95s; }

/* ---------- Laufband ---------- */
.ticker { background: var(--night); color: var(--on-night); border-top: 1px solid var(--rule-night); overflow: hidden; padding: 26px 0 30px; }
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker__group { display: flex; align-items: center; flex: none; }
.ticker__item { display: inline-flex; align-items: center; gap: clamp(22px, 3vw, 44px); padding-right: clamp(22px, 3vw, 44px); font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.8rem); line-height: 1; white-space: nowrap; }
.ticker__item:nth-child(even) { color: var(--on-night-2); }
.ticker__item svg { height: .5em; width: auto; fill: var(--glow); }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Einblendungen beim Scrollen ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io); transition-delay: var(--d, 0s); }
.js .reveal-img img { transform: scale(1.18); transition: transform 1.8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0); }
.js .reveal-img.is-in img { transform: scale(1); }
.js .reveal-line { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.js .reveal-line.is-in { transform: scaleX(1); }

/* ---------- 01 Haltung ---------- */
.haltung { padding: clamp(96px, 13vw, 200px) 0 clamp(80px, 10vw, 150px); background: var(--paper); position: relative; }
.statement { font-size: clamp(2rem, 4vw, 4.1rem); line-height: 1.06; margin: 0; max-width: 22em; }
.statement .quote-mark { color: var(--glow-ink); }
.statement__by { display: flex; align-items: center; gap: 16px; margin-top: clamp(28px, 3vw, 44px); }
.statement__by .mark { height: 18px; width: auto; fill: var(--ink); }
.haltung__grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 120px);
  margin-top: clamp(80px, 10vw, 160px); padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--rule);
}
.haltung__text { display: grid; gap: 20px; color: var(--ink-2); max-width: 40em; }
.haltung__text p { font-size: clamp(1.02rem, 1.15vw, 1.12rem); line-height: 1.7; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--rule); }
.values li { padding: 34px clamp(20px, 3vw, 44px) 10px 0; border-right: 1px solid var(--rule); }
.values li + li { padding-left: clamp(20px, 3vw, 44px); }
.values li:last-child { border-right: 0; }
.values__num { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--glow-ink); margin-bottom: 30px; }
.values h3 { font-family: var(--sans); font-weight: 700; font-size: clamp(1.12rem, 1.3vw, 1.3rem); line-height: 1.25; letter-spacing: -.005em; margin-bottom: 10px; }
.values p { color: var(--ink-2); font-size: .98rem; max-width: 22em; }

/* ---------- 02 Über uns ---------- */
.wir { background: var(--paper-2); padding: clamp(96px, 12vw, 190px) 0; position: relative; overflow: hidden; overflow: clip; }
.wir__top { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 6vw, 110px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.wir__intro { display: grid; gap: 26px; justify-items: start; }
.wir__figure { margin: 0; position: relative; }
.wir__frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper-3); }
.wir__frame .parallax { position: absolute; inset: -7% 0; }
.wir__frame picture { height: 100%; }
.wir__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.wir__badge {
  position: absolute; right: clamp(-28px, -2vw, -12px); top: clamp(24px, 4vw, 56px); z-index: 2;
  width: clamp(112px, 10vw, 150px); aspect-ratio: 1; border-radius: 50%;
  background: var(--night); color: var(--paper);
  display: grid; place-items: center; text-align: center;
}
.wir__badge svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.wir__badge svg.ring text { font-family: var(--sans); font-size: 8.4px; font-weight: 700; letter-spacing: 0; fill: var(--paper); text-transform: uppercase; }
.wir__badge .mark { height: 26%; width: auto; fill: var(--glow); }
@keyframes spin { to { transform: rotate(360deg); } }
.wir__names { display: grid; grid-template-columns: 13% minmax(0, 1fr) minmax(0, 1fr) 12%; margin-top: 18px; }
.wir__name { display: grid; gap: 4px; align-content: start; }
.wir__name:first-child { grid-column: 2; }
.wir__name:last-child { grid-column: 3; }
.wir__name strong { font-size: clamp(1.05rem, 1.2vw, 1.2rem); font-weight: 700; letter-spacing: -.005em; color: var(--ink); }
.wir__name span { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: clamp(48px, 5vw, 80px) 0 0; padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--rule); }
.facts div { border-left: 1px solid var(--rule); padding-left: 18px; }
.facts dt { font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.facts dd { margin: 0; font-weight: 650; font-size: clamp(1.02rem, 1.15vw, 1.15rem); line-height: 1.35; }

/* ---------- 03 Ankauf ---------- */
.ankauf { position: relative; background: var(--night); color: var(--on-night); padding: clamp(96px, 12vw, 190px) 0; overflow: hidden; overflow: clip; isolation: isolate; }
.ankauf::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 85% 20%, rgba(201,164,106,.12), transparent 70%), radial-gradient(50% 50% at 0% 100%, rgba(18,38,61,.9), transparent 70%); }
.ankauf__top { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 110px); align-items: end; }
.ankauf__top .h2 em { color: var(--glow-2); }
.ankauf__grid { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(36px, 6vw, 110px); margin-top: clamp(64px, 8vw, 120px); align-items: start; }
.types__list { border-top: 1px solid var(--rule-night); margin-top: 20px; }
.types__list li { border-bottom: 1px solid var(--rule-night); }
.types__btn {
  position: relative; width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: clamp(18px, 1.7vw, 24px) 0; text-align: left; color: var(--on-night);
  overflow: hidden;
}
.types__btn::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--glow); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); }
.types__btn:hover::before, .types__btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.types__n { font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--on-night-3); transition: color .4s; }
.types__t { font-weight: 650; font-size: clamp(1.1rem, 1.4vw, 1.35rem); line-height: 1.3; letter-spacing: -.005em; transition: transform .6s var(--ease); }
.types__a { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--on-night-3); transition: color .4s; }
.types__a svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.types__btn:hover .types__t { transform: translateX(10px); }
.types__btn:hover .types__n, .types__btn:hover .types__a { color: var(--glow); }
.types__btn:hover .types__a svg { transform: translateX(4px); }
.checks { display: grid; gap: 16px; margin-top: clamp(40px, 4vw, 56px); }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 16px; color: var(--on-night-2); font-size: 1rem; line-height: 1.6; }
.checks svg { width: 22px; height: 22px; margin-top: 2px; stroke: var(--glow); }

/* Karte */
.map { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.map__frame { position: relative; aspect-ratio: 1; background: var(--night-2); border: 1px solid var(--rule-night); overflow: hidden; }
.map svg { width: 100%; height: 100%; }
.map .grid-line { stroke: rgba(242,240,236,.05); stroke-width: 1; }
.map .water { fill: none; stroke: rgba(120,160,200,.34); stroke-linecap: round; }
.map .lake { fill: rgba(120,160,200,.2); }
.map .road { fill: none; stroke: rgba(242,240,236,.16); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.map .road-label { font: 700 13px var(--sans); letter-spacing: .1em; fill: rgba(242,240,236,.55); }
.map .ring { fill: none; stroke: rgba(242,240,236,.12); stroke-width: 1; }
.map .ring--main { stroke: var(--glow); stroke-width: 1.6; stroke-dasharray: 2451; stroke-dashoffset: 2451; transition: stroke-dashoffset 2.6s var(--ease-io) .2s; }
.map .area { opacity: 0; transition: opacity 1.6s ease 1.4s; }
.map .ring--outer { fill: none; stroke: var(--glow); stroke-opacity: .5; stroke-width: 1.4; stroke-dasharray: 5 11; opacity: 0; transition: opacity 1.4s ease 2.4s; }
.map .town circle { fill: var(--paper); }
.map .town text { font: 700 17px var(--sans); letter-spacing: .14em; fill: var(--paper); paint-order: stroke; stroke: var(--night-2); stroke-width: 6px; stroke-linejoin: round; }
.map .town--minor circle { fill: rgba(242,240,236,.5); }
.map .town--minor text { font-size: 13.5px; font-weight: 600; fill: rgba(242,240,236,.76); }
.map .town .sub { font-size: 12px; fill: var(--glow); letter-spacing: .16em; }
.map .town { opacity: 0; transform: translateY(8px); transform-box: fill-box; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.map .center-label { font-family: var(--serif); font-size: 52px; fill: var(--paper); paint-order: stroke; stroke: var(--night-2); stroke-width: 8px; stroke-linejoin: round; }
.map .center-dot { fill: var(--glow); }
.map .center-pulse { fill: none; stroke: var(--glow); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: mapPulse 3s ease-out infinite; }
@keyframes mapPulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(4); opacity: 0; } }
.map .ring-label rect { fill: var(--glow); }
.map .ring-label text { font: 800 13px var(--sans); letter-spacing: .18em; fill: var(--night); }
.map .ring-label { opacity: 0; transition: opacity .8s ease 2.2s; }
.map .outer-label rect { fill: var(--night-2); stroke: var(--glow); stroke-opacity: .7; stroke-width: 1.2; stroke-dasharray: 5 6; }
.map .outer-label text { font: 800 13px var(--sans); letter-spacing: .16em; fill: var(--glow-2); }
.map .outer-label { opacity: 0; transition: opacity .8s ease 2.8s; }
.map .town--outside circle { fill: none; stroke: rgba(242,240,236,.6); stroke-width: 1.5; }
.map .compass text { font: 700 14px var(--sans); fill: rgba(242,240,236,.75); letter-spacing: .1em; }
.map .compass path { fill: rgba(242,240,236,.6); }
.map .scale text { font: 600 12px var(--sans); fill: rgba(242,240,236,.72); letter-spacing: .12em; }
.map .scale line { stroke: rgba(242,240,236,.5); stroke-width: 1.5; }
.map.is-in .ring--main { stroke-dashoffset: 0; }
.map.is-in .area, .map.is-in .ring-label, .map.is-in .ring--outer, .map.is-in .outer-label { opacity: 1; }
.map.is-in .town { opacity: 1; transform: none; }
.no-js .map .ring--main { stroke-dashoffset: 0; }
.no-js .map .town, .no-js .map .area, .no-js .map .ring-label, .no-js .map .ring--outer, .no-js .map .outer-label { opacity: 1; transform: none; }
.map__legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 14px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-2); }
.map__legend span { display: inline-flex; align-items: center; gap: 10px; }
.lg { display: inline-block; width: 26px; height: 0; border-top: 1.6px solid var(--glow); flex: none; }
.lg--dash { border-top-style: dashed; opacity: .8; }

/* Ablauf als Prozesskette */
.process { margin-top: clamp(80px, 10vw, 150px); }
.chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 34px; }
.chain__step { position: relative; }
.chain__step h3, .chain__step p { padding-right: clamp(18px, 2.4vw, 40px); }
.chain__node { position: relative; display: flex; align-items: center; height: 56px; margin-bottom: 26px; }
.chain__n {
  position: relative; z-index: 1; flex: none; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; border: 1.5px solid var(--glow); background: var(--night);
  font-size: .82rem; font-weight: 750; letter-spacing: .08em; color: var(--glow);
  transition: background-color .6s var(--ease), color .6s var(--ease); transition-delay: var(--d, 0s);
}
.chain__step:not(:last-child) .chain__node::before,
.chain__step:not(:last-child) .chain__node::after { content: ""; position: absolute; left: 68px; right: 14px; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--rule-night); }
.chain__step:not(:last-child) .chain__node::after { background: var(--glow); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); transition-delay: calc(var(--d, 0s) + .25s); }
.chain__arrow { position: absolute; right: 14px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-top: 1.5px solid var(--glow); border-right: 1.5px solid var(--glow); transform: rotate(45deg); opacity: 0; transition: opacity .4s ease; transition-delay: calc(var(--d, 0s) + .9s); }
.process.is-in .chain__node::after { transform: scaleX(1); }
.process.is-in .chain__arrow { opacity: 1; }
.process.is-in .chain__n { background: var(--glow); color: var(--night); }
.no-js .chain__node::after { transform: scaleX(1); }
.no-js .chain__arrow { opacity: 1; }
.chain h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 700; letter-spacing: .005em; margin-bottom: 10px; color: var(--on-night); }
.chain p { font-size: .96rem; color: var(--on-night-2); line-height: 1.65; }
.ankauf__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; margin-top: clamp(56px, 6vw, 88px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--rule-night); }
.ankauf__cta p { font-size: .98rem; }
.ankauf__cta a { color: var(--on-night); }

/* ---------- 04 Bestand (Galerie mit automatischem Durchlauf) ---------- */
.bestand { background: var(--paper); position: relative; padding: clamp(96px, 12vw, 180px) 0 clamp(80px, 10vw, 150px); overflow: hidden; overflow: clip; }
.bestand__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 52px); }
.bestand__head .sec-head { margin-bottom: 22px; }
.carousel__ui { display: flex; align-items: center; gap: 16px; font-size: .76rem; font-weight: 700; letter-spacing: .16em; color: var(--ink-3); }
.carousel__bar { position: relative; width: clamp(64px, 9vw, 140px); height: 1px; background: var(--rule); overflow: hidden; }
.carousel__bar b { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.carousel__bar b.is-running { animation: carBar var(--car-dur, 5200ms) linear forwards; }
@keyframes carBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.carousel__btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(11,21,38,.3); display: grid; place-items: center; color: var(--ink); transition: background-color .3s, color .3s, border-color .3s; }
.carousel__btn:hover, .carousel__btn:focus-visible { background: var(--night); color: var(--paper); border-color: var(--night); }
.carousel__btn svg { width: 18px; height: 18px; }
.carousel__track {
  --car-pad: max(var(--gutter), calc((100vw - var(--max)) / 2));
  display: flex; gap: clamp(16px, 2vw, 32px);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  padding: 0 var(--car-pad) 4px; scroll-padding-left: var(--car-pad);
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track::after { content: ""; flex: 0 0 1px; scroll-snap-align: end; }
.panel { position: relative; flex: none; margin: 0; height: min(64vh, 620px); overflow: hidden; background: var(--paper-3); scroll-snap-align: start; }
.panel--wide { width: min(58vw, 980px); }
.panel--tall { width: min(36vw, 480px); }
.panel--mid { width: min(48vw, 780px); }
.panel picture, .panel img { width: 100%; height: 100%; }
.panel img { object-fit: cover; transition: transform 1.4s var(--ease); }
.panel:hover img { transform: scale(1.035); }
.panel--wide img { object-position: 50% 40%; filter: saturate(.86) contrast(1.04); }
.panel--tall img { object-position: 50% 40%; }
.panel figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(72px, 7vw, 110px) clamp(22px, 2.4vw, 34px) clamp(22px, 2.4vw, 32px);
  color: var(--paper);
  background: linear-gradient(180deg, rgba(7,19,33,0) 0%, rgba(7,19,33,.64) 38%, rgba(7,19,33,.9) 100%);
  display: grid; gap: 6px; text-shadow: 0 1px 14px rgba(7,19,33,.45);
}
.panel figcaption .label { color: rgba(242,240,236,.9); }
.panel figcaption strong { font-weight: 700; font-size: clamp(1.15rem, 1.4vw, 1.4rem); line-height: 1.25; letter-spacing: -.005em; }
.panel figcaption span.txt { font-size: .95rem; line-height: 1.6; color: rgba(242,240,236,.92); max-width: 34em; }
.panel__idx { position: absolute; top: 18px; left: 20px; z-index: 1; padding: 6px 9px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; color: var(--paper); background: rgba(7,19,33,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.panel--cta { width: min(36vw, 480px); background: var(--night); color: var(--on-night); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 3vw, 44px); }
.panel--cta .mark { height: 44px; width: auto; fill: var(--glow); }
.panel--cta h3 { font-family: var(--serif); font-size: clamp(1.9rem, 2.6vw, 2.6rem); line-height: 1.04; }
.panel--cta h3 em { color: var(--glow-2); }
.panel--cta p { color: var(--on-night-2); margin: 16px 0 28px; font-size: .98rem; }

/* ---------- 05 Mieter ---------- */
.mieter { background: var(--paper-2); padding: clamp(96px, 12vw, 190px) 0; }
.mieter__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 7vw, 130px); align-items: start; }
.mieter__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.mieter__intro .h2 { margin-bottom: 28px; }
.mieter__intro .arrow-link { margin-top: 32px; }
.services { border-top: 1px solid var(--rule); }
.services li { border-bottom: 1px solid var(--rule); }
.service {
  position: relative; isolation: isolate; width: 100%; text-align: left;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 48px; gap: clamp(16px, 2.4vw, 32px); align-items: center;
  padding: clamp(28px, 3vw, 44px) clamp(8px, 1.4vw, 24px);
  transition: color .6s var(--ease);
}
.service::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--night); clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io); }
.service:hover::before, .service:focus-visible::before { clip-path: inset(0 0 0 0); }
.service:hover, .service:focus-visible { color: var(--paper); }
.service__icon { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--rule); display: grid; place-items: center; transition: border-color .6s, background-color .6s; }
.service__icon svg { width: 26px; height: 26px; }
.service:hover .service__icon { border-color: rgba(242,240,236,.25); background: rgba(242,240,236,.06); }
.service__body { display: block; }
.service__title { display: block; font-weight: 700; font-size: clamp(1.15rem, 1.4vw, 1.4rem); line-height: 1.25; letter-spacing: -.005em; margin-bottom: 8px; }
.service__text { display: block; color: var(--ink-2); font-size: 1rem; max-width: 34em; transition: color .6s var(--ease); }
.service:hover .service__text, .service:focus-visible .service__text { color: var(--on-night-2); }
.service__go { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--rule); display: grid; place-items: center; align-self: center; transition: transform .6s var(--ease), background-color .6s, border-color .6s, color .6s; }
.service__go svg { width: 18px; height: 18px; }
.service:hover .service__go { background: var(--glow); border-color: var(--glow); color: var(--night); transform: rotate(-45deg); }

/* ---------- 06 Kontakt ---------- */
.kontakt { position: relative; background: var(--night); color: var(--on-night); overflow: hidden; isolation: isolate; padding: clamp(110px, 14vw, 220px) 0 clamp(90px, 10vw, 150px); }
.kontakt__bg { position: absolute; inset: -12% 0; z-index: -2; }
.kontakt__bg picture, .kontakt__bg img { width: 100%; height: 100%; }
.kontakt__bg img { object-fit: cover; object-position: 50% 45%; filter: saturate(.9); }
.kontakt::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,19,33,.96) 0%, rgba(7,19,33,.78) 45%, rgba(7,19,33,.9) 100%), linear-gradient(90deg, rgba(7,19,33,.85), rgba(7,19,33,.2)); }
.kontakt .display { font-size: clamp(2.8rem, 6.4vw, 6.6rem); line-height: .96; max-width: 11em; }
.kontakt .display em { color: var(--glow-2); }
.kontakt__row { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 110px); align-items: end; margin-top: clamp(48px, 6vw, 88px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--rule-night); }
.mail-big { font-family: var(--serif); font-size: clamp(1.45rem, 3.1vw, 3.1rem); line-height: 1.15; color: var(--paper); word-break: normal; overflow-wrap: anywhere; }
.kontakt__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.kontakt address { font-style: normal; color: var(--on-night-2); line-height: 1.8; }
.kontakt address strong { display: block; color: var(--on-night); font-weight: 700; margin-bottom: 6px; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--on-night); padding: clamp(64px, 7vw, 100px) 0 28px; border-top: 1px solid var(--rule-night); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 5fr 3fr 3fr 3fr; gap: 32px; }
.footer__top .logo .mark { height: 46px; }
.footer__top .logo__wm { height: 46px; }
.footer__top .logo__wm span { font-size: 11.5px; }
.footer__top .logo__wm span:last-child { font-size: 14px; }
.footer__claim { margin-top: 26px; font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; color: var(--on-night-2); max-width: 16em; }
.footer h4 { font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--on-night-3); margin-bottom: 18px; }
.footer__col { display: grid; align-content: start; gap: 8px; font-size: .95rem; color: var(--on-night-2); }
.footer__col a, .footer__col button { justify-self: start; color: var(--on-night-2); transition: color .3s; text-align: left; }
.footer__col a:hover, .footer__col button:hover { color: var(--paper); }
.footer__bottom { display: grid; gap: 14px; margin-top: clamp(48px, 6vw, 80px); padding-top: 24px; border-top: 1px solid var(--rule-night); font-size: .82rem; color: var(--on-night-3); }
.footer__resp { color: var(--on-night-2); max-width: 62em; line-height: 1.6; }
.footer__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; font-size: .82rem; color: var(--on-night-3); }
.footer__meta a, .footer__meta button { color: var(--on-night-3); transition: color .3s; }
.footer__meta a:hover, .footer__meta button:hover { color: var(--paper); }
.footer--legal { padding: 28px 0 24px; }
.footer__ai { margin-top: 18px; font-size: .78rem; line-height: 1.6; color: var(--on-night-3); max-width: 60em; }
.footer__ai strong { font-weight: 700; color: var(--on-night-2); }

/* ---------- Schwebender Assistent ---------- */
.fab {
  position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 50;
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 22px 0 8px; border-radius: 999px;
  background: var(--night); color: var(--paper);
  box-shadow: 0 18px 40px -12px rgba(7,19,33,.5), 0 0 0 1px rgba(242,240,236,.12) inset;
  font-size: .86rem; font-weight: 700; letter-spacing: .02em;
  transform: translateY(140%); transition: transform .7s var(--ease), background-color .4s;
}
.fab.is-visible { transform: none; }
.fab:hover { background: var(--night-3); }
.fab__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--glow); color: var(--night); display: grid; place-items: center; }
.fab__icon svg { width: 19px; height: 19px; }
.fab__label { display: inline-block; white-space: nowrap; overflow: hidden; max-width: 220px; transition: max-width .5s var(--ease), opacity .35s ease; }

/* ---------- Seitenleisten (Formular & Assistent) ---------- */
.sheet { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: flex-end; }
.sheet[hidden] { display: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(7,19,33,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s ease; }
.sheet__panel {
  position: relative; width: min(620px, 100%); height: 100%;
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .7s var(--ease-io);
}
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding: clamp(24px, 3vw, 40px) clamp(22px, 3vw, 44px) 22px; border-bottom: 1px solid var(--rule); }
.sheet__head h3 { font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1; margin: 10px 0 12px; }
.sheet__head p.sub { font-size: .95rem; color: var(--ink-2); line-height: 1.6; }
.sheet__close { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--rule); display: grid; place-items: center; transition: transform .5s var(--ease), background-color .3s; }
.sheet__close:hover { transform: rotate(90deg); background: var(--paper-2); }
.sheet__close svg { width: 18px; height: 18px; }
.sheet__head-actions { display: flex; gap: 10px; }
.sheet__body { flex: 1; min-height: 0; overflow: auto; padding: 26px clamp(22px, 3vw, 44px) 32px; overscroll-behavior: contain; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgba(11,21,38,.24); background: transparent;
  padding: 10px 0 12px; font-size: 1.02rem; color: var(--ink); outline: none; border-radius: 0;
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230b1526' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 24px; }
.field textarea { min-height: 120px; resize: vertical; border: 1px solid rgba(11,21,38,.2); padding: 12px 14px; margin-top: 4px; }
.field input:focus, .field select:focus { border-bottom-color: var(--ink); }
.field textarea:focus { border-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: rgba(11,21,38,.6); }
.sheet__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--rule); }
.sheet__foot .note { font-size: .82rem; color: var(--ink-3); line-height: 1.55; max-width: 26em; }

/* Assistent */
.chat { display: grid; grid-template-rows: minmax(0, 1fr) auto auto auto; height: 100%; gap: 14px; }
.chat__log { min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 12px; padding: 4px 2px 8px; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 13px 16px; font-size: .96rem; line-height: 1.55; animation: msgIn .5s var(--ease); }
.msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--rule); }
.msg--user { align-self: flex-end; background: var(--night); color: var(--paper); }
.msg--summary { max-width: 100%; width: 100%; }
.msg--summary strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin-bottom: 10px; }
.msg--summary dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: .92rem; }
.msg--summary dt { color: var(--ink-3); font-weight: 700; }
.msg--summary dd { margin: 0; overflow-wrap: anywhere; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chat__options { display: flex; flex-wrap: wrap; gap: 8px; }
.chat__options:empty { display: none; }
.chat__options button { border: 1px solid rgba(11,21,38,.24); padding: 10px 16px; font-size: .9rem; font-weight: 650; transition: background-color .3s, color .3s; }
.chat__options button:hover { background: var(--night); color: var(--paper); border-color: var(--night); }
.chat__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.chat__form.is-hidden { display: none; }
.chat__form input { border: 1px solid rgba(11,21,38,.24); background: #fff; padding: 0 16px; min-height: 56px; outline: none; border-radius: 0; }
.chat__form input:focus { border-color: var(--ink); }
.chat__note { font-size: .78rem; color: var(--ink-3); line-height: 1.5; }

/* ---------- Hinweis & Toast ---------- */
@media (max-width: 760px) { .notice-on .fab { transform: translateY(160%); } }
.notice {
  position: fixed; left: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 70;
  width: min(420px, calc(100% - 28px));
  background: var(--paper); color: var(--ink); border: 1px solid var(--rule);
  box-shadow: 0 24px 60px -20px rgba(7,19,33,.35);
  padding: 20px 22px;
  transform: translateY(calc(100% + 40px)); transition: transform .8s var(--ease);
}
.notice.is-visible { transform: none; }
.notice p { font-size: .88rem; line-height: 1.6; color: var(--ink-2); }
.notice p strong { color: var(--ink); }
.notice__actions { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.notice .btn { min-height: 44px; padding: 0 20px; font-size: .82rem; }
.notice a { font-size: .84rem; font-weight: 650; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 160%); background: var(--night); color: var(--paper); padding: 16px 22px; font-size: .9rem; max-width: calc(100% - 32px); transition: transform .6s var(--ease); box-shadow: 0 18px 40px -12px rgba(7,19,33,.5); }
.toast.is-visible { transform: translate(-50%, 0); }

/* ---------- Körnung (Print-Anmutung) ---------- */
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero.grain::after { z-index: -1; }
.kontakt.grain::after { z-index: -1; }

/* ---------- Rechtstexte ---------- */
.legal { background: var(--paper); padding: calc(var(--header-h) + clamp(48px, 7vw, 100px)) 0 clamp(80px, 9vw, 130px); }
.legal .h1 { font-size: clamp(3rem, 7vw, 6.4rem); margin: 0 0 clamp(40px, 5vw, 72px); }
.legal__grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 6vw, 110px); }
.legal__aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; color: var(--ink-2); font-size: .95rem; }
.legal__list { border-top: 1px solid var(--rule); }
.legal__item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.legal__item h2 { font-family: var(--sans); font-size: 1rem; font-weight: 750; letter-spacing: .01em; }
.legal__item p { color: var(--ink-2); font-size: 1rem; }
.legal__item a { text-decoration: underline; text-underline-offset: 3px; }
.header--legal { color: var(--ink); }
.header--legal::before { background: rgba(242, 240, 236, .9) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--rule); }

/* ---------- Responsiv ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header__cta .btn--head { display: none; }
}
@media (min-width: 1181px) {
  .menu { display: none; }
}
@media (max-width: 1024px) {
  .hero__scroll { display: none; }
  .ankauf__top, .ankauf__grid, .wir__top, .mieter__grid, .kontakt__row, .haltung__grid { grid-template-columns: minmax(0, 1fr); }
  .map, .mieter__intro { position: relative; top: auto; }
  /* Prozesskette senkrecht */
  .chain { grid-template-columns: minmax(0, 1fr); }
  .chain__step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 22px; padding-bottom: 34px; }
  .chain__step:last-child { padding-bottom: 0; }
  .chain__step h3, .chain__step p { grid-column: 2; padding-right: 0; }
  .chain__step h3 { margin-top: 15px; }
  .chain__node { grid-column: 1; grid-row: 1 / span 2; height: auto; margin: 0; align-items: flex-start; }
  .chain__step:not(:last-child) .chain__node::before,
  .chain__step:not(:last-child) .chain__node::after { left: 27px; right: auto; top: 68px; bottom: -22px; width: 1.5px; height: auto; margin: 0; }
  .chain__step:not(:last-child) .chain__node::after { transform: scaleY(0); transform-origin: top; }
  .process.is-in .chain__node::after, .no-js .chain__node::after { transform: scaleY(1); }
  .chain__arrow { right: auto; left: 23px; top: auto; bottom: -21px; margin: 0; transform: rotate(135deg); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer__top > :first-child { grid-column: 1 / -1; }
  .legal__grid { grid-template-columns: minmax(0, 1fr); }
  .legal__aside { position: relative; top: auto; }
}
@media (max-width: 1023px) {
  .panel { height: min(64vh, 540px); }
  .panel--wide, .panel--mid { width: 84vw; }
  .panel--tall { width: 68vw; }
  .panel--cta { width: 74vw; }
}
@media (max-width: 760px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .header.is-scrolled { --header-h: 62px; }
  .logo .mark { height: 32px; }
  .logo__wm { height: 32px; }
  .logo__wm span { font-size: 8.2px; }
  .logo__wm span:last-child { font-size: 10px; }
  .hero__media img { object-position: 64% 50%; }
  .hero__shade { background: linear-gradient(180deg, rgba(7,19,33,.66) 0%, rgba(7,19,33,.08) 22%, rgba(7,19,33,.06) 38%, rgba(7,19,33,.7) 62%, rgba(7,19,33,.96) 100%); }
  .hero__title { font-size: clamp(2.8rem, 13.2vw, 4.6rem); line-height: .93; }
  .hero__title em { display: block; }
  .hero__lede { font-size: .98rem; line-height: 1.62; }
  .hero__meta .hide-sm { display: none; }
  .hero__foot { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .hero__actions { gap: 18px 24px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .values { grid-template-columns: minmax(0, 1fr); }
  .values li, .values li + li { padding: 28px 0 24px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .values__num { margin-bottom: 16px; }
  .wir__frame { aspect-ratio: 5 / 4; }
  .wir__frame img { object-position: 50% 35%; }
  .wir__names { grid-template-columns: 5% minmax(0, 1fr) minmax(0, 1fr) 0; gap: 12px; }
  .wir__name span { font-size: .62rem; letter-spacing: .12em; }
  .bestand__head { grid-template-columns: minmax(0, 1fr); }
  .carousel__ui { justify-content: flex-start; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .wir__badge { right: 10px; top: -58px; width: 88px; } /* über der Bildkante statt über den Gesichtern */
  .wir__figure { margin-top: 64px; }
  .types__btn { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .types__a span { display: none; }
  .ankauf__cta .btn { width: 100%; }
  .service { grid-template-columns: 52px minmax(0, 1fr); padding: 28px 4px; }
  .service__icon { width: 52px; height: 52px; }
  .service__go { display: none; }
  .kontakt__actions .btn { flex: 1 1 100%; }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .footer__meta { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .sheet__panel { width: 100%; }
  .sheet__foot .btn { width: 100%; }
  .msg--summary dl { grid-template-columns: minmax(0, 1fr); }
  .msg--summary dd { margin-bottom: 6px; }
  /* Mobil: runder Punkt – erster Tipp klappt aus, zweiter öffnet den Assistenten */
  .fab { height: 52px; padding: 0 6px; gap: 0; font-size: .82rem; transition: transform .7s var(--ease), background-color .4s, padding .5s var(--ease), gap .5s var(--ease); }
  .fab__icon { width: 40px; height: 40px; transition: transform .5s var(--ease); }
  .fab__label { max-width: 0; opacity: 0; }
  .fab.is-expanded { padding: 0 18px 0 6px; gap: 12px; }
  .fab.is-expanded .fab__label { max-width: 220px; opacity: 1; }
  .fab.is-expanded .fab__icon { transform: rotate(-8deg) scale(1.04); }
  .notice { left: 12px; right: 12px; width: auto; bottom: 12px; }
  /* Karte: größere Beschriftung, Nebenorte ausblenden */
  .map .town text { font-size: 27px; letter-spacing: .04em; stroke-width: 8px; }
  .map .town .sub { font-size: 19px; letter-spacing: .06em; }
  .map .town circle { r: 9px; }
  .map .town--minor text { font-size: 20px; letter-spacing: .02em; stroke-width: 7px; }
  .map .road-label, .map .scale, .map .compass { display: none; }
  .map .outer-label text { font-size: 20px; letter-spacing: .06em; }
  .map .center-label { font-size: 76px; }
  .map .ring-label text { font-size: 20px; letter-spacing: .08em; }
  .map__legend { flex-direction: column; letter-spacing: .08em; }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .ticker__track { animation: none; }
}
@media (min-width: 761px) and (max-width: 1024px) {
  .wir__frame { aspect-ratio: 3 / 2; }
  .map { max-width: 720px; }
}
