/* ============================================
   FONT FACE DEFINITIONS
   ============================================ */

/* TT Hoves Font Family */
@font-face {
  font-family: 'TT Hoves';
  src: url('../fonts/TT Hoves/TypeType - TT Hoves Hairline.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves';
  src: url('../fonts/TT Hoves/TypeType - TT Hoves Hairline Italic.ttf') format('truetype');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves';
  src: url('../fonts/TT Hoves/TypeType - TT Hoves Thin.ttf') format('truetype');
  font-weight: 150;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves';
  src: url('../fonts/TT Hoves/TypeType - TT Hoves Thin Italic.ttf') format('truetype');
  font-weight: 150;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves';
  src: url('../fonts/TT Hoves/TypeType - TT Hoves ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves';
  src: url('../fonts/TT Hoves/TypeType - TT Hoves ExtraLight Italic.ttf') format('truetype');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves';
  src: url('../fonts/TT Hoves/TypeType - TT Hoves Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves';
  src: url('../fonts/TT Hoves/TypeType - TT Hoves Light Italic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves';
  src: url('../fonts/TT Hoves/TypeType - TT Hoves Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves';
  src: url('../fonts/TT Hoves/TypeType - TT Hoves Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves';
  src: url('../fonts/TT Hoves/TypeType - TT Hoves Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves';
  src: url('../fonts/TT Hoves/TypeType - TT Hoves Medium Italic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves';
  src: url('../fonts/TT Hoves/TypeType - TT Hoves DemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves';
  src: url('../fonts/TT Hoves/TypeType - TT Hoves DemiBold Italic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves';
  src: url('../fonts/TT Hoves/TypeType - TT Hoves Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves';
  src: url('../fonts/TT Hoves/TypeType - TT Hoves Bold Italic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves';
  src: url('../fonts/TT Hoves/TypeType - TT Hoves ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves';
  src: url('../fonts/TT Hoves/TypeType - TT Hoves ExtraBold Italic.ttf') format('truetype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves';
  src: url('../fonts/TT Hoves/TypeType - TT Hoves Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves';
  src: url('../fonts/TT Hoves/TypeType - TT Hoves Black Italic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* Blacker Pro Display Condensed */
@font-face {
  font-family: 'Blacker Pro Display Condensed';
  src: url('../fonts/Blacker/blacker_pro_display_condensed-light.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Blacker Pro Display';
  src: url('../fonts/Blacker/blacker_pro_display-mediumitalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Blacker Display';
  src: url('../fonts/Blacker/blackerdisplay-mediumitalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* Blacker Pro Text */
@font-face {
  font-family: 'Blacker Pro Text';
  src: url('../fonts/Blacker/blacker_pro_text-light.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Blacker Text';
  src: url('../fonts/Blacker/blackertext-light.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Blacker Pro Text Condensed';
  src: url('../fonts/Blacker/blacker_pro_text_condensed-mediumitalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* Blacker Pro Titling */
@font-face {
  font-family: 'Blacker Pro Titling';
  src: url('../fonts/Blacker/blacker_pro_titling-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


:root {
  /* Colors */
  --color-gold: #B9A475;
  --color-light-gold: #D8CEB3;
  --color-purple: #2F2224;
  --color-light-purple: #796162;
  --color-korall: #F17F6F;
  --color-green: #9AAD90;
  --color-white: #FFFFFF;
  --color-black: #000000;

  /* Font Sizes - Responsive with clamp() */
  --font-size-h1: clamp(3rem, 5vw + 1rem, 5.9375rem); /* 95px max */
  --font-size-h2: clamp(2rem, 3vw + 1rem, 3.125rem); /* 50px max */
  --font-size-h3: clamp(1.5rem, 2vw + 0.5rem, 2rem); /* 32px max */
  --font-size-subheadline: clamp(1rem, 1.5vw + 0.25rem, 1.25rem); /* 20px max */
  --font-size-body: clamp(1rem, 1vw + 0.25rem, 1.125rem); /* 18px max */
  --font-size-body-large: clamp(1.25rem, 1.5vw + 0.5rem, 2.275rem); /* 36.4px max */
  --font-size-button: clamp(1rem, 1vw + 0.25rem, 1.25rem); /* 20px max */
  --font-size-nav: clamp(0.875rem, 1vw + 0.25rem, 1.106rem); /* 17.7px max */
  --font-size-small: clamp(0.75rem, 0.8vw + 0.2rem, 0.775rem); /* 12.4px max */

  /* Spacing */
  --spacing-xs: clamp(0.5rem, 1vw, 0.625rem); /* 10px */
  --spacing-sm: clamp(1rem, 2vw, 1.5rem); /* 24px */
  --spacing-md: clamp(1.5rem, 3vw, 2rem); /* 32px */
  --spacing-lg: clamp(2rem, 4vw, 3.125rem); /* 50px */
  --spacing-xl: clamp(3rem, 5vw, 4rem); /* 64px */
  --spacing-2xl: clamp(4rem, 6vw, 6.125rem); /* 98px */

  /* Padding */
  --padding-section-vertical: clamp(3rem, 6vw, 6.25rem); /* 100px */
  --padding-section-vertical-lg: clamp(2rem, 6vw, 2.5rem); /* 40px */
  --padding-section-vertical-md: clamp(1rem, 6vw, 1.25rem); /* 20px */
  --padding-section-horizontal: clamp(1.5rem, 3vw, 3.125rem); /* 50px */
  --padding-card: clamp(1.5rem, 2.5vw, 2rem); /* 32px */
  --padding-button: clamp(0.625rem, 1vw, 0.875rem); /* 14px */

  /* Margins */
  --margin-section: clamp(3rem, 6vw, 6.25rem); /* 100px */
  --margin-element: clamp(1rem, 2vw, 2rem); /* 32px */
  --margin-small: clamp(0.5rem, 1vw, 1rem); /* 16px */

  /* Border Radius */
  --border-radius-sm: 10px;
  --border-radius-md: 56.84px;
  --border-radius-lg: 100px;

  /* Container */
  --container-max-width: 1440px;
  --container-padding: clamp(1.25rem, 3vw, 3.125rem); /* 20px mobile, 50px desktop */

  /* Transitions */
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.5s ease;

  /* Font Families */
  --font-primary: 'TT Hoves', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Blacker Pro Display Condensed', Georgia, serif;
  --font-mono: 'SUSE Mono', 'Courier New', monospace;
  --font-body-alt: 'Blacker Text', Georgia, serif;

  /* Line Heights */
  --line-height-tight: 1.2;        /* ~21.6px bei 18px font-size */
  --line-height-normal: 1.388;     /* ~25px bei 18px font-size */
  --line-height-relaxed: 1.5;      /* ~27px bei 18px font-size */
  --line-height-middle: 2.0;      /* ~27px bei 18px font-size */
  --line-height-loose: 2.9;        /* ~52px bei 18px font-size */

  /* Z-Index */
  --z-nav: 1000;
  --z-modal: 2000;
  --z-overlay: 1500;
}

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

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

/* Debugging */
/* body *{
    outline: 1px solid !important;
} */

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: never;
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  line-height: var(--line-height-normal);
  color: var(--color-purple);
  background-color: var(--color-light-gold);
  overflow-x: hidden;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

/* Base animation styles - elements start hidden/transformed */
.animate-fade-in,
.animate-slide-up,
.animate-slide-left,
.animate-slide-right,
.animate-scale {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

/* Fade In Animation */
.animate-fade-in {
  opacity: 0;
}

.animate-fade-in.animate-in {
  opacity: 1;
}

/* Slide Up Animation */
.animate-slide-up {
  opacity: 0;
  transform: translateY(50px);
}

.animate-slide-up.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Slide Left Animation */
.animate-slide-left {
  opacity: 0;
  transform: translateX(50px);
}

.animate-slide-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Slide Right Animation */
.animate-slide-right {
  opacity: 0;
  transform: translateX(-50px);
}

.animate-slide-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Scale Animation */
.animate-scale {
  opacity: 0;
  transform: scale(0.9);
}

.animate-scale.animate-in {
  opacity: 1;
  transform: scale(1);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-in,
  .animate-slide-up,
  .animate-slide-left,
  .animate-slide-right,
  .animate-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Reduce horizontal animations on mobile to prevent overflow */
@media (max-width: 768px) {
  .animate-slide-left,
  .animate-slide-right {
    transform: translateX(0);
  }
  
  .animate-slide-left.animate-in,
  .animate-slide-right.animate-in {
    transform: translateX(0);
  }
}

/* Typography */
h1 {
  font-family: var(--font-primary);
  font-size: var(--font-size-h1);
  font-weight: 300;
  line-height: var(--line-height-tight);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

h2 {
  font-family: var(--font-primary);
  font-size: var(--font-size-h2);
  font-weight: 400;
  line-height: var(--line-height-tight);
}

h3 {
  font-family: var(--font-primary);
  font-size: var(--font-size-h3);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -1.5625%;
}

.subheadline {
  font-family: var(--font-heading);
  font-size: var(--font-size-subheadline);
  font-weight: 200;
  line-height: var(--line-height-middle);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .subheadline {
    line-height: var(--line-height-normal);
    margin-bottom: var(--padding-section-vertical-md);
  }
}

p {
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  font-weight: 300;
  line-height: var(--line-height-normal);
}

.p-0 {
    padding: 0;
}

a[href^="tel:"] {
  color: var(--color-purple);
  text-decoration: none;
}

a[href^="tel:"]:hover {
  text-decoration: underline;
}

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

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

/* .container p {
    margin-bottom: var(--spacing-md);
} */

.container.full-width {
  max-width: 100%;
}

.full-width {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* .full-width picture, .full-width img {
  width: 100%;
  height: auto;
  display: block;
} */

/* Section Styles */
section {
  width: 100%;
  padding: var(--padding-section-vertical-md) 0;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 33px;
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.25;
  color: #000000;
  background: linear-gradient(-49deg, rgba(241, 127, 111, 1) 0%, rgba(241, 127, 111, 1) 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  position: relative;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(-49deg, rgba(187, 163, 111, 1) 17%, rgba(206, 193, 159, 1) 85%);
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(187, 163, 111, 0.4);
}

.btn:active {
  transform: translateY(0);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-nav);
  background-color: transparent;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

/* Scrolled state - full navigation with gold background */
nav.scrolled {
  background-color: rgba(216, 206, 179, 0.95);
  backdrop-filter: blur(10px);
}

nav .nav-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 55px;
  transition: height 0.4s ease;
}

/* White logo - visible on top, hidden when scrolled */
.nav-logo-white {
  position: fixed;
  top: 18px;
  right: var(--container-padding);
  z-index: 1002;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
  /* pointer-events: none; */
}

nav.scrolled .nav-logo-white {
  opacity: 0;
  transform: translateY(-10px);
  z-index: -1;
}

.nav-logo-white img {
  height: 71px;
  width: auto;
}

/* Main navigation menu - hidden on top, visible when scrolled */
nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 40px;
    padding-block: 10px;
    list-style: none;
    align-items: center;
    margin: 0;
    height: 100%;
    order: 2;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

nav.scrolled ul {
  opacity: 1;
  transform: translateY(0);
}

nav ul li {
  height: 100%;
  display: flex;
  align-items: center;
}

nav a {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 200;
  color: var(--color-purple);
  text-decoration: none;
  transition: var(--transition-base);
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

nav ul a:hover {
  background-color: rgba(185, 164, 117, 0.2);
  color: var(--color-purple);
}

nav a.language-link {
  padding: 0 20px;
  font-weight: 200;
}

/* Regular nav logo - hidden on top, visible when scrolled */
.nav-logo {
  padding: 0;
  display: flex;
  align-items: center;
  z-index: 1001;
  order: 3;
  margin-left: auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

nav.scrolled .nav-logo {
  opacity: 1;
  transform: translateY(0);
}

.nav-logo img {
  height: 30px;
  width: auto;
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 0;
  z-index: 1001;
  position: relative;
  order: 1;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--color-purple);
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Header / Hero */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Video background - visible on desktop when video exists */
.hero-video {
  display: block;
}

/* Image background - default hidden, but shown based on video state */
.hero-image {
  display: block; /* Changed from display: none to display: block as default */
}

/* Hide image on desktop when video exists */
.hero-has-video .hero-image {
  display: none;
}

/* Show image on desktop when no video exists */
.hero-no-video .hero-image {
  display: block;
}

.hero-content {
  text-align: center;
  color: var(--color-white);
  z-index: 1;
  padding: 0 var(--container-padding);
}

/* Hide content when disabled via toggle */
.hero-no-content .hero-content {
  display: none;
}

/* When no content, hero can be used as pure image/video background */
.hero-no-content {
  cursor: default;
}

.hero-badge {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--color-korall);
  border-radius: var(--border-radius-md);
  font-size: clamp(0.4rem, 0.5vw + 0.2rem, 0.392rem);
  font-weight: 400;
  color: var(--color-purple);
  margin-bottom: var(--spacing-lg);
}

.hero-title {
  margin-bottom: var(--spacing-md);
}

/* Hero Title Carousel */
.hero-title-carousel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3em;
  margin-bottom: var(--spacing-md);
  /* Font styles matching h1.hero-title */
  font-family: var(--font-primary);
  font-size: var(--font-size-h1);
  font-weight: 300;
  line-height: var(--line-height-tight);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.title-carousel {
  display: inline-grid;
  position: relative;
  overflow: hidden;
  height: 1.2em;
  vertical-align: bottom;
  line-height: var(--line-height-tight);
}

.title-item {
  grid-area: 1 / 1;
  white-space: nowrap;
  animation: textcarousel 6s 2.5s infinite cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
  transform: translateY(100%);
}

.title-item:nth-child(1) {
  animation-delay: 0s;
}

.title-item:nth-child(2) {
  animation-delay: 2s;
}

.title-item:nth-child(3) {
  animation-delay: 4s;
}

.title-item:nth-child(4) {
  animation-delay: 6s;
}

.title-item:nth-child(5) {
  animation-delay: 8s;
}

.asterisk {
  animation: asterisk 4s linear infinite;
  display: inline-block;
  font-size: 1.2em;
  width: 0.5em;
  height: 0.4em;
  text-align: center;
  line-height: 0.7em;
  position: relative;
  bottom: 0.4em;
  left: 0.3em;
  user-select: none;
}

.title-end {
  display: inline-block;
}

.hero-subtitle {
  font-size: var(--font-size-body-large);
  line-height: 1.374;
  margin-bottom: var(--spacing-2xl);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .hero-title-carousel {
    justify-content: center;
  }

  .title-carousel {
    flex: 1 0 100%;
  }
}

/* Intro Section */
.intro-background-image {
  position: absolute; 
  right: 0; 
  bottom: 0px; 
  width: 50%;
  height: auto; 
  max-width: 800px; 
  opacity: 0.8; 
  pointer-events: none; 
  z-index: -1;
}

/* Location Section */
.location-image {
  width: 100%;
  height: auto;
}

/* Two Column Layout with 50/50 Image Split */
.split-section {
  display: flex;
  width: 100%;
  min-height: 720px;
}

.split-section.reverse {
  flex-direction: row-reverse;
}

.split-half {
  flex: 1;
  width: 50%;
  position: relative;
  overflow: hidden;
}

.split-half img {
  width: 100%;
  /* height: 100%; */
  height: 900px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1024px) {
  .split-half img {
    height: auto;
  }
}

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: var(--color-purple);
  color: var(--color-gold);
}

.split-content.gold-bg, .gold-bg {
  background-color: var(--color-gold);
  color: var(--color-purple);
}

.split-content.light-gold-bg {
  background-color: var(--color-light-gold);
  color: var(--color-purple);
}

.split-content.green-bg {
  background-color: var(--color-green);
  color: var(--color-white);
  flex-direction: column;
}

.content-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--padding-section-vertical) var(--container-padding) 0;
}

.content-wrapper ul li, .container ul li {
  display: flex;
  align-items: center;
  padding: 0.1rem;
  font-weight: 300;
}

.content-wrapper ul li::before, .container ul li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: currentColor;
  margin-right: 10px;
}

.content-wrapper h3 {
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.split-content.green-bg .content-wrapper {
    max-width: none;
    padding: var(--padding-section-vertical-lg) var(--container-padding);
}

.split-content h2 {
  margin-bottom: var(--spacing-md);
}

.split-content p {
  margin-bottom: var(--spacing-md);
}

.split-meta {
  display: flex;
  gap: 0;
  padding: 0;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  margin: var(--spacing-lg) 0;
  width: 100%;
}

.meta-item {
  flex: 1;
  padding: var(--spacing-md) 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.meta-item:first-child {
  border-right: 2px solid currentColor;
}

.meta-item h3 {
  margin: 0;
}

.split-content .btn {
    display: block;
    width: fit-content;
    margin: var(--spacing-md) auto var(--spacing-xl);
}

.meta-item h3 {
  font-size: var(--font-size-h3);
}

/* Wohnen Section */

section.split-section.full-width.wohnen {
    padding: 0 0 var(--padding-section-vertical-lg) 0 !important;
}

.split-section.wohnen p {
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-2xl) var(--spacing-xl);
  padding: var(--padding-section-vertical) var(--container-padding);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.feature-item {
  text-align: left;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--color-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.feature-icon img {
  width: 42px;
  height: 42px;
}

.feature-item h4 {
  font-family: var(--font-primary);
  font-size: var(--font-size-subheadline);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--spacing-sm);
  color: var(--color-purple);
}

.feature-item p {
  font-size: var(--font-size-subheadline);
  font-weight: 300;
  line-height: 1.25;
  color: var(--color-purple);
}

/* Quote Section */
.quote-section {
  background-color: var(--color-light-purple);
  text-align: left;
  position: relative;
}

.quote-content {
  max-width: var(--container-max-width);
  margin: 0 auto;padding: 0 var(--container-padding);
  padding: var(--padding-section-vertical-lg) var(--container-padding);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-2xl);
}

.quote-text {
  font-family: var(--font-body-alt);
  font-size: 20px;
  font-weight: 200;
  line-height: 1.25em;
  color: var(--color-gold);
  flex: 1;
  max-width: 739px;
}

.quote-author-image {
  width: 134.41px;
  height: auto;
  flex-shrink: 0;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-family: 'Inter', sans-serif;
  font-size: 22.7px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.712em;
  color: var(--color-gold);
  flex-shrink: 0;
}

/* Fabian Freytag Section */
.fabian-section {
  background-color: var(--color-gold);
  padding: 80px 0 100px;
}

.fabian-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: start;
}

.fabian-content h2 {
  font-family: var(--font-primary);
  font-size: 50px;
  font-weight: 400;
  line-height: 1.2em;
  color: var(--color-purple);
  margin-bottom: var(--spacing-md);
}

.fabian-content p {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 200;
  line-height: 1.25em;
  color: var(--color-purple);
}

.fabian-image-1 {
  width: 100%;
  height: auto;
  align-self: end;
}

.fabian-image-2 {
  width: 100%;
  height: auto;
  margin-top: 150px;
}

/* Gallery Section */
.gallery-section {
  width: 100%;
  height: calc(100vh - 55px);
  position: relative;
  overflow: hidden;
}

.gallery-section picture {
  width: 100%;
  height: 100%;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Press / Media Grid */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  /* padding: var(--padding-section-vertical) var(--padding-section-horizontal); */
}

.press-item {
  padding: var(--spacing-md);
  border: 3px solid var(--color-korall);
  border-radius: var(--border-radius-sm);
  background-color: var(--color-korall);
  transition: var(--transition-base);
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: default;
}

/* Add pointer cursor only for links */
a.press-item {
  cursor: pointer;
}

.press-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(241, 127, 111, 0.2);
}

.press-item h4 {
  font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.5rem);
  font-weight: 400;
  line-height: 1.042;
  color: var(--color-purple);
}

/* Stats Section */
#stats h4 {
    font-weight: 500;
}

#stats img {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

/* Contact Form */
.contact-section {
  background-color: var(--color-purple);
  padding: var(--padding-section-vertical) 0;
  position: relative;
}

.contact-form {
  /* max-width: 1200px;
  margin: 0 auto; */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.form-left {
  display: flex;
  flex-direction: column;
}

.form-right {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.form-right .form-group:first-child {
  flex: 1;
}

.form-right .form-group:last-child {
  display: inline-block;
  margin-left: auto;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: var(--font-size-button);
  font-weight: 200;
  color: var(--color-gold);
  margin-bottom: var(--spacing-sm);
}

.form-group input,
.form-group textarea {
  padding: var(--spacing-xs);
  font-family: var(--font-primary);
  font-size: var(--font-size-button);
  font-weight: 200;
  color: var(--color-gold);
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--color-gold);
  outline: none;
  transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--color-korall);
}

/* Autofill Styling */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--color-gold);
  -webkit-box-shadow: 0 0 0 1000px var(--color-purple) inset;
  box-shadow: 0 0 0 1000px var(--color-purple) inset;
  transition: background-color 5000s ease-in-out 0s;
  border-bottom: 1px solid var(--color-gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 280px;
  height: 100%;
  border: 1px solid var(--color-gold);
  border-radius: var(--border-radius-sm);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

/* B&L Gruppe Section */
.bl-section {
  padding: 100px 0;
}

.bl-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 84px;
  margin-bottom: 47px;
  align-items: start;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
}

.bl-content {
  max-width: 606px;
}

.bl-content h2 {
  font-family: var(--font-primary);
  font-size: 50px;
  font-weight: 400;
  line-height: 1.2em;
  margin-bottom: var(--spacing-md);
}

.bl-content p {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.389em;
}

.bl-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bl-image-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    max-width: 1090px;
    margin: 0 auto;
}

.bl-image-flex img {
  width: 352px;
  height: 237px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .bl-image-flex img, .bl-image-flex picture {
    width: 100%;
    height: auto;
  }
}

/* Footer */
footer {
  background-color: var(--color-gold);
  color: var(--color-purple);
  padding: var(--padding-section-vertical) 0;
  position: relative;
  overflow: hidden;
}

.footer-background {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.footer-container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 139px 1fr auto;
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
  margin-bottom: 60px;
}

.footer-logo-section {
  display: flex;
  align-items: flex-start;
}

.footer-main-logo {
  max-width: 139px;
  height: auto;
}

.footer-info-columns {
  display: grid;
  gap: 20px;
  max-width: 540px;
}

.footer-info-column h4 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--color-purple);
}

.footer-info-column p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.39;
  color: var(--color-purple);
  margin: 0;
}

.footer-bl-logo {
  max-width: 132px;
  margin-bottom: 20px;
  display: block;
}

.footer-contact-text {
  margin-top: 30px !important;
}

.footer-socials {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.footer-social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-black);
  font-size: 12.4px;
  font-weight: 400;
  line-height: 1.59;
  transition: opacity 0.3s ease;
}


.footer-social-link:hover {
  opacity: 0.7;
}

.footer-social-icon {
  width: 20px;
  height: auto;
}

.footer-bottom {
  display: flex;
  gap: 50px;
  align-items: center;
}

.footer-bottom a {
  font-size: 13.7px;
  font-weight: 400;
  line-height: 1.64;
  color: var(--color-purple);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-bottom a:hover {
  opacity: 0.7;
}

/* Map Section */
.map-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.map-container {
  position: relative;
  width: 100%;
  height: auto;
}

.map-image {
  width: 100%;
  height: auto;
  display: block;
}

.map-marker {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 125px;
  height: 125px;
  background-color: var(--color-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: var(--font-size-button);
  font-weight: 500;
}

.map-marker::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 22px;
    width: 76px;
    height: 26px;
    background-image: url(../images/map-marker-vector.svg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .split-section {
    flex-direction: column;
    min-height: auto;
  }

  .split-section.reverse {
    flex-direction: column;
  }

  .split-half {
    width: 100%;
    max-height: auto;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-right .form-group:last-child {
    justify-content: center;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-logo-section {
    order: 1;
  }

  .footer-info-columns {
    order: 2;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-socials {
    order: 3;
    flex-direction: row;
    /* justify-content: center; */
    gap: 30px;
  }

  /* .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    justify-content: center;
  } */

  .footer-background {
    width: 80%;
    opacity: 0.5;
  }
}

@media (max-width: 1100px) {
  nav ul {
    gap: 10px 20px;
  }

  nav a {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  /* Mobile: Always show scrolled state */
  nav {
    background-color: rgba(216, 206, 179, 0.95);
    backdrop-filter: blur(10px);
  }

  /* Hide white logo on mobile */
  .nav-logo-white {
    display: none;
  }

  /* Always show regular logo and menu on mobile */
  .nav-logo,
  nav ul {
    opacity: 1;
    transform: translateY(0);
  }

  .hamburger {
    display: flex;
  }

  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    background-color: var(--color-light-gold);
    flex-direction: column !important; /* Force vertical layout */
    flex-wrap: nowrap !important; /* Prevent wrapping */
    justify-content: flex-start;
    align-items: flex-start;
    padding: 15px 20px 40px;
    margin-top: 55px; /* Top padding = 55px nav-container */
    gap: 0 !important; /* No gap between items */
    transition: right 0.3s ease;
    box-shadow: -2px 10px 10px rgba(0, 0, 0, 0.1);
    overflow-y: scroll; /* Always show scrollbar area */
    overflow-x: hidden;
    --webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    overscroll-behavior-y: contain; /* Prevent scroll chaining */
    touch-action: pan-y; /* Allow only vertical panning */
  }

  nav ul.active {
    right: 0;
  }

  nav ul li {
    width: 100%;
    height: auto;
    flex-shrink: 0; /* Prevent items from shrinking */
    border-bottom: 1px solid rgba(47, 34, 36, 0.1);
  }

  nav a {
    width: 100%;
    padding: 0px 10px;
    font-size: 18px;
    height: auto;
  }

  nav ul a {
    padding: 18px 10px;
    display: block;
  }

  nav a:hover {
    background-color: rgba(185, 164, 117, 0.3);
  }

  .hero {
    min-height: 500px;
  }

  /* Switch to image on tablet and mobile for better performance */
  .hero-video {
    display: none;
  }

  .hero-image {
    display: block;
  }

  /* Always show image on mobile, regardless of video state */
  .hero-has-video .hero-image,
  .hero-no-video .hero-image {
    display: block;
  }

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

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

  /* .split-meta {
    flex-direction: column;
    gap: var(--spacing-md);
  } */

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

  .quote-content {
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: center;
    text-align: center;
  }

  .quote-text {
    max-width: 100%;
  }

  .quote-author-image {
    width: 120px;
  }

  .fabian-section {
    padding: 60px 0;
  }

  .fabian-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .fabian-content {
    max-width: 100%;
  }

  .fabian-content h2 {
    font-size: clamp(2rem, 5vw, 3.125rem);
  }

  .fabian-content p {
    font-size: 18px;
  }

  .fabian-image-2 {
    margin-top: 0;
  }

  /* B&L Section Responsive */
  .bl-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
  }

  .bl-content {
    max-width: 100%;
  }

  .bl-content h2 {
    font-size: clamp(2rem, 5vw, 3.125rem);
  }

  .bl-featured-image {
    width: 100%;
    height: auto;
    aspect-ratio: 486 / 324;
  }

  .bl-image-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
  }

  .bl-image-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 352 / 237;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 1.25rem; /* 20px consistent padding */
  }

  nav ul {
    flex-wrap: wrap;
  }

  .hero-content {
    padding: 0 var(--container-padding);
  }

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

  .quote-author {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobile Menu Overlay */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 768px) {
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

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

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

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

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

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

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

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

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

.mb-xs {
  margin-bottom: var(--spacing-xs);
}

.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.mt-xs {
  margin-top: var(--spacing-xs);
}

.mt-sm {
  margin-top: var(--spacing-sm);
}

.mt-md {
  margin-top: var(--spacing-md);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

/* Map Filter Section */
.map-filter-section {
  padding: 0;
  background-color: var(--color-light-gold);
}

/* Filter Bar - Full Width at Top */
.map-filter-bar {
  width: 100%;
  /* background-image: url('assets/images/map-section-311bc5.png'); */
  background-size: cover;
  background-position: center;
  padding: 35px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  max-width: var(--container-max-width);
  padding: 0 var(--container-padding);
}

.map-filter-btn {
  font-family: var(--font-mono);
  font-size: var(--font-size-nav);
  font-weight: 400;
  color: var(--color-purple);
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--color-purple);
  padding: 12px 30px;
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  transition: var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(5px);
}

.map-filter-btn:hover {
  background-color: var(--color-purple);
  color: var(--color-light-gold);
  /* transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 34, 36, 0.3); */
}

.map-filter-btn.active {
  background-color: var(--color-purple);
  color: var(--color-light-gold);
  border-color: var(--color-purple);
}

/* Map Images Container - Full Width */
.map-images-container {
  position: relative;
  width: 100%;
  background-color: var(--color-light-gold);
}

.map-image {
  width: 100%;
  height: auto;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.map-image.active {
  display: block;
  opacity: 1;
}

/* HPQ Living Label Overlay */
.map-label {
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.map-label span {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-purple);
  line-height: 2.083;
  white-space: nowrap;
}

/* Map Filter Responsive */
@media (max-width: 768px) {
  .map-filter-bar {
    padding: 25px 0;
  }

  .map-filters {
    gap: var(--spacing-xs);
  }

  .map-filter-btn {
    font-size: var(--font-size-small);
    padding: 10px 20px;
  }

  .map-label span {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .map-filter-bar {
    padding: 20px 0;
  }

  .map-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

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

/* ============================================
   ALERT MESSAGES
   ============================================ */

.alert {
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.5;
}

.alert-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}


/* ============================================
   Swiper Styles / Gallery
   ============================================ */
:root {
  --swiper-theme-color: var(--color-gold);

  /* Navigation */
  --swiper-navigation-size: 44px;
  --swiper-navigation-top-offset: 50%;
  --swiper-navigation-sides-offset: 10px;
  --swiper-navigation-color: var(--swiper-theme-color);

  /* Pagination */
  --swiper-pagination-color: var(--swiper-theme-color);
  --swiper-pagination-top: auto;
  --swiper-pagination-bottom: 0;
}   

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #444;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto; /* Allow slides to determine their own height */
}

/* Ensure all slides have equal height */
.mySwiper .swiper-wrapper {
  align-items: stretch; /* Make all slides stretch to equal height */
}

.mySwiper .swiper-slide {
  height: auto; /* Allow content to determine height */
  min-height: 400px; /* Minimum height for consistency */
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px; /* Match slide minimum height */
}

/* Responsive minimum heights */
@media (max-width: 768px) {
  .mySwiper .swiper-slide {
    min-height: 300px;
  }
  
  .swiper-slide img {
    min-height: 300px;
  }
}

/* .swiper-button-next, .swiper-button-prev {
    background-color: var(--swiper-theme-color);
    border-radius: 50%;
    position: absolute;
    top: var(--swiper-navigation-top-offset,50%);
    width: calc(var(--swiper-navigation-size)/ 44 * 27);
    height: var(--swiper-navigation-size);
    margin-top: calc(0px - (var(--swiper-navigation-size)/ 2));
    padding: 30px;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--swiper-navigation-color,var(--swiper-theme-color));
} */

.swiper-button-next, .swiper-button-prev {
  transition: transform 0.3s ease;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
  transform: scale(1.5);
}

.swiper-horizontal>.swiper-pagination-progressbar, .swiper-pagination-progressbar.swiper-pagination-horizontal, .swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite, .swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite {
    width: 100%;
    height: var(--swiper-pagination-progressbar-size,4px);
    left: 0;
    top: var(--swiper-pagination-top,auto);
    bottom: var(--swiper-pagination-bottom,auto);
}

/* ============================================
   LOCATION MAP STYLES
   ============================================ */

.map-filter-section {
  background-color: #444;
  padding: 0;
}

/* Prevent body scroll when mobile filter is open */
body.map-filter-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.map-section-title {
  text-align: center;
  padding: var(--padding-section-vertical-lg) 0 var(--spacing-md);
  color: var(--color-white);
}

/* Filter Bar */
.map-filter-bar {
  background-color: #444;
  padding: var(--spacing-lg) 0;
}

.map-filter-bar .container {
  position: relative;
}

.map-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  position: relative;
}

.filter-title {
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  font-weight: 500;
  color: var(--color-white);
  margin-right: var(--spacing-md);
}

.map-filter-btn {
    font-family: var(--font-primary);
    font-size: var(--font-size-nav);
    font-weight: 300;
    color: var(--color-white);
    background-color: transparent;
    border: 2px solid var(--color-white);
    padding: 12px 30px;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
}

.map-filter-btn:hover {
  background-color: var(--color-white);
  color: var(--color-purple);
  /* transform: translateY(-2px); */
}

.map-filter-btn.active {
  background-color: var(--color-white);
  color: var(--color-purple);
  border-color: var(--color-white);
  font-weight: 400;
}

/* Map Container */
.map-images-container {
  position: relative;
  width: 100%;
  background-color: #444;
}

.map {
  position: relative;
  width: 100%;
  display: none;
}

.map.active {
  display: block;
}

.map-box {
  position: relative;
  width: 100%;
  min-height: 750px;
  overflow: hidden;
  touch-action: pan-y pinch-zoom; /* Allow vertical scroll and pinch zoom */
}

.map-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  user-select: none;      /* kein Text/Bild markieren beim Ziehen */
  -webkit-user-drag: none;
  touch-action: pan-y pinch-zoom; /* Allow vertical scroll and pinch zoom */
  cursor: grab;
}

@media (max-width: 991px) {

  .map-box {
    min-height: 500px;
  }

  .map-box::before {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    content: " ";
    background: rgba(255, 255, 255, 0.7);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 60px auto;
    background-image: url(../images/hand.svg);
    -moz-animation: swipe-icon-ani 2.5s infinite linear;
    -webkit-animation: swipe-icon-ani 2.5s infinite linear;
    animation: swipe-icon-ani 2.5s infinite linear;
    z-index: 2;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease-out;
  }

  /* Hide animation on touch/interaction */
  .map-box.dragging::before,
  .map-box.touched::before {
    opacity: 0;
  }

  .map-box img {
    width: auto;
  }
}

.map-box.dragging img {
  cursor: grabbing;
  cursor: -webkit-grabbing;
}

/* Legend Boxes */
.legende {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10;
  max-width: 490px;
}

.legende-box {
  background-color: rgba(71, 71, 71, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 10px 24px;
  border: 1px solid rgba(185, 164, 117, 0.3);
}

.legende-box h3 {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-white);
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legende-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legende-box ul li {
  display: flex;
  align-items: flex-start;
  padding: 2px 0;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--color-white);
}

.legende-box ul li::before {
  display: none !important;
}

.legende-box ul li span {
  color: var(--color-white);
}

/* Mobile Filter Toggle Button */
.map-filter-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  z-index: 100;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 12px;
  transition: all 0.3s ease;
}

/* Toggle button on map overlay */
.map-overlay-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  transform: none;
  z-index: 200;
}

.map-filter-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-white);
  transition: all 0.3s ease;
  border-radius: 1px;
}

.map-filter-toggle:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.map-filter-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.map-filter-toggle.active span:nth-child(2) {
  opacity: 0;
}

.map-filter-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 1024px) {
  .legende {
    right: 20px;
    bottom: 20px;
    max-width: 400px;
  }

  .legende-box {
    padding: 16px 20px;
  }

  .legende-box h3 {
    font-size: 16px;
  }

  .legende-box ul li {
    font-size: 13px;
  }
}

@media (max-width: 991px) {
  /* Hide toggle button in filter bar */
  .map-filter-bar .map-filter-toggle {
    display: none;
  }

  /* Show toggle button on map overlay */
  .map-overlay-toggle {
    display: flex;
  }

  /* Position title and toggle */
  .map-section-title {
    position: relative;
    padding-right: 60px; /* Make room for toggle button */
  }

  /* Dropdown-style filters for mobile */
  .map-filters {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 300px;
    background-color: var(--color-light-gold);
    backdrop-filter: blur(10px);
    /* border-radius: 12px; */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    padding: 0;
  }

  .map-filters.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }

  .filter-title {
    display: block;
    margin: 0;
    padding: 16px 20px;
    font-size: 16px;
    text-align: center;
    color: #333;
    font-weight: 500;
  }

  .map-filter-btn {
    display: block;
    width: 100%;
    text-align: left;
    margin: 0;
    border-radius: 0;
    background-color: transparent;
    color: #333;
    border: none;
    border-bottom: 1px solid var(--color-gold);
    padding: 16px 20px;
    font-size: 15px;
    transition: all 0.2s ease;
  }

  .map-filter-btn:last-of-type {
    border-bottom: none;
  }

  .map-filter-btn.active {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: #333;
    font-weight: 500;
  }

  .map-filter-btn:hover {
    background-color: rgba(0, 0, 0, 0.08);
  }

  /* Overlay for mobile menu */
  .map-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .map-filter-overlay.active {
    display: block;
    opacity: 1;
  }

  /* Legend adjustments */
  .legende {
    position: static;
    transform: none;
    max-width: 100%;
    margin: 20px;
    gap: 16px;
  }

  .legende-box {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .legende-box {
    padding: 14px;
  }

  .legende-box h3 {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .legende-box ul li {
    font-size: 12px;
    padding: 5px 0;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Swipe Animation for Map */
@-webkit-keyframes swipe-icon-ani {
  0% {
    background-position: 30% center;
  }
  50% {
    background-position: 70% center;
  }
  100% {
    background-position: 30% center;
  }
}

@-moz-keyframes swipe-icon-ani {
  0% {
    background-position: 30% center;
  }
  50% {
    background-position: 70% center;
  }
  100% {
    background-position: 30% center;
  }
}

@keyframes swipe-icon-ani {
  0% {
    background-position: 30% center;
  }
  50% {
    background-position: 70% center;
  }
  100% {
    background-position: 30% center;
  }
}

/* Title Carousel Animation */
@keyframes textcarousel {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  10% {
    opacity: 1;
    transform: translateY(0%);
  }
  23% {
    opacity: 1;
    transform: translateY(0%);
  }
  33% {
    opacity: 0;
    transform: translateY(-50%);
  }
  40% {
    opacity: 0;
    transform: translateY(-100%);
  }
  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}

/* Asterisk Rotation Animation */
@keyframes asterisk {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Video Container for Green Living Block */
.video-container {
  position: relative;
  width: 100%;
  /* min-height: calc(100vh - 55px); */
  height: 100%;
  cursor: pointer;
  overflow: hidden;
  background: #000;
}

.video-container {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    background: none;
}

.video-container .video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block; /* Fix für iOS Safari */
}

.video-container:hover .video-thumbnail {
  transform: scale(1.05);
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.3s ease;
  padding: 0;
  -webkit-appearance: none; /* Fix für iOS Safari */
  appearance: none;
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
}

.video-play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.video-play-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none; /* Verhindert, dass das Bild den Click blockiert */
}

/* .video-container iframe,
.video-container video {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 55px);
  border: none;
  object-fit: cover;
} */

.video-container iframe,
.video-container video {
  position: relative;
  top: 0;
  left: 0;
  height: 100%;
  max-height: calc(100vh - 55px);
  border: none;
  object-fit: contain;
}

/* Video in fullscreen/playing mode - natural aspect ratio */
/* .video-container video.playing-video {
  object-fit: contain;
  background: #000;
} */

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
  .video-container {
    -webkit-transform: translateZ(0); /* Hardware acceleration */
    transform: translateZ(0);
  }
  
  .video-play-button {
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 768px) {
  .video-play-button {
    width: 60px;
    height: 60px;
  }
  
  /* Ensure video is visible on mobile */
  .video-container .video-thumbnail {
    min-height: 70vh;
  }
  
  .video-container {
    height: 70vh;
  }
}

/* ============================================
   VIDEO TEXT SECTION - New Layout
   ============================================ */

.videotext-section {
  width: 100%;
  position: relative;
}

.videotext-section .container {
  display: flex;
}

/* Layout Normal: Text links, Video rechts */
.videotext-section.layout-normal .videotext-content {
  order: 1;
}

.videotext-section.layout-normal .videotext-video {
  order: 2;
}

/* Layout Reverse: Video links, Text rechts */
.videotext-section.layout-reverse .videotext-content {
  order: 2;
}

.videotext-section.layout-reverse .videotext-video {
  order: 1;
}

.videotext-illustration-container {
  position: relative;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Text Content - Left Side */
.videotext-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding: var(--padding-section-vertical) 0;
  overflow-y: auto;
}

.videotext-content p {
    margin-bottom: var(--spacing-md);
}

.videotext-content .content-wrapper {
  max-width: initial;
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

/* Illustration at bottom of text */
.videotext-illustration {
  position: absolute;
  bottom: -20px;
  width: 50%;
  max-width: 100%;
  height: 200px;
  display: block;
  object-fit: cover;
  object-position: top;
}

/* Video Container - Right Side */
.videotext-video {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: var(--padding-section-vertical) 0;
}

.videotext-video picture {
  width: 100%;
  height: 100%;
}

.video-container-centered {
  position: relative;
  width: auto;
  width: clamp(250px, 40vw, 450px);
  aspect-ratio: 9 / 16;
  cursor: pointer;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.video-container-centered .video-thumbnail {
  width: auto;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}

.video-container-centered:hover .video-thumbnail {
  transform: scale(1.05);
}

.video-container-centered .video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 10;
}

.video-container-centered:hover .video-play-button {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-container-centered .video-play-button img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Playing video styles */
.video-container-centered video.playing-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Background Colors */
.videotext-section.bg-green {
  background-color: var(--color-green);
}

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

.videotext-section.bg-light-gold {
  background-color: var(--color-light-gold);
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) {
  .videotext-section .container {
    flex-direction: column;
    min-height: auto;
  }
  
  /* Auf Tablet/Mobile ist immer Text oben und Video unten, 
     unabhängig von der Layout-Einstellung */
  .videotext-content {
    order: 1 !important;
    padding: var(--padding-section-vertical) 0;
  }
  
  .videotext-video {
    order: 2 !important;
    padding: var(--container-padding) 0;
  }
  
  .videotext-illustration {
    left: 0;
    margin-top: 2rem;
  }

  .videotext-illustration-container {
      margin-top: 200px;
  }

  .videotext-illustration-container img {
    width: 100%;
  }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
  .videotext-section {
    min-height: auto;
  }
  
  .videotext-content .content-wrapper {
    padding: 0 var(--container-padding-mobile);
  }
  
  .video-container-centered .video-play-button {
    width: 60px;
    height: 60px;
  }
  
  .videotext-illustration {
    margin-top: 1.5rem;
  }
}


/* ============================================
   TEXT BLOCK
   ============================================ */
.textboxed p {
  margin-bottom: var(--spacing-md);
}

.textboxed h3 {
  margin-block: var(--spacing-md);
}

.textboxed ul {
  margin-block: var(--spacing-md);
}

.textboxed a {
  color: var(--color-gold);
  text-decoration: underline;
  transition: var(--transition-base);
  word-break: break-all;
}