/* Solida Real Estate – Erlebnis-Ebene (Hover, Scroll, Galerie, Rundgang)
   Bewegung: ease-out ohne Überschwingen, Abgänge kürzer. Bei reduzierter Bewegung statisch. */

/* ---------- Einblenden beim Scrollen ---------- */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 28px, 0); filter: blur(6px);
  transition: opacity .8s var(--ease-out), transform .95s var(--ease-out), filter .8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 85ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
/* Makler-Foto: ruhig einblenden und leicht aufsteigen, ohne Maske und ohne Unschärfe */
.js [data-rise] { opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
.js [data-rise].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-rise] { opacity: 1; transform: none; transition: none; } }

/* ---------- Buttons: Farbe wechselt weich, Pfeil schiebt nach, Druck gibt sofort nach ---------- */
.btn { transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .4s var(--ease-out), transform .2s var(--ease-out); }
.btn--light:hover { background: var(--navy-2); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 14px 34px rgba(0,0,0,.28); }
.btn--navy:hover { background: var(--navy-2); color: #fff; box-shadow: 0 12px 30px rgba(17,41,75,.28); }
.btn__arrow { width: 16px; height: 16px; flex: none; transition: transform .35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn--ghost-navy { background: transparent; color: var(--navy); border-color: rgba(17,41,75,.35); }
.btn--ghost-navy:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Navigation ---------- */
.nav { transition: transform .45s var(--ease-out), box-shadow .3s var(--ease-out); }
.nav.is-scrolled { box-shadow: 0 10px 30px rgba(17,41,75,.10); }
.nav.is-hidden { transform: translate3d(0, -100%, 0); transition-duration: .3s; transition-timing-function: var(--ease-in); }
.nav__cta { display: none; }
.has-funnel .nav__cta { display: inline-flex; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .35s var(--ease-out), transform .45s var(--ease-out); }
.has-funnel .nav.show-cta .nav__cta { opacity: 1; transform: none; pointer-events: auto; }
.nav__link { position: relative; text-decoration: none !important; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 640px) {
  .has-funnel .nav.show-cta .nav__contact { display: none; }
  .has-funnel .nav:not(.show-cta) .nav__cta { display: none; }
}

/* ---------- Hero ---------- */
.hero__img { transform: scale(1.06); transform-origin: 50% 40%; will-change: transform; }
.hero__content { will-change: transform, opacity; }

/* Auftritt beim Laden: das Foto öffnet sich von der Mitte, wird erst danach abgedunkelt,
   dann zeichnet sich die Wortmarke, der Schriftzug schreibt sich, Ort und Button folgen.
   Läuft erst, wenn das Bild dekodiert ist (Klasse hero-go), Sicherheitsnetz im Kopf nach 2,6 s. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__frame { animation: hero-open 1.5s var(--ease-out) both; }
  .js .hero__img img { animation: hero-zoom 2.1s var(--ease-out) both; }
  .js .hero__frame::after { animation: hero-shade 1.1s var(--ease-out) .45s both; }
  .js .hero__tags { animation: hero-rise .8s var(--ease-out) 1s both; }
  .js .hero__tags > * { animation: hero-fade .6s var(--ease-out) both; animation-delay: 1.15s; }
  .js .hero__tags > :nth-child(2) { animation-delay: 1.25s; }
  .js .hero__tags > :nth-child(n+3) { animation-delay: 1.35s; }
  .js .wordmark__art [data-draw] { animation-delay: calc(var(--d, 0s) + .85s); }
  .js .wordmark__script { opacity: 1; filter: none; animation: hero-write 1.15s var(--ease-out) 1.1s both; }
  .js .wordmark__sub { animation: hero-rise .8s var(--ease-out) 1.45s both; }
  .js .hero__place { animation: hero-rise .8s var(--ease-out) 1.58s both; }
  .js .hero__content > .btn { animation: hero-rise .8s var(--ease-out) 1.7s both; }
  .js .hero__cue { animation: hero-fade .8s var(--ease-out) 2.1s both; }
  html.js:not(.hero-go) .hero *, html.js:not(.hero-go) .hero *::after, html.js:not(.hero-go) .hero *::before { animation-play-state: paused !important; }
}
@keyframes hero-open { from { clip-path: inset(17% 24% 17% 24%); } to { clip-path: inset(0 0 0 0); } }
@keyframes hero-zoom { from { scale: 1.2; } to { scale: 1; } }
@keyframes hero-shade { from { opacity: 0; } }
@keyframes hero-fade { from { opacity: 0; filter: blur(6px); } }
@keyframes hero-rise { from { opacity: 0; translate: 0 16px; filter: blur(8px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes hero-write { from { clip-path: inset(-40% 100% -40% -30%); filter: blur(5px); } to { clip-path: inset(-40% -30% -40% -30%); filter: blur(0); } }

.hero__cue {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,.85); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
  transition: color .3s var(--ease-out);
}
.hero__cue span { width: 22px; height: 34px; border: 1.5px solid currentColor; border-radius: 12px; position: relative; }
.hero__cue span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: currentColor; }
.hero__cue:hover { color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .hero__cue span::after { animation: cue 2s var(--ease-out) 1s 3; }
}
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 70% { opacity: 0; transform: translateY(9px); } 100% { opacity: 0; } }
@media (max-width: 640px) { .hero__cue { display: none; } }

/* ---------- Eckdaten: gestrichelte Hilfslinie, Sterne an den Kreuzungen, Trennlinien wachsen nach unten ---------- */
.stats__guide { position: relative; height: 16px; margin-bottom: 14px; }
.stats__guide::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed rgba(255,255,255,.4); transform-origin: left; }
.stats__star { position: absolute; top: 0; width: 16px; height: 16px; margin-left: -8px; color: #fff; }
.stats__star .star { display: block; width: 100%; height: 100%; fill: currentColor; }
.js .stats__guide::before { transform: scaleX(0); transition: transform 1.3s var(--ease-out); }
.js .stats__star { opacity: 0; scale: .2; rotate: -90deg; transition: opacity .3s var(--ease-out), scale .55s var(--ease-out), rotate .7s var(--ease-out); transition-delay: calc(.2s + var(--i, 0) * .24s); }
.js .stats__guide.is-in::before { transform: none; }
.js .stats__guide.is-in .stats__star { opacity: 1; scale: 1; rotate: 0deg; }
@media (max-width: 560px) { .stats__star:not(:first-child) { display: none; } }
.stat { border-left-color: transparent; position: relative; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.35); transform: scaleY(0); transform-origin: top; transition: transform 1s var(--ease-out) calc(var(--i, 0) * 120ms + .15s); }
.stat.is-in::before, html:not(.js) .stat::before { transform: none; }

/* ---------- Highlights mit Bildbühne ---------- */
.about__grid { align-items: start; }
.hl__hint { margin-top: 8px; font-size: 14px; color: var(--muted-on-navy); }
.highlights { gap: 2px; margin-top: 14px; }
.highlights li.hl { display: block; }
.highlights li.hl::before { display: none; }
.hl__btn, .hl > .hl__text, .hl > .todo {
  all: unset; box-sizing: border-box; position: relative; width: 100%; cursor: pointer;
  display: grid; grid-template-columns: 18px 1fr 18px; gap: 14px; align-items: center;
  padding: 11px 12px 11px 4px; color: #e4ebf6; font-size: 16px; line-height: 1.5;
  transition: color .3s var(--ease-out);
}
.hl__btn .hl__text { transition: transform .4s var(--ease-out); }
.hl__btn:hover .hl__text, .hl.is-active .hl__btn .hl__text { transform: translateX(6px); }
.hl > .hl__text, .hl > .todo { cursor: default; grid-template-columns: 18px 1fr; }
.hl > .todo { display: inline-block; padding: 2px 6px; margin: 8px 0 0 36px; width: auto; color: #3b2c00; }
.hl__btn::before, .hl > .hl__text::before {
  content: ""; width: 9px; height: 9px; margin-left: 4px; border: 1.5px solid #fff; transform: rotate(45deg);
  transition: background-color .3s var(--ease-out), transform .45s var(--ease-out);
}
.hl__btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,0));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
}
.hl__btn { isolation: isolate; }
.hl__arrow { width: 16px; height: 16px; opacity: 0; transform: translateX(-8px); transition: opacity .3s var(--ease-out), transform .4s var(--ease-out); }
.hl__btn:hover, .hl.is-active .hl__btn { color: #fff; }
.hl__btn:hover::after, .hl.is-active .hl__btn::after { transform: none; }
.hl__btn:hover::before, .hl.is-active .hl__btn::before { background: #fff; transform: rotate(135deg); }
.hl__btn:hover .hl__arrow, .hl.is-active .hl__arrow { opacity: 1; transform: none; }
.hl__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.aside { position: sticky; top: 100px; display: grid; gap: 14px; }
.stage { position: relative; aspect-ratio: 4 / 5; max-height: 62vh; width: 100%; overflow: hidden; background: var(--navy-3); box-shadow: 0 26px 70px rgba(0,0,0,.34); }
.stage__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .7s var(--ease-out), transform 1.2s var(--ease-out); }
.stage__img.is-on { opacity: 1; transform: none; }
.stage__cap { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 10px 14px; background: rgba(17,41,75,.88); backdrop-filter: blur(6px); font-size: 14px; line-height: 1.4; }
@media (prefers-reduced-motion: no-preference) { .stage__cap.swap { animation: cap-in .5s var(--ease-out); } }
@keyframes cap-in { from { opacity: 0; transform: translateY(10px); } }
.aside .facts { position: static; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.aside .fact { min-height: 92px; padding: 14px; }
.aside .fact__value { font-size: 15px; }
.aside .fact__label { font-size: 12px; }
button.fact { border: 0; width: 100%; color: inherit; font: inherit; text-align: left; cursor: zoom-in; }
.fact img { transition: transform .8s var(--ease-out); }
.fact:hover img { transform: scale(1.08); }
.fact:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.fact:active { transform: scale(.985); transition: transform .1s; }
@media (max-width: 900px) {
  .aside { position: static; }
  .stage { aspect-ratio: 4 / 3; max-height: none; }
  .aside .facts { grid-template-columns: 1fr; }
}

/* ---------- Ein Tag im … ---------- */
.day { padding-bottom: var(--section); }
.day__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 96px); }
.day__visual { position: relative; }
.day__frame { position: sticky; top: 96px; height: calc(100vh - 140px); max-height: 760px; overflow: hidden; background: var(--navy-3); box-shadow: 0 26px 70px rgba(0,0,0,.34); }
.day__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.1); transition: opacity .9s var(--ease-out), transform 1.6s var(--ease-out); }
.day__img.is-on { opacity: 1; transform: none; }
.day__clock { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; gap: 6px; }
.day__clock span { flex: 1; height: 3px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.day__clock span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.day__clock span.is-on::after { transform: none; }
.day__text { padding-top: 8px; }
.day__step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .32; transition: opacity .6s var(--ease-out); }
.day__step.is-active { opacity: 1; }
.day__time { align-self: flex-start; padding: 5px 12px; border: 1px solid rgba(255,255,255,.4); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; transition: background-color .4s var(--ease-out), color .4s var(--ease-out); }
.day__step.is-active .day__time { background: #fff; color: var(--navy); }
.day__step h3 { margin-top: 18px; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; font-weight: 700; }
.day__step p { margin-top: 14px; font-size: 18px; line-height: 1.65; color: #e4ebf6; max-width: 46ch; }
.day__inline { display: none; }
@media (max-width: 900px) {
  .day__grid { grid-template-columns: 1fr; }
  .day__visual { display: none; }
  .day__step { min-height: 0; opacity: 1; padding-block: 28px; }
  .day__inline { display: block; margin-top: 18px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
}

/* ---------- Abschnittskopf ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; }
.sec-head p { color: var(--muted-on-navy); max-width: 44ch; }

/* ---------- 3D-Galerie ---------- */
.gallery { padding-bottom: var(--section); }
.cf { position: relative; margin-top: 36px; padding-block: 24px 8px; overflow: hidden; isolation: isolate; }
.cf__ambient { position: absolute; inset: -12%; z-index: -1; pointer-events: none; }
.cf__ambient img { width: 100%; height: 100%; object-fit: cover; filter: blur(70px) saturate(1.2); opacity: .32; }
.cf__ambient img.fade { animation: amb .9s var(--ease-out); }
@keyframes amb { from { opacity: 0; } }
.cf__stage { position: relative; height: clamp(260px, 44vw, 560px); perspective: 1600px; transform-style: preserve-3d; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; outline: none; }
.cf.is-dragging .cf__stage { cursor: grabbing; }
.cf__item {
  position: absolute; top: 0; left: 50%; margin: 0; width: min(66vw, 820px); height: 100%; translate: -50% 0;
  transition: transform .75s var(--ease-out), opacity .6s var(--ease-out), filter .6s var(--ease-out);
  will-change: transform;
}
.cf.is-dragging .cf__item { transition: none; }
.cf.cf--intro .cf__item { transition: transform 1.3s var(--ease-out), opacity 1s var(--ease-out), filter 1s var(--ease-out); transition-delay: calc(var(--k, 0) * 70ms); }
.cf__btn { all: unset; display: block; width: 100%; height: 100%; cursor: inherit; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.cf__btn img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cf__btn::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.cf__item figcaption { display: none; }
.cf__item.is-center .cf__btn { cursor: zoom-in; }
.cf__btn:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.cf__bar { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 28px; }
.cf__nav { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; cursor: pointer; transition: background-color .3s var(--ease-out), color .3s var(--ease-out), transform .1s; }
.cf__nav:hover { background: #fff; color: var(--navy); }
.cf__nav:active { transform: scale(.94); }
.cf__nav svg { width: 20px; height: 20px; }
.cf__meta { min-width: 220px; text-align: center; display: grid; gap: 2px; }
.cf__count { font-size: 14px; letter-spacing: .14em; color: var(--muted-on-navy); font-variant-numeric: tabular-nums; }
.cf__cap { font-size: 15px; min-height: 1.5em; }
.cf__progress { width: min(320px, 60%); height: 2px; margin: 18px auto 0; background: rgba(255,255,255,.18); }
.cf__progress span { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.cf__cursor { position: absolute; left: 0; top: 0; z-index: 5; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; opacity: 0; scale: .6; transition: opacity .25s var(--ease-out), scale .35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .cf.show-cursor .cf__cursor { opacity: 1; scale: 1; }
  .cf.show-cursor .cf__stage { cursor: none; }
  .cf.is-dragging .cf__cursor { scale: .8; }
}
@media (max-width: 640px) { .cf__item { width: 78vw; } .cf__meta { min-width: 0; } }

/* ---------- Lage-Slider ---------- */
.place .slide img { transition: transform 1s var(--ease-out); }
.place .slide button:hover img { transform: scale(1.04); }

/* ---------- Zeitleiste ---------- */
.timeline__row { opacity: .38; transition: opacity .5s var(--ease-out); }
.timeline__row.is-passed { opacity: 1; }
.timeline__dot { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.timeline__row.is-passed .timeline__dot { transform: scale(1.5); box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px rgba(17,41,75,.25); }
.timeline__poi svg { transition: transform .6s var(--ease-out); }
.timeline__row.is-passed .timeline__poi svg { transform: translateY(-4px); }
.timeline__dist { transition: letter-spacing .6s var(--ease-out), font-weight .3s; }
.timeline__row.is-passed .timeline__dist { font-weight: 400; }
.timeline__car { transition: none; }

/* ---------- Karte ---------- */
.map__box { background: #e8eef6; }
.map__loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; font-size: 14px; color: var(--muted-on-paper); transition: opacity .5s var(--ease-out); pointer-events: none; }
.map__loading span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(17,41,75,.18); border-top-color: var(--navy); }
@media (prefers-reduced-motion: no-preference) { .map__loading span { animation: spin .9s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
.map__box.is-ready .map__loading { opacity: 0; }
.map__box.is-failed .map__loading { color: #a1261c; }
.map__route { position: absolute; left: 16px; bottom: 16px; z-index: 500; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; background: #fff; color: var(--navy); font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 12px 30px rgba(17,41,75,.2); transition: background-color .3s var(--ease-out), color .3s var(--ease-out); }
.map__route svg { width: 14px; height: 14px; transition: transform .35s var(--ease-out); }
.map__route:hover { background: var(--navy); color: #fff; }
.map__route:hover svg { transform: translateX(4px); }
.map__pinwrap { position: relative; }
.map__pulse { position: absolute; left: 50%; bottom: 0; width: 18px; height: 8px; margin-left: -9px; border-radius: 50%; background: rgba(17,41,75,.35); }
@media (prefers-reduced-motion: no-preference) { .map__pulse { animation: pulse 2.4s var(--ease-out) infinite; } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(4); opacity: 0; } }
.map__pin { position: relative; filter: drop-shadow(0 8px 10px rgba(17,41,75,.35)); }
.leaflet-tooltip.map__tip { background: var(--navy); color: #fff; border: 0; border-radius: 0; font: 600 13px/1.3 var(--font); padding: 8px 12px; box-shadow: 0 10px 24px rgba(17,41,75,.3); }
.leaflet-tooltip.map__tip::before { border-top-color: var(--navy); }
.leaflet-bar a { color: var(--navy) !important; border-radius: 0 !important; }
.leaflet-container { font-family: var(--font); }

/* ---------- Exposé zum Kippen ---------- */
.cta__doc { rotate: 0deg; transform: rotate(-3deg); transition: transform .7s var(--ease-out), box-shadow .5s var(--ease-out); position: relative; overflow: hidden; }
.cta__doc.is-tilting { transition: transform .12s linear, box-shadow .5s var(--ease-out); box-shadow: 0 40px 90px rgba(0,0,0,.5); }
.cta__shine { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--sx, 50%) var(--sy, 30%), rgba(255,255,255,.45), rgba(255,255,255,0) 45%); opacity: 0; transition: opacity .4s var(--ease-out); }
.cta__doc.is-tilting .cta__shine { opacity: 1; }

/* ---------- Rundgang-Anzeige ---------- */
.quest { position: fixed; left: 16px; bottom: 16px; z-index: 60; transform: translate3d(0, 160%, 0); transition: transform .6s var(--ease-out); }
.quest.is-visible { transform: none; }
.quest__pill { display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border: 0; background: var(--navy); color: #fff; cursor: pointer; text-align: left; box-shadow: 0 18px 40px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.14); transition: background-color .4s var(--ease-out), color .4s var(--ease-out), transform .1s; }
.quest__pill:active { transform: scale(.97); }
.quest__ring { position: relative; width: 40px; height: 40px; display: grid; place-items: center; }
.quest__ring svg { position: absolute; inset: 0; width: 40px; height: 40px; transform: rotate(-90deg); fill: none; stroke-width: 2.5; }
.quest__ring circle:first-child { stroke: rgba(255,255,255,.22); }
.quest__arc { stroke: #fff; stroke-dasharray: 97.4; stroke-dashoffset: 97.4; stroke-linecap: round; transition: stroke-dashoffset .9s var(--ease-out), stroke .4s; }
.quest__num { font-size: 14px; font-variant-numeric: tabular-nums; }
.quest__text { display: grid; line-height: 1.25; }
.quest__label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-on-navy); }
.quest__state { font-size: 14px; font-weight: 500; }
@media (prefers-reduced-motion: no-preference) { .quest.bump .quest__pill { animation: bump .6s var(--ease-out); } }
@keyframes bump { 0% { box-shadow: 0 18px 40px rgba(0,0,0,.35), 0 0 0 0 rgba(255,255,255,.75); } 100% { box-shadow: 0 18px 40px rgba(0,0,0,.35), 0 0 0 14px rgba(255,255,255,0); } }
.quest.is-complete .quest__pill { background: #fff; color: var(--navy); }
.quest.is-complete .quest__arc { stroke: var(--navy); }
.quest.is-complete .quest__ring circle:first-child { stroke: rgba(17,41,75,.15); }
.quest.is-complete .quest__label { color: var(--muted-on-paper); }
.quest__pill:hover { background: var(--navy-2); }
.quest.is-complete .quest__pill:hover { background: #e8eef6; }
body:has(.cookie.is-open) .quest, body:has(.funnel.is-open) .quest, body:has(.lightbox.is-open) .quest { opacity: 0; pointer-events: none; }
@media (max-width: 640px) { .quest { left: 10px; bottom: 10px; } .quest__state { font-size: 13px; } }

/* ---------- Formular: Haken zeichnet sich ---------- */
.done-check { width: 64px; height: 64px; margin-bottom: 22px; fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.done-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.done-check path { stroke-dasharray: 36; stroke-dashoffset: 36; }
.step--done.is-active .done-check circle { animation: dash .8s var(--ease-out) forwards; }
.step--done.is-active .done-check path { animation: dash .5s var(--ease-out) .55s forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }

/* ---------- Footer ---------- */
.footer a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease-out); text-decoration: none !important; }
.footer a:hover { background-size: 100% 1px; }
.footer__logo { background: none !important; }

/* ---------- Bewegung reduziert ---------- */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .hero__img { transform: none; }
  .stage__img, .day__img, .cf__item, .btn::before, .quest, .nav, .spots__scene, .spot-card, .spot__dot, .spots__bar span, .spots__donecard { transition: none !important; }
  .spot__ring { animation: none !important; }
}
.nav__link { white-space: nowrap; }
@media (max-width: 900px) { .nav__link { display: none; } }

/* OpenStreetMap im Solida-Ton: entsättigt, leicht kühl */
.map .leaflet-tile-pane { filter: grayscale(1) sepia(.18) hue-rotate(180deg) saturate(1.6) brightness(1.04) contrast(.95); }

/* ---------- Überschriften Wort für Wort ---------- */
.h2 .w { display: inline-block; }
.js .h2.is-split .w { opacity: .08; filter: blur(8px); transform: translate3d(0, .22em, 0); transition: opacity .16s var(--ease-out), filter .2s var(--ease-out), transform .45s var(--ease-out); transition-delay: calc(var(--w, 0) * 50ms); }
.js .h2.is-split.is-in .w { opacity: 1; filter: none; transform: none; }

/* ---------- Hotspot-Rundgang ---------- */
.spots { padding-bottom: var(--section); }
.spots__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 32px; }
.spots__tabs { display: flex; gap: 4px; }
.spots__tab { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out), transform .1s; }
.spots__tab:hover { border-color: #fff; }
.spots__tab:active { transform: scale(.97); }
.spots__tab[aria-selected="true"] { background: #fff; color: var(--navy); border-color: #fff; }
.spots__tabcount { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted-on-navy); transition: color .3s var(--ease-out); }
.spots__tab[aria-selected="true"] .spots__tabcount { color: var(--muted-on-paper); }
.spots__tab.is-done .spots__tabcount::after { content: " ✓"; }
.spots__progress { display: grid; gap: 8px; min-width: min(100%, 240px); }
.spots__count { font-size: 15px; color: var(--muted-on-navy); font-variant-numeric: tabular-nums; }
.spots__count b { color: #fff; font-weight: 700; }
.spots__bar { display: block; height: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
.spots__bar span { display: block; height: 100%; background: #fff; transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .7s var(--ease-out); }

.spots__stage { position: relative; margin-top: 20px; }
.spots__scene { position: relative; aspect-ratio: 3 / 2; max-height: 82vh; width: 100%; overflow: hidden; background: var(--navy-3); box-shadow: 0 26px 70px rgba(0,0,0,.34); }
.spots__scene[hidden] { display: block; position: absolute; inset: 0 0 auto 0; visibility: hidden; opacity: 0; }
.spots__scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-select: none; }
.spots__scene.is-leaving { z-index: 3; transition: opacity .34s var(--ease-out), visibility 0s .34s; }
@media (prefers-reduced-motion: no-preference) { .spots__scene.is-on img { animation: scene-in .9s var(--ease-out); } }
@keyframes scene-in { from { transform: scale(1.035); } }

.spot { position: absolute; left: var(--x); top: var(--y); z-index: 2; width: 48px; height: 48px; margin: -24px 0 0 -24px; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.spot__ring { position: absolute; inset: 7px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.9); background: rgba(17,41,75,.4); }
.spot__dot { position: relative; width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; transform: scale(.46); transition: transform .35s var(--ease-out); }
.spot__dot svg { width: 14px; height: 14px; color: var(--navy); opacity: 0; transition: opacity .25s var(--ease-out) .1s; }
.spot__ring::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.85); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .spots.is-live .spots__scene.is-on .spot__ring::after { animation: spot-ring 1.8s var(--ease-out) calc(.3s + var(--k, 0) * .22s) 3 both; }
  .spots.is-touched .spots__scene.is-on .spot__ring::after { animation-iteration-count: 1; }
  .spots .spots__scene .spot.is-found .spot__ring::after { animation: none; }
}
@keyframes spot-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.1); } }
.spot:hover .spot__dot { transform: scale(.58); }
.spot:active .spot__dot { transform: scale(.4); transition-duration: .08s; }
.spot.is-found .spot__dot { transform: none; }
.spot.is-found:hover .spot__dot { transform: scale(1.06); }
.spot.is-found:active .spot__dot { transform: scale(.92); }
.spot.is-found .spot__dot svg { opacity: 1; }
.spot[aria-expanded="true"] .spot__ring { background: rgba(17,41,75,.6); }
.spot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.spot-card { position: absolute; left: 0; top: 0; z-index: 4; width: min(320px, 70%); padding: 18px 20px 20px; background: #fff; color: var(--navy); box-shadow: 0 24px 64px rgba(0,0,0,.34); pointer-events: none; opacity: 0; transform: translate3d(0, 8px, 0) scale(.97); transform-origin: var(--ox, 0) var(--oy, 0); transition: opacity .16s var(--ease-in), transform .16s var(--ease-in); }
.spot-card.is-open { opacity: 1; transform: none; pointer-events: auto; transition: opacity .3s var(--ease-out), transform .4s var(--ease-out); }
.spot-card__hint { display: none; }
.spot-card__h { font-size: 18px; font-weight: 700; line-height: 1.3; }
.spot-card__p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--muted-on-paper); }

.spots__done:empty { display: none; }
.spots__donecard { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 20px; padding: 22px 24px; background: #fff; color: var(--navy); box-shadow: 0 24px 64px rgba(0,0,0,.3); animation: done-in .6s var(--ease-out) both; }
.spots__donecard p { flex: 1 1 280px; font-size: 17px; font-weight: 500; line-height: 1.5; }
.spots__donecard .btn { margin: 0; }
.spots__donecard .btn--light { background: var(--navy); color: #fff; }
.spots__donecard .btn--light:hover { background: var(--navy-2); }
.spots__donecheck { width: 40px; height: 40px; padding: 8px; flex: none; border-radius: 50%; background: var(--navy); color: #fff; }
@keyframes done-in { from { opacity: 0; transform: translate3d(0, 16px, 0); filter: blur(4px); } }

@media (max-width: 700px) {
  .spots__meta { align-items: stretch; }
  .spots__tabs { width: 100%; }
  .spots__tab { flex: 1; justify-content: center; padding-inline: 10px; }
  .spots__progress { width: 100%; }
  .spot { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .spot__ring { inset: 8px; }
  .spot-card { position: relative; left: auto !important; top: auto !important; width: 100%; min-height: 7.4em; margin-top: 10px; opacity: 1; transform: none; pointer-events: auto; box-shadow: none; transition: none; }
  .spot-card:not(.is-open) .spot-card__hint { display: block; font-size: 15px; color: var(--muted-on-paper); }
  .spot-card:not(.is-open) .spot-card__h, .spot-card:not(.is-open) .spot-card__p { display: none; }
  .spot-card.is-open .spot-card__h, .spot-card.is-open .spot-card__p { animation: cap-in .35s var(--ease-out); }
  .spot-card::before { content: ""; position: absolute; top: -7px; left: var(--ax, 50%); width: 14px; height: 14px; margin-left: -7px; background: #fff; transform: rotate(45deg); opacity: 0; transition: left .35s var(--ease-out), opacity .2s; }
  .spot-card.is-open::before { opacity: 1; }
}

/* ---------- Zeiger über klickbaren Bildern ---------- */
.pcursor { position: fixed; left: 0; top: 0; z-index: 75; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; opacity: 0; scale: .6; transition: opacity .2s var(--ease-in), scale .25s var(--ease-in); box-shadow: 0 12px 30px rgba(0,0,0,.22); }
.pcursor.is-on { opacity: 1; scale: 1; transition: opacity .25s var(--ease-out), scale .35s var(--ease-out); }
.pcursor.is-down { scale: .86; transition-duration: .1s; }
@media (hover: hover) and (pointer: fine) {
  .has-pcursor [data-cursor], .has-pcursor [data-cursor] * { cursor: none; }
  .has-pcursor [data-cursor] .spot, .has-pcursor [data-cursor] .spot * { cursor: pointer; }
}

/* ---------- Magnetische Exposé-Buttons ---------- */
.btn[data-funnel] { translate: var(--mx, 0) var(--my, 0); transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .4s var(--ease-out), transform .2s var(--ease-out), translate .6s var(--ease-out); }
.btn[data-funnel].is-magnet { transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .4s var(--ease-out), transform .2s var(--ease-out), translate .22s var(--ease-out); }
.btn[data-funnel]:active { transform: scale(.97); transition-duration: .1s; }

/* ---------- Lightbox: fliegt aus dem Bild heraus ---------- */
.lightbox { background: transparent; }
.lightbox__bg { position: fixed; inset: 0; z-index: -1; background: rgba(8, 20, 38, .96); }
.lightbox { isolation: isolate; }
.lightbox__img img { will-change: transform; background-size: cover; background-position: center; }

/* ---------- Weiches Scrollen (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Bilder öffnen sich mit einer Maske, das Foto setzt sich dabei ---------- */
.js [data-mask] { clip-path: inset(100% 0 0 0); transition: clip-path 1.15s var(--ease-out); }
.js [data-mask].is-in { clip-path: inset(0 0 0 0); }
.js [data-mask].is-open { clip-path: none; }
.js [data-mask] img { scale: 1.16; transition: scale 1.6s var(--ease-out); }
.js [data-mask].is-in img { scale: 1; }
.js [data-mask] .stage__img { transition: opacity .7s var(--ease-out), transform 1.2s var(--ease-out), scale 1.6s var(--ease-out); }
.js [data-mask] .day__img { transition: opacity .9s var(--ease-out), transform 1.6s var(--ease-out), scale 1.6s var(--ease-out); }
.js .place [data-mask] .slide img { transition: transform 1s var(--ease-out), scale 1.6s var(--ease-out); }
.js [data-mask] .stage__cap { opacity: 0; translate: 0 10px; transition: opacity .5s var(--ease-out) .7s, translate .6s var(--ease-out) .7s; }
.js [data-mask].is-in .stage__cap { opacity: 1; translate: 0 0; }

/* ---------- Schlüsselwörter wie im Texteditor markiert ---------- */
mark.sel { position: relative; white-space: nowrap; color: inherit; background: none; padding: 0 .14em; margin: 0 .06em; }
mark.sel::before { content: ""; position: absolute; inset: -.06em 0; z-index: -1; background: rgba(255,255,255,.13); box-shadow: inset 0 0 0 1.5px #fff; transform-origin: left; }
mark.sel i { position: absolute; width: 7px; height: 7px; background: #fff; box-shadow: 0 0 0 1px var(--navy); }
mark.sel i:nth-of-type(1) { left: -3.5px; top: calc(-.06em - 3.5px); }
mark.sel i:nth-of-type(2) { right: -3.5px; top: calc(-.06em - 3.5px); }
mark.sel i:nth-of-type(3) { left: -3.5px; bottom: calc(-.06em - 3.5px); }
mark.sel i:nth-of-type(4) { right: -3.5px; bottom: calc(-.06em - 3.5px); }
.lead { isolation: isolate; }
@media (prefers-reduced-motion: no-preference) {
  .js mark.sel::before { transform: scaleX(0); transition: transform .5s var(--ease-out); transition-delay: calc(1s + var(--m, 0) * .7s); }
  .js mark.sel i { opacity: 0; scale: .2; transition: opacity .2s var(--ease-out), scale .3s var(--ease-out); transition-delay: calc(1.4s + var(--m, 0) * .7s); }
  .js .is-in mark.sel::before { transform: none; }
  .js .is-in mark.sel i { opacity: 1; scale: 1; }
}

/* ---------- Abschnittswechsel: die neue Fläche wächst beim Scrollen auf volle Breite ---------- */
.infra[data-edge] { background: transparent; position: relative; isolation: isolate; }
.infra[data-edge]::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper); clip-path: inset(0 var(--edge, 0px) 0 var(--edge, 0px)); }
.cta[data-edge] { background: var(--paper); }
.cta[data-edge] .cta__bg, .cta[data-edge]::before { clip-path: inset(0 var(--edge, 0px) 0 var(--edge, 0px)); }
.cta__bg { inset: -12% 0; will-change: transform; }

/* ---------- Exposé: steigt schief herein, Kreis um „Exposé“, Linie mit Punkt zum Button ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .cta__doc { opacity: 0; translate: 0 70px; transition: transform .7s var(--ease-out), box-shadow .5s var(--ease-out), opacity .9s var(--ease-out), translate 1.3s var(--ease-out), rotate 1.3s var(--ease-out); rotate: -8deg; }
  .js .cta__doc.is-in { opacity: 1; translate: 0 0; rotate: 0deg; }
  .js .cta__doc.is-tilting { transition: transform .12s linear, box-shadow .5s var(--ease-out), opacity .9s var(--ease-out), translate 1.3s var(--ease-out), rotate 1.3s var(--ease-out); }
}
.w--ring { position: relative; }
.w--ring svg { position: absolute; overflow: visible; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.w--ring path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.h2.is-in .w--ring path { transition: stroke-dashoffset .9s var(--ease-out) .75s; stroke-dashoffset: 0; }
.cta__link { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.cta__link path { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.5; stroke-linecap: round; }
.cta__link .cta__dot { fill: #fff; }
.cta__link .cta__tap { fill: none; stroke: #fff; stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.cta { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .js .stats__guide::before, .js .stats__star { transform: none; opacity: 1; scale: 1; rotate: 0deg; transition: none; }
  .js [data-mask] { clip-path: none; transition: none; }
  .js [data-mask] img { scale: 1; }
  .w--ring path { stroke-dashoffset: 0; }
}

/* ---------- Schildchen im Einstieg: Glas-Kapsel, Status-Punkt, Schlüssel dreht sich ---------- */
.hero__tags { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 28px; border-radius: 999px; background: rgba(17,41,75,.38); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.24), 0 10px 30px rgba(0,0,0,.18); transition: box-shadow .4s var(--ease-out); }
.hero__tags:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 14px 34px rgba(0,0,0,.24); }
.hero__tags .tag { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 9px; min-height: 32px; padding: 6px 15px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1; cursor: default; transition: color .3s var(--ease-out) .04s; }
.hero__tags .tag::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.hero__tags .tag:hover::before { transform: none; }
.tag--deal { color: #fff; }
.tag--deal:hover { color: var(--navy); }
.tag__dot { position: relative; width: 7px; height: 7px; flex: none; border-radius: 50%; background: currentColor; }
.tag__dot::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0; }
.hero__tags .tag--feat { background: #fff; color: var(--navy); }
.hero__tags .tag--feat::before { background: #dfe7f3; }
.tag__icon { width: 15px; height: 15px; flex: none; transition: rotate .6s var(--ease-out), scale .45s var(--ease-out); }
.tag--key .tag__icon { transform-origin: 33% 62%; }
.tag--key:hover .tag__icon { rotate: -38deg; }
.tag--spark:hover .tag__icon { rotate: 90deg; scale: 1.15; }
@media (prefers-reduced-motion: no-preference) {
  .tag__dot::after { animation: dot-ring 2.2s var(--ease-out) 2.6s 3; }
  .tag--deal:hover .tag__dot::after { animation: dot-ring-h 1s var(--ease-out) 1; }
}
@keyframes dot-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.8); } }
@keyframes dot-ring-h { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.8); } }

/* ---------- Rolltext: die Buchstaben rollen beim Überfahren nach oben, eine Kopie kommt von unten ---------- */
.roll__vis { display: inline-flex; overflow: hidden; line-height: 1.25; padding-block: .04em; vertical-align: middle; }
.roll__c { position: relative; display: inline-block; white-space: pre; transition: transform .5s var(--ease-out); transition-delay: calc(var(--i, 0) * 14ms); }
.roll__c::after { content: attr(data-c); position: absolute; left: 0; top: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .roll-host:hover .roll__c, .roll-host:focus-visible .roll__c { transform: translateY(-100%); }
}

/* ---------- Kontakt oben: Navy füllt sich vom Telefon aus, Hörer kippt ---------- */
.nav__contact { position: relative; isolation: isolate; overflow: hidden; gap: 10px; padding-left: 18px; transition: color .3s var(--ease-out) .05s, border-color .3s var(--ease-out); }
.nav__fill { position: absolute; inset: 0; z-index: -1; background: var(--navy); clip-path: circle(0 at 27px 50%); transition: clip-path .5s var(--ease-out); }
.nav__contact.btn--ghost-navy:hover, .nav__contact.btn--ghost-navy:focus-visible { background: transparent; color: #fff; border-color: var(--navy); }
.nav__contact:hover .nav__fill, .nav__contact:focus-visible .nav__fill { clip-path: circle(160% at 27px 50%); }
.nav__phone { width: 16px; height: 16px; flex: none; transition: rotate .5s var(--ease-out); }
.nav__contact:hover .nav__phone { rotate: -14deg; }
@media (max-width: 640px) { .nav__contact { padding-left: 14px; } .nav__fill { clip-path: circle(0 at 22px 50%); } .nav__contact:hover .nav__fill { clip-path: circle(160% at 22px 50%); } }

/* ---------- Exposé-Buttons: Rolltext, Pfeil fliegt rechts raus und kommt links wieder ---------- */
.btn__arrows { position: relative; width: 16px; height: 16px; flex: none; overflow: hidden; }
.btn__arrows svg { position: absolute; inset: 0; width: 16px; height: 16px; transition: transform .45s var(--ease-out); }
.btn__arrows svg:last-child { transform: translateX(-140%); }
.btn--expose:hover .btn__arrows svg:first-child, .btn--expose:focus-visible .btn__arrows svg:first-child { transform: translateX(140%); }
.btn--expose:hover .btn__arrows svg:last-child, .btn--expose:focus-visible .btn__arrows svg:last-child { transform: none; transition-delay: .09s; }
.btn--expose { gap: 12px; }

/* ---------- Makler-Karte ---------- */
.agent { display: flow-root; padding-bottom: var(--section); background: var(--paper); color: var(--navy); }
.agent__card { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; padding: clamp(28px, 4vw, 52px) clamp(24px, 4vw, 56px) 0; background: #fff; box-shadow: 0 24px 64px rgba(17,41,75,.16); }
.agent__photo { align-self: end; }
.agent__photo img { display: block; width: 100%; height: auto; }
.agent__body { padding-bottom: clamp(28px, 4vw, 52px); }
.agent__kicker { font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-on-paper); }
.agent__name { margin-top: 2px; font-family: var(--script); font-weight: 400; font-size: clamp(46px, 5.4vw, 70px); line-height: 1.12; color: var(--navy); }
.js .agent__name { clip-path: inset(-30% 100% -30% -10%); filter: blur(4px); transition: clip-path 1.4s var(--ease-out) .2s, filter 1s var(--ease-out) .2s; }
.js .agent__name.is-in { clip-path: inset(-30% -10% -30% -10%); filter: blur(0); }
.agent__role { font-size: 15px; font-weight: 500; letter-spacing: .03em; }
.agent__text { margin-top: 16px; max-width: 50ch; font-size: 17px; line-height: 1.6; color: var(--muted-on-paper); }
.agent__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.agent__btn { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border: 1px solid rgba(17,41,75,.22); color: var(--navy); text-decoration: none; transition: color .3s var(--ease-out) .05s, border-color .3s var(--ease-out), opacity .8s var(--ease-out), transform .95s var(--ease-out), filter .8s var(--ease-out); }
.agent__btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); clip-path: circle(0 at 32px 50%); transition: clip-path .55s var(--ease-out); }
.agent__btn:hover, .agent__btn:focus-visible { color: #fff; border-color: var(--navy); }
.agent__btn:hover::before, .agent__btn:focus-visible::before { clip-path: circle(160% at 32px 50%); }
.agent__btn:active { scale: .98; }
.agent__ico { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: rgba(17,41,75,.07); transition: background-color .3s var(--ease-out); }
.agent__btn:hover .agent__ico { background: rgba(255,255,255,.14); }
.agent__ico svg { width: 18px; height: 18px; transition: rotate .5s var(--ease-out); }
.agent__btn:hover .agent__ico svg { rotate: -12deg; }
.agent__lbl { display: grid; gap: 3px; min-width: 0; font-size: 15px; font-weight: 700; }
.agent__lbl small { overflow: hidden; font-size: 13px; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; opacity: .78; }
@media (max-width: 1000px) { .agent__actions { grid-template-columns: 1fr; max-width: 380px; } }
@media (max-width: 640px) {
  .agent__card { grid-template-columns: 1fr; padding: 24px 20px 0; }
  .agent__photo { order: 2; width: 150px; justify-self: center; }
  .agent__body { padding-bottom: 8px; }
}

/* ---------- Karte: Wege vom Haus zu den Orten ---------- */
.map__legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.map__chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border: 1px solid rgba(17,41,75,.22); background: #fff; color: var(--navy); font: inherit; font-size: 14px; cursor: pointer; transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out), transform .1s; }
.map__chip svg { width: 18px; height: 18px; flex: none; }
.map__chip b { font-weight: 700; }
.map__chip:hover, .map__chip.is-hot, .map__chip.is-sel { background: var(--navy); color: #fff; border-color: var(--navy); }
.map__chip:active { transform: scale(.97); }
.map__line { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; opacity: .5; transition: opacity .3s var(--ease-out), stroke-width .3s var(--ease-out); }
.map__line.is-hot { opacity: 1; stroke-width: 3.5; }
.map__poi { background: none; border: 0; }
.map__poi-in { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy), 0 6px 16px rgba(17,41,75,.25); scale: 0; transition: scale .45s var(--ease-out); }
.map__poi.is-in .map__poi-in { scale: 1; }
.map__poi-in svg { width: 17px; height: 17px; }
@media (max-width: 640px) { .map__chip { font-size: 13px; padding: 7px 11px; } }

/* ---------- Feste Leiste am Handy ---------- */
.mbar { display: none; }
@media (max-width: 640px) {
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); box-shadow: 0 -10px 30px rgba(17,41,75,.14); transform: translate3d(0, 110%, 0); transition: transform .3s var(--ease-in); }
  .mbar.is-visible { transform: none; transition: transform .5s var(--ease-out); }
  .mbar .btn { width: 100%; min-height: 48px; padding: 12px 14px; font-size: 14px; }
  .mbar__wa { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 1px solid rgba(17,41,75,.3); color: var(--navy); font-size: 14px; font-weight: 700; text-decoration: none; transition: transform .1s; }
  .mbar__wa svg { width: 20px; height: 20px; }
  .mbar__wa:active { transform: scale(.97); }
  body:has(.cookie.is-open) .mbar, body:has(.funnel.is-open) .mbar, body:has(.lightbox.is-open) .mbar { transform: translate3d(0, 110%, 0); }
  html.has-mbar body { padding-bottom: 72px; }
  html.has-mbar .nav .nav__cta { display: none !important; }
  html.has-mbar .nav .nav__contact { display: inline-flex !important; }
  .quest { transition: transform .6s var(--ease-out), bottom .5s var(--ease-out); }
  html.mbar-on .quest { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* ---------- Formular als Erlebnis ---------- */
.funnel__progress { position: relative; }
.funnel__dotwrap { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform: translateX(calc(var(--p, 0) * 100%)); transition: transform .45s var(--ease-out); pointer-events: none; }
.funnel__dot { position: absolute; left: 0; top: -2px; width: 10px; height: 10px; margin: 0 0 0 -5px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 4px rgba(17,41,75,.14); }
.funnel__count { position: absolute; top: 20px; left: 24px; z-index: 3; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-paper); font-variant-numeric: tabular-nums; }
.funnel__count:empty { display: none; }
.step--welcome ~ .funnel__count { display: none; }

.step__steps li::before { content: counter(s); display: grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid var(--navy); border-radius: 50%; font-size: 12px; font-weight: 700; }
.step__steps li { align-items: start; grid-template-columns: 34px 1fr; }
@media (prefers-reduced-motion: no-preference) {
  .step--welcome.is-active .step__steps li { animation: li-in .55s var(--ease-out) both; }
  .step--welcome.is-active .step__steps li:nth-child(1) { animation-delay: .18s; }
  .step--welcome.is-active .step__steps li:nth-child(2) { animation-delay: .28s; }
  .step--welcome.is-active .step__steps li:nth-child(3) { animation-delay: .38s; }
  .step--welcome.is-active .step__steps li:nth-child(4) { animation-delay: .48s; }
}
@keyframes li-in { from { opacity: 0; transform: translateX(-14px); filter: blur(3px); } }

.choice { isolation: isolate; overflow: hidden; transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), color .25s var(--ease-out) .05s, opacity .3s var(--ease-out); }
.choice::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.choice__key { transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out); }
.choice:hover:not([aria-checked="true"]) .choice__key { background: var(--navy); color: #fff; border-color: var(--navy); }
.choice[aria-checked="true"] { color: #fff; background: transparent; border-color: var(--navy); }
.choice[aria-checked="true"]::before { transform: none; }
.choice[aria-checked="true"] .choice__key { background: #fff; color: var(--navy); border-color: #fff; }
.choice__tick { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 1; }
.choice__tick path { stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .35s var(--ease-out) .18s; }
.choice[aria-checked="true"] .choice__tick path { stroke-dashoffset: 0; }
.choices:has([aria-checked="true"]) .choice:not([aria-checked="true"]) { opacity: .42; }
.choice.blink { animation: none !important; }

.field { position: relative; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease-out); pointer-events: none; }
.field:focus-within::after { transform: none; }
.field input:focus, .field select:focus { border-bottom: 1px solid rgba(17,41,75,.4); padding-bottom: 10px; }
.field input { padding-right: 40px; }
.field__ok { position: absolute; right: 0; bottom: 12px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; transform: scale(0); transition: transform .35s var(--ease-out); pointer-events: none; }
.field__ok svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.field__ok path { stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .35s var(--ease-out) .12s; }
.field.is-valid .field__ok { transform: none; }
.field.is-valid .field__ok path { stroke-dashoffset: 0; }
.step__hello { margin-bottom: 14px; font-size: 15px; font-weight: 500; color: var(--muted-on-paper); }
.step__hello:empty { display: none; }
@media (prefers-reduced-motion: no-preference) { .step.is-active .step__hello { animation: li-in .5s var(--ease-out) .1s both; } }
.error:not(:empty) { animation: cap-in .3s var(--ease-out); }

.step__actions .btn[aria-busy="true"] { position: relative; overflow: hidden; cursor: progress; }
.step__actions .btn[aria-busy="true"]::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40%; height: 3px; background: #fff; }
@media (prefers-reduced-motion: no-preference) { .step__actions .btn[aria-busy="true"]::after { animation: busy 1s var(--ease-out) infinite; } }
@keyframes busy { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* Dankeseite: das Exposé gleitet in den Umschlag, der Umschlag schließt sich und fliegt los, dann zeichnet sich der Haken */
.done-visual { display: grid; width: 150px; height: 112px; margin-bottom: 22px; }
.done-visual > * { grid-area: 1 / 1; }
.done-visual .done-check { align-self: end; margin: 0; }
.mail { position: relative; width: 150px; height: 100px; align-self: end; perspective: 600px; }
.mail__back { position: absolute; inset: 0; background: var(--navy-2); }
.mail__doc { position: absolute; left: 18px; top: -62px; width: 114px; height: 90px; object-fit: cover; object-position: top; box-shadow: 0 8px 20px rgba(17,41,75,.25); }
.mail__front { position: absolute; inset: 0; background: var(--navy); clip-path: polygon(0 0, 50% 62%, 100% 0, 100% 100%, 0 100%); }
.mail__flap { position: absolute; left: 0; right: 0; top: 0; height: 62%; background: #1d3866; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; transform: rotateX(180deg); z-index: 0; }
.mail__front, .mail__doc { z-index: 1; }
.mail__front { z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
  .step--done.is-active .mail__doc { animation: doc-in .7s var(--ease-out) .25s both; }
  .step--done.is-active .mail__flap { animation: flap-close .5s var(--ease-out) .95s both; }
  .step--done.is-active .mail { animation: mail-go .5s var(--ease-in) 1.55s both; }
  .step--done.is-active .done-check circle { animation-delay: 1.95s; }
  .step--done.is-active .done-check path { animation-delay: 2.45s; }
  .step--done.is-active .done-visual ~ * { animation: li-in .6s var(--ease-out) 2.1s both; }
}
@media (prefers-reduced-motion: reduce) { .mail { display: none; } }
@keyframes doc-in { from { transform: translateY(-24px); opacity: 0; } to { transform: translateY(68px); opacity: 1; } }
@keyframes flap-close { 0% { transform: rotateX(180deg); z-index: 0; } 49% { z-index: 0; } 50% { z-index: 3; } 100% { transform: rotateX(0deg); z-index: 3; } }
@keyframes mail-go { to { transform: translate(70px, -46px) scale(.55) rotate(-8deg); opacity: 0; } }

/* Freigestelltes Makler-Foto: groß, bleibt aber vollständig im weißen Feld */
.agent__card--cutout { grid-template-columns: minmax(220px, var(--photo-w, 300px)) minmax(0, 1fr); align-items: center; padding-top: clamp(28px, 3vw, 40px); }
.agent__card--cutout .agent__photo { align-self: end; }
.agent__card--cutout .agent__photo img { max-height: var(--photo-h, 520px); width: auto; max-width: 100%; margin-inline: auto; filter: drop-shadow(0 18px 30px rgba(17,41,75,.18)); }
/* Makler mit eigener Bildhöhe: Foto füllt die Spalte, auch wenn die Datei kleiner ist */
.agent__card--cutout[style] .agent__photo img { width: 100%; object-fit: contain; object-position: bottom; }
@media (max-width: 640px) {
  .agent__card--cutout { grid-template-columns: 1fr; }
  .agent__card--cutout .agent__photo { order: 0; width: var(--photo-w-m, 220px); }
}
