:root {
  --color-bg-primary: #ebe6dc;
  --color-bg-secondary: #e0d8cc;
  --color-bg-accent: #d2c8bb;
  /* Dunklere Tinte für Kontrast auf hellem Beige (WCAG-näher) */
  --color-text-primary: #1a1613;
  --color-text-muted: #3f382f;
  /* Wald-/Salbeigrün – warmer Naturton, gut zu Beige (Akzent; historisch „gold“-Klassennamen) */
  --color-accent: #3d5247;
  --color-accent-light: #4f6659;
  --color-accent-dim: rgba(61, 82, 71, 0.38);
  --color-on-accent: #f7f5ef;
  --color-gold: var(--color-accent);
  --color-gold-light: var(--color-accent-light);
  --color-gold-dim: var(--color-accent-dim);
  --page-pad-x: clamp(1rem, 5vw, 2rem);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-premium: 0 32px 64px -16px rgba(42, 36, 30, 0.14);
  --shadow-gold-glow: 0 0 40px -8px rgba(79, 102, 90, 0.26);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.012em;
  background-color: var(--color-bg-primary);
  color: var(--color-text-muted);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(61, 82, 71, 0.22);
  color: var(--color-text-primary);
}

/* Header immer leicht unterlegt → Logo-Blend wirkt sauber, Lesbarkeit auf Video & Mobil */
#site-header {
  background: rgba(235, 230, 220, 0.92);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid rgba(61, 82, 71, 0.18);
  box-shadow: 0 1px 0 rgba(42, 36, 30, 0.04);
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
}

.header-scrolled {
  background: rgba(235, 230, 220, 0.97);
  border-bottom: 1px solid rgba(61, 82, 71, 0.22);
}

.font-display { font-family: 'Cormorant Garamond', serif; }

/* Etwas kleiner auf schmalen Phones, damit nichts bricht */
.h1-hero {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 10vw, 5.25rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.08;
  color: var(--color-text-primary);
}

/* Hero über Video: helle Typo (global dunkle Farben würden hier untergehen) */
.hero-foreground .h1-hero {
  color: #faf7f2;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-foreground .h1-hero .text-gold {
  color: #c8e0cf;
}

.hero-foreground .label-cap.text-gold {
  color: #b5d4c5;
}

.hero-foreground p.text-textprimary {
  color: rgba(247, 244, 239, 0.96);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}

.hero-foreground a.hero-secondary-cta {
  color: #eaf4ee;
  border-color: rgba(184, 216, 198, 0.45);
}

.hero-foreground a.hero-secondary-cta:hover {
  color: #fafcfa;
  border-color: rgba(184, 216, 198, 0.78);
}

#hero .scroll-indicator.text-gold {
  color: #bdd9cb;
}

/* Hero-Footer: Padding + Scroll-Pfeil (mobil: Luft unter CTAs, Pfeil über Home-Indicator) */
/* Oben: genug Abstand zum fixen Header; Desktop extra Luft, damit keine Zeile „anschlägt“ */
#hero {
  padding-bottom: 2.5rem;
  padding-top: max(4.5rem, env(safe-area-inset-top));
}

@media (min-width: 640px) {
  #hero {
    padding-top: max(6.25rem, calc(env(safe-area-inset-top, 0px) + 5rem));
  }
}

@media (min-width: 1024px) {
  #hero {
    padding-top: max(7.25rem, calc(env(safe-area-inset-top, 0px) + 6rem));
  }
}

.scroll-indicator--hero {
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
}

@media (max-width: 639px) {
  #hero {
    /* Reserviert Bildfläche unter den Buttons – Pfeil liegt nicht auf den CTAs */
    padding-bottom: max(6.75rem, calc(env(safe-area-inset-bottom, 0px) + 5rem));
  }

  .scroll-indicator--hero {
    bottom: max(2rem, calc(env(safe-area-inset-bottom, 0px) + 1.125rem));
  }

  /* Mobil: Skyline links, zuletzt etwas nach rechts geschoben (Crop-Balance) */
  #hero .hero-video {
    object-position: 22% top;
    transform-origin: 22% 0;
  }
}

@media (min-width: 640px) {
  .h1-hero {
    font-size: clamp(2.75rem, 7.5vw, 5.25rem);
    letter-spacing: 0.04em;
  }
}

.h2-section {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.65rem, 5.5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
}

.h3-card {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 600;
  color: var(--color-text-primary);
}

.label-cap {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .label-cap { font-size: 0.8125rem; letter-spacing: 0.2em; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.btn-gold {
  transition: background-color 0.35s var(--ease-out-expo), color 0.35s ease, transform 0.2s ease, box-shadow 0.35s ease;
  background-color: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 500;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 24px -4px rgba(61, 82, 71, 0.38);
}

.btn-gold:hover {
  background-color: var(--color-accent-light);
  box-shadow: 0 8px 32px -6px rgba(61, 82, 71, 0.45);
}

.btn-gold:active {
  transform: scale(0.98);
}

@media (hover: hover) {
  .card-hover:hover {
    transform: translateY(-6px);
    border-color: rgba(61, 82, 71, 0.4);
    box-shadow: var(--shadow-premium), var(--shadow-gold-glow);
  }
}

.card-hover {
  transition: transform 0.5s var(--ease-out-expo), border-color 0.35s ease, box-shadow 0.5s var(--ease-out-expo);
  border: 1px solid rgba(61, 82, 71, 0.18);
}

#menu-panel {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  max-width: min(100%, 26rem);
  overflow: hidden;
}

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

#menu-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo), backdrop-filter 0.4s ease;
}

#menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@keyframes scroll-hint {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(10px); opacity: 1; }
}

.scroll-indicator { animation: scroll-hint 2s ease-in-out infinite; }

.slider-dot.active {
  background-color: var(--color-gold);
  transform: scale(1.15);
}

/* Logo (SVG transparent – kein Kasten im Header/Footer; Panel behält leichte Fläche) */
.site-logo-wrap {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  max-width: min(280px, 68vw);
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

#site-header .site-logo-wrap {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

.site-logo-wrap--menu {
  max-width: 260px;
}

.site-logo-wrap--footer {
  max-width: 280px;
}

.site-logo {
  display: block;
  height: 2.875rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (min-width: 640px) {
  .site-logo {
    height: 3.35rem;
  }
}

.site-logo-wrap--menu .site-logo {
  height: 3.35rem;
}

/* Mobile-Menü: Logo unauffällig, neues Premium-Layout (siehe .menu-panel-* Regeln unten) */
#menu-panel .site-logo-wrap {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.site-logo-wrap--footer .site-logo {
  height: 3rem;
}

@media (min-width: 640px) {
  .site-logo-wrap--footer .site-logo {
    height: 3.35rem;
  }
}

/* Hero-Hintergrund: Skyline oben; leicht nach rechts (52%); Filter heller/wärmer als Rohmaterial */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% top;
  transform-origin: 52% 0%;
  transform: scale(1.08);
  will-change: transform;
  filter: brightness(1.08) contrast(1.04) saturate(1.14);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-video {
    animation: heroKenBurns 32s ease-in-out infinite alternate;
  }
}

@keyframes heroKenBurns {
  0% { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.16) translate(-0.45%, 0); }
}

/* Mobil: Zoom nur von links oben, kein horizontales Driften (sonst rutscht die Skyline weg) */
@keyframes heroKenBurnsMobile {
  0% { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.1) translate(0, 0); }
}

@media (max-width: 639px) and (prefers-reduced-motion: no-preference) {
  #hero .hero-video {
    animation: heroKenBurnsMobile 32s ease-in-out infinite alternate;
  }
}

.hero-film-grain {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.nav-pill {
  position: relative;
}

.nav-pill.is-active { color: var(--color-gold); }

.nav-pill.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.form-field {
  border-radius: 0.5rem;
  border: 1px solid rgba(61, 82, 71, 0.32);
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  font-size: 1rem; /* iOS Zoom vermeiden */
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
}

/* Placeholder mit ausreichend Kontrast (WCAG ~4.5:1 auf #e0d8cc) */
.form-field::placeholder { color: rgba(63, 56, 47, 0.62); opacity: 1; }

.form-field:hover {
  border-color: rgba(61, 82, 71, 0.5);
}

.form-field:focus,
.form-field:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  background-color: #ece4d6;
  box-shadow: 0 0 0 3px rgba(61, 82, 71, 0.2);
}

.form-field:user-invalid:not(:placeholder-shown),
.form-field:invalid:not(:placeholder-shown):not(:focus) {
  border-color: rgba(176, 64, 48, 0.55);
}

/* Custom Chevron für <select> (statt Browser-Default) */
select.form-field {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%233d5247' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 8 10 13 15 8'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px 14px;
  padding-right: 2.5rem !important;
}

select.form-field::-ms-expand { display: none; }

textarea.form-field {
  line-height: 1.6;
  min-height: 8rem;
}

.form-label-required::after {
  content: ' *';
  color: var(--color-gold);
}

/* Datenschutz-Checkbox: größere Touch-Fläche, sichtbarer Custom-State */
input[type="checkbox"][required],
input[type="checkbox"].h-5 {
  -webkit-appearance: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 1.5px solid rgba(61, 82, 71, 0.55);
  background: var(--color-bg-secondary);
  border-radius: 0.25rem;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  flex-shrink: 0;
}

input[type="checkbox"][required]:hover,
input[type="checkbox"].h-5:hover {
  border-color: var(--color-accent);
}

input[type="checkbox"][required]:checked,
input[type="checkbox"].h-5:checked {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
}

input[type="checkbox"][required]:checked::after,
input[type="checkbox"].h-5:checked::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23faf8f3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 10 8 14 16 6'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.85rem 0.85rem;
}

input[type="checkbox"][required]:focus-visible,
input[type="checkbox"].h-5:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (max-width: 639px) {
  input[type="checkbox"][required],
  input[type="checkbox"].h-5 {
    width: 1.4rem;
    height: 1.4rem;
  }
  /* Datenschutz-Container mobil etwas mehr Innenabstand für Lesbarkeit */
  form .gap-3.rounded-lg.border {
    gap: 0.75rem;
    padding: 1rem;
  }
}

/* Form-Label auf Mobile etwas Luft */
@media (max-width: 639px) {
  .form-field { padding-top: 0.85rem; padding-bottom: 0.85rem; }
}

.page-hero {
  padding-top: max(7.25rem, calc(6rem + env(safe-area-inset-top)));
  padding-bottom: clamp(2.75rem, 9vw, 4.5rem);
  padding-left: var(--page-pad-x);
  padding-right: var(--page-pad-x);
  background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 55%, var(--color-bg-primary) 100%);
  border-bottom: 1px solid rgba(61, 82, 71, 0.12);
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 82, 71, 0.35), transparent);
  opacity: 0.8;
  pointer-events: none;
}

.page-hero p.max-w-2xl.text-textmuted,
.page-hero p.mx-auto.max-w-2xl.text-textmuted {
  text-wrap: pretty;
  max-width: min(42rem, 100%);
}

/* Tastatur-Fokus (WCAG) */
a:focus-visible:not(.btn-gold) {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.btn-gold:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-on-accent);
  outline-offset: 3px;
}

/* Objekt-Karten: Zoom nur im Bild, dezente Hebung */
.property-card.card-hover {
  border-color: rgba(61, 82, 71, 0.16);
}

.property-card__media {
  position: relative;
  overflow: hidden;
}

.property-card__shade {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 22, 19, 0.52) 0%, transparent 42%);
  z-index: 1;
}

.property-card__shade--minimal {
  background: linear-gradient(to top, rgba(26, 22, 19, 0.28) 0%, transparent 35%);
}

.property-card__area {
  position: absolute;
  bottom: 0.75rem;
  left: 0.85rem;
  z-index: 2;
  max-width: calc(100% - 5rem);
  color: rgba(250, 247, 242, 0.98);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
}

.objekt-badge {
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  z-index: 3;
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px -4px rgba(42, 36, 30, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 639px) {
  .property-card__area { font-size: 0.75rem; bottom: 0.65rem; left: 0.75rem; }
  .objekt-badge { font-size: 0.6875rem; left: 0.65rem; top: 0.65rem; }
  /* Bild auf Mobile etwas reduzieren, dafür Card kompakter */
  .property-card .property-card__img { height: 12.5rem; }
  /* Card-Padding reduzieren */
  .property-card .p-6 { padding: 1.15rem 1.15rem 1.25rem; }
  /* CTA-Button Touch-Target sicherstellen */
  .property-card .p-6 > a { min-height: 52px !important; }
}

.objekt-badge--available {
  background-color: var(--color-accent);
  color: var(--color-on-accent);
}

.objekt-badge--rented {
  background-color: var(--color-bg-accent);
  color: var(--color-text-muted);
}

.objekt-badge--reserved {
  background-color: rgba(61, 82, 71, 0.88);
  color: var(--color-on-accent);
}

@media (hover: hover) {
  .property-card.card-hover:hover {
    transform: translateY(-4px);
  }

  .property-card__img {
    transition: transform 0.65s var(--ease-out-expo);
    transform-origin: center center;
  }

  .property-card.card-hover:hover .property-card__img {
    transform: scale(1.045);
  }
}

#form-toast {
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#form-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Layout-Helfer */
.page-section {
  padding-left: var(--page-pad-x);
  padding-right: var(--page-pad-x);
}

/* Rechtstexte (Impressum / Datenschutz) */
.legal-display {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.legal-prose {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.legal-prose > * + * {
  margin-top: 1rem;
}

.legal-prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
}

.legal-prose h2:first-child {
  margin-top: 0;
}

.legal-prose h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

.legal-prose p {
  margin-top: 0.75rem;
}

.legal-prose ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  list-style-type: disc;
}

.legal-prose li {
  margin-top: 0.35rem;
}

.legal-prose a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-prose a:hover {
  color: var(--color-gold-light);
}

.legal-prose code {
  font-size: 0.875em;
  color: var(--color-gold);
  font-weight: 500;
}

.legal-prose .legal-box {
  margin-top: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(61, 82, 71, 0.2);
  background: var(--color-bg-secondary);
  padding: 1rem 1.25rem;
}

/* Main Design — Impressum-Credit */
.legal-prose .maindesign-credit a.maindesign-credit__link {
  text-decoration: none;
}

.maindesign-credit {
  margin-top: 1rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(61, 82, 71, 0.22);
  background: linear-gradient(165deg, rgba(248, 245, 238, 0.96) 0%, rgba(235, 228, 218, 0.9) 100%);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 12px 40px -16px rgba(42, 36, 30, 0.12);
}

.maindesign-credit__link {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: inherit;
  outline-offset: 4px;
  border-radius: 0.5rem;
}

@media (min-width: 640px) {
  .maindesign-credit__link {
    flex-direction: row;
    align-items: center;
    gap: 1.35rem;
  }
}

.maindesign-credit__link:hover .maindesign-credit__name,
.maindesign-credit__link:focus-visible .maindesign-credit__name {
  color: var(--color-gold);
}

.maindesign-credit__logo {
  height: auto;
  width: auto;
  max-height: 4.25rem;
  max-width: min(100%, 13.5rem);
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
}

.maindesign-credit__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.maindesign-credit__tag {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.maindesign-credit__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.maindesign-credit__hint {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.maindesign-credit__contact {
  margin-top: 1.2rem;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(61, 82, 71, 0.15);
}

.maindesign-credit__contact-label {
  display: block;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.maindesign-credit__mailto {
  font-weight: 500;
}

.maindesign-credit__note {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.5;
}

/* —— Premium / Startseite —— */

.hero-vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 4;
  background: radial-gradient(ellipse 85% 70% at 50% 45%, transparent 0%, rgba(44, 38, 31, 0.42) 65%, rgba(44, 38, 31, 0.82) 100%);
}

@media (min-width: 768px) {
  .hero-vignette {
    background: radial-gradient(ellipse 75% 65% at 50% 42%, transparent 20%, rgba(44, 38, 31, 0.38) 60%, rgba(44, 38, 31, 0.88) 100%);
  }
}

.hero-line {
  width: 3rem;
  height: 1px;
  margin: 0 auto 1rem;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0.9;
}

@media (min-width: 640px) {
  .hero-line { width: 4rem; margin-bottom: 1.25rem; }
}

@media (min-width: 1024px) {
  #hero .hero-line {
    margin-bottom: 1.5rem;
  }

  #hero .hero-foreground .h1-hero {
    margin-top: 0.35rem;
  }
}

/* Hero mobil: kompakter, weniger Text — Desktop unverändert inhaltlich */
@media (max-width: 639px) {
  #hero .hero-foreground .label-cap {
    letter-spacing: 0.16em;
    font-size: 0.75rem;
  }
  #hero .hero-foreground .h1-hero {
    margin-top: 0.25rem;
    font-size: clamp(1.75rem, 8.5vw, 2.35rem);
    line-height: 1.1;
  }
}

.section-inner {
  margin-left: auto;
  margin-right: auto;
  max-width: 80rem;
  padding-left: var(--page-pad-x);
  padding-right: var(--page-pad-x);
}

@media (min-width: 1024px) {
  .section-inner.lg-px-wider {
    padding-left: max(var(--page-pad-x), 2.5rem);
    padding-right: max(var(--page-pad-x), 2.5rem);
  }
}

.premium-panel {
  border-radius: 1.25rem;
  border: 1px solid rgba(61, 82, 71, 0.22);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.55) 0%, rgba(235, 228, 218, 0.94) 100%);
  box-shadow: var(--shadow-premium), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.premium-card {
  border-radius: 1rem;
  border: 1px solid rgba(61, 82, 71, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(233, 226, 216, 0.98) 100%);
  box-shadow: 0 24px 48px -24px rgba(42, 36, 30, 0.12);
}

.premium-card-media {
  position: relative;
  overflow: hidden;
}

.premium-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(44, 38, 31, 0.58) 0%, transparent 55%);
  opacity: 0.85;
  transition: opacity 0.5s var(--ease-out-expo);
}

@media (hover: hover) {
  .group:hover .premium-card-media::after {
    opacity: 0.65;
  }
}

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.25rem, 9vw, 5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--color-gold);
}

.stat-label {
  margin-top: 1rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.stat-desc {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 22rem;
}

.stat-grid > * + * {
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(61, 82, 71, 0.12);
}

@media (min-width: 768px) {
  .stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 3rem;
  }
  .stat-grid > * + * {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
    border-left: 1px solid rgba(61, 82, 71, 0.12);
    padding-left: 2.5rem;
    margin-left: 0;
  }
}

.premium-step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1;
  color: rgba(61, 82, 71, 0.22);
  letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  .premium-step-num { font-size: 4rem; }
}

.premium-quote {
  position: relative;
  margin: 0;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
}

.premium-quote::before {
  content: '“';
  position: absolute;
  top: 0.25rem;
  left: 0.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: rgba(61, 82, 71, 0.15);
  pointer-events: none;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(61, 82, 71, 0.22);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(225, 216, 204, 0.96) 50%, rgba(218, 208, 194, 0.92) 100%);
  box-shadow: var(--shadow-premium), var(--shadow-gold-glow);
}

.cta-panel::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 20%, rgba(61, 82, 71, 0.1) 0%, transparent 45%);
  pointer-events: none;
}

.footer-premium {
  box-shadow: inset 0 1px 0 rgba(61, 82, 71, 0.25);
}

/* —— Footer mobil: edler Aufbau mit Trennern und größeren Touch-Targets —— */
@media (max-width: 767px) {
  .footer-premium {
    padding-top: 3rem;
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom, 0px) + 2.25rem);
  }
  /* Auf Startseite läuft die fixe Schnellkontakt-Bar darüber – hier extra Luft */
  body.page-home .footer-premium {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 6rem);
  }
  .footer-premium > div:first-child {
    gap: 2.25rem !important;
  }
  /* Sektion-Trenner zwischen Brand / Nav / Kontakt */
  .footer-premium > div:first-child > .animate-on-scroll + .animate-on-scroll {
    padding-top: 2.25rem;
    border-top: 1px solid rgba(61, 82, 71, 0.18);
  }
  /* Brand-Block: Logo zentriert in eigener Reihe, Text/Social darunter */
  .footer-premium .site-logo-wrap--footer .site-logo {
    height: 2.85rem;
  }
  /* Social-Links: gerahmte Pills mit klarer Touch-Fläche */
  .footer-premium .mt-6.flex.gap-4 {
    gap: 0.6rem !important;
    margin-top: 1.25rem !important;
  }
  .footer-premium .mt-6.flex.gap-4 > a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(61, 82, 71, 0.28);
    border-radius: 9999px;
    background: rgba(247, 245, 239, 0.55);
    transition: border-color 0.2s ease, background-color 0.2s ease;
  }
  .footer-premium .mt-6.flex.gap-4 > a:hover {
    border-color: var(--color-gold);
    background: rgba(247, 245, 239, 0.92);
  }
  .footer-premium .mt-6.flex.gap-4 > a svg {
    width: 1.1rem !important;
    height: 1.1rem !important;
  }
  /* Footer-Navigation: Listen-Optik mit zarten Trennlinien */
  .footer-premium nav.flex.flex-col {
    gap: 0 !important;
    margin-top: 1rem !important;
  }
  .footer-premium nav.flex.flex-col > a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(61, 82, 71, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 500;
  }
  .footer-premium nav.flex.flex-col > a::after {
    content: '→';
    color: var(--color-gold);
    font-size: 0.95rem;
    opacity: 0.6;
  }
  .footer-premium nav.flex.flex-col > a:last-child { border-bottom: 0; }
  /* Kontakt-Block: Telefon/E-Mail als prominente Pills */
  .footer-premium .animate-on-scroll:last-child > p.mt-4,
  .footer-premium .animate-on-scroll:last-child > p.mt-2 {
    margin-top: 0 !important;
    margin-bottom: 0.55rem;
  }
  .footer-premium .animate-on-scroll:last-child > p.mt-4 a,
  .footer-premium .animate-on-scroll:last-child > p.mt-2 a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(61, 82, 71, 0.28);
    border-radius: 9999px;
    background: rgba(247, 245, 239, 0.55);
    color: var(--color-text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    width: auto;
  }
  .footer-premium .animate-on-scroll:last-child > p.mt-4 a::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d5247' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M3 7l9 6 9-6'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
  }
  .footer-premium .animate-on-scroll:last-child > p.mt-2 a::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d5247' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
  }
  /* Recht-Links als ruhige Liste */
  .footer-premium .animate-on-scroll:last-child > .mt-4.flex.flex-col {
    margin-top: 1.25rem !important;
    gap: 0 !important;
    padding-top: 1rem;
    border-top: 1px solid rgba(61, 82, 71, 0.14);
  }
  .footer-premium .animate-on-scroll:last-child > .mt-4.flex.flex-col > a,
  .footer-premium .animate-on-scroll:last-child > .mt-4.flex.flex-col > button {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(61, 82, 71, 0.1);
    color: var(--color-text-muted) !important;
    font-size: 0.875rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .footer-premium .animate-on-scroll:last-child > .mt-4.flex.flex-col > a:hover,
  .footer-premium .animate-on-scroll:last-child > .mt-4.flex.flex-col > button:hover {
    color: var(--color-gold) !important;
  }
  .footer-premium .animate-on-scroll:last-child > .mt-4.flex.flex-col > :last-child {
    border-bottom: 0;
  }
  .footer-premium .animate-on-scroll:last-child > .mt-4.flex.flex-col > button {
    text-align: left !important;
    background: none;
  }
  /* Copyright-Zeile etwas Luft + Kontrast */
  .footer-premium > p.mt-12 {
    margin-top: 2.25rem !important;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(61, 82, 71, 0.14);
    font-size: 0.75rem;
    color: var(--color-text-muted);
  }
  /* Sicherheit: Schriftgrößen-Mindestmaß im Footer */
  .footer-premium .label-cap { font-size: 0.6875rem; letter-spacing: 0.2em; }
  .footer-premium .text-sm { font-size: 0.875rem; }
}

.btn-header-cta {
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
  box-shadow: 0 4px 20px -4px rgba(61, 82, 71, 0.32);
}

@media (hover: hover) {
  .btn-header-cta:hover {
    box-shadow: 0 6px 28px -4px rgba(61, 82, 71, 0.45);
  }
}

/* —— Motion, Barrierefreiheit, Micro-UX —— */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { animation: none !important; transform: scale(1.1) !important; transform-origin: 52% 0% !important; }
  .scroll-indicator { animation: none !important; }
  .property-card.card-hover:hover .property-card__img {
    transform: none !important;
    transition: none !important;
  }
  .page-transition-cover { display: none !important; }
  [data-parallax] {
    transform: none !important;
    will-change: auto !important;
  }
  .animate-on-scroll,
  .animate-on-scroll.animate-in,
  .reveal-from-left,
  .reveal-from-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .animate-on-scroll .img-reveal,
  .animate-on-scroll.animate-in .img-reveal,
  .animate-on-scroll.img-reveal,
  .animate-on-scroll.animate-in.img-reveal {
    clip-path: inset(0) !important;
    transition: none !important;
  }
  .animate-on-scroll .img-reveal img,
  .animate-on-scroll.img-reveal img {
    transform: none !important;
    transition: none !important;
  }
  .stagger-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  #menu-panel.open nav a,
  #menu-panel.open .btn-gold {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .medallion-rotate { animation: none !important; }
  .visual-marquee-track {
    animation: none !important;
    transform: none !important;
  }
  .visual-marquee-inner {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .visual-marquee-item {
    scroll-snap-align: start;
  }
  .visual-marquee-fade {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 639px) {
  .hero-video { transform-origin: 22% 0 !important; }
}

.reveal-from-left {
  transform: translateX(-32px);
}

.reveal-from-right {
  transform: translateX(32px);
}

.reveal-scale {
  transform: translateY(20px) scale(0.96);
}

.animate-on-scroll.animate-in.reveal-from-left,
.animate-on-scroll.animate-in.reveal-from-right,
.animate-on-scroll.animate-in.reveal-scale {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.stagger-group .stagger-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
}

.stagger-group.animate-in .stagger-item:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0ms; }
.stagger-group.animate-in .stagger-item:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 70ms; }
.stagger-group.animate-in .stagger-item:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 140ms; }
.stagger-group.animate-in .stagger-item:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 210ms; }
.stagger-group.animate-in .stagger-item:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 280ms; }
.stagger-group.animate-in .stagger-item:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 350ms; }
.stagger-group.animate-in .stagger-item:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 420ms; }
.stagger-group.animate-in .stagger-item:nth-child(8) { opacity: 1; transform: translateY(0); transition-delay: 490ms; }

.nav-pill:not(.is-active) {
  position: relative;
}

@media (hover: hover) {
  .nav-pill:not(.is-active) {
    background-image: linear-gradient(var(--color-gold), var(--color-gold));
    background-repeat: no-repeat;
    background-position: 50% calc(100% - 2px);
    background-size: 0 1px;
    transition: background-size 0.4s var(--ease-out-expo), color 0.25s ease;
  }
  .nav-pill:not(.is-active):hover {
    background-size: 100% 1px;
  }
}

/* —— Premium Burger-Toggle: dezent gerahmt —— */
#menu-toggle {
  position: relative;
  border: 1px solid rgba(61, 82, 71, 0.32);
  background: rgba(247, 245, 239, 0.55);
  border-radius: 0.625rem;
  padding: 0.4rem 0.55rem;
  gap: 0.35rem !important;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.header-scrolled #menu-toggle {
  background: rgba(247, 245, 239, 0.78);
}

@media (hover: hover) {
  #menu-toggle:hover {
    border-color: var(--color-gold);
    background: rgba(247, 245, 239, 0.92);
  }
}

#menu-toggle span {
  display: block;
  width: 1.375rem !important;
  height: 1.5px !important;
  background: var(--color-gold);
  border-radius: 1px;
  transition: transform 0.35s var(--ease-out-expo), width 0.3s ease, opacity 0.25s ease;
  transform-origin: center;
}

#menu-toggle span:nth-child(2) {
  width: 1rem !important;
  align-self: flex-end;
}

#menu-toggle[aria-expanded="true"] {
  border-color: var(--color-gold);
}

#menu-toggle[aria-expanded="true"] span:nth-child(1) {
  width: 1.375rem !important;
  transform: translateY(5.5px) rotate(45deg);
}

#menu-toggle[aria-expanded="true"] span:nth-child(2) {
  width: 1.375rem !important;
  opacity: 0;
  transform: scaleX(0);
}

#menu-toggle[aria-expanded="true"] span:nth-child(3) {
  width: 1.375rem !important;
  transform: translateY(-5.5px) rotate(-45deg);
}

/* —— Mobile-Menü Premium-Layout —— */
.menu-panel-premium {
  background: linear-gradient(180deg, #f1ebde 0%, #e3dacc 100%) !important;
  display: flex;
  flex-direction: column;
}

.menu-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(env(safe-area-inset-top, 0px) + 1rem) 1.25rem 0.875rem;
  border-bottom: 1px solid rgba(61, 82, 71, 0.18);
  background: rgba(247, 245, 239, 0.6);
}

.menu-panel-brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
}

.menu-panel-brand .site-logo {
  height: 2.625rem;
  display: block;
  width: auto;
}

@media (min-width: 380px) {
  .menu-panel-brand .site-logo { height: 2.75rem; }
}

.menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  border: 1px solid rgba(61, 82, 71, 0.3);
  border-radius: 0.625rem;
  background: rgba(247, 245, 239, 0.72);
  color: var(--color-gold);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

@media (hover: hover) {
  .menu-close:hover { border-color: var(--color-gold); background: rgba(247, 245, 239, 0.95); }
}

.menu-close svg { width: 1.4rem; height: 1.4rem; }

.menu-panel-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.5rem 1.25rem 0.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.menu-panel-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.625rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--color-text-primary);
  padding: 0.95rem 0.25rem;
  border-bottom: 1px solid rgba(61, 82, 71, 0.14);
  text-decoration: none;
  min-height: 56px;
  transition: color 0.2s ease, padding-left 0.25s ease;
}

@media (min-width: 380px) {
  .menu-panel-nav a { font-size: 1.75rem; padding: 1.05rem 0.25rem; }
}

.menu-panel-nav a::after {
  content: '→';
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: var(--color-gold);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.menu-panel-nav a[aria-current="page"] {
  color: var(--color-gold);
}

.menu-panel-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: translateX(0);
}

@media (hover: hover) {
  .menu-panel-nav a:hover {
    color: var(--color-gold);
    padding-left: 0.6rem;
  }
  .menu-panel-nav a:hover::after {
    opacity: 1;
    transform: translateX(0);
  }
}

.menu-panel-cta {
  padding: 0.875rem 1.25rem 0.5rem;
  border-top: 1px solid rgba(61, 82, 71, 0.14);
  background: rgba(247, 245, 239, 0.45);
}

.menu-panel-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border-radius: 9999px;
  padding: 0.875rem 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.menu-panel-foot {
  padding: 0.875rem 1.25rem max(1.25rem, env(safe-area-inset-bottom));
  background: rgba(247, 245, 239, 0.55);
  border-top: 1px solid rgba(61, 82, 71, 0.14);
}

.menu-panel-foot__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 0.65rem;
}

.menu-panel-foot__contact {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 0.85rem;
}

.menu-panel-foot__contact a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-primary);
  text-decoration: none;
  padding: 0.4rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

@media (hover: hover) {
  .menu-panel-foot__contact a:hover { color: var(--color-gold); }
}

.menu-panel-foot__contact a svg {
  flex-shrink: 0;
  color: var(--color-gold);
}

.menu-panel-foot__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.menu-panel-foot__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.875rem;
  min-height: 44px;
  border: 1px solid rgba(61, 82, 71, 0.28);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-primary);
  text-decoration: none;
  background: rgba(247, 245, 239, 0.55);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

@media (hover: hover) {
  .menu-panel-foot__social a:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background: rgba(247, 245, 239, 0.92);
  }
}

.menu-panel-foot__social svg {
  color: var(--color-gold);
  flex-shrink: 0;
}

@keyframes menuLinkIn {
  from {
    opacity: 0;
    transform: translateX(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#menu-panel nav a {
  opacity: 0;
}

#menu-panel.open nav a {
  animation: menuLinkIn 0.55s var(--ease-out-expo) both;
}

#menu-panel.open nav a:nth-child(1) { animation-delay: 0.05s; }
#menu-panel.open nav a:nth-child(2) { animation-delay: 0.1s; }
#menu-panel.open nav a:nth-child(3) { animation-delay: 0.15s; }
#menu-panel.open nav a:nth-child(4) { animation-delay: 0.2s; }
#menu-panel.open nav a:nth-child(5) { animation-delay: 0.25s; }
#menu-panel.open nav a:nth-child(6) { animation-delay: 0.3s; }

.img-frame-premium {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

.img-frame-premium::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(61, 82, 71, 0.12);
  border-radius: inherit;
  pointer-events: none;
}

@media (hover: hover) {
  .img-hover-zoom img {
    transition: transform 0.9s var(--ease-out-expo);
  }
  .img-hover-zoom:hover img {
    transform: scale(1.04);
  }
}

.cta-panel-glow {
  position: relative;
}

@media (prefers-reduced-motion: no-preference) {
  .cta-panel-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
      125deg,
      rgba(61, 82, 71, 0.15),
      transparent 40%,
      transparent 60%,
      rgba(61, 82, 71, 0.1)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: borderShimmer 8s ease-in-out infinite;
  }
}

@keyframes borderShimmer {
  0%, 100% { opacity: 0.5; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.15); }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--color-gold);
  color: var(--color-text-primary);
  font-weight: 500;
}

.skip-link:focus {
  left: max(1rem, env(safe-area-inset-left));
  top: max(1rem, env(safe-area-inset-top));
}

.page-hero-accent {
  width: 2.5rem;
  height: 1px;
  margin-top: 1rem;
  background: linear-gradient(90deg, var(--color-gold), transparent);
  opacity: 0.85;
}

.stat-number .tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Full-page transitions (MPA); requires #page-transition-cover in markup */
.page-transition-cover {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(61, 82, 71, 0.08) 0%, transparent 52%),
    linear-gradient(165deg, #ebe6dc 0%, #ddd5c9 42%, #ebe6dc 100%);
  transition: opacity 0.42s var(--ease-out-expo);
}

html.pt-exit .page-transition-cover {
  opacity: 1;
  pointer-events: auto;
}

html.pt-enter:not(.pt-enter-done) .page-transition-cover {
  opacity: 1;
  transition: none;
}

html.pt-enter.pt-enter-done .page-transition-cover {
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  [data-parallax] {
    will-change: transform;
  }

  .animate-on-scroll .img-reveal,
  .animate-on-scroll.img-reveal {
    clip-path: inset(5.5% 5.5% 5.5% 5.5%);
    transition: clip-path 1.12s var(--ease-out-expo);
  }

  .animate-on-scroll.animate-in .img-reveal,
  .animate-on-scroll.animate-in.img-reveal {
    clip-path: inset(0 0 0 0);
  }

  .animate-on-scroll .img-reveal img,
  .animate-on-scroll.img-reveal img {
    transform: scale(1.07);
    transition: transform 1.28s var(--ease-out-expo);
  }

  .animate-on-scroll.animate-in .img-reveal img,
  .animate-on-scroll.animate-in.img-reveal img {
    transform: scale(1);
  }
}

/* —— Startseite: horizontales Bild‑Band (endlos) —— */
.visual-marquee {
  position: relative;
  border-top: 1px solid rgba(61, 82, 71, 0.15);
  border-bottom: 1px solid rgba(61, 82, 71, 0.15);
  background: linear-gradient(180deg, #e3dbd0 0%, #dcd3c6 50%, #e3dbd0 100%);
}

.visual-marquee-label {
  padding: 1.75rem var(--page-pad-x) 0;
  text-align: center;
}

.visual-marquee-inner {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 0 2rem;
}

@media (min-width: 768px) {
  .visual-marquee-inner {
    padding: 1.5rem 0 2.75rem;
  }
}

.visual-marquee-fade {
  pointer-events: none;
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: min(3.5rem, 11vw);
}

.visual-marquee-fade--l {
  left: 0;
  background: linear-gradient(90deg, var(--color-bg-primary) 0%, transparent 100%);
}

.visual-marquee-fade--r {
  right: 0;
  background: linear-gradient(270deg, var(--color-bg-primary) 0%, transparent 100%);
}

.visual-marquee-track {
  display: flex;
  width: max-content;
  gap: 0.875rem;
}

.visual-marquee-item {
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid rgba(61, 82, 71, 0.22);
  box-shadow: 0 22px 48px -18px rgba(42, 36, 30, 0.14);
}

.visual-marquee-item img {
  display: block;
  height: 10.5rem;
  width: 16.25rem;
  max-width: 76vw;
  object-fit: cover;
}

@media (min-width: 768px) {
  .visual-marquee-item img {
    height: 12.5rem;
    width: 19rem;
    max-width: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .visual-marquee-track {
    animation: visualMarqueeScroll 52s linear infinite;
  }

  .visual-marquee-inner:is(:hover, :focus-within) .visual-marquee-track {
    animation-play-state: paused;
  }

  .visual-marquee-item img {
    transition: transform 8s ease-in-out;
  }

  .visual-marquee-inner:is(:hover, :focus-within) .visual-marquee-item img {
    transform: scale(1.045);
  }
}

@keyframes visualMarqueeScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Tailwind-Ergänzungen: Overlay & Schatten passend zum Beige-Theme */
.bg-menu-overlay {
  background-color: rgba(58, 48, 40, 0.38);
}

.shadow-card {
  box-shadow: 0 25px 50px -12px rgba(42, 36, 30, 0.12);
}

/* Startseite: mobiler Schnellkontakt unterhalb des Inhalts */
@media (max-width: 1023px) {
  body.page-home #main {
    padding-bottom: 4.75rem;
  }

  body.page-home #hero .scroll-indicator--hero {
    bottom: max(5.25rem, calc(env(safe-area-inset-bottom, 0px) + 4.5rem));
  }
}

@media (min-width: 1024px) {
  body.page-home #main {
    padding-bottom: 0;
  }
}

.mobile-contact-bar__link:focus-visible {
  outline: 3px solid rgba(201, 169, 110, 0.95);
  outline-offset: -3px;
  z-index: 1;
}

/* —— Trust-Strip mobil: lesbarer mit Gold-Bullets und Trennlinien —— */
@media (max-width: 767px) {
  .trust-strip { padding-top: 0.875rem; padding-bottom: 0.875rem; }
  .trust-strip ul { gap: 0; }
  .trust-strip li {
    display: flex !important;
    min-height: 0 !important;
    align-items: flex-start;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid rgba(61, 82, 71, 0.12);
    font-size: 0.875rem !important;
    line-height: 1.45;
    color: var(--color-text-primary);
    gap: 0.65rem;
  }
  .trust-strip li::before {
    content: '';
    flex-shrink: 0;
    width: 0.4rem;
    height: 0.4rem;
    margin-top: 0.5rem;
    border-radius: 50%;
    background: var(--color-gold);
  }
  .trust-strip li:last-child { border-bottom: 0; }
  .trust-strip strong { color: var(--color-gold) !important; font-weight: 600; }
}

/* —— Mobile-Schnellkontakt-Bar: edler mit Icons —— */
.mobile-contact-bar {
  background: linear-gradient(180deg, rgba(247,245,239,0.97) 0%, rgba(232,225,215,0.98) 100%) !important;
  border-top: 1px solid rgba(61, 82, 71, 0.22) !important;
  box-shadow: 0 -10px 28px -14px rgba(42, 36, 30, 0.22);
}

.mobile-contact-bar__link {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem !important;
  letter-spacing: 0.04em;
  font-weight: 600;
  gap: 0.45rem;
  padding: 0 0.5rem;
}

.mobile-contact-bar__link::before {
  content: '';
  display: inline-block;
  width: 17px;
  height: 17px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.95;
  flex-shrink: 0;
}

.mobile-contact-bar__link[href^="tel:"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d5247' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/></svg>");
}

.mobile-contact-bar__link[href^="mailto:"]::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d5247' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M3 7l9 6 9-6'/></svg>");
}

.mobile-contact-bar__link--accent {
  background: linear-gradient(180deg, rgba(61,82,71,0.07) 0%, rgba(61,82,71,0.10) 100%);
  color: var(--color-gold) !important;
}

.mobile-contact-bar__link--accent::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d5247' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/></svg>");
}

@media (max-width: 374px) {
  .mobile-contact-bar__link { font-size: 0.75rem !important; gap: 0.3rem; }
  .mobile-contact-bar__link::before { width: 15px; height: 15px; }
}

/* —— Hero CTA mobil: Schrift etwas größer, Schatten leichter —— */
@media (max-width: 639px) {
  #hero .hero-foreground a.btn-gold {
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
  }
  #hero .hero-foreground a.hero-secondary-cta {
    font-size: 0.9375rem;
  }
  /* Scroll-Indicator auf Mobile-Home dezenter (Bar ist primär) */
  body.page-home #hero .scroll-indicator--hero { opacity: 0.65; }
}
