/* ==========================================================================
   Design System & Core Variables
   ========================================================================== */
:root {
  --primary-color: #2D5241;       /* Deep Alpine Forest Green */
  --primary-light: #4E7C66;       /* Medium Forest Sage */
  --primary-dark: #1C3328;        /* Dark Moss Green */
  --secondary-color: #C5A880;     /* Elegant Gold / Champagne Accent */
  --secondary-dark: #A68A62;      /* Gold Hover Accent */
  --text-dark: #1A2521;           /* Slate Green-Black (high contrast text) */
  --text-muted: #5F6D67;          /* Muted Green-Gray for secondary copy */
  --bg-warm: #FDFBF7;             /* Soft Warm Cream background */
  --bg-soft: #F5F7F5;             /* Sage-Sand tinted card background */
  --bg-card: #FFFFFF;             /* Crisp white for cards */
  --border-color: #E2E8E4;        /* Soft sage-tinted borders */
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-sm: 0 4px 10px rgba(45, 82, 65, 0.04);
  --shadow-md: 0 10px 30px rgba(45, 82, 65, 0.08);
  --shadow-lg: 0 20px 45px rgba(28, 51, 40, 0.12);
  --border-radius: 12px;
  --border-radius-lg: 20px;
  
  --container-width: 1200px;
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-warm);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5em;
  color: var(--primary-dark);
}

p {
  margin-bottom: 1.25rem;
}

p.lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--primary-light);
  line-height: 1.6;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
}

/* ==========================================================================
   Reusable Utilities
   ========================================================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-bg-soft {
  background-color: var(--bg-soft);
}

.grid {
  display: grid;
  gap: 2.5rem;
}

.grid-2-cols {
  grid-template-columns: 1fr 1fr;
}

.grid-3-cols {
  grid-template-columns: repeat(3, 1fr);
}

.no-gap {
  gap: 0;
}

.align-center {
  align-items: center;
}

.text-center {
  text-align: center;
}

.max-w-700 {
  max-width: 700px;
  margin: 0 auto;
}

.mt-20 { margin-top: 1.25rem; }
.mt-30 { margin-top: 1.85rem; }
.mt-40 { margin-top: 2.5rem; }
.mt-50 { margin-top: 3.15rem; }
.mt-60 { margin-top: 3.75rem; }

.border-radius-lg {
  border-radius: var(--border-radius-lg);
}

.overflow-hidden {
  overflow: hidden;
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.bg-white {
  background-color: var(--bg-card);
}

/* Badges & Accents */
.section-badge {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--secondary-dark);
  margin-bottom: 0.75rem;
}

.accent-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  background-color: var(--secondary-color);
  color: #FFFFFF;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
  margin-top: 0.75rem;
}

.text-center .section-title::after {
  margin: 0.75rem auto 0;
}

/* Custom Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.9rem 1.85rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}

.btn-primary {
  background-color: var(--primary-color);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-block {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  background-color: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 82, 65, 0.05);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.8rem 0;
  box-shadow: var(--shadow-sm);
  background-color: rgba(253, 251, 247, 0.92);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.1;
}

.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--secondary-dark);
  font-weight: 600;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-light);
}

.nav-link.active {
  color: var(--primary-color);
}

.nav-cta {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle .bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #FFFFFF;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  transform: scale(1.05);
  transition: opacity 1.5s ease-in-out, transform 8s ease-out;
}

.hero-slideshow .slide.active {
  opacity: 1;
  z-index: 2;
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 0 2rem;
  margin: 0 auto;
  text-align: center;
  margin-top: 3rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out 0.2s;
  animation-fill-mode: both;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInUp 1s ease-out 0.4s;
  animation-fill-mode: both;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  animation: fadeInUp 1s ease-out 0.6s;
  animation-fill-mode: both;
}

.hero-actions .btn-secondary {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.8);
}

.hero-actions .btn-secondary:hover {
  background-color: #FFFFFF;
  color: var(--primary-dark);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 2s infinite;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  display: block;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: #FFFFFF;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -10px);
  }
  60% {
    transform: translate(-50%, -5px);
  }
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 15px);
  }
}

/* ==========================================================================
   Welcome Section (Grüß Gott)
   ========================================================================== */
.welcome-text {
  padding-right: 2rem;
}

.signature {
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.signature-greeting {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--primary-light);
  margin-bottom: 0.25rem;
}

.signature-names {
  font-weight: 700;
  font-size: 1.1rem;
}

.welcome-image-wrapper {
  position: relative;
  padding: 1.5rem;
}

.welcome-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.welcome-image-card {
  position: absolute;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, rgba(26, 46, 36, 0.94), rgba(45, 82, 65, 0.95));
  color: #FFFFFF;
  padding: 1.6rem 1.75rem;
  border-radius: var(--border-radius-lg);
  max-width: 280px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
}

.welcome-image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  border-color: rgba(197, 168, 128, 0.4);
}

.card-badge-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.card-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(197, 168, 128, 0.2);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  border: 1px solid rgba(197, 168, 128, 0.35);
  flex-shrink: 0;
}

.card-badge-tag {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary-color);
}

.welcome-image-card .card-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0;
  font-weight: 500;
}

/* ==========================================================================
   Apartment Section (Features & Showcase)
   ========================================================================== */
.card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(45, 82, 65, 0.15);
}

.feature-card .card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--bg-soft);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.card:hover .card-icon {
  background-color: var(--primary-color);
  color: #FFFFFF;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Showcase Banner */
.showcase-img-container {
  height: 100%;
  min-height: 380px;
  overflow: hidden;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.apartment-showcase:hover .showcase-img {
  transform: scale(1.05);
}

.showcase-content {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-content h3 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.showcase-content p {
  color: var(--text-muted);
}

.feature-list {
  list-style: none;
  margin-top: 1.5rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.feature-list li i {
  color: var(--secondary-color);
  font-size: 1.1rem;
}

/* ==========================================================================
   Prices Section
   ========================================================================== */
.prices-info {
  padding-right: 3rem;
}

.price-hero-box {
  background-color: var(--primary-dark);
  color: #FFFFFF;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  margin-top: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.price-hero-box::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: rgba(197, 168, 128, 0.04);
}

.price-from {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.price-value {
  display: flex;
  align-items: baseline;
  margin-bottom: 1rem;
}

.price-value .amount {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.price-value .period {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 0.5rem;
}

.price-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  line-height: 1.6;
}

/* Services card right side */
.services-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.services-card h3 {
  font-size: 1.5rem;
  margin-bottom: 2.25rem;
  border-bottom: 2px solid var(--bg-soft);
  padding-bottom: 1rem;
}

.services-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.services-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.services-list .icon-wrap {
  width: 48px;
  height: 48px;
  background-color: rgba(197, 168, 128, 0.12);
  color: var(--secondary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.services-list h4 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--primary-dark);
}

.services-list p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   Photo Gallery Grid
   ========================================================================== */
.gallery-grid {
  column-count: 4;
  column-gap: 1.5rem;
}

.gallery-item {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background-color: #000000;
  break-inside: avoid;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: var(--transition-slow);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(28, 51, 40, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

.gallery-zoom {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #FFFFFF;
  color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  transform: scale(0.8);
  transition: var(--transition);
}

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

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-zoom {
  transform: scale(1);
}

/* More trigger item */
.gallery-more-trigger .gallery-overlay {
  opacity: 1;
  background-color: rgba(28, 51, 40, 0.75);
}

.more-content {
  text-align: center;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.more-icon {
  font-size: 2.25rem;
  color: var(--secondary-color);
}

.more-text {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.gallery-item:hover .more-overlay {
  background-color: rgba(28, 51, 40, 0.85);
}

/* ==========================================================================
   Surrounding Area & Activities
   ========================================================================== */
.activity-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(45, 82, 65, 0.15);
}

.activity-img-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.activity-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.activity-content {
  padding: 2.5rem 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.activity-icon-badge {
  position: absolute;
  top: -25px;
  right: 24px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 3px solid #FFFFFF;
  box-shadow: var(--shadow-md);
  z-index: 5;
}

/* Ensure perfect centering of FontAwesome icons in circular badges */
.card-icon i,
.icon-wrap i,
.activity-icon-badge i,
.contact-item .icon i,
.faq-icon i,
.gallery-zoom i,
.lightbox-arrow i {
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-content h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.activity-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.activity-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  border-top: 1px solid var(--bg-soft);
  padding-top: 1.25rem;
}

.activity-links li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-color);
}

.activity-links li a i {
  font-size: 0.8rem;
  color: var(--secondary-dark);
  opacity: 0.6;
  transition: var(--transition);
}

.activity-links li a:hover {
  color: var(--primary-light);
}

.activity-links li a:hover i {
  opacity: 1;
  transform: translate(3px, -3px);
}

/* ==========================================================================
   Inquiry Form & Contact details
   ========================================================================== */
.gap-60 {
  gap: 4rem;
}

.inquiry-form-wrapper {
  padding-right: 1.5rem;
}

.inquiry-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.inquiry-form .form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.inquiry-form label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.inquiry-form label .required {
  color: #C0392B;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-dark);
  transition: var(--transition);
  width: 100%;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(78, 124, 102, 0.1);
}

.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {
  color: #9AA8A2;
}

.inquiry-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%232D5241' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.15rem center;
  background-size: 14px;
  padding-right: 2.5rem;
}

/* Contact Details Right Side */
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.contact-item {
  display: flex;
  gap: 1.25rem;
}

.contact-item .icon {
  width: 50px;
  height: 50px;
  background-color: rgba(78, 124, 102, 0.08);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--primary-dark);
}

.contact-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.contact-item a {
  color: var(--text-dark);
  font-weight: 600;
}

.contact-item a:hover {
  color: var(--primary-light);
}

.contact-item .availability {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Map frame & routes link */
.map-container {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.map-container iframe {
  width: 100%;
  height: 250px;
  border: none;
  display: block;
}

.map-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--primary-color);
  color: #FFFFFF;
  padding: 0.85rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.map-link:hover {
  background-color: var(--primary-dark);
  color: #FFFFFF;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.footer-copy {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links a,
.footer-modal-btn {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-sans);
  transition: var(--transition);
}

.footer-links a:hover,
.footer-modal-btn:hover {
  color: var(--secondary-color);
}

/* ==========================================================================
   Modals (Impressum, Datenschutz)
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1100;
  overflow-y: auto;
  background-color: rgba(26, 37, 33, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 2.5rem 1rem;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-lg);
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  animation: modalReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-content.modal-lg {
  max-width: 800px;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  color: var(--primary-color);
}

.modal-header {
  padding: 2rem 2.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  font-size: 1.75rem;
  margin-bottom: 0;
}

.modal-body {
  padding: 2rem 2.5rem;
  overflow-y: auto;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.modal-body h3 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.modal-body h4 {
  font-size: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.modal-body ul {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
}

@keyframes modalReveal {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ==========================================================================
   Lightbox Gallery Overlay
   ========================================================================== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 20, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1200;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-size: 1.75rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.8;
  transition: var(--transition);
  z-index: 15;
}

.lightbox-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
  z-index: 5;
}

.lightbox-arrow:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-wrapper {
  max-width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  max-width: 100%;
  max-height: 72vh;
}

.lightbox-image-container img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 4px;
  animation: lightboxImageReveal 0.3s ease-out;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border: 4px solid #FFFFFF;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  will-change: transform, opacity;
  cursor: grab;
}

.lightbox-image-container img:active {
  cursor: grabbing;
}

.lightbox-caption-panel {
  width: 100%;
  text-align: center;
  margin-top: 1.25rem;
  color: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 650px;
  padding: 0 1rem;
}

#lightbox-caption {
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin: 0;
}

#lightbox-counter {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.35rem 1.1rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  letter-spacing: 0.05em;
  z-index: 12;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

@keyframes lightboxImageReveal {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  visibility: hidden;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* ==========================================================================
   Media Queries & Responsive Layouts
   ========================================================================== */

/* Tablets */
@media (max-width: 1024px) {
  .grid-3-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .welcome-img {
    height: 400px;
  }
  
  .welcome-image-wrapper {
    padding: 0;
    margin-top: 3rem;
  }
  
  .gallery-grid {
    column-count: 3;
  }
  
  .showcase-content {
    padding: 3rem;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .section {
    padding: 4.5rem 0;
  }
  
  .grid-2-cols,
  .grid-3-cols {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Navbar Mobile Drawer */
  .nav-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 72px; /* Navbar height */
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background-color: var(--bg-warm);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    z-index: 999;
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }
  
  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .nav-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  /* Hero typography & scroll indicator */
  .hero {
    height: 85vh;
  }

  .hero-scroll-indicator {
    bottom: 1.25rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Layout adjustments */
  .welcome-text {
    padding-right: 0;
  }
  
  .welcome-img {
    height: 320px;
  }
  
  .welcome-image-card {
    padding: 1.5rem;
    max-width: 220px;
  }
  
  .showcase-content {
    padding: 2rem;
  }
  
  .showcase-img-container {
    min-height: 250px;
  }
  
  .apartment-showcase .grid-2-cols {
    display: flex;
    flex-direction: column-reverse;
  }
  
  .prices-info {
    padding-right: 0;
  }
  
  .price-hero-box {
    padding: 2rem;
  }
  
  .price-value .amount {
    font-size: 3rem;
  }
  
  .services-card {
    padding: 2rem;
  }
  
  .gallery-grid {
    column-count: 2;
    column-gap: 1rem;
  }
  
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  .inquiry-form-wrapper {
    padding-right: 0;
  }
  
  .inquiry-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .contact-card {
    padding: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  /* Lightbox controls reposition */
  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
  
  .lightbox-arrow {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .lightbox-prev {
    left: 0.5rem;
  }
  
  .lightbox-next {
    right: 0.5rem;
  }
  
  .lightbox-caption-panel {
    margin-top: 1rem;
    padding: 0 0.5rem;
  }
  
  #lightbox-caption {
    font-size: 0.85rem;
    line-height: 1.45;
  }
  
  #lightbox-counter {
    top: 1.15rem;
    font-size: 0.8rem;
    padding: 0.3rem 0.9rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    column-count: 1;
  }
}

/* ==========================================================================
   FAQ Accordion Section
   ========================================================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 3.15rem auto 0;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: -2px;
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-soft);
  color: var(--primary-color);
  font-size: 0.9rem;
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  background-color: var(--primary-color);
  color: #FFFFFF;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-content {
  padding: 0 2rem 1.5rem;
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.faq-answer-content p {
  margin-bottom: 0;
}

.faq-answer-content strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* ==========================================================================
   Flatpickr Custom Calendar Theme (iOS & Mobile Past Dates Grayed Out)
   ========================================================================== */
.flatpickr-calendar {
  border-radius: 12px !important;
  box-shadow: 0 15px 35px rgba(15, 23, 20, 0.25) !important;
  border: 1px solid var(--border-color) !important;
  font-family: var(--font-sans) !important;
  background: var(--bg-card) !important;
  overflow: hidden;
}

.flatpickr-months {
  background: var(--primary-dark) !important;
  color: #FFFFFF !important;
  padding: 0.5rem 0;
}

.flatpickr-months .flatpickr-month {
  color: #FFFFFF !important;
  background: transparent !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

.flatpickr-months .flatpickr-prev-month, 
.flatpickr-months .flatpickr-next-month {
  fill: #FFFFFF !important;
  color: #FFFFFF !important;
  padding: 10px !important;
}

.flatpickr-weekday {
  color: var(--primary-color) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
}

.flatpickr-day {
  color: var(--text-dark) !important;
  border-radius: 8px !important;
}

.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange, 
.flatpickr-day.selected:focus, 
.flatpickr-day.selected:hover {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #FFFFFF !important;
  font-weight: 700;
}

.flatpickr-day.today {
  border-color: var(--secondary-color) !important;
  font-weight: 700;
}

.flatpickr-day.flatpickr-disabled, 
.flatpickr-day.flatpickr-disabled:hover {
  color: rgba(150, 150, 150, 0.35) !important;
  text-decoration: line-through !important;
  background: transparent !important;
  cursor: not-allowed !important;
}

/* ==========================================================================
   Two-Click Google Maps & Privacy Consent Styles
   ========================================================================== */
.maps-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 250px;
  background-color: var(--bg-soft);
  text-align: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.maps-placeholder-content {
  max-width: 480px;
  margin: 0 auto;
}

.maps-placeholder-icon {
  font-size: 2.2rem;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
}

.maps-placeholder h3 {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
  font-family: var(--font-serif);
}

.maps-placeholder p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.maps-placeholder button {
  margin-bottom: 0.5rem;
}

.maps-direct-link {
  display: block;
  font-size: 0.8rem;
  color: var(--primary-light);
  text-decoration: underline;
}

.maps-direct-link:hover {
  color: var(--primary-color);
}

.maps-iframe-container {
  width: 100%;
  height: 250px;
}

/* ==========================================================================
   Form Privacy Checkbox Styles
   ========================================================================== */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
  cursor: pointer;
}

.checkbox-label .required {
  color: #c93b2b;
  font-weight: bold;
}

.link-btn {
  background: none;
  border: none;
  color: var(--primary-light);
  text-decoration: underline;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  display: inline;
}

.link-btn:hover {
  color: var(--primary-color);
}
