/* HEADER (Default = transparent für Index. .scrolled wird per JS getoggelt. .solid für Subseiten dauerhaft solide) */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background 0.4s ease, padding 0.4s ease;
}

header.scrolled,
header.solid {
  background: rgba(0, 35, 73, 0.96);
  backdrop-filter: blur(12px);
  padding: 18px 60px;
}

/* SECTIONS */
section { padding: 120px 60px; }

/* HERO (Index) */
.hero {
  height: 100vh;
  min-height: 720px;
  background-color: var(--sir-blue);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/property-01/hero.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,35,73,0.55) 0%, rgba(0,35,73,0.55) 50%, rgba(0,35,73,0.85) 100%),
    radial-gradient(ellipse at center, rgba(0,35,73,0.25) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 0 40px;
  max-width: 900px;
  animation: fadeUp 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* OBJEKT-HERO */
.obj-hero {
  height: 88vh;
  min-height: 700px;
  position: relative;
  overflow: hidden;
  background: var(--sir-blue);
}

.obj-hero-img {
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/property-01/hero.jpg');
  background-size: cover;
  background-position: center;
}

.obj-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,35,73,0.30) 0%, rgba(0,35,73,0.10) 35%, rgba(0,35,73,0.75) 70%, rgba(0,35,73,0.92) 100%);
}

.obj-hero-content {
  position: absolute;
  bottom: 80px;
  left: 60px;
  right: 60px;
  color: var(--sir-white);
  z-index: 2;
}

/* ABOUT */
.about-section { background: var(--sir-light-gray); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.about-img {
  position: relative;
  height: 540px;
  overflow: hidden;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* STATS */
.stats-section {
  background: var(--sir-white);
  padding: 100px 60px;
  border-top: 1px solid rgba(0,35,73,0.1);
  border-bottom: 1px solid rgba(0,35,73,0.1);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1280px;
  margin: 0 auto;
}

/* PROPERTY-SECTION (Index) */
.property-section { background: var(--sir-white); }

.property-header {
  text-align: center;
  margin-bottom: 80px;
}

.property-header .section-title {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.property-header-note {
  margin-top: 18px;
  color: var(--sir-text-gray);
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* UPCOMING */
.upcoming-section { background: var(--sir-white); }

.upcoming-header {
  text-align: center;
  margin-bottom: 64px;
}

.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto 64px;
}

/* NEWSLETTER */
.newsletter-section {
  background: var(--sir-blue);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/property-01/aerial-park.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.10;
}

.newsletter-content {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

/* CONTACT */
.contact-section { background: var(--sir-light-gray); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

/* QUICK FACTS (Objekt) */
.quick-facts {
  background: var(--sir-white);
  padding: 56px 60px;
  border-bottom: 1px solid rgba(0,35,73,0.1);
}

.quick-facts-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  max-width: 1280px;
  margin: 0 auto;
  gap: 0;
}

/* DESCRIPTION (Objekt) */
.description-section {
  background: var(--sir-light-gray);
  padding: 120px 60px;
}

.description-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 80px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: start;
}

.obj-sidebar {
  position: sticky;
  top: 100px;
}

/* GALERIE */
.gallery-section {
  background: var(--sir-blue);
  padding: 120px 60px;
}

.gallery-header {
  text-align: center;
  margin-bottom: 64px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

/* LAGE */
.location-section {
  background: var(--sir-light-gray);
  padding: 120px 60px;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
}

.location-grid--single {
  grid-template-columns: 1fr;
  max-width: 880px;
}

/* INQUIRY */
.inquiry-section {
  background: var(--sir-blue);
  padding: 140px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.inquiry-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-row > .form-group { margin-bottom: 0; }
.form-row + .form-row,
.form-row + .form-group,
.form-group + .form-row { margin-top: 20px; }

/* ENERGIE */
.energy-section {
  background: var(--sir-white);
  padding: 80px 60px;
  border-bottom: 1px solid rgba(0,35,73,0.08);
}

.energy-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

/* FOOTER */
footer {
  background: var(--sir-blue);
  color: var(--sir-white);
  padding: 80px 60px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  max-width: 1280px;
  margin: 0 auto 60px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 28px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
}

/* DISCLAIMER (Objekt) */
.disclaimer {
  background: var(--sir-white);
  padding: 48px 60px;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
  color: #6F6F6F;
  max-width: 1080px;
  margin: 0 auto;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  header { padding: 20px 32px; }
  header.scrolled, header.solid { padding: 16px 32px; }

  section { padding: 80px 32px; }
  .stats-section { padding: 60px 32px; }
  footer { padding: 60px 32px 32px; }

  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .stat-cell:nth-child(2)::after { display: none; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-img { height: 420px; }
  .contact-img { height: 380px; }
  .property-grid { grid-template-columns: 1fr; gap: 40px; }
  .property-info { padding: 36px 32px 36px; }
  .upcoming-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }

  .obj-hero-content { left: 32px; right: 32px; bottom: 40px; }
  .quick-facts { padding: 40px 32px; }
  .quick-facts-row { grid-template-columns: repeat(3, 1fr); gap: 32px 0; }
  .qf-cell:nth-child(3n)::after { display: none; }

  .description-section, .gallery-section, .location-section, .inquiry-section { padding: 80px 32px; }
  .description-grid, .location-grid { grid-template-columns: 1fr; gap: 60px; }
  .location-image { height: 380px; }
  .obj-sidebar { position: static; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }

  .form-row { grid-template-columns: 1fr; gap: 20px; }
  .form-row + .form-row,
  .form-row + .form-group,
  .form-group + .form-row { margin-top: 20px; }

  .energy-section { padding: 56px 32px; }
  .energy-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .energy-cell:nth-child(2n)::after { display: none; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-item:nth-child(odd) { padding-right: 0; border-right: none; }
  .feature-item:nth-child(even) { padding-left: 0; }
}

@media (max-width: 640px) {
  /* HEADER — kompakter, Back-Link auf Mobile aus (Logo führt nach Hause) */
  header { padding: 14px 18px; }
  header.scrolled, header.solid { padding: 12px 18px; }
  .header-right { gap: 18px; }
  .header-right .header-divider, .header-right .header-phone { display: none; }
  .back-link { display: none; }

  .logo-img { height: 25px; }
  .logo-img-footer { height: 31px; }

  /* Section-Padding einheitlicher Rhythmus */
  section { padding: 64px 20px; }
  .description-section, .location-section, .inquiry-section { padding: 64px 20px; }
  .gallery-section { padding: 64px 0 56px; }
  .quick-facts { padding: 36px 0; }
  .energy-section { padding: 48px 20px; }
  .stats-section, footer { padding: 56px 20px; }

  .property-data { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* HERO — svh + safer min-height, Content padding tighter */
  .hero {
    height: 88vh;
    height: 88svh;
    min-height: 480px;
  }
  .hero-content { padding: 0 22px; }

  /* "OFFIZIELLER LAUNCH JUNI 2026" — auf engen Screens umbrechbar */
  .hero-launch {
    font-size: 15px;
    letter-spacing: 0.22em;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  /* HERO-SCROLL — kompakter, nicht in Content-Bereich ragen */
  .hero-scroll { bottom: 24px; gap: 8px; }
  .scroll-line { height: 28px; }

  /* PROPERTY-CARD INFO auf Mobile etwas straffer */
  .property-info { padding: 28px 22px 32px; }

  /* ABOUT + CONTACT — Image-Heights mobile-tauglich */
  .about-img { height: 300px; }
  .contact-img { height: 300px; }

  /* OBJ-HERO — svh, kompakteres Padding */
  .obj-hero {
    height: 70vh;
    height: 70svh;
    min-height: 440px;
  }
  .obj-hero-content { left: 22px; right: 22px; bottom: 28px; }
  .obj-hero-meta { flex-wrap: wrap; gap: 12px; row-gap: 6px; font-size: 12px; }

  /* LOCATION-IMAGE — kompakter */
  .location-image { height: 320px; }

  /* ============================================================
     MOBILE-CAROUSEL: Quick-Facts (7 Cells)
     statt 4-zeiligem 2-Col-Grid → 1 Zeile horizontal scrollbar
     mit Snap-Points. Native Touch, kein JS.
     ============================================================ */
  .quick-facts-row {
    display: flex;
    grid-template-columns: none;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 20px;
    scroll-padding-left: 20px;
  }
  .quick-facts-row::-webkit-scrollbar { display: none; }
  .qf-cell {
    flex: 0 0 auto;
    min-width: 130px;
    scroll-snap-align: center;
    padding: 16px 22px;
  }
  .qf-cell::after { display: none !important; }
  .qf-cell + .qf-cell {
    border-left: 1px solid rgba(0,35,73,0.10);
  }

  /* ============================================================
     MOBILE-CAROUSEL: Gallery (18 Items)
     statt 1-Col-Stack mit 18 Bildern (= 18 Bildhöhen Scroll)
     → horizontal swipebar mit Peek auf nächstes Bild + Counter
     ============================================================ */
  .gallery-grid {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 20px 24px;
    scroll-padding-left: 20px;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-item {
    flex: 0 0 86%;
    scroll-snap-align: start;
    aspect-ratio: 4/3;
    height: auto !important;
  }
  .gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    aspect-ratio: 4/3;
  }
  /* Subtiler Swipe-Hinweis am Ende der Galerie */
  .gallery-section::after {
    content: '←  durchwischen  →';
    display: block;
    text-align: center;
    margin-top: 16px;
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
  }

  /* ============================================================
     MOBILE-CAROUSEL: Upcoming-Cards (Index)
     statt 3 gestapelten Cards → horizontal swipebar
     ============================================================ */
  .upcoming-grid {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 20px;
    scroll-padding-left: 20px;
    margin-bottom: 32px;
  }
  .upcoming-grid::-webkit-scrollbar { display: none; }
  .upcoming-card {
    flex: 0 0 78%;
    height: 320px;
    scroll-snap-align: start;
  }
  .upcoming-header { margin-bottom: 32px; padding: 0 20px; }

  /* Energy-Section: 2-Col-Grid bleibt, aber kompakter */
  .energy-grid { gap: 16px 0; }

  /* Newsletter: vertikal stapeln, Submit volle Breite */
  .newsletter-form {
    flex-direction: column;
    border-bottom: none;
    gap: 16px;
    padding-bottom: 0;
    align-items: stretch;
  }
  .newsletter-input {
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.18);
    padding: 16px 18px;
    font-size: 15px;
  }
  .newsletter-input:focus { border-color: var(--sir-gold); background: rgba(0,0,0,0.26); }
  .newsletter-submit {
    border: 1px solid var(--sir-gold-light);
    padding: 16px 24px;
    color: var(--sir-gold-light);
    justify-content: center;
    font-size: 12px;
  }
  .newsletter-submit:hover { background: var(--sir-gold-light); color: var(--sir-blue); }

  /* Tap-Target: Select etwas größer */
  .form-select { padding-top: 16px; padding-bottom: 16px; }

  /* Footer-Tagline & Logo: zentriert */
  .footer-grid > div:first-child { text-align: left; }
  .footer-tagline { max-width: 100%; }

  /* Description-Grid: Sidebar nach unten, weniger Gap */
  .description-grid { gap: 36px; }
  .obj-sidebar { position: static; }

  /* Section-Header & Titles auf Mobile straffen */
  .gallery-header, .upcoming-header { margin-bottom: 32px !important; }
  .description-content .description-title,
  .location-title, .gallery-title, .inquiry-title {
    font-size: clamp(28px, 7vw, 36px) !important;
    margin-bottom: 20px !important;
  }
  .description-text { font-size: 16px; }
  .description-text p { margin-bottom: 18px; }
  .description-pullquote {
    font-size: 18px !important;
    margin: 24px 0 !important;
    padding: 20px 0 !important;
  }

  /* Feature-Grid: kompakter */
  .feature-grid { gap: 0; margin-top: 32px; }
  .feature-item { padding: 12px 0; font-size: 14px; }

  /* CTA-Box & Agent-Card: weniger Padding */
  .cta-box { padding: 28px 24px; }
  .agent-card { padding: 24px; }

  /* Upcoming-Card etwas kompakter */
  .upcoming-card { height: 280px; }
}

/* ============================================================
   PREFERS-REDUCED-MOTION: Carousels respektieren OS-Setting
   Smooth-Scroll wird zu instant-Snap
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .gallery-grid,
  .quick-facts-row,
  .upcoming-grid {
    scroll-behavior: auto;
  }
}
