/* =========================================================
   LANDSTRASSE ITINGEN - project-specific refinements
   Builds on the shared CM design system (styles.css)
   ========================================================= */

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 1200;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-soft));
  box-shadow: 0 0 12px rgba(160, 135, 107, 0.55);
  transition: width 0.12s linear;
  pointer-events: none;
}

/* ---------- Header co-brand polish ---------- */
.dev-mark__logo {
  height: 30px;
}

/* ---------- Hero refinements ---------- */
.hero__content {
  animation: hero-rise 1.1s var(--ease-out) both;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero h1 { max-width: 18ch; }

.hero__eyebrow {
  padding: 0.5rem 1rem 0.5rem 0;
}

.hero .btn--light {
  backdrop-filter: blur(4px);
}

/* ---------- Highlights ribbon ---------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.highlight {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-right: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: background 0.4s var(--ease);
}

.highlight:last-child { border-right: none; }
.highlight:hover { background: var(--color-bg-alt); }

.highlight__icon {
  width: 30px;
  height: 30px;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}

.highlight__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.highlight__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-ink);
  line-height: 1.15;
}

.highlight__text {
  font-size: 0.86rem;
  color: var(--color-muted);
  line-height: 1.55;
}

/* ---------- Stat strip accent ---------- */
.stat__num { color: var(--color-ink); }
.stat__num em {
  font-style: italic;
  color: var(--color-accent);
}

/* ---------- Offer cards (dark section) ---------- */
.offer-grid { grid-template-columns: repeat(4, 1fr); }
.offer-grid--6 { grid-template-columns: repeat(3, 1fr); }

.section--dark .offer-grid {
  background: rgba(245, 241, 234, 0.16);
  border-color: rgba(245, 241, 234, 0.16);
}
.section--dark .offer-grid .tech-card { background: rgba(245, 241, 234, 0.06); }
.section--dark .offer-grid .tech-card:hover { background: rgba(245, 241, 234, 0.1); }
.section--dark .offer-grid .tech-card h4 { color: #f5f1ea; }
.section--dark .offer-grid .tech-card p { color: rgba(231, 227, 220, 0.72); }

/* ---------- 3D Walkthrough placeholder ---------- */
.walkthrough-placeholder {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1px;
  margin-top: 3rem;
  background: var(--color-line);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 520px;
  box-shadow: var(--shadow-sm);
}

.walkthrough-placeholder__media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--color-ink);
}

.walkthrough-placeholder__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15,15,14,0.35), rgba(15,15,14,0) 55%);
  pointer-events: none;
}

.walkthrough-placeholder__media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: transform 1.6s var(--ease-out);
}

.walkthrough-placeholder:hover .walkthrough-placeholder__media img { transform: scale(1.05); }

.walkthrough-placeholder__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.walkthrough-placeholder__play span {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(245, 241, 234, 0.92);
  color: var(--color-ink);
  box-shadow: 0 16px 50px rgba(15, 15, 14, 0.4);
}

.walkthrough-placeholder__play span::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--color-ink);
  margin-left: 5px;
}

.walkthrough-placeholder__play::after {
  content: "";
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  border: 1px solid rgba(245, 241, 234, 0.6);
  animation: pulse-ring 2.6s ease-out infinite;
}

@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.walkthrough-placeholder__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 20% 15%, rgba(160, 135, 107, 0.18), transparent 36%),
    var(--color-bg-alt);
}

.walkthrough-placeholder__content span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.walkthrough-placeholder__content span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-accent);
  box-shadow: 0 0 0 0 rgba(160, 135, 107, 0.5);
  animation: dot-pulse 2s ease-out infinite;
}

@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(160, 135, 107, 0.5); }
  100% { box-shadow: 0 0 0 10px rgba(160, 135, 107, 0); }
}

.walkthrough-placeholder__content h3 { margin-bottom: 1.25rem; }
.walkthrough-placeholder__content p { color: var(--color-muted); }

/* ---------- Material image cards ---------- */
.material-card {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-ink);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.material-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.material-card img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  transition: transform 1.6s var(--ease-out);
}

.material-card:hover img { transform: scale(1.06); }

.material-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 14, 0) 38%, rgba(15, 15, 14, 0.78) 100%);
}

.material-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 2rem;
  color: #f5f1ea;
}

.material-card__body span {
  display: block;
  margin-bottom: 0.65rem;
  color: rgba(245, 241, 234, 0.68);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.material-card__body h4 {
  color: #f5f1ea;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0;
}

/* ---------- Gallery hover + reveal stagger ---------- */
.gallery-grid .g-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.gallery-grid .g-item.is-visible {
  opacity: 1;
  transform: none;
}

.gallery-grid .g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,15,14,0) 55%, rgba(15,15,14,0.35) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.gallery-grid .g-item:hover::after { opacity: 1; }

.gallery-grid .g-item img { transition: transform 1.4s var(--ease-out); }
.gallery-grid .g-item:hover img { transform: scale(1.07); }

.gallery-grid .g-item::before {
  content: "\002B";
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(245, 241, 234, 0.9);
  color: var(--color-ink);
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.gallery-grid .g-item:hover::before {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Footer developer logo ---------- */
.footer-developer {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid rgba(245, 241, 234, 0.12);
  display: flex;
  justify-content: center;
}

.footer-developer__link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  transition: opacity 0.3s var(--ease);
}

.footer-developer__link:hover { opacity: 0.75; }

.footer-developer__label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.55);
  font-weight: 500;
}

.footer-developer__logo {
  height: 54px;
  width: auto;
}

/* ---------- Back-to-top button ---------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 1100;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--color-ink);
  color: #f5f1ea;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s, background 0.4s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}

.to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-grid--6 { grid-template-columns: repeat(2, 1fr); }
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .highlight:nth-child(2) { border-right: none; }
  .highlight:nth-child(1), .highlight:nth-child(2) { border-bottom: 1px solid var(--color-line); }
  .walkthrough-placeholder { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .offer-grid { grid-template-columns: 1fr; }
  .offer-grid--6 { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: 1fr; }
  .highlight { border-right: none; border-bottom: 1px solid var(--color-line); }
  .highlight:last-child { border-bottom: none; }

  .walkthrough-placeholder { min-height: 0; }
  .walkthrough-placeholder__media,
  .walkthrough-placeholder__media img,
  .material-card,
  .material-card img { min-height: 320px; }
}

/* =========================================================
   FIXES — Schrift & Kontrast
   ========================================================= */

/* 1) Preisliste: saubere, gleichmässige Ziffern (lining + tabular),
      Preise in der Body-Schrift statt schiefer Serifen-Mediävalziffern */
.wohnungen-table {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.wohnungen-table tbody td {
  font-variant-numeric: lining-nums tabular-nums;
}

.wohnungen-table .nr {
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.05em;
}

.wohnungen-table .preis {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-ink);
  font-variant-numeric: lining-nums tabular-nums;
}

/* 2) Geschosse-Block steht hier auf HELLEM Grund — die ursprünglichen
      hellen Textfarben (für dunklen Grund) lesbar machen */
#geschosse .geschosse { border-top-color: var(--color-line); }
#geschosse .geschoss { border-bottom-color: var(--color-line); }
#geschosse .geschoss:hover { background: var(--color-bg-alt); }
#geschosse .geschoss__code { color: var(--color-accent); }
#geschosse .geschoss__title { color: var(--color-ink); }
#geschosse .geschoss__title small { color: var(--color-accent); }
#geschosse .geschoss__desc { color: var(--color-text); }

/* 3) Navigation: lange Labels (z. B. "3D Walkthrough") nicht umbrechen */
.nav__list a { white-space: nowrap; }

/* etwas engere Abstände im mittleren Breitenbereich, damit 6 Menüpunkte
   + langes Label nie überlaufen */
@media (max-width: 1240px) and (min-width: 981px) {
  .nav { gap: 1.5rem; }
  .nav__list { gap: 1.5rem; }
  .nav__list a { font-size: 0.74rem; letter-spacing: 0.14em; }
}

/* Hero-Eyebrow über heller Fassade etwas kontraststärker */
.hero__eyebrow {
  opacity: 1;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .hero__content { animation: none; }
  .gallery-grid .g-item { opacity: 1; transform: none; }
  .walkthrough-placeholder__play::after,
  .walkthrough-placeholder__content span::before { animation: none; }
}
