/* ==========================================================
   Tschill Naters – Neubauprojekt
   Verkauf & Vermarktung: VAL Group AG
   ========================================================== */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #262926;
  --bg-dark: #1b1d1b;
  --surface: #2f332f;
  --light: #e9ece6;
  --ink: #1e221e;
  --green-ink: #4d6f41;
  --radius: 18px;
  --ticker-h: 46px;
  --black: #000;
  --white: #fff;
  --muted: rgba(255, 255, 255, .62);
  --line: rgba(255, 255, 255, .18);
  --green: #749964;
  --red: #ff4040;
  --max: 1180px;
  --nav-h: 64px;
  --font: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--white);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }

.container { width: min(var(--max), 100% - 48px); margin-inline: auto; }

.section { padding: 110px 0; }
.section--tight { padding: 80px 0; }

.section-title {
  font-size: clamp(34px, 4.6vw, 56px);
  letter-spacing: -0.03em;
  margin-bottom: 44px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: var(--green);
  margin-top: 18px;
}

.lead { font-size: clamp(20px, 2vw, 26px); line-height: 1.35; letter-spacing: -0.01em; color: var(--muted); max-width: 30ch; margin: -8px 0 64px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--white);
  border-radius: 999px;
  color: var(--white);
  background: transparent;
  text-decoration: none;
  font: 500 15px/1 var(--font);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--white); color: var(--black); } }
.btn--solid { background: var(--white); color: var(--black); }
@media (hover: hover) and (pointer: fine) { .btn--solid:hover { background: var(--green); border-color: var(--green); color: var(--white); } }
.btn svg { width: 18px; height: 18px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  background: rgba(27, 29, 27, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
/* Startseite: über dem Video transparent, beim Scrollen solide */
.home .nav:not(.is-scrolled):not(.is-open) {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  position: relative;
  opacity: .85;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 2px;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transition: transform .25s;
}
.nav__links a.is-active { opacity: 1; }
.nav__links a.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { opacity: 1; }
  .nav__links a:hover::after { transform: scaleX(1); }
}

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  width: 44px; height: 44px;
  cursor: pointer;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  margin: auto;
  position: relative;
  transition: transform .25s, background .25s;
}
.nav__toggle span::before,
.nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { top: 7px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 80svh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: calc(var(--nav-h) + var(--ticker-h) + 40px) 0 clamp(72px, 9vh, 110px);
}
.hero__media,
.hero__media video,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 75%),
    linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 60%);
}
.hero__inner {
  position: relative;
  z-index: 2;
}
.hero__content { max-width: 820px; }
.hero__logo { width: min(200px, 50%); height: auto; margin-bottom: 32px; }
.hero h1 { font-size: clamp(36px, 5vw, 66px); line-height: 1.04; letter-spacing: -0.03em; max-width: 19ch; margin-bottom: 26px; }
.hero__list { list-style: none; padding: 0; margin: 0 0 36px; display: flex; flex-wrap: wrap; gap: 6px 28px; }
.hero__list li {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 400;
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.hero__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 14px;
}
.hero__scroll::after {
  content: "";
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--white);
  animation: scroll 1.8s infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Highlights ---------- */
.highlights { padding-bottom: 120px; }
.highlights__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.highlight { padding-top: 26px; border-top: 1px solid var(--line); }
.highlight svg { width: 56px; height: 56px; margin: 0 0 28px; color: var(--green); }
.highlight h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.015em; max-width: 12ch; }

/* ---------- Bildband ---------- */
.band { height: clamp(300px, 46vw, 620px); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Projektbeschrieb ---------- */
.project__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: start;
}
.project__text p { margin: 0 0 20px; }
.project__text .claim { font-weight: 600; font-size: clamp(21px, 2vw, 26px); line-height: 1.3; letter-spacing: -0.015em; margin-top: 34px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  padding: 18px 0 18px 44px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px; top: 22px;
  width: 20px; height: 11px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

/* Zeitachse */
.timeline {
  margin-top: 90px;
  padding: 44px 0 38px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
}
.timeline__step { text-align: center; position: relative; padding: 0 8px; }
/* Verbindungslinie zum nächsten Schritt: grün, sobald dieser Schritt erledigt ist */
.timeline__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 11px;
  left: calc(50% + 12px);
  right: calc(-50% + 12px);
  height: 2px;
  background: var(--line);
}
.timeline__step.is-done:not(:last-child)::after { background: var(--green); }
.timeline__step.is-current .timeline__label { color: var(--green); }
.timeline__dot {
  width: 24px; height: 24px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--bg);
}
.timeline__step.is-done .timeline__dot { background: var(--green); border-color: var(--green); }
.timeline__step.is-current .timeline__dot { border-color: var(--green); box-shadow: 0 0 0 6px rgba(116,153,100,.25); }
.timeline__label { font-weight: 600; font-size: 16px; }
.timeline__date { color: var(--muted); font-size: 14px; }

/* ---------- Impressionen ---------- */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.video {
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--black);
  overflow: hidden;
}
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--white);
}
.video__play span {
  width: 64px; height: 64px;
  border: 2px solid var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform .2s;
}
@media (hover: hover) and (pointer: fine) { .video__play:hover span { transform: scale(1.1); } }

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(4, 1fr);
  gap: 20px;
  height: clamp(420px, 56vw, 720px);
}
.gallery button {
  padding: 0;
  border: 0;
  background: #111;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery button:first-child { grid-row: 1 / -1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
@media (hover: hover) and (pointer: fine) { .gallery button:hover img { transform: scale(1.04); } }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.94);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
  font-size: 40px;
  line-height: 1;
  padding: 16px;
}
.lightbox__close { top: 12px; right: 16px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- Wohnungsspiegel ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.tab {
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: none;
  color: var(--white);
  font: 500 15px/1 var(--font);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
@media (hover: hover) and (pointer: fine) { .tab:hover { border-color: var(--white); } }
.tab.is-active { background: var(--white); color: var(--black); }
.tab small { display: inline-block; margin-left: 6px; font-size: 11px; opacity: .7; }

.units {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.units__table { width: 100%; border-collapse: collapse; }
.units__table th {
  text-align: left;
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
  padding: 0 12px 12px;
  border-bottom: 1px solid var(--line);
}
.units__table th:last-child,
.units__table td:last-child { text-align: right; }
.units__table td {
  padding: 18px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.units__table tbody tr { transition: background .2s, box-shadow .2s; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.units__table tbody tr.is-selected { background: rgba(255,255,255,.06); box-shadow: inset 3px 0 0 var(--green); }
@media (hover: hover) and (pointer: fine) { .units__table tbody tr:hover { background: rgba(255,255,255,.06); } }
.units__table .floor { font-weight: 700; font-size: 20px; width: 70px; }
.units__table .pdf a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  text-decoration: none;
  opacity: .85;
}
@media (hover: hover) and (pointer: fine) { .units__table .pdf a:hover { opacity: 1; text-decoration: underline; } }
.units__table .pdf svg { width: 18px; height: 18px; }
.units__table .price { font-weight: 700; white-space: nowrap; }
.units__table .price--request { font-weight: 500; color: var(--white); }
.units__table .unit__nr { display: block; font-weight: 600; }
.units__table .unit__meta { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.units__table tr.is-reserved td:not(:last-child) .unit__meta { color: inherit; }
.units__table .unit__pdf { display: none; }
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 64, 64, .14);
  color: #ff8a8a;
  font-size: 13px;
  font-weight: 600;
}
.units__table tr.is-reserved td:not(:last-child) { opacity: .55; }

.units__plan { position: sticky; top: calc(var(--nav-h) + 24px); margin: 0; padding: 28px 24px 18px; border-radius: var(--radius); background: var(--surface); }
.units__plan img { width: 100%; height: auto; aspect-ratio: 1793 / 921; object-fit: contain; }
.units__caption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 8px; min-height: 1.6em; }

.units__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 48px; }

/* ---------- Lage ---------- */
.location__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.distances {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 24px;
  margin-top: 40px;
}
.distance { display: flex; gap: 16px; align-items: flex-start; }
.distance svg { width: 40px; height: 40px; color: var(--green); flex-shrink: 0; }
.distance strong { display: block; font-size: 18px; font-weight: 600; }
.distance span { color: var(--muted); font-size: 15px; }

.map {
  position: relative;
  aspect-ratio: 4 / 3.4;
  background: #1a1a1a url("../img/galerie-02.webp") center / cover;
  overflow: hidden;
  border-radius: var(--radius);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.2); }
.map__consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: rgba(0,0,0,.6);
}
.map__consent p { margin: 0; font-size: 14px; color: var(--muted); max-width: 340px; }
.map__consent a { color: var(--white); }

/* ---------- Kontakt ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact__intro p { margin: 0 0 8px; }
.form { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 15px; }
.field input,
.field select,
.field textarea {
  font: 300 17px/1.4 var(--font);
  color: var(--white);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.55);
  padding: 8px 0;
  border-radius: 0;
  outline: none;
  transition: border-color .2s;
}
.field textarea { min-height: 110px; resize: vertical; border: 1px solid rgba(255,255,255,.55); padding: 10px 12px; }
.field select { appearance: none; -webkit-appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none' stroke='white' stroke-width='1.5'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E") right 4px center no-repeat; }
.field select option { color: #000; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--green); }
.form__consent { grid-column: 1 / -1; font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.form__consent input { margin-top: 4px; accent-color: var(--green); }
.form__consent a { color: var(--white); }
.form__footer { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__status { font-size: 15px; }
.form__status.is-ok { color: #9fd18a; }
.form__status.is-error { color: var(--red); }
.hp { position: absolute; left: -9999px; }

.advisor {
  text-align: center;
  padding: 40px 32px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  max-width: 360px;
  justify-self: end;
  width: 100%;
}
.advisor img {
  width: 180px;
  height: 180px;
  margin: 0 auto 24px;
  border-radius: 50%;
  object-fit: cover;
  background: #e1e5dd;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--green);
}
.advisor h3 { font-size: 22px; margin-bottom: 4px; }
.advisor p { margin: 0 0 4px; color: var(--muted); }
.advisor a { text-decoration: none; font-size: 19px; font-weight: 400; }
@media (hover: hover) and (pointer: fine) { .advisor a:hover { text-decoration: underline; } }

/* ---------- Footer ---------- */
.footer { background: var(--bg-dark); padding: 70px 0 30px; font-size: 14px; }
.footer__partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: end;
  text-align: center;
}
.partner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.partner span { color: var(--muted); line-height: 1.35; }
.partner img { height: 42px; width: auto; object-fit: contain; }
.partner a { display: inline-block; transition: opacity .2s; }
@media (hover: hover) and (pointer: fine) { .partner a:hover { opacity: .75; } }
.footer__bottom {
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
}
.footer__bottom a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer__bottom a:hover { color: var(--white); } }
.footer__legal { display: flex; gap: 18px; }
.socials { display: flex; gap: 14px; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; transition: background .2s, color .2s; }
@media (hover: hover) and (pointer: fine) { .socials a:hover { background: var(--white); color: var(--black); } }
.socials svg { width: 16px; height: 16px; }

/* ---------- Rechtliche Unterseiten ---------- */
.legal { padding: calc(var(--nav-h) + 80px) 0 100px; min-height: calc(100svh - 120px); }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 40px; }
.legal h2 { font-size: 22px; margin: 44px 0 14px; }
.legal p, .legal li { color: rgba(255,255,255,.85); }
.legal address { font-style: normal; line-height: 1.7; }
.back { display: inline-block; margin-bottom: 30px; text-decoration: none; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .back:hover { color: var(--white); } }

/* ---------- Animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Helle Abschnitte ---------- */
.section--light {
  --bg: var(--light);
  --muted: rgba(30, 34, 30, .62);
  --line: rgba(30, 34, 30, .14);
  background: var(--bg);
  color: var(--ink);
}
.section--light .timeline { background: rgba(30, 34, 30, .045); }
.section--light .timeline__step.is-current .timeline__label { color: var(--green-ink); }
.section--light .highlight svg { color: var(--green-ink); }

/* ---------- Navigation: Kontakt als Button ---------- */
.nav__links a.nav__cta {
  margin-left: 10px;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  opacity: 1;
  transition: background .2s, color .2s, border-color .2s;
}
.nav__links a.nav__cta::after { display: none; }
.nav__links a.nav__cta.is-active { background: var(--white); color: var(--ink); border-color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .nav__links a.nav__cta:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
}

/* Tastatur-Fokus sichtbar */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* ---------- Cookie-Banner ---------- */
.cookie {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  width: min(440px, calc(100% - 48px));
  padding: 26px 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  font-size: 15px;
  line-height: 1.55;
  animation: cookieIn .5s cubic-bezier(.2,.8,.2,1) both;
}
.cookie p { margin: 0 0 18px; color: rgba(255,255,255,.82); }
.cookie .cookie__title { font-size: 18px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.cookie a { color: var(--white); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie__actions .btn { padding: 12px 20px; font-size: 14px; }
.cookie.is-closing { animation: cookieOut .3s ease forwards; }
@keyframes cookieIn { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
@keyframes cookieOut { to { opacity: 0; translate: 0 24px; } }
.footer__cookie {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit;
}
@media (hover: hover) and (pointer: fine) { .footer__cookie:hover { color: var(--white); } }
@media (max-width: 600px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 22px 20px 20px; }
  .cookie__actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .cookie, .cookie.is-closing { animation: none; } }

/* ---------- Baustellenfoto (Projektbeschrieb) ---------- */
.site-photo {
  position: relative;
  margin: 80px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface);
}
.site-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.site-photo::after {
  content: "";
  position: absolute;
  inset: 45% 0 0 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}
.site-photo figcaption {
  position: absolute;
  z-index: 1;
  left: clamp(20px, 3vw, 36px);
  bottom: clamp(18px, 3vw, 32px);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.site-photo + .timeline { margin-top: 40px; }
@media (max-width: 820px) {
  .site-photo { margin-top: 56px; aspect-ratio: 4 / 3; }
}

/* ---------- Laufband «Baustart hat begonnen» ---------- */
.ticker {
  position: absolute;
  z-index: 3;
  top: var(--nav-h);
  left: 0; right: 0;
  height: var(--ticker-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker__group { display: flex; flex-shrink: 0; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  padding-right: 56px;
}
.ticker__item::before {
  content: "";
  width: 8px; height: 8px;
  margin-right: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.6);
}
@keyframes ticker { to { transform: translateX(-50%); } }
@media (hover: hover) and (pointer: fine) { .ticker:hover .ticker__track { animation-play-state: paused; } }

/* ---------- Zeitstrahl: aktueller Stand in der Bauphase ---------- */
.timeline__step.is-done.has-now:not(:last-child)::after {
  background: linear-gradient(90deg, var(--green) calc(var(--now) * 100%), var(--line) calc(var(--now) * 100%));
}
.timeline__now {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: calc(50% + 12px + (100% - 24px) * var(--now));
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--green);
}
.timeline__now-label {
  position: absolute;
  bottom: 22px; left: 50%;
  translate: -50% 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}
.timeline.is-visible .timeline__now { animation: nowPulse 2s 2.4s ease-out infinite; }
@keyframes nowPulse {
  0%   { box-shadow: 0 0 0 0 rgba(116,153,100,.65); }
  70%  { box-shadow: 0 0 0 12px rgba(116,153,100,0); }
  100% { box-shadow: 0 0 0 0 rgba(116,153,100,0); }
}

/* ---------- Animationen ---------- */
/* Hero: Inhalte gleiten beim Laden nacheinander herein */
@keyframes fadeUp { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
.hero__logo { animation: fadeUp .9s .1s both; }
.hero h1 { animation: fadeUp .9s .25s both; }
.hero__list li { animation: fadeUp .7s calc(.45s + var(--i, 0) * .12s) both; }
.hero__actions .btn { animation: fadeUp .7s .85s both; }


/* Titel-Unterstrich wächst beim Einblenden */
.section-title.reveal::after,
.reveal .section-title::after { width: 0; transition: width .8s .35s ease; }
.section-title.reveal.is-visible::after,
.reveal.is-visible .section-title::after { width: 64px; }

/* Highlights: gestaffelt, Icon hebt sich beim Hover */
.highlight:nth-child(2) { transition-delay: .12s; }
.highlight:nth-child(3) { transition-delay: .24s; }
.highlight:nth-child(4) { transition-delay: .36s; }
.highlight svg { transition: translate .35s ease, scale .35s ease; }
@media (hover: hover) and (pointer: fine) { .highlight:hover svg { translate: 0 -6px; scale: 1.06; } }

/* Checkliste: Punkte erscheinen nacheinander, Häkchen ploppen auf */
.checklist li { opacity: 0; translate: -14px 0; transition: opacity .5s ease, translate .5s ease; transition-delay: calc(.15s + var(--i, 0) * .12s); }
.checklist li::before { scale: 0; transition: scale .4s cubic-bezier(.34,1.56,.64,1); transition-delay: calc(.4s + var(--i, 0) * .12s); }
.checklist.is-visible li { opacity: 1; translate: 0 0; }
.checklist.is-visible li::before { scale: 1; }

/* Zeitstrahl: Punkte erscheinen nacheinander, die Linie zeichnet sich dazwischen */
.timeline { --step: .38s; }
.timeline__dot { scale: 0; transition: scale .5s cubic-bezier(.34,1.56,.64,1); transition-delay: calc(.2s + var(--i, 0) * var(--step)); }
.timeline__label,
.timeline__date { opacity: 0; translate: 0 8px; transition: opacity .5s ease, translate .5s ease; transition-delay: calc(.3s + var(--i, 0) * var(--step)); }
.timeline__step:not(:last-child)::after { transform: scaleX(0); transform-origin: left center; transition: transform var(--step) linear; transition-delay: calc(.35s + var(--i, 0) * var(--step)); }
.timeline.is-visible .timeline__dot { scale: 1; }
.timeline.is-visible .timeline__label,
.timeline.is-visible .timeline__date { opacity: 1; translate: 0 0; }
.timeline.is-visible .timeline__step::after { transform: none; }
.timeline__now { scale: 0; transition: scale .5s cubic-bezier(.34,1.56,.64,1); transition-delay: calc(.35s + (var(--i, 0) + 1) * var(--step)); }
.timeline__now-label { opacity: 0; transition: opacity .4s ease; transition-delay: calc(.45s + (var(--i, 0) + 1) * var(--step)); }
.timeline.is-visible .timeline__now { scale: 1; }
.timeline.is-visible .timeline__now-label { opacity: 1; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(116,153,100,.6); }
  70%  { box-shadow: 0 0 0 14px rgba(116,153,100,0); }
  100% { box-shadow: 0 0 0 0 rgba(116,153,100,0); }
}
.timeline.is-visible .is-current .timeline__dot { animation: pulse 2s 2s ease-out infinite; }

/* Beraterkarte */
.advisor { transition: opacity .8s ease, transform .8s ease, border-color .3s, background .3s; }
@media (hover: hover) and (pointer: fine) { .advisor:hover { border-color: rgba(116,153,100,.6); background: rgba(255,255,255,.05); } }
.advisor img { scale: .85; opacity: 0; transition: scale .7s cubic-bezier(.34,1.56,.64,1) .3s, opacity .6s ease .3s; }
.advisor.is-visible img { scale: 1; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero__logo, .hero h1, .hero__list li, .hero__actions .btn, .ticker__track,
  .timeline.is-visible .is-current .timeline__dot, .timeline.is-visible .timeline__now { animation: none !important; }
  .checklist li, .checklist li::before, .timeline__dot, .timeline__label, .timeline__date, .timeline__now, .timeline__now-label,
  .timeline__step::after, .advisor img, .section-title::after {
    transition: none !important; opacity: 1 !important; translate: none !important; scale: none !important; transform: none !important;
  }
  .section-title::after { width: 64px !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__inner,
  .project__grid,
  .units,
  .location__grid,
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__inner { text-align: left; }
  .advisor { justify-self: start; }
  .units__plan { position: static; order: -1; }
  .highlights__grid { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
}

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-dark);
    padding: 12px 0 24px;
    transform: translateY(-120%);
    transition: transform .3s;
    z-index: -1;
  }
  .nav.is-open .nav__links { transform: none; }
  .nav__links a { padding: 14px 24px; font-size: 18px; }
  .nav__links a::after { display: none; }
  .nav__links a.nav__cta { display: inline-block; margin: 10px 24px 0; padding: 12px 24px; }
  .timeline { padding: 28px 24px; }

  .section { padding: 80px 0; }
  .videos { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .gallery button { aspect-ratio: 4 / 3; }
  .gallery button:first-child { grid-row: auto; grid-column: 1 / -1; }

  .timeline { grid-template-columns: 1fr; gap: 26px; margin-top: 60px; }
  .timeline__step { display: grid; grid-template-columns: 24px 1fr; column-gap: 18px; text-align: left; padding: 0; }
  .timeline__step:not(:last-child)::after { left: 11px; right: auto; top: 28px; bottom: -22px; width: 2px; height: auto; }
  .timeline__step:not(:last-child)::after { transform: scaleY(0); transform-origin: center top; }
  .timeline__step.has-now { padding-bottom: 40px; }
  .timeline__step.is-done.has-now:not(:last-child)::after { background: linear-gradient(180deg, var(--green) calc(var(--now-m) * 100%), var(--line) calc(var(--now-m) * 100%)); }
  .timeline__now { left: 12px; top: calc(28px + (100% - 6px) * var(--now-m)); }
  .timeline__now-label { bottom: auto; left: 30px; top: 50%; translate: 0 -50%; }
  :root { --ticker-h: 40px; }
  .ticker__item { font-size: 15px; padding-right: 40px; }
  .ticker__item::before { margin-right: 40px; }
  .timeline__dot { margin: 0; grid-row: span 2; }

  .units__table th:nth-child(3), .units__table td:nth-child(3) { display: none; }
  .units__table td { padding: 16px 8px; }
  .units__table .floor { width: 44px; }
  .units__table .unit__pdf { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; text-decoration: none; opacity: .9; }
  .units__table .unit__pdf svg { width: 16px; height: 16px; }

  .form { grid-template-columns: 1fr; }
  .advisor { max-width: none; }
  .advisor img { width: 150px; height: 150px; }
  .distances { grid-template-columns: 1fr; }
  .footer__partners { grid-template-columns: 1fr; gap: 44px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
