/* ============ Glacé 54 — tokens ============ */
@font-face {
  font-family: "EB Garamond";
  src: url("../assets/fonts/EBGaramond-var.woff2") format("woff2-variations");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../assets/fonts/EBGaramond-Italic-var.woff2") format("woff2-variations");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #120A49;
  --navy-70: rgba(18, 10, 73, 0.72);
  --navy-40: rgba(18, 10, 73, 0.42);
  --hairline: rgba(18, 10, 73, 0.22);
  --alabaster: #FAF6EE;
  --paper: #FFFDF8;
  --bronze: #A9845A;
  --serif: "EB Garamond", Georgia, serif;
  --measure: 34em;
  --gutter: clamp(20px, 5vw, 72px);
  --section-gap: clamp(96px, 14vw, 200px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(17px, 1.2vw, 19px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 480; margin: 0; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

/* ============ Header ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 2.4vw, 26px) var(--gutter);
  color: #fff;
  mix-blend-mode: normal;
  pointer-events: none;
  transition: background .4s ease, color .4s ease, box-shadow .4s ease;
}
.site-header > * { pointer-events: auto; }
.site-header.is-solid {
  background: var(--paper);
  color: var(--navy);
  box-shadow: 0 1px 0 var(--hairline);
}
.logo {
  display: block;
  text-decoration: none;
  width: clamp(98px, 9.6vw, 138px);
  aspect-ratio: 2743 / 1411;
  background: currentColor;
  -webkit-mask: url("../assets/icons/logo.svg") no-repeat center / contain;
  mask: url("../assets/icons/logo.svg") no-repeat center / contain;
}
.header-right { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); }
.lang-switch {
  font-size: .72em; letter-spacing: .18em; text-decoration: none;
  opacity: .85;
}
.lang-switch:hover { opacity: 1; text-decoration: underline; text-underline-offset: .3em; }
.header-cta {
  font-size: .64em;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: .82em 1.55em .78em;
  line-height: 1;
  transition: background .3s ease, color .3s ease;
}
.site-header:not(.is-solid) .header-cta:hover { background: #fff; color: var(--navy); }
.site-header.is-solid .header-cta:hover { background: var(--navy); color: var(--paper); }

/* ============ Hero ============ */
.hero { position: relative; min-height: 100svh; overflow: hidden; }
.hero-img, .hero-video { width: 100%; height: 100svh; object-fit: cover; }
video { display: block; max-width: 100%; }
.story-media video, .showcase-media video { width: 100%; }
.showcase-media video { aspect-ratio: 4 / 3; object-fit: cover; }
.showcase-hero > video { width: 100%; height: min(92svh, 860px); object-fit: cover; }
.contact-media video { width: 100%; height: 100%; min-height: 60svh; object-fit: cover; }
.materials-video { max-width: 1280px; margin: clamp(48px, 6vw, 88px) auto 0; }
.materials-video video { width: 100%; max-height: 78svh; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18,10,73,.34) 0%, rgba(18,10,73,0) 32%),
    linear-gradient(0deg, rgba(18,10,73,.52) 0%, rgba(18,10,73,0) 46%);
}
.hero-title {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  margin: 0 auto;
  text-align: center;
  z-index: 1;
  color: #fff;
  font-size: clamp(38px, 6.4vw, 92px);
  line-height: 1.04;
  letter-spacing: .005em;
  max-width: 14em;
  text-wrap: balance;
}

/* ============ Facts ============ */
.facts { padding: var(--section-gap) var(--gutter) calc(var(--section-gap) * .7); background: var(--paper); }
.facts-kicker {
  text-align: center;
  font-size: .72em; letter-spacing: .3em; text-transform: uppercase;
  color: var(--navy-40);
  margin: 0 0 clamp(36px, 5vw, 64px);
}
.facts-grid {
  max-width: 1360px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3.5vw, 56px);
  text-align: center;
}
.fact {
  opacity: 0; transform: translateY(18px);
  transition: opacity .9s ease, transform .9s ease;
}
/* Die Zahl bleibt immer einzeilig, damit alle vier auf einer Linie stehen */
.fact-num { white-space: nowrap; }
.facts.is-in .fact { opacity: 1; transform: none; }
.facts.is-in .fact:nth-child(2) { transition-delay: .12s; }
.facts.is-in .fact:nth-child(3) { transition-delay: .24s; }
.facts.is-in .fact:nth-child(4) { transition-delay: .36s; }
.fact-num {
  display: block;
  font-size: clamp(44px, 5.4vw, 92px);
  line-height: 1;
  letter-spacing: -.01em;
  font-variant-numeric: lining-nums;
}
.fact-num b { font-weight: 400; }
.fact-num i { font-style: italic; font-size: .55em; color: var(--navy-70); }
.fact-label {
  display: block;
  margin-top: .9em;
  font-size: .78em; letter-spacing: .18em; text-transform: uppercase;
  color: var(--navy-70);
}
@media (prefers-reduced-motion: reduce) {
  .fact { opacity: 1; transform: none; transition: none; }
}

/* ============ Statement ============ */
.statement {
  padding: calc(var(--section-gap) * .6) var(--gutter) var(--section-gap);
  text-align: center;
}
.statement-address { font-size: clamp(20px, 2vw, 28px); margin: 0 0 .4em; }
.statement-title {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.08;
  font-style: italic;
  margin-bottom: .55em;
}
.statement-copy {
  max-width: var(--measure);
  margin: 0 auto;
  color: var(--navy-70);
}

/* ============ Slogan marquee ============ */
.marquee {
  overflow: hidden;
  padding: clamp(40px, 6vw, 90px) 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee 44s linear infinite;
  font-style: italic;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.1;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ============ Interlude image ============ */
.interlude { padding: calc(var(--section-gap) * .35) var(--gutter) 0; }
.interlude-media {
  max-width: 880px; margin: 0 auto;
  clip-path: inset(9% 7%);
  transition: clip-path 1.4s cubic-bezier(.22, .8, .3, 1);
  overflow: hidden;
}
.interlude-media img, .interlude-media video {
  display: block; width: 100%; height: auto;   /* ganzes Haus, kein Beschnitt */
  transform: scale(1.06);
  transition: transform 1.8s cubic-bezier(.22, .8, .3, 1);
}
.interlude-media.is-in { clip-path: inset(0 0); }
.interlude-media.is-in img, .interlude-media.is-in video { transform: scale(1); }
.interlude-media figcaption {
  font-size: .78em; color: var(--navy-40);
  text-align: center; padding-top: 1.1em;
  opacity: 0; transition: opacity .8s ease .6s;
}
.interlude-media.is-in figcaption { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .interlude-media { clip-path: none; transition: none; }
  .interlude-media img, .interlude-media video { transform: none; transition: none; }
  .interlude-media figcaption { opacity: 1; transition: none; }
}

/* ============ Story ============ */
.story {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
  padding: var(--section-gap) var(--gutter) 0;
  max-width: 1360px;
  margin: 0 auto;
}
.story-flip { direction: rtl; }
.story-flip > * { direction: ltr; }
.story-text h2 { font-size: clamp(32px, 3.8vw, 54px); line-height: 1.1; margin-bottom: .7em; }
.story-text p { max-width: var(--measure); color: var(--navy-70); }
.story-media img { width: 100%; }
.story-media figcaption, .showcase-media figcaption {
  font-size: .78em; font-style: italic; color: var(--navy-40); margin-top: .8em;
}

/* ============ Showcases ============ */
.showcase { padding-top: var(--section-gap); }
.showcase-hero { position: relative; margin: 0; }
.showcase-hero > img { width: 100%; height: min(92svh, 860px); object-fit: cover; }
.showcase-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,10,73,.30), rgba(18,10,73,.06) 45%, rgba(18,10,73,.28));
}
.showcase-kicker {
  position: absolute; top: clamp(24px, 5vh, 56px); left: 0; right: 0;
  text-align: center; color: #fff; z-index: 1;
  font-size: .78em; letter-spacing: .34em; text-transform: uppercase;
}
.showcase-line {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-content: center;
  text-align: center; color: #fff;
  font-size: clamp(34px, 5vw, 70px);
  line-height: 1.1;
  padding: 0 var(--gutter);
  text-wrap: balance;
}
.showcase-body {
  max-width: 46em; margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) 0;
  text-align: center;
}
.showcase-body p { color: var(--navy-70); margin: 0 0 1em; }
.showcase-specs {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .6em 0;
  margin: 0 0 1.6em !important;
  color: var(--navy) !important;
  font-size: .82em; letter-spacing: .22em; text-transform: uppercase;
}
.showcase-specs span { padding: 0 1.4em; }
.showcase-specs span + span { border-left: 1px solid var(--hairline); }
/* am Handy untereinander, mit feinen Linien dazwischen statt Umbruchchaos */
@media (max-width: 760px) {
  .showcase-specs {
    display: block;
    margin: 0 auto 2em !important;
    max-width: 19em;
    border-top: 1px solid var(--hairline);
    font-size: .76em; letter-spacing: .2em;
  }
  .showcase-specs span {
    display: block; padding: .85em 0;
    border-left: 0 !important;
    border-bottom: 1px solid var(--hairline);
  }
}
.showcase-highlight { font-style: italic; color: var(--navy) !important; }
.showcase-media {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 48px);
  max-width: 1360px; margin: clamp(32px, 5vw, 64px) auto 0;
  padding: 0 var(--gutter);
}
.showcase-media figure { margin: 0; }
.showcase-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* a pair of upright films, side by side */
.showcase-media.is-portrait video,
.showcase-media.is-portrait img { aspect-ratio: 3 / 4; }
/* three across, for the rooftop apartments */
.showcase-media.is-three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) {
  .showcase-media.is-three { grid-template-columns: 1fr 1fr; }
  .showcase-media.is-three figure:last-child { grid-column: 1 / -1; }
  .showcase-media.is-three figure:last-child video { aspect-ratio: 16 / 9; }
}

/* ============ Materials ============ */
.materials {
  background: var(--navy); color: var(--alabaster);
  margin-top: var(--section-gap);
  padding: var(--section-gap) var(--gutter);
}
.materials-head { max-width: 1280px; margin: 0 auto clamp(48px, 6vw, 88px); }
.materials-head h2 { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.1; margin-bottom: .6em; }
.materials-head p { max-width: var(--measure); color: rgba(250,246,238,.72); margin: 0; }
.materials-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
}
.material { border-top: 1px solid rgba(250,246,238,.3); padding-top: 1.3em; }
.material h3 { font-size: clamp(22px, 1.9vw, 28px); margin-bottom: .5em; }
.material p { font-size: .86em; line-height: 1.55; color: rgba(250,246,238,.72); margin: 0 0 .8em; }
.material-source { font-style: italic; color: var(--bronze) !important; }

/* ============ Location ============ */
.location { padding: var(--section-gap) var(--gutter); background: var(--alabaster); }
.location-head { max-width: 1280px; margin: 0 auto; text-align: center; }
.location-kicker { font-size: clamp(18px, 1.6vw, 24px); margin: 0 0 .3em; font-style: italic; }
.location-head h2 { font-size: clamp(34px, 4.6vw, 64px); margin-bottom: .55em; }
.location-copy { max-width: var(--measure); margin: 0 auto; color: var(--navy-70); }
.landmarks {
  list-style: none; margin: clamp(48px, 6vw, 80px) auto 0; padding: 0;
  max-width: 1180px;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 40px clamp(16px, 2vw, 32px);
  text-align: center;
}
/* Icon-Zeile hat feste Höhe, Inhalt sitzt oben:
   dadurch stehen Symbole und Beschriftungen immer auf einer Linie,
   egal ob ein Name einzeilig oder zweizeilig umbricht. */
.landmarks li {
  flex: 0 0 clamp(150px, 17vw, 205px);
  display: grid;
  grid-template-rows: clamp(52px, 5.4vw, 68px) auto auto;
  align-content: start;
  align-items: start;
  justify-items: center;
}
.landmarks img {
  height: 100%; width: auto; max-width: 100%;
  display: block; margin: 0;
}
/* zwei Zeilen reserviert: auch neben einem langen Namen wie der
   Danube International School beginnt die Zeile darunter auf gleicher Höhe */
.landmarks span { display: block; font-size: .82em; line-height: 1.3; margin-top: .9em; min-height: 2.6em; }
.landmarks em { display: block; font-size: .74em; color: var(--navy-40); font-style: normal; margin-top: .25em; }
.location-daily {
  text-align: center; max-width: 42em;
  margin: clamp(48px, 6vw, 72px) auto 0;
  padding-top: 1.4em;
  border-top: 1px solid var(--hairline);
  font-size: .86em; color: var(--navy-70);
}

/* ============ Apartments ============ */
.apartments { padding: var(--section-gap) var(--gutter) clamp(64px, 8.4vw, 124px); max-width: 1360px; margin: 0 auto; }
.apartments-head { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.apartments-head h2 { font-size: clamp(40px, 5.6vw, 80px); }
.apartments-head p { max-width: var(--measure); margin: .8em auto 0; color: var(--navy-70); }
.apartments-filter {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.filter-btn {
  font: inherit; font-size: .82em;
  color: var(--navy); background: none;
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: .65em 1.4em; cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.filter-btn:hover { border-color: var(--navy); }
.filter-btn.is-active { background: var(--navy); color: var(--paper); border-color: var(--navy); }

.apartment-list {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: 1100px;
  border-top: 1px solid var(--hairline);
}
.apt-row { border-bottom: 1px solid var(--hairline); }
.apt-row.is-hidden { display: none; }
.apt-head {
  width: 100%;
  font: inherit; color: inherit; background: none; border: 0;
  text-align: left; cursor: pointer;
  display: grid;
  grid-template-columns: 4.6em 7.5em 6.5em 1fr auto 2em;
  align-items: baseline;
  gap: clamp(10px, 1.6vw, 26px);
  padding: 1.15em 0;
}
.apt-top { font-size: clamp(21px, 1.8vw, 27px); }
/* Hinweis bei einer reservierten Wohnung: alles bleibt sichtbar,
   nur der Stand ist vermerkt */
.apt-tag {
  display: inline-block;
  font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  font-style: normal; color: var(--navy-70);
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: .35em .85em; white-space: nowrap;
  margin: 0 .9em 0 0; vertical-align: .12em;
}
.apt-floor, .apt-rooms { font-size: .88em; color: var(--navy-70); }
.apt-area { font-size: .88em; color: var(--navy-70); }
.apt-price { font-style: italic; font-size: .92em; justify-self: end; }
/* Beide Fassungen stehen im Quelltext, das Format entscheidet,
   welche gezeigt wird. So stimmt die Zeile auch nach einem
   Drehen des Geräts oder einer Fensteränderung. */
.apt-meta-line { display: none; }
.apt-toggle {
  justify-self: end; align-self: center;
  width: 1.4em; height: 1.4em; position: relative;
}
.apt-toggle::before, .apt-toggle::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--navy);
  transition: transform .4s ease, opacity .4s ease;
}
.apt-toggle::before { width: 100%; height: 1px; }
.apt-toggle::after { width: 1px; height: 100%; }
.apt-row.is-open .apt-toggle::after { transform: rotate(90deg); opacity: 0; }
.apt-row.is-sold .apt-top,
.apt-row.is-sold .apt-area,
.apt-row.is-sold .apt-price { color: var(--navy-40); }
.apt-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .55s cubic-bezier(.25,.7,.2,1);
}
.apt-row.is-open .apt-panel { grid-template-rows: 1fr; }
.apt-panel-inner { overflow: hidden; }
.apt-plan-wrap {
  background: var(--alabaster);
  margin-bottom: 1.4em;
  padding: clamp(28px, 4.5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(26px, 3.2vw, 60px);
  align-items: center;
}
.apt-plans { display: grid; gap: clamp(22px, 2.8vw, 48px); justify-items: center; width: 100%; }
.apt-plans.is-multi { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.apt-plans.is-multi .apt-plan { grid-template-rows: auto auto; }
.apt-plan { margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 1.1em; }
.apt-plan img {
  max-height: min(56vh, 520px); max-width: 100%; width: auto;
  object-fit: contain; align-self: center;
}
.apt-plan figcaption {
  font-size: .72em; letter-spacing: .2em; text-transform: uppercase;
  color: var(--navy-40);
}
.apt-desc {
  max-width: 44em;
  margin: 0 auto 2.2em;
  padding: 0 clamp(8px, 2vw, 24px);
  text-align: center;
  font-size: .92em;
  color: var(--navy-70);
}

@media (max-width: 760px) {
  .apt-head {
    grid-template-columns: 1fr auto 2em;
    grid-template-areas: "top price toggle" "meta meta meta";
    row-gap: .3em;
  }
  .apt-top { grid-area: top; }
  .apt-price { grid-area: price; }
  .apt-toggle { grid-area: toggle; }
  .apt-head > .apt-floor, .apt-head > .apt-rooms, .apt-head > .apt-area { display: none; }
  .apt-meta-line { display: block; grid-area: meta; font-size: .86em; color: var(--navy-70); }
}
.apartments-note {
  text-align: center; font-size: .76em; color: var(--navy-40);
  max-width: 44em; margin: clamp(36px, 5vw, 56px) auto 1.8em;
}
.btn-primary {
  display: table; margin: 0 auto;
  font-size: .8em; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none;
  color: var(--paper); background: var(--navy);
  border: 1px solid var(--navy); border-radius: 999px;
  padding: 1.1em 2.4em;
  transition: background .25s ease, color .25s ease;
}
.btn-primary:hover { background: transparent; color: var(--navy); }

/* ============ Contact ============ */
/* ============ Map ============ */
.mapwrap { max-width: 1280px; margin: clamp(56px, 7vw, 96px) auto 0; }
.map-bar {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
  margin-bottom: 1.4em;
}
.map-views { display: flex; gap: 10px; }
.map-btn, .map-3d {
  font: inherit;
  font-size: .72em; letter-spacing: .2em; text-transform: uppercase;
  color: var(--navy); background: transparent;
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: .85em 1.6em;
  cursor: pointer; text-decoration: none;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.map-btn:hover { border-color: var(--navy); }
.map-3d { border-color: var(--navy); }
.map-3d:hover { background: var(--navy); color: var(--paper); }
.map-3d.is-active { background: var(--navy); color: var(--paper); }

.map {
  position: relative;
  height: clamp(400px, 60svh, 660px);
  background: #F5EFE4;
  opacity: 0;
  transition: opacity .8s ease;
}
.map.is-ready { opacity: 1; }
.map canvas { outline: none; }
.map .maplibregl-ctrl-attrib { display: none; }
.map.map-offline::after {
  content: attr(data-offline);
  position: absolute; inset: auto 0 14px 0; z-index: 5;
  text-align: center; font-size: .76em; color: var(--navy-40);
  pointer-events: none;
}

/* pins */
.pin { position: relative; width: 0; height: 0; }
.pin-dot, .pin-icon {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
}
.pin-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 8px rgba(18, 10, 73, .14);
}
.pin-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--navy);
  box-shadow: 0 2px 14px rgba(18, 10, 73, .1);
}
.pin-icon img { width: 38px; height: 38px; display: block; }
.pin-label {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, 18px);
  white-space: nowrap;
  font-size: 15px; letter-spacing: .04em;
  color: var(--navy);
  text-shadow: 0 0 5px var(--paper), 0 0 12px var(--paper), 0 0 12px var(--paper);
}
.pin-home .pin-label {
  transform: translate(-50%, 22px);
  font-size: 27px; font-style: italic; letter-spacing: .02em;
}
.pin-icon + .pin-label { transform: translate(-50%, 38px); }

/* typographic place names, set by us */
.map-place span {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-style: italic; font-size: 19px;
  letter-spacing: .14em;
  color: var(--navy-40);
}
.map-place.map-water span { color: #7E8BA8; }

.map .maplibregl-ctrl-group {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  box-shadow: 0 2px 14px rgba(18, 10, 73, .08);
  overflow: hidden;
}
.map .maplibregl-ctrl-group button {
  width: 42px; height: 42px;
  background: transparent;
}
.map .maplibregl-ctrl-group button + button { border-top: 1px solid var(--hairline); }
.map .maplibregl-ctrl-group button:hover { background: var(--alabaster); }
.map .maplibregl-ctrl-group button span { filter: saturate(0) brightness(.35); }
.map-note {
  font-size: .72em; color: var(--navy-40);
  margin: 1.1em 0 0; text-align: right;
}
@media (max-width: 760px) {
  /* die drei Schalter bleiben in einer Reihe, auch auf Englisch */
  .map-bar {
    display: grid; grid-template-columns: 1fr 1fr auto;
    flex-wrap: nowrap; gap: 8px; align-items: stretch;
  }
  .map-views { display: contents; }
  .map-btn, .map-3d {
    font-size: .6em; letter-spacing: .1em;
    padding: .9em .5em; text-align: center;
    display: flex; align-items: center; justify-content: center;
  }
  .map-3d { padding-left: 1.3em; padding-right: 1.3em; }
  .map-note { text-align: center; }
  .pin-icon { width: 50px; height: 50px; }
  .pin-icon img { width: 30px; height: 30px; }
  .pin-icon + .pin-label { transform: translate(-50%, 31px); }
  .pin-label { font-size: 13px; }
  .pin-home .pin-label { font-size: 21px; }
  .map-place span { font-size: 15px; }
}

/* ============ Folder download ============ */
.folder {
  background: var(--navy); color: var(--alabaster);
  padding: clamp(72px, 10vw, 160px) var(--gutter);
  text-align: center;
}
.folder-inner { max-width: 720px; margin: 0 auto; }
.folder-kicker {
  font-size: .72em; letter-spacing: .3em; text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 1.6em;
}
.folder-h { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.1; margin-bottom: .55em; }
.folder-copy { color: rgba(250, 246, 238, .72); max-width: 36em; margin: 0 auto 2.4em; }
.folder-form {
  display: flex; gap: 12px;
  max-width: 820px; margin: 0 auto;
}
.folder-form input[type="email"], .folder-form input[type="text"]:not(.hp-field) {
  flex: 1 1 auto; min-width: 0;
  font: inherit; color: var(--alabaster);
  background: transparent;
  border: 1px solid rgba(250, 246, 238, .35);
  border-radius: 999px;
  padding: 1em 1.6em;
  outline: none;
  transition: border-color .25s ease;
}
.folder-form input::placeholder { color: rgba(250, 246, 238, .45); }
.folder-form input:focus { border-color: var(--bronze); }
.folder-form button {
  font: inherit; font-size: .8em; letter-spacing: .22em; text-transform: uppercase;
  color: var(--navy); background: var(--alabaster);
  border: 1px solid var(--alabaster); border-radius: 999px;
  padding: 1.1em 2.2em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease;
}
.folder-form button:hover { background: var(--bronze); border-color: var(--bronze); color: var(--navy); }
.folder-form button[disabled] { opacity: .55; cursor: wait; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.folder-status { min-height: 1.4em; margin: 1.4em auto 0; font-size: .92em; }
.folder-status a { color: var(--alabaster); text-decoration-color: var(--bronze); text-underline-offset: .22em; }
.folder-consent {
  font-size: .74em; color: rgba(250, 246, 238, .5);
  max-width: 40em; margin: 1.6em auto 0;
}
@media (max-width: 760px) {
  .folder-form { flex-direction: column; }
  .folder-form button { padding: 1.2em 2.2em; }
}

.contact {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  background: var(--alabaster);
}
.contact-media { margin: 0; height: 100%; }
.contact-media img { width: 100%; height: 100%; min-height: 60svh; object-fit: cover; }
/* Der Textblock steht mittig in seiner Hälfte, der Schalter darunter
   ebenso. So hängt nichts am linken Rand. */
.contact-body {
  padding: clamp(56px, 8vw, 120px) var(--gutter);
  text-align: center;
}
.contact-body > * { max-width: 20em; margin-left: auto; margin-right: auto; }
.contact-body h2 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.1; margin-bottom: .7em; max-width: 14em; }
.contact-mail { font-size: clamp(20px, 2vw, 26px); margin: 0 auto .2em; }
.contact-mail a { text-decoration-color: var(--bronze); text-underline-offset: .22em; }
.contact-web { margin: 0 auto 2em; color: var(--navy-40); }
.contact .btn-primary { display: inline-block; margin: 0 auto; }

/* ============ Footer ============ */
.site-footer {
  background: var(--navy); color: var(--alabaster);
  padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(32px, 4vw, 56px);
}
.logo-footer {
  width: clamp(140px, 14vw, 196px);
  margin-bottom: clamp(36px, 4vw, 56px);
  color: var(--alabaster);
}
.footer-cols {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
  font-size: .86em; line-height: 1.7;
  color: rgba(250,246,238,.75);
}
.footer-cols p { margin: 0; }
.footer-cols a { color: inherit; text-underline-offset: .2em; }
.footer-cols a:hover { color: var(--paper); }
.footer-soon { color: rgba(250,246,238,.45); }
.footer-note { font-size: .8em; color: rgba(250,246,238,.45); }

/* ============ Rechtstexte ============ */
.legal {
  max-width: 48em;
  margin: 0 auto;
  padding: clamp(96px, 12vw, 160px) var(--gutter) clamp(64px, 8vw, 110px);
}
.legal h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.08; margin: 0 0 .5em; }
.legal-kicker {
  font-size: .78em; letter-spacing: .22em; text-transform: uppercase;
  color: var(--navy-40); margin: 0 0 1.4em;
}
.legal h2 {
  font-size: .78em; letter-spacing: .2em; text-transform: uppercase;
  color: var(--navy-40);
  margin: 2.4em 0 .5em; font-weight: 400;
}
.legal p { margin: 0 0 .4em; line-height: 1.7; }
.legal h2 + p + p, .legal p + p { margin-top: .9em; }
.legal-lead { font-size: 1.06em; color: var(--navy-70); margin-bottom: 1.2em !important; }
.legal a { text-decoration-color: var(--bronze); text-underline-offset: .2em; }
.legal-back {
  display: inline-block; margin-top: clamp(40px, 5vw, 64px);
  font-size: .78em; letter-spacing: .2em; text-transform: uppercase;
  color: var(--navy-70);
}
.legal-pending {
  margin-top: 2.6em; padding-top: 1.4em;
  border-top: 1px solid var(--hairline);
  font-size: .86em; color: var(--navy-40);
}

/* ============ Sticky CTA ============ */
.sticky-cta {
  position: fixed; left: 50%; bottom: 22px; z-index: 60;
  transform: translate(-50%, 140%);
  display: inline-flex; align-items: center; gap: .7em;
  background: var(--paper); color: var(--navy);
  border: 1px solid var(--hairline); border-radius: 999px;
  box-shadow: 0 12px 38px rgba(18,10,73,.18);
  padding: 1.15em 2.8em;
  font-size: 1.04em;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.sticky-cta.is-visible { transform: translate(-50%, 0); }
.sticky-cta-dot { width: .55em; height: .55em; border-radius: 50%; background: var(--bronze); }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sticky-cta { transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1060px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .materials-grid { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 760px) {
  .story, .story-flip { grid-template-columns: 1fr; padding-top: calc(var(--section-gap) * .8); }
  .showcase-media { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact-media img, .contact-media video { min-height: 46svh; }
  .facts-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .landmarks li { flex-basis: 40%; }
  .hero-title { font-size: clamp(34px, 9.6vw, 52px); }
}

/* ============ Visualisierungs-Hinweis ============ */
.vis-tag {
  display: block; margin-top: .5em;
  font-style: normal; font-size: .82em;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy-40);
}
.footer-vis {
  margin: clamp(32px, 4vw, 52px) 0 0;
  font-size: .8em; line-height: 1.7;
  color: rgba(250, 246, 238, .45);
  max-width: 38em;
}

/* ============ Zeitachse 1862 · heute · 2028 ============ */
.timeline { padding-top: var(--section-gap); }
.timeline-head {
  max-width: 1280px; margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.timeline-kicker {
  font-size: .72em; letter-spacing: .3em; text-transform: uppercase;
  color: var(--navy-40); margin: 0 0 1.1em;
}
.timeline-head h2 { font-size: clamp(34px, 4.6vw, 64px); margin-bottom: .5em; }
.timeline-copy { max-width: var(--measure); margin: 0 auto; color: var(--navy-70); }

.timeline-track { position: relative; height: 320vh; margin-top: clamp(32px, 4vw, 56px); }
.timeline-stage {
  position: sticky; top: 0;
  height: 100svh;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  justify-items: center;
  gap: clamp(16px, 2.4vh, 30px);
  padding: clamp(96px, 15vh, 150px) var(--gutter) clamp(84px, 12vh, 118px);
}
.tl-years {
  display: flex; justify-content: center;
  gap: clamp(20px, 4vw, 54px);
  margin: 0;
  font-size: .78em; letter-spacing: .26em;
}
.tl-year { color: var(--navy-40); transition: color .45s ease; }
.tl-year.is-on { color: var(--navy); }

.tl-frame {
  position: relative; margin: 0;
  width: min(820px, 100%, 56svh);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--alabaster);
  justify-self: center;
}
.tl-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.tl-img + .tl-img { clip-path: inset(0 100% 0 0); }
.tl-edge {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: var(--paper);
  box-shadow: 0 0 14px rgba(18, 10, 73, .35);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.tl-cap {
  margin: 0; max-width: 34em; text-align: center;
  color: var(--navy-70); font-size: .9em; line-height: 1.55;
  min-height: 4.4em;
  transition: opacity .22s ease;
}
.tl-cap .vis-tag { margin-top: .4em; }

@media (max-width: 760px) {
  .timeline-track { height: 280vh; }
  .tl-years { font-size: .72em; letter-spacing: .2em; }
  .tl-cap { font-size: .84em; min-height: 6em; }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-track { height: auto; }
  .timeline-stage { position: static; height: auto; padding-top: 0; }
  .tl-frame {
    max-width: 1180px; aspect-ratio: auto; height: auto;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    background: none;
  }
  .tl-img { position: static; aspect-ratio: 1 / 1; clip-path: none; }
  .tl-edge { display: none; }
  .tl-year { color: var(--navy); }
  .tl-cap { display: none; }
}

/* ============ Kopfzeile auf schmalen Geräten ============ */
@media (max-width: 440px) {
  .site-header { padding-left: 16px; padding-right: 16px; }
  .site-header .logo { width: 84px; }
  .header-right { gap: 10px; }
  .lang-switch { font-size: .66em; letter-spacing: .12em; white-space: nowrap; }
  .header-cta {
    font-size: .58em; letter-spacing: .14em;
    padding: .8em 1.1em .76em; white-space: nowrap;
  }
}

/* ============ Lage im Haus: Aufriss und Draufsicht ============ */
.apt-plan-wrap { position: relative; }
.apt-where {
  width: clamp(132px, 12.5vw, 190px);
  display: grid; gap: clamp(16px, 1.8vw, 26px);
  align-self: stretch; align-content: center;
  border-left: 1px solid var(--hairline);
  padding-left: clamp(20px, 2.2vw, 38px);
}
.aw-item { text-align: center; }
.aw-item svg { width: 70%; margin: 0 auto; height: auto; display: block; overflow: visible; }
.aw-item img { width: 100%; height: auto; display: block; }
.aw-item span {
  display: block; margin-top: .6em;
  font-size: clamp(9px, .72vw, 11px); letter-spacing: .02em;
  color: var(--navy-40); line-height: 1.35;
}
.aw-street { font-size: clamp(8px, .62vw, 10px) !important; font-style: italic; }
.fs-line { fill: none; stroke: rgba(18, 10, 73, .38); stroke-width: 3; stroke-linejoin: round; }
.fs-ground { stroke: rgba(18, 10, 73, .38); stroke-width: 3; }
.fs-on { fill: var(--navy); }
.fs-win { fill: rgba(18, 10, 73, .06); stroke: rgba(18, 10, 73, .42); stroke-width: 2.5; }
.fs-win.is-on { fill: var(--alabaster); stroke: var(--alabaster); }
.fs-mull { stroke: rgba(18, 10, 73, .3); stroke-width: 1.6; }
.fs-mull.is-on { stroke: rgba(18, 10, 73, .55); }
.fs-sill { fill: none; stroke: rgba(18, 10, 73, .3); stroke-width: 2; }
.fs-sill.is-on { stroke: rgba(250, 246, 238, .7); }
.fs-base { fill: none; stroke: rgba(18, 10, 73, .25); stroke-width: 2; }

@media (max-width: 980px) {
  .apt-plan-wrap { grid-template-columns: 1fr; }
  .apt-plans.is-multi { grid-template-columns: 1fr; }
  .apt-plan img { max-height: min(62vh, 560px); }
  /* Mobil eine Reihe: links das Geschoß, in der Mitte der Lageplan,
     rechts der Nordstern. Alle Zeichen stehen auf derselben Linie,
     weil das Bildfeld für jede Wohnung gleich hoch ist. */
  .apt-where {
    --aw-band: clamp(104px, 29vw, 140px);
    width: auto; border-left: 0;
    border-top: 1px solid var(--hairline);
    padding: clamp(22px, 5vw, 36px) 0 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    justify-content: center; align-items: start;
    gap: 0 clamp(14px, 4.5vw, 32px);
  }
  .apt-where .aw-item {
    width: auto; margin: 0;
    display: grid; grid-template-rows: var(--aw-band) auto;
    justify-items: center; align-items: end;
  }
  .apt-where .aw-item > svg,
  .apt-where .aw-item > img {
    width: auto; max-width: 100%;
    height: 100%; max-height: var(--aw-band);
    object-fit: contain; object-position: center bottom;
    margin: 0; align-self: end;
  }
  .apt-where .aw-item > svg { height: calc(var(--aw-band) * .82); }
  .apt-where .aw-item:not(.aw-compass) > img { max-width: clamp(130px, 38vw, 190px); }
  .apt-where .aw-compass { margin: 0; }
  .aw-item span { font-size: 10px; }
  .aw-street { font-size: 9px !important; }
}

/* ============ Hinweis bei verkaufter Wohnung ============ */
.apt-soldnote {
  text-align: center; font-style: italic;
  color: var(--navy-40);
  padding: clamp(34px, 5vw, 64px) var(--gutter);
  margin: 0 0 1.6em;
  background: var(--alabaster);
}

/* ============ Nordstern ============ */
.aw-compass { width: 100%; }
.aw-compass img {
  width: clamp(44px, 4vw, 58px); height: auto;
  margin: 0 auto; display: block;
}
@media (max-width: 980px) {
  .apt-where .aw-compass > img {
    width: auto;
    height: clamp(40px, 11vw, 54px);
    max-height: clamp(40px, 11vw, 54px);
  }
}

/* ============ Galerie ============ */
.gallery { padding: 0 0 clamp(72px, 9vw, 130px); }
.gallery-head {
  max-width: 1280px; margin: 0 auto;
  padding: 0 var(--gutter); text-align: center;
}
.gallery-head h2 { font-size: clamp(34px, 4.6vw, 64px); margin: 0; }

.gallery-rail {
  display: flex; gap: 22px;
  margin-top: clamp(36px, 5vw, 64px);
  padding: 4px var(--gutter) 10px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}
.gallery-rail::-webkit-scrollbar { display: none; }
.gallery-rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.gallery-rail:focus-visible { outline: 2px solid var(--bronze); outline-offset: 4px; }

.gal-card {
  flex: 0 0 clamp(240px, 24vw, 340px);
  margin: 0; scroll-snap-align: center;
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,.8,.3,1);
}
.gal-card.is-in { opacity: 1; transform: none; }
.gal-card img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  background: var(--alabaster);
  transition: transform .7s cubic-bezier(.22,.8,.3,1), filter .5s ease;
  user-select: none; -webkit-user-drag: none;
}
.gal-card:hover img { transform: scale(1.028); filter: brightness(1.03); }
.gal-card figcaption {
  margin-top: .9em; font-size: .8em; line-height: 1.45;
  color: var(--navy-70);
  display: flex; gap: .7em; align-items: baseline;
}
.gal-no { color: var(--navy-40); font-style: italic; }

.gallery-foot {
  max-width: 1280px; margin: clamp(26px, 3vw, 40px) auto 0;
  position: relative; z-index: 1;
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: clamp(14px, 2vw, 26px);
}
.gal-nav {
  font: inherit; font-size: 1em; line-height: 1;
  color: var(--navy); background: transparent;
  border: 1px solid var(--hairline); border-radius: 999px;
  width: 2.6em; height: 2.6em; cursor: pointer;
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}
.gal-nav:hover { border-color: var(--navy); background: var(--navy); color: var(--paper); }
.gallery-bar { flex: 1 1 auto; height: 1px; background: var(--hairline); position: relative; }
.gallery-bar > span {
  position: absolute; inset: 0; background: var(--navy);
  transform-origin: left center; transform: scaleX(.06);
  transition: transform .18s ease-out;
}

/* Vollbild */
body.is-locked { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(10, 6, 40, .96);
  opacity: 0; transition: opacity .32s ease;
}
.lightbox.is-open { opacity: 1; }
.lb-feed {
  height: 100%; overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.lb-feed::-webkit-scrollbar { display: none; }
.lb-slide {
  height: 100%; margin: 0;
  scroll-snap-align: start;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  align-items: center; justify-items: center;
  padding: clamp(44px, 7vh, 80px) var(--gutter) clamp(30px, 5vh, 56px);
}
.lb-slide img {
  max-width: min(1100px, 100%); max-height: 100%;
  min-height: 0; width: auto; height: auto; object-fit: contain;
  opacity: 0; transform: scale(.985);
  transition: opacity .6s ease, transform .9s cubic-bezier(.22,.8,.3,1);
}
.lb-slide.is-on img { opacity: 1; transform: none; }
.lb-slide figcaption {
  margin-top: 1.3em; text-align: center;
  color: rgba(250, 246, 238, .78); font-size: .9em;
  max-width: 34em;
  opacity: 0; transition: opacity .6s ease .15s;
}
.lb-slide.is-on figcaption { opacity: 1; }
.lb-slide .vis-tag { color: rgba(250, 246, 238, .42); }
.lb-count {
  position: fixed; left: var(--gutter); bottom: clamp(18px, 3vh, 34px);
  margin: 0; color: rgba(250, 246, 238, .55);
  font-size: .78em; letter-spacing: .22em;
}
.lb-close {
  position: fixed; top: clamp(14px, 2.4vh, 28px); right: var(--gutter);
  width: 2.4em; height: 2.4em; line-height: 1;
  font: inherit; font-size: 1.4em;
  color: var(--alabaster); background: transparent;
  border: 1px solid rgba(250, 246, 238, .35); border-radius: 999px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.lb-close:hover { background: var(--alabaster); color: var(--navy); }

@media (max-width: 760px) {
  .gal-card { flex-basis: 72vw; }
  .gal-card figcaption { font-size: .76em; }
  .lb-slide { padding-top: clamp(56px, 9vh, 90px); }
}
@media (prefers-reduced-motion: reduce) {
  .gal-card { opacity: 1; transform: none; transition: none; }
  .gal-card img, .lb-slide img, .lb-slide figcaption { transition: none; }
  .lb-slide img { opacity: 1; transform: none; }
  .lb-slide figcaption { opacity: 1; }
}

/* ============ Anfrage ============ */
body.no-scroll { overflow: hidden; }

.apt-apartment {
  max-width: var(--measure); margin: 1.1em auto 0;
  text-align: center; font-style: italic; font-size: .9em; color: var(--navy-70);
}
/* Anfrage-Button im Dropdown: nur umrandet, und mit Luft zur Trennlinie
   der nächsten Wohnung darunter */
.apt-ask { margin: clamp(26px, 3vw, 40px) 0 clamp(30px, 3.4vw, 46px); text-align: center; }
.apt-ask-btn { cursor: pointer; }
.apt-ask-btn:not(.header-cta) { font: inherit; }
.apt-row .apt-ask-btn {
  color: var(--navy); background: transparent;
  border: 1px solid var(--hairline);
}
.apt-row .apt-ask-btn:hover { border-color: var(--navy); background: var(--alabaster); }

.ask {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(10, 6, 40, .62);
  display: grid; place-items: center;
  padding: clamp(14px, 3vw, 40px);
  overflow-y: auto;
}
.ask[hidden] { display: none; }
.ask-card {
  position: relative;
  width: min(620px, 100%);
  background: var(--paper); color: var(--navy);
  padding: clamp(28px, 4vw, 54px) clamp(22px, 3.6vw, 52px) clamp(24px, 3vw, 40px);
  max-height: calc(100svh - clamp(28px, 6vw, 80px));
  overflow-y: auto;
}
.ask-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: 0; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--navy-40);
}
.ask-close:hover { color: var(--navy); }
.ask-kicker {
  font-size: .7em; letter-spacing: .3em; text-transform: uppercase;
  color: var(--navy-40); margin: 0 0 1em;
}
.ask-h { font-size: clamp(28px, 3.4vw, 42px); margin: 0 0 .4em; font-weight: 480; }
.ask-lead { color: var(--navy-70); margin: 0 0 1.8em; font-size: .95em; }

.ask-form { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.8vw, 22px); }
.ask-field { display: grid; gap: .5em; }
.ask-field.ask-wide { grid-column: 1 / -1; }
.ask-field > span {
  font-size: .7em; letter-spacing: .18em; text-transform: uppercase; color: var(--navy-40);
}
.ask-field input, .ask-field select, .ask-field textarea {
  font: inherit; font-size: .95em; color: var(--navy);
  background: var(--alabaster); border: 1px solid var(--hairline);
  border-radius: 0; padding: .78em 1em; width: 100%;
}
.ask-field textarea { resize: vertical; min-height: 5em; }
.ask-field input:focus, .ask-field select:focus, .ask-field textarea:focus {
  outline: none; border-color: var(--navy-40); background: var(--paper);
}
.ask-sum > span { text-transform: none; letter-spacing: .02em; font-size: .78em; font-style: italic; }
.ask-send {
  grid-column: 1 / -1; justify-self: start;
  font: inherit; font-size: .78em; letter-spacing: .2em; text-transform: uppercase;
  background: var(--navy); color: var(--paper); border: 0; cursor: pointer;
  padding: 1.15em 2.6em; margin-top: .4em;
}
.ask-send:hover { background: #1b1060; }
.ask-send[disabled] { opacity: .5; cursor: default; }
.ask-status { min-height: 1.2em; margin: 1.1em 0 0; font-size: .9em; }
.ask-status.is-ok { color: var(--navy); }
.ask-status.is-err { color: #9a2d2d; }
.ask-consent { margin: 1.1em 0 0; font-size: .74em; line-height: 1.5; color: var(--navy-40); }

@media (max-width: 560px) {
  .ask-form { grid-template-columns: 1fr; }
  .ask-send { justify-self: stretch; text-align: center; }
}

/* ---- Fußwege und Richtungszeiger auf der Karte ---- */
.map-walk span {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-size: 13px; font-style: italic; letter-spacing: .03em;
  color: var(--navy-70);
  text-shadow: 0 0 5px var(--paper), 0 0 12px var(--paper), 0 0 12px var(--paper);
}
.pin-dir .pin-label {
  transform: translate(-50%, 40px);
  font-size: 14px; line-height: 1.35; text-align: center; white-space: nowrap;
}
.pin-dir .pin-label em { font-size: 12px; color: var(--navy-70); font-style: italic; }
.dir-arrow {
  position: absolute; left: 0; top: 0;
  width: 54px; height: 54px; margin: -27px 0 0 -27px;
}
.dir-arrow::after {
  content: ""; position: absolute; left: 50%; bottom: -14px;
  width: 0; height: 0; margin-left: -7px;
  border: 7px solid transparent; border-top-color: var(--navy);
  opacity: .75;
}
@media (max-width: 760px) {
  .map-walk span { font-size: 11px; }
  .pin-dir .pin-label { font-size: 12px; }
}
/* MapLibre setzt opacity direkt am Marker, daher über visibility ausblenden */
.map .pin.is-wide { visibility: hidden; pointer-events: none; }
.map.show-wide .pin.is-wide { visibility: visible; pointer-events: auto; }

/* Gehzeit dauerhaft unter dem Namen jedes Kartenpunkts */
.pin-label em {
  display: block; margin-top: .15em;
  font-size: 12px; font-style: italic; letter-spacing: .02em;
  color: var(--navy-40);
}
.pin-home .pin-label em { display: none; }
@media (max-width: 760px) {
  .pin-label em { font-size: 10px; }
}
/* das Haus liegt über den anderen Punkten, damit es nie verdeckt wird */
.map .pin-home { z-index: 3; }
.map .pin-dir { z-index: 2; }

/* Häkchen, das vor dem Absenden gesetzt werden muss */
.ask-check, .folder-check {
  display: flex; align-items: center; gap: .8em;
  cursor: pointer; user-select: none;
}
.ask-check input, .folder-check input {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; flex: 0 0 22px; margin: 0;
  border: 1px solid var(--hairline); background: var(--alabaster);
  cursor: pointer; position: relative;
}
.ask-check input:checked, .folder-check input:checked { border-color: var(--navy); }
.ask-check input:checked::after, .folder-check input:checked::after {
  content: ""; position: absolute; left: 6px; top: 2px;
  width: 6px; height: 12px;
  border: solid var(--navy); border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.ask-check input:focus-visible, .folder-check input:focus-visible {
  outline: 2px solid var(--bronze); outline-offset: 2px;
}
.ask-check > span, .folder-check > span {
  font-size: .86em; letter-spacing: .02em; text-transform: none; color: var(--navy-70);
}
.folder-check {
  justify-content: center; margin: clamp(18px, 2vw, 26px) 0 0;
}
.folder-check input { background: rgba(255, 253, 248, .14); border-color: rgba(255, 253, 248, .35); }
.folder-check input:checked { border-color: var(--paper); }
.folder-check input:checked::after { border-color: var(--paper); }
.folder-check > span { color: rgba(255, 253, 248, .72); }
.folder-form button[disabled], .ask-send[disabled] { opacity: .45; cursor: not-allowed; }

/* ============ Zustimmung Google Analytics ============ */
.consent {
  position: fixed; left: 50%; bottom: 22px; z-index: 70;
  width: min(600px, calc(100% - 32px));
  transform: translate(-50%, 24px); opacity: 0;
  background: var(--paper); color: var(--navy);
  border: 1px solid var(--hairline); border-radius: 18px;
  box-shadow: 0 16px 44px rgba(18,10,73,.18);
  padding: 22px 26px 20px;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), opacity .4s ease;
}
.consent.is-open { transform: translate(-50%, 0); opacity: 1; }
.consent-text { margin: 0; font-size: .9em; line-height: 1.5; color: var(--navy-70); }
.consent-text a { color: var(--navy); text-decoration-color: var(--bronze); text-underline-offset: .22em; }
.consent-btns { display: flex; gap: 10px; margin-top: 16px; }
.consent-btn {
  flex: 1 1 0;
  font: inherit; font-size: .72em; letter-spacing: .2em; text-transform: uppercase;
  color: var(--navy); background: transparent;
  border: 1px solid var(--navy); border-radius: 999px;
  padding: 1em 1.2em .95em; line-height: 1; cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.consent-btn:hover { background: var(--navy); color: var(--paper); }
body.has-consent .sticky-cta { transform: translate(-50%, 140%); }
@media (max-width: 440px) {
  .consent { bottom: 12px; padding: 18px 18px 16px; }
}
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }
@media (min-width: 761px) {
  .consent { left: auto; right: 28px; bottom: 28px; width: 440px; transform: translateY(24px); }
  .consent.is-open { transform: none; }
}

/* ============ Intro: Glacé von links, 54 von rechts, dann öffnet sich der Vorhang ============ */
.intro-overlay { display: none; }
html.intro .intro-overlay {
  display: block; position: fixed; inset: 0; z-index: 300;
  pointer-events: auto; cursor: pointer;
}
html.intro body { overflow: hidden; }
.intro-half {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background: var(--navy);
  transition: transform 1s cubic-bezier(.7, 0, .2, 1);
}
.intro-l { left: 0; }
.intro-r { right: 0; }
.intro-logo {
  position: absolute; left: 50%; top: 50%;
  width: min(54vw, 380px); aspect-ratio: 2743 / 1411;
  transform: translate(-50%, -50%);
  color: var(--alabaster);
  transition: opacity .45s ease;
}
.intro-logo svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro-glace, .intro-54 {
  opacity: 0;
  transition: transform 1.3s cubic-bezier(.16, .84, .24, 1), opacity 1s ease;
}
.intro-glace { transform: translateX(-60vw); }
.intro-54 { transform: translateX(60vw); }
.intro-overlay.is-in .intro-glace,
.intro-overlay.is-in .intro-54 { transform: none; opacity: 1; }
.intro-overlay.is-open .intro-logo { opacity: 0; }
.intro-overlay.is-open .intro-l { transform: translateX(-101%); }
.intro-overlay.is-open .intro-r { transform: translateX(101%); }
.intro-overlay.is-open { pointer-events: none; }

/* ============ Person vor der Schrift ============
   Unter der Schrift liegt das Video, darüber nur die freigestellte Person
   aus demselben Video. Beide werden aus einer Datei gezeichnet. */
.occ-bg, .occ-fg {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  pointer-events: none; display: block;
}
.occ-bg { background: center / cover no-repeat; }
.occ-fg { z-index: 2; }
video.is-occ-source { opacity: 0; }
