/* ==========================================================================
   BOROD Immobilien & Verwaltung – Designsystem 2026
   Ruhige Flächen in warmem Off-White, Anthrazit als Hauptkontrast,
   BOROD-Violett nur als sparsamer Markenakzent.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
/* Metrisch angepasster Fallback gegen Layoutsprünge beim Schriftwechsel */
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 103%;
  ascent-override: 102%;
  descent-override: 29%;
  line-gap-override: 0%;
}

:root {
  /* Farben */
  --paper:       #f4f2ed;   /* warmes Off-White – Grundfläche */
  --cream:       #fbfaf7;   /* helles Cremeweiß – erhöhte Flächen */
  --sand:        #ebe7df;   /* weiche Füllfläche */
  --line:        #dcd6cc;   /* Haarlinien */
  --line-strong: #bfb8ab;
  --field-line:  #878175;   /* Rand von Eingabefeldern: ≥ 3:1 (WCAG 1.4.11) */
  --ink:         #17171a;   /* Anthrazit – Überschriften */
  --text:        #35353a;   /* Fließtext */
  --muted:       #63605a;   /* Sekundärtext (7:1 auf Paper nicht nötig, 5.6:1 erreicht) */
  --graphite:    #2a0f31;   /* tiefes BOROD-Violett: Kontaktfläche */
  --graphite-2:  #2d2d32;
  --on-dark:     #f6f1f7;
  --on-dark-2:   #cbbad0;
  --accent:      #4f165a;   /* BOROD-Violett (aus Logo) */
  --accent-2:    #8b5b94;   /* Violett auf dunklem Grund */
  --accent-soft: #e7e0e8;
  /* BOROD-Violett in Abstufungen (aus Logo und Briefpapier) */
  --v-900: #35123f;
  --v-800: #4f165a;
  --v-700: #561b63;
  --v-500: #896e8f;
  --v-300: #c5b5c8;
  --v-100: #ece5ef;
  --v-50:  #f5f1f6;
  --ok:          #2f5f45;
  --error:       #9c2a2a;

  /* Typografie */
  --font: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(2.6rem, 1.15rem + 5.6vw, 6.4rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  --fs-h3: clamp(1.25rem, 1.12rem + .5vw, 1.55rem);
  --fs-lead: clamp(1.1rem, 1.02rem + .35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-label: .75rem;

  /* Raster & Abstände */
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --space-section: clamp(88px, 11vw, 168px);
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;
  --header-h: 84px;

  /* Bewegung – eine gemeinsame Bewegungssprache */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --dur-1: .18s;
  --dur-2: .42s;
  --dur-3: .9s;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 450;
  line-height: 1.65;
  font-feature-settings: "ss01" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--fs-display); line-height: .98; letter-spacing: -.045em; font-weight: 600; }
h2 { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.035em; }
h3 { font-size: var(--fs-h3); line-height: 1.22; letter-spacing: -.02em; }
strong { font-weight: 650; color: var(--ink); }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 300;
  padding: 12px 18px; background: var(--ink); color: var(--cream); border-radius: var(--radius-s); text-decoration: none;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); position: relative; }
.section--sand { background: var(--sand); }
.section--violet { background: var(--v-50); }
.section--dark { background: var(--graphite); color: var(--on-dark-2); }
.section--dark h2, .section--dark h3, .section--dark strong { color: var(--on-dark); }

/* Label – kleine Rubrikenzeile mit Markenquadrat */
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--fs-label); font-weight: 650; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 28px;
}
.label::before { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 1px; }
.section--dark .label { color: var(--on-dark-2); }
.section--dark .label::before { background: var(--v-300); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text); max-width: 38em; }
.muted { color: var(--muted); }

/* ---------- Buttons: Radius-Morph + Pfeil ---------- */
.btn {
  --bg: var(--v-800); --fg: #fff; --bd: var(--v-800);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 15px 26px;
  font: 600 .98rem/1.2 var(--font); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  color: var(--fg); background: var(--bg); border: 1px solid var(--bd); border-radius: var(--radius-s);
  cursor: pointer;
  transition: border-radius var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), transform var(--dur-1) ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--v-900); border-radius: inherit;
  transform: translateY(101%); transition: transform var(--dur-2) var(--ease-out);
}
.btn:hover { border-radius: 28px; border-color: var(--v-900); }
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.98); }
.btn__arrow { width: 18px; height: 18px; transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-strong); }
.btn--ghost:hover { color: var(--cream); }
.btn--ghost::before { background: var(--v-800); }
.btn--ghost:hover { border-color: var(--v-800); }
.btn--light { --bg: var(--cream); --fg: var(--ink); --bd: var(--cream); }
.btn--light:hover { color: #fff; border-color: var(--accent-2); }
.btn--light::before { background: var(--accent); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .75; }
.btn[aria-busy="true"] .btn__arrow { animation: busy 1s var(--ease-io) infinite; }
@keyframes busy { 50% { transform: translateX(6px); opacity: .4; } }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--ink); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px; transition: background-size var(--dur-2) var(--ease-out), color var(--dur-1);
}
.text-link:hover { background-size: 100% 1px; color: var(--accent); }
.text-link svg { width: 18px; height: 18px; transition: transform var(--dur-2) var(--ease-out); }
.text-link:hover svg { transform: translateX(4px); }

.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  transition: box-shadow var(--dur-2) var(--ease-out);
}
.header::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-3) var(--ease-out); }
.header.is-compact::after { transform: none; }
.header__inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); transition: height var(--dur-2) var(--ease-out); }
.header.is-compact .header__inner { height: 68px; }
.brand { flex: none; line-height: 0; }
.brand img { width: 190px; height: auto; transition: width var(--dur-2) var(--ease-out); }
.header.is-compact .brand img { width: 150px; }

.nav { position: relative; margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 14px; border-radius: var(--radius-s);
  font-size: .95rem; font-weight: 550; color: var(--text); text-decoration: none;
  transition: color var(--dur-1);
}
.nav a:hover, .nav a[aria-current="true"], .nav a[aria-current="page"] { color: var(--ink); }
.nav__indicator {
  position: absolute; left: 0; bottom: 2px; height: 2px; width: 0;
  background: var(--accent); border-radius: 2px; opacity: 0;
  transition: transform var(--dur-2) var(--ease-out), width var(--dur-2) var(--ease-out), opacity var(--dur-1);
}
.header__cta { flex: none; }
.header__cta-short { display: none; }

/* Menü-Schalter: zwei Linien morphen zum Kreuz */
.menu-btn {
  display: none; position: relative; width: 48px; height: 48px; flex: none;
  border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; cursor: pointer; color: var(--ink);
  transition: border-color var(--dur-1), background var(--dur-2) var(--ease-out);
}
.menu-btn span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform var(--dur-2) var(--ease-out), width var(--dur-2) var(--ease-out); }
.menu-btn span:nth-child(1) { top: 19px; }
.menu-btn span:nth-child(2) { top: 27px; right: 19px; }
.menu-btn[aria-expanded="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); right: 14px; }

@media (max-width: 960px) {
  .nav, .header__cta-long { display: none; }
  .menu-btn { display: inline-block; }
  .header__cta { margin-left: auto; }
  .header__cta-short { display: inline; }
  .header__inner { gap: 12px; }
}
@media (max-width: 380px) { .header__cta { display: none; } .menu-btn { margin-left: auto; } .brand img { width: 140px; } }
@media (max-width: 560px) { :root { --header-h: 72px; } .brand img { width: 148px; } }

/* Mobile Navigation – Fläche öffnet sich kreisförmig aus dem Menü-Schalter */
.mnav {
  position: fixed; inset: 0; z-index: 90;
  background: var(--paper);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column;
  clip-path: circle(0 at var(--mx, 90%) var(--my, 40px));
  visibility: hidden;
  transition: clip-path .7s var(--ease-io), visibility 0s linear .7s;
  overflow-y: auto;
}
.mnav.is-open { clip-path: circle(150% at var(--mx, 90%) var(--my, 40px)); visibility: visible; transition: clip-path .7s var(--ease-io); }
.mnav ul { border-top: 1px solid var(--line); }
.mnav li { border-bottom: 1px solid var(--line); overflow: hidden; }
.mnav__link {
  display: flex; justify-content: space-between; align-items: center; min-height: 72px;
  font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; color: var(--ink); text-decoration: none;
  transform: translateY(100%); transition: transform .6s var(--ease-out), color var(--dur-1);
}
.mnav__link svg { width: 24px; height: 24px; color: var(--muted); }
.mnav.is-open .mnav__link { transform: none; }
.mnav.is-open li:nth-child(2) .mnav__link { transition-delay: .05s; }
.mnav.is-open li:nth-child(3) .mnav__link { transition-delay: .1s; }
.mnav.is-open li:nth-child(4) .mnav__link { transition-delay: .15s; }
.mnav__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 18px; opacity: 0; transition: opacity .4s ease .25s; }
.mnav.is-open .mnav__foot { opacity: 1; }
.mnav__contact { display: grid; gap: 6px; font-size: 1.05rem; }
.mnav__contact a { color: var(--ink); text-decoration: none; padding: 8px 0; }
body.menu-open { overflow: hidden; }
@media (min-width: 961px) { .mnav { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gutter); align-items: center; }
.hero__copy { grid-column: 1 / span 7; position: relative; z-index: 2; }
.hero__visual { grid-column: 8 / span 5; position: relative; }
.hero h1 { margin-bottom: 32px; }
.hero h1 .l2 { color: var(--v-800); }
.hero .lead { margin-bottom: 40px; max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.morph { width: 100%; max-width: 560px; margin-left: auto; aspect-ratio: 520 / 640; }
.morph svg { width: 100%; height: 100%; }
.morph__caption {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 14px;
  font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums;
}
.hero__meta {
  grid-column: 1 / -1; margin-top: clamp(48px, 6vw, 88px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.hero__meta div { padding: 22px 24px 30px 0; }
.hero__meta div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.hero__meta dt { font-size: var(--fs-label); font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.hero__meta dd { margin: 0; color: var(--ink); font-weight: 550; line-height: 1.45; }
.hero__meta a { text-decoration: none; }
.hero__meta a:hover { color: var(--accent); }
@media (max-width: 960px) {
  .hero__copy { grid-column: 1 / -1; }
  .hero__visual { grid-column: 1 / -1; margin-top: 48px; }
  .morph { width: auto; height: min(360px, 50vh); max-width: 100%; margin-inline: auto; aspect-ratio: 520 / 640; }
  .hero__visual { margin-top: 40px; }
  .morph svg { height: 100%; }
  .morph__caption { justify-content: center; text-align: center; }
  .morph__caption [data-cap-left] { display: none; }
  .hero__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__meta div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero__meta div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .hero__meta { grid-template-columns: 1fr; }
  .hero__meta div, .hero__meta div + div { padding: 16px 0; border-left: 0; }
  .hero__meta div + div { border-top: 1px solid var(--line); }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Abschnittskopf ---------- */
.head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--gutter); align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.head__title { grid-column: 1 / span 7; }
.head__text { grid-column: 9 / span 4; margin: 0; color: var(--muted); }
@media (max-width: 960px) { .head__title, .head__text { grid-column: 1 / -1; } }

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--v-800); }
.service {
  position: relative; isolation: isolate; display: flex; flex-direction: column;
  padding: 36px 32px 32px; border-radius: 0;
  transition: border-radius var(--dur-3) var(--ease-out);
}
.service + .service { border-left: 1px solid var(--line); }
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--v-50);
  border-radius: var(--radius-l); transform: scale(.94); opacity: 0;
  transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2) var(--ease-out), border-radius var(--dur-3) var(--ease-out);
}
.service:hover::before, .service:focus-within::before { transform: none; opacity: 1; border-radius: var(--radius-m); }
.service__tag { font-size: var(--fs-label); font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 56px; display: flex; justify-content: space-between; align-items: center; }
.service__shape { width: 34px; height: 34px; color: var(--ink); }
.service__shape path { transition: d var(--dur-3) var(--ease-out); }
.service h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); letter-spacing: -.03em; margin-bottom: 16px; }
.service > p { color: var(--text); margin-bottom: 28px; }
.service ul { margin-bottom: 36px; border-top: 1px solid var(--line); }
.service li { padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 550; color: var(--ink); font-size: .98rem; }
.service__foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 14px 24px; }
@media (max-width: 960px) {
  .services { grid-template-columns: 1fr; }
  .service { padding: 32px 0; }
  .service + .service { border-left: 0; border-top: 1px solid var(--line); }
  .service::before { display: none; }
  .service__tag { margin-bottom: 24px; }
}

/* ---------- Arbeitsweise ---------- */
.principles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gutter); }
.principles__head { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--header-h) + 40px); }
.principles__head p { color: var(--muted); max-width: 26em; margin-top: 24px; }
.principles__list { grid-column: 7 / span 6; }
.principle { display: grid; grid-template-columns: 40px 1fr; gap: 20px; padding: 40px 0; border-top: 1px solid var(--line-strong); }
.principle:last-child { border-bottom: 1px solid var(--line-strong); }
.principle__mark { width: 14px; height: 14px; margin-top: 12px; background: var(--accent); border-radius: 2px; transition: border-radius var(--dur-3) var(--ease-out) .2s, transform var(--dur-3) var(--ease-out) .2s; }
.principle.is-in .principle__mark { border-radius: 50%; transform: scale(.72); }
.principle h3 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); letter-spacing: -.03em; margin-bottom: 12px; }
.principle p { margin: 0; color: var(--text); max-width: 34em; }
@media (max-width: 960px) {
  .principles__head, .principles__list { grid-column: 1 / -1; position: static; }
  .principles__list { margin-top: 40px; }
  .principle { grid-template-columns: 28px 1fr; padding: 30px 0; }
}

/* ---------- Über uns ---------- */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gutter); align-items: start; }
.about__text { grid-column: 1 / span 5; }
.about__text h2 { margin-bottom: 32px; }
.about__facts { margin-top: 40px; border-top: 1px solid var(--line); }
.about__facts div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.about__facts dt { font-size: var(--fs-small); color: var(--muted); }
.about__facts dd { margin: 0; color: var(--ink); font-weight: 550; font-size: .98rem; }
.about__people { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.person { margin: 0; }
.person:nth-child(2) { margin-top: clamp(48px, 8vw, 120px); }
.person__img { position: relative; overflow: hidden; border-radius: var(--radius-m); background: var(--sand); aspect-ratio: 4 / 5; }
.person__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease-out); }
.person figcaption { padding-top: 16px; }
.person figcaption strong { display: block; font-size: 1.1rem; letter-spacing: -.01em; }
.person figcaption span { display: block; color: var(--muted); font-size: var(--fs-small); line-height: 1.5; margin-top: 2px; }
/* Porträts: Maske morpht beim Scrollen vom Bogen (Hero-Motiv) zum Bildrahmen */
.js .person { --p: 0; --q: calc(1 - var(--p)); }
.js .person__img { clip-path: inset(calc(var(--q) * 10%) calc(var(--q) * 14%) 0 calc(var(--q) * 14%) round calc(var(--q) * 50% + var(--radius-m)) calc(var(--q) * 50% + var(--radius-m)) var(--radius-m) var(--radius-m) / calc(var(--q) * 34% + var(--radius-m)) calc(var(--q) * 34% + var(--radius-m)) var(--radius-m) var(--radius-m)); will-change: clip-path; }
.person.is-in .person__img img { transform: none; }
@media (max-width: 960px) {
  .about__text, .about__people { grid-column: 1 / -1; }
  .about__people { margin-top: 56px; }
}
@media (max-width: 480px) { .about__people { gap: 14px; } .person:nth-child(2) { margin-top: 40px; } .about__facts div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Anfrage ---------- */
.request { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gutter); align-items: start; }
.request__intro { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 40px); }
.request__intro h2 { margin-bottom: 24px; }
.request__intro > p { color: var(--text); }
.steps { margin: 40px 0 0; counter-reset: s; border-top: 1px solid var(--line-strong); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); font-weight: 550; color: var(--ink); font-size: .98rem; }
.steps li::before { content: counter(s, decimal-leading-zero); font-size: var(--fs-small); color: var(--v-800); font-weight: 700; font-variant-numeric: tabular-nums; padding-top: 1px; }
.request__direct { margin-top: 32px; font-size: var(--fs-small); color: var(--muted); }
.request__direct a { color: var(--ink); font-weight: 600; }
.request__panel { grid-column: 6 / span 7; }
@media (max-width: 960px) {
  .request__intro, .request__panel { grid-column: 1 / -1; position: static; }
  .request__panel { margin-top: 48px; }
}

/* ---------- Formulare ---------- */
.form-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: clamp(24px, 4vw, 48px);
  transition: border-radius var(--dur-3) var(--ease-out);
}
.form { display: grid; gap: 28px; }
.fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.fs > legend, .q { display: block; padding: 0; margin-bottom: 14px; font-size: 1.02rem; font-weight: 650; color: var(--ink); letter-spacing: -.01em; }
.row { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row--plz { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .row, .row--3 { grid-template-columns: 1fr; } .row--plz { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }
.field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.field label { font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 450; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px;
  font: 500 1rem/1.4 var(--font); color: var(--ink);
  background: var(--paper); border: 1px solid var(--field-line); border-radius: var(--radius-s);
  transition: border-color var(--dur-1), background var(--dur-1), box-shadow var(--dur-2) var(--ease-out), border-radius var(--dur-2) var(--ease-out);
  -webkit-appearance: none; appearance: none;
}
.field select { padding-right: 44px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317171a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; }
.field textarea { min-height: 128px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #736e66; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(79, 22, 90, .12); border-radius: 10px; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); background: #fdf6f5; }
.field.is-valid input { border-color: #9db7a7; }
.err { display: flex; gap: 6px; align-items: flex-start; color: var(--error); font-size: var(--fs-small); font-weight: 550; line-height: 1.4; }
.err:empty { display: none; }
.hint { font-size: .82rem; color: var(--muted); line-height: 1.45; }

/* Auswahl-Chips (Radio) */
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.chip span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 58px; padding: 10px 12px;
  border: 1px solid var(--field-line); border-radius: var(--radius-s); background: var(--paper);
  font-weight: 600; font-size: .95rem; color: var(--ink); line-height: 1.25;
  transition: border-radius var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-out), color var(--dur-1), border-color var(--dur-1);
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--v-800); color: #fff; border-color: var(--v-800); border-radius: 29px; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.fs.is-invalid .chip span { border-color: var(--error); }

/* Checkbox */
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: .92rem; line-height: 1.5; color: var(--text); }
.check input {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin: 1px 0 0;
  border: 1.5px solid var(--field-line); border-radius: 5px; background: var(--paper); cursor: pointer;
  display: grid; place-content: center; transition: background var(--dur-1), border-color var(--dur-1), border-radius var(--dur-2) var(--ease-out);
}
.check input::after { content: ""; width: 11px; height: 6px; border: 2px solid var(--cream); border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -3px; transition: transform var(--dur-2) var(--ease-out); }
.check input:checked { background: var(--v-800); border-color: var(--v-800); border-radius: 50%; }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check label { cursor: pointer; }
.check a { color: var(--ink); font-weight: 600; }
.check.is-invalid input { border-color: var(--error); }

.privacy-note { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 16px 18px; border-radius: var(--radius-s); background: var(--v-50); font-size: .86rem; color: var(--text); line-height: 1.5; }
.privacy-note .i { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.privacy-note p { margin: 0; }
.privacy-note a { color: var(--ink); font-weight: 600; }
.form__actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.form__actions .hint { margin: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-summary { padding: 16px 18px; border-radius: var(--radius-s); border: 1px solid #e4c3c0; background: #fbf1f0; color: #6d1e1e; font-size: .92rem; }
.form-summary p { margin: 0; font-weight: 600; }
.form-summary ul { margin-top: 6px; padding-left: 18px; list-style: disc; }
.form-summary a { color: inherit; }

/* Bestätigung nach dem Absenden */
.done { display: grid; gap: 18px; padding: 8px 0; }
.done__mark { width: 64px; height: 64px; border-radius: 50%; background: var(--v-800); color: var(--cream); display: grid; place-items: center; }
.done__mark svg { width: 30px; height: 30px; stroke-dasharray: 30; stroke-dashoffset: 30; }
.done.is-in .done__mark svg { animation: draw .7s var(--ease-out) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.done p { margin: 0; max-width: 34em; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gutter); }
.contact__head { grid-column: 1 / span 5; }
.contact__head p { margin-top: 24px; max-width: 26em; }
.contact__list { grid-column: 7 / span 6; border-top: 1px solid #573860; }
.contact__item { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid #573860; }
.contact__item dt { font-size: var(--fs-label); font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); padding-top: 8px; }
.contact__item dd { margin: 0; color: var(--on-dark); font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-weight: 550; letter-spacing: -.015em; line-height: 1.4; }
.contact__item a { color: var(--on-dark); text-decoration: none; background: linear-gradient(var(--v-300), var(--v-300)) 0 100% / 0 1px no-repeat; transition: background-size var(--dur-2) var(--ease-out); }
.contact__item a:hover { background-size: 100% 1px; }
.contact__item small { display: block; font-size: var(--fs-small); color: var(--on-dark-2); font-weight: 450; letter-spacing: 0; margin-top: 6px; }
.contact__item small a { color: var(--on-dark); text-decoration: underline; background: none; }
.section--dark :focus-visible { outline-color: var(--on-dark); }
@media (max-width: 960px) {
  .contact__head, .contact__list { grid-column: 1 / -1; }
  .contact__list { margin-top: 40px; }
}
@media (max-width: 560px) { .contact__item { grid-template-columns: 1fr; gap: 4px; } .contact__item dt { padding-top: 0; } }

/* ---------- Footer ---------- */
.footer { padding-block: 56px 40px; position: relative; }
.footer::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--v-700); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer__brand img { width: 196px; margin-bottom: 18px; }
.footer__brand p { margin: 0; color: var(--muted); max-width: 30em; font-size: .95rem; }
.footer__contact { display: grid; gap: 6px; text-align: right; font-weight: 550; }
.footer__contact a { color: var(--ink); text-decoration: none; }
.footer__contact a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 24px; font-size: var(--fs-small); color: var(--muted); }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__bottom a { color: var(--ink); text-decoration: none; padding: 6px 0; display: inline-block; }
.footer__bottom a:hover { text-decoration: underline; }
@media (max-width: 720px) { .footer__top { grid-template-columns: 1fr; } .footer__contact { text-align: left; } }

/* ---------- Einblendungen (ruhig, eine Bewegungssprache) ---------- */
.js .fx { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
.js .fx.is-in { opacity: 1; transform: none; }
.js .fx[data-d="1"] { transition-delay: .08s; }
.js .fx[data-d="2"] { transition-delay: .16s; }
.js .fx[data-d="3"] { transition-delay: .24s; }
/* Typography Reveal: Zeilen gleiten aus einer Maske */
.js .tr .ln { display: block; overflow: hidden; padding-bottom: .22em; margin-bottom: -.22em; }
.js .tr .ln > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease-out); }
.js .tr.is-in .ln > span { transform: none; }
.js .tr.is-in .ln:nth-child(2) > span { transition-delay: .09s; }
.js .tr.is-in .ln:nth-child(3) > span { transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .fx, .js .tr .ln > span { opacity: 1; transform: none; }
  .js .person__img { clip-path: none; }
  .person__img img { transform: none; }
}

/* ---------- Unterseiten ---------- */
.page-head { padding-block: clamp(48px, 7vw, 104px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.4rem); letter-spacing: -.04em; line-height: 1.02; margin-bottom: 20px; max-width: 16ch; }
.page-head .lead { color: var(--text); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-small); color: var(--muted); margin-bottom: 32px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }

.legal { max-width: 760px; padding-block: clamp(48px, 6vw, 88px) var(--space-section); }
.legal h2 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.65rem); letter-spacing: -.02em; margin: 2.4em 0 .8em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin: 1.8em 0 .6em; }
.legal ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.legal li { margin-bottom: .35em; }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal a { color: var(--ink); }
.todo { background: #fff3c4; color: #5a4300; border: 1px dashed #b8901f; padding: 1px 6px; border-radius: 3px; font-size: .92em; }

/* Mietangebote */
.listings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gutter); }
@media (max-width: 1000px) { .listings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .listings { grid-template-columns: 1fr; } }
.listing a { display: block; text-decoration: none; color: inherit; }
.listing__media { position: relative; overflow: hidden; border-radius: var(--radius-m); background: var(--sand); aspect-ratio: 3 / 2; transition: border-radius var(--dur-3) var(--ease-out); }
.listing__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.listing a:hover .listing__media { border-radius: var(--radius-l); }
.listing a:hover .listing__media img { transform: scale(1.04); }
.listing__noimg { display: grid; place-items: center; height: 100%; color: var(--line-strong); }
.listing__noimg svg { width: 48px; height: 48px; }
.badge { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 20px; background: var(--cream); color: var(--ink); font-size: var(--fs-label); font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.badge--res { left: auto; right: 14px; background: var(--ink); color: var(--cream); }
.listing__meta { margin: 18px 0 6px; font-size: var(--fs-small); color: var(--muted); }
.listing h2 { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 10px; }
.listing__facts { margin: 0 0 10px; font-size: .95rem; color: var(--text); }
.listing__price { margin: 0; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.empty { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: var(--gutter); align-items: end; padding: clamp(32px, 5vw, 64px); background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-l); }
.empty h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem); margin-bottom: 14px; }
.empty p { color: var(--text); max-width: 32em; }
@media (max-width: 760px) { .empty { grid-template-columns: 1fr; } }
.side-links { display: grid; gap: 12px; justify-items: start; }

/* Objekt-Detail */
.obj { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(32px, 4vw, 56px) var(--space-section); }
@media (max-width: 960px) { .obj { grid-template-columns: 1fr; } }
.obj__head { padding-block: clamp(40px, 6vw, 80px) 0; }
.obj__head h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem); letter-spacing: -.035em; line-height: 1.05; margin-bottom: 14px; max-width: 20ch; }
.obj__place { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.gallery__main { border-radius: var(--radius-m); overflow: hidden; background: var(--sand); aspect-ratio: 3 / 2; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumb { flex: none; width: 96px; aspect-ratio: 3 / 2; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--sand); cursor: pointer; }
.gallery__thumb[aria-current="true"] { border-color: var(--ink); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.keyfacts { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.keyfacts span { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 20px; font-size: .9rem; font-weight: 550; color: var(--ink); }
.obj__sec { padding-top: 40px; }
.obj__sec h2 { font-size: 1.35rem; letter-spacing: -.02em; margin-bottom: 14px; }
.kv { margin: 0; border-top: 1px solid var(--line); }
.kv div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); font-weight: 550; font-variant-numeric: tabular-nums; }
.bullets { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.bullets li { position: relative; padding-left: 18px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; background: var(--accent); border-radius: 1px; }
@media (max-width: 560px) { .bullets { grid-template-columns: 1fr; } }
.obj__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.price-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; }
.price-card__label { font-size: var(--fs-label); font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.price-card__val { font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem); font-weight: 650; letter-spacing: -.03em; color: var(--ink); margin: 0 0 18px; font-variant-numeric: tabular-nums; }
.price-card .btn { margin-top: 20px; }
.price-card .side-links { margin-top: 16px; }
@media (max-width: 960px) { .obj__aside { position: static; } }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.slot span { flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; gap: 2px; min-height: 80px; padding: 14px 16px; }
.slot strong { color: inherit; font-weight: 650; }
.slot em { font-style: normal; font-weight: 550; }
.slot small { font-weight: 500; opacity: .8; font-size: .82rem; }
.slot input:disabled + span { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.slot input:checked + span { border-radius: 18px; }

/* Selbstauskunft */
.sa { padding-block: clamp(40px, 5vw, 72px) var(--space-section); }
.sa__grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.sa__aside { position: sticky; top: calc(var(--header-h) + 32px); }
.sa__aside ol { counter-reset: s; border-top: 1px solid var(--line); }
.sa__aside li { counter-increment: s; border-bottom: 1px solid var(--line); }
.sa__aside a { display: grid; grid-template-columns: 34px 1fr; padding: 13px 0; color: var(--ink); text-decoration: none; font-weight: 550; }
.sa__aside a::before { content: counter(s, decimal-leading-zero); color: var(--muted); font-size: var(--fs-small); padding-top: 2px; }
.sa__aside a:hover { color: var(--accent); }
.sa__aside .side-links { margin-top: 28px; }
.sa .form-card + .form-card { margin-top: 20px; }
.sa .form-card { scroll-margin-top: calc(var(--header-h) + 16px); }
.sa h2 { font-size: 1.4rem; letter-spacing: -.02em; margin-bottom: 22px; display: flex; gap: 14px; align-items: baseline; }
.sa h2 span { font-size: var(--fs-small); color: var(--muted); font-weight: 550; }
.sa .form { gap: 20px; }
.persons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.persons:has(> [data-p2][hidden]) { grid-template-columns: 1fr; }
.persons h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.persons > div { display: grid; gap: 16px; align-content: start; }
.persons:has(> [data-p2][hidden]) > div:first-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.persons:has(> [data-p2][hidden]) > div:first-child > h3 { grid-column: 1 / -1; margin-bottom: 0; }
@media (max-width: 1100px) { .persons { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .persons:has(> [data-p2][hidden]) > div:first-child { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .sa__grid { grid-template-columns: 1fr; } .sa__aside { position: static; } .sa__aside ol { display: none; } }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row .chip span { min-height: 48px; padding: 8px 18px; }
.upload { border: 1px dashed var(--line-strong); border-radius: var(--radius-m); padding: 20px; background: var(--paper); display: grid; gap: 10px; }
.upload input[type="file"] { font: inherit; font-size: .92rem; width: 100%; }
.upload input[type="file"]::file-selector-button { font: 600 .88rem var(--font); padding: 10px 16px; margin-right: 14px; border: 1px solid var(--ink); border-radius: 22px; background: var(--cream); color: var(--ink); cursor: pointer; }
.upload ul { font-size: .86rem; color: var(--text); }

@media print {
  .header, .mnav, .footer, .morph { display: none !important; }
  body { background: #fff; }
}

/* Hero: Einblendung beim Laden per CSS (ohne Warten auf JavaScript – schnellerer LCP) */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
.js .hero .fx { opacity: 1; transform: none; transition: none; animation: rise .8s var(--ease-out) both; }
.js .hero .fx[data-d="2"] { animation-delay: .12s; }
.js .hero .fx[data-d="3"] { animation-delay: .2s; }
.js .hero .tr .ln > span { transform: none; transition: none; animation: lineUp .9s var(--ease-out) both; }
.js .hero .tr .ln:nth-child(2) > span { animation-delay: .08s; }
@media (prefers-reduced-motion: reduce) { .js .hero .fx, .js .hero .tr .ln > span { animation: none; } }

/* ---------- Hero: Fenster mit Licht und Bewohnern ---------- */
.windows .win { cursor: default; }
@media (hover: hover) { .windows .win { cursor: pointer; } }
.win__pane { fill: #fbfaf7; fill-opacity: .08; transition: fill .7s var(--ease-out), fill-opacity .7s var(--ease-out), filter .7s var(--ease-out); }
.win__p { fill: #2a0f31; opacity: 0; transition: opacity .6s var(--ease-out) .12s; }
.win__ok { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.3); transition: opacity .35s var(--ease-out), transform .5s var(--ease-out); }
.win__ok circle { fill: #fbfaf7; }
.win__ok path { fill: none; stroke: var(--v-800); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.win.is-lit .win__pane { fill-opacity: 1; }
.win.is-lit .win__p { opacity: .85; }
.win.t1 .win__pane { fill: #ece5ef; filter: drop-shadow(0 0 7px rgba(236, 229, 239, .55)); }
.win.t2 .win__pane { fill: #dccbe0; filter: drop-shadow(0 0 7px rgba(220, 203, 224, .55)); }
.win.t3 .win__pane { fill: #c5b5c8; filter: drop-shadow(0 0 7px rgba(197, 181, 200, .55)); }
.win.t4 .win__pane { fill: #b48fbd; filter: drop-shadow(0 0 8px rgba(180, 143, 189, .6)); }
.win.t5 .win__pane { fill: #9d74a6; filter: drop-shadow(0 0 8px rgba(157, 116, 166, .6)); }
.win.is-cared .win__ok { opacity: 1; transform: none; }
.morph__caption span { transition: color .3s; }
.morph__caption.is-active [data-cap-right] { color: var(--v-800); font-weight: 700; }
.morph__caption.is-active [data-cap-right]::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--v-800); vertical-align: 1px; }

/* ---------- Willkommen ---------- */
.welcome { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gutter); align-items: end; }
.welcome__text { grid-column: 1 / span 7; }
.welcome__text h2 { margin-bottom: 32px; }
.welcome__box { grid-column: 9 / span 4; background: var(--v-800); color: #f3ecf4; border-radius: var(--radius-l); padding: clamp(28px, 3vw, 40px); }
.welcome__box h3 { color: #fff; font-size: var(--fs-label); font-weight: 650; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px; }
.welcome__num { font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: #fff; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.welcome__num span { display: block; font-size: 1rem; letter-spacing: 0; font-weight: 550; color: var(--v-300); margin-top: 8px; }
.welcome__box p:last-child { margin: 0; font-size: .98rem; line-height: 1.55; }
@media (max-width: 960px) { .welcome__text, .welcome__box { grid-column: 1 / -1; } }

/* ---------- Fünf Leistungen: zwei große, drei kleinere ---------- */
.services--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.services--5 .service { grid-column: span 2; border-top: 1px solid var(--line-strong); }
.services--5 .service:nth-child(-n+2) { grid-column: span 3; border-top: 0; }
.services--5 .service:nth-child(3) { border-left: 0; }
.services--5 .service:nth-child(1) h3, .services--5 .service:nth-child(2) h3 { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); }
.section--violet .service::before { background: #fff; }
.section--violet .service + .service { border-left-color: var(--line-strong); }
.section--violet .service li, .section--violet .service ul { border-color: var(--line-strong); }
@media (max-width: 960px) {
  .services--5 { grid-template-columns: 1fr; }
  .services--5 .service, .services--5 .service:nth-child(-n+2) { grid-column: 1 / -1; border-top: 1px solid var(--line-strong); }
  .services--5 .service:first-child { border-top: 0; }
}

/* Auswahl im Formular: sechs Optionen in drei Spalten */
#f-verwaltung .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { #f-verwaltung .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Ablauf mit kurzer Beschreibung */
.steps--desc li { align-items: start; }
.steps--desc strong { display: block; font-weight: 650; color: var(--ink); }
.steps--desc span { display: block; font-weight: 450; color: var(--text); font-size: .94rem; line-height: 1.5; margin-top: 4px; }
.welcome__num--text { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -.02em; line-height: 1.15; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; font-size: 1rem; line-height: 1.5; }
.hours span:nth-child(odd) { color: var(--v-300); }
@media (max-width: 560px) { .hours { grid-template-columns: 1fr; gap: 0; } .hours span:nth-child(3) { margin-top: 8px; } }
/* Häufige Fragen */
.faq { grid-column: 7 / span 6; border-bottom: 1px solid var(--line-strong); }
.faq__item { border-top: 1px solid var(--line-strong); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; border-radius: 4px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline: 2px solid var(--v-700); outline-offset: 4px; }
.faq__q { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); font-weight: 600; letter-spacing: -.01em; margin: 0; transition: color var(--dur-2) var(--ease-out); }
.faq__item summary:hover .faq__q { color: var(--v-700); }
.faq__icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform var(--dur-2) var(--ease-out); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--v-800); border-color: var(--v-800); color: #fff; }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item p { margin: 0 0 24px; max-width: 36em; color: var(--muted); }
@media (max-width: 960px) { .faq { grid-column: 1 / -1; margin-top: 32px; } }

/* =========================================================================
   Morphing-Erweiterungen (08.11.2026)
   ========================================================================= */

/* ---------- Navigation: Leiste morpht beim Scrollen zur schwebenden Kapsel ---------- */
@media (min-width: 961px) {
  .header { background: transparent; }
  .header::before { content: ""; position: absolute; inset: 0; background: var(--paper); transition: opacity var(--dur-2) var(--ease-out); z-index: -1; }
  .header::after { display: none; }
  .header__inner {
    position: relative; isolation: isolate;
    transition: height var(--dur-3) var(--ease-out), max-width var(--dur-3) var(--ease-out), margin-top var(--dur-3) var(--ease-out), padding var(--dur-3) var(--ease-out);
  }
  .header__inner::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(250, 248, 244, 0); border: 1px solid transparent; border-radius: 0;
    transition: background var(--dur-3) var(--ease-out), border-radius var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), border-color var(--dur-3) var(--ease-out);
  }
  .header.is-compact::before { opacity: 0; }
  .header.is-compact .header__inner { max-width: 1120px; margin-top: 12px; height: 64px; padding-inline: 14px 10px; }
  .header.is-compact .header__inner::before {
    background: rgba(250, 248, 244, .9); border-color: var(--v-100); border-radius: 999px;
    box-shadow: 0 10px 30px -14px rgba(53, 18, 63, .28);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  }
  .header.is-compact .brand { padding-left: 8px; }
  .header.is-compact .header__cta { border-radius: 999px; }
}

/* ---------- Leistungen: interaktiver Bereich mit Form-Morphing ---------- */
.svc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gutter); border-top: 2px solid var(--v-800); padding-top: clamp(32px, 4vw, 48px); }
.svc__tabs { display: none; }
.svc__visual { display: none; }
.svc__panels { grid-column: 1 / -1; }
.svc__panel { padding: 32px 0; border-bottom: 1px solid var(--line); }
.svc__panel h3 { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.5rem); letter-spacing: -.03em; margin-bottom: 16px; }
.svc__panel > p { color: var(--text); margin-bottom: 24px; max-width: 34em; }
.svc__panel ul { margin-bottom: 28px; border-top: 1px solid var(--line); }
.svc__panel li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 550; color: var(--ink); font-size: .98rem; }

.js .svc__tabs { display: flex; flex-direction: column; grid-column: 1 / span 3; position: relative; align-self: start; }
.js .svc__visual { display: block; grid-column: 9 / span 4; align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.js .svc__panels { grid-column: 4 / span 5; display: grid; }
.js .svc__panel { grid-area: 1 / 1; padding: 0 clamp(0px, 2vw, 32px); border: 0; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-3) var(--ease-out), visibility 0s linear var(--dur-2); }
.js .svc__panel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease-out) .12s, transform var(--dur-3) var(--ease-out) .12s, visibility 0s; }
.js .svc__panel li { opacity: 0; transform: translateX(-8px); transition: opacity .4s var(--ease-out), transform .5s var(--ease-out); }
.js .svc__panel.is-active li { opacity: 1; transform: none; }
.js .svc__panel.is-active li:nth-child(2) { transition-delay: .2s; } .js .svc__panel.is-active li:nth-child(3) { transition-delay: .26s; }
.js .svc__panel.is-active li:nth-child(4) { transition-delay: .32s; } .js .svc__panel.is-active li:nth-child(5) { transition-delay: .38s; } .js .svc__panel.is-active li:nth-child(6) { transition-delay: .44s; }
.js .svc__panel.is-active li:first-child { transition-delay: .14s; }

.svc__tab {
  position: relative; z-index: 1; display: flex; align-items: baseline; gap: 16px; width: 100%;
  min-height: 56px; padding: 16px 18px; text-align: left; cursor: pointer;
  font: 600 clamp(1.02rem, .95rem + .3vw, 1.18rem)/1.25 var(--font); letter-spacing: -.01em; color: var(--text);
  background: none; border: 0; border-radius: var(--radius-m);
  transition: color var(--dur-2) var(--ease-out);
}
.svc__tab:hover { color: var(--v-800); }
.svc__tab[aria-selected="true"] { color: #fff; }
.svc__tab:focus-visible { outline: 2px solid var(--v-700); outline-offset: 2px; }
.svc__num { font-size: var(--fs-label); font-weight: 650; letter-spacing: .12em; color: var(--muted); transition: color var(--dur-2) var(--ease-out); font-variant-numeric: tabular-nums; }
.svc__tab[aria-selected="true"] .svc__num { color: var(--v-300); }
.svc__marker {
  position: absolute; left: 0; top: 0; width: 100%; height: 56px; z-index: 0;
  background: var(--v-800); border-radius: var(--radius-m);
  transform: translateY(var(--my, 0px)); height: var(--mh, 56px);
  transition: transform .6s var(--ease-io), height .6s var(--ease-io), border-radius .3s var(--ease-out), width .6s var(--ease-io);
}
.svc__marker.is-moving { border-radius: 999px; width: 92%; }

.svc__visual svg { display: block; width: 100%; height: auto; overflow: visible; }
.svc__blob { fill: var(--v-100); }
.svc__ground { stroke: var(--v-300); stroke-width: 1; }
.svc__blocks rect { shape-rendering: geometricPrecision; }

@media (max-width: 960px) {
  .js .svc { gap: 0; }
  .js .svc__tabs { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 24px; }
  .js .svc__tab { min-height: 52px; padding: 12px 14px; font-size: 1rem; background: rgba(255,255,255,.55); border: 1px solid var(--v-100); }
  .js .svc__tab[aria-selected="true"] { background: var(--v-800); border-color: var(--v-800); }
  .js .svc__tab:last-of-type:nth-of-type(odd) { grid-column: 1 / -1; }
  .svc__marker { display: none; }
  .js .svc__visual { grid-column: 1 / -1; grid-row: 2; position: static; max-width: 340px; width: 100%; margin: 0 auto 8px; }
  .js .svc__panels { grid-column: 1 / -1; grid-row: 3; }
  .js .svc__panel { padding: 0; }
}

/* ---------- Willkommen-Kasten: Bogen aus dem Hero morpht beim Scrollen zur Karte ---------- */
.js .welcome__box { --p: 0; --q: calc(1 - var(--p));
  border-radius: calc(var(--q) * 50% + var(--radius-l)) calc(var(--q) * 50% + var(--radius-l)) var(--radius-l) var(--radius-l) / calc(var(--q) * 30% + var(--radius-l)) calc(var(--q) * 30% + var(--radius-l)) var(--radius-l) var(--radius-l);
  transform: translateY(calc(var(--q) * 48px)) scale(calc(.94 + var(--p) * .06));
  will-change: transform, border-radius;
}
.js .welcome__box > * { opacity: calc(var(--p) * 1.6 - .5); }

/* ---------- Absende-Button morpht nach erfolgreicher Übermittlung zum Häkchen ---------- */
.btn.is-morph { width: var(--bw); }
.btn.is-morph.is-round { width: 54px; padding: 0; border-radius: 27px; transition: width .55s var(--ease-io), padding .55s var(--ease-io), border-radius .55s var(--ease-io); }
.btn.is-morph { color: transparent !important; }
.btn__check { position: absolute; inset: 0; margin: auto; width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn__check path { stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .45s var(--ease-out) .45s; }
.btn.is-round .btn__check path { stroke-dashoffset: 0; }

/* ---------- Markensymbol: Bogen zerfällt in die BOROD-Bausteine ---------- */
.brandmark { width: clamp(96px, 9vw, 128px); margin-top: clamp(32px, 4vw, 56px); }
.brandmark svg { display: block; width: 100%; height: auto; overflow: visible; }
.brandmark rect { fill: var(--v-500); }

@media (prefers-reduced-motion: reduce) {
  .js .welcome__box { --p: 1 !important; }
  .js .person { --p: 1 !important; }
  .svc__marker, .js .svc__panel, .js .svc__panel li, .header__inner, .header__inner::before { transition: none !important; }
}
@media (max-width: 960px) {
  .js .svc__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .js .svc__tab { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
  .js .svc__num { display: none; }
}

/* Schwebende Leiste: dezenter, flacher, transparenter (08.11.2026) */
@media (min-width: 961px) {
  .header.is-compact .header__inner { max-width: 940px; height: 50px; margin-top: 10px; padding-inline: 10px 6px; gap: 20px; }
  .header.is-compact .header__inner::before {
    background: rgba(250, 248, 244, .55); border-color: rgba(137, 110, 143, .18);
    box-shadow: 0 4px 18px -12px rgba(53, 18, 63, .22);
    -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
  }
  .header__inner .brand img, .header__inner .nav a, .header__inner .header__cta { transition: width var(--dur-3) var(--ease-out), padding var(--dur-3) var(--ease-out), font-size var(--dur-3) var(--ease-out), min-height var(--dur-3) var(--ease-out), border-radius var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
  .header.is-compact .brand img { width: 112px; }
  .header.is-compact .nav a { padding: 6px 11px; font-size: .9rem; }
  .header.is-compact .header__cta { min-height: 36px; padding: 7px 16px; font-size: .86rem; }
  .header.is-compact .header__cta-long { display: none; }
  .header.is-compact .header__cta-short { display: inline; }
}
@media (min-width: 961px) {
  .header.is-compact .header__inner { max-width: 780px; height: 46px; gap: 12px; }
  .header.is-compact .header__inner::before { background: rgba(250, 248, 244, .45); box-shadow: 0 2px 12px -8px rgba(53, 18, 63, .18); }
  .header.is-compact .brand img { width: 116px; }
  .header.is-compact .nav a { padding: 5px 9px; font-size: .86rem; }
  .header.is-compact .header__cta { min-height: 32px; padding: 6px 14px; font-size: .82rem; }
}
/* Leistungen: festgelegte Leistung bleibt erkennbar, während eine andere als Vorschau offen ist */
.svc__tab.is-pinned { color: var(--v-800); }
.svc__tab.is-pinned .svc__num { color: var(--v-800); }
.svc__tab.is-pinned::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--v-700); }

/* ---------- Leistungen: drei Fragen mit ruhiger Hervorhebung ---------- */
.qa { grid-column: 8 / span 5; }
.qa__list { margin: 0 0 22px; padding: 0; list-style: none; position: relative; }
.qa__list::before { content: ""; position: absolute; left: 15px; top: 18px; bottom: 18px; width: 1px; background: var(--v-300); }
.qa__q {
  position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 9px 0;
  font-size: clamp(1.05rem, .98rem + .35vw, 1.22rem); font-weight: 550; line-height: 1.4; letter-spacing: -.01em;
  color: var(--muted); transition: color .6s var(--ease-out), transform .6s var(--ease-out);
}
.qa__mark {
  position: relative; z-index: 1; flex: none; display: grid; place-items: center;
  width: 31px; height: 31px; margin-top: -2px; border-radius: 50%;
  font-size: .9rem; font-weight: 700; color: var(--v-700);
  background: var(--v-50); border: 1px solid var(--v-300);
  transition: background .6s var(--ease-out), color .6s var(--ease-out), border-color .6s var(--ease-out), border-radius .6s var(--ease-out), transform .6s var(--ease-out);
}
.qa__q.is-on { color: var(--ink); transform: translateX(4px); }
.qa__q.is-on .qa__mark { background: var(--v-800); border-color: var(--v-800); color: #fff; border-radius: 10px; transform: rotate(-8deg); }
.qa__answer {
  position: relative; margin: 0; padding: 18px 0 0 47px;
  font-size: 1.05rem; font-weight: 650; line-height: 1.5; color: var(--v-800);
}
.qa__answer::before { content: ""; position: absolute; left: 47px; top: 0; width: 48px; height: 2px; background: var(--v-800); transform-origin: left; transition: transform 1s var(--ease-out) .5s; }
/* Einblenden beim Scrollen */
.js .qa:not(.is-in) .qa__q, .js .qa:not(.is-in) .qa__answer { opacity: 0; transform: translateY(12px); }
.js .qa .qa__q, .js .qa .qa__answer { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), color .6s var(--ease-out); }
.js .qa .qa__q:nth-child(2) { transition-delay: .1s; } .js .qa .qa__q:nth-child(3) { transition-delay: .2s; } .js .qa .qa__answer { transition-delay: .32s; }
.js .qa.is-in .qa__q.is-on { transform: translateX(4px); }
.js .qa:not(.is-in) .qa__answer::before { transform: scaleX(0); }
.js .qa.is-cycled .qa__q { transition-delay: 0s; }
@media (max-width: 960px) { .qa { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .qa__q, .qa__mark, .qa__answer, .qa__answer::before { transition: none !important; } .js .qa .qa__q, .js .qa .qa__answer { opacity: 1 !important; transform: none !important; } }

/* Willkommen bei B · I + V */
.biv { color: var(--v-800); letter-spacing: .02em; white-space: nowrap; }
.biv__dot { display: inline-block; width: .16em; height: .16em; margin: 0 .2em; border-radius: 50%; background: currentColor; vertical-align: .3em; }
.biv__sp { display: inline-block; width: .18em; }
.welcome__sub { margin: -8px 0 32px; font-size: clamp(1.05rem, .95rem + .45vw, 1.35rem); font-weight: 600; letter-spacing: .01em; color: var(--ink); }
.welcome__text h2 { margin-bottom: 14px; }
.welcome__sub { margin: 0 0 32px; }
.biv { font-weight: 400; }

/* ImmoScout24-Verknüpfung */
.is24-profile { margin: 0 0 28px; }
.listing__is24 { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--fs-small); font-weight: 600; color: var(--v-800); }
.listing__is24 svg { width: 16px; height: 16px; transition: transform var(--dur-2) var(--ease-out); }
.listing--is24 a:hover .listing__is24 svg { transform: translateX(4px); }
/* Objektseite: lange Fotoleiste darf das Layout nicht verbreitern */
.obj > * { min-width: 0; }
@media (max-width: 960px) { .obj { grid-template-columns: minmax(0, 1fr); } }
.gallery__thumbs { scrollbar-width: thin; scroll-snap-type: x proximity; }
.gallery__thumb { scroll-snap-align: start; }
