/* ============================================
   DENKMAL PENSION — Heritage Boutique Hotel
   Editorial luxury aesthetic with warm terracotta
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #FFFFFF;
  --bg: #FAFAFA;
  --bg-linen: #F8F4EF;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #555555;
  --text-muted: #999999;
  --orange: #D4783B;
  --orange-hover: #C06A2E;
  --orange-light: #FDF5EE;
  --orange-glow: rgba(212, 120, 59, 0.25);
  --border: #E8E4DF;
  --border-light: #F0ECE6;
  --footer-bg: #1C1815;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.35s var(--ease-smooth);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.6s var(--ease-smooth);
}

body.loaded {
  opacity: 1;
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--orange-hover));
  z-index: 10001;
  transition: none;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img {
  max-width: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth);
}
img.img-loaded { opacity: 1; }

/* Fallback: if JS hasn't added img-loaded after 2s, show images anyway */
@keyframes imgFallback {
  to { opacity: 1; }
}
img:not(.img-loaded) {
  animation: imgFallback 0s 2s forwards;
}
em { font-family: var(--font-serif); font-style: italic; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

::selection {
  background: var(--orange);
  color: #fff;
}


/* --- Loader --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-linen);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-smooth), visibility 0.6s;
}

.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.loader-logo-img {
  height: 48px;
  margin: 0 auto 28px;
  opacity: 1;
}

.loader-bar {
  width: 120px;
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-fill {
  height: 100%;
  width: 0;
  background: var(--orange);
  border-radius: 3px;
  animation: loaderFill 1.2s var(--ease-out) forwards;
}

@keyframes loaderFill {
  to { width: 100%; }
}


/* --- Navigation (Luxury Editorial) --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 32px;
  transition: all 0.4s var(--ease-smooth);
  background: rgba(248, 244, 239, 0.96);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border-light);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 14px 32px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-img {
  height: 32px;
  transition: var(--transition);
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav.scrolled .nav-links a {
  color: var(--text-secondary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s var(--ease-out), left 0.3s var(--ease-out);
  border-radius: 1px;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; left: 0; }

.nav-cta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 28px;
  background: var(--orange);
  color: #fff;
  border-radius: 100px;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--orange-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s var(--ease-out), width 0.3s var(--ease-out);
  transform-origin: center;
}

.nav.scrolled .nav-toggle span { background: var(--text); }

/* Hamburger → X */
.nav-toggle.menu-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.menu-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.menu-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-linen);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
}

.mobile-menu.open { transform: translateX(0); }

.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
  transition: color 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.mobile-close:hover {
  color: var(--orange);
  transform: rotate(90deg);
}

.mobile-link {
  font-size: 24px;
  font-family: var(--font-serif);
  color: var(--text);
  padding: 14px;
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.4s var(--ease-out);
}

.mobile-menu.open .mobile-link:hover {
  color: var(--orange);
}

.mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.3s; }


/* --- Hero (Split Layout) --- */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.hero-text-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 60px 60px 60px;
  background: var(--bg-linen);
  position: relative;
  z-index: 2;
}

.hero-image-side {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.hero-image-side .hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  will-change: transform;
  opacity: 1;
}

.hero-tag-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), rgba(212, 120, 59, 0.3));
  border-radius: 2px;
  margin-bottom: 20px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 28px;
  padding: 10px 24px;
  border: 1px solid rgba(212, 120, 59, 0.25);
  border-radius: 100px;
  background: rgba(212, 120, 59, 0.06);
  width: fit-content;
  transition: background 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth);
}

.hero-tag:hover {
  background: rgba(212, 120, 59, 0.12);
  border-color: rgba(212, 120, 59, 0.4);
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 5vw, 88px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 28px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.hero-title em {
  color: var(--orange);
  font-style: italic;
  font-weight: 500;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}


/* --- Marquee --- */
.marquee {
  padding: 18px 0;
  background: linear-gradient(135deg, #B8632C, #D4783B, #C06A2E, #D4783B, #B8632C);
  background-size: 200% 100%;
  animation: marqueeGradient 8s ease-in-out infinite;
  overflow: hidden;
}

@keyframes marqueeGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.marquee-track {
  display: flex;
  gap: 28px;
  animation: marqueeScroll 28s linear infinite;
  white-space: nowrap;
  align-items: center;
}

.marquee-track span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  flex-shrink: 0;
}

.marquee-dot {
  width: 5px !important;
  height: 5px;
  background: rgba(255, 255, 255, 0.5) !important;
  border-radius: 50%;
  display: inline-block;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% / 3)); }
}


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  text-decoration: none;
}

.btn svg { transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

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

.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
}

.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-glow:hover {
  box-shadow: 0 8px 32px var(--orange-glow);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-light);
  transform: translateY(-2px);
}

/* .btn-outline-dark — same as .btn-outline */
.btn-outline-dark { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline-dark:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-light); transform: translateY(-2px); }

.btn-full { width: 100%; }

.btn-lg {
  padding: 18px 40px;
  font-size: 14px;
}


/* --- Section Borders --- */
.section-border {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}


/* --- Sections --- */
.section {
  padding: 120px 0;
  position: relative;
  scroll-margin-top: 76px;
}

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

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

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 8px;
}

.section-tag::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  opacity: 0.4;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-title em { color: var(--orange); font-weight: 500; }

.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}


/* --- Apartment Cards (Horizontal Magazine Layout) --- */
.apartments-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.apt-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease-out);
  display: grid;
  grid-template-columns: minmax(400px, 1fr) 1fr;
  align-items: stretch;
}

.apt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  border-color: rgba(212, 120, 59, 0.35);
}

.apt-card-featured {
  border-color: rgba(212, 120, 59, 0.25);
}

.apt-card-featured:hover {
  box-shadow: 0 20px 60px rgba(212, 120, 59, 0.1);
}

.apt-image {
  position: relative;
  min-height: 320px;
  height: 100%;
  overflow: hidden;
  background: var(--bg-linen);
}

/* --- Image Slider --- */
.apt-slider {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.4s var(--ease-out);
  will-change: transform;
}

.apt-slider img {
  min-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  -webkit-user-drag: none;
  transform: scale(1);
  transition: transform 0.6s var(--ease-smooth), opacity 0.5s var(--ease-smooth);
}

.apt-card:hover .apt-slider img {
  transform: scale(1.03);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 3;
}

.apt-card:hover .slider-btn { opacity: 1; }
.slider-btn:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }

.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s;
  cursor: pointer;
}

.slider-dot.active {
  background: var(--orange);
  width: 18px;
  border-radius: 3px;
}

.apt-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  background: var(--orange);
  color: #fff;
  border-radius: 100px;
  z-index: 3;
  box-shadow: 0 4px 16px var(--orange-glow);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.apt-card:hover .apt-badge {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* .apt-badge-featured — merged into .apt-badge */

.apt-tag-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  color: #fff;
  z-index: 3;
  transition: background 0.3s var(--ease-smooth);
}

.apt-card:hover .apt-tag-pill {
  background: rgba(0, 0, 0, 0.7);
}

.apt-body {
  padding: 36px 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.apt-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.apt-location svg { color: var(--orange); }

.apt-name {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 12px;
}

.apt-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.apt-details {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.apt-detail {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  background: var(--bg-linen);
  border-radius: 100px;
  transition: all 0.3s var(--ease-smooth);
}

.apt-detail:hover {
  background: var(--orange-light);
  color: var(--orange);
  transform: translateY(-1px);
}


/* --- Parallax Image Strip --- */
.parallax-strip {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.parallax-strip-img {
  width: 100%;
  height: 150%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: -25%;
  left: 0;
  will-change: transform;
  opacity: 1;
}

.parallax-strip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28, 24, 21, 0.65), rgba(28, 24, 21, 0.45));
}

.parallax-strip-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.parallax-quote {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 400;
  font-style: italic;
  color: #fff;
  letter-spacing: 4px;
  text-align: center;
  padding: 0 24px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 0, 0, 0.2);
}


/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: feature-counter;
}

.feature {
  text-align: center;
  padding: 44px 24px 40px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  counter-increment: feature-counter;
}

.feature::after {
  content: counter(feature-counter, decimal-leading-zero);
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: rgba(212, 120, 59, 0.15);
  line-height: 1;
  transition: color 0.4s var(--ease-out);
}

.feature:hover::after {
  color: rgba(212, 120, 59, 0.3);
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--orange);
  border-radius: 0 0 3px 3px;
  opacity: 0;
  transition: all 0.4s var(--ease-out);
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-light);
  border-radius: 16px;
  transition: all 0.4s var(--ease-out);
}

.feature:hover .feature-icon {
  background: var(--orange);
  transform: scale(1.05);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--orange);
  transition: color 0.4s;
}

.feature:hover .feature-icon svg { color: #fff; }

.feature h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
}

.feature p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* --- Reviews Carousel --- */
.reviews-carousel {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  overflow-x: hidden;
}

.reviews-track {
  display: flex;
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}

.review {
  min-width: 100%;
  padding: 48px 56px;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}

.review-stars {
  font-size: 20px;
  color: var(--orange);
  letter-spacing: 4px;
}

.review-source {
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 12px;
  background: var(--bg-linen);
  border-radius: 100px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.review-text {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 32px;
  flex: 1;
  font-style: italic;
  font-weight: 400;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange-light);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.review-author strong {
  font-size: 15px;
  font-weight: 600;
}

.reviews-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
}

.review-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--orange);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
  color: #fff;
  box-shadow: 0 3px 12px var(--orange-glow);
}

.review-arrow:hover {
  background: var(--orange-hover);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 20px var(--orange-glow);
}

.review-arrow:active { transform: scale(0.95); }

/* arrows loop — no disabled state needed */

.review-indicators {
  display: flex;
  gap: 8px;
  align-items: center;
}

.review-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s;
}

.review-indicator:hover {
  background: var(--orange-hover);
  transform: scale(1.3);
}

.review-indicator.active {
  background: var(--orange);
  width: 24px;
  border-radius: 4px;
}

.review-indicator.active:hover {
  transform: none;
}


/* --- CTA --- */
.section-cta {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cta-bg-img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: -15%;
  left: 0;
  will-change: transform;
  opacity: 1;
}

.cta-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 120, 59, 0.72), rgba(192, 106, 46, 0.78));
}

.cta-content {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 400;
  color: #fff;
  margin-bottom: 16px;
}

.cta-content h2 em { color: #fff; font-style: italic; }

.cta-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  line-height: 1.7;
}

.section-cta .btn-primary {
  background: #fff;
  color: var(--orange);
  position: relative;
  overflow: hidden;
}

.section-cta .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 120, 59, 0.12), transparent);
  animation: btnShimmer 3s ease-in-out infinite;
}

@keyframes btnShimmer {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}

.section-cta .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}


/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  text-align: center;
  padding: 44px 28px;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease-out);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.05);
}

.contact-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-light);
  border-radius: 50%;
  transition: all 0.4s var(--ease-out);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: var(--orange);
  transition: color 0.4s var(--ease-out);
}

.contact-card:hover .contact-icon {
  background: var(--orange);
}

.contact-card:hover .contact-icon svg {
  color: #fff;
}

.contact-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.contact-card a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(212, 120, 59, 0.3);
  text-underline-offset: 3px;
  transition: var(--transition);
}

.contact-card a:hover {
  text-decoration-color: var(--orange);
}

.contact-apartments {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-light);
  padding: 6px 16px;
  border-radius: 100px;
  transition: all 0.3s var(--ease-smooth);
}

.contact-apartments:hover {
  background: var(--orange);
  color: #fff;
}


/* --- Legal Sections (Impressum / Datenschutz) --- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 8px;
}

.legal-block {
  margin-bottom: 32px;
}

.legal-block h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.legal-block p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.legal-block a {
  color: var(--orange);
  text-decoration: none;
  transition: var(--transition);
}

.legal-block a:hover {
  color: var(--orange-hover);
}

@media (max-width: 640px) {
  .legal-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* --- Footer (Dark with gradient top border) --- */
.footer {
  padding: 80px 0 0;
  background: var(--footer-bg);
  border-top: none;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
}

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

.footer-logo-img {
  height: 36px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: 1;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  padding: 5px 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--orange);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  gap: 0;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
}

.footer-back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  padding: 16px 0 24px;
  background: none;
  border: none;
}

.footer-back-top:hover {
  color: var(--orange);
}

.footer-back-top svg {
  transition: transform 0.3s var(--ease-out);
}

.footer-back-top:hover svg {
  transform: translateY(-2px);
}


/* --- Apartment Hinweis --- */
.apt-hinweis {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  padding: 16px 28px;
  background: var(--orange-light);
  border: 1px solid rgba(212, 120, 59, 0.15);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  transition: background 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth);
}

.apt-hinweis:hover {
  border-color: rgba(212, 120, 59, 0.35);
  background: rgba(212, 120, 59, 0.1);
}

.apt-hinweis svg {
  color: var(--orange);
  flex-shrink: 0;
}


/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.4s var(--ease-out);
  box-shadow: 0 4px 20px var(--orange-glow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top.visible:hover {
  background: var(--orange-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--orange-glow);
}


/* --- Scroll Animations --- */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-aos].visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-hero {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.anim-hero.visible {
  opacity: 1;
  transform: translateY(0);
}


/* --- Focus Styles for Accessibility --- */
.btn:focus-visible,
.nav-cta:focus-visible,
.nav-links a:focus-visible,
.slider-btn:focus-visible,
.back-to-top:focus-visible,
.nav-toggle:focus-visible,
.mobile-close:focus-visible,
.mobile-link:focus-visible,
.slider-dot:focus-visible,
.review-arrow:focus-visible,
.review-indicator:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* --- will-change hints for continuously animated elements only --- */
.marquee-track {
  will-change: transform;
}

/* --- Slider buttons always visible on touch devices --- */
@media (hover: none) {
  .slider-btn {
    opacity: 1;
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .apt-card {
    grid-template-columns: 1fr;
  }
  .apt-image {
    min-height: 280px;
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .apartments-grid {
    max-width: 600px;
    margin: 0 auto;
  }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }

  .hero-split {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
  }
  .hero-text-side {
    padding: 120px 48px 60px;
    min-height: auto;
  }
  .hero-image-side {
    height: 50vh;
  }

  .parallax-strip { height: 300px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .mobile-menu { display: flex; }
  .mobile-close { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .nav { padding: 16px 20px; }
  .nav.scrolled { padding: 12px 20px; }
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 40px; }
  .section-title { font-size: clamp(28px, 6vw, 40px); }
  .section-sub { font-size: 15px; }
  .section-tag { font-size: 10px; letter-spacing: 3px; }

  .hero-text-side {
    padding: 100px 24px 48px;
  }
  .hero-title { font-size: clamp(36px, 9vw, 56px); }
  .hero-sub { font-size: 15px; line-height: 1.65; }
  .hero-tag { font-size: 10px; letter-spacing: 2px; padding: 8px 18px; }
  .hero-image-side { height: 45vh; }

  .hero-stats { gap: 20px; }
  .stat-num { font-size: 32px; }
  .stat-label { font-size: 10px; }

  .hero-actions { flex-direction: column; align-items: flex-start; width: 100%; }
  .hero-actions .btn { width: 100%; max-width: 300px; }

  .features-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .feature { padding: 32px 20px 28px; }

  .review { padding: 32px 28px; }
  .review-text { font-size: 18px; }

  .contact-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .contact-card { padding: 32px 20px; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-col { display: flex; flex-direction: column; align-items: center; }
  .footer-col a:hover { transform: none; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .apt-card {
    grid-template-columns: 1fr;
  }
  .apt-image { min-height: 240px; height: auto; aspect-ratio: 16 / 10; }
  .apartments-grid { max-width: 100%; }
  .apt-body { padding: 24px 20px 28px; }
  .apt-name { font-size: 22px; }

  /* Slider buttons always visible on mobile */
  .slider-btn { opacity: 1; width: 32px; height: 32px; }
  .slider-prev { left: 8px; }
  .slider-next { right: 8px; }

  /* Marquee mobile */
  .marquee { padding: 14px 0; }
  .marquee-track { gap: 20px; }
  .marquee-track span { font-size: 11px; letter-spacing: 1.5px; }

  /* Back to top smaller on mobile */
  .back-to-top { width: 40px; height: 40px; bottom: 20px; right: 20px; }
  .back-to-top svg { width: 16px; height: 16px; }

  /* CTA section */
  .section-cta { padding: 100px 0; }
  .cta-sub { font-size: 15px; }

  /* Parallax strip */
  .parallax-strip { height: 250px; }
  .parallax-quote { font-size: clamp(24px, 5vw, 36px); letter-spacing: 2px; }

  /* Apt hinweis */
  .apt-hinweis { font-size: 13px; padding: 14px 20px; flex-wrap: wrap; justify-content: center; text-align: center; }

  /* Review carousel */
  .reviews-carousel { max-width: 100%; }
  .review-arrow { width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero-text-side { padding: 90px 16px 40px; }
  .hero-title { font-size: clamp(30px, 9vw, 42px); }
  .hero-sub { font-size: 14px; margin-bottom: 32px; }
  .hero-tag { font-size: 10px; padding: 7px 14px; gap: 8px; }
  .hero-image-side { height: 40vh; }

  .hero-stats { flex-direction: column; gap: 14px; padding-top: 28px; }
  .stat-divider { width: 40px; height: 1px; }
  .stat-num { font-size: 28px; }

  .hero-actions .btn { max-width: 100%; width: 100%; }

  .section { padding: 56px 0; }
  .section-title { font-size: clamp(24px, 6vw, 32px); }

  .apt-image { min-height: 200px; height: auto; aspect-ratio: 16 / 10; }
  .apt-body { padding: 16px 16px 20px; }
  .apt-name { font-size: 20px; }
  .apt-desc { font-size: 13px; margin-bottom: 16px; }
  .apt-details { gap: 6px; margin-bottom: 16px; padding-bottom: 16px; }
  .apt-detail { font-size: 12px; padding: 6px 12px; }

  .btn { padding: 12px 24px; font-size: 12px; min-height: 44px; }
  .btn-lg { padding: 14px 28px; font-size: 13px; }

  .feature { padding: 28px 16px 24px; }
  .feature h3 { font-size: 18px; }
  .feature p { font-size: 13px; }
  .feature-icon { width: 50px; height: 50px; margin-bottom: 18px; }

  .review { padding: 24px 20px; }
  .review-text { font-size: 16px; }

  .contact-card { padding: 28px 16px; }
  .contact-card h3 { font-size: 18px; }

  .footer { padding: 56px 0 0; }
  .footer-top { gap: 24px; padding-bottom: 32px; }
  .footer-col h4 { margin-bottom: 14px; }

  .marquee-track span { font-size: 10px; letter-spacing: 1px; }
  .marquee-track { gap: 16px; }

  .parallax-strip { height: 200px; }
  .parallax-quote { font-size: clamp(20px, 5vw, 28px); letter-spacing: 1px; }

  /* Ensure minimum tap targets */
  .mobile-link { padding: 16px; min-height: 44px; }
  .slider-dot { min-width: 12px; min-height: 12px; }
  .review-indicator { min-width: 12px; min-height: 12px; }

  .section-cta { padding: 80px 0; }

  .nav { padding: 14px 16px; }
  .nav.scrolled { padding: 10px 16px; }
  .nav-logo-img { height: 28px; }
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 480px) {
  .hero-title { font-size: clamp(28px, 8vw, 36px); }
  .section { padding: 56px 0; }
  .review { padding: 24px 20px; }
  .contact-card { padding: 24px 16px; }
  .container { padding: 0 16px; }
  .parallax-quote { word-break: break-word; }
}

@media (max-width: 375px) {
  .container { padding: 0 14px; }
  .hero-title { font-size: 26px; }
  .section-title { font-size: 22px; }
  .section { padding: 44px 0; }
  .btn { min-height: 44px; font-size: 14px; }
  .nav { padding: 12px 14px; }
}
