/* ==========================================================
   Rufihoschet Bilten – Farben 1:1 aus dem Original
   ========================================================== */
:root {
  --beige: #E2DAC7;      /* rgb(226,218,199) Hintergrund hell */
  --accent: #80643F;     /* rgb(128,100,63) Links, Logo dunkel */
  --black: #000000;
  --white: #FFFFFF;
  --green: #77A175;      /* Meilenstein erledigt */
  --orange: #EEA845;     /* Meilenstein aktuell */
  --line: rgba(0, 0, 0, .55); /* Formularrahmen */

  --radius: 10px;   /* eine Rundung für alle Knöpfe, Kacheln und Felder */
  --img-radius: 12px;
  --ff-head: 'Aboreto', 'Times New Roman', serif;
  --ff-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --ff-btn: 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(16px, 4.2vw, 64px);
  --slant: clamp(28px, 4.5vw, 80px);
  --slant-pad: clamp(30px, 5vw, 85px);   /* fester Abstand für die Schrägen: --slant bewegt sich beim Scrollen, das Layout soll das nicht */
  --maxw: 1360px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; } /* während Intro und offenem Menü nicht scrollen */
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--ff-body);
  font-size: 15.3px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;   /* clip statt hidden: feststehende Elemente funktionieren so auch in Safari */
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; color: inherit; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--black); color: var(--beige); padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: 16px; }

/* ---------- Typografie (Werte aus dem Original) ---------- */
.h1, .h2, .h3, .hero__title, .hero__sub, .acc__btn, .menu__list a {
  font-family: var(--ff-head);
  font-weight: 400;
  letter-spacing: -.03em;
  margin: 0;
}
.h1 { font-size: clamp(30px, 3.35vw, 42.8px); line-height: 1.1; }
.h2 { font-size: clamp(29px, 3.15vw, 40.35px); line-height: 1.1; }
.h3 { font-size: clamp(20px, 1.81vw, 23.14px); line-height: 1.176; }
.lead { font-size: 17px; line-height: 1.3; }

/* Zeilen-Masken für Text-Reveal */
.line-mask { display: inline-block; vertical-align: top; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line-inner { display: inline-block; will-change: transform; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sec { position: relative; padding: clamp(80px, 9vw, 140px) 0; }
.sec--white { background: var(--white); }
.sec--beige { background: var(--beige); }

/* Schräge Kanten wie im Original (bewegen sich beim Scrollen leicht mit) */
.sec--cut-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%); padding-bottom: calc(clamp(80px, 9vw, 140px) + var(--slant-pad)); }
.sec--cut-both { clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%); padding: calc(clamp(80px, 9vw, 140px) + var(--slant-pad) * .6) 0 calc(clamp(80px, 9vw, 140px) + var(--slant-pad)); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; white-space: nowrap; align-items: center; justify-content: center;
  font-family: var(--ff-btn); font-size: 15.3px; line-height: 1.2; text-decoration: none;
  border: 1px solid currentColor; border-radius: var(--radius);
  padding: 17px 37.4px; overflow: hidden; isolation: isolate; cursor: pointer; background: transparent;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn span { position: relative; }
.btn--dark { color: var(--black); }
.btn--dark:hover, .btn--dark:focus-visible { color: var(--beige); border-color: var(--black); }
.btn--dark::before { background: var(--black); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn--submit { font-size: 17px; padding: 17px 42.5px; margin-top: 8px; }
.btn--submit[disabled] { opacity: .5; cursor: wait; }

/* ---------- Intro ---------- */
.intro { display: none; }
.js .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 300;
  background: var(--beige); pointer-events: none;
}
.intro__signet { width: clamp(70px, 9vw, 120px); height: auto; fill: var(--accent); overflow: visible; }

/* ---------- Header (scrollt mit, verschmilzt mit dem Bild) ---------- */
.header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 26px var(--gutter);
  color: var(--beige);
}
.header__nav {
  justify-self: start; display: inline-flex; align-items: center; gap: 14px;
  background: none; border: 0; padding: 8px 0; cursor: pointer; font-family: var(--ff-body); font-size: 16.5px;
}
.burger { display: inline-grid; gap: 7px; width: 26px; }
.burger i { display: block; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.header__nav[aria-expanded="true"] .burger i:first-child { transform: translateY(4.25px) rotate(45deg); }
.header__nav[aria-expanded="true"] .burger i:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.btn--header { justify-self: end; color: var(--beige); font-size: 16.5px; padding: 22px 40px; }
.btn--header:hover, .btn--header:focus-visible { color: var(--black); border-color: var(--beige); }
.btn--header::before { background: var(--beige); }
/* Offenes Menü: Header bleibt oben sichtbar, Farben dunkel */
body.menu-open .header { position: fixed; color: var(--accent); }
body.menu-open .header__nav:hover, body.menu-open .header__logo:hover { color: var(--black); }
body.menu-open .header .logo__schrift { opacity: 0; }
body.menu-open .btn--header { visibility: hidden; }

/* Logo: Signet als Balken (animierbar) + Schriftzug */
.logo { position: relative; display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.logo__signet { width: 24.6%; height: auto; margin-bottom: 8.2%; fill: currentColor; overflow: visible; }
.logo__signet rect { transform-box: fill-box; transform-origin: 50% 50%; }
.logo__schrift { width: 100%; transition: opacity .4s; }
.header__logo { width: clamp(130px, 13.5vw, 205px); }
.footer__logo { width: 210px; color: var(--accent); }

/* ---------- Menü (Vollbild) ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--beige);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 120px var(--gutter) 48px; gap: 40px;
  clip-path: inset(0 0 100% 0);
}
.menu[hidden] { display: none; }
.menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(6px, 1.2vh, 14px); }
.menu__list a {
  display: block; overflow: hidden; text-decoration: none; color: var(--accent);
  font-size: clamp(34px, 6.2vw, 84px); line-height: 1.05;
}
.menu__list a span { display: inline-block; transition: color .3s, transform .5s var(--ease); }
.menu__list a:hover span, .menu__list a:focus-visible span { color: var(--black); transform: translateX(14px); }
.btn--menu { color: var(--accent); }
.btn--menu::before { background: var(--black); }
.btn--menu:hover, .btn--menu:focus-visible { color: var(--beige); border-color: var(--black); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; color: var(--white); background: #1d1b19; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform-origin: 50% 55%; will-change: transform; }
.hero__shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .15); }
.hero__content {
  color: var(--beige); /* gleiches Beige wie das Logo */
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-20%);
  text-align: center; padding: 0 var(--gutter);
}
.hero__title { font-size: clamp(32px, 3.5vw, 44.8px); line-height: 1.1; }
.hero__sub { font-size: clamp(18px, 1.95vw, 25.14px); line-height: 1.18; margin-top: 18px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; width: 1px; height: 56px; transform: translateX(-50%);
  background: rgba(255,255,255,.3); overflow: hidden;
}
.hero__scroll span { position: absolute; left: 0; top: 0; width: 1px; height: 50%; background: var(--white); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(220%); } }

/* ---------- Intro-Text ---------- */
.intro-text { display: grid; grid-template-columns: 1fr; gap: 28px; }
.intro-text .h1 { max-width: 15.5em; }
.intro-text__body { max-width: 30em; }
.intro-text__body .btn { margin-top: 12px; }
@media (min-width: 900px) {
  .intro-text { grid-template-columns: 1.15fr 1fr; column-gap: 7vw; align-items: start; }
  .intro-text__body { padding-top: .5em; }
}

/* ---------- Bild-Reveal ---------- */
.img-reveal { margin: 0; overflow: hidden; border-radius: var(--img-radius); position: relative; background: rgba(0,0,0,.06); }
.img-reveal img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }

/* ---------- Das Projekt ---------- */
.cols { display: grid; gap: 64px; margin-top: clamp(36px, 5vw, 64px); }
.card figure { aspect-ratio: 16 / 9; margin-bottom: 32px; }
.card .h3 { margin-bottom: 24px; max-width: 18em; }
.card p { max-width: 34em; }
@media (min-width: 800px) { .cols { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 80px); } }

/* ---------- Ausstattung ---------- */
.ausst { display: grid; gap: 48px; margin-top: clamp(36px, 5vw, 64px); align-items: center; }
.ausst__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.2vw, 16px); }
.ausst__grid figure { aspect-ratio: 4 / 3; transition: opacity .6s var(--ease); }
.ausst__grid.has-zoom figure:not(.ausst__zoom) { opacity: .25; }
/* Grosses Bild über allen 4 Kacheln */
.ausst__zoom {
  position: absolute; z-index: 2; margin: 0; overflow: hidden; aspect-ratio: auto !important;
  border-radius: var(--img-radius); cursor: zoom-out; box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
.ausst__zoom[hidden] { display: none; }
.ausst__zoom.is-anim { transition: left .85s var(--ease), top .85s var(--ease), width .85s var(--ease), height .85s var(--ease); }
.ausst__zoom img { width: 100%; height: 100%; object-fit: cover; transition: opacity .22s ease; }
@media (min-width: 900px) { .ausst { grid-template-columns: 1.1fr 1fr; column-gap: clamp(40px, 7vw, 110px); } }

.acc { border-top: 1px solid var(--black); }
.acc__item { border-bottom: 1px solid var(--black); }
.acc__item h3 { margin: 0; }
.acc__btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: 0; padding: 26px 0; text-align: left; cursor: pointer;
  font-size: clamp(19px, 1.81vw, 23.14px); line-height: 1.18;
}
.acc__btn:hover { color: var(--accent); }
.acc__icon { position: relative; flex: 0 0 14px; width: 14px; height: 14px; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .45s var(--ease); }
.acc__icon::after { transform: rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: rotate(0deg); }
.acc__btn[aria-expanded="true"] .acc__icon::before { transform: rotate(180deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.acc__panel.is-open { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__inner p { padding: 0 32px 26px 0; opacity: 0; transform: translateY(8px); transition: opacity .4s .1s, transform .5s .1s var(--ease); }
.acc__panel.is-open .acc__inner p { opacity: 1; transform: none; }

/* ---------- Meilensteine ---------- */
.ms { display: grid; gap: 56px; align-items: start; }
.ms__text .h2 { margin-bottom: 28px; }
.ms__text p { max-width: 34em; }
@media (min-width: 900px) { .ms { grid-template-columns: 1.2fr 1fr; column-gap: 8vw; } .timeline { margin-top: .4em; } }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; --dot: 26px; --gap: 52px; }
.timeline__track { position: absolute; left: calc(var(--dot) / 2 - 1.5px); top: calc(var(--dot) / 2); bottom: calc(var(--dot) / 2); width: 3px; }
.timeline__fill { position: absolute; inset: 0; background: var(--black); transform-origin: top; }
.tl { position: relative; z-index: 1; display: flex; align-items: center; gap: 28px; min-height: var(--dot); }
.tl + .tl { margin-top: var(--gap); }
.tl__dot { position: relative; flex: 0 0 var(--dot); height: var(--dot); display: grid; place-items: center; }
.tl__dot::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--black); }
.tl--done .tl__dot::before, .tl--now .tl__dot::before { width: var(--dot); height: var(--dot); background: var(--white); border: 3px solid var(--green); }
.tl--now .tl__dot::before { border-color: var(--orange); }
.tl--now .tl__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--orange); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.tl__label { font-size: 15.3px; }

/* ---------- Kontakt ---------- */
.contact { display: grid; gap: 56px; }
.contact__info .h2 { margin-bottom: 28px; }
.contact__info p { max-width: 30em; }
@media (min-width: 900px) { .contact { grid-template-columns: .85fr 1.15fr; column-gap: 7vw; align-items: start; } .contact__info { position: sticky; top: 120px; } }
.bubbles { display: flex; margin: 32px 0 40px; }
.bubbles img { width: clamp(104px, 10.5vw, 140px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--white); }
.bubbles img + img { margin-left: -14px; }
address { font-style: normal; line-height: 1.3; }
address a, .about__text a, .footer__link { color: var(--accent); text-decoration-color: var(--accent); text-underline-offset: 3px; }
address a:hover, .about__text a:hover, .footer__link:hover { color: var(--black); }

.form { display: grid; gap: 22px; }
.field-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.field-group legend { padding: 0; margin-bottom: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field__cap { font-size: 12.5px; }
.field__title em, .field__cap em { font-style: normal; font-size: 12px; opacity: .75; }
.field__desc { font-size: 13px; margin-top: -2px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--black);
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 9px 12px; min-height: 42px; outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--black); box-shadow: 0 0 0 1px var(--black); background: rgba(255,255,255,.25); }
.field.is-invalid input, .field.is-invalid select { border-color: #A3352B; box-shadow: 0 0 0 1px #A3352B; }
.select { position: relative; display: block; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid var(--black); border-bottom: 1.5px solid var(--black); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select { padding-right: 40px; cursor: pointer; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { color: #A3352B; margin: 0; }
.form[hidden], .form__success[hidden] { display: none; }
/* Nach dem Absenden: Formular weg, Dank schlicht und ohne Rahmen */
.form__success { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; outline: none; max-width: 32em; }
.form__success p + p { margin-top: 1em; }
.form__check { width: 52px; height: 52px; margin-bottom: 24px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.form__check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: check-draw .9s var(--ease) .1s forwards; }
.form__check path { stroke-dasharray: 34; stroke-dashoffset: 34; animation: check-draw .6s var(--ease) .75s forwards; }
@keyframes check-draw { to { stroke-dashoffset: 0; } }
.btn--submit { justify-self: start; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } .btn--submit { justify-self: stretch; } }

/* ---------- Über uns ---------- */
.about { display: grid; gap: 56px; align-items: center; }
.about__img { position: relative; margin: 0; aspect-ratio: 426 / 414; }
.about__photo { position: absolute; inset: 0; }
.about__photo img { object-position: 50% 30%; }
.about__signet { position: absolute; left: 0; width: 100%; top: 57.25%; height: 50.24%; fill: var(--white); pointer-events: none; shape-rendering: crispEdges; }
.about__text .h2 { margin-bottom: 28px; }
.about__text p { max-width: 34em; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; column-gap: 8vw; } }

/* ---------- Footer ---------- */
.footer {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px;
  padding: calc(var(--slant) + 110px) var(--gutter) calc(120px + env(safe-area-inset-bottom));
  margin-top: clamp(40px, 6vw, 90px);
  /* Gegenläufige Schräge wie im Original */
  clip-path: polygon(0 0, 100% var(--slant), 100% 100%, 0 100%);
}

/* ---------- Pfeil nach oben ---------- */
.totop {
  position: fixed; right: var(--gutter); bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 85;
  width: 54px; height: 54px; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  background: var(--beige); color: var(--accent); display: grid; place-items: center;
  box-shadow: 0 8px 26px rgba(0,0,0,.16);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.85);
  transition: opacity .5s var(--ease), transform .6s var(--ease), visibility .5s, background-color .3s, color .3s;
}
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.totop:hover, .totop:focus-visible { background: var(--accent); color: var(--beige); }
.totop__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 1.5; }
.totop__ring circle { stroke: currentColor; opacity: .2; }
.totop__ring .totop__progress { opacity: 1; stroke-dasharray: 154; stroke-dashoffset: 154; }
.totop__arrow { width: 14px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.totop:hover .totop__arrow { animation: hop .7s var(--ease); }
@keyframes hop { 0% { transform: translateY(0); } 40% { transform: translateY(-5px); } 100% { transform: translateY(0); } }
body.menu-open .totop { opacity: 0; visibility: hidden; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .intro { display: none; }
}

/* ---------- Handy ---------- */
/* Mobiler Anmelde-Knopf unten (erscheint nach dem Hero) */
.cta-mobile { display: none; }
@media (max-width: 760px) {
  .header__nav-label { display: none; }
  .btn--header { display: none; }
  .cta-mobile {
    display: flex; position: fixed; z-index: 80; left: var(--gutter); right: calc(var(--gutter) + 66px);
    bottom: calc(14px + env(safe-area-inset-bottom)); background: var(--beige); padding: 16px 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,.18);
    transform: translateY(calc(100% + 40px)); transition: transform .6s var(--ease), color .45s var(--ease);
  }
  .cta-mobile.is-visible { transform: none; }
  body.menu-open .cta-mobile { transform: translateY(calc(100% + 40px)); }
  .header { padding: 16px var(--gutter); }
  .header__logo { width: 112px; }
  .totop { width: 50px; height: 50px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .hero__content { top: 0; bottom: 0; transform: none; display: flex; flex-direction: column; justify-content: center; padding-top: 64px; padding-bottom: 72px; }   /* Handy: Titel genau mittig zwischen Logo und Tag/Nacht-Schalter */
  .acc__btn { padding: 22px 0; }
  .timeline { --gap: 40px; }
  .footer__logo { width: 170px; }
}

/* ---------- Lage-Karte ---------- */
.lage { display: grid; gap: 36px; margin-top: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .lage { grid-template-columns: 1.55fr 1fr; column-gap: clamp(40px, 6vw, 90px); } }
.lage__map { position: relative; background: var(--beige); border-radius: var(--img-radius); overflow: hidden; }
.lage__map svg { display: block; width: 100%; height: auto; }
.lage__seen path { fill: rgba(255, 255, 255, .78); }
.lage__route { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; opacity: .5; transition: opacity .35s, stroke-width .35s; }
.lage__route.is-active { opacity: 1; stroke-width: 3.5; }
.lage__dot { fill: var(--white); stroke: var(--accent); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; transition: transform .35s var(--ease); cursor: pointer; }
.lage__dot.is-active { transform: scale(1.5); fill: var(--accent); }
.lage__kern { fill: var(--accent); }
.lage__puls { fill: none; stroke: var(--accent); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: lagepuls 2.6s var(--ease) infinite; }
@keyframes lagepuls { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.lage__label, .lage__see { position: absolute; pointer-events: none; white-space: nowrap; font-size: 12.5px; line-height: 1.2; transition: opacity .3s, color .3s; }
.lage__label { color: var(--black); }
.lage__label--r { transform: translate(12px, -50%); }
.lage__label--l { transform: translate(calc(-100% - 12px), -50%); }
.lage__label--b { transform: translate(-50%, 12px); }
.lage__label--home { transform: translate(-50%, calc(-100% - 22px)); font-family: var(--ff-head); font-size: clamp(13px, 1.3vw, 17px); color: var(--accent); letter-spacing: -.01em; }
.lage__label.is-active { color: var(--accent); font-weight: 600; }
/* Nahe Ziele (eng beieinander) nur beim Antippen beschriften */
.lage__label[data-ziel="ziegelbruecke"], .lage__label[data-ziel="weesen"] { opacity: 0; }
.lage__label[data-ziel="ziegelbruecke"].is-active, .lage__label[data-ziel="weesen"].is-active { opacity: 1; background: var(--beige); padding: 2px 6px; border-radius: 4px; }
.lage__see { transform: translate(-50%, -50%); font-family: var(--ff-head); font-size: clamp(11px, 1.05vw, 14px); color: rgba(128, 100, 63, .65); letter-spacing: .04em; }
.lage__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(0, 0, 0, .15); }
.lage__item {
  width: 100%; display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: baseline;
  background: none; border: 0; border-bottom: 1px solid rgba(0, 0, 0, .15); padding: 15px 0; text-align: left; cursor: pointer;
  font-family: var(--ff-body); font-size: 15.3px; transition: color .3s, padding .4s var(--ease);
}
.lage__item:hover, .lage__item:focus-visible, .lage__item.is-active { color: var(--accent); padding-left: 8px; }
.lage__ort { font-weight: 500; }
.lage__zeit { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 14px; }
.lage__mode { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(0, 0, 0, .5); margin-right: 4px; }
.lage__note { font-size: 12.5px; color: rgba(0, 0, 0, .55); margin-top: 14px; }
@media (max-width: 520px) {
  .lage__item { grid-template-columns: 1fr auto; gap: 4px 14px; }
  .lage__ort { grid-column: 1 / -1; }
  .lage__label { font-size: 11px; }
}
/* Ziele ausserhalb des Ausschnitts: Pfeil am Kartenrand */
.lage__label--aussen-l, .lage__label--aussen-r {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); font-weight: 500; color: var(--accent);
}
.lage__label--aussen-l { transform: translate(0, -50%); }
.lage__label--aussen-r { transform: translate(-100%, -50%); }
.lage__label--aussen-l.is-active, .lage__label--aussen-r.is-active { background: var(--accent); color: var(--white); }
.lage__pfeil { display: inline-block; font-style: normal; line-height: 1; }
.lage__label--home { background: rgba(226, 218, 199, .9); padding: 2px 8px; border-radius: 4px; }

/* ---------- Split-Screen «Das Projekt» ---------- */
.split { margin-top: clamp(36px, 5vw, 64px); }
.split__media { display: none; }
.split__mobile { aspect-ratio: 16 / 9; margin-bottom: 28px; }
.split__block + .split__block { margin-top: 64px; }
.split__block .h3 { margin-bottom: 22px; max-width: 18em; }
.split__block p { max-width: 34em; }
@media (min-width: 900px) {
  .split { display: grid; grid-template-columns: 1.15fr 1fr; column-gap: clamp(40px, 6vw, 96px); }
  .split__media { display: block; }
  .split__sticky { position: sticky; top: 14vh; height: 72vh; border-radius: var(--img-radius); overflow: hidden; }
  .split__img { position: absolute; inset: 0; margin: 0; clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease); }
  .split__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease); }
  .split__img.is-active { clip-path: inset(0 0 0 0); z-index: 1; }
  .split__img.is-active img { transform: scale(1); }
  .split__img[data-split-img="0"] { clip-path: inset(0 0 0 0); }
  .split__dots { position: absolute; z-index: 2; left: 20px; bottom: 18px; display: flex; gap: 8px; }
  .split__dots i { width: 22px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.5); transition: background .4s, width .4s var(--ease); }
  .split__dots i.is-active { background: var(--white); width: 40px; }
  .split__mobile { display: none; }
  .split__block { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; }
  .split__block + .split__block { margin-top: 0; }
}

/* ---------- Fokus-Text ---------- */
.focus-text .fw { display: inline; transition: opacity .2s; }

/* ---------- Abschnitts-Navigation ---------- */
.secnav { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 70; display: flex; flex-direction: column; gap: 14px; }
.secnav a { position: relative; display: block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--accent); background: transparent; transition: background .3s, transform .4s var(--ease), border-color .3s; }
.secnav a.is-active { background: var(--accent); transform: scale(1.25); }
.secnav a:hover { transform: scale(1.35); }
.secnav span {
  position: absolute; right: 22px; top: 50%; transform: translate(8px, -50%); opacity: 0; pointer-events: none; white-space: nowrap;
  font-size: 12.5px; background: var(--white); color: var(--black); padding: 5px 10px; border-radius: 999px; box-shadow: 0 4px 18px rgba(0,0,0,.12);
  transition: opacity .3s, transform .4s var(--ease);
}
.secnav a:hover span, .secnav a:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.secnav.is-hell a { border-color: var(--beige); }
.secnav.is-hell a.is-active { background: var(--beige); }
.secnav.is-weg { opacity: 0; pointer-events: none; }
.secnav { transition: opacity .4s; }
body.menu-open .secnav { opacity: 0; pointer-events: none; }
@media (max-width: 900px) { .secnav { display: none; } }

/* ---------- Hotspots im grossen Ausstattungsbild ---------- */
.ausst__grid figure:not(.ausst__zoom) { cursor: zoom-in; }
:is(.ausst__zoom, .hs-host) .hs { position: absolute; z-index: 3; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(226, 218, 199, .95); color: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,.25);
  display: grid; place-items: center; opacity: 0; transform: scale(.4); transition: opacity .4s, transform .5s var(--ease), background .3s, color .3s; }
.ausst__zoom.zeigt-hs .hs, .hs-host.zeigt-hs .hs { opacity: 1; transform: scale(1); }
:is(.ausst__zoom, .hs-host) .hs::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(226, 218, 199, .9); animation: hspuls 2.4s var(--ease) infinite; }
@keyframes hspuls { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
:is(.ausst__zoom, .hs-host) .hs i { font-style: normal; font-size: 18px; line-height: 1; transition: transform .4s var(--ease); }
:is(.ausst__zoom, .hs-host) .hs:hover, :is(.ausst__zoom, .hs-host) .hs.is-open, :is(.ausst__zoom, .hs-host) .hs:focus-visible { background: var(--accent); color: var(--beige); }
:is(.ausst__zoom, .hs-host) .hs.is-open i { transform: rotate(45deg); }
:is(.ausst__zoom, .hs-host) .hs__tip { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translate(-50%, 6px); width: max-content; max-width: 220px;
  background: var(--white); color: var(--black); font-size: 13.5px; line-height: 1.35; text-align: left; padding: 9px 12px; border-radius: 8px;
  box-shadow: 0 8px 26px rgba(0,0,0,.18); opacity: 0; pointer-events: none; transition: opacity .3s, transform .35s var(--ease); white-space: normal; }
:is(.ausst__zoom, .hs-host) .hs:hover .hs__tip, :is(.ausst__zoom, .hs-host) .hs.is-open .hs__tip, :is(.ausst__zoom, .hs-host) .hs:focus-visible .hs__tip { opacity: 1; transform: translate(-50%, 0); }
:is(.ausst__zoom, .hs-host) .hs--unten .hs__tip { bottom: auto; top: calc(100% + 12px); }

/* ---------- Formular in 2 Schritten ---------- */
.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.steps__bar { width: 34px; height: 3px; border-radius: 2px; background: rgba(0,0,0,.15); transition: background .4s, width .5s var(--ease); }
.steps__bar.is-active { background: var(--accent); width: 54px; }
.steps__txt { font-size: 12.5px; color: rgba(0,0,0,.55); margin-left: 6px; }
.form__step { display: grid; gap: 22px; }
.form__step[hidden] { display: none; }
.tiles__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
@media (max-width: 560px) { .tiles__grid { grid-template-columns: 1fr 1fr; } }
.tile, .chip { position: relative; cursor: pointer; }
.tile input, .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile { display: grid; place-items: center; gap: 2px; padding: 22px 8px 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.18);
  transition: border-color .3s, background .3s, transform .4s var(--ease), box-shadow .3s; }
.tile__zahl { font-family: var(--ff-head); font-size: clamp(28px, 2.6vw, 36px); line-height: 1; letter-spacing: -.02em; }
.tile__txt { font-size: 12px; letter-spacing: .08em; color: rgba(0,0,0,.6); }
.tile:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.08); border-color: var(--accent); }
.tile:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--beige); transform: translateY(-3px); }
.tile:has(input:checked) .tile__txt { color: var(--beige); }
.tile:has(input:focus-visible), .chip:has(input:focus-visible) { outline: 2px solid var(--black); outline-offset: 3px; }
.chips__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; transition: background .3s, color .3s, border-color .3s; }
.chip:hover span { border-color: var(--accent); color: var(--accent); }
.chip:has(input:checked) span { background: var(--accent); border-color: var(--accent); color: var(--beige); } /* gleiche Farbe wie die gewählte Wohnungs-Kachel */
.tiles.is-invalid .tile { border-color: #A3352B; }
.form__aktionen { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.linkbtn-zurueck { background: none; border: 0; padding: 8px 0; cursor: pointer; font: inherit; color: rgba(0,0,0,.65); }
.linkbtn-zurueck:hover { color: var(--accent); }
@media (max-width: 520px) { .form__aktionen { flex-direction: column-reverse; align-items: stretch; } .form__aktionen .btn--submit { width: 100%; } }

/* ---------- Tag/Nacht im Startbild ---------- */
.hero__tag { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform-origin: 50% 55%; will-change: transform, clip-path; clip-path: circle(0% at var(--dn-x, 15%) var(--dn-y, 88%)); transition: clip-path 1.4s cubic-bezier(.65, 0, .35, 1); }
.hero.is-tag .hero__tag { clip-path: circle(150% at var(--dn-x, 15%) var(--dn-y, 88%)); }
.hero.is-tag .hero__shade { background: linear-gradient(180deg, rgba(0,0,0,.32) 0%, rgba(0,0,0,.12) 30%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.08) 100%); }
.hero__shade { transition: background .8s; }
.daynight { position: absolute; z-index: 5; left: var(--gutter); bottom: 30px; display: inline-flex; padding: 4px; border-radius: 999px;
  background: rgba(20, 18, 16, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(226, 218, 199, .35); }
.daynight[hidden] { display: none; }
.daynight button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer;
  padding: 10px 18px; border-radius: 999px; color: var(--beige); font-family: var(--ff-body); font-size: 14.5px; transition: color .4s; }
.daynight button[aria-pressed="true"] { color: var(--black); }
.daynight svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.daynight button[data-modus="nacht"] svg { fill: currentColor; stroke: none; }
.daynight__thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: var(--dn-w, 50%); border-radius: 999px; background: var(--beige);
  transform: translateX(var(--dn-tx, 0)); transition: transform .6s var(--ease), width .6s var(--ease); }
.daynight.is-hinweis { animation: dnhinweis 1.6s var(--ease) 2; }
@keyframes dnhinweis { 0%, 100% { box-shadow: 0 0 0 0 rgba(226, 218, 199, .0); } 50% { box-shadow: 0 0 0 10px rgba(226, 218, 199, .25); } }
@media (max-width: 760px) { .daynight { bottom: 22px; } .daynight button { padding: 9px 14px; font-size: 13.5px; } .hero__scroll { display: none; } }
/* Dämmerung: kurz nach dem Laden wird das Bild dunkler, als gingen die Lichter an */
.hero__media img.ist-daemmerung { filter: brightness(1.32) saturate(.72) contrast(.9) sepia(.12); }
.hero__media img.wird-nacht { transition: filter 3.2s cubic-bezier(.45, 0, .25, 1); filter: none; }

/* ---------- Abwechselnde Abschnittsfarben: Anpassungen an den neuen Hintergrund ---------- */
/* Team-Foto auf Beige: die Signet-Balken in Beige, damit sie mit dem Hintergrund verschmelzen */
.sec--beige .about__signet { fill: var(--beige); }
/* Karte auf Beige: feiner Rahmen, damit die angeschnittenen Seen sauber begrenzt sind */
.sec--beige .lage__map { border: 1px solid rgba(128, 100, 63, .2); }
.sec--beige .lage__seen path { fill: #fff; }
/* Footer in Weiss, ohne Schräge (die Schräge kommt vom beigen Abschnitt darüber) */
.footer--weiss { clip-path: none; margin-top: 0; padding-top: clamp(90px, 9vw, 130px); }
/* Kontakt auf Weiss: weisser Clubhouse-Kreis braucht eine feine Kontur */
.sec--white .bubbles img { box-shadow: 0 0 0 1px rgba(128, 100, 63, .22); }

.chips__row + .linkbtn-zurueck, [data-step="2"] .linkbtn-zurueck { justify-self: start; }

/* ---------- Anmelde-Knopf: Glas-Pille mit Text-Roll, Pfeil und Live-Punkt ---------- */
.cta {
  position: relative; display: inline-flex; align-items: center; gap: 12px; overflow: hidden; isolation: isolate;
  padding: 15px 22px 15px 20px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font-family: var(--ff-body); font-size: 15.5px; line-height: 1;
  color: var(--beige); background: rgba(20, 18, 16, .22);
  border: 1px solid rgba(226, 218, 199, .55);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
  transition: color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease), box-shadow .5s;
}
/* Füllung wächst von links herein */
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--beige); border-radius: inherit; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.cta:hover::before, .cta:focus-visible::before { transform: scaleX(1); }
.cta:hover, .cta:focus-visible { color: var(--black); border-color: var(--beige); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.cta:active { transform: scale(.97); }
/* Live-Punkt */
.cta__dot { position: relative; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--beige); box-shadow: 0 0 8px rgba(226, 218, 199, .9); transition: background .5s, box-shadow .5s; }
.cta__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--beige); animation: ctapuls 2s var(--ease) infinite; }
/* Beim Drüberfahren ist der Knopf beige gefüllt: Punkt wird braun, damit er sichtbar bleibt */
.cta:hover .cta__dot, .cta:focus-visible .cta__dot { background: var(--accent); box-shadow: none; }
.cta:hover .cta__dot::after, .cta:focus-visible .cta__dot::after { border-color: var(--accent); }
@keyframes ctapuls { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
/* Text rollt beim Drüberfahren nach oben weg und kommt von unten neu */
.cta__roll { position: relative; display: block; overflow: hidden; height: 1.15em; }
.cta__roll > span { display: block; line-height: 1.15em; transition: transform .55s var(--ease); }
.cta:hover .cta__roll > span, .cta:focus-visible .cta__roll > span { transform: translateY(-100%); }
.cta__pfeil { width: 18px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.cta:hover .cta__pfeil, .cta:focus-visible .cta__pfeil { transform: translateX(4px); }
/* Header-Variante übersteuert die alten Knopf-Stile */
.header .cta.btn--header { padding: 15px 22px 15px 20px; color: var(--beige); }
.header .cta.btn--header:hover, .header .cta.btn--header:focus-visible { color: var(--black); }
/* Helle Variante fürs Handy unten (liegt über hellen Abschnitten) */
.cta--hell { color: var(--black); background: rgba(226, 218, 199, .82); border-color: rgba(128, 100, 63, .35); box-shadow: 0 10px 30px rgba(0, 0, 0, .16); justify-content: center; }
.cta--hell::before { background: var(--accent); }
.cta--hell:hover, .cta--hell:focus-visible { color: var(--beige); border-color: var(--accent); }
.cta--hell .cta__dot { background: var(--accent); box-shadow: 0 0 6px rgba(128, 100, 63, .5); }
.cta--hell .cta__dot::after { border-color: var(--accent); }
.cta--hell:hover .cta__dot, .cta--hell:focus-visible .cta__dot { background: var(--beige); }
.cta--hell:hover .cta__dot::after, .cta--hell:focus-visible .cta__dot::after { border-color: var(--beige); }
@media (max-width: 760px) { .cta-mobile.cta { padding: 16px 20px; font-size: 15px; } }

/* ---------- Ausstattung als Split: Bild rechts, Hotspots direkt im Bild ---------- */
.split__mobile.hs-host { position: relative; } /* die stehenden Bilder bleiben absolut übereinander */
@media (min-width: 900px) {
  .split--rechts { grid-template-columns: 1fr 1.15fr; }
  .split__img .hs { pointer-events: none; }
  .split__img.zeigt-hs .hs { pointer-events: auto; }
}
.split__mobile + .split__mobile { margin-top: -16px; }
/* Am Handy sitzt der Anmelde-Knopf nur unten, nicht oben im Startbild */
@media (max-width: 760px) { .header .cta.btn--header { display: none; } }
/* Ausstattung: flacheres Bild (Querformat 4:3), vertikal mittig, Texte etwas kompakter */
@media (min-width: 900px) {
  .split--flach { grid-template-columns: 1.15fr 1fr; align-items: stretch; } /* Bildspalte über die volle Höhe, damit das Bild stehen bleibt */
  .split--flach .split__sticky { height: auto; aspect-ratio: 4 / 3; max-height: 62vh; top: 19vh; }
  .split--flach .split__block { min-height: 60vh; }
}
/* Handy-Knopf nur am Handy (die Glas-Gestaltung darf das Ausblenden am Computer nicht überschreiben) */
.cta.cta-mobile { display: none; }
@media (max-width: 760px) { .cta.cta-mobile { display: inline-flex; position: fixed; } } /* klebt unten am Bildschirm */
/* Handy-Knopf: etwas kompakter, damit der ganze Text Platz hat */
@media (max-width: 760px) { .cta.cta-mobile { font-size: 14px; padding: 15px 16px; gap: 10px; } }

/* ---------- Über uns: Team-Raster wie auf clubhouse.ag ---------- */
.about--raster { display: grid; gap: 24px 8vw; align-items: start; margin-bottom: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) { .about--raster { grid-template-columns: 1fr 1.6fr; } .about--raster .about__text { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; } .about--raster .about__text p { margin: 0; } }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1vw, 14px); }
@media (max-width: 760px) { .team { grid-template-columns: 1fr 1fr; } }
.team__karte { position: relative; margin: 0; aspect-ratio: 5 / 6; overflow: hidden; border-radius: var(--img-radius); background: rgba(0,0,0,.06); }
.team__karte img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.team__karte:hover img { transform: scale(1.04); }
.team__name {
  position: absolute; left: 12%; right: 12%; bottom: 7%; padding: 18px 12px; border-radius: 10px; text-align: center;
  background: rgba(226, 218, 199, .94); color: var(--black); font-size: clamp(13px, 1.1vw, 15.5px);
  transition: transform .6s var(--ease), background .4s;
}
.team__karte:hover .team__name { transform: translateY(-6px); background: var(--beige); }
@media (max-width: 760px) { .team__name { left: 8%; right: 8%; padding: 11px 8px; font-size: 12.5px; } }

/* ---------- Intro: ganzes Logo (Signet + Schriftzug) ---------- */
.intro__logo { display: flex; flex-direction: column; align-items: center; width: clamp(220px, 26vw, 360px); }
.intro__logo .intro__signet { width: 24.6%; margin-bottom: 8.2%; }
.intro__schrift { width: 100%; height: auto; }

/* ---------- Tag/Nacht: weichere Überblendung ----------
   Statt eines harten Kreises wächst ein weich auslaufender Lichtkreis vom Knopf aus über das Bild. */
@property --dn-r { syntax: '<percentage>'; inherits: false; initial-value: -30%; }
.hero__tag {
  clip-path: none !important;
  --dn-r: -30%;
  -webkit-mask-image: radial-gradient(circle at var(--dn-x, 15%) var(--dn-y, 88%), #000 var(--dn-r), transparent calc(var(--dn-r) + 30%));
          mask-image: radial-gradient(circle at var(--dn-x, 15%) var(--dn-y, 88%), #000 var(--dn-r), transparent calc(var(--dn-r) + 30%));
  opacity: 0;
  transition: --dn-r 2.4s cubic-bezier(.45, 0, .2, 1), opacity 1.2s ease;
}
.hero.is-tag .hero__tag { --dn-r: 130%; opacity: 1; transition: --dn-r 2.4s cubic-bezier(.45, 0, .2, 1), opacity .9s ease; }
.hero__shade { transition: background 1.8s ease; }
.daynight__thumb { transition: transform .8s cubic-bezier(.45, 0, .2, 1), width .8s cubic-bezier(.45, 0, .2, 1); }

/* ---------- Meilensteine: Grafik so hoch wie der Textblock ---------- */
@media (min-width: 900px) {
  .ms { align-items: stretch; }
  .ms .timeline { margin-top: 0; display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; padding: .35em 0 .2em; }
  .ms .timeline .tl + .tl { margin-top: 0; }
  .ms .timeline__track { top: calc(.35em + var(--dot) / 2); bottom: calc(.2em + var(--dot) / 2); }
}

/* ---------- Über uns als Split: Porträt links, Namen rechts ---------- */
.team--handy { display: grid; }
.split--team .team__liste { display: none; }
.split--team { margin-top: 0; }
.team__intro p { max-width: 34em; }
.team__intro .h2 { margin-bottom: 28px; }
@media (min-width: 900px) {
  .team--handy { display: none; }
  .split--team { grid-template-columns: 1fr 1.1fr; }
  .split--team .split__sticky { height: auto; aspect-ratio: 5 / 6; max-height: 76vh; top: 12vh; }
  .split--team .split__img img { object-position: 50% 20%; }
  .split--team .team__intro { margin-bottom: 12vh; }
  .split--team .team__liste { display: block; border-top: 1px solid rgba(0, 0, 0, .14); }
  .team__step {
    width: 100%; min-height: 22vh; display: flex; align-items: center; gap: 22px; text-align: left; cursor: pointer;
    background: none; border: 0; border-bottom: 1px solid rgba(0, 0, 0, .14); padding: 0; font: inherit; color: inherit;
  }
  .team__nr { font-size: 13px; color: rgba(0, 0, 0, .4); min-width: 2em; font-variant-numeric: tabular-nums; transition: color .5s; }
  .team__step-name { font-family: var(--ff-head); font-size: clamp(26px, 2.7vw, 42px); letter-spacing: -.02em; line-height: 1.1;
    color: rgba(0, 0, 0, .24); transition: color .5s var(--ease), transform .6s var(--ease); }
  .team__step:hover .team__step-name { color: rgba(0, 0, 0, .5); }
  .team__step.is-active .team__step-name { color: var(--accent); transform: translateX(10px); }
  .team__step.is-active .team__nr { color: var(--accent); }
}
/* Footer: mehr Luft nach dem Logo und bis zum Seitenende */
.footer--weiss { gap: 46px; padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
@media (max-width: 760px) { .footer--weiss { gap: 36px; padding-bottom: calc(130px + env(safe-area-inset-bottom)); } }

/* ---------- Schrägen wie auf clubhouse.ag: Richtung wechselt bei jedem Übergang ----------
   Beige → Weiss (Unterkante beige): links tief, rechts hoch.
   Weiss → Beige (Oberkante beige):  links hoch, rechts tief. */
.sec--cut-both { clip-path: polygon(0 0, 100% var(--slant), 100% calc(100% - var(--slant)), 0 100%); }

/* ---------- Einheitliche Schriftskala (überall gleich) ----------
   H1: Einleitungs-Satz · H2: alle Abschnittstitel · H3: Unterüberschriften, Raum- und Personennamen · Text: Fliesstext */
:root {
  --fs-h1: clamp(30px, 3.35vw, 42.8px);
  --fs-h2: clamp(29px, 3.15vw, 40.35px);
  --fs-h3: clamp(20px, 1.81vw, 23.14px);
  --fs-text: 15.3px;
}
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
body, p, .lead, .form__success, .field input, .field select, .field textarea, .lage__item, .tl__label, .chip span, .footer__link { font-size: var(--fs-text); }
.lead { line-height: 1.3; }
.form__success { line-height: 1.45; }
/* Team-Namen und Wohnungs-Zahlen in H3-Grösse */
.team__step-name { font-size: var(--fs-h3) !important; }
.tile__zahl { font-size: var(--fs-h3); }
@media (min-width: 900px) { .team__step { min-height: 15vh; } }
/* Formularfelder am Handy 16 px, damit iPhones beim Antippen nicht hineinzoomen */
@media (max-width: 760px) { .field input, .field select, .field textarea { font-size: 16px; } }

/* ---------- Über uns exakt wie die Ausstattung ---------- */
.team-split .split__img img { object-position: 50% 22%; }
.team-split .team__bild--gruppe img { object-position: 50% 40%; }
.team-split .team__intro { margin-bottom: 0; }
.team-split .team__intro p { max-width: 34em; }
@media (max-width: 899px) { .team-split .team__person { display: none; } }   /* Handy: Raster mit Namensschildern */
@media (min-width: 900px) { .team-split .team__intro .h2 { margin-bottom: 28px; } }
/* Textblöcke so hoch wie der Bildschirm-Mittelbereich, Inhalt vertikal mittig */
@media (min-width: 900px) { .split--flach .split__block { min-height: 64vh; justify-content: center; } }
/* Büro am Schluss mit Anmelde-Knopf */
.team__buero p { margin: 0 0 26px; }
.team__buero .btn { align-self: flex-start; }
.team__cta-handy { display: none; }
@media (max-width: 899px) {
  .team-split .team__buero { display: none; }
  .team__cta-handy { display: flex; justify-content: center; margin-top: 28px; }
  .team__cta-handy .btn { width: 100%; }
}
/* Anmelde-Knopf ohne pulsierenden Punkt */
.cta__dot { display: none !important; }
.cta { padding-left: 22px; }

/* Team: Sitzungszimmer zum Einstieg, Tür zum Büro am Schluss */
.team-split .split__img img[src*="team-buero"] { object-position: 50% 35%; }
.team-split .split__img img[src*="team-tuer"], .team__karte img[src*="team-tuer"] { object-position: 50% 45%; }
.team__gruppe-handy img { object-position: 50% 30%; }

/* Team: alle Bilder quadratisch */
@media (min-width: 900px) {
  .team-split .split__sticky { aspect-ratio: 1 / 1; width: min(100%, 62vh); max-height: none; margin-left: auto; }
}
.team__karte, .team-split .team__gruppe-handy { aspect-ratio: 1 / 1; }

/* Team: Originalformat 4:5 statt Quadrat, Bilder genau passend zugeschnitten */
@media (min-width: 900px) {
  .team-split .split__sticky { aspect-ratio: 4 / 5; width: min(100%, 62vh * .8); }
}
.team__karte, .team-split .team__gruppe-handy { aspect-ratio: 4 / 5; }
.team-split .split__img img, .team__karte img, .team__gruppe-handy img { object-position: 50% 50% !important; }

/* Team-Slides: gleicher Rahmen wie «Das Projekt» (volle Spaltenbreite, 72vh hoch) */
@media (min-width: 900px) {
  .team-split .split__sticky { aspect-ratio: auto; width: 100%; height: 72vh; max-height: none; margin-left: 0; top: 14vh; }
}

/* Split-Bildwechsel: neues Bild gleitet über das stehende alte, nichts blitzt durch */
@media (min-width: 900px) {
  .split__img[data-split-img="0"] { clip-path: inset(100% 0 0 0); }
  .split__img.is-active, .split__img[data-split-img="0"].is-active { clip-path: inset(0 0 0 0); z-index: 2; }
  .split__img.war-aktiv { clip-path: inset(0 0 0 0); z-index: 1; transition: none; }
  .split__img.war-aktiv img { transform: scale(1); transition: none; }
}

/* Team-Slides: Breite wie «Das Projekt», Höhe passend zum Bildformat 4:5 */
@media (min-width: 900px) {
  .team-split .split__sticky { height: auto; aspect-ratio: 4 / 5; max-height: calc(100vh - 110px); }
}

/* Team: Texte scrollen normal mit wie bei «Das Projekt»; jeder Name steht in der Mitte seines Blocks */
@media (min-width: 900px) {
  .team-split .split__block { display: flex; flex-direction: column; justify-content: center; min-height: 60vh; }
  .team-split .team__buero .btn { align-self: flex-start; }
}

/* Team: quadratisch, Gesichter mittig zugeschnitten (Breite wie «Das Projekt») */
@media (min-width: 900px) {
  .team-split .split__sticky { aspect-ratio: 1 / 1; height: auto; width: 100%; }
}
.team__karte, .team-split .team__gruppe-handy { aspect-ratio: 1 / 1; }

/* Lage-Karte mit mehr Kontrast: Land weiss, Seen braun, Strassen, Bahn und Orte */
.lage__map, .sec--beige .lage__map { background: #fff; border: 1px solid rgba(128, 100, 63, .25); }
.lage__seen path, .sec--beige .lage__seen path { fill: #B9A07A; }
.lage__weg { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lage__weg--neben { stroke: #E4E0D8; stroke-width: 1; }
.lage__weg--haupt { stroke: #D2CCC0; stroke-width: 1.6; }
.lage__weg--autobahn { stroke: #C8B48F; stroke-width: 2.6; }
.lage__bahn { fill: none; stroke: #9C968C; stroke-width: 1; stroke-dasharray: 4 3; }
.lage__orte circle { fill: #fff; stroke: #8C8478; stroke-width: 1.2; }
.lage__dorf { position: absolute; pointer-events: none; white-space: nowrap; transform: translate(6px, -50%); font-size: 11.5px; line-height: 1; color: rgba(0, 0, 0, .62); }
.lage__dorf--klein { font-size: 10px; color: rgba(0, 0, 0, .45); }
.lage__see { color: #fff; }
.lage__route { opacity: .75; }
@media (max-width: 899px) { .lage__dorf--klein { display: none; } .lage__dorf { font-size: 9.5px; } }

/* Lage: Themen-Knöpfe, die Angaben daneben wechseln */
.lage__themen { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.lage__thema { font: inherit; font-size: 13px; line-height: 1; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(128, 100, 63, .35); background: transparent; color: var(--black); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.lage__thema:hover { border-color: var(--accent); color: var(--accent); }
.lage__thema.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.lage__inhalte { display: grid; }   /* alle Inhalte liegen übereinander: kein Springen beim Umschalten */
.lage__inhalt { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
.lage__inhalt.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease) .05s, transform .45s var(--ease) .05s, visibility 0s; }
.lage__t-titel { margin: 0 0 14px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lage__t-zeit { margin: 0 0 16px; font-family: var(--ff-head); font-size: clamp(40px, 4.4vw, 60px); line-height: 1; color: var(--black); letter-spacing: -.01em; }
.lage__t-orte { margin: 0; padding-top: 16px; border-top: 1px solid rgba(0, 0, 0, .15); max-width: 26em; }
@media (max-width: 899px) {
  .lage__themen { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 22px; padding: 0 16px 4px; scrollbar-width: none; }
  .lage__themen::-webkit-scrollbar { display: none; }
  .lage__thema { flex: 0 0 auto; }
}
.lage__themen { position: relative; }
.lage > *, .lage__panel, .lage__inhalte { min-width: 0; }   /* lange Knopfleiste darf die Seite nicht verbreitern */
@media (max-width: 899px) { .lage__dorf[data-ort="Niederurnen"] { transform: translate(-50%, 5px); } }

/* Lage: Themen als Listen im Stil der Fahrzeiten */
.lage__zeile { display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(0, 0, 0, .15); }
.lage__zeile .lage__zeit { font-size: 14px; }
.lage__wo { grid-column: 1 / -1; font-size: 13.5px; color: rgba(0, 0, 0, .6); }

/* Karte wieder beige, Seen weiss; Strassen und Orte in zarten Brauntönen */
.lage__map, .sec--beige .lage__map { background: var(--beige); border: 1px solid rgba(128, 100, 63, .25); }
.lage__seen path, .sec--beige .lage__seen path { fill: #fff; }
.lage__weg--neben { stroke: rgba(128, 100, 63, .16); stroke-width: 1; }
.lage__weg--haupt { stroke: rgba(128, 100, 63, .3); stroke-width: 1.6; }
.lage__weg--autobahn { stroke: rgba(128, 100, 63, .45); stroke-width: 2.6; }
.lage__bahn { stroke: rgba(0, 0, 0, .3); }
.lage__orte circle { fill: var(--beige); stroke: rgba(128, 100, 63, .7); }
.lage__see { color: rgba(128, 100, 63, .75); }
.lage__label--home { background: rgba(255, 255, 255, .85); }
@media (max-width: 899px) { .lage__zeile .lage__ort { grid-column: auto; } }

/* Einheitlich: Auswahl-Knöpfe gleich gerundet wie die Wohnungs-Kacheln */
.tile, .chip span, .lage__thema { border-radius: var(--radius); }

/* Split-Bilder: Wechsel folgt dem Scrollen (Werte kommen aus main.js), keine feste Animation mehr */
@media (min-width: 900px) {
  .split__img, .split__img.is-active, .split__img[data-split-img="0"], .split__img[data-split-img="0"].is-active {
    clip-path: inset(var(--clip, 100%) 0 0 0); transition: none; z-index: auto; will-change: clip-path;
  }
  .split__img[data-split-img="0"] { --clip: 0%; }
  .split__img img, .split__img.is-active img { transform: scale(var(--zoom, 1)); transition: none; will-change: transform; }
}

/* Lage: Linien zu den Zielen nur beim Darüberfahren, sonst bleibt die Karte ruhig */
.lage__route { opacity: 1; stroke-width: 3; stroke-dashoffset: var(--len, 2000); transition: stroke-dashoffset .9s var(--ease), stroke-width .35s; }
.lage__route.is-active { stroke-dashoffset: 0; opacity: 1; stroke-width: 3; }
.lage__label[data-ziel] { cursor: default; }

/* Lage: Beschriftung «Rufihoschet Bilten» dezenter */
.lage__label--home { font-size: clamp(10.5px, .9vw, 12.5px); letter-spacing: .02em; padding: 2px 7px; transform: translate(-50%, calc(-100% - 16px)); }
/* Handy: «Zürich Flughafen» erst beim Antippen zeigen, dann weicht «Zürich HB» */
@media (max-width: 899px) {
  .lage__label[data-ziel="flughafen"] { opacity: 0; }
  .lage__label[data-ziel="flughafen"].is-active { opacity: 1; }
  .lage__map:has(.lage__label[data-ziel="flughafen"].is-active) .lage__label[data-ziel="zuerich"] { opacity: 0; }
}

/* Handy: gleicher Bildwechsel wie am Computer. Das Bild steht oben fest, der Text scrollt darunter durch,
   und das nächste Bild schiebt sich mit dem Scrollen darüber (Werte --clip/--zoom aus main.js) */
@media (max-width: 899px) {
  .split .split__media { display: block; position: sticky; top: 0; z-index: 3; margin: 0 calc(-1 * var(--gutter)) 26px; padding: 12px var(--gutter); background: var(--white); }
  .sec--beige .split .split__media { background: var(--beige); }
  .split .split__sticky { position: relative; top: auto; height: auto; aspect-ratio: 16 / 10; border-radius: var(--img-radius); overflow: hidden; }
  .team-split .split__sticky { aspect-ratio: 4 / 3; }
  .split .split__img { position: absolute; inset: 0; margin: 0; clip-path: inset(var(--clip, 100%) 0 0 0); will-change: clip-path; }
  .split .split__img[data-split-img="0"] { --clip: 0%; }
  .split .split__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1)); will-change: transform; }
  .split .split__dots { position: absolute; z-index: 2; left: 14px; bottom: 12px; display: flex; gap: 6px; }
  .split .split__dots i { width: 16px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.5); transition: background .4s, width .4s var(--ease); }
  .split .split__dots i.is-active { background: var(--white); width: 30px; }
  .split .split__mobile { display: none; }
  .split .split__block { min-height: 46vh; }
  /* Team: Namen und Büro scrollen unter dem Foto durch statt Raster */
  .team-split .team__person, .team-split .team__buero { display: block; }
  .team-split .split__block.team__person { min-height: 38vh; display: flex; align-items: center; }
  .team-split .team__buero { min-height: 50vh; }
  .team--handy, .team__cta-handy { display: none !important; }
}

/* Handy, angeheftet: der Abschnitt füllt den Bildschirm, oben das Bild, darunter die Texte übereinander.
   Was sichtbar ist, steuert main.js (initSplitHandy) über das Scrollen */
@media (max-width: 899px) {
  .split.is-gepinnt { display: flex; flex-direction: column; height: 100vh; height: 100svh; margin-top: 0; padding: 14px 0 96px; box-sizing: border-box; }
  .split.is-gepinnt .split__media { position: relative; top: auto; flex: none; margin: 0 0 22px; padding: 0; background: none; }
  .split.is-gepinnt .split__text { position: relative; flex: 1; min-height: 0; overflow: hidden; }
  .split.is-gepinnt .split__block, .split.is-gepinnt .split__block.team__person, .split.is-gepinnt .team__buero {
    position: absolute; left: 0; right: 0; top: 0; display: block; min-height: 0; margin: 0; opacity: 0; visibility: hidden; will-change: transform, opacity;
  }
  .split.is-gepinnt .split__block + .split__block { margin-top: 0; }
  .split.is-gepinnt .team__person .h3 { margin-top: 6px; }
}
@media (max-width: 899px) { .team-split.is-gepinnt .split__sticky { aspect-ratio: 1 / 1; } }
@media (max-width: 899px) {
  /* angeheftete Folie mit längerem Text: unten weich ausblenden, damit man sieht, dass es weitergeht */
  .split.is-gepinnt .split__text { -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent); }
}
/* Handy, angeheftet: das Bild füllt den freien Platz, der Text bekommt genau seine Höhe (aus main.js) */
@media (max-width: 899px) {
  .split.is-gepinnt { padding-bottom: 88px; }
  .split.is-gepinnt .split__media { flex: 1 1 auto; min-height: 180px; margin-bottom: 20px; }
  .split.is-gepinnt .split__sticky, .team-split.is-gepinnt .split__sticky { height: 100%; aspect-ratio: auto; }
  .split.is-gepinnt .split__text { flex: none; }
}
/* Handy, angeheftet: Bilder in festem Format (Projekt/Ausstattung quer, Team quadratisch), Text füllt den Rest */
@media (max-width: 899px) {
  .split.is-gepinnt .split__media { flex: none; min-height: 0; }
  .split.is-gepinnt .split__sticky { height: auto; aspect-ratio: 16 / 10; }
  .team-split.is-gepinnt .split__sticky { height: auto; aspect-ratio: 1 / 1; }
  .split.is-gepinnt .split__text { flex: 1 1 auto; min-height: 0; -webkit-mask-image: none; mask-image: none; }
  .split.is-gepinnt .split__text.hat-mehr { -webkit-mask-image: linear-gradient(#000 calc(100% - 32px), transparent); mask-image: linear-gradient(#000 calc(100% - 32px), transparent); }
}
/* Handy, angeheftet: Abschnitt nur so hoch wie Bild + Text (Höhe des Textbereichs aus main.js), kein Leerraum danach */
@media (max-width: 899px) {
  .split.is-gepinnt { height: auto; padding: 0; }
  .split.is-gepinnt .split__text { flex: none; }
  .split.is-gepinnt .split__text.hat-mehr { -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent); }
}
/* Handy, angeheftet: Abstand Haupttitel → Bild gleich wie Bild → Untertitel */
@media (max-width: 899px) {
  .split.is-gepinnt { margin-top: 26px; }
  .split.is-gepinnt .split__media { margin-bottom: 26px; }
}
/* Schwebender Anmelde-Knopf (Handy): beim Verstecken ganz aus dem Bild, auch mit Home-Leiste (Safe Area), und ausgeblendet */
@media (max-width: 760px) {
  .cta-mobile, body.menu-open .cta-mobile { transform: translateY(calc(100% + 60px + env(safe-area-inset-bottom))); opacity: 0; pointer-events: none;
    transition: transform .6s var(--ease), opacity .35s ease .15s, color .45s var(--ease); }
  .cta-mobile.is-visible { transform: none; opacity: 1; pointer-events: auto; transition: transform .6s var(--ease), opacity .25s ease, color .45s var(--ease); }
  body.menu-open .cta-mobile.is-visible { transform: translateY(calc(100% + 60px + env(safe-area-inset-bottom))); opacity: 0; pointer-events: none; }
}
/* Lage: Ziele am Kartenrand (Zürich HB, Flughafen, Chur) wie die übrigen Orte, ohne weisses Schild */
.lage__label--aussen-l, .lage__label--aussen-r { padding: 0; border-radius: 0; background: none; font-weight: 400; color: var(--black); gap: 5px; }
.lage__label--aussen-l.is-active, .lage__label--aussen-r.is-active { background: none; color: var(--accent); font-weight: 600; }

/* Abschnitte etwa gleich gross: mindestens eine Bildschirmhöhe (höchstens 1000px), Inhalt mittig.
   Kurze Abschnitte bekommen so oben und unten gleich viel Luft, lange bleiben unverändert */
.sec:not(:has([data-splitscreen])) { box-sizing: border-box; min-height: min(85vh, 860px); min-height: min(85svh, 860px); display: flex; flex-direction: column; justify-content: center; }
/* Abschnitte mit Bildwechsel sind von sich aus lang; ohne Mittig-Ausrichtung, sonst verrutscht das Anheften am Handy */
/* Lage: Ziele am Kartenrand (Zürich HB, Flughafen, Chur) erst zeigen, wenn man sie auswählt */
.lage__label.lage__label--aussen-l, .lage__label.lage__label--aussen-r { opacity: 0; transition: opacity .3s, color .3s; }
.lage__label.lage__label--aussen-l.is-active, .lage__label.lage__label--aussen-r.is-active { opacity: 1; }
/* Lage: Bergrelief aus Höhendaten unter Seen, Strassen und Orten */
.lage__relief { pointer-events: none; }
.lage__weg--haupt { stroke: rgba(110, 82, 48, .38); }
.lage__weg--autobahn { stroke: rgba(110, 82, 48, .55); }
.lage__dorf, .lage__label:not(.lage__label--home) { text-shadow: 0 0 3px rgba(226, 218, 199, .95), 0 0 6px rgba(226, 218, 199, .8); }
.lage__dorf { color: rgba(0, 0, 0, .7); }
/* Lage: Seenamen kleiner und mittig im See */
.lage__see { font-size: clamp(8.5px, .78vw, 11px); letter-spacing: .08em; color: rgba(128, 100, 63, .8); white-space: nowrap; }
