/* KLEEGÄRTEN-Park — Baufortschritt */

.construction-page {
  --construction-line: rgba(26, 23, 20, .14);
  --construction-night-line: rgba(255, 255, 255, .16);
  --construction-ease: cubic-bezier(.23, 1, .32, 1);
  background: var(--bg);
}

.construction-page * { letter-spacing: 0; }
.construction-page main { overflow: clip; }
.construction-page h1,
.construction-page h2,
.construction-page h3 {
  text-wrap: balance;
}

.construction-page .container { max-width: 1320px; }
.construction-page .nav .container {
  max-width: var(--container);
  padding-left: clamp(1.25rem, 4vw, 2rem);
  padding-right: clamp(1.25rem, 4vw, 2rem);
  gap: clamp(1rem, 3vw, 2rem);
}

.construction-page .nav-links .nav-contact { padding: .58rem 1.2rem; }

.construction-kicker {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--accent);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.construction-kicker::before {
  content: "";
  width: 25px;
  height: 1px;
  background: currentColor;
}

/* Hero */
.construction-hero {
  position: relative;
  min-height: 780px;
  height: calc(100svh - var(--nav-h));
  margin-top: var(--nav-h);
  overflow: hidden;
  color: #fff;
  background: var(--alpine-night);
}

.construction-hero__media,
.construction-hero__shade {
  position: absolute;
  inset: 0;
}

.construction-hero__media img {
  width: 100%;
  height: calc(100% + 90px);
  margin-top: -45px;
  object-fit: cover;
  object-position: center 55%;
  transform: scale(1.025) translate3d(0, var(--construction-hero-shift, 0), 0);
  will-change: transform;
}

.construction-hero__shade {
  background:
    linear-gradient(90deg, rgba(20, 24, 36, .91) 0%, rgba(20, 24, 36, .68) 39%, rgba(20, 24, 36, .18) 73%),
    linear-gradient(0deg, rgba(20, 24, 36, .66) 0%, transparent 48%);
}

.construction-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  height: 100%;
  padding-top: 7rem;
  padding-bottom: clamp(4rem, 9vh, 7rem);
}

.construction-hero__copy h1 {
  max-width: 780px;
  margin: 1.25rem 0 1.4rem;
  color: #fff;
  font-size: clamp(4rem, 7vw, 5.8rem);
  font-weight: 400;
  line-height: .99;
}

.construction-hero__copy > p:not(.construction-kicker) {
  max-width: 590px;
  color: rgba(255, 255, 255, .76);
  font-size: 1.14rem;
  line-height: 1.68;
}

.construction-hero__anchor {
  display: inline-flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid rgba(255, 255, 255, .42);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
}

.construction-hero__anchor span:last-child {
  color: var(--accent);
  transition: transform 240ms var(--construction-ease);
}

.construction-hero__scroll {
  position: absolute;
  z-index: 2;
  right: clamp(1.25rem, 4vw, 3.2rem);
  bottom: 0;
  width: 1px;
  height: 55px;
  overflow: hidden;
  background: rgba(255, 255, 255, .18);
}

.construction-hero__scroll span {
  display: block;
  width: 100%;
  height: 42%;
  background: var(--accent);
  animation: construction-scroll 2.2s var(--construction-ease) infinite;
}

@keyframes construction-scroll {
  0% { transform: translateY(-120%); }
  55%, 100% { transform: translateY(245%); }
}

/* Introduction */
.construction-intro {
  padding: clamp(7rem, 12vw, 11rem) 0;
  border-bottom: 1px solid var(--construction-line);
}

.construction-intro__grid {
  display: grid;
  grid-template-columns: .42fr 1.1fr .62fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.construction-section-name,
.construction-journey__eyebrow {
  color: var(--accent-dim);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.construction-intro__copy h2 {
  max-width: 12ch;
  margin-bottom: 1.4rem;
  font-size: clamp(3.25rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 1.02;
}

.construction-intro__copy p {
  max-width: 55ch;
  color: var(--fg-muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.construction-intro__facts {
  border-top: 1px solid var(--construction-line);
}

.construction-intro__facts div {
  display: grid;
  grid-template-columns: .7fr 1fr;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--construction-line);
}

.construction-intro__facts dt {
  color: var(--accent-dim);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.construction-intro__facts dd {
  color: var(--fg);
  font-size: .92rem;
  font-weight: 600;
}

/* Journey */
.construction-journey {
  position: relative;
  padding: clamp(7rem, 12vw, 11rem) 0;
  background: var(--surface);
}

.construction-journey__layout {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(4rem, 10vw, 10rem);
}

.construction-journey__sticky {
  position: sticky;
  top: calc(var(--nav-h) + 3.5rem);
}

.construction-journey__sticky h2 {
  max-width: 10ch;
  margin: 1.15rem 0 1.4rem;
  font-size: clamp(3rem, 4.5vw, 4.6rem);
  font-weight: 400;
  line-height: 1.02;
}

.construction-journey__sticky > p {
  max-width: 42ch;
  color: var(--fg-muted);
  line-height: 1.75;
}

.construction-journey__overall {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  max-width: 340px;
  margin-top: 3.5rem;
}

.construction-journey__overall > span {
  display: block;
  height: 1px;
  overflow: hidden;
  background: var(--construction-line);
}

.construction-journey__overall i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(var(--journey-progress, 0));
  transform-origin: left;
  will-change: transform;
}

.construction-journey__overall small {
  color: var(--fg-light);
  font-size: .72rem;
}

.construction-journey__overall b {
  color: var(--accent-dim);
  font-weight: 700;
}

.construction-journey__phases {
  position: relative;
}

.construction-journey__phases::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 20px;
  width: 1px;
  background: var(--construction-line);
}

.construction-journey__phases::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 18px;
  bottom: 18px;
  left: 20px;
  width: 1px;
  background: var(--accent);
  transform: scaleY(var(--timeline-completion, 0));
  transform-origin: top;
  transition: transform 900ms var(--construction-ease);
  pointer-events: none;
}

.construction-phase {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 2.2rem;
  padding-bottom: clamp(3rem, 5vw, 4.75rem);
}

.construction-phase:last-child {
  padding-bottom: 0;
}

.construction-phase__marker {
  position: relative;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--construction-line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--fg-light);
  font-size: .67rem;
  font-weight: 700;
  transition: color 360ms var(--construction-ease), border-color 360ms var(--construction-ease), background 360ms var(--construction-ease);
}

.construction-phase__content {
  max-width: 610px;
  padding-top: .25rem;
  opacity: .56;
  transform: translate3d(0, 22px, 0);
  transition: opacity 720ms var(--construction-ease), transform 900ms var(--construction-ease);
}

.construction-phase.is-in-view .construction-phase__content,
.construction-phase:first-child .construction-phase__content {
  opacity: 1;
  transform: none;
}

.construction-phase.is-completed .construction-phase__marker {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent-dim);
}

.construction-phase.is-current .construction-phase__marker {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--alpine-night);
  box-shadow: 0 0 0 9px rgba(200, 169, 110, .12);
}

.construction-phase__meta {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--construction-line);
  color: var(--fg-light);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.construction-phase.is-current .construction-phase__meta span { color: var(--accent-dim); }

.construction-phase__content h3 {
  margin: 2rem 0 1.2rem;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
}

.construction-phase__content > p {
  max-width: 58ch;
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.75;
}

/* Bautagebuch entries */
.construction-update {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 2.2rem;
  padding: 0 0 clamp(3rem, 4.5vw, 4.5rem);
}

.construction-update__marker {
  position: relative;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
}

.construction-update__marker::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 7px var(--surface);
  transition: background 280ms var(--construction-ease), box-shadow 360ms var(--construction-ease);
}

.construction-update.is-in-view .construction-update__marker::before,
.construction-update.is-open .construction-update__marker::before {
  background: color-mix(in srgb, var(--accent) 58%, var(--surface));
  box-shadow: 0 0 0 7px var(--surface);
}

.construction-update.is-latest .construction-update__marker::before {
  width: 11px;
  height: 11px;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 7px var(--surface), 0 0 0 10px rgba(200, 169, 110, .15);
}

.construction-update__content {
  max-width: 660px;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--construction-line);
  border-bottom: 1px solid var(--construction-line);
  opacity: .48;
  transform: translate3d(0, 14px, 0);
  transition: opacity 640ms var(--construction-ease), transform 760ms var(--construction-ease);
}

.construction-update.is-in-view .construction-update__content,
.construction-update.is-open .construction-update__content {
  opacity: .84;
  transform: none;
}

.construction-update.is-open .construction-update__content { opacity: 1; }

.construction-update__meta {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
  color: color-mix(in srgb, var(--accent-dim) 74%, var(--fg-light));
  font-size: .64rem;
  font-weight: 700;
  text-transform: uppercase;
}

.construction-update__lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
}

.construction-update__lead h4 {
  margin: 0 0 .65rem;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.25vw, 2.15rem);
  font-weight: 400;
  line-height: 1.08;
}

.construction-update__lead p {
  max-width: 53ch;
  margin: 0;
  color: var(--fg-muted);
  font-size: .9rem;
  line-height: 1.7;
}

.construction-update__toggle {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-height: 38px;
  padding: 0 0 .25rem;
  border: 0;
  border-bottom: 1px solid var(--fg);
  color: var(--fg);
  background: transparent;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.construction-update__toggle i {
  width: 1rem;
  color: var(--accent-dim);
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  transition: transform 320ms var(--construction-ease);
}

.construction-update.is-open .construction-update__toggle i {
  transform: rotate(45deg);
}

.construction-update__details {
  padding-top: 2rem;
}

.construction-update__details[hidden] {
  display: none;
}

.construction-update__details-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, .85fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: end;
}

.construction-update__details figure {
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

.construction-update__details figure.construction-update__figure--compact {
  width: min(100%, 350px);
}

.construction-update__details img {
  display: block;
  width: 100%;
  height: auto;
}

.construction-update__details-inner > p {
  margin: 0;
  color: var(--fg-muted);
  font-size: .92rem;
  line-height: 1.75;
}

.construction-update.is-opening .construction-update__details-inner {
  animation: construction-update-open 560ms var(--construction-ease) both;
}

@keyframes construction-update-open {
  from {
    opacity: .01;
    clip-path: inset(0 0 22% 0);
    transform: translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
    transform: none;
  }
}

.construction-text-link,
.construction-next__link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid currentColor;
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
}

.construction-text-link i,
.construction-next__link i {
  color: var(--accent);
  font-style: normal;
  transition: transform 240ms var(--construction-ease);
}

/* Apartment offer bridge */
.construction-next {
  padding: clamp(5.5rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--construction-line);
}

.construction-next__grid {
  display: grid;
  grid-template-columns: minmax(170px, .42fr) minmax(0, 1fr) auto;
  gap: clamp(2rem, 6vw, 6.5rem);
  align-items: center;
}

.construction-next__grid > p,
.construction-next__grid > div > span {
  color: var(--accent-dim);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.construction-next__grid h2 {
  max-width: 10ch;
  margin: .7rem 0 .8rem;
  font-size: clamp(2.75rem, 4.35vw, 4.35rem);
  font-weight: 400;
  line-height: 1.02;
}

.construction-next__grid > div > p {
  max-width: 54ch;
  color: var(--fg-muted);
  line-height: 1.75;
}

.construction-next__link {
  margin: 0;
  color: var(--fg);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .construction-hero { min-height: 720px; }
  .construction-intro__grid { grid-template-columns: 1fr 1.25fr; gap: 3rem; }
  .construction-intro__facts { grid-column: 2; }
  .construction-journey__layout { grid-template-columns: .8fr 1.2fr; gap: 4rem; }
  .construction-next__grid { grid-template-columns: .4fr 1fr; }
  .construction-next__link { grid-column: 2; justify-self: start; margin-top: 1rem; }
}

@media (max-width: 760px) {
  .construction-page .container { padding-inline: 1.25rem; }
  .construction-hero {
    min-height: 690px;
    height: calc(100svh - var(--nav-h));
  }
  .construction-hero__media img { object-position: 62% center; }
  .construction-hero__shade {
    background:
      linear-gradient(0deg, rgba(20, 24, 36, .9) 0%, rgba(20, 24, 36, .47) 64%, rgba(20, 24, 36, .35) 100%);
  }
  .construction-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    padding-bottom: 3.5rem;
  }
  .construction-hero__copy h1 { font-size: clamp(3.4rem, 14vw, 5rem); }
  .construction-hero__copy > p:not(.construction-kicker) { font-size: 1rem; }

  .construction-intro__grid,
  .construction-journey__layout,
  .construction-next__grid {
    grid-template-columns: 1fr;
  }
  .construction-intro__grid { gap: 2rem; }
  .construction-intro__facts { grid-column: auto; margin-top: 1.5rem; }
  .construction-intro__copy h2,
  .construction-journey__sticky h2,
  .construction-next__grid h2 { font-size: clamp(2.9rem, 12vw, 4rem); }

  .construction-journey__layout { gap: 4rem; }
  .construction-journey__sticky { position: static; }
  .construction-journey__overall { margin-top: 2.3rem; }
  .construction-phase { gap: 1.35rem; padding-bottom: 3.4rem; }
  .construction-phase__content h3 { font-size: clamp(2.35rem, 10vw, 3.5rem); }
  .construction-phase__meta { flex-direction: column; gap: .35rem; }
  .construction-update {
    gap: 1.35rem;
    padding-bottom: 4.5rem;
  }
  .construction-update__lead,
  .construction-update__details-inner {
    grid-template-columns: 1fr;
  }
  .construction-update__toggle {
    justify-self: start;
    margin-top: .35rem;
  }
  .construction-update__details figure.construction-update__figure--compact {
    width: min(100%, 420px);
  }

  .construction-next__link { grid-column: auto; }
}

@media (max-width: 420px) {
  .construction-hero__copy h1 { font-size: 3.3rem; }
  .construction-phase { grid-template-columns: 36px 1fr; }
  .construction-phase__marker { width: 36px; height: 36px; }
  .construction-update { grid-template-columns: 36px minmax(0, 1fr); }
  .construction-update__marker { width: 36px; height: 36px; }
  .construction-journey__phases::before { left: 17px; }
  .construction-journey__phases::after { left: 17px; }
}

@media (hover: hover) and (pointer: fine) {
  .construction-hero__anchor:hover span:last-child { transform: translateY(3px); }
  .construction-text-link:hover i,
  .construction-next__link:hover i { transform: translateX(5px); }
  .construction-update__toggle:hover i { transform: translateX(3px); }
  .construction-update.is-open .construction-update__toggle:hover i { transform: rotate(45deg) translate(2px, -2px); }
}

@media (prefers-reduced-motion: reduce) {
  .construction-hero__scroll span { animation: none; transform: none; }
  .construction-hero__media img { transform: none !important; }
  .construction-journey__phases::after {
    transition: none;
  }
  .construction-phase__content {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .construction-update__content {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .construction-update.is-opening .construction-update__details-inner {
    animation: none;
  }
}
