/* QUBE 2.0 Seminyak, Landingpage v2. Mobile first. Baut auf tokens.css auf. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--t-golden); color: var(--ink);
  font-family: var(--font-text); font-size: var(--fs-body); line-height: var(--lh-body);
  letter-spacing: 0; font-kerning: normal; -webkit-font-smoothing: antialiased;
  transition: background-color var(--d-day) var(--ease-in-out);
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: var(--display-weight); text-wrap: balance; }
::selection { background: var(--camel); color: var(--ink); }
:focus-visible { outline: 2px solid var(--camel); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1520px; margin: 0 auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-y); }
.split { display: grid; gap: var(--s-6); }
@media (min-width: 960px) { .split { grid-template-columns: 5fr 7fr; gap: var(--s-9); align-items: start; } .split--even { grid-template-columns: 1fr 1fr; } }

[data-time] { color: var(--ink); }
[data-time="dusk"] { color: var(--on-dark); background: var(--t-dusk); }
[data-time="night"] { color: var(--on-dark); background: var(--t-night); }
.no-js [data-time="dawn"] { background: var(--t-dawn); }
.no-js [data-time="day"] { background: var(--t-day); }
.no-js [data-time="golden"] { background: var(--t-golden); }
.sunset { height: clamp(200px, 42vh, 520px); background: var(--sunset); }
.dusk-to-night { height: clamp(60px, 9vh, 120px); background: linear-gradient(180deg, var(--t-dusk), var(--t-night)); }

/* ---------- Typografie ---------- */
.h-hero, .h1, .h2, .h3, .display { font-family: var(--font-display); font-weight: var(--display-weight); font-optical-sizing: auto; }
.h-hero { font-size: var(--fs-hero); line-height: var(--lh-tight); }
.h1 { font-size: var(--fs-d1); line-height: var(--lh-tight); }
.h2 { font-size: var(--fs-d2); line-height: var(--lh-head); }
.h3 { font-size: var(--fs-d3); line-height: 1.15; }
em { font-style: italic; }
.lead { font-size: var(--fs-lead); line-height: 1.45; max-width: var(--measure); }
.small { font-size: var(--fs-small); line-height: 1.5; }
.micro { font-size: var(--fs-micro); line-height: 1.45; }
.label { font-family: var(--font-text); font-family: var(--font-label); font-stretch: var(--label-stretch); text-transform: var(--label-transform); font-weight: 500; font-size: var(--fs-micro); line-height: 1.3; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
[data-time="dusk"] .muted, [data-time="night"] .muted, [data-time="dusk"] .faint, [data-time="night"] .faint { color: var(--on-dark-2); }
.num { font-variant-numeric: lining-nums tabular-nums; }

.chapter { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); }
.chapter__time { font-family: var(--font-num); font-size: 1.25rem; line-height: 1; font-variant-numeric: lining-nums; }
.chapter__rule { flex: 0 0 36px; height: 1px; background: currentColor; opacity: .35; }
.chapter__label { font-family: var(--font-label); font-stretch: var(--label-stretch); text-transform: var(--label-transform); font-weight: 500; font-size: var(--fs-micro); opacity: .8; }
.sec-head { margin-bottom: var(--s-7); }
.sec-head .lead { margin-top: var(--s-4); }
@media (min-width: 960px) { .sec-head { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s-9); align-items: end; margin-bottom: var(--s-8); } .sec-head .lead { margin-top: 0; } }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 40; transition: background-color var(--d-base) var(--ease-out), color var(--d-day); }
.header.is-scrolled { background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
body[data-mode="dark"] .header { color: var(--on-dark); }
body[data-mode="dark"] .header.is-scrolled { background: var(--glass-dark); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: var(--s-4); }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand__mark { font-family: var(--font-display); font-size: 1.375rem; line-height: 1; }
.brand__sub { font-family: var(--font-label); font-stretch: var(--label-stretch); text-transform: var(--label-transform); font-size: 12px; opacity: .7; display: none; }
.header__right { display: flex; align-items: center; gap: var(--s-4); }
.header__clock { display: none; align-items: center; gap: 8px; font-size: 12px; font-family: var(--font-label); font-stretch: var(--label-stretch); text-transform: var(--label-transform); }
.sundial { width: 28px; height: 15px; }
.sundial path { fill: none; stroke: currentColor; stroke-width: 1; opacity: .35; }
.sundial circle { fill: var(--camel); }
.lang { font-family: var(--font-label); font-stretch: var(--label-stretch); text-transform: var(--label-transform); font-weight: 500; font-size: 13px; text-decoration: none; padding: 10px 4px; opacity: .8; }
.lang:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.header .header__cta { display: none; }
@media (min-width: 640px) { .brand__sub { display: inline; } }
@media (min-width: 960px) {
  .header__in { height: 72px; }
  .header__clock { display: inline-flex; }
  .header .header__cta { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--t-dawn);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--tap); padding: 0 26px; border: 1px solid var(--btn-bg); border-radius: var(--r-btn);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-text); font-family: var(--font-label); font-stretch: var(--label-stretch); text-transform: var(--label-transform); font-weight: 500; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color var(--d-fast) var(--ease-out), color var(--d-fast), border-color var(--d-fast), transform var(--d-fast);
}
.btn:hover { --btn-bg: #3A352E; }
.btn:active { transform: translateY(1px); }
.btn__arrow { width: 18px; height: 10px; flex: 0 0 18px; transition: transform var(--d-base) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--block { width: 100%; }
.btn--small { min-height: 42px; padding: 0 16px; font-size: var(--fs-small); }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; border-color: currentColor; }
.btn--ghost:hover { --btn-bg: transparent; opacity: .72; }
[data-time="dusk"] .btn:not(.btn--ghost), [data-time="night"] .btn:not(.btn--ghost), body[data-mode="dark"] .header .btn { --btn-bg: var(--on-dark); --btn-fg: var(--ink); }
[data-time="dusk"] .btn:not(.btn--ghost):hover, [data-time="night"] .btn:not(.btn--ghost):hover { --btn-bg: #FFFFFF; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.link { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 6px 0; cursor: pointer; font-family: var(--font-label); font-stretch: var(--label-stretch); text-transform: var(--label-transform); font-weight: 500; font-size: var(--fs-small); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.link:hover { text-decoration-thickness: 2px; }
.cta-note { font-size: var(--fs-micro); margin-top: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip { border-radius: var(--r-chip); display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 11px; border: 1px solid color-mix(in srgb, currentColor 26%, transparent); font-family: var(--font-label); font-stretch: var(--label-stretch); text-transform: var(--label-transform); font-size: var(--fs-micro); line-height: 1.2; }
.chip b { font-weight: 600; }

.tag { border-radius: var(--r-chip); position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 4px 8px; font-size: 11px; line-height: 1.2; font-family: var(--font-label); font-stretch: var(--label-stretch); text-transform: var(--label-transform); background: rgba(21,23,27,.55); color: #F1EBE1; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checks li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: baseline; font-size: var(--fs-small); }
.checks li::before { content: ""; width: 9px; height: 9px; border: 1px solid var(--teak); transform: translateY(-1px) rotate(45deg); background: var(--camel); }
[data-time="dusk"] .checks li::before, [data-time="night"] .checks li::before { border-color: var(--camel); }

/* ---------- Hero ---------- */
.hero { padding-top: 56px; padding-bottom: var(--s-7); }
.hero__grid { display: grid; gap: var(--s-4); }
.hero__media { border-radius: var(--r-hero); position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #C9B9A5; margin-inline: calc(var(--gutter) * -1); }
.hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media video { opacity: 0; transition: opacity 1.2s ease; }
.hero__media video.is-on { opacity: 1; }
.hero__eyebrow { margin-bottom: var(--s-3); color: var(--ink-3); }
.hero__title { margin-bottom: var(--s-4); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .line > span { display: inline-block; transform: translateY(108%); animation: rise 1.1s var(--ease-out) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .1s; }
.hero__title .line:nth-child(3) > span { animation-delay: .2s; }
@keyframes rise { to { transform: none; } }
.hero__copy { display: flex; flex-direction: column; min-width: 0; }
.hero__grid > * { min-width: 0; }
.hero__eyebrow { order: 1; } .hero__title { order: 2; } .hero__chips { order: 3; } .hero__cta { order: 4; } .hero__sub { order: 5; margin: var(--s-6) 0 0; color: var(--ink-2); }
@media (max-width: 959px) {
  .hero__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .hero__chips::-webkit-scrollbar { display: none; }
  .hero__chips .chip { flex: 0 0 auto; white-space: nowrap; }
}
@media (min-width: 960px) { .hero__sub { order: 3; margin: 0 0 var(--s-5); } .hero__chips { order: 4; } .hero__cta { order: 5; } }
.hero__chips { margin-bottom: var(--s-4); }
.hero__cta { display: grid; gap: var(--s-4); max-width: 480px; }
.hero__checks { margin-top: var(--s-2); }
.contact-line { display: flex; align-items: center; gap: 12px; font-size: var(--fs-small); color: var(--ink-2); }
.avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--kalk); font-family: var(--font-display); font-size: 1.05rem; border: 1px dashed var(--stone); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) {
  .hero { min-height: 100svh; display: flex; align-items: center; padding-top: 104px; padding-bottom: var(--s-8); }
  .hero__grid { grid-template-columns: 7fr 5fr; gap: var(--s-8); align-items: center; }
  .hero__media { margin: 0; aspect-ratio: 1 / 1; order: 2; }
  .hero__checks { grid-template-columns: auto auto; justify-content: start; column-gap: var(--s-6); }
}

/* ---------- Qube-Reveal ---------- */
.qube { position: relative; overflow: hidden; border-radius: var(--r-media); }
.qube__frame { position: relative; height: 100%; }
.js .qube[data-reveal] .qube__frame { clip-path: inset(var(--qi, 12%) var(--qx, 12%)); will-change: clip-path; }
.qube__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--qs, 1.06)); will-change: transform; }

/* ---------- Apartment: Raum-Band ---------- */
.rooms { position: relative; }
.rooms__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-inline: var(--gutter); padding-bottom: 4px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rooms__track::-webkit-scrollbar { display: none; }
.room { flex: 0 0 84%; max-width: 820px; scroll-snap-align: start; margin: 0; }
.room__img { border-radius: var(--r-media); position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #DDD3C6; }
.room__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.room--plan .room__img { background: #A8A29C; }
.room--plan .room__img img { object-fit: contain; }
.room__cap { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding-top: 12px; align-items: baseline; font-size: var(--fs-small); }
.room__no { font-family: var(--font-num); font-size: 1rem; }
.rooms__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-4); padding-inline: var(--gutter); }
.rooms__progress { flex: 1; height: 1px; background: var(--line); position: relative; max-width: 240px; }
.rooms__progress span { position: absolute; top: 0; bottom: 0; left: 0; background: var(--ink); width: 20%; transition: width var(--d-base) var(--ease-out), left var(--d-base) var(--ease-out); }
.rooms__nav { display: none; gap: 8px; }
.icon-btn { border-radius: var(--r-btn); width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid currentColor; background: transparent; cursor: pointer; }
.icon-btn:hover { background: var(--ink); color: var(--t-dawn); }
@media (min-width: 960px) { .room { flex-basis: 38%; } .room__img { aspect-ratio: 4 / 4.6; } .rooms__nav { display: flex; } .room:hover .room__img img { transform: scale(1.03); } }

.specs { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.spec { padding: var(--s-4) var(--s-3) var(--s-4) 0; border-bottom: 1px solid var(--line); }
.spec:nth-child(odd) { border-right: 1px solid var(--line); }
.spec:nth-child(even) { padding-left: var(--s-4); }
.spec__n { display: block; font-family: var(--font-num); font-size: var(--fs-num); line-height: 1; font-variant-numeric: lining-nums; }
.spec__l { display: block; margin-top: 6px; font-size: var(--fs-small); color: var(--ink-2); }
@media (min-width: 960px) { .specs { grid-template-columns: repeat(4, 1fr); } .spec { border-right: 1px solid var(--line); padding: var(--s-5) var(--s-5); border-bottom: 0; } .spec:first-child { padding-left: 0; } .spec:last-child { border-right: 0; } .spec:nth-child(even) { padding-left: var(--s-5); } }
.apt__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); align-items: center; margin-top: var(--s-5); }
.brands { font-size: var(--fs-small); color: var(--ink-2); margin: 0; }
.brands b { font-family: var(--font-display); font-weight: 400; font-size: 1.125rem; color: var(--ink); }

/* ---------- Lage ---------- */
.map__svg { border-radius: var(--r-media); width: 100%; height: auto; background: var(--kalk); }
.map__svg .coast { fill: #DCE0DD; }
.map__svg .land { fill: var(--kalk); }
.map__svg .road { stroke: #CFC5B6; stroke-width: 2; fill: none; }
.map__svg .ring { fill: none; stroke: var(--stone); stroke-dasharray: 2 5; }
.map__svg .pin { fill: var(--ink); }
.map__svg .poi { fill: var(--teak); }
.map__svg text { font-family: var(--font-text); font-size: 14px; fill: var(--ink-2); }
.map__svg .site-label { font-family: var(--font-display); font-size: 22px; fill: var(--ink); }
figcaption { font-size: var(--fs-micro); margin-top: 8px; color: var(--ink-3); }
.dist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.dist li { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--s-4); padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.dist__km { font-family: var(--font-num); font-size: 1.375rem; line-height: 1; font-variant-numeric: lining-nums; }
.dist__note { grid-column: 1 / -1; font-size: var(--fs-micro); color: var(--ink-3); }

/* ---------- Rechner ---------- */
.seg { border-radius: var(--r-ui); overflow: hidden; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); margin-bottom: var(--s-6); }
.seg button { min-height: 46px; border: 0; background: transparent; cursor: pointer; font-family: var(--font-label); font-stretch: var(--label-stretch); text-transform: var(--label-transform); font-weight: 500; font-size: var(--fs-micro); border-right: 1px solid var(--ink); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--t-dawn); }
.field { margin-bottom: var(--s-5); }
.field__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.field__label { font-size: var(--fs-small); }
.field__val { font-family: var(--font-num); font-size: 1.5rem; line-height: 1; font-variant-numeric: lining-nums; }
.field__hint { font-size: var(--fs-micro); color: var(--ink-3); margin: 6px 0 0; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; cursor: pointer; margin: 0; touch-action: pan-y; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--ink) var(--p, 50%), var(--line) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -11px; background: var(--t-golden); border: 1px solid var(--ink); transform: rotate(45deg); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; background: var(--t-golden); border: 1px solid var(--ink); border-radius: 0; transform: rotate(45deg); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--camel); outline-offset: 3px; }

.result { border-top: 1px solid var(--ink); }
.result__main { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.result__big { display: block; font-family: var(--font-num); font-size: var(--fs-num); line-height: 1; font-variant-numeric: lining-nums; }
.result__lbl { display: block; margin-top: 8px; font-size: var(--fs-micro); color: var(--ink-2); }
.result__frame { padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.result__frame .h3 { margin-bottom: 6px; }
.flowbar { margin-top: var(--s-5); }
.flowbar__bar { display: flex; height: 22px; width: 100%; background: var(--line); overflow: hidden; }
.flowbar__bar span { height: 100%; flex: 0 0 0; transition: flex-basis var(--d-slow) var(--ease-out); }
.flowbar__legend { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-size: 12px; }
.flowbar__legend li { display: grid; grid-template-columns: 9px 1fr auto; gap: 7px; align-items: center; }
.flowbar__legend i { width: 9px; height: 9px; display: block; }
.flowbar__legend b { font-weight: 500; font-variant-numeric: tabular-nums; }
@media (min-width: 600px) { .flowbar__legend { grid-template-columns: repeat(4, 1fr); } }
.ledger { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.ledger td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.ledger td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.ledger tr.sum td { font-weight: 600; border-bottom: 1px solid var(--ink); }
.disclaimer { font-size: var(--fs-micro); color: var(--ink-3); margin-top: var(--s-4); }

/* ---------- Akkordeon ---------- */
.acc { border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.acc details { border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 20px; gap: var(--s-4); align-items: center; padding: 18px 0; font-weight: 500; font-size: 1.0625rem; line-height: 1.35; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 14px; height: 14px; justify-self: end; background: linear-gradient(currentColor, currentColor) center / 14px 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 14px no-repeat; transition: transform var(--d-base) var(--ease-out); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc__body { padding: 0 0 var(--s-5); max-width: 44em; }
.acc__body p:last-child { margin-bottom: 0; }

/* ---------- Zahlungsplan ---------- */
.steps { position: relative; margin: 0; padding: 0; list-style: none; }
.steps::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: 22px; width: 1px; background: var(--line); }
.steps__fill { position: absolute; left: 7px; top: 22px; width: 1px; height: 0; background: var(--ink); }
.step { position: relative; display: grid; grid-template-columns: 16px 1fr auto; gap: var(--s-4); padding: 13px 0; align-items: center; }
.step__dot { width: 15px; height: 15px; background: var(--t-golden); border: 1px solid var(--ink); transform: rotate(45deg) scale(.72); }
.step.is-on .step__dot { background: var(--ink); }
.step__t { display: block; font-weight: 500; font-size: var(--fs-small); }
.step__d { display: block; font-size: var(--fs-micro); color: var(--ink-3); }
.step__amt { text-align: right; font-family: var(--font-num); font-size: 1.25rem; line-height: 1; font-variant-numeric: lining-nums; }
.step__pct { display: block; margin-top: 4px; font-family: var(--font-text); font-size: 12px; color: var(--ink-3); }
.note { border-radius: var(--r-ui); padding: var(--s-4) var(--s-5); background: color-mix(in srgb, var(--ink) 5%, transparent); font-size: var(--fs-small); margin-top: var(--s-5); }
.note strong { font-weight: 600; }

/* ---------- Prüfen statt glauben ---------- */
.chain { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.chain li { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line-dark); }
.chain__n { font-family: var(--font-num); font-size: 1.5rem; line-height: 1.1; color: var(--camel); font-variant-numeric: lining-nums; }
.chain strong { display: block; font-weight: 600; margin-bottom: 2px; }
.chain__d { color: var(--on-dark-2); font-size: var(--fs-small); }
.open { margin-top: var(--s-7); }
.open .h3 { margin-bottom: var(--s-4); }
.proofs { display: grid; gap: 12px; margin-top: var(--s-8); }
.proof { border-radius: var(--r-ui); border: 1px solid var(--line-dark); display: grid; grid-template-columns: 96px 1fr; gap: var(--s-4); padding: 12px; align-items: center; }
.proof__media { border-radius: var(--r-media); position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #2C3038; }
.proof__media img, .proof__media video { width: 100%; height: 100%; object-fit: cover; }
.proof__doc { background: #ECE7DF; }
.proof__doc::before { content: ""; position: absolute; inset: 16% 16% auto; height: 6%; background: #B9B1A5; box-shadow: 0 12px 0 #CFC8BC, 0 22px 0 #CFC8BC, 0 32px 0 #CFC8BC, 0 42px 0 #CFC8BC; }
.proof__doc::after { content: ""; position: absolute; width: 36%; aspect-ratio: 1; border-radius: 50%; border: 2px solid #B4483F; right: 12%; bottom: 10%; opacity: .7; }
.proof__k { font-family: var(--font-label); font-stretch: var(--label-stretch); text-transform: var(--label-transform); font-size: 12px; color: var(--camel); margin-bottom: 4px; display: block; }
.proof__t { font-weight: 600; font-size: var(--fs-small); display: block; margin-bottom: 4px; }
.proof__d { font-size: var(--fs-micro); color: var(--on-dark-2); display: block; }
.proof__logo { display: grid; place-items: center; padding: 10px; }
.proof__logo img { width: 100%; height: auto; object-fit: contain; opacity: .9; }
@media (min-width: 960px) { .proofs { grid-template-columns: repeat(3, 1fr); gap: var(--col-gap); } .proof { grid-template-columns: 1fr; align-items: start; border: 0; border-top: 1px solid var(--line-dark); padding: var(--s-4) 0 0; } .proof__media { aspect-ratio: 16 / 10; } .proof__logo { padding: 18% 30%; } }

/* ---------- Einheiten ---------- */
.cubes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 520px; }
.cube { border-radius: var(--r-ui); aspect-ratio: 1; border: 1px solid var(--line-dark); display: flex; flex-direction: column; justify-content: space-between; padding: 10px; background: transparent; color: inherit; text-align: left; cursor: pointer; transition: background var(--d-base) var(--ease-out), border-color var(--d-base); }
.cube:hover, .cube:focus-visible { border-color: var(--on-dark); background: rgba(255,255,255,.04); }
.cube__id { font-family: var(--font-num); font-size: clamp(1.25rem, 3.4vw, 1.9rem); line-height: 1; font-variant-numeric: lining-nums; }
.cube__s { font-size: 12px; display: flex; align-items: center; gap: 6px; font-family: var(--font-label); font-stretch: var(--label-stretch); text-transform: var(--label-transform); }
.cube__s::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8FA27A; }
.cube[data-status="sold"] { color: var(--on-dark-2); cursor: default; background: rgba(255,255,255,.03); }
.cube[data-status="sold"] .cube__s::before { background: var(--clay); }
.cube[data-status="reserved"] .cube__s::before { background: var(--camel); }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-4); font-size: 12px; color: var(--on-dark-2); margin-top: var(--s-4); }
.legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: #8FA27A; }
.legend .r::before { background: var(--camel); }
.legend .s::before { background: var(--clay); }
.flow { margin: var(--s-8) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.flow li { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line-dark); }
.flow__n { font-family: var(--font-num); font-size: 1.5rem; line-height: 1.1; color: var(--camel); font-variant-numeric: lining-nums; }
.flow strong { display: block; font-weight: 600; }
.flow__d { color: var(--on-dark-2); font-size: var(--fs-small); }
@media (min-width: 960px) { .flow { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--col-gap); border-top: 0; } .flow li { grid-template-columns: 1fr; border-top: 1px solid var(--line-dark); border-bottom: 0; gap: var(--s-3); } }

/* ---------- Abschluss, Footer ---------- */
.final { display: grid; gap: var(--s-6); }
@media (min-width: 960px) { .final { grid-template-columns: 7fr 5fr; align-items: end; gap: var(--s-9); } }
.final__alt { display: grid; gap: var(--s-4); }
.footer { padding: var(--s-8) 0 calc(var(--s-8) + 80px); font-size: var(--fs-micro); color: var(--on-dark-2); border-top: 1px solid var(--line-dark); }
.footer__grid { display: grid; gap: var(--s-5); }
.footer a, .footer button { color: var(--on-dark); }
.footer__logo { width: 120px; opacity: .85; }
@media (min-width: 960px) { .footer__grid { grid-template-columns: 2fr 6fr 4fr; } .footer { padding-bottom: var(--s-8); } }

/* ---------- Sticky-Leiste mobil ---------- */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 52px; gap: 8px; transform: translateY(110%); transition: transform var(--d-base) var(--ease-out); }
.sticky.is-on { transform: none; }
.sticky .btn { min-height: 52px; }
.sticky .btn--ghost { padding: 0; }
body[data-mode="dark"] .sticky { background: var(--glass-dark); border-color: var(--line-dark); color: var(--on-dark); }
body[data-mode="dark"] .sticky .btn:not(.btn--ghost) { --btn-bg: var(--on-dark); --btn-fg: var(--ink); }
@media (min-width: 960px) { .sticky { display: none; } }

/* ---------- Quiz ---------- */
.quiz { position: fixed; inset: 0; z-index: 60; background: var(--t-dawn); color: var(--ink); display: grid; grid-template-rows: auto auto 1fr auto; visibility: hidden; opacity: 0; transform: translateY(14px); transition: opacity var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out), visibility 0s linear var(--d-base); }
.quiz.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.quiz__top { display: flex; align-items: center; justify-content: space-between; height: 56px; padding-inline: var(--gutter); }
.quiz__progress { height: 2px; background: var(--line); margin-inline: var(--gutter); }
.quiz__progress span { display: block; height: 100%; background: var(--ink); width: 0; transition: width var(--d-base) var(--ease-out); }
.quiz__body { overflow-y: auto; padding: var(--s-6) var(--gutter); display: flex; justify-content: center; }
.quiz__inner { width: 100%; max-width: 600px; }
.quiz__step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz__step.is-active { display: block; animation: stepIn var(--d-base) var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quiz__q { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); line-height: 1.08; margin-bottom: var(--s-3); padding: 0; }
.quiz__sub { color: var(--ink-2); margin-bottom: var(--s-5); font-size: var(--fs-small); }
.opts { display: grid; gap: 8px; }
.opt { border-radius: var(--r-ui); display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 16px; border: 1px solid var(--line); background: rgba(255,255,255,.4); cursor: pointer; text-align: left; font-size: 1.0625rem; width: 100%; transition: border-color var(--d-fast), background var(--d-fast); }
.opt:hover { border-color: var(--ink); }
.opt[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: var(--t-dawn); }
.opt__k { width: 26px; height: 26px; flex: 0 0 26px; border: 1px solid currentColor; display: grid; place-items: center; font-size: 12px; opacity: .7; font-family: var(--font-label); font-stretch: var(--label-stretch); text-transform: var(--label-transform); }
.quiz__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.inp { display: grid; gap: 6px; margin-bottom: var(--s-4); }
.inp label { font-size: var(--fs-small); font-weight: 500; }
.inp input, .inp select { height: 54px; padding: 0 14px; border: 1px solid var(--stone); border-radius: var(--r-ui); background: var(--field-bg); font: inherit; font-size: 1.0625rem; color: var(--ink); width: 100%; }
.inp input:focus, .inp select:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.inp input[aria-invalid="true"] { border-color: #A2412E; }
.inp__err { color: #A2412E; font-size: var(--fs-micro); display: none; }
.inp.is-bad .inp__err { display: block; }
.inp__why { font-size: var(--fs-micro); color: var(--ink-3); }
.phone { display: grid; grid-template-columns: 108px 1fr; gap: 8px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: var(--fs-micro); color: var(--ink-2); margin: var(--s-4) 0; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.consent.is-bad { color: #A2412E; }
.hp { position: absolute; left: -9999px; }
.thanks__next { display: grid; gap: 10px; margin-top: var(--s-5); }

/* Consent */
.cookie { position: fixed; z-index: 70; left: 8px; right: 8px; bottom: 8px; max-width: 480px; background: var(--t-night); color: var(--on-dark); padding: 14px 16px; display: none; font-size: var(--fs-micro); line-height: 1.45; }
.cookie.is-on { display: block; animation: stepIn var(--d-base) var(--ease-out); }
.cookie p { margin: 0; }
.cookie__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.cookie .btn { min-height: 40px; padding: 0 10px; font-size: var(--fs-micro); }
.cookie .btn:not(.btn--ghost) { --btn-bg: var(--on-dark); --btn-fg: var(--ink); }
@media (min-width: 960px) { .cookie { left: auto; right: 24px; bottom: 24px; } }

/* Schrift-Vergleich (nur mit ?tweaks) */
.tweaks { position: fixed; right: 12px; top: 84px; z-index: 80; background: var(--t-night); color: var(--on-dark); padding: 12px; font-size: 12px; display: grid; gap: 6px; }
.tweaks b { font-weight: 600; }
.tweaks button { background: transparent; border: 1px solid var(--line-dark); color: inherit; padding: 6px 8px; cursor: pointer; text-align: left; }
.tweaks button[aria-pressed="true"] { border-color: var(--on-dark); }

/* ---------- Einblendungen ---------- */
.js [data-in] { opacity: 0; transform: translateY(20px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.js [data-in].is-in { opacity: 1; transform: none; }
.js [data-in="2"] { transition-delay: 80ms; }
.js [data-in="3"] { transition-delay: 160ms; }

@media (prefers-reduced-motion: reduce) {
  .hero__title .line > span { animation: none; transform: none; }
  .js [data-in] { opacity: 1; transform: none; transition: none; }
  .js .qube[data-reveal] .qube__frame { clip-path: none; }
  .qube__frame img { transform: none; }
}
@media (max-width: 959px) { .btn { font-size: .9375rem; padding: 0 20px; } }

/* ---------- 3D-Modell Haus B (Einheitenwahl) ---------- */
.qb3d { --uw: 66px; --ud: 96px; --uh: 42px; }
@media (min-width: 960px) { .qb3d { --uw: 96px; --ud: 140px; --uh: 60px; } }
.qb3d__stage { position: relative; height: calc(var(--uh) * 7.2); perspective: 1100px; perspective-origin: 50% 30%; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; overflow: hidden;
  background: radial-gradient(ellipse at 50% 70%, rgba(255,255,255,.06), transparent 65%); border-radius: var(--r-media); }
.qb3d__stage:active { cursor: grabbing; }
.qb3d__world { position: absolute; left: 50%; top: 66%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.qbx { --w: var(--uw); --h: var(--uh); --d: var(--ud); position: absolute; width: var(--w); height: var(--h); left: calc((var(--x) - 1.5) * var(--uw)); top: calc(-1 * (var(--y) + 1) * var(--uh)); transform-style: preserve-3d; cursor: pointer;
  --qf-bg: rgba(255,255,255,.05); --qf-line: rgba(255,255,255,.22); }
.qbx[data-status="free"] { --qf-bg: rgba(143,162,122,.2); --qf-line: rgba(186,214,162,.75); }
.qbx[data-status="reserved"] { --qf-bg: rgba(189,152,109,.22); --qf-line: rgba(220,186,140,.8); }
.qbx[data-status="sold"] { --qf-bg: rgba(255,255,255,.035); --qf-line: rgba(255,255,255,.14); cursor: pointer; }
.qbx.is-sel { --qf-bg: color-mix(in srgb, var(--camel) 55%, transparent); --qf-line: var(--camel); }
.qbx:hover { --qf-line: #FFFFFF; }
.qf { position: absolute; display: block; background: var(--qf-bg); border: 1px solid var(--qf-line); transition: background var(--d-base), border-color var(--d-base); backface-visibility: visible; }
.qf--front, .qf--back { width: var(--w); height: var(--h); }
.qf--front { transform: translateZ(calc(var(--d) / 2)); }
.qf--back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.qf--left, .qf--right { width: var(--d); height: var(--h); left: calc((var(--w) - var(--d)) / 2); }
.qf--left { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.qf--right { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.qf--top, .qf--bottom { width: var(--w); height: var(--d); top: calc((var(--h) - var(--d)) / 2); }
.qf--top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); }
.qf--bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); }
.qbx__label { position: absolute; left: 8px; top: 6px; font-family: var(--font-num); font-size: calc(var(--uh) * .34); line-height: 1; color: var(--on-dark); transform: translateZ(calc(var(--d) / 2 + 1px)); pointer-events: none; }
.qbx__balcony { position: absolute; left: 10%; right: 10%; bottom: 0; height: 2px; background: var(--qf-line); transform: translateZ(calc(var(--d) / 2 + 10px)); pointer-events: none; }
.qbx--roof { --w: calc(var(--uw) * 3.1); --h: calc(var(--uh) * .28); --d: calc(var(--ud) * 1.06); left: calc(var(--uw) * -1.55); top: calc(-3 * var(--uh) - var(--uh) * .28); cursor: default; --qf-bg: rgba(255,255,255,.08); --qf-line: rgba(255,255,255,.3); pointer-events: none; }
.qpool, .qgarden { position: absolute; transform-style: preserve-3d; pointer-events: none; transform-origin: 50% 0; }
.qpool { width: calc(var(--uw) * 2.6); height: calc(var(--ud) * .55); left: calc(var(--uw) * -1.3); top: 0; transform: translateZ(calc(var(--ud) / 2 + 14px)) rotateX(90deg); background: linear-gradient(180deg, rgba(110,190,200,.45), rgba(60,140,160,.35)); border: 1px solid rgba(160,220,230,.7); }
.qgarden { width: calc(var(--uw) * 4.2); height: calc(var(--ud) * 2.3); left: calc(var(--uw) * -2.1); top: 0; transform: translateZ(calc(var(--ud) * 1.15)) rotateX(90deg); background: repeating-linear-gradient(90deg, rgba(143,162,122,.12) 0 10px, rgba(143,162,122,.05) 10px 20px); border: 1px dashed rgba(186,214,162,.35); }
.qb3d__compass { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); font-family: var(--font-label); font-size: 11px; color: var(--on-dark-2); white-space: nowrap; }
.qb3d__compass::before { content: "↓ "; }
.qb3d__hint { font-size: var(--fs-micro); color: var(--on-dark-2); margin: 10px 0 var(--s-4); text-align: center; }
.qb3d__panel { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; align-items: center; padding: var(--s-4); border: 1px solid var(--line-dark); border-radius: var(--r-ui); margin-bottom: var(--s-4); }
.qb3d__panel .btn, .qb3d__pnote { grid-column: 1 / -1; margin: 0; }
.qb3d__pid { font-family: var(--font-num); font-size: 2.6rem; line-height: 1; }
.qb3d__pinfo { display: grid; gap: 4px; font-size: var(--fs-small); color: var(--on-dark-2); }
.qb3d__pstatus { font-family: var(--font-label); font-weight: 500; font-size: 12px; color: var(--on-dark); display: inline-flex; align-items: center; gap: 6px; }
.qb3d__pstatus::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8FA27A; }
.qb3d__pstatus[data-status="sold"]::before { background: var(--clay); }
.qb3d__pstatus[data-status="reserved"]::before { background: var(--camel); }
.qb3d__pnote { font-size: var(--fs-small); color: var(--on-dark-2); }
.cubes--list { grid-template-columns: repeat(9, 1fr); gap: 4px; max-width: none; }
.cubes--list .cube { aspect-ratio: auto; min-height: 44px; padding: 6px 4px; align-items: center; justify-content: center; gap: 4px; }
.cubes--list .cube__id { font-size: 1rem; }
.cubes--list .cube__s { font-size: 0; gap: 0; }
.cubes--list .cube.is-sel { border-color: var(--camel); background: color-mix(in srgb, var(--camel) 22%, transparent); }
.cubes--list .cube[data-status="sold"] { opacity: .55; }
@media (prefers-reduced-motion: reduce) { .qf { transition: none; } }
.cubes--list .cube .cube__s { font-size: 0; gap: 0; }
