/* ============================================================
   Hausverkauf-Website — styles.css
   Quiet luxury · Slow country · Editorial.
   Deep forest + warm bone + restrained clay accent.
   System sans for body, serif display for emphasis.
   ============================================================ */

:root {
  /* === Warm earth neutrals (replaces yellow-cream) === */
  --bone-50:   #faf7f0;   /* primary background, warm parchment */
  --bone-100:  #f3eee2;   /* section tint */
  --bone-200:  #e8e0d0;   /* soft surface */
  --bone-300:  #d8ccb6;   /* hairline */
  --stone-400: #b8ad9a;   /* divider */
  --stone-500: #8b8478;   /* very soft text */
  --stone-600: #6f685c;   /* muted text */
  --stone-700: #4d4940;   /* secondary text */
  --ink-900:   #1a201c;   /* primary text — slight green ink */

  --white:     #ffffff;

  /* === Forest greens (deep, refined — not bright) === */
  --moss-50:    #eef1ea;
  --moss-100:   #dde2d4;
  --moss-200:   #b8c1ad;
  --moss-300:   #94a187;
  --moss-400:   #6e7b67;
  --forest-500: #4a5d44;   /* mid forest */
  --forest-600: #3a4a36;   /* primary brand */
  --forest-700: #2d3b2a;   /* deep */
  --forest-800: #1f2a1f;   /* very deep */
  --forest-900: #131a13;   /* near-black */

  /* === Clay accent (very sparing — replaces yellow) === */
  --clay-100:  #f0e3d2;
  --clay-300:  #d8b896;
  --clay-500:  #b08756;   /* refined brass/clay */
  --clay-600:  #8b6f47;
  --clay-700:  #5e4a30;

  /* === Shadows (subtle, low-saturation) === */
  --shadow-sm: 0 1px 2px rgba(20, 30, 25, 0.04);
  --shadow-md: 0 8px 30px rgba(20, 30, 25, 0.07);
  --shadow-lg: 0 28px 70px rgba(20, 30, 25, 0.14);
  --shadow-deep: 0 40px 90px rgba(15, 25, 20, 0.28);

  /* === Typography === */
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "New York", "Iowan Old Style", "Source Serif 4", "Charter", Cambria, "Hoefler Text", Georgia, serif;

  /* === Spacing — more generous, room to breathe === */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2.25rem;
  --space-7: 3.5rem;
  --space-8: 5rem;
  --space-9: 7.5rem;
  --space-10: 10rem;

  /* === Container === */
  --wrap: 78rem;
  --wrap-narrow: 56rem;
  --wrap-prose: 42rem;

  /* === Radius — refined, not playful === */
  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 12px;
  --r-pill: 9999px;

  /* === Motion === */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-900);
  background: var(--bone-50);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga", "calt";
}

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

a {
  color: var(--forest-600);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.06em;
  text-decoration-color: var(--stone-400);
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
a:hover {
  color: var(--forest-700);
  text-decoration-color: var(--clay-500);
}
a:focus-visible {
  outline: 2px solid var(--forest-500);
  outline-offset: 3px;
  border-radius: 2px;
}

p { max-width: 62ch; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink-900);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--forest-700);
  color: var(--bone-50);
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  z-index: 100;
}
.skip-link:focus { top: 0; }

/* ------------ Layout primitives ------------ */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 720px) { .wrap { padding: 0 2.5rem; } }

.section { padding: var(--space-8) 0; }
@media (min-width: 720px) {
  .section { padding: var(--space-9) 0; }
}

.section-tinted { background: var(--bone-100); }
.section-muted  { background: var(--moss-50); }
.section-form   { background: var(--bone-100); }

/* === Eyebrow: editorial, not a pill === */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone-700);
  margin-bottom: var(--space-5);
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 2.2rem;
  height: 1px;
  background: var(--clay-500);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 3vw + 1rem, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-5);
  max-width: 26ch;
  color: var(--ink-900);
}
.section-title em {
  font-style: italic;
  color: var(--forest-600);
}

.section-lead {
  font-size: 1.18rem;
  color: var(--stone-700);
  margin-bottom: var(--space-7);
  max-width: 60ch;
  line-height: 1.65;
}

/* ------------ Header / Nav ------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 247, 240, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--bone-200);
  background: rgba(250, 247, 240, 0.95);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink-900);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--forest-600); }
.brand-mark {
  display: inline-flex;
  color: var(--forest-600);
  background: transparent;
  border: 1px solid var(--bone-300);
  border-radius: var(--r-sm);
  padding: 4px;
}
.site-nav {
  display: none;
  gap: 2rem;
  align-items: center;
}
.site-nav a {
  color: var(--stone-700);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.2s var(--ease);
}
.site-nav a:not(.nav-cta):hover {
  color: var(--ink-900);
}
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--clay-500);
  transition: width 0.25s var(--ease), left 0.25s var(--ease);
}
.site-nav a:not(.nav-cta):hover::after {
  width: 100%;
  left: 0;
}
.site-nav .nav-cta {
  background: var(--forest-700);
  color: var(--bone-50);
  padding: 0.6rem 1.25rem;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.site-nav .nav-cta:hover {
  background: var(--forest-800);
  color: var(--bone-50);
  transform: translateY(-1px);
}
@media (min-width: 760px) {
  .site-nav { display: inline-flex; }
}
@media (max-width: 759px) {
  .brand-text { display: none; }
}

/* ------------ Hero — cinematic full-bleed ------------ */

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  background: var(--forest-900);
  color: var(--bone-50);
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-art picture,
.hero-art img,
.hero-art video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.hero-art .hero-fallback { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-art .hero-video { display: none; }
  .hero-art .hero-fallback { display: block; }
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(15, 25, 20, 0.10) 0%,
      rgba(15, 25, 20, 0.20) 30%,
      rgba(15, 25, 20, 0.55) 70%,
      rgba(15, 25, 20, 0.85) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--space-9);
  padding-bottom: var(--space-7);
  max-width: var(--wrap);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bone-200);
  margin-bottom: var(--space-5);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  animation: none;
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 2.2rem;
  height: 1px;
  background: var(--clay-300);
  flex-shrink: 0;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw + 0.5rem, 5.4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 16ch;
  margin-bottom: var(--space-5);
  color: var(--bone-50);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--bone-50);
  position: relative;
  display: inline-block;
}
.hero-title em::after { content: none; }
.hero-sub {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.3rem);
  color: var(--bone-100);
  max-width: 42ch;
  margin-bottom: var(--space-6);
  line-height: 1.55;
  font-weight: 300;
  letter-spacing: 0.005em;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.3);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-6);
}
.chip-row li {
  background: rgba(250, 247, 240, 0.08);
  border: 1px solid rgba(250, 247, 240, 0.24);
  padding: 0.4rem 0.95rem;
  border-radius: var(--r-pill);
  font-size: 0.83rem;
  color: var(--bone-100);
  white-space: nowrap;
  font-weight: 400;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: none;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.chip-row li:hover {
  background: rgba(250, 247, 240, 0.15);
  border-color: var(--clay-300);
  transform: none;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: var(--space-7);
}
.hero-price {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(216, 184, 150, 0.4);
  border-radius: 0;
  box-shadow: none;
  max-width: max-content;
  position: relative;
  overflow: visible;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hero-price::before { content: none; }
.hero-price > * { position: relative; z-index: 1; }
.hero-price .price-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--clay-300);
  font-weight: 500;
}
.hero-price .price-value {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--bone-50);
  letter-spacing: -0.015em;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}
.hero-price .price-note {
  font-size: 0.78rem;
  color: var(--bone-200);
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* ------------ Buttons — refined ------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.85rem;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn::after {
  content: "→";
  font-size: 1.05em;
  transition: transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:hover::after { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--bone-50);
  color: var(--ink-900);
  box-shadow: 0 8px 24px rgba(15, 25, 20, 0.25);
}
.btn-primary:hover {
  background: var(--white);
  color: var(--ink-900);
  box-shadow: 0 12px 32px rgba(15, 25, 20, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--bone-50);
  border-color: rgba(250, 247, 240, 0.4);
}
.btn-ghost:hover {
  background: rgba(250, 247, 240, 0.1);
  color: var(--bone-50);
  border-color: var(--bone-50);
}

/* On light sections, buttons need different defaults — applied via context */
.section .btn-primary {
  background: var(--forest-700);
  color: var(--bone-50);
  box-shadow: 0 8px 22px rgba(45, 59, 42, 0.22);
}
.section .btn-primary:hover {
  background: var(--forest-800);
  color: var(--bone-50);
}
.section .btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--bone-300);
}
.section .btn-ghost:hover {
  background: var(--bone-100);
  border-color: var(--stone-400);
  color: var(--ink-900);
}

/* ------------ Strip / Facts grid — editorial, slim ------------ */

.strip {
  padding: var(--space-7) 0;
  background: var(--bone-50);
  border-top: 1px solid var(--bone-200);
  border-bottom: 1px solid var(--bone-200);
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5) var(--space-4);
  text-align: left;
}
@media (min-width: 600px) {
  .facts-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 880px) {
  .facts-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
  }
  .facts-grid li {
    padding: 0 var(--space-5);
    border-right: 1px solid var(--bone-200);
  }
  .facts-grid li:last-child { border-right: none; }
}
.facts-grid li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
}
.fact-icon {
  display: none; /* drop the geometric glyphs — let the numbers carry */
}
.fact-num {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.fact-lbl {
  font-size: 0.78rem;
  color: var(--stone-600);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* ------------ Cards (Drei Parzellen) ------------ */

.cards-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 760px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
}
.card {
  background: var(--bone-50);
  border: 1px solid var(--bone-200);
  border-radius: var(--r-md);
  padding: 0;
  box-shadow: none;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--moss-50);
  overflow: hidden;
}
.card-image picture,
.card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.card:hover .card-image img { transform: scale(1.04); }
.card-image-badge {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  background: rgba(19, 26, 19, 0.78);
  color: var(--bone-50);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--r-pill);
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.25s var(--ease);
}
.card-image-badge:hover {
  background: var(--forest-800);
  color: var(--bone-50);
  transform: none;
}
.card > header,
.card > .card-meta,
.card > p {
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}
.card > header { padding-top: var(--space-6); }
.card > p:last-child { padding-bottom: var(--space-6); }

.card::before { content: none; }
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--bone-300);
}
.card-haus,
.card-wiese,
.card-wald { /* uniform styling — distinction via badge + image */ }

/* Clickable-card pattern: h3 anchor stretches to cover the whole card */
.card h3 a.card-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
}
.card h3 a.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.card h3 a.card-link:focus-visible {
  outline: 2px solid var(--ink-900, #2d3e2e);
  outline-offset: 4px;
  border-radius: 2px;
}
.card-link-arrow {
  display: inline-block;
  font-size: 0.78em;
  opacity: 0.5;
  transition: transform 0.3s var(--ease, ease), opacity 0.3s var(--ease, ease);
}
.card:hover .card-link-arrow {
  transform: translateX(4px);
  opacity: 1;
}
.card-image-badge { z-index: 2; }

/* Compensate for sticky header when jumping to section anchors */
#anwesen,
#wiese-detail,
#wald-video { scroll-margin-top: 5rem; }

/* Wiese detail — large feature image + split prose */
.wiese-feature {
  margin: 0 0 var(--space-5) 0;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.wiese-feature picture,
.wiese-feature img {
  display: block;
  width: 100%;
  height: auto;
}
.wiese-feature figcaption {
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
  color: var(--stone-500, #6e6a5e);
  background: var(--moss-50);
  font-style: italic;
  letter-spacing: 0.02em;
}

.card header {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: var(--space-3);
}
.card-badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay-700);
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 0;
  position: relative;
  padding-left: 1.85rem;
}
.card-badge::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.4rem;
  height: 1px;
  background: var(--clay-500);
}
.card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.card-meta {
  font-size: 0.82rem;
  color: var(--stone-600);
  margin-bottom: var(--space-3);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.card p {
  color: var(--stone-700);
  line-height: 1.7;
  font-size: 0.97rem;
}

/* ------------ Split (text 2-col) ------------ */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}
@media (min-width: 760px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}
.split-text h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: var(--space-4);
  color: var(--forest-700);
  letter-spacing: -0.015em;
  position: relative;
  padding-bottom: 0.6rem;
}
.split-text h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1.8rem;
  height: 1px;
  background: var(--clay-500);
}
.split-text p { margin-bottom: 1rem; color: var(--stone-700); }
.split-text p:last-child { margin-bottom: 0; }
.split-text strong { color: var(--ink-900); font-weight: 600; }

.check-list { display: grid; gap: 0.85rem; }
.check-list li {
  position: relative;
  padding-left: 1.85rem;
  color: var(--stone-700);
  font-size: 0.97rem;
  line-height: 1.65;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.85rem;
  height: 1px;
  background: var(--clay-500);
}
.check-list li strong { color: var(--ink-900); font-weight: 600; }

/* ------------ Gallery — editorial grid ------------ */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}
.gallery-item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--moss-50);
  box-shadow: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.gallery-item picture {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.gallery-item {
  cursor: zoom-in;
}
.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:focus-visible {
  outline: 2px solid var(--ink-900, #2d3e2e);
  outline-offset: 3px;
}
.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--bone-50);
  background: linear-gradient(180deg, transparent 0%, rgba(15, 25, 20, 0.55) 50%, rgba(15, 25, 20, 0.85) 100%);
}
.gallery-note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--stone-500);
  margin-top: 0.75rem;
  font-family: var(--font-serif);
}

/* ------------ Grundrisse — original floor plans (show full image) ------------ */

.gallery--plans {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-5);
}
.gallery--plans .gallery-item {
  background: var(--bone-50);
  border: 1px solid var(--bone-300);
  cursor: zoom-in;
}
.gallery--plans .gallery-item picture { aspect-ratio: auto; }
.gallery--plans .gallery-item img {
  object-fit: contain;
  height: auto;
  background: var(--bone-100);
  padding: 0.6rem;
}
.gallery--plans .gallery-item:hover img { transform: none; }
.gallery--plans .gallery-item figcaption {
  position: static;
  color: var(--stone-700);
  background: none;
  padding: 0.75rem 0.4rem 0.2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.72rem;
}
.plan-card-pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 220px;
  border: 1px dashed var(--stone-400);
  border-radius: var(--r-md);
  background: var(--bone-100);
  text-align: center;
}
.plan-card-pending .pc-label {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--stone-700);
}
.plan-card-pending .pc-note {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--stone-500);
}

/* ------------ Wald-Video — the dark moody centerpiece ------------ */

.section-video {
  background: var(--forest-800);
  color: var(--bone-100);
  padding: var(--space-9) 0;
  position: relative;
}
.section-video::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--moss-300) 50%, transparent 100%);
  opacity: 0.4;
}
.section-video .section-eyebrow {
  color: var(--clay-300);
}
.section-video .section-eyebrow::before {
  background: var(--clay-300);
}
.section-video .section-title {
  color: var(--bone-50);
}
.section-video .section-title em {
  color: var(--clay-300);
}
.section-video .section-lead {
  color: var(--moss-100);
  font-size: 1.22rem;
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 300;
  max-width: 50ch;
  line-height: 1.5;
}
.video-frame {
  margin-top: var(--space-6);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--forest-900);
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(184, 173, 154, 0.15);
}
.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--forest-900);
  object-fit: cover;
}
.video-frame figcaption {
  padding: 1rem 1.4rem;
  font-size: 0.85rem;
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--moss-100);
  background: var(--forest-700);
  border-top: 1px solid rgba(184, 173, 154, 0.12);
}

/* ------------ USP grid — refined feature list ------------ */

.usp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 600px) {
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .usp-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
}
.usp {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--bone-300);
  border-radius: 0;
  padding: var(--space-5) 0 var(--space-4);
  position: relative;
  transition: border-top-color 0.3s var(--ease);
}
.usp::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.2rem;
  height: 1px;
  background: var(--clay-500);
  transition: width 0.3s var(--ease);
}
.usp:hover {
  transform: none;
  box-shadow: none;
  border-top-color: var(--bone-300);
}
.usp:hover::before { width: 4.5rem; }
.usp h3 {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 400;
  color: var(--ink-900);
  margin-bottom: var(--space-3);
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.usp p {
  font-size: 0.94rem;
  color: var(--stone-700);
  line-height: 1.7;
  margin: 0;
  max-width: none;
}

/* ------------ Lage / Commute table — editorial ------------ */

.commute-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: var(--space-5);
  border: 0;
  border-top: 1px solid var(--bone-300);
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  max-width: 50rem;
}
.commute-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  padding: 1.1rem 0.25rem;
  border-bottom: 1px solid var(--bone-200);
  align-items: baseline;
  transition: padding-left 0.25s var(--ease);
}
.commute-row:hover {
  padding-left: 0.85rem;
  background: transparent;
}
.commute-row:last-child { border-bottom: 1px solid var(--bone-300); }
.commute-time {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--forest-600);
  letter-spacing: -0.01em;
}
.commute-place {
  color: var(--stone-700);
  font-size: 0.97rem;
  line-height: 1.5;
}
.lage-note {
  font-size: 0.92rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--stone-600);
  border-left: 2px solid var(--clay-500);
  padding-left: 1.1rem;
  max-width: 60ch;
  line-height: 1.6;
}

/* ------------ Energie / Pflichtangaben ------------ */

.energie-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: var(--space-5);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--bone-300);
  border-radius: 0;
  overflow: hidden;
  max-width: 38rem;
}
.energie-list > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0.95rem 0.25rem;
  border-bottom: 1px solid var(--bone-200);
}
.energie-list > div:last-child {
  border-bottom: 1px solid var(--bone-300);
}
.energie-list dt {
  font-size: 0.92rem;
  color: var(--stone-700);
  font-weight: 400;
}
.energie-list dd {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--ink-900);
  text-align: right;
  letter-spacing: -0.01em;
}
.energie-note {
  font-size: 0.88rem;
  color: var(--stone-600);
  font-family: var(--font-serif);
  font-style: italic;
}

/* ------------ Disclosure section ------------ */

.disclose-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 760px) {
  .disclose-list { grid-template-columns: repeat(2, 1fr); }
}
.disclose {
  background: var(--bone-50);
  border: 1px solid var(--bone-200);
  border-left: 0;
  padding: var(--space-5) var(--space-6);
  border-radius: var(--r-md);
  position: relative;
  transition: border-color 0.3s var(--ease);
}
.disclose::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--space-5);
  bottom: var(--space-5);
  width: 2px;
  background: var(--clay-500);
}
.disclose:hover {
  border-color: var(--bone-300);
}
.disclose h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink-900);
  margin-bottom: var(--space-3);
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.disclose p {
  font-size: 0.95rem;
  color: var(--stone-700);
  line-height: 1.7;
  max-width: none;
}
.disclose-note {
  margin-top: var(--space-6);
  font-size: 0.9rem;
  color: var(--stone-600);
  font-family: var(--font-serif);
  font-style: italic;
  line-height: 1.7;
}

/* ------------ Form ------------ */

.section-form .section-title {
  color: var(--ink-900);
}
.anfrage-form {
  background: var(--bone-50);
  border: 1px solid var(--bone-200);
  border-radius: var(--r-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  max-width: var(--wrap-narrow);
  position: relative;
}
.anfrage-form::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--forest-600) 0%, var(--clay-500) 100%);
  border-radius: var(--r-md) var(--r-md) 0 0;
}
@media (min-width: 720px) {
  .anfrage-form { padding: var(--space-7); }
}
.form-row { margin-bottom: var(--space-5); }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 600px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
}
.anfrage-form label {
  display: block;
}
.lbl {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-900);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}
.req { color: var(--clay-600); }
.opt {
  font-weight: 400;
  color: var(--stone-500);
  font-size: 0.82rem;
  font-style: italic;
}
.anfrage-form input[type="text"],
.anfrage-form input[type="email"],
.anfrage-form input[type="tel"],
.anfrage-form select,
.anfrage-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink-900);
  background: var(--white);
  border: 1px solid var(--bone-300);
  border-radius: var(--r-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.anfrage-form input:hover,
.anfrage-form select:hover,
.anfrage-form textarea:hover {
  border-color: var(--stone-400);
}
.anfrage-form input:focus,
.anfrage-form select:focus,
.anfrage-form textarea:focus {
  outline: none;
  border-color: var(--forest-600);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(74, 93, 68, 0.16);
}
.anfrage-form textarea {
  resize: vertical;
  min-height: 6rem;
  font-family: var(--font-sans);
  line-height: 1.6;
}
.anfrage-form input:invalid:not(:placeholder-shown),
.anfrage-form select:invalid:not(:focus) {
  border-color: rgba(160, 60, 30, 0.5);
}
.consent-row { padding-top: var(--space-3); }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--stone-700);
  cursor: pointer;
  line-height: 1.55;
}
.consent input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.18rem;
  accent-color: var(--forest-600);
  flex-shrink: 0;
  cursor: pointer;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--bone-200);
}
.form-note {
  font-size: 0.86rem;
  color: var(--stone-600);
  font-family: var(--font-serif);
  font-style: italic;
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field-err {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: rgb(160, 60, 30);
  font-weight: 500;
}
.anfrage-form button[disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}
.anfrage-form button[disabled]::after {
  content: "…";
}

/* Form section uses dark primary button */
.section-form .btn-primary {
  background: var(--forest-700);
  color: var(--bone-50);
}
.section-form .btn-primary:hover {
  background: var(--forest-800);
  color: var(--bone-50);
}

/* ------------ Footer ------------ */

.site-footer {
  background: var(--forest-900);
  color: var(--moss-100);
  padding: var(--space-7) 0 var(--space-5);
  margin-top: 0;
  position: relative;
}
.site-footer::before { content: none; }
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(184, 193, 173, 0.12);
}
@media (min-width: 600px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--bone-50);
  letter-spacing: -0.015em;
}
.footer-tag {
  font-size: 0.85rem;
  color: var(--moss-200);
  margin-top: 0.4rem;
  font-style: italic;
  font-family: var(--font-serif);
}
.site-footer nav {
  display: flex;
  gap: 2rem;
}
.site-footer nav a {
  color: var(--moss-100);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s var(--ease);
  text-decoration: none;
}
.site-footer nav a:hover { color: var(--clay-300); text-decoration: none; }
.footer-fineprint {
  border-top: 0;
  padding-top: 0;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--moss-200);
  max-width: 75ch;
  font-style: italic;
  font-family: var(--font-serif);
}

/* ------------ Region narrative — "Im Hunsrück" ------------ */

.section-region {
  background: var(--bone-50);
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}
@media (min-width: 720px) {
  .section-region {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }
}
.section-region .section-title {
  max-width: 22ch;
}
.region-prose {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 0.45vw + 1.05rem, 1.4rem);
  line-height: 1.55;
  color: var(--stone-700);
  max-width: var(--wrap-prose);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.region-prose em {
  font-style: italic;
  color: var(--forest-700);
}

/* ------------ Multi-step form ------------ */

.anfrage-form-stepped fieldset.form-step {
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0; /* fix Firefox fieldset width quirk */
}
.anfrage-form-stepped .form-step[hidden] {
  display: none;
}
.anfrage-form-stepped .form-step.is-active {
  display: block;
  animation: stepFadeIn 0.35s var(--ease) both;
}
@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .anfrage-form-stepped .form-step.is-active { animation: none; }
}

.form-step-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin: 0 0 var(--space-5);
  padding: 0;
  line-height: 1.25;
}

.form-progress {
  display: flex;
  gap: 0;
  margin: 0 0 var(--space-6);
  padding: 0;
  list-style: none;
  counter-reset: progress;
  border: 0;
}
.form-progress li {
  flex: 1;
  position: relative;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--stone-500);
  padding: 0 0.4rem 0.85rem;
  border-bottom: 1px solid var(--bone-300);
  counter-increment: progress;
  transition: color 0.3s var(--ease), border-bottom-color 0.3s var(--ease);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.form-progress li::before {
  content: counter(progress, decimal-leading-zero);
  display: inline-block;
  margin-right: 0.55em;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--stone-500);
  vertical-align: baseline;
  transition: color 0.3s var(--ease);
}
.form-progress li.is-active {
  color: var(--ink-900);
  border-bottom-color: var(--clay-500);
}
.form-progress li.is-active::before {
  color: var(--clay-500);
}
.form-progress li.is-done {
  color: var(--stone-700);
  border-bottom-color: var(--moss-400);
}
.form-progress li.is-done::before {
  color: var(--moss-400);
}
@media (max-width: 519px) {
  .form-progress li {
    font-size: 0;
    padding-bottom: 0.7rem;
  }
  .form-progress li::before {
    font-size: 0.95rem;
    margin-right: 0;
  }
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--bone-200);
}
.step-actions .btn {
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
}
.step-actions-spacer { display: inline-block; min-width: 1px; }

.btn-step-prev::before {
  content: "←";
  font-size: 1.05em;
  margin-right: 0.4rem;
  transition: transform 0.25s var(--ease);
}
.btn-step-prev::after { content: none; }
.btn-step-prev:hover::before { transform: translateX(-3px); }

.section-form .btn-step-next,
.section-form .btn-primary {
  background: var(--forest-700);
  color: var(--bone-50);
}
.section-form .btn-step-next:hover,
.section-form .btn-primary:hover {
  background: var(--forest-800);
  color: var(--bone-50);
}
.section-form .btn-ghost.btn-step-prev {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--bone-300);
}
.section-form .btn-ghost.btn-step-prev:hover {
  background: var(--bone-100);
  border-color: var(--stone-400);
  color: var(--ink-900);
}

.anfrage-form-stepped .form-note {
  margin-top: var(--space-4);
  text-align: right;
}

/* ------------ Warm-paper grain texture overlay ------------ */

:root {
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' seed='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: var(--grain);
  background-repeat: repeat;
  background-size: 180px 180px;
}
@media (prefers-reduced-motion: reduce) {
  body::before { opacity: 0.025; }
}
@media print {
  body::before { display: none; }
}

/* ------------ Reveal-on-scroll (subtle) ------------ */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ------------ Lightbox ------------ */

.lightbox {
  border: none;
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  inset: 0;
  background: rgba(15, 25, 20, 0.96);
  color: var(--bone-50, #f5f3ee);
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(10, 15, 12, 0.92);
  backdrop-filter: blur(6px);
}
.lightbox[open] {
  display: grid;
  place-items: center;
}
.lightbox-frame {
  margin: 0;
  padding: 1rem;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  max-width: 100%;
  max-height: 100%;
}
.lightbox-img {
  display: block;
  max-width: min(95vw, 1600px);
  max-height: 82dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.lightbox-caption {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--bone-50, #f5f3ee);
  opacity: 0.85;
  max-width: 60ch;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--bone-50, #f5f3ee);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  font-family: inherit;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.20);
}
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  outline: 2px solid var(--bone-50, #f5f3ee);
  outline-offset: 3px;
}
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev  { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-counter {
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  margin: 0;
  font-size: 0.8rem;
  color: var(--bone-50, #f5f3ee);
  opacity: 0.7;
  letter-spacing: 0.08em;
  font-feature-settings: "tnum";
  pointer-events: none;
}

@media (max-width: 640px) {
  .lightbox-img { max-height: 72dvh; }
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 1rem;
    transform: none;
    width: 44px;
    height: 44px;
  }
  .lightbox-prev { left: 22%; }
  .lightbox-next { right: 22%; }
  .lightbox-prev:hover,
  .lightbox-next:hover { transform: scale(1.05); }
  .lightbox-counter { font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-close, .lightbox-prev, .lightbox-next {
    transition: none;
  }
}

/* ------------ Print ------------ */

@media print {
  .site-header, .hero-art, .hero-actions, .anfrage-form, .site-footer nav { display: none; }
  body { color: black; background: white; }
  a { color: black; text-decoration: underline; }
  .section { padding: 1rem 0; break-inside: avoid; }
  .hero { min-height: auto; background: white; color: black; }
  .hero-inner { color: black; }
  .hero-title, .hero-sub { color: black; text-shadow: none; }
}
