/* ═══════════════════════════════════════════════════════════════════════════
   SKYLINE RESIDENZ SALZBURG — Design System
   Inspired by: Apple.com minimalism
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-black:   #1d1d1f;
  --c-dark:    #2c2c2e;
  --c-mid:     #6e6e73;
  --c-light:   #d2d2d7;
  --c-ghost:   #EBEBEB;   /* Hellgrau — Hintergrund/Flächen */
  --c-white:   #ffffff;
  --c-gold:    #CCA000;   /* Gold — Akzent/CTA */
  --c-gold-lt: #e0b81e;
  --c-navy:    #001D3D;   /* Nachtblau — Navigation/Headlines */

  --f-serif:  'Josefin Sans', 'Helvetica Neue', Arial, sans-serif;  /* Headlines */
  --f-sans:   'Outfit', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;  /* Fließtext */

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);

  --nav-h: 64px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--f-sans);
  color: var(--c-black);
  background: var(--c-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Prevent flash behind the fixed nav before the hero paints */
html { background: var(--c-white); }

/* ── Typography ───────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-gold);
}

h1, h2, h3 { font-family: var(--f-serif); font-weight: 400; line-height: 1.1; color: var(--c-navy); }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }

p {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.85;
  color: var(--c-mid);
}

/* ── Navigation — white bar, black elements, links right-aligned ──────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 40px;
  background: var(--c-white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,29,61,0.10);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
  text-decoration: none;
}

.logo-line1 {
  font-family: var(--f-serif);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--c-navy);
}

.logo-line2 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 4.5px;
  text-transform: uppercase;
  color: var(--c-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;        /* pushes links + CTA to the right */
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-transform: none;
  text-decoration: none;
  color: var(--c-black);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--c-gold); }

.btn-nav {
  padding: 10px 24px;
  border: none;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: var(--c-gold);
  color: var(--c-navy) !important;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--c-gold-lt); transform: translateY(-1px); }

/* ── Mobile hamburger ─────────────────────────────────────────────────────── */
.nav-mobile {
  display: none;
  align-items: center;
  gap: 16px;
  justify-self: end;
}

.btn-nav-mobile {
  padding: 8px 18px;
  border: none;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
  background: var(--c-gold);
  color: var(--c-navy);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-nav-mobile:hover { background: var(--c-gold-lt); }

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--c-black);
  border-radius: 2px;
  transition: background 0.3s, transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu drawer — hidden on desktop, only rendered on mobile */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px 32px 32px;
  transform: translateY(-130%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.4s var(--ease-out), visibility 0s 0.4s;
  z-index: 999;
  border-bottom: 1px solid var(--c-light);
}
.mobile-menu.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.4s var(--ease-out), visibility 0s 0s;
}
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 14px;
  font-family: var(--f-sans);
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--c-black);
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}
.mobile-menu a:last-child { border-bottom: none; }

/* ── Hero (Video) ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  margin-top: var(--nav-h);                 /* white nav sits above the video */
  height: calc(100svh - var(--nav-h));
  min-height: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--c-navy);
  background-image: url('/static/images/DJI_20260523064833_0560_D.jpg');
  background-size: cover;
  background-position: center 40%;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Subtle grain overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,29,61,0.62) 0%,
    rgba(0,29,61,0.28) 50%,
    rgba(0,29,61,0.20) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-location {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--c-white);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  text-shadow: 0 2px 24px rgba(0,29,61,0.45);
}

.hero-divider {
  width: 72px;
  height: 3px;
  background: var(--c-gold);
  margin: 28px auto;
}

.hero-sub {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  color: var(--c-gold);
  letter-spacing: 2px;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 700;
}

/* Scroll-Aufforderung */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.hero-scroll-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--c-gold);
  text-shadow: 0 0 20px rgba(204,160,0,0.4);
}

.hero-scroll-line {
  width: 2px;
  height: 56px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--c-gold);
  animation: scrollHint 2s var(--ease-out) infinite;
}

@keyframes scrollHint {
  0%   { top: -50%; }
  60%  { top: 100%; }
  100% { top: 100%; }
}


/* ── Ticker ───────────────────────────────────────────────────────────────── */
.ticker-wrap {
  background: var(--c-black);
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid #2a2a2a;
}

.ticker-track {
  display: flex;
  gap: 0;
  animation: tickerScroll 40s linear infinite;
  width: max-content;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
  white-space: nowrap;
}

.ticker-label {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--c-gold);
  font-weight: 600;
}

.ticker-value {
  font-family: var(--f-serif);
  font-size: 15px;
  color: rgba(255,255,255,0.8);
}

.ticker-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--c-gold);
  opacity: 0.5;
  flex-shrink: 0;
}

/* ── Sections shared ──────────────────────────────────────────────────────── */
section { padding: 120px 40px; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-number {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-light);
  margin-bottom: 8px;
}

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--c-gold);
  margin: 20px 0 32px;
}

/* ── Reveal animations ─────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── 0.1 Lage ─────────────────────────────────────────────────────────────── */
#lage { background: var(--c-white); }

/* Blocksatz für alle Fließtexte der Lage-Sektion */
#lage p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.lage-intro {
  max-width: 100%;
  margin-top: 8px;
}

#lage .section-inner > h2 {
  max-width: 100%;
}

.lage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 64px;
}

.lage-block { margin-bottom: 64px; }
.lage-block:last-child { margin-bottom: 0; }

.lage-block h3 {
  margin-bottom: 16px;
  color: var(--c-navy);
}

/* Bullet-Liste statt Tabelle — leicht lesbar, kompakt */
.lage-list {
  list-style: none;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lage-list li {
  position: relative;
  padding-left: 22px;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.5;
  color: var(--c-black);
}

.lage-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 2px;
  background: var(--c-gold);
}

/* "mehr…" Dropdown */
.more { margin-top: 18px; }

.more summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: none;
  color: var(--c-gold);
  user-select: none;
  transition: color 0.2s;
}
.more summary:hover { color: var(--c-navy); }
.more summary::-webkit-details-marker { display: none; }
.more summary::after {
  content: '+';
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}
.more[open] summary::after { content: '−'; }

.more p {
  margin-top: 14px;
  padding-left: 16px;
  border-left: 2px solid var(--c-ghost);
  font-size: 14px;
}

.lage-visual {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
  background: var(--c-ghost);
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('/static/images/DJI_20260523064129_0547_D.jpg');
  background-size: cover;
  background-position: center;
}

.lage-map-placeholder {
  text-align: center;
  color: var(--c-light);
}
.lage-map-placeholder svg { opacity: 0.4; margin-bottom: 12px; }
.lage-map-placeholder p { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }

/* ── O.2 Wohnkonzept ──────────────────────────────────────────────────────── */
#wohnkonzept {
  background: var(--c-ghost);
  padding-bottom: 0;
}

.gallery-intro {
  max-width: 640px;
  margin-bottom: 64px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 280px;
  gap: 4px;
}

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--c-light);
}

.gallery-item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 5; }
.gallery-item:nth-child(3) { grid-column: span 5; }
.gallery-item:nth-child(4) { grid-column: span 4; }
.gallery-item:nth-child(5) { grid-column: span 4; }
.gallery-item:nth-child(6) { grid-column: span 4; }
.gallery-item:nth-child(7) { grid-column: span 6; }
.gallery-item:nth-child(8) { grid-column: span 6; }
.gallery-item:nth-child(9) { grid-column: span 6; }
.gallery-item:nth-child(10) { grid-column: span 6; }

.gallery-img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-out);
}

.gallery-item:hover .gallery-img-bg { transform: scale(1.04); }

.gallery-item-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  color: var(--c-white);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 1;
  transition: opacity 0.3s;
}

.gallery-credit {
  text-align: right;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(0,0,0,0.35);
  padding: 10px 0 8px;
}

/* ── Lightbox ──────────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s 0.3s;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s;
}
.lb-img-wrap {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
  user-select: none;
}
.lb-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color 0.2s;
}
.lb-close:hover { color: var(--c-gold); }
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 36px;
  cursor: pointer;
  padding: 16px;
  line-height: 1;
  transition: color 0.2s;
  user-select: none;
}
.lb-arrow:hover { color: var(--c-gold); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-label {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-gold);
}
.lb-counter {
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.35);
  margin-top: 6px;
}

@media (max-width: 900px) {
  .lb-arrow {
    bottom: 24px;
    top: auto;
    transform: none;
    font-size: 28px;
    padding: 16px 24px;
    background: rgba(255,255,255,0.08);
    border-radius: 50px;
    color: rgba(255,255,255,0.9);
  }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .lb-close {
    top: 16px;
    right: 16px;
    font-size: 20px;
    padding: 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
  }
  .lb-img-wrap {
    max-width: 100vw;
    max-height: 70vh;
  }
  .lb-img {
    max-width: 100vw;
    max-height: 70vh;
  }
}

/* Real gallery images
   1 Residenz (Hauptbild) · 2 Terrasse · 3 Wohnbereich
   4 SPA · 5 Sauna · 6 Lift
   7 Wohnzimmer · 8 Weinkeller
   9 Schlafzimmer · 10 Bad */
.gallery-item:nth-child(1) .gallery-img-bg { background-image: url('/static/images/DJI_20260523064833_0560_D.webp'); background-position: center 40%; }
.gallery-item:nth-child(2) .gallery-img-bg { background-image: url('/static/images/A7407406.webp'); background-position: center; }
.gallery-item:nth-child(3) .gallery-img-bg { background-image: url('/static/images/A7407367.webp'); background-position: center 30%; }
.gallery-item:nth-child(4) .gallery-img-bg { background-image: url('/static/images/A7407192.webp'); background-position: center; }
.gallery-item:nth-child(5) .gallery-img-bg { background-image: url('/static/images/A7407210.webp'); background-position: center; }
.gallery-item:nth-child(6) .gallery-img-bg { background-image: url('/static/images/A7407502.webp'); background-position: center; }
.gallery-item:nth-child(7) .gallery-img-bg { background-image: url('/static/images/A7407452.webp'); background-position: center; }
.gallery-item:nth-child(8) .gallery-img-bg { background-image: url('/static/images/A7407508.webp'); background-position: center; }
.gallery-item:nth-child(9) .gallery-img-bg { background-image: url('/static/images/A7407326.webp'); background-position: center; }
.gallery-item:nth-child(10) .gallery-img-bg { background-image: url('/static/images/A7407319.webp'); background-position: center; }

/* ── 0.3 Architektur ──────────────────────────────────────────────────────── */
#architektur { background: var(--c-white); }

.arch-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: start;
  margin-top: 56px;
}

.arch-group { margin-bottom: 48px; }
.arch-group:last-child { margin-bottom: 0; }

.arch-group-title {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-gold);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-gold);
}

/* Moderne, gut lesbare Tabelle mit Zebra-Streifen */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.data-table tr:nth-child(odd) td { background: #f6f6f6; }

.data-table td {
  padding: 13px 18px;
  font-size: 14px;
  line-height: 1.5;
  vertical-align: top;
}

.data-table td:first-child {
  color: var(--c-dark);
  width: 44%;
}

.data-table td:last-child {
  color: var(--c-navy);
  font-weight: 600;
}

.arch-visual {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  background-image: url('/static/images/A7407263_v2.webp');
  background-size: cover;
  background-position: 30% center;   /* Ausschnitt leicht nach links → mehr Berg sichtbar */
}

/* ── Preis Banner ─────────────────────────────────────────────────────────── */
.price-banner {
  background: var(--c-navy);
  padding: 80px 40px;
  text-align: center;
}

.price-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 16px;
}

.price-value {
  font-family: var(--f-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--c-white);
  font-weight: 400;
}

.price-note {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 10px;
  letter-spacing: 0.5px;
}

/* ── Contact section — Nachtblau ──────────────────────────────────────────── */
#contact {
  background: var(--c-navy);
  padding: 120px 40px;
}

#contact .contact-headline { color: var(--c-white); }
#contact .price-label { color: var(--c-gold); text-align: left; margin-bottom: 6px; }
#contact .price-value {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--c-white);
  text-align: left;
  line-height: 1.1;
}
#contact .price-note { text-align: left; font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; }
#contact p { color: rgba(255,255,255,0.75); }
#contact label { color: rgba(255,255,255,0.65); }
#contact .contact-sub { color: rgba(255,255,255,0.55); }
#contact .step-question { color: var(--c-white); }
#contact .step-hint { color: rgba(255,255,255,0.6); }
#contact .step-dot { background: rgba(255,255,255,0.25); }
#contact .step-dot.active { background: var(--c-gold); }
#contact .step-dot.done { background: var(--c-white); }
#contact .step-line { background: rgba(255,255,255,0.2); }
#contact .btn-back { color: rgba(255,255,255,0.6); }
#contact .btn-back:hover { color: var(--c-white); }
#contact .btn-next { background: var(--c-gold); color: var(--c-navy); }
#contact .btn-next:hover { background: var(--c-gold-lt); }
#contact .form-success h3 { color: var(--c-white); }
#contact .form-success p { color: rgba(255,255,255,0.75); }
#contact .field-hint.error { color: #ff8a7a; }
#contact .field-hint.ok    { color: #6fdc9c; }
#contact .field-hint.error::before { background: #ff8a7a; }
#contact .field-hint.ok::before    { background: #6fdc9c; }

.contact-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-headline { font-size: clamp(2rem, 3.5vw, 3rem); color: var(--c-black); }
.contact-desc { margin-top: 20px; line-height: 1.8; }
.contact-sub {
  margin-top: 32px;
  padding-top: 32px;
  border-top: none;
  position: relative;
  font-size: 12px;
  color: var(--c-mid);
  line-height: 1.8;
  font-style: normal;
}
.contact-sub::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--c-gold);
}

/* ── Form ─────────────────────────────────────────────────────────────────── */
.form-desktop { display: block; }
.form-mobile  { display: none; }

.form-group { margin-bottom: 20px; }

label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-mid);
  margin-bottom: 8px;
}

input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--c-light);
  border-radius: 2px;
  font-family: var(--f-sans);
  font-size: 14px;
  color: var(--c-black);
  background: var(--c-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(204,160,0,0.18);
}

/* Validation states */
input.invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.08);
}
input.valid {
  border-color: #27ae60;
  box-shadow: 0 0 0 3px rgba(39,174,96,0.08);
}

.field-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.3px;
  margin-top: 6px;
  min-height: 16px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
}
.field-hint.visible {
  opacity: 1;
  transform: translateY(0);
}
.field-hint.error { color: #c0392b; }
.field-hint.ok    { color: #27ae60; }
.field-hint::before {
  content: '';
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.field-hint.error::before { background: #c0392b; }
.field-hint.ok::before    { background: #27ae60; }

textarea { resize: vertical; min-height: 100px; }

/* Telefon: Vorwahl-Dropdown + Nummer */
.phone-row {
  display: flex;
  gap: 8px;
}
.prefix-select {
  width: 118px;
  flex-shrink: 0;
}
.phone-row input { flex: 1; min-width: 0; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23CCA000' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--c-gold);
  color: var(--c-navy);
  border: none;
  border-radius: 2px;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 8px;
}
.btn-submit:hover { background: var(--c-gold-lt); transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.visible { display: block; }
.form-success h3 { font-size: 1.5rem; margin-bottom: 12px; }
.form-success p { font-size: 14px; color: var(--c-mid); }

/* ── Mobile form steps ────────────────────────────────────────────────────── */
.form-steps {
  display: none;
}

.form-step {
  display: none;
  animation: stepIn 0.4s var(--ease-out);
}
.form-step.active { display: block; }

@keyframes stepIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-light);
  transition: background 0.3s, transform 0.3s;
}
.step-dot.active { background: var(--c-gold); transform: scale(1.3); }
.step-dot.done   { background: var(--c-navy); }

.step-line {
  flex: 1;
  height: 1px;
  background: var(--c-light);
}

.step-question {
  font-family: var(--f-serif);
  font-size: 1.6rem;
  color: var(--c-black);
  margin-bottom: 8px;
  line-height: 1.3;
}
.step-hint {
  font-size: 13px;
  color: var(--c-mid);
  margin-bottom: 24px;
}

.btn-next, .btn-back {
  padding: 14px 28px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.btn-next {
  background: var(--c-navy);
  color: var(--c-white);
  width: 100%;
  margin-top: 8px;
}
.btn-next:hover { background: #0a2e55; }

.btn-back {
  background: none;
  color: var(--c-mid);
  font-size: 12px;
  padding: 12px 0;
}
.btn-back:hover { color: var(--c-black); }

.step-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  background: var(--c-navy);
  padding: 48px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}
.footer-logo-line1 {
  font-family: var(--f-serif);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--c-white);
}
.footer-logo-line2 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 4.5px;
  text-transform: uppercase;
  color: var(--c-gold);
}

.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.5px;
}

/* ── Desktop only: constrain lage header to left column width ─────────────── */
@media (min-width: 901px) {
  .lage-intro { max-width: calc(50% - 40px); }
  #lage .section-inner > h2 { max-width: calc(50% - 40px); }
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  section { padding: 80px 24px; }

  nav { padding: 0 20px; gap: 16px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-mobile { display: flex; margin-left: auto; }
  .mobile-menu { display: block; } /* re-enable; visibility:hidden still hides it until .open */

  .hero { padding: 0 24px 72px; }
  .hero-scroll { bottom: 22px; }
  .hero-scroll-line { height: 36px; }

  .lage-grid { grid-template-columns: 1fr; gap: 48px; }
  .lage-visual { position: static; aspect-ratio: 4/3; }

  .arch-layout { grid-template-columns: 1fr; gap: 48px; }
  .arch-visual { position: static; aspect-ratio: 4/3; }
  .data-table td { padding: 12px 14px; font-size: 13.5px; }

  .contact-inner { grid-template-columns: 1fr; gap: 48px; }

  /* Mobile form: show steps, hide desktop form */
  .form-desktop { display: none; }
  .form-steps   { display: block; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }
  .gallery-item { grid-column: span 1 !important; grid-row: span 1 !important; }
  .gallery-item-label { opacity: 1; }

  .price-banner { padding: 60px 24px; }

  footer { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 500px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { grid-row: span 1 !important; }

  .hero h1 { font-size: 2rem; }
  .hero-divider { margin: 20px auto; }

  /* Blocksatz kann auf sehr schmalen Screens unruhig wirken → linksbündig */
  #lage p { text-align: left; }
}
