/* ============================================================
   Lipp Apartments — Custom Styles
   ============================================================ */

/* ---- Selbstgehostete Schriften (DSGVO-konform, kein Google-CDN) ---- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/playfair-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/playfair-italic-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- CSS Custom Properties -------------------------------- */
:root {
  --color-bg:           #F8F7F5;
  --color-text:         #1C1C1C;
  --color-accent:       #C4963C;
  --color-accent-dark:  #A37E2C;
  --color-depth:        #2C4A3E;
  --color-card:         #FFFFFF;
  --color-border:       #E5E0D8;
  --color-muted:        #6B6B6B;
}

/* ---- Base ------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ------------------------------------------- */
.font-display { font-family: 'Playfair Display', serif; }

/* ---- Skip-Link (nur bei Tastaturfokus sichtbar) ----------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--color-depth);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 0.5rem 0;
}
.skip-link:focus {
  left: 0;
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* Dunkleres Gold für kleinen Text auf hellem Grund — WCAG AA (5.2:1 auf Weiß) */
  color: #8A6624;
}
/* Eyebrow auf grünem Grund: helleres Gold für ausreichenden Kontrast (4.8:1) */
.bg-lipp-depth .eyebrow {
  color: #D6B260;
}

/* ---- Hero-Statistik-Balken (unter dem Titelbild) ---------- */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 64rem;
  margin: 0 auto;
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-stats > div:last-child { border-right: none; }
.hero-stats .stat-title { margin-bottom: 0.35rem; line-height: 1.15; }

@media (max-width: 640px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats > div { padding: 1.25rem 0.75rem; }
  .hero-stats > div:nth-child(2n) { border-right: none; }
  .hero-stats > div:nth-child(1),
  .hero-stats > div:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .hero-stats .stat-title { font-size: 1.375rem; }
}

/* ---- Anfrageformular -------------------------------------- */
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}
.form-input {
  width: 100%;
  padding: 0.625rem 0.85rem;
  border: 1px solid #E5E0D8;
  border-radius: 0.625rem;
  background: #fff;
  font-size: 0.9rem;
  color: var(--color-text);
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input::placeholder { color: #b7b2a8; }
.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(196, 150, 60, 0.15);
}
textarea.form-input { resize: vertical; min-height: 6rem; }
/* Honeypot — für Menschen unsichtbar, für Bots ein Köder */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status--ok  { color: #15803d; font-weight: 600; }
.form-status--err { color: #dc2626; font-weight: 600; }

/* ---- Buttons ---------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  background-color: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  transition: background-color 180ms ease, transform 180ms ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-1px);
}

.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background-color: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.5rem;
  transition: background-color 180ms ease, transform 180ms ease;
  text-decoration: none;
}
.btn-primary-lg:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-1px);
}

.btn-outline-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background-color: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.65);
  border-radius: 0.5rem;
  transition: background-color 180ms ease, border-color 180ms ease;
  text-decoration: none;
}
.btn-outline-lg:hover {
  background-color: rgba(255,255,255,0.12);
  border-color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5625rem 1.375rem;
  background-color: transparent;
  color: var(--color-depth);
  font-weight: 600;
  font-size: 0.875rem;
  border: 1.5px solid var(--color-depth);
  border-radius: 0.5rem;
  transition: background-color 180ms ease, color 180ms ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-secondary:hover {
  background-color: var(--color-depth);
  color: #fff;
}

/* ---- Navigation — Liquid Glass ---------------------------- */
#navbar {
  /* Transparent — glass layers come from ::before and ::after */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

/* Layer 1: frosted-glass base (blur only, no SVG filter so content stays sharp) */
#navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(248, 247, 245, 0.78);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.92),
    inset 0 -0.5px 0 rgba(0, 0, 0, 0.04),
    0 1px 0 rgba(0, 0, 0, 0.06),
    0 4px 20px rgba(0, 0, 0, 0.09);
}

/* Layer 2: liquid highlight texture — SVG filter applied here, NOT on content */
#navbar::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(160deg,
      rgba(255, 255, 255, 0.32) 0%,
      rgba(255, 255, 255, 0.04) 50%,
      rgba(255, 255, 255, 0.20) 100%
    );
  filter: url(#glass-distortion);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

/* Slightly stronger shadow when page is scrolled */
#navbar.nav-scrolled::before {
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.92),
    inset 0 -0.5px 0 rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(0, 0, 0, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.14);
}

#navbar .nav-link {
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 150ms ease;
  text-decoration: none;
}
#navbar .nav-link:hover,
#navbar .nav-link.active { color: var(--color-accent); }

#navbar .cta-nav {
  background-color: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background-color 180ms ease;
  white-space: nowrap;
  text-decoration: none;
}
#navbar .cta-nav:hover { background-color: var(--color-accent-dark); }

/* ---- Pill Nav (Desktop, centered within navbar) ----------- */
.pill-nav {
  position: relative;
  display: flex;
  align-items: center;
  /* Glass-within-glass: lighter than the nav, no extra blur to avoid double-blur */
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0.25rem;
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.90),
    0 2px 12px rgba(0, 0, 0, 0.07),
    0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Sliding pill indicator */
.pill-indicator {
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 0;
  width: 0;
  background-color: rgba(196, 150, 60, 0.09);
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  transition: left 300ms cubic-bezier(0.34, 1.2, 0.64, 1),
              width 300ms cubic-bezier(0.34, 1.2, 0.64, 1);
}

/* Lamp: gold bar + downward glow (nav is at page top, glow points downward) */
.lamp-glow {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 2px;
  background: var(--color-accent);
  border-radius: 0 0 3px 3px;
  overflow: visible;
}
.lamp-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3.5rem;
  height: 1.25rem;
  background: radial-gradient(ellipse at top, rgba(196,150,60,0.32) 0%, transparent 70%);
  filter: blur(4px);
  border-radius: 0 0 50% 50%;
}
.lamp-glow::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 0.75rem;
  background: radial-gradient(ellipse at top, rgba(196,150,60,0.22) 0%, transparent 80%);
  filter: blur(2px);
}

/* Pill nav links */
.pill-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}
.pill-link:hover { color: var(--color-accent-dark); }
.pill-link.active {
  color: var(--color-accent);
  font-weight: 600;
}

/* Tighter padding on mid-range desktops so pill doesn't overflow */
@media (max-width: 1100px) {
  .pill-link { padding: 0.4375rem 0.75rem; font-size: 0.8125rem; }
}

/* Mobile menu */
#mobile-menu { border-top: 1px solid var(--color-border); }

#mobile-menu .mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  color: var(--color-text);
  font-weight: 500;
  transition: color 150ms ease;
  text-decoration: none;
}
#mobile-menu .mobile-nav-link:hover { color: var(--color-accent); }

/* ---- Fullbleed Hero --------------------------------------- */
#hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.95) saturate(1.1) contrast(1.05);
}

@media (min-width: 768px) {
  #hero {
    aspect-ratio: 1400 / 560;
    min-height: 40vh;
  }
  .hero-bg-img {
    object-position: center center;
  }
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.02) 20%,
    transparent 38%,
    rgba(10,10,15,0.32) 63%,
    rgba(10,10,15,0.68) 100%
  );
}

.hero-headline {
  text-shadow: 0 1px 12px rgba(0,0,0,0.35), 0 0px 3px rgba(0,0,0,0.2);
}

.hero-body {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.5rem 3.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 767px) {
  #hero { aspect-ratio: 9/16; min-height: unset; }
  .hero-bg-img { object-position: center center; }
  .hero-body { padding: 2rem 1.25rem 2.75rem; }
}

/* ---- Hero badges on dark background ----------------------- */
.hero-badge-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background-color: rgba(255,255,255,0.13);
  border: 1.5px solid rgba(255,255,255,0.26);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---- Navbar transparent on hero --------------------------- */
#navbar.nav-on-hero::before {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
#navbar.nav-on-hero::after {
  background: linear-gradient(to bottom, rgba(0,0,0,0.22) 0%, transparent 100%);
  filter: none;
  border-bottom: none;
}
#navbar.nav-on-hero .nav-link { color: rgba(255,255,255,0.88); }
#navbar.nav-on-hero .nav-link:hover,
#navbar.nav-on-hero .nav-link.active { color: #fff; }
#navbar.nav-on-hero .pill-nav {
  background: rgba(0,0,0,0.28);
  border-color: rgba(255,255,255,0.2);
}
#navbar.nav-on-hero .pill-link { color: rgba(255,255,255,0.88); }
#navbar.nav-on-hero .pill-link:hover { color: #fff; }
#navbar.nav-on-hero .pill-link.active { color: var(--color-accent); }
#navbar.nav-on-hero #lang-toggle {
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}
#navbar.nav-on-hero #lang-toggle .lang-active { color: var(--color-accent); }
#navbar.nav-on-hero #lang-toggle .lang-inactive { opacity: 0.6; }
#navbar.nav-on-hero #hamburger { color: #fff; }
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  background-color: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 0.5rem;
  transition: background-color 180ms ease, border-color 180ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-outline-white:hover {
  background-color: rgba(255,255,255,0.12);
  border-color: #fff;
}

.btn-outline-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  background-color: transparent;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.875rem;
  border: 2px solid var(--color-accent);
  border-radius: 0.5rem;
  transition: background-color 180ms ease, color 180ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-outline-accent:hover {
  background-color: var(--color-accent);
  color: #fff;
}

/* ---- Gallery (Bento Grid) --------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

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

/* Item base */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  cursor: pointer;
  background-color: var(--color-card);
  aspect-ratio: 4 / 3;
}
.gallery-item:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Alle Items gleich groß — einheitliches Raster */
.gallery-item--portrait,
.gallery-item--landscape {
  grid-column: span 1;
  grid-row: span 1;
}

/* Photo placeholder inside gallery */
.gallery-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: linear-gradient(145deg, #EDEAD3 0%, #DDD8CE 100%);
  border: 2px dashed #C8C3B9;
  transition: transform 400ms ease;
}
.gallery-item:hover .gallery-photo-placeholder { transform: scale(1.04); }

/* Real image inside gallery (replaces placeholder) */
.gallery-item img.gallery-real-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Blur-Up: unscharf & leicht vergrößert, bis das Bild geladen ist */
  opacity: 0;
  transform: scale(1.06);
  filter: brightness(1.18) contrast(0.96) blur(14px);
  transition: opacity 600ms ease, transform 700ms ease, filter 700ms ease;
}
.gallery-item img.gallery-real-img.is-loaded {
  opacity: 1;
  transform: scale(1);
  filter: brightness(1.18) contrast(0.96) blur(0);
}
.gallery-item:hover img.gallery-real-img.is-loaded { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  .gallery-item img.gallery-real-img {
    opacity: 1;
    transform: none;
    filter: brightness(1.18) contrast(0.96);
    transition: none;
  }
}

.gallery-ph-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #A09A90;
  text-align: center;
}

/* Hover overlay */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,20,20,0.70) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1.125rem;
  opacity: 0;
  transition: opacity 300ms ease;
}
.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay { opacity: 1; }

.gallery-item-title {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.25rem;
}
.gallery-item-desc {
  color: rgba(255,255,255,0.72);
  font-size: 0.8125rem;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Lightbox -------------------------------------------- */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox[hidden] { display: none; }

.gallery-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14,14,14,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.gallery-lb-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 3.5rem 1rem 5rem;
  gap: 0;
  pointer-events: none;
}
.gallery-lb-shell > * { pointer-events: auto; }

.gallery-lb-media {
  position: relative;
  width: 100%;
  max-width: 860px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lb-photo-placeholder {
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16/9;
  background: rgba(255,255,255,0.04);
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.gallery-lb-img {
  max-width: 860px;
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 0.75rem;
  display: block;
}

.gallery-lb-caption {
  text-align: center;
  padding: 1.25rem 1rem 0;
  max-width: 600px;
}
.gallery-lb-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.375rem;
}
.gallery-lb-desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
  line-height: 1.5;
}

/* Lightbox buttons */
.gallery-lb-close {
  position: absolute;
  top: 1.125rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 150ms ease;
  pointer-events: auto;
}
.gallery-lb-close:hover { background: rgba(255,255,255,0.2); }

.gallery-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 150ms ease;
  pointer-events: auto;
}
.gallery-lb-nav:hover { background: rgba(196,150,60,0.5); border-color: var(--color-accent); }
.gallery-lb-prev { left: 1rem; }
.gallery-lb-next { right: 1rem; }

@media (max-width: 600px) {
  .gallery-lb-prev { left: 0.5rem; }
  .gallery-lb-next { right: 0.5rem; }
  .gallery-lb-nav { width: 2.5rem; height: 2.5rem; }
}

.gallery-lb-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  pointer-events: none;
}

/* ---- Photo Placeholder ------------------------------------ */
.photo-placeholder {
  background: linear-gradient(145deg, #EDEAD3 0%, #DDD8CE 100%);
  border: 2px dashed #C8C3B9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  color: #A09A90;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---- RoomRaccoon Booking iframe --------------------------- */
.rr-iframe-wrap {
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.07);
  background: #fff;
}
.rr-iframe-wrap iframe {
  display: block;
  width: 100%;
  height: 780px;
  border: none;
}
@media (max-width: 767px) {
  .rr-iframe-wrap iframe { height: 900px; }
}

/* ---- Booking Placeholder ---------------------------------- */
.booking-placeholder {
  background: linear-gradient(145deg, #F0EDE8 0%, #E8E3DA 100%);
  border: 2px dashed #D4CFC5;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  color: #A09A90;
  text-align: center;
  padding: 3.5rem 2rem;
  min-height: 420px;
}
.booking-placeholder p { margin: 0; line-height: 1.5; }

/* ---- Language Toggle -------------------------------------- */
#lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  transition: border-color 150ms ease, color 150ms ease;
}
#lang-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
#lang-toggle .lang-separator { opacity: 0.35; }
#lang-toggle .lang-active { color: var(--color-accent-dark); opacity: 1; }
#lang-toggle .lang-inactive { opacity: 0.55; color: var(--color-text); }

/* ---- Pill badges ------------------------------------------ */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  background-color: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
}

/* ---- Apartment Cards -------------------------------------- */
.apartment-card {
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.apartment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.10);
}
.apartment-card .card-img-wrap { overflow: hidden; }
.apartment-card .card-img {
  transition: transform 400ms ease;
  width: 100%; height: 100%; object-fit: cover;
}
.apartment-card:hover .card-img { transform: scale(1.04); }

/* ---- Amenity Cards ---------------------------------------- */
.amenity-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.375rem;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}
.amenity-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-color: #D4CFCA;
}
.amenity-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.5rem;
  background-color: var(--color-bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---- Map Consent (DSGVO 2-Klick) -------------------------- */
.map-consent {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background:
    linear-gradient(rgba(248, 247, 245, 0.92), rgba(248, 247, 245, 0.92)),
    repeating-linear-gradient(45deg, var(--color-border) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, var(--color-border) 0 1px, transparent 1px 22px);
  background-color: var(--color-bg);
}
.map-consent.is-loaded { padding: 0; background: none; }

/* ---- Distance Items --------------------------------------- */
.distance-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 0.625rem;
  transition: border-color 150ms ease;
}
.distance-item:hover { border-color: var(--color-accent); }

/* ---- Step connector (How it works) ----------------------- */
.step-connector {
  position: absolute;
  top: 2rem;
  left: calc(16.66% + 2rem);
  right: calc(16.66% + 2rem);
  height: 1px;
  background-color: var(--color-border);
  z-index: 0;
}

/* ---- Long-stay info box ----------------------------------- */
.info-box {
  background-color: #f0ede7;
  border-left: 3px solid var(--color-accent);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1.25rem 1.5rem;
}

/* ---- Focus & Accessibility -------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---- Scrollbar -------------------------------------------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #C0B9AF; }

/* ---- Typewriter ------------------------------------------- */
.tw-accent { color: var(--color-accent); }

.tw-cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--color-accent);
  font-weight: 300;
  animation: tw-blink 0.85s step-end infinite;
}
@keyframes tw-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ---- Scroll-Reveal ---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 560ms ease, transform 560ms ease;
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ---- Hero Badges ------------------------------------------ */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background-color: var(--color-card);
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

/* ---- Self Check-in Steps ---------------------------------- */
.checkin-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.checkin-number {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: var(--color-bg);
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.checkin-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background-color: rgba(196, 150, 60, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.checkin-connector {
  position: absolute;
  top: 1.375rem;
  left: calc(12.5% + 1.5rem);
  right: calc(12.5% + 1.5rem);
  height: 1px;
  background: linear-gradient(to right, var(--color-accent), var(--color-border), var(--color-accent));
  z-index: 0;
}

/* ---- Review Cards ----------------------------------------- */
.review-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}
.review-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border-color: #D4CFCA;
}
.review-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

/* ---- FAQ -------------------------------------------------- */
.faq-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 200ms ease;
}
.faq-item:hover { border-color: #D4CFCA; }
.faq-item summary {
  list-style: none;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text);
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.375rem;
  font-weight: 300;
  color: var(--color-accent);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-answer {
  padding: 1rem 1.5rem 1.375rem;
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  border-top: 1px solid var(--color-border);
}

/* ---- Mobile Sticky CTA Bar -------------------------------- */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background-color: var(--color-depth);
  padding: 0.875rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.22);
  transform: translateY(100%);
  transition: transform 320ms cubic-bezier(0.4,0,0.2,1);
}
.mobile-cta-bar.visible { transform: translateY(0); }
@media (min-width: 768px) { .mobile-cta-bar { display: none !important; } }

/* ---- WhatsApp Floating Button ----------------------------- */
.wa-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 3.5rem;
  height: 3.5rem;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 200ms ease, box-shadow 200ms ease;
  text-decoration: none;
}
.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}
@media (max-width: 767px) {
  .wa-fab { bottom: 5.25rem; }
}

/* ---- Reduced Motion --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}
