/* MASCASA Immobilien: preview site. Direction "Der Grundriss": the site is a floor plan drawn while reading. */

@font-face { font-family: "Newsreader"; src: url("../fonts/Newsreader-Variable.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/Newsreader-Italic-Variable.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/Jost-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* Brand colors (measured from the logo, see design-system/tokens.css) */
  --navy: #042b60;
  --navy-900: #03214b;
  --navy-950: #021631;
  --navy-700: #1a4077;
  --gold: #dabf74;
  --gold-hover: #e6d197;
  --gold-700: #7a6530;
  --gold-200: #efe2bf;
  --sand: #f5eedb;
  --paper: #fbf9f5;
  --stone: #f4f0e8;
  --stone-200: #e9e3d7;
  --white: #ffffff;
  --ink: #1d1d1b;
  --ink-700: #46433e;
  --ink-500: #6b665d;
  --ink-400: #8a847a;
  --line: #e6e0d5;
  --on-navy: #ffffff;
  --on-navy-muted: #b8c3d5;
  --line-navy: rgba(251, 249, 245, .82);
  --danger: #a3322a;
  --danger-bg: #f8e6e3;
  --success: #2b6a4a;

  /* Plan drawing */
  --wall: 7px;
  --wall-in: 2.5px;
  --hair: 1px;
  --hatch: repeating-linear-gradient(45deg, rgba(218, 191, 116, .75) 0 2px, transparent 2px 9px);

  /* Type */
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Century Gothic", system-ui, sans-serif;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1rem + .35vw, 1.3rem);
  --fs-h1: clamp(2.4rem, 1rem + 3.1vw, 4rem);
  --fs-h2: clamp(2rem, 1.2rem + 2.1vw, 3.25rem);
  --fs-h3: clamp(1.35rem, 1.1rem + .6vw, 1.75rem);
  --fs-display: clamp(3rem, 1rem + 5.4vw, 6rem);
  --fs-label: .75rem;

  /* Space and layout */
  --gutter: clamp(16px, 3.4vw, 48px);
  --max: 1360px;
  --text-max: 40rem;
  --section-y: clamp(80px, 9vw, 136px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Shadows, navy tinted */
  --shadow-xs: 0 1px 2px rgba(4, 43, 96, .06);
  --shadow-md: 0 24px 48px -20px rgba(4, 43, 96, .22);
  --shadow-lg: 0 40px 80px -32px rgba(2, 22, 49, .34);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scrollbar-color: var(--navy-700) var(--stone); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: var(--fs-body); line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
::selection { background: var(--gold-200); color: var(--navy-950); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
.s-navy :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 2px; }
.skip:focus { top: 12px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.s-paper { background: var(--paper); }
.s-stone { background: var(--stone); }
.s-sand { background: var(--sand); }
.s-navy { background: var(--navy); color: var(--on-navy); }

/* ---------- Type ---------- */
.h1, .h2, .h3, .display { font-family: var(--serif); font-weight: 300; color: var(--navy); text-wrap: balance; }
.h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -.022em; }
.h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.018em; }
.h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 400; letter-spacing: -.005em; }
.display { font-size: var(--fs-display); line-height: 1; letter-spacing: -.03em; }
.h1 em, .h2 em, .display em { font-style: italic; }
.s-navy .h1, .s-navy .h2, .s-navy .h3, .s-navy .display { color: var(--on-navy); }
.s-navy .h2 em, .s-navy .display em { color: var(--gold); }
.lead { font-size: var(--fs-lead); line-height: 1.6; font-weight: 300; color: var(--ink-700); }
.s-navy .lead { color: var(--on-navy-muted); }
.prose { max-width: var(--text-max); }
.prose p + p { margin-top: 1em; }
.prose p { color: var(--ink-700); }
.s-navy .prose p { color: var(--on-navy-muted); }
.label { font-family: var(--sans); font-size: var(--fs-label); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; line-height: 1.4; }
.muted { color: var(--ink-500); }
.trust { font-size: .9rem; letter-spacing: .04em; color: var(--ink-500); }
.s-navy .trust { color: var(--on-navy-muted); }
.section-head { display: grid; gap: 24px; margin-bottom: clamp(40px, 5vw, 72px); max-width: 52rem; }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 28px; border: 0; border-radius: 2px; background: var(--navy); color: var(--white); font-family: var(--sans); font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color 240ms var(--ease), color 240ms var(--ease); }
.btn:hover { background: var(--navy-900); }
.btn .icon { width: 18px; height: 18px; transition: transform 240ms var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--gold { background: var(--gold); color: var(--navy-950); }
.btn--gold:hover { background: var(--gold-hover); }
.btn--sm { min-height: 44px; padding: 0 20px; }
.btn[disabled] { opacity: .45; cursor: progress; }
.link { display: inline-flex; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); text-decoration: none; padding-block: 6px; background: linear-gradient(var(--gold), var(--gold)) left bottom / 100% 1px no-repeat; transition: background-size 240ms var(--ease), color 240ms var(--ease); }
.link:hover { background-image: linear-gradient(var(--navy), var(--navy)); }
.link .icon { width: 16px; height: 16px; transition: transform 240ms var(--ease); }
.link:hover .icon { transform: translateX(4px); }
.s-navy .link { color: var(--on-navy); }
.s-navy .link:hover { background-image: linear-gradient(var(--gold), var(--gold)); color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--line); transition: box-shadow 240ms var(--ease); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -24px rgba(4, 43, 96, .5); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand img { width: 172px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 1.6vw, 28px); }
.nav a { font-size: .9375rem; color: var(--ink-700); text-decoration: none; padding-block: 6px; background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 1px no-repeat; transition: background-size 240ms var(--ease), color 240ms var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); background-size: 100% 1px; }
.nav .btn { color: var(--white); background: var(--navy); padding-block: 0; }
.nav .btn:hover { background: var(--navy-900); color: var(--white); }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--navy); font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.menu-btn .icon { width: 22px; height: 22px; }
@media (min-width: 1280px) and (max-width: 1399px) { .nav-home { display: none; } }
@media (max-width: 1279px) {
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; flex-direction: column; align-items: flex-start; gap: 4px; padding: 32px var(--gutter) 48px; background: var(--paper); overflow-y: auto; }
  .nav:not(.is-open) { display: none; }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 1.75rem; font-weight: 300; color: var(--navy); background: none; padding-block: 8px; }
  .nav .btn { margin-top: 24px; width: 100%; min-height: 56px; }
}

/* ---------- Hero: the floor plan ---------- */
.hero { padding-block: var(--hero-top, clamp(12px, 1.4vw, 20px)) clamp(48px, 5vw, 72px); background: var(--paper); }
.dims { display: grid; grid-template-columns: 8fr 2fr 2fr; margin-bottom: 10px; color: var(--ink-500); font-size: .75rem; font-variant-numeric: tabular-nums; }
.dims span { position: relative; text-align: center; padding-bottom: 8px; border-bottom: 1px solid var(--ink-400); }
.dims span::before, .dims span:last-child::after { content: ""; position: absolute; bottom: -5px; left: 0; width: 1px; height: 9px; background: var(--ink-400); }
.dims span:last-child::after { left: auto; right: 0; }
.plan { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto minmax(var(--flur-h, 150px), auto); border: var(--wall) solid var(--navy); background: var(--paper); }
.room { position: relative; border: 0 solid var(--navy); border-right-width: var(--wall-in); border-bottom-width: var(--wall-in); min-width: 0; }
.rl { position: absolute; display: grid; gap: 1px; font-family: var(--sans); font-size: var(--fs-label); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-700); line-height: 1.3; pointer-events: none; }
.rl i { font-family: var(--serif); font-style: normal; font-weight: 400; font-size: 1.125rem; letter-spacing: 0; text-transform: none; color: var(--navy); }
.rl--tl { top: 18px; left: 20px; }
.rl--br { right: 24px; bottom: 20px; text-align: right; }
.room--wohnen { grid-column: 1 / 9; grid-row: 1 / 3; padding: var(--wohnen-pad-y, clamp(28px, 3vw, 44px)) clamp(28px, 4vw, 60px) clamp(56px, 5vw, 64px); display: flex; flex-direction: column; gap: var(--wohnen-gap, 22px); }
.hero .h1 { font-size: var(--h1-size, var(--fs-h1)); }
.h1-second { display: block; }
.hero-lead { display: grid; gap: .6em; max-width: 44rem; }
.hero-lead p { font-size: var(--lead-size, clamp(1.0625rem, .95rem + .3vw, 1.1875rem)); line-height: 1.6; font-weight: 300; color: var(--ink-700); }
.room--wohnen .actions { margin-top: 4px; }
.room--kueche { grid-column: 9 / 11; grid-row: 1; min-height: 190px; }
.room--balkon { grid-column: 11 / 13; grid-row: 1; z-index: 1; margin: calc(-1 * var(--wall)) calc(-1 * var(--wall)) 0 0; background: var(--paper); border-style: solid; border-color: var(--navy); border-width: 1.5px 1.5px var(--wall) var(--wall); border-top-style: dashed; border-right-style: dashed; }
.room--balkon .rl--tl { top: calc(18px + var(--wall)); }
.room--bad { grid-column: 9 / 11; grid-row: 2; }
.room--potenzial { grid-column: 11 / 13; grid-row: 2; border-right-width: 0; }
.hatch-fill { position: absolute; inset: 0; background-image: var(--hatch); }
.room--potenzial .rl, .room--potenzial .rl-note { z-index: 1; }
.room--potenzial .rl { color: var(--gold-700); background: var(--paper); padding: 6px 8px; margin: -6px -8px; right: 12px; }
.room--potenzial .rl i { font-size: 1rem; }
.rl-note { position: absolute; left: 20px; right: 12px; bottom: 18px; font-family: var(--serif); font-style: italic; font-size: 1rem; line-height: 1.3; color: var(--navy); background: var(--paper); padding: 4px 8px; margin-left: -8px; width: fit-content; }
.room--flur { grid-column: 1 / 7; grid-row: 3; border-bottom-width: 0; padding: 22px 96px 66px clamp(20px, 2.4vw, 36px); }
.room--schlafen { grid-column: 7 / 9; grid-row: 3; border-bottom-width: 0; }
.room--kind { grid-column: 9 / 13; grid-row: 3; border-width: 0; }
.door { position: absolute; width: 58px; height: 58px; fill: none; stroke: var(--navy); stroke-width: 1; overflow: visible; pointer-events: none; }
.door .gap { stroke: var(--paper); }
.door--wohnen-flur { top: calc(-1 * var(--wall-in) - 1px); right: 3%; }
.door--wohnen-flur .gap { stroke-width: calc(var(--wall-in) + 2px); }
.door--eingang { bottom: calc(-1 * var(--wall) - 1px); left: 8%; transform: scaleY(-1); }
.door--eingang .gap { stroke-width: calc(var(--wall) + 2px); }
.door--wohnen-kueche { right: calc(var(--wall-in) / -2); top: 58%; transform: rotate(90deg); transform-origin: 100% 0; }
.door--wohnen-kueche .gap { stroke-width: calc(var(--wall-in) + 2px); }
.eingang-label { position: absolute; left: calc(8% + 70px); bottom: 14px; }
.agent { display: grid; grid-template-columns: var(--portrait-w, 76px) minmax(0, 1fr); gap: 18px; align-items: start; }
.agent-photo { display: block; width: var(--portrait-w, 76px); height: calc(var(--portrait-w, 76px) * 1.25); border-radius: 640px 640px 0 0; overflow: hidden; background: var(--stone-200); }
.agent-photo picture { display: block; height: 100%; }
.agent-photo img { width: 100%; height: 100%; object-fit: cover; }
.agent-text { display: grid; gap: 6px; }
.agent-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.agent-head a { text-decoration: none; }
.agent-name { font-family: var(--serif); font-size: 1.375rem; line-height: 1.3; color: var(--navy); }
.agent-role { font-size: .9375rem; color: var(--ink-700); }
.agent-note { font-size: .9375rem; line-height: 1.5; color: var(--ink-700); max-width: 34rem; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .875rem; line-height: 1.4; color: var(--ink-700); }
.stars { display: inline-flex; gap: 2px; color: var(--gold-700); }
.stars .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.north { position: absolute; top: 22px; right: 26px; width: 40px; height: 40px; color: var(--navy); }
.titleblock { position: absolute; right: 18px; bottom: 18px; display: grid; grid-template-columns: auto auto; border: 1px solid var(--navy); background: var(--paper); font-size: .8125rem; line-height: 1.35; max-width: calc(100% - 36px); }
.titleblock > * { padding: 7px 12px; border-bottom: 1px solid var(--navy); }
.titleblock > *:nth-child(odd) { border-right: 1px solid var(--navy); }
.titleblock > *:nth-last-child(-n+2) { border-bottom: 0; }
.titleblock .tb-brand { font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); font-size: .75rem; }
.titleblock .tb-line { font-family: var(--serif); font-style: italic; font-size: .9375rem; color: var(--navy); }
.titleblock .tb-small { color: var(--ink-500); font-size: .75rem; }

@media (max-width: 1099px) {
  .room--bad, .room--balkon, .room--schlafen, .door--wohnen-kueche, .door--eingang, .eingang-label, .north, .rl-note { display: none; }
  .hero .dims { grid-template-columns: 1fr 1fr; }
  .hero .dims span:first-child { display: none; }
  .plan { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .room { border-right-width: 0; }
  .room--kueche { grid-column: 1; grid-row: 1; min-height: 92px; border-right-width: var(--wall-in); }
  .room--potenzial { grid-column: 2; grid-row: 1; min-height: 92px; }
  .room--wohnen { grid-column: 1 / 3; grid-row: 2; padding-bottom: 72px; }
  .room--flur { grid-column: 1 / 3; grid-row: 3; border-bottom-width: var(--wall-in); padding: 24px 20px; }
  .room--kind { grid-column: 1 / 3; grid-row: 4; min-height: 0; }
  .titleblock { position: static; margin: 52px 16px 16px; }
}
@media (max-width: 599px) {
  :root { --wall: 5px; --wall-in: 2px; }
  .room--wohnen { padding: 28px 20px 64px; gap: 22px; }
  .rl--br { right: 16px; bottom: 16px; }
  .actions .btn { width: 100%; }
  .btn { padding: 0 20px; letter-spacing: .1em; }
  .btn .icon { display: none; }
  .door { display: none; }
  .titleblock { grid-template-columns: 1fr; }
  .titleblock > *:nth-child(odd) { border-right: 0; }
  .titleblock > *:nth-last-child(2) { border-bottom: 1px solid var(--navy); }
}

/* ---------- Haltung: legend ---------- */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
@media (max-width: 899px) { .split, .split--even { grid-template-columns: 1fr; } }
.legend { background: var(--paper); border: 1px solid var(--navy); }
.legend figcaption { padding: 12px 20px; border-bottom: 1px solid var(--navy); color: var(--navy); }
.legend li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; color: var(--navy); }
.legend li:last-child { border-bottom: 0; }
.legend svg { width: 44px; height: 32px; fill: none; stroke: var(--navy); stroke-width: 1.5; }
.statement { margin-top: clamp(16px, 3vw, 40px); padding-top: 28px; border-top: 1px solid var(--navy); font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); line-height: 1.3; color: var(--navy); max-width: 46rem; text-wrap: pretty; }

/* ---------- Strategie: blueprint rooms on navy ---------- */
.bp { display: grid; grid-template-columns: 1.15fr 1.15fr 1fr 1fr; border: var(--wall) solid var(--line-navy); }
.bp-room { position: relative; padding: clamp(28px, 3vw, 44px) clamp(22px, 2.4vw, 36px) 40px; border-right: var(--wall-in) solid var(--line-navy); display: grid; align-content: start; gap: 14px; min-height: 380px; }
.bp-room:last-child { border-right: 0; }
.bp-room::after { content: ""; position: absolute; right: calc(-1 * var(--wall-in)); top: 36%; width: var(--wall-in); height: 56px; background: var(--navy); }
.bp-room:last-child::after { display: none; }
.bp-room--hatch { background-image: repeating-linear-gradient(45deg, rgba(218, 191, 116, .16) 0 2px, transparent 2px 10px); }
.bp-name { font-family: var(--sans); font-size: .875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); line-height: 1.4; }
.bp-room p:not(.bp-no) { color: var(--on-navy-muted); font-size: 1rem; line-height: 1.6; }
@media (max-width: 1099px) { .bp { grid-template-columns: 1fr 1fr; } .bp-room:nth-child(2) { border-right: 0; } .bp-room:nth-child(-n+2) { border-bottom: var(--wall-in) solid var(--line-navy); } .bp-room:nth-child(2)::after { display: none; } .bp-room { min-height: 0; } }
@media (max-width: 639px) { .bp { grid-template-columns: 1fr; } .bp-room { border-right: 0; border-bottom: var(--wall-in) solid var(--line-navy); } .bp-room:last-child { border-bottom: 0; } .bp-room::after { right: auto; top: auto; left: 24px; bottom: calc(-1 * var(--wall-in)); width: 56px; height: var(--wall-in); } }

/* ---------- Verkaufsprozess: the plan builds itself ---------- */
.process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); }
.steps { counter-reset: none; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 4px 20px; padding-block: clamp(28px, 6vh, 64px); border-top: 1px solid var(--line); min-height: 34vh; align-content: center; transition: opacity 300ms var(--ease); }
.step:first-child { border-top: 0; }
.step-no { grid-row: span 2; font-family: var(--serif); font-size: 2.75rem; line-height: 1; font-weight: 300; color: var(--gold-700); font-variant-numeric: lining-nums; }
.step h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1.3; color: var(--navy); }
.step p { color: var(--ink-700); }
.js-motion .process:not(.is-done) .step:not(.is-active) { opacity: .42; }
.process-plan { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.process-plan svg { width: 100%; height: auto; overflow: visible; }
.pp-caption { margin-top: 12px; color: var(--ink-500); font-size: .875rem; }
.pp text { font-family: var(--sans); }
.pp .pp-area { font-family: var(--serif); font-size: 14px; letter-spacing: 0; fill: var(--navy); }
.pp .pp-total { font-size: 16px; }
.process-cta { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
@media (max-width: 899px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process-plan { order: -1; top: calc(var(--header-h) - 1px); z-index: 2; background: var(--paper); padding: 12px 0 10px; border-bottom: 1px solid var(--line); }
  .process-plan svg { max-height: 44vh; width: auto; margin-inline: auto; }
  .pp text { font-size: 17px; letter-spacing: .5px; }
  .pp .pp-area { font-size: 19px; }
  .pp .pp-total { font-size: 20px; }
  .pp-caption { display: none; }
  .step { min-height: 0; padding-block: 36px; }
}

/* ---------- Erfahrung ---------- */
.arch { border-radius: 640px 640px 0 0; overflow: hidden; aspect-ratio: 4 / 5; background: var(--stone-200); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.split--photo { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
@media (max-width: 899px) { .split--photo { grid-template-columns: 1fr; } .split--photo .arch { max-width: 420px; } }
.facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; border: 1px solid var(--navy); }
.facts li { padding: 16px 20px; font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; color: var(--navy); border-bottom: 1px solid var(--navy); }
.facts li:nth-child(odd) { border-right: 1px solid var(--navy); }
.facts li:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 479px) { .facts { grid-template-columns: 1fr; } .facts li:nth-child(odd) { border-right: 0; } .facts li:nth-last-child(2) { border-bottom: 1px solid var(--navy); } }

/* ---------- Referenz: case sheet ---------- */
.sheet { background: var(--white); border: 1px solid var(--navy); box-shadow: var(--shadow-md); }
.sheet-drawing { padding: 28px 28px 0; border-bottom: 1px solid var(--navy); background: var(--paper); }
.sheet-drawing svg { width: 100%; height: auto; }
.sheet-drawing p { padding: 8px 0 12px; font-size: .8125rem; color: var(--ink-500); }
.sheet-body { padding: clamp(24px, 3vw, 40px); display: grid; gap: 24px; }
.case-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.case-rows > div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.case-rows dt { color: var(--gold-700); }
.case-rows dd { color: var(--ink-700); }
@media (max-width: 599px) { .case-rows > div { grid-template-columns: 1fr; gap: 4px; } }
.timedim { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 12px; padding-top: 8px; }
.timedim .label { color: var(--ink-500); }
.timedim-line { position: relative; height: 1px; background: var(--navy); margin-bottom: 7px; }
.timedim-line::before, .timedim-line::after { content: ""; position: absolute; top: -6px; width: 1px; height: 13px; background: var(--navy); transform: skewX(-40deg); }
.timedim-line::before { left: 0; } .timedim-line::after { right: 0; }
.timedim-value { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); white-space: nowrap; font-family: var(--serif); font-size: 1.375rem; color: var(--navy); background: var(--white); padding: 0 10px; }

/* ---------- Kundenstimmen ---------- */
.reviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 48px; margin-bottom: clamp(40px, 5vw, 64px); }
.reviews-score { display: grid; gap: 8px; justify-items: start; }
.reviews-score .stars .icon { width: 20px; height: 20px; }
.reviews-score p { color: var(--ink-700); font-size: .9375rem; }
.quotes { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); }
.quote { display: grid; gap: 20px; align-content: start; }
.quote blockquote p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.15rem, 1rem + .4vw, 1.375rem); line-height: 1.5; color: var(--navy); }
.quote--lead blockquote p { font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.125rem); line-height: 1.35; }
.quote figcaption { display: flex; align-items: center; gap: 14px; font-size: .9375rem; color: var(--ink-700); }
.quote figcaption::before { content: ""; width: 32px; height: 1px; background: var(--gold-700); flex: none; }
.quote figcaption b { font-weight: 500; color: var(--ink); }
.quotes-side { display: grid; gap: 40px; align-content: start; padding-left: clamp(0px, 3vw, 48px); border-left: 1px solid var(--gold-700); }
@media (max-width: 899px) { .quotes { grid-template-columns: 1fr; } .quotes-side { border-left: 0; padding-left: 0; padding-top: 32px; border-top: 1px solid var(--gold-700); } }

/* ---------- Ansprechpartnerin ---------- */
.person-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--navy-900); }
.person-photo picture, .arch picture { display: block; height: 100%; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 30%; }
.signature { display: grid; gap: 2px; margin-block: 32px; padding-left: 18px; border-left: 1px solid var(--gold); }
.signature b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--on-navy); }
.signature span { color: var(--on-navy-muted); font-size: .9375rem; }
.split--person { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
@media (max-width: 899px) { .split--person { grid-template-columns: 1fr; } .person-photo { max-width: 460px; } }

/* ---------- Casa ---------- */
.casa { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(40px, 6vw, 96px); align-items: end; }
.casa .display { grid-column: 1 / -1; color: var(--navy); }
.casa-text { display: grid; gap: 20px; }
.casa-lines { display: grid; gap: 6px; padding-top: 20px; border-top: 1px solid var(--navy); }
.casa-lines p { font-family: var(--serif); font-size: 1.375rem; color: var(--navy); }
.casa-lines p + p { font-style: italic; }
.casa-mark { width: clamp(120px, 16vw, 220px); justify-self: end; }
@media (max-width: 899px) { .casa { grid-template-columns: 1fr; } .casa-mark { justify-self: start; } }

/* ---------- Immobilien ---------- */
.listings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
@media (max-width: 999px) { .listings { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .listings { grid-template-columns: 1fr; } }
.listing { position: relative; display: grid; background: var(--white); border-radius: 2px; box-shadow: var(--shadow-xs); transition: transform 450ms var(--ease), box-shadow 450ms var(--ease); }
.listing:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.listing-media { position: relative; aspect-ratio: 4 / 3; background: var(--stone-200); border-radius: 2px 2px 0 0; display: grid; place-items: center; overflow: hidden; }
.listing-media svg { width: 58%; height: auto; fill: none; stroke: var(--navy); stroke-width: 1.5; }
.listing-media .label { position: absolute; left: 16px; bottom: 14px; color: var(--ink-700); }
.listing-body { padding: 24px 24px 28px; display: grid; gap: 6px; }
.listing-place { display: flex; align-items: center; gap: 6px; color: var(--ink-500); font-size: .9375rem; }
.listing-place .icon { width: 16px; height: 16px; }
.listing-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--navy); line-height: 1.3; }
.listing-facts { color: var(--ink-700); }
.price { font-family: var(--serif); font-size: 1.625rem; font-weight: 400; color: var(--navy); margin-top: 6px; font-variant-numeric: lining-nums; }
.listing .link { justify-self: start; margin-top: 10px; }
.listing .link::after { content: ""; position: absolute; inset: 0; }
.listings-foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; margin-top: clamp(32px, 4vw, 56px); }
.search-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 28px 32px; border: 1px solid var(--navy); background: var(--paper); }
.search-box h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--navy); }
.search-box p { color: var(--ink-700); max-width: 34rem; }
@media (max-width: 899px) { .listings-foot { grid-template-columns: 1fr; } }

/* ---------- Kontakt and form ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 999px) { .contact { grid-template-columns: 1fr; } }
.contact-intro { display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 40px); }
@media (max-width: 999px) { .contact-intro { position: static; } }
.channels { display: grid; border-top: 1px solid var(--navy); }
.channels a, .channels div { display: grid; grid-template-columns: 24px 7rem 1fr; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--navy); }
.channels .label { color: var(--ink-500); }
.channels span:last-child { font-family: var(--serif); font-size: 1.25rem; }
.channels a:hover span:last-child { text-decoration: underline; text-decoration-color: var(--gold); }
@media (max-width: 420px) { .channels a, .channels div { grid-template-columns: 24px 1fr; } .channels .label { display: none; } }
.form-sheet { background: var(--white); border: 1px solid var(--navy); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-md); }
.form-sheet .h3 { margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 599px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; align-content: start; }
.field > label, .field legend { font-size: .9375rem; font-weight: 500; color: var(--ink); padding: 0; }
.field .opt { font-weight: 400; color: var(--ink-500); }
.field .hint { font-size: .875rem; color: var(--ink-500); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.input, .select, .textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--ink-400); border-radius: 2px; background: var(--white); color: var(--ink); transition: border-color 240ms var(--ease), box-shadow 240ms var(--ease); }
.textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 44px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23042b60' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; }
.input::placeholder, .textarea::placeholder { color: var(--ink-500); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--navy); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.tile { position: relative; }
.tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tile span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 1px solid var(--ink-400); border-radius: 2px; background: var(--white); font-size: .9375rem; color: var(--ink); transition: background-color 240ms var(--ease), border-color 240ms var(--ease), color 240ms var(--ease); }
.tile input:hover + span { border-color: var(--navy); }
.tile input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tile input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .9375rem; color: var(--ink-700); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); cursor: pointer; }
.field-error { display: none; align-items: center; gap: 8px; font-size: .875rem; color: var(--danger); }
.field-error .icon { width: 16px; height: 16px; }
.field.has-error .field-error { display: flex; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea, .field.has-error .tile span { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { display: grid; gap: 12px; justify-items: start; margin-top: 8px; }
.form-status { font-size: .9375rem; }
.form-status.is-error { color: var(--danger); background: var(--danger-bg); padding: 12px 14px; border-radius: 2px; }
#form-wrap.is-sent form { display: none; }
.form-success[hidden] { display: none; }
.form-success { display: grid; gap: 14px; }
.form-success .icon { width: 32px; height: 32px; color: var(--success); }
.form-success p { color: var(--ink-700); }

/* ---------- Ratgeber: drawing index ---------- */
.index { border-top: 1px solid var(--navy); }
.index li { display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.index-no { font-family: var(--serif); font-size: 1.25rem; color: var(--gold-700); font-variant-numeric: lining-nums tabular-nums; }
.index-title { font-family: var(--serif); font-size: clamp(1.25rem, 1.05rem + .6vw, 1.625rem); line-height: 1.3; color: var(--navy); }
.index .label { color: var(--ink-500); }
@media (max-width: 639px) { .index li { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Abschluss ---------- */
.closing { overflow: hidden; }
.closing-door { position: absolute; right: 4vw; bottom: 0; width: min(56vw, 700px); height: auto; fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: .75; pointer-events: none; }
.closing-door .wall { stroke-width: 7; stroke-linecap: square; }
.closing .wrap { position: relative; display: grid; gap: 28px; justify-items: start; }
.closing .display { max-width: 14ch; }
.closing .prose { max-width: 34rem; }
.closing-channels { display: flex; flex-wrap: wrap; gap: 12px 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-navy-muted); padding-block: clamp(56px, 7vw, 96px) 32px; margin-top: -1px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid img { width: 140px; }
.footer-grid h2 { font-family: var(--sans); font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-grid li + li { margin-top: 6px; }
.footer-grid a { color: var(--white); text-decoration-color: rgba(218, 191, 116, .6); }
.footer-grid address { font-style: normal; }
.footer-line { margin-top: clamp(40px, 5vw, 72px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .875rem; }
.footer-line em { font-family: var(--serif); font-size: 1.125rem; color: var(--white); }
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 519px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Subpages ---------- */
.page-hero { padding-block: clamp(16px, 2.2vw, 28px) clamp(56px, 6vw, 96px); }
.toc-plan { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border: var(--wall) solid var(--navy); }
.toc-main { grid-column: 1 / 8; grid-row: 1 / 4; padding: clamp(32px, 4.2vw, 64px) clamp(28px, 4vw, 60px); border-right: var(--wall-in) solid var(--navy); display: grid; gap: 28px; align-content: start; position: relative; }
.toc-room { grid-column: span 5; position: relative; }
.toc-rooms { grid-column: 8 / 13; grid-row: 1 / 4; display: grid; grid-template-columns: 1fr 1fr; }
.toc-rooms a { position: relative; display: grid; align-content: space-between; gap: 18px; min-height: 112px; padding: 16px 18px; text-decoration: none; border-right: var(--wall-in) solid var(--navy); border-bottom: var(--wall-in) solid var(--navy); transition: background-color 240ms var(--ease); }
.toc-rooms a:nth-child(2n) { border-right: 0; }
.toc-rooms a:nth-last-child(-n+2) { border-bottom: 0; }
.toc-rooms a:hover { background: var(--stone); }
.toc-rooms a.is-potenzial { background-image: var(--hatch); }
.toc-rooms a.is-potenzial span { background: var(--paper); width: fit-content; padding: 2px 6px; margin: -2px -6px; }
.toc-rooms .label { color: var(--ink-700); }
.toc-rooms .toc-no { font-family: var(--serif); font-size: 1.125rem; color: var(--gold-700); }
.toc-rooms a:hover .label { color: var(--navy); }
@media (max-width: 1099px) { .toc-plan { grid-template-columns: 1fr; } .toc-main { grid-column: 1; grid-row: 1; border-right: 0; border-bottom: var(--wall-in) solid var(--navy); } .toc-rooms { grid-column: 1; grid-row: 2; } }
@media (max-width: 479px) { .toc-rooms a { min-height: 92px; padding: 12px; } .toc-rooms .label { letter-spacing: .12em; } }

/* Corridor: long-form sections hang off one drawn corridor wall */
.corridor { position: relative; }
.corridor-wall { position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) + 20px); width: 22px; border-left: var(--wall-in) solid var(--navy); border-right: var(--hair) solid var(--navy); pointer-events: none; }
.chapter { position: relative; padding: clamp(48px, 6vw, 88px) 0 clamp(48px, 6vw, 88px) clamp(64px, 8vw, 120px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 5vw, 80px); border-bottom: 1px solid var(--line); }
.chapter:last-child { border-bottom: 0; }
.chapter::before { content: ""; position: absolute; left: 19px; top: clamp(52px, 6.2vw, 92px); width: 25px; height: 48px; background: var(--paper); }
.chapter::after { content: ""; position: absolute; left: 43px; top: clamp(52px, 6.2vw, 92px); width: 48px; height: 48px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23042b60' stroke-width='1'%3E%3Cpath d='M0 0.5 H47.5 M0.5 0 V48 M47.5 0.5 A47 47 0 0 1 0.5 48'/%3E%3C/svg%3E") no-repeat; }
.chapter-no { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--gold-700); margin-bottom: 10px; font-variant-numeric: lining-nums; }
.chapter .prose { padding-top: 8px; }
.chapter--hatch .prose { position: relative; }
.chapter-list { display: grid; margin-top: 24px; border-top: 1px solid var(--navy); }
.chapter-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.1875rem; color: var(--navy); }
.chapter-aside { margin-top: 24px; padding: 18px 20px; background-image: var(--hatch); }
.chapter-aside p { background: var(--paper); padding: 12px 16px; font-family: var(--serif); font-style: italic; font-size: 1.1875rem; color: var(--navy); line-height: 1.45; }
.corridor.section { padding-block: 8px clamp(24px, 3vw, 48px); }
@media (max-width: 899px) { .chapter { grid-template-columns: 1fr; padding-left: 52px; } .corridor-wall { left: calc(var(--gutter) + 4px); width: 16px; } .chapter::before { left: 3px; width: 19px; } .chapter::after { display: none; } }

.faq { border-top: 1px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: clamp(1.2rem, 1.05rem + .45vw, 1.5rem); line-height: 1.3; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; transition: transform 300ms var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 0 26px; max-width: var(--text-max); color: var(--ink-700); }

/* Über: Raumbuch (room schedule) */
.raumbuch { border-top: var(--wall-in) solid var(--navy); }
.raumbuch-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 16px clamp(24px, 4vw, 64px); padding: clamp(28px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--navy); align-items: baseline; }
.raumbuch-row .index-no { font-size: 1.375rem; }
.raumbuch-row .h3 { font-size: clamp(1.4rem, 1.15rem + .7vw, 1.875rem); }
@media (max-width: 799px) { .raumbuch-row { grid-template-columns: 1fr; } }

/* Legal pages */
.legal .prose h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--navy); margin: 2em 0 .5em; }
.legal .note { padding: 18px 20px; background-image: var(--hatch); margin-top: 32px; }
.legal .note p { background: var(--paper); padding: 12px 16px; }

/* Verkaufen: chapter headings, strategy as a dimension chain */
.h2--chapter { font-size: clamp(1.75rem, 1.25rem + 1.3vw, 2.5rem); }
.strategy-chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--gold); counter-reset: chain; }
.strategy-chain li { position: relative; padding: 0 16px 18px; text-align: center; font-family: var(--serif); font-size: clamp(1.15rem, 1rem + .6vw, 1.625rem); color: var(--on-navy); }
.strategy-chain li::before, .strategy-chain li:last-child::after { content: ""; position: absolute; bottom: -7px; left: 0; width: 1px; height: 14px; background: var(--gold); }
.strategy-chain li:last-child::after { left: auto; right: 0; }
.strategy-chain li span { display: block; }
@media (max-width: 699px) { .strategy-chain { grid-template-columns: 1fr 1fr; row-gap: 28px; border-bottom: 0; } .strategy-chain li { border-bottom: 1px solid var(--gold); } .strategy-chain li::after { content: ""; position: absolute; bottom: -7px; right: 0; width: 1px; height: 14px; background: var(--gold); } }

/* Über */
.titleblock--static { position: static; margin-top: 12px; max-width: 34rem; }
.closing--light .closing-door { stroke: var(--navy); opacity: .45; }
.closing--light .display { color: var(--navy); }
.page-hero.section { padding-top: clamp(40px, 5vw, 72px); }

.sticky-head { position: sticky; top: calc(var(--header-h) + 40px); }
@media (max-width: 899px) { .sticky-head { position: static; } }

/* SplitText line masks: room for umlauts and descenders */
[data-split] > div { padding-block: .16em .1em; margin-block: -.16em -.1em; }
/* Adjacent negative margins collapse to the larger one instead of adding up, which left .1em extra per line
   break; the sum on every following line keeps the leading of the unsplit heading */
[data-split] > div + div { margin-top: -.26em; }
.menu-btn span { white-space: nowrap; }
.field > label.check { font-weight: 400; color: var(--ink-700); }

/* Hero walls are drawn on load: an overlay draws them, the real borders wait */
.plan.is-drawing, .plan.is-drawing .room { border-color: transparent !important; }
.wall-draw { position: absolute; pointer-events: none; overflow: visible; z-index: 3; fill: none; stroke: var(--navy); stroke-linecap: square; }
.sheet--wide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.sheet--wide .sheet-drawing { border-bottom: 0; border-right: 1px solid var(--navy); display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(24px, 3vw, 48px) 16px; }
@media (max-width: 899px) { .sheet--wide { grid-template-columns: 1fr; } .sheet--wide .sheet-drawing { border-right: 0; border-bottom: 1px solid var(--navy); } }

/* Über: the hero as a plan, the Raumbuch as a room schedule */
.about-plan { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border: var(--wall) solid var(--navy); background: var(--paper); }
.about-main { display: grid; gap: 24px; align-content: center; padding: clamp(32px, 4.4vw, 72px) clamp(28px, 4vw, 64px); border-right: var(--wall-in) solid var(--navy); }
.about-photo { padding: clamp(20px, 2.4vw, 36px); display: grid; align-items: end; }
.about-photo .arch { width: 100%; max-width: 460px; justify-self: center; }
.about-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--wall-in) solid var(--navy); }
.about-facts li { padding: 22px clamp(18px, 2vw, 28px) 26px; border-right: var(--wall-in) solid var(--navy); font-family: var(--serif); font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem); line-height: 1.3; color: var(--navy); }
.about-facts li:last-child { border-right: 0; }
.raumbuch { border: var(--wall) solid var(--navy); border-width: var(--wall) 0; }
.raumbuch-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 16px clamp(24px, 4vw, 64px); padding: 14px 0; border-bottom: var(--wall-in) solid var(--navy); color: var(--ink-700); }
.raumbuch-row:last-child { border-bottom: 0; }
@media (max-width: 899px) {
  .about-plan { grid-template-columns: 1fr; }
  .about-main { border-right: 0; border-bottom: var(--wall-in) solid var(--navy); }
  .about-photo .arch { max-width: 360px; }
  .about-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .about-facts li { font-size: 1rem; padding: 16px 14px 18px; overflow-wrap: break-word; }
  .about-facts li:nth-child(2) { border-right: 0; }
  .about-facts li:nth-child(-n+2) { border-bottom: var(--wall-in) solid var(--navy); }
  .raumbuch-head { display: none; }
}

/* Reduced motion: no transitions or hover movement either (brand rule) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .listing:hover { transform: none; }
  .btn:hover .icon, .link:hover .icon { transform: none; }
}
.dims--split { grid-template-columns: 7fr 5fr; }
.chapter-no--inverse { color: var(--gold); }
.prose--spaced { margin-top: 32px; }
.channels-intro { margin-bottom: 10px; color: var(--ink-700); }
.person-photo img.pos-right { object-position: 62% 30%; }
.legend .dot { fill: var(--gold); stroke: none; }

/* ---------- Home hero: scroll-scrubbed walkthrough (scroll-craft engine) ---------- */
/* Engine tokens themed to the brand; the engine stylesheet loads before this file, so the rules below win. */
:root {
  --sc-canvas: #021631; --sc-surface: #03214b; --sc-ink: #ffffff; --sc-ink-soft: #c9d3e3;
  --sc-accent: #042b60; --sc-accent-ink: #ffffff;
  --sc-font-display: "Newsreader", Georgia, serif; --sc-font-text: "Jost", system-ui, sans-serif;
  caret-color: auto; accent-color: auto;
}
html { scroll-behavior: auto; }
body { letter-spacing: normal; }
.hero-film { position: relative; background: var(--navy-950); color: var(--on-navy); }
.hero-film__stage { top: 0; height: 100vh; height: 100svh; }
.hero-film__topscrim { position: absolute; inset: 0 0 auto 0; height: 190px; z-index: 2; pointer-events: none; background: linear-gradient(to bottom, rgba(2, 22, 49, .66) 0%, rgba(2, 22, 49, .3) 52%, transparent 100%); }
.hero-film__scrim {
  /* One wide, eased falloff from the corner where the copy sits: no hard edges, no box */
  background:
    radial-gradient(ellipse 92% 128% at 8% 96%,
      rgba(2, 22, 49, .88) 0%, rgba(2, 22, 49, .87) 24%, rgba(2, 22, 49, .84) 38%, rgba(2, 22, 49, .78) 49%,
      rgba(2, 22, 49, .67) 59%, rgba(2, 22, 49, .52) 68%, rgba(2, 22, 49, .35) 77%, rgba(2, 22, 49, .19) 85%,
      rgba(2, 22, 49, .07) 92%, rgba(2, 22, 49, 0) 100%),
    linear-gradient(to top, rgba(2, 22, 49, .55) 0, rgba(2, 22, 49, .3) 90px, rgba(2, 22, 49, .1) 170px, rgba(2, 22, 49, 0) 240px);
}
.hero-film__copy { position: absolute; z-index: 20; left: max(var(--gutter), calc((100% - var(--max)) / 2)); bottom: clamp(96px, 14vh, 140px); width: fit-content; max-width: min(46rem, calc(100% - 2 * var(--gutter))); display: grid; gap: 22px; justify-items: start; }
.hero-film__h1 { font-family: var(--serif); font-weight: 300; font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -.022em; color: var(--white); text-wrap: balance; }
.hero-film__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.1rem, 1rem + 2.6vw, 3.5rem); line-height: 1.08; letter-spacing: -.02em; color: var(--white); text-wrap: balance; }
.hero-film__h1 em, .hero-film__title em { font-style: italic; color: var(--gold); }
.hero-film__text { font-size: var(--fs-lead); font-weight: 300; line-height: 1.6; color: var(--on-navy-muted); max-width: 32rem; }
.hero-film .trust { color: var(--on-navy-muted); }
.hero-film .link { color: var(--white); }
.hero-film .link:hover { color: var(--gold); background-image: linear-gradient(var(--gold), var(--gold)); }
.hero-film :focus-visible { outline-color: var(--gold); }
.hero-film__agent { display: flex; align-items: center; gap: 14px; color: var(--on-navy-muted); text-decoration: none; font-size: .875rem; line-height: 1.5; }
.hero-film__agent picture { flex: none; width: 48px; height: 60px; border-radius: 640px 640px 0 0; overflow: hidden; background: var(--navy-900); }
.hero-film__agent img { width: 100%; height: 100%; object-fit: cover; }
.hero-film__agent b { font-weight: 500; color: var(--white); }
.hero-film__agent .stars { color: var(--gold); vertical-align: -2px; }
.hero-film__agent .stars .icon { width: 13px; height: 13px; }
html:not(.sc-ready) .hero-film__copy--2, html:not(.sc-ready) .hero-film__copy--3 { display: none; }
/* The walkthrough measured like a plan: a dimension chain whose ticks are the rooms */
.hero-film__route { position: absolute; z-index: 20; left: max(var(--gutter), calc((100% - var(--max)) / 2)); right: max(var(--gutter), calc((100% - var(--max)) / 2)); bottom: 30px; height: 34px; pointer-events: none; }
.hero-film__route-line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255, 255, 255, .42); }
.hero-film__route-fill { position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--gold); transform-origin: left center; transform: scaleX(var(--sc-p, 0)); }
.hero-film__room { position: absolute; bottom: 9px; padding-left: 9px; font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .68); transition: color 240ms var(--ease); white-space: nowrap; }
.hero-film__room::before { content: ""; position: absolute; left: 0; bottom: -16px; width: 1px; height: 22px; background: rgba(255, 255, 255, .7); }
.hero-film__room.is-here { color: var(--white); }
.hero-film__room.is-here::before { background: var(--gold); width: 2px; }
.hero-film__room--a { left: 0; }
.hero-film__room--k { left: 38.3%; }
.hero-film__room--w { left: 56%; }
.hero-film__room--s { left: 81%; }

/* Idle motion before the first scroll. Both layers are gone within the first ~3 % of the act,
   before the camera moves, so nothing has to follow the footage. */
/* A 16:9 box that covers the stage exactly like the poster and the video (object-fit: cover, centred),
   so the lights can be placed in frame coordinates. Screen blend adds light instead of a tint. */
.hero-film__lights { position: absolute; z-index: 1; left: 50%; top: 50%; width: max(100%, 177.78vh); width: max(100%, 177.78svh); aspect-ratio: 16 / 9; transform: translate(-50%, -50%); pointer-events: none; mix-blend-mode: screen; opacity: clamp(0, 1 - var(--sc-p, 0) * 30, 1); }
.hero-film__light { position: absolute; left: calc(var(--x) - var(--w) / 2); top: calc(var(--y) - var(--h) / 2); width: var(--w); height: var(--h); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 196, 122, .36), rgba(255, 196, 122, .16) 55%, rgba(255, 196, 122, 0)); opacity: 0;
  --fade: .6s; animation: hero-light-on var(--fade) var(--ease) var(--on) both, hero-light-breathe var(--dur) cubic-bezier(.45, 0, .55, 1) calc(var(--on) + var(--fade)) infinite alternate; }
.hero-film__light--lamp { background: radial-gradient(closest-side, rgba(255, 214, 158, .62), rgba(255, 200, 130, .22) 45%, rgba(255, 200, 130, 0)); }
/* Switched on one after another, like walking in: wall lamps, entrance, ground floor, upstairs (250 ms apart) */
.hero-film__light--lamp-1 { --x: 58.4%; --y: 62.8%; --w: 3.4%; --h: 6%;   --on: 1s;    --dur: 6.8s; }
.hero-film__light--lamp-2 { --x: 68.9%; --y: 61.4%; --w: 3.4%; --h: 6%;   --on: 1.25s; --dur: 7.4s; }
.hero-film__light--entry  { --x: 54.5%; --y: 65%;   --w: 8%;   --h: 16%;  --on: 1.5s;  --dur: 8.4s; }
.hero-film__light--lower  { --x: 81%;   --y: 64%;   --w: 22%;  --h: 28%;  --on: 1.75s; --dur: 9.2s; }
.hero-film__light--upper  { --x: 80.8%; --y: 37%;   --w: 22%;  --h: 30%;  --on: 2s;    --dur: 7.6s; }
@keyframes hero-light-on { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-light-breathe { from { opacity: 1; } to { opacity: .42; } }

/* The route fill draws its first few centimetres and fades again: the bar fills when you scroll */
.hero-film__route-tease { position: absolute; left: 0; top: -1px; height: 3px; width: clamp(40px, 5%, 72px); opacity: clamp(0, 1 - var(--sc-p, 0) * 40, 1); }
.hero-film__route-tease::before { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left center; transform: scaleX(0); animation: hero-route-tease 5.6s 2.8s infinite; }
@keyframes hero-route-tease {
  0% { transform: scaleX(0); opacity: 1; animation-timing-function: var(--ease); }
  26% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(1); opacity: 1; animation-timing-function: var(--ease); }
  72%, 99% { transform: scaleX(1); opacity: 0; }
  100% { transform: scaleX(0); opacity: 0; }
}
/* Once the walkthrough runs, the idle layers stop (main.js sets .is-moving) */
.hero-film.is-moving :is(.hero-film__lights, .hero-film__route-tease) { visibility: hidden; }
.hero-film.is-moving .hero-film__light, .hero-film.is-moving .hero-film__route-tease::before { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .hero-film__lights, .hero-film__route-tease { display: none; }
}
/* Portrait screens crop the frame to the middle of the house; the lit windows are outside it */
@media (max-aspect-ratio: 9 / 10) {
  .hero-film__lights { display: none; }
}

@media (max-width: 860px) {
  .hero-film__scrim { background: linear-gradient(to top, rgba(2, 22, 49, .92) 0%, rgba(2, 22, 49, .88) 30%, rgba(2, 22, 49, .8) 44%, rgba(2, 22, 49, .66) 55%, rgba(2, 22, 49, .48) 64%, rgba(2, 22, 49, .3) 72%, rgba(2, 22, 49, .15) 80%, rgba(2, 22, 49, .05) 88%, rgba(2, 22, 49, 0) 96%); }
  .hero-film__copy { bottom: 92px; gap: 16px; }
  .hero-film__room { letter-spacing: .08em; padding-left: 6px; }
  .hero-film__agent { font-size: .8125rem; }
}

/* Home: the header floats transparent over the walkthrough and turns paper once the video has ended */
.site-header--film { position: fixed; left: 0; right: 0; top: 0; background: transparent; border-bottom-color: transparent; transition: background-color 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease); }
.site-header--film.is-solid, .site-header--film:has(.nav.is-open) { background: var(--paper); border-bottom-color: var(--line); }
.site-header--film:not(.is-solid) { box-shadow: none; }
.brand { position: relative; display: block; }
.brand .logo-light { position: absolute; inset: 0; opacity: 0; transition: opacity 240ms var(--ease); }
.brand .logo-dark { transition: opacity 240ms var(--ease); }
.site-header--film:not(.is-solid):not(:has(.nav.is-open)) .brand .logo-dark { opacity: 0; }
.site-header--film:not(.is-solid):not(:has(.nav.is-open)) .brand .logo-light { opacity: 1; }
.site-header--film:not(.is-solid):not(:has(.nav.is-open)) .menu-btn { color: var(--white); }
.site-header--film:not(.is-solid) :focus-visible { outline-color: var(--gold); }
@media (min-width: 1280px) {
  .site-header--film:not(.is-solid) .nav a:not(.btn) { color: var(--white); }
  .site-header--film:not(.is-solid) .nav a:not(.btn):hover, .site-header--film:not(.is-solid) .nav a[aria-current="page"] { color: var(--white); background-image: linear-gradient(var(--gold), var(--gold)); }
  .site-header--film:not(.is-solid) .nav .btn { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85); }
  .site-header--film:not(.is-solid) .nav .btn:hover { background: var(--white); color: var(--navy); }
}
