/* ============================================
   LIMES LIVING - Global Styles
   Basierend auf Style Guide
   Hauptfarbe: #0b4033 (Dunkelgrün)
   ============================================ */

/* Google Fonts - Source Serif für Schmuckschrift */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@400;600&display=swap');

/* Isidora Font Family */
@font-face {
  font-family: 'Isidora';
  src: url('../fonts/isidora-alt-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Isidora';
  src: url('../fonts/isidora-medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Isidora';
  src: url('../fonts/isidora-semi-bold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Isidora';
  src: url('../fonts/isidora-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* CSS Variables - Gemäß Style Guide */
:root {
  /* Grundfarben */
  --color-primary: #0b4033;
  --color-primary-light: #0d4d3d;
  --color-primary-dark: #083028;
  --color-turquoise: #79b7b7;
  --color-rust: #9a341c;

  /* Akzentfarben */
  --color-secondary: #e78a84;
  --color-tertiary: #fcca7c;
  --color-coral: #ea7071;

  /* Funktionale Farben */
  --color-black: #000000;
  --color-beige: #e3e3d9;
  --color-light-beige: #f1f0eb;

  /* Legacy-Kompatibilität */
  --color-accent: #e3e3d9;
  --color-white: #ffffff;
  --color-light-gray: #f1f0eb;
  --color-medium-gray: #e3e3d9;
  --color-dark-gray: #666666;
  --color-text: #000000;
  --color-text-light: #666666;

  /* Schriften gemäß Style Guide */
  --font-primary: 'Isidora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Isidora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-decorative: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  --border-radius: 8px;
  --border-radius-lg: 16px;

  --transition: all 0.3s ease;

  --container-max: 1200px;
  --container-padding: 24px;
}

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

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

body {
  font-family: var(--font-primary);
  font-weight: 500; /* Isidora Medium für Fließtexte */
  color: var(--color-text);
  line-height: 1.7; /* Erhöhter Zeilenabstand für bessere Lesbarkeit */
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography - Gemäß Style Guide */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600; /* Isidora SemiBold für Überschriften */
  line-height: 1.2;
  color: var(--color-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Section Spacing */
section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-light);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: #e5b866;
  border-color: #e5b866;
  color: var(--color-primary);
}

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

.btn-coral:hover {
  background-color: rgba(231, 138, 132, 0.25);
  border-color: var(--color-secondary);
  color: var(--color-white);
  backdrop-filter: blur(8px);
}

.btn-secondary-outline {
  background-color: rgba(252, 202, 124, 0.25);
  color: var(--color-white);
  border: 2px solid var(--color-tertiary);
  backdrop-filter: blur(8px);
}

.btn-secondary-outline:hover {
  background-color: var(--color-tertiary);
  color: var(--color-primary);
  border-color: var(--color-tertiary);
}

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

.btn-white:hover {
  background-color: var(--color-light-gray);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-desktop {
  display: block;
}

.logo-mobile {
  display: none;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.nav-main a {
  padding: 10px 16px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--color-text);
  border-radius: var(--border-radius);
  position: relative;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--color-primary);
  background-color: var(--color-light-gray);
}

.nav-main a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background-color: var(--color-primary);
}

.nav-cta {
  margin-left: 16px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition);
}

@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
  }

  .nav-main {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-main.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-main a {
    width: 100%;
    text-align: center;
    padding: 16px;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 16px;
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
  }
}

/* Mobile Header - Logo ohne Text */
@media (max-width: 768px) {
  .header {
    box-shadow: none;
  }

  .header-inner {
    padding: 6px 16px 6px;
  }

  .logo-desktop {
    display: none;
  }

  .logo .logo-mobile {
    display: block;
    height: 38px !important;
  }

  .nav-main {
    top: 50px;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 80px;
  background-color: var(--color-light-gray);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(20, 71, 58, 0.95) 0%, rgba(20, 71, 58, 0.7) 35%, rgba(20, 71, 58, 0.2) 60%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  color: var(--color-white);
  padding: 0;
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 2rem;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
  font-weight: 400;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 550px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s infinite;
}

.hero-scroll a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  font-size: 0.875rem;
}

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

@media (max-width: 768px) {
  .hero-content {
    padding: 0;
  }

  .hero {
    justify-content: center;
  }

  .hero-fullscreen .hero-background img {
    object-position: center center;
  }

  .hero-overlay {
    background: linear-gradient(to top, rgba(20, 71, 58, 0.95) 0%, rgba(20, 71, 58, 0.7) 50%, rgba(20, 71, 58, 0.3) 100%);
  }

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

  .hero-buttons {
    justify-content: center;
  }
}

/* ============================================
   FEATURES / HIGHLIGHTS SECTION
   ============================================ */
.features {
  background-color: var(--color-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--border-radius-lg);
  background-color: var(--color-light-gray);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  border-radius: 50%;
}

.feature-icon svg {
  width: 40px;
  height: 40px;
  color: var(--color-white);
}

.feature-card h4 {
  color: var(--color-primary);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ============================================
   ABOUT / INTRO SECTION
   ============================================ */
.about-section {
  background-color: var(--color-light-gray);
}

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

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background-color: var(--color-primary);
  border-radius: var(--border-radius-lg);
  z-index: -1;
}

.about-content .subtitle {
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-content p {
  margin-bottom: 16px;
  color: var(--color-text-light);
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--color-medium-gray);
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  white-space: nowrap;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: 8px;
}

/* ============================================
   LAGE KACHELN
   ============================================ */
.lage-kacheln-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.lage-kachel {
  padding: 32px;
  background: var(--color-light-gray);
  border-radius: var(--border-radius-lg);
  height: 420px;
  box-sizing: border-box;
}

.lage-kachel-bild {
  padding: 0;
  overflow: hidden;
}

.lage-kachel-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.5);
}

@media (max-width: 992px) {
  .lage-kacheln-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .lage-kacheln-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .lage-kachel {
    height: auto;
    padding: 24px;
  }

  .lage-kachel-bild {
    height: 350px;
    padding: 0;
  }

  .lage-kachel-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* ============================================
   FACILITIES / EINRICHTUNGEN
   ============================================ */
.facility-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.facility-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.facility-item img {
  transition: transform 0.4s ease;
}

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

/* ============================================
   APARTMENTS / WOHNUNGEN SECTION
   ============================================ */
.apartments-section {
  background-color: var(--color-white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header .subtitle {
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

.section-header p {
  color: var(--color-text-light);
}

.apartments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.apartments-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
  .apartments-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .apartments-grid-4 {
    grid-template-columns: 1fr;
  }
}

.btn-full {
  width: 100%;
  text-align: center;
}

.apartment-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.apartment-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.apartment-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

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

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

.apartment-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.apartment-content {
  padding: 24px;
}

.apartment-content h3 {
  margin-bottom: 8px;
}

.apartment-subtitle {
  color: var(--color-secondary);
  font-weight: 500;
  margin-bottom: 16px;
}

.apartment-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.apartment-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.apartment-feature svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.apartment-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--color-medium-gray);
}

.apartment-actions .btn {
  flex: 1;
}

/* ============================================
   MODULES / GEBÄUDE SECTION
   ============================================ */
.modules-section {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.modules-section .section-header h2,
.modules-section .section-header .subtitle {
  color: var(--color-white);
}

.modules-section .section-header .subtitle {
  color: var(--color-secondary);
}

.modules-section .section-header p {
  color: rgba(255, 255, 255, 0.8);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 992px) {
  .modules-grid {
    grid-template-columns: 1fr;
  }
}

.module-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.module-card:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.module-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1;
  margin-bottom: 16px;
}

.module-card h3 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.module-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
}

.module-features {
  list-style: none;
}

.module-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.module-features li svg {
  width: 20px;
  height: 20px;
  color: var(--color-secondary);
  flex-shrink: 0;
}

/* ============================================
   LOCATION / LAGE SECTION
   ============================================ */
.location-section {
  background-color: var(--color-light-gray);
}

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

@media (max-width: 992px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
}

.location-content .subtitle {
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

.location-highlights {
  margin-top: 32px;
}

.location-highlight {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.location-highlight-icon {
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-highlight-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-white);
}

.location-highlight h4 {
  color: var(--color-primary);
  margin-bottom: 4px;
}

.location-highlight p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin: 0;
}

.keramik-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.keramik-text {
  width: 280px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
}

.keramik-image {
  border-radius: 10px;
  overflow: hidden;
  flex: 1;
  height: 190px;
}

@media (max-width: 768px) {
  .keramik-row {
    flex-direction: column;
  }

  .keramik-text {
    width: 100%;
    min-width: 0;
    min-height: auto;
  }

  .keramik-image {
    width: 100%;
    height: 160px;
    border-radius: 10px;
  }
}

.location-map {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 400px;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo-text {
  color: var(--color-white);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social{
  margin-top: 16px;   /* z.B. 12–24px nach Geschmack */
}

.footer-contact-link{
  color: inherit;
  text-decoration: none;
  -webkit-text-fill-color: currentColor; /* iOS: verhindert abweichende Farbe */
}

.footer-contact-link:visited,
.footer-contact-link:hover,
.footer-contact-link:active{
  color: inherit;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--color-secondary);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  color: var(--color-white);
}

.footer-column h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-tertiary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer-legal a:hover {
  color: var(--color-white);
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-primary);
  font-size: 1rem;
  border: 2px solid var(--color-medium-gray);
  border-radius: var(--border-radius);
  background-color: var(--color-white);
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(20, 71, 58, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* ============================================
   CALENDAR / BOOKING STYLES
   ============================================ */
.booking-section {
  background-color: var(--color-light-gray);
}

.booking-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 992px) {
  .booking-container {
    grid-template-columns: 1fr;
  }
}

.calendar-wrapper {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.calendar-header h3 {
  margin: 0;
}

.calendar-nav {
  display: flex;
  gap: 8px;
}

.calendar-nav button {
  width: 40px;
  height: 40px;
  border: none;
  background-color: var(--color-light-gray);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.calendar-nav button:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day-header {
  text-align: center;
  padding: 12px 0;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 500;
  transition: var(--transition);
}

.calendar-day:hover:not(.disabled):not(.selected) {
  background-color: var(--color-light-gray);
}

.calendar-day.selected {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
}

.calendar-day.disabled {
  color: var(--color-medium-gray);
  cursor: not-allowed;
}

.calendar-day.today {
  border: 2px solid var(--color-primary);
}

.time-slots {
  margin-top: 32px;
}

.time-slots h4 {
  margin-bottom: 16px;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 576px) {
  .time-slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.time-slot {
  padding: 12px;
  text-align: center;
  border: 2px solid var(--color-medium-gray);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

.time-slot:hover:not(.disabled):not(.selected) {
  border-color: var(--color-primary);
}

.time-slot.selected {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.time-slot.disabled {
  background-color: var(--color-light-gray);
  color: var(--color-text-light);
  cursor: not-allowed;
}

.booking-summary {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}

.booking-summary h3 {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-medium-gray);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.summary-label {
  color: var(--color-text-light);
}

.summary-value {
  font-weight: 500;
  text-align: right;
}

.booking-summary .btn {
  width: 100%;
  margin-top: 24px;
}

/* ============================================
   3D VIEWER / GRUNDRISS STYLES
   ============================================ */
.floorplan-viewer {
  background-color: var(--color-light-gray);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.floorplan-tabs {
  display: flex;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-medium-gray);
}

.floorplan-tab {
  flex: 1;
  padding: 16px;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: var(--transition);
  position: relative;
}

.floorplan-tab:hover {
  color: var(--color-primary);
  background-color: var(--color-light-gray);
}

.floorplan-tab.active {
  color: var(--color-primary);
}

.floorplan-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--color-primary);
}

.floorplan-content {
  padding: 24px;
}

.floorplan-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.floorplan-image img {
  width: 100%;
  height: auto;
}

.floorplan-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.floorplan-control {
  padding: 10px 20px;
  background-color: var(--color-white);
  border: 2px solid var(--color-medium-gray);
  border-radius: var(--border-radius);
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.floorplan-control:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.floorplan-control.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* ============================================
   SERVICES PAGE
   ============================================ */
.services-hero {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 120px 0 80px;
  text-align: center;
}

.services-hero h1 {
  color: var(--color-white);
}

.services-hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

@media (max-width: 992px) {
  .service-detail,
  .service-detail:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

.service-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.service-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.service-content .subtitle {
  color: var(--color-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.service-features {
  margin-top: 24px;
}

.service-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.service-feature-icon {
  width: 40px;
  height: 40px;
  background-color: var(--color-light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.service-feature-text h5 {
  font-family: var(--font-primary);
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-text);
}

.service-feature-text p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* ============================================
   PAGE HEADERS
   ============================================ */
.page-header {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 140px 0 60px;
  text-align: center;
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.breadcrumb {
  display: none;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
  color: var(--color-white);
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-current {
  color: var(--color-white);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
  background-color: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-cards {
  display: grid;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background-color: var(--color-light-gray);
  border-radius: var(--border-radius);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-white);
}

.contact-card h4 {
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--color-text-light);
  margin: 0;
  font-size: 0.95rem;
}

.contact-card a {
  color: var(--color-primary);
  font-weight: 500;
}

.contact-form-wrapper {
  background-color: var(--color-light-gray);
  padding: 40px;
  border-radius: var(--border-radius-lg);
}

.contact-form-wrapper h3 {
  margin-bottom: 24px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

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

.bg-light {
  background-color: var(--color-light-gray);
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.py-1 { padding-top: 8px; padding-bottom: 8px; }
.py-2 { padding-top: 16px; padding-bottom: 16px; }
.py-3 { padding-top: 24px; padding-bottom: 24px; }
.py-4 { padding-top: 32px; padding-bottom: 32px; }
.py-5 { padding-top: 48px; padding-bottom: 48px; }

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Image Gallery Grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.image-grid-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.image-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.image-grid-item:hover img {
  transform: scale(1.05);
}

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

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.1s;
}

.fade-in-delay-2 {
  animation-delay: 0.2s;
}

.fade-in-delay-3 {
  animation-delay: 0.3s;
}

/* ============================================
   LARGER IMAGES & NEW SECTIONS
   ============================================ */

/* Logo adjustments for PNG */
.logo img {
  height: 55px;
  width: auto;
}

.logo-footer img {
  height: 45px;
}

/* Fullscreen Hero */
.hero-fullscreen {
  min-height: 100vh;
}

.hero-fullscreen .hero-background img {
  object-position: 60% center;
  filter: brightness(1.05) contrast(1.1);
}

/* About Image Large */
.about-image-large {
  position: relative;
}

.about-image-large img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
}

/* Full Width Image Section */
.fullwidth-image-section {
  position: relative;
  height: 90vh;
  min-height: 500px;
  overflow: hidden;
  padding: 0;
}

.fullwidth-image-section > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; /* oben starten, unten crop */
  display: block;
}

.fullwidth-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 60px 0;
  background: linear-gradient(to bottom, rgba(20, 71, 58, 0.9) 0%, rgba(20, 71, 58, 0) 100%);
}

.fullwidth-overlay h2 {
  color: var(--color-white);
  margin-bottom: 12px;
}

.fullwidth-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0;
}

/* Feature Image Section */
.feature-image-section {
  background-color: var(--color-white);
  padding: 100px 0;
}

.feature-image-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-image-grid-reversed {
  grid-template-columns: 1fr 1.2fr;
}

@media (max-width: 992px) {
  .feature-image-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-image-grid-reversed {
    grid-template-columns: 1fr;
  }
}

.feature-image-large {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature-image-large img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.feature-image-content .subtitle {
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

.feature-image-content h2 {
  margin-bottom: 24px;
}

.feature-image-content p {
  color: var(--color-text-light);
  margin-bottom: 32px;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Image Hero for Subpages */
.image-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

.image-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.image-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(20, 71, 58, 0.85) 0%, rgba(20, 71, 58, 0.6) 100%);
}

.image-hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.image-hero h1 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.image-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Large Service Images */
.service-image-large img {
  height: 500px;
  object-fit: cover;
}

/* People Section */
.people-section {
  background-color: var(--color-light-gray);
  padding: 100px 0;
}

.people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .people-grid {
    grid-template-columns: 1fr;
  }
}

.people-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.people-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.people-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(20, 71, 58, 0.95) 0%, rgba(20, 71, 58, 0) 100%);
}

.people-card h3 {
  color: var(--color-white);
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.people-card p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Gallery Section on Homepage */
.gallery-preview {
  background-color: var(--color-white);
  padding: 100px 0;
}

.gallery-grid-large {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .gallery-grid-large {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery-grid-large {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(20, 71, 58, 0.9) 0%, rgba(20, 71, 58, 0.3) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-info h3 {
  color: var(--color-white);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.gallery-info p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin: 0;
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:first-child img {
  height: 100%;
  min-height: 620px;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item {
  border-bottom: 1px solid var(--color-medium-gray);
  padding: 24px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  gap: 16px;
}

.faq-question h3 {
  color: var(--color-primary);
  font-size: 1.3rem;
  margin: 0;
  transition: color 0.3s ease;
}

.faq-question:hover h3 {
  color: var(--color-primary-light);
}

.faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-content {
  padding-top: 16px;
  color: var(--color-text-light);
  line-height: 1.8;
}

@media (max-width: 576px) {
  .gallery-item:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item:first-child img {
    min-height: 300px;
  }
}

/* ============================================
   MOBILE OPTIMIZATION
   ============================================ */

/* Global Mobile Styles */
@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
  }

  html {
    font-size: 15px;
  }

  body {
    line-height: 1.6;
    overflow-x: hidden;
  }

  /* Prevent text overflow globally */
  * {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Container */
  .container {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100%;
  }

  /* Typography - prevent text cutoff */
  h1, h2, h3, h4, h5, h6, p {
    max-width: 100%;
    hyphens: auto;
  }

  h1 {
    font-size: clamp(1.5rem, 6vw, 1.8rem);
    line-height: 1.2;
  }

  h2 {
    font-size: clamp(1.3rem, 5vw, 1.5rem);
    line-height: 1.3;
  }

  h3 {
    font-size: clamp(1.1rem, 4vw, 1.2rem);
    line-height: 1.3;
  }

  p {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    line-height: 1.6;
  }

  /* Sections */
  section {
    padding: 50px 0;
  }

  .section-header {
    margin-bottom: 32px;
    text-align: center;
    padding: 0 8px;
  }

  .section-header h2 {
    font-size: clamp(1.4rem, 5vw, 1.6rem);
    margin-bottom: 12px;
  }

  .section-header p {
    font-size: 0.95rem;
    max-width: 100%;
    padding: 0 8px;
  }

  /* Hero Section Mobile */
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 80px 0 40px;
  }

  .hero-background img {
    object-position: center center;
  }

  .hero-content {
    text-align: center;
    padding: 0 8px;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: clamp(1.6rem, 7vw, 2rem);
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .hero-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 0 16px;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-scroll {
    display: none;
  }

  /* Buttons Mobile */
  .btn {
    padding: 14px 20px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .btn-lg {
    padding: 16px 24px;
  }

  .btn-sm {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  /* CTA Buttons Row */
  .cta-buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  /* Cards & Grids Mobile */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 20px 16px;
    text-align: center;
  }

  .feature-icon {
    margin: 0 auto 16px;
  }

  /* About Section Mobile */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-image {
    order: -1;
  }

  .about-image img {
    height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius-lg);
  }

  .about-content {
    text-align: center;
    padding: 0 8px;
  }

  .about-stats {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
  }

  .stat-item {
    text-align: center;
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 6px;
    background: var(--color-light-gray);
    border-radius: var(--border-radius);
  }

  .stat-number {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    white-space: nowrap;
  }

  .stat-label {
    font-size: clamp(0.65rem, 2.5vw, 0.75rem);
    line-height: 1.2;
  }

  /* Apartments Grid Mobile */
  .apartments-grid,
  .apartments-grid-2x2,
  .apartments-grid-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .apartment-card-detail {
    margin: 0;
  }

  .apartment-card-image img {
    height: 180px;
    object-fit: cover;
    object-position: center;
  }

  .apartment-card-content {
    padding: 16px;
    text-align: center;
  }

  .apartment-card-content h3 {
    font-size: 1.1rem;
  }

  .apartment-specs {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    align-items: center;
    justify-content: center !important;
  }

  .apartment-specs .spec-item {
    flex: 0 0 auto !important;
    min-width: auto !important;
    padding: 8px 10px !important;
    text-align: center;
  }

  .apartment-features {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
  }

  .apartment-feature {
    justify-content: center;
    flex: 0 0 auto;
  }

  /* Services Mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 20px 16px;
    text-align: center;
  }

  .service-card h4 {
    font-size: 1rem;
  }

  /* Footer Mobile */
  .footer {
    padding: 40px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand .logo,
  .footer-brand .logo-footer {
    display: flex;
    justify-content: center;
    margin: 0 auto 16px;
  }

  .footer-brand .logo img,
  .footer-brand .logo-footer img {
    height: 40px;
    width: auto;
  }

  .footer-brand p {
    font-size: 0.9rem;
    max-width: 280px;
    margin: 0 auto;
  }

  .footer-social {
    justify-content: center;
  }

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

  .footer-column h4 {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .footer-links li {
    margin-bottom: 8px;
  }

  .footer-contact-info {
    text-align: center;
  }

  .footer-contact-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  .footer-contact-item svg {
    flex-shrink: 0;
    margin-top: 0;
  }

  .footer-contact-item span {
    font-size: 0.9rem;
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding-top: 20px;
  }

  .footer-legal {
    justify-content: center;
    gap: 16px;
  }

  /* Image Hero Mobile */
  .image-hero {
    height: 40vh;
    min-height: 180px;
    padding: 70px 0 30px;
  }

  .image-hero .container {
    text-align: center;
  }

  .image-hero h1 {
    font-size: clamp(1.4rem, 6vw, 1.6rem);
    line-height: 1.2;
  }

  .image-hero p {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .image-hero-bg img {
    object-position: center center;
  }

  /* CTA Section Mobile */
  .cta-section {
    padding: 40px 16px;
    text-align: center;
  }

  .cta-section h2 {
    font-size: clamp(1.3rem, 5vw, 1.5rem);
    margin-bottom: 12px;
  }

  .cta-section p {
    font-size: 0.9rem;
    margin-bottom: 24px;
    max-width: 100%;
  }

  /* People Cards Mobile */
  .people-card {
    text-align: center;
  }

  .people-card img {
    height: 250px;
    object-position: center;
  }

  .people-card-content {
    padding: 16px;
  }

  /* Gallery Mobile */
  .gallery-grid,
  .gallery-grid-large,
  .gallery-grid-2,
  .gallery-grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-item img,
  .gallery-image-item img {
    height: 200px;
    object-position: center;
  }

  /* Location Section Mobile */
  .location-section {
    padding: 50px 0;
  }

  .location-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .location-content {
    text-align: center;
    padding: 0 8px;
  }

  .location-content h2 {
    font-size: clamp(1.3rem, 5vw, 1.5rem);
  }

  .location-highlights {
    text-align: left;
  }

  .location-highlight {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    padding: 12px 0;
  }

  .location-highlight-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
  }

  .location-highlight-icon svg {
    width: 20px;
    height: 20px;
  }

  .location-highlight h4 {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .location-highlight p {
    font-size: 0.85rem;
  }

  .location-map {
    height: 280px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
  }

  .location-map iframe {
    height: 100%;
    width: 100%;
  }

  /* Fullwidth Image Section Mobile */
  .fullwidth-image-section {
    min-height: 180px;
    height: 40vh;
    max-height: 320px;
  }

  .fullwidth-image-section > img {
    object-position: center 40%;
  }

  .fullwidth-overlay {
    padding: 30px 16px;
    text-align: center;
  }

  .fullwidth-overlay h2 {
    font-size: clamp(1.3rem, 5vw, 1.5rem);
  }

  .fullwidth-overlay p {
    font-size: 0.9rem;
  }

  /* Feature Image Section Mobile */
  .feature-image-section {
    padding: 50px 0;
  }

  .feature-image-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .feature-image-large {
    order: -1;
  }

  .feature-image-large img {
    height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius-lg);
    width: 100%;
  }

  .feature-image-content {
    text-align: center;
    padding: 0 8px;
  }

  .feature-image-content h2 {
    font-size: clamp(1.3rem, 5vw, 1.5rem);
  }

  /* FAQ Section Mobile */
  .faq-item {
    padding: 16px 0;
  }

  .faq-question h3 {
    font-size: 1rem;
    line-height: 1.4;
  }

  .faq-answer-content {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* Contact Form Mobile */
  .contact-form {
    padding: 24px 16px;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  /* Utility classes for mobile centering */
  .text-center-mobile {
    text-align: center !important;
  }

  .mt-5 {
    margin-top: 32px !important;
  }
}

/* Extra Small Devices (phones, 375px and down) */
@media (max-width: 375px) {
  html {
    font-size: 14px;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  h3 {
    font-size: 1rem;
  }

  .hero {
    padding: 70px 0 30px;
  }

  .hero-content h1 {
    font-size: 1.4rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .btn {
    padding: 12px 16px;
    font-size: 0.85rem;
  }

  .section-header h2 {
    font-size: 1.3rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }

  .feature-card {
    padding: 16px 12px;
  }

  .feature-card h4 {
    font-size: 1rem;
  }

  .feature-card p {
    font-size: 0.85rem;
  }

  .apartment-card-content {
    padding: 14px 12px;
  }

  .apartment-card-content h3 {
    font-size: 1rem;
  }

  .stat-item {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 4px;
  }

  .stat-number {
    font-size: clamp(1rem, 3.5vw, 1.3rem);
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .image-hero {
    height: 35vh;
    min-height: 160px;
    padding: 60px 0 24px;
  }

  .image-hero h1 {
    font-size: 1.3rem;
  }

  .cta-section {
    padding: 32px 12px;
  }

  .cta-section h2 {
    font-size: 1.2rem;
  }

  .footer {
    padding: 32px 0 20px;
  }

  .footer-brand p {
    font-size: 0.85rem;
  }

  .footer-column h4 {
    font-size: 0.95rem;
  }

  .location-map {
    height: 240px;
  }

  .gallery-item img,
  .gallery-image-item img {
    height: 180px;
  }
}

/* Standard phones (361-414px) */
@media (min-width: 361px) and (max-width: 414px) {
  .stat-item {
    flex: 1 1 calc(50% - 6px);
  }
}

/* ============================================
   APARTMENT DETAIL PAGE - MOBILE OPTIMIZATION
   ============================================ */

/* Apartment Overview Mobile */
@media (max-width: 768px) {
  .apartment-overview {
    padding: 50px 0;
  }

  .apartment-overview-grid {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  .apartment-type-label {
    font-size: 0.85rem;
    padding: 6px 16px;
  }

  .apartment-overview-content h2 {
    font-size: 1.5rem;
  }

  .apartment-intro {
    font-size: 1rem;
  }

  .apartment-key-facts {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .key-fact {
    padding: 16px;
    gap: 12px;
  }

  .key-fact-icon {
    width: 44px;
    height: 44px;
  }

  .key-fact-icon svg {
    width: 20px;
    height: 20px;
  }

  .key-fact-text strong {
    font-size: 1rem;
  }

  .apartment-main-image img {
    object-position: center;
  }

  /* Gallery Mobile */
  .apartment-gallery {
    padding: 50px 0;
  }

  .gallery-grid-2,
  .gallery-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .gallery-image-item {
    aspect-ratio: 16/10;
  }

  .gallery-image-item img {
    object-position: center;
  }

  .gallery-label {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  /* Features Section Mobile */
  .apartment-features-section {
    padding: 50px 0;
  }

  .features-content-grid {
    grid-template-columns: 1fr !important;
    gap: 40px;
  }

  .feature-item-detailed {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .feature-item-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto;
  }

  .feature-item-icon svg {
    width: 24px;
    height: 24px;
  }

  .feature-item-content h4 {
    font-size: 1rem;
  }

  .feature-item-content p {
    font-size: 0.9rem;
  }

  /* Accessibility Card Mobile */
  .accessibility-highlight {
    position: static;
  }

  .accessibility-card {
    padding: 30px 20px;
  }

  .accessibility-icon {
    width: 60px;
    height: 60px;
  }

  .accessibility-icon svg {
    width: 30px;
    height: 30px;
  }

  .accessibility-card h3 {
    font-size: 1.2rem;
  }

  .accessibility-card p {
    font-size: 0.95rem;
  }

  /* Floorplan Section Mobile */
  .floorplan-section {
    padding: 50px 0;
  }

  .floorplan-content-grid {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  .floorplan-info h2 {
    font-size: 1.4rem;
  }

  .floorplan-details {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .floorplan-detail {
    padding: 14px 16px;
  }

  .detail-value {
    font-size: 1rem;
  }

  .floorplan-image-container {
    padding: 20px;
  }

  .floorplan-image-container img {
    object-fit: contain;
  }

  /* Feature Image Section Mobile */
  .feature-image-grid {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  .feature-image-large img {
    height: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius-lg);
  }

  .feature-image-content {
    text-align: center;
  }

  /* Location Section Mobile */
  .location-grid {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  .location-map {
    height: 300px;
  }

  .location-map iframe {
    height: 100%;
  }

  .location-highlight {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .location-highlight-icon {
    margin: 0 auto;
  }

  /* Fullwidth Image Mobile */
  .fullwidth-image-section img {
    min-height: 300px;
    object-fit: cover;
    object-position: center;
  }

  .fullwidth-overlay {
    padding: 40px 20px;
  }

  .fullwidth-overlay h2 {
    font-size: 1.5rem;
  }
}
