/* =====================================================
   Am Heißberg v3 - Editorial Draft
   ===================================================== */

/* Schriften lokal gehostet (DSGVO-konform, kein Google CDN) */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/fraunces.woff2') format('woff2-variations'),
       url('fonts/fraunces.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/fraunces-italic.woff2') format('woff2-variations'),
       url('fonts/fraunces-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-tight.woff2') format('woff2-variations'),
       url('fonts/inter-tight.woff2') format('woff2');
}

:root {
  --green-deep: #0f3b15;
  --green-moss: #2d5a1e;
  --green-dark-ink: #0a1f0d;
  --cream: #f7f1e6;
  --cream-warm: #efe6d3;
  --sand: #e4d5bb;
  --bark: #3a2e1f;
  --gold: #a47832;
  --gold-soft: #c79d58;
  --ink: #1a2416;
  --paper: #faf6ed;
  --line: rgba(26, 36, 22, 0.12);
  --shadow-soft: 0 24px 48px -20px rgba(15, 59, 21, 0.22);
  --shadow-card: 0 2px 4px rgba(15, 59, 21, 0.06), 0 12px 28px -8px rgba(15, 59, 21, 0.16);

  --serif: "Fraunces", "Playfair Display", Georgia, serif;
  --sans: "Inter Tight", -apple-system, system-ui, sans-serif;

  --page-max: 1920px;
  /* Layoutbreite: 1440 Standard, 1920 nur auf sehr breiten Monitoren (>1920 Viewport) */
  --wrap-max: 1440px;
  --gutter: clamp(20px, 4vw, 64px);

  /* Phi-Skala (phi = 1.618, base 1.1rem). Halbstufen = sqrt(phi) ~ 1.27 */
  --t-eyebrow: 0.72rem;
  --t-sm: 0.85rem;
  --t-base: 1.1rem;
  --t-lg: 1.4rem;
  --t-xl: 1.78rem;
  --t-2xl: 2.26rem;
  --t-3xl: 2.88rem;
  --t-4xl: 3.66rem;
  --t-5xl: 4.66rem;
  --t-6xl: 5.9rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html, body { margin: 0; overflow-x: hidden; max-width: 100vw; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.6;
  font-weight: 400;
  -webkit-text-size-adjust: 100%;
}
/* Page wrapper: full-bleed. Nur der .wrap-Container begrenzt Content auf 1440. */
.page {
  position: relative;
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* Typography */
.display, h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; font-variation-settings: "opsz" 144; margin: 0; }
h1 { font-size: clamp(var(--t-3xl), 7.5vw, var(--t-6xl)); }
h2 { font-size: clamp(var(--t-2xl), 4vw, var(--t-4xl)); }
h3 { font-size: clamp(var(--t-lg), 1.9vw, var(--t-xl)); letter-spacing: -0.005em; }
h4 { font-size: var(--t-lg); letter-spacing: 0; }
p { margin: 0 0 1em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75em;
  font-family: var(--sans);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 28px; height: 1px; background: currentColor;
}
.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(var(--t-xl), 2.4vw, var(--t-3xl));
  line-height: 1.35;
  color: var(--green-deep);
}

/* Container - bündig 1440 */
.wrap { width: 100%; max-width: var(--wrap-max); margin: 0 auto; padding-inline: var(--gutter); }
@media (min-width: 1921px) {
  :root { --wrap-max: 1920px; }
}

/* Sections */
.section { padding: clamp(56px, 9vw, 120px) 0; position: relative; }
/* Globales Header-Pattern:
   Links: Eyebrow + Headline (gestapelt).
   Rechts: Fließtext am rechten Wrap-Rand.
   BOTTOM-BÜNDIG: Headline-Unterkante links = Textblock-Unterkante rechts. */
.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-rows: auto auto;
  column-gap: clamp(32px, 5vw, 96px);
  row-gap: 0;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
  max-width: none;
}
.section-header > .eyebrow { grid-column: 1; grid-row: 1; margin: 0 0 10px; align-self: end; }
.section-header > h2,
.section-header > h3 { grid-column: 1; grid-row: 2; margin: 0; align-self: end; }
.section-header > p,
.section-header > .sh-body {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end; /* Bottom-bündig mit H2-Unterkante */
  justify-self: end;
  margin: 0;
  max-width: 50ch;
  /* Pullquote-Stil wie in Buschenschank-Land: Serif italic, grün-tief */
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.5;
  color: var(--green-deep);
  text-align: left;
}
/* Region-Section: Text rückt zur Mitte (links in Spalte 2) und ist etwas breiter */
.region .section-header > p {
  justify-self: start;
  max-width: 56ch;
}
@media (max-width: 900px) {
  .section-header { grid-template-columns: 1fr; }
  .section-header > p,
  .section-header > .sh-body { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 18px; }
}

/* =====================================================
   NAV
   ===================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s, transform 0.35s ease;
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-frame { position: relative; }
.nav.is-scrolled {
  background: rgba(250, 246, 237, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-brand {
  display: inline-flex; align-items: baseline; gap: 0.5em;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}
.nav-brand .am {
  font-style: italic; font-weight: 300; opacity: 0.85;
  font-size: 0.68em; letter-spacing: 0.08em;
}
@media (max-width: 600px) {
  .nav-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.05;
  }
  .nav-brand .am { font-size: 0.62em; }
}
.nav.is-scrolled .nav-brand { color: var(--green-deep); }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link, .nav-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--paper);
  border-radius: 99px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav.is-scrolled .nav-link,
.nav.is-scrolled .nav-toggle { color: var(--ink); }
.nav-link:hover, .nav-toggle:hover { background: rgba(255,255,255,0.14); }
.nav.is-scrolled .nav-link:hover,
.nav.is-scrolled .nav-toggle:hover { background: rgba(15, 59, 21, 0.07); }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle::after {
  content: ""; width: 7px; height: 7px;
  border: 1px solid currentColor; border-top: 0; border-left: 0;
  transform: rotate(45deg); margin-top: -3px; margin-left: 4px; opacity: 0.7;
}
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-soft);
  min-width: 280px; padding: 10px;
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-link {
  display: block; padding: 12px 16px;
  font-size: 0.92rem; border-radius: 10px;
  color: var(--ink); text-transform: none;
  font-weight: 500; transition: background 0.15s;
}
.nav-dropdown-link:hover { background: var(--cream-warm); color: var(--green-deep); }
.nav-cta {
  background: var(--paper); color: var(--green-deep) !important;
  border: 1px solid rgba(255,255,255,0.25);
}
.nav.is-scrolled .nav-cta {
  background: var(--green-deep); color: var(--paper) !important;
  border-color: var(--green-deep);
}
.nav-hamburger {
  display: none; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 99px; border: 1px solid rgba(255,255,255,0.4);
  color: var(--paper);
}
.nav.is-scrolled .nav-hamburger { border-color: var(--line); color: var(--ink); }
.nav-hamburger span { display: block; width: 18px; height: 1px; background: currentColor; position: relative; }
.nav-hamburger span::before,
.nav-hamburger span::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; }
.nav-hamburger span::before { top: -6px; }
.nav-hamburger span::after { top: 6px; }

@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-hamburger { display: inline-flex; }
  .nav-menu.is-open {
    display: grid; gap: 4px;
    position: absolute; top: calc(100% + 10px); left: var(--gutter); right: var(--gutter);
    background: var(--paper);
    padding: 14px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  .nav-menu.is-open .nav-link,
  .nav-menu.is-open .nav-toggle {
    color: var(--ink); justify-content: flex-start;
    padding: 14px 16px;
  }
  .nav-menu.is-open .nav-cta {
    background: var(--green-deep); color: var(--paper) !important;
    margin-top: 6px;
  }
  .nav-menu.is-open .nav-dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-top: 0; border-radius: 0;
    padding: 0; min-width: 0;
  }
  .nav-menu.is-open .nav-dropdown-toggle { display: none; }
  .nav-menu.is-open .nav-cta { justify-content: center; text-align: center; }
}

/* Anker-Offset: passt zur scrolled-Nav-Höhe */
[id] { scroll-margin-top: 76px; }
@media (max-width: 600px) {
  [id] { scroll-margin-top: 68px; }
}

/* Scroll-to-Top Button */
.to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 48px; height: 48px;
  background: var(--green-deep); color: var(--paper);
  border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease;
  z-index: 90;
  box-shadow: 0 6px 18px rgba(15, 59, 21, 0.22);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--green-mid, #1a6021); transform: translateY(-3px); }
.to-top svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
@media (max-width: 600px) {
  .to-top { bottom: 16px; right: 16px; width: 44px; height: 44px; }
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--paper);
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; background: #1a3018; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 55%;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to { transform: scale(1.0); }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 31, 13, 0.55) 0%, rgba(10, 31, 13, 0.08) 30%, rgba(10, 31, 13, 0.2) 60%, rgba(10, 31, 13, 0.75) 100%);
}
.hero-content {
  padding-top: clamp(140px, 20vh, 220px);
  padding-bottom: clamp(48px, 8vh, 90px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
.hero-title-block { max-width: 920px; }
.hero-eyebrow { color: var(--gold-soft); margin-bottom: 22px; opacity: 0; animation: fadeUp 0.9s 0.2s ease forwards; }
.hero-title {
  font-size: clamp(2.6rem, 7.5vw, 6.8rem);
  font-weight: 350; letter-spacing: -0.02em; line-height: 1;
  margin: 0 0 26px;
  opacity: 0; animation: fadeUp 0.9s 0.35s ease forwards;
}
.hero-title em { font-style: italic; font-weight: 300; color: var(--sand); }
.hero-sub {
  max-width: 560px;
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.6;
  color: rgba(247, 241, 230, 0.85);
  margin: 0 0 36px;
  opacity: 0; animation: fadeUp 0.9s 0.5s ease forwards;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: fadeUp 0.9s 0.65s ease forwards; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  font-family: var(--sans);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: 99px;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s, color 0.2s, box-shadow 0.25s;
}
.btn-primary {
  background: var(--paper); color: var(--green-deep);
  box-shadow: 0 14px 32px -10px rgba(0,0,0,0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5); }
.btn-ghost {
  background: transparent; color: var(--paper);
  border: 1px solid rgba(255,255,255,0.45);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }

.hero-meta {
  display: flex; flex-direction: column; gap: 18px;
  text-align: right;
  font-family: var(--sans);
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0; animation: fadeUp 0.9s 0.8s ease forwards;
  min-width: 220px;
}
.hero-meta-item {
  padding-left: 18px;
  border-left: 1px solid rgba(247, 241, 230, 0.3);
  line-height: 1.4;
}
.hero-meta-item strong {
  display: block; font-family: var(--serif);
  font-weight: 400; font-size: 1.35rem; letter-spacing: 0; text-transform: none;
  color: var(--paper); margin-bottom: 4px;
}
.hero-meta-link {
  color: inherit;
  border-bottom: 1px solid rgba(247, 241, 230, 0.6);
  padding-bottom: 1px;
  transition: border-color 0.25s, color 0.25s;
}
.hero-meta-link:hover { border-color: var(--paper); color: var(--paper); }

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; align-items: end; }
  .hero-meta {
    flex-direction: row; flex-wrap: wrap; gap: 16px;
    text-align: left; min-width: 0;
    margin-top: 8px;
  }
  .hero-meta-item {
    flex: 1 1 140px;
    border-left: 0; border-top: 1px solid rgba(247, 241, 230, 0.25);
    padding-left: 0; padding-top: 10px;
  }
}
@media (max-width: 480px) {
  .hero-title { font-size: clamp(3rem, 14vw, 4.6rem); line-height: 1.0; letter-spacing: -0.02em; }
  .hero-title-block { max-width: 100%; padding-right: 4px; }
  .hero-sub { font-size: 0.98rem; }
  .hero-ctas { gap: 10px; }
  .btn { padding: 13px 20px; font-size: 0.72rem; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(247, 241, 230, 0.55);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; animation: fadeUp 0.9s 1.1s ease forwards;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 34px;
  background: linear-gradient(to bottom, rgba(247,241,230,0.5), transparent);
  animation: scrollDown 2.2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}
@media (max-width: 600px) { .hero-scroll { display: none; } }

/* =====================================================
   INTRO
   ===================================================== */
.intro { background: var(--cream); }
/* Intro nutzt eine eigene Regel:
   TOP-bündig (Oberkante Pullquote = Oberkante Bodytext),
   Bodytext breiter, rückt zur Mitte und nutzt den Platz neben der Pullquote. */
/* Editorial Wrap: Eyebrow oben full-width.
   Titel + Signatur floaten links auf 50 % Breite.
   Bodytext fließt rechts neben dem Titel hoch (Oberkante = Oberkante Titel)
   und läuft unten unter dem Titel auf voller Wrap-Breite weiter. */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 4vw, 72px);
  align-items: start;
}
.intro-eyebrow { display: flex; width: fit-content; margin: 0 0 22px; grid-column: 1; grid-row: 1; }
.intro-welcome-heading {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.2;
  color: var(--green-deep);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144;
  grid-column: 1;
  grid-row: 2;
}
.intro-welcome-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.2;
  color: var(--green-deep);
  margin: 0 0 24px;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144;
  grid-column: 1;
  grid-row: 3;
}
.intro-signature {
  font-family: var(--serif); font-style: italic; font-size: 1.15rem;
  color: var(--green-deep);
  grid-column: 1;
  grid-row: 4;
  margin: 0 0 16px;
}
.intro-body {
  grid-column: 2;
  grid-row: 2 / 5;
  align-self: start;
  margin: 0;
}
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-eyebrow,
  .intro-welcome-heading,
  .intro-welcome-sub,
  .intro-signature,
  .intro-body { grid-column: 1; grid-row: auto; }
  .intro-body { margin-top: 28px; }
}
.intro-body p {
  /* Originaler Body-Stil: Sans, normaler Strich, dunkelgrau-grün */
  font-family: var(--sans);
  font-weight: 400;
  color: rgba(26, 36, 22, 0.82);
  margin: 0 0 16px;
  font-size: 1.1rem;
  line-height: 1.7;
}
.intro-body p:first-child { margin-top: 0; }
.intro-body p:last-child { margin-bottom: 0; }
.intro-stats {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
}
.intro-stat {
  background: transparent;
  padding: 32px 22px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.intro-stat:last-child { border-right: 0; }
.intro-stat .n {
  display: block; font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--green-deep);
  font-weight: 400; line-height: 1; margin-bottom: 6px;
}
.intro-stat .l {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bark); opacity: 0.72;
}
@media (max-width: 760px) {
  .intro-stats { grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
}

/* =====================================================
   GALERIE WOHNUNG
   ===================================================== */
.gallery { background: var(--paper); }
.gallery-head {
  display: flex; align-items: end; justify-content: space-between; gap: 32px;
  margin-bottom: 48px; flex-wrap: wrap;
}
.gallery-head .hint {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bark); opacity: 0.6;
}

.masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  grid-auto-flow: dense;
  gap: clamp(12px, 1.4vw, 20px);
}
.masonry > figure {
  margin: 0;
  position: relative; overflow: hidden;
  border-radius: 12px;
  background: var(--cream-warm);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
}
/* Hero-Tile: links oben 2 Spalten x 2 Reihen, bleibt fix auf Position 1 */
.masonry > figure.hero-tile {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.masonry > figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,31,13,0.55));
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.masonry > figure:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.masonry > figure:hover::after { opacity: 1; }
.masonry > figure img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.masonry > figure:hover img { transform: scale(1.04); }
.masonry > figure figcaption {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-family: var(--sans);
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--paper);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.masonry > figure:hover figcaption { opacity: 1; transform: translateY(0); }
@media (max-width: 1200px) {
  .masonry { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .masonry > figure.hero-tile { grid-column: span 2; grid-row: span 2; }
}

/* =====================================================
   LANDSCHAFT (Horizontale Masonry-Collage, full-bleed)
   ===================================================== */
.landscape {
  background: var(--green-deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.collage {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  position: relative;
  /* Grundeinheit: 1u. Container ist 4u hoch. +20% gegenüber vorher. */
  --u: clamp(108px, 12vw, 180px);
  height: calc(var(--u) * 4);
  touch-action: pan-y; /* horizontal Swipe wird vom JS verarbeitet */
}
.collage-track {
  display: grid;
  grid-auto-flow: column dense;
  grid-template-rows: repeat(4, var(--u));
  grid-auto-columns: var(--u);
  gap: 0;
  height: 100%;
  width: max-content;
  will-change: transform;
  /* Animation wird per JS gesteuert (Momentum-Scroll) */
}

.tile { position: relative; overflow: hidden; }
/* Sanfter, langsamer Zoom innerhalb der Maske.
   Bild füllt die Maske vollständig (object-fit: cover) und skaliert
   bei Hover minimal hoch. transform-origin center sorgt dafür dass
   die Maske an allen Seiten gecovert bleibt. */
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 5.4s ease-out;
  will-change: transform;
  backface-visibility: hidden;
}
@media (hover: hover) {
  .tile:hover img { transform: scale(1.06); }
}

/* Shape-Set für lückenlosen Ziegelverband.
   Nur Shapes mit 2 oder 4 Rows Höhe, damit dense sauber packt. */
/* Alle Breiten sind 2 oder 4 Spalten, alle Höhen 2 oder 4 Reihen.
   Dadurch packt grid-auto-flow column dense lückenlos im Ziegelverband. */
.t-hero     { grid-column: span 4; grid-row: span 4; } /* Landscape XL, volle Höhe */
.t-big      { grid-column: span 4; grid-row: span 4; } /* Quadrat, volle Höhe */
.t-portrait { grid-column: span 2; grid-row: span 4; } /* Hochformat schmal, volle Höhe */
.t-land     { grid-column: span 4; grid-row: span 2; } /* Landscape Panorama */
.t-land-sm  { grid-column: span 4; grid-row: span 2; } /* Landscape klein */
.t-square   { grid-column: span 2; grid-row: span 2; } /* Quadrat klein */
.t-text-tall{ grid-column: span 2; grid-row: span 4; } /* Spruch hoch, volle Höhe */
.t-text     { grid-column: span 4; grid-row: span 2; } /* Spruch breit, halbe Höhe */

.tile.tile-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,31,13,0.35));
  pointer-events: none;
}

.tile-text {
  display: flex;
  /* Text sitzt im unteren Drittel (Goldener Schnitt: ~62 % von oben).
     Strich oben als Halt, Text unten linksbündig. */
  align-items: flex-end;
  background: var(--green-deep);
  color: var(--paper);
  padding: clamp(32px, 3vw, 56px);
  padding-top: clamp(60px, 5vw, 96px);
  padding-bottom: clamp(34px, 3.2vw, 60px);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  position: relative;
}
.tile-text > span { display: block; max-width: 18ch; }
.tile-text::before {
  content: "";
  position: absolute;
  left: clamp(32px, 3vw, 56px);
  top: clamp(28px, 2.4vw, 40px);
  width: 36px; height: 1px;
  background: var(--gold-soft);
}
.tile-text em {
  font-style: italic;
  color: var(--gold-soft);
  font-weight: 400;
}

/* =====================================================
   AUSSTATTUNG
   ===================================================== */
.ausstattung { background: var(--cream-warm); }
.icons-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 40px;
  border-top: 1px solid rgba(26, 36, 22, 0.1);
  border-left: 1px solid rgba(26, 36, 22, 0.1);
}
.icon-cell {
  padding: 48px 30px;
  border-right: 1px solid rgba(26, 36, 22, 0.1);
  border-bottom: 1px solid rgba(26, 36, 22, 0.1);
  transition: background 0.25s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.icon-cell:hover { background: rgba(15, 59, 21, 0.04); }
.icon-cell svg { width: 48px; height: 48px; stroke: var(--green-deep); stroke-width: 1.25; fill: none; margin: 0 auto 24px; }
.icon-cell h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.005em;
  font-size: 1.25rem;
  color: var(--green-deep);
  margin: 0 0 12px;
  line-height: 1.25;
}
.icon-cell p { margin: 0; font-size: 1.1rem; color: rgba(26, 36, 22, 0.78); line-height: 1.55; max-width: 30ch; }
@media (max-width: 900px) { .icons-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .icons-grid { grid-template-columns: 1fr; } }

/* =====================================================
   REGION
   ===================================================== */
.region { background: var(--paper); }
.region-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
  margin-top: 32px;
}
.r-card {
  position: relative; border-radius: 14px; overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.r-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.r-card.c-image { padding: 0; color: var(--paper); justify-content: flex-end; min-height: 360px; }
.r-card.c-image > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.r-card.c-image:hover > img { transform: scale(1.05); }
.r-card.c-image::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,31,13,0.05) 30%, rgba(10,31,13,0.82));
}
.r-card.c-image .card-body { position: relative; z-index: 2; padding: 28px; }
.r-card.c-text { padding: 32px 28px; }
.r-card.c-text.green { background: var(--green-deep); color: var(--paper); }
.r-card.c-text.green .eyebrow { color: var(--gold-soft); }
.r-card.c-text.green a { color: var(--gold-soft); }
.r-card .tag {
  display: inline-block; font-size: 0.66rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 12px; opacity: 0.85;
}
.r-card h3 { margin: 0 0 14px; font-size: clamp(1.7rem, 2vw, 2.1rem); line-height: 1.1; }
.r-card.c-image h3 { color: var(--paper); }
.r-card p { margin: 0; font-size: 1.02rem; line-height: 1.55; opacity: 0.88; }

/* Thermen Liste */
.therm-list { margin: 0; padding: 0; list-style: none; }
.therm-list li {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 16px; padding: 12px 0;
  font-size: 0.98rem;
  border-bottom: 1px solid rgba(247,241,230,0.12);
  align-items: baseline;
}
.therm-list li:last-child { border-bottom: 0; }
.therm-list .km { font-family: var(--serif); font-size: 1.05rem; color: var(--gold-soft); }
.therm-list .min { font-size: 0.78rem; opacity: 0.6; letter-spacing: 0.08em; }

.r-card .link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; font-size: 0.74rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px; width: fit-content;
}
.r-card .link .arrow { transition: transform 0.25s; }
.r-card:hover .link .arrow { transform: translateX(4px); }

.r-card.span-8 { grid-column: span 8; }
.r-card.span-6 { grid-column: span 6; }
.r-card.span-5 { grid-column: span 5; }
.r-card.span-4 { grid-column: span 4; }
.r-card.span-7 { grid-column: span 7; }
.r-card.span-12 { grid-column: span 12; min-height: 200px; }
@media (max-width: 991px) {
  .r-card[class*="span-"] { grid-column: span 12; }
}

.shops-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  margin-top: 20px;
}
.shop-item {
  padding: 22px 24px;
  background: var(--cream);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: border-color 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.4s ease;
}
.shop-item:hover {
  border-color: rgba(164,120,50,0.35);
  background: var(--cream-warm);
  transform: translateY(-2px);
}
.shop-item h4 { font-size: var(--t-lg); margin: 0 0 6px; color: var(--green-deep); font-weight: 500; font-family: var(--serif); }
.shop-item .dist { font-size: var(--t-base); color: var(--bark); opacity: 0.75; }

@media (max-width: 760px) {
  #Einkaufsmoeglichkeiten {
    box-shadow: none;
    background: transparent;
    padding: 24px 0 !important;
    border-radius: 0;
  }
  .shops-row {
    gap: 10px;
  }
  .shop-item {
    padding: 14px 12px;
  }
  .shop-item h4 { font-size: 1rem; }
  .shop-item .dist { font-size: 0.78rem; }
}

/* =====================================================
   ESSEN & TRINKEN
   ===================================================== */
.culinary { background: var(--cream); position: relative; overflow: hidden; }
.culinary-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: end; /* beide Blöcke unten-bündig */
  margin-bottom: 48px;
}
.culinary-intro > p {
  justify-self: end;
  max-width: 48ch;
  margin: 0;
}
.cul-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2vw, 28px);
  align-items: start; /* Cards sizen sich nach Inhalt, kein Row-Stretch */
}
.cul-card {
  background: var(--paper);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: minmax(180px, 38%) 1fr;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}
.cul-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(15, 59, 21, 0.08), 0 24px 48px -16px rgba(15, 59, 21, 0.22);
}
.cul-card .cul-img {
  position: relative;
  overflow: hidden;
  background: var(--cream-warm);
}
.cul-card .cul-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cul-card:hover .cul-img img { transform: scale(1.05); }
.cul-card .cul-body {
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.cul-card .cul-cta {
  margin-top: 6px;
  align-self: flex-start;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.25s, gap 0.25s;
}
.cul-card .cul-cta:hover { color: var(--green-deep); gap: 12px; }
@media (max-width: 600px) {
  .cul-card { grid-template-columns: 1fr; }
  .cul-card .cul-img { height: 200px; }
  .cul-card .cul-body { padding: 22px; }
}
.cul-card .meta {
  font-family: var(--sans); font-size: 0.7rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
}
.cul-card h3 {
  font-family: var(--serif); font-size: clamp(1.6rem, 1.9vw, 1.95rem);
  line-height: 1.15;
  margin: 0; color: var(--green-deep);
}
.cul-card p { margin: 0; font-size: 1rem; color: rgba(26,36,22,0.75); line-height: 1.55; }
.cul-card .info {
  display: flex; gap: 14px; flex-wrap: wrap;
  padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 0.82rem; color: rgba(26,36,22,0.7);
}
.cul-card .info span { display: inline-flex; align-items: center; gap: 6px; }
.cul-card .info strong { color: var(--green-deep); font-weight: 500; }
@media (max-width: 760px) {
  .culinary-intro { grid-template-columns: 1fr; gap: 24px; }
  .cul-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   PREISE & ANREISE
   ===================================================== */
/* FAQ */
.faq { background: var(--paper); }
.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(40px, 6vw, 96px);
  max-width: none;
  align-items: start; /* jede Spalte wächst unabhängig */
}
.faq-col { display: block; }
.faq-item {
  border-top: 1px solid var(--line);
}
@media (max-width: 760px) {
  .faq-list { grid-template-columns: 1fr; }
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 48px 24px 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  color: var(--green-deep);
  position: relative;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--gold); }
.faq-answer {
  padding: 0 48px 24px 0;
  color: rgba(26, 36, 22, 0.78);
  font-size: 1.05rem;
  line-height: 1.65;
}

.booking { background: var(--green-dark-ink); color: var(--paper); position: relative; overflow: hidden; }
.booking::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("images/DJI_0249-p-1600.jpg");
  background-size: cover; background-position: center;
  opacity: 0.1; filter: blur(3px);
}
.booking-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end; /* beide Blöcke unten-bündig */
}
@media (max-width: 900px) {
  .booking-grid { align-items: start; }
}
.booking h2 { color: var(--paper); margin-bottom: 16px; }
.booking .eyebrow { color: var(--gold-soft); }
.booking-lead { font-size: 1.1rem; color: rgba(247,241,230,0.78); max-width: 45ch; margin-bottom: 32px; }

.price-card {
  background: rgba(247,241,230,0.06);
  border: 1px solid rgba(247,241,230,0.14);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 0;
  transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.price-card:hover {
  border-color: rgba(199,157,88,0.45);
  background: rgba(247,241,230,0.09);
  transform: translateY(-2px);
}
.price-big {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 8px;
}
.price-big .euro { font-family: var(--serif); font-size: 3.4rem; font-weight: 400; color: var(--gold-soft); line-height: 1; }
.price-big .unit { font-size: 0.88rem; color: rgba(247,241,230,0.75); letter-spacing: 0.1em; }
.price-includes {
  margin: 0; padding: 0; list-style: none;
  font-size: 0.98rem; color: rgba(247,241,230,0.82);
  border-top: 1px solid rgba(247,241,230,0.14);
  padding-top: 16px; margin-top: 14px;
}
.price-includes li { padding: 5px 0; display: flex; gap: 10px; align-items: flex-start; }
.price-includes li::before { content: "\2713"; color: var(--gold-soft); flex: 0 0 auto; }

.arrival-card {
  background: rgba(247,241,230,0.04);
  border: 1px solid rgba(247,241,230,0.1);
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 16px;
  transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.arrival-card:hover {
  border-color: rgba(199,157,88,0.4);
  background: rgba(247,241,230,0.07);
  transform: translateY(-2px);
}
.arrival-card:last-child { margin-bottom: 0; }
.arrival-card.arrival-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  padding: 28px 30px;
}
/* Kontakt-Liste */
.contact-list {
  list-style: none; margin: 6px 0 0; padding: 0;
  display: grid; gap: 14px;
  align-self: center;
}
.contact-list li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 14px;
  font-size: 0.98rem;
  color: rgba(247,241,230,0.85);
}
.contact-list .ci {
  width: 18px; height: 18px;
  color: var(--gold-soft);
  display: block;
}
.contact-list .ci-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--paper);
}
.contact-list .ci-val {
  font-family: var(--sans);
  color: var(--gold-soft);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  white-space: nowrap;
}
.contact-list .ci-val:hover { border-bottom-color: currentColor; }
.contact-list .ci-mail {
  grid-column: 2 / -1;
  font-size: 0.98rem;
}
.arrival-card.arrival-split .arrival-col h3 {
  margin: 0 0 12px;
}
.arrival-card.arrival-split .arrival-col p {
  margin: 0 0 6px;
  font-size: 1rem;
  color: rgba(247,241,230,0.82);
  line-height: 1.5;
}
@media (max-width: 600px) {
  .arrival-card.arrival-split { grid-template-columns: 1fr; gap: 20px; }
}
.arrival-card h3 { margin: 0 0 10px; color: var(--paper); font-size: 1.15rem; }
.arrival-card p { margin: 0 0 6px; font-size: 1rem; color: rgba(247,241,230,0.78); line-height: 1.5; }
.arrival-card strong { color: var(--paper); font-weight: 500; }
.map-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-soft);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
@media (max-width: 900px) {
  .booking-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer { background: var(--cream); color: var(--ink); padding: 72px 0 28px; }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(56px, 8vw, 120px);
  align-items: flex-start;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
}
.footer-brand {
  flex: 0 0 auto;
  max-width: 36ch;
}
.footer-col { min-width: 140px; }
.footer-brand h3 { font-family: var(--serif); font-size: 1.9rem; color: var(--green-deep); margin: 0 0 14px; }
.footer-brand p { max-width: 34ch; color: rgba(26,36,22,0.72); font-size: 1rem; line-height: 1.6; margin: 0 0 18px; }
/* Logo zwischen Brand und Nav-Cols. Brand bleibt links, Cols rechts.
   Logo selbst sitzt mittig im verbleibenden Raum. */
.footer-thvl {
  display: inline-flex; align-items: center;
  flex: 0 0 auto;
  margin: 0 auto;
  opacity: 0.85;
  transition: opacity 0.25s;
}
.footer-thvl:hover { opacity: 1; }
.footer-thvl img { display: block; width: 160px; height: auto; }
@media (max-width: 900px) { .footer-thvl { margin: 8px 0; } }
.footer-col h4 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; font-weight: 500; }
.footer-col a, .footer-col div { display: block; font-size: 0.98rem; line-height: 1.7; color: rgba(26,36,22,0.78); }
.footer-col a:hover { color: var(--green-deep); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(26,36,22,0.55);
}
.footer-credit {
  flex: 1 1 auto;
  text-align: center;
  color: rgba(26,36,22,0.5);
}
.footer-credit .heart {
  display: inline-block;
  color: var(--green-deep);
  font-size: 1.15em;
  vertical-align: -2px;
  margin: 0 3px;
}
.footer-credit a {
  color: var(--green-deep);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.footer-credit a:hover { border-bottom-color: currentColor; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* =====================================================
   LIGHTBOX
   ===================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10, 31, 13, 0.94);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center; justify-content: center;
  padding: 48px;
  animation: lbFade 0.25s ease;
}
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox.is-open { display: flex; }
.lb-content {
  max-width: 92vw; max-height: 86vh;
  display: flex; align-items: center; justify-content: center;
}
.lb-content img {
  max-width: 100%; max-height: 86vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
}
.lb-btn {
  position: absolute; z-index: 10;
  background: rgba(247,241,230,0.08);
  border: 1px solid rgba(247,241,230,0.2);
  color: var(--paper);
  width: 48px; height: 48px;
  border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.lb-btn:hover { background: rgba(247,241,230,0.18); transform: scale(1.06); }
.lb-close { top: 28px; right: 28px; }
.lb-prev { left: 28px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 28px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.06); }
.lb-counter {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--sans); font-size: 0.75rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(247,241,230,0.7);
}
.lb-caption {
  position: absolute; left: 28px; bottom: 28px; z-index: 5;
  max-width: calc(100% - 160px);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  color: rgba(247,241,230,0.92);
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
@media (max-width: 600px) {
  .lb-caption { left: 16px; bottom: 64px; font-size: 0.92rem; max-width: calc(100% - 32px); }
}
@media (max-width: 600px) {
  .lightbox { padding: 16px; }
  .lb-close, .lb-prev, .lb-next { width: 42px; height: 42px; }
  .lb-close { top: 16px; right: 16px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   ANFRAGE-MODAL
   ===================================================== */
.anfrage-dialog {
  position: fixed; inset: 0; z-index: 2000;
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(10, 31, 13, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink);
}
.anfrage-dialog.is-open {
  display: flex;
  animation: anfrageFadeIn 0.25s ease;
}
@keyframes anfrageFadeIn { from { opacity: 0; } to { opacity: 1; } }
.anfrage-dialog .anfrage-inner {
  background: var(--paper);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 48px);
  max-width: 720px; width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
  box-shadow: 0 32px 80px -20px rgba(10,31,13,0.45);
}
.anfrage-close {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 99px;
  background: rgba(15, 59, 21, 0.06);
  color: var(--green-deep);
  border: 0; font-size: 22px; cursor: pointer;
  transition: background 0.2s;
}
.anfrage-close:hover { background: rgba(15, 59, 21, 0.12); }
.anfrage-dialog h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.95rem, 3.1vw, 2.65rem);
  color: var(--green-deep);
  margin: 0 0 14px;
  line-height: 1.1;
}
.anfrage-dialog .anfrage-lead {
  font-size: 0.98rem; color: rgba(26,36,22,0.7);
  margin: 0 0 32px;
}
.anfrage-label-hint {
  font-weight: 400;
  color: rgba(26,36,22,0.55);
  font-size: 0.85em;
  margin-left: 4px;
}
.anfrage-mindest {
  font-size: 0.85rem;
  color: rgba(26,36,22,0.6);
  margin: -4px 0 6px;
  font-style: italic;
}
.anfrage-field input.is-conflict {
  border-color: #a83232;
  background: rgba(168, 50, 50, 0.04);
}

/* Kalender-Icon als Pseudo-Element am Wrapper (nicht am Input,
   weil Flatpickr altInput zwei Inputs uebereinander rendert und
   ein background-image dann doppelt erscheint). */
.anfrage-field.is-date { position: relative; }
.anfrage-field.is-date input { padding-right: 44px; cursor: pointer; }
.anfrage-field.is-date::after {
  content: "";
  position: absolute;
  right: 16px;
  /* An Input verankern (label-Hoehe + Input-Hoehe/2). label ist ca. 18px hoch
     plus 6px gap, dann Input ca. 48px. Icon mittig im Input -> top label+gap+input/2 */
  top: 42px;
  width: 18px;
  height: 18px;
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%233a2e1f" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>');
  background-repeat: no-repeat;
  background-size: 18px;
}
.anfrage-field.is-date:focus-within::after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%230f3b15" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>');
}

/* === Flatpickr-Theme an Heißberg-Palette ============================ */
.flatpickr-calendar {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -20px rgba(15, 59, 21, 0.22);
  border-radius: 12px;
  font-family: var(--sans);
  color: var(--ink);
}
.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after { border-bottom-color: var(--paper); }
.flatpickr-calendar.arrowBottom::before,
.flatpickr-calendar.arrowBottom::after { border-top-color: var(--paper); }

.flatpickr-months .flatpickr-month {
  background: transparent;
  color: var(--green-deep);
  fill: var(--green-deep);
  height: 44px;
}
.flatpickr-current-month {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  padding-top: 6px;
  color: var(--green-deep);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  color: var(--green-deep);
  font-family: var(--serif);
  font-weight: 400;
}
.flatpickr-current-month input.cur-year {
  min-width: 5ch;
  width: 5ch;
  padding: 0 4px;
}
.flatpickr-current-month .numInputWrapper { min-width: 5.5ch; width: auto; }
.flatpickr-prev-month, .flatpickr-next-month {
  color: var(--green-deep) !important;
  fill: var(--green-deep);
}
.flatpickr-prev-month:hover svg, .flatpickr-next-month:hover svg {
  fill: var(--gold);
}

.flatpickr-weekdays { background: transparent; }
.flatpickr-weekday {
  color: var(--bark) !important;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flatpickr-day {
  font-family: var(--sans);
  color: var(--ink);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.flatpickr-day:hover {
  background: var(--cream-warm);
  border-color: var(--cream-warm);
}
.flatpickr-day.today {
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 500;
}
.flatpickr-day.today:hover { background: var(--gold); color: var(--paper); border-color: var(--gold); }
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--paper);
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: rgba(26,36,22,0.25);
  border-color: transparent;
  cursor: not-allowed;
}
/* Default-disabled (vor today, ausserhalb min/max): wirklich transparent.
   is-blocked und is-half-* haben EIGENEN background, der bleibt. */
.flatpickr-day.flatpickr-disabled:not(.is-blocked):not(.is-half-morning):not(.is-half-afternoon),
.flatpickr-day.flatpickr-disabled:not(.is-blocked):not(.is-half-morning):not(.is-half-afternoon):hover {
  background: transparent;
}

/* Belegte Tage: kräftiger als normales disabled, mit diagonalem Streifen.
   Alpha auf 0.18 erhoeht damit auch auf iOS-Display und im Sonnenlicht sichtbar. */
.flatpickr-day.is-blocked,
.flatpickr-day.is-blocked.flatpickr-disabled {
  color: rgba(168, 50, 50, 0.85);
  background-color: rgba(168, 50, 50, 0.06);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(168, 50, 50, 0.18),
    rgba(168, 50, 50, 0.18) 4px,
    transparent 4px,
    transparent 8px
  );
  cursor: not-allowed;
  position: relative;
}

/* Halb-belegte Tage: background-image direkt auf den Tag (kein Pseudo-Element).
   background-size 50% 100% rendert nur eine Haelfte gestreift, robust auf iOS Safari.
   - is-half-morning: linke Hälfte gestreift = Vormittag belegt
   - is-half-afternoon: rechte Hälfte gestreift = Nachmittag belegt */
.flatpickr-day.is-half-morning,
.flatpickr-day.is-half-afternoon {
  color: var(--ink);
  background-color: rgba(168, 50, 50, 0.06);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(168, 50, 50, 0.20),
    rgba(168, 50, 50, 0.20) 4px,
    rgba(168, 50, 50, 0.04) 4px,
    rgba(168, 50, 50, 0.04) 8px
  );
  background-repeat: no-repeat;
  background-size: 50% 100%;
}
.flatpickr-day.is-half-morning {
  background-position: left top;
}
.flatpickr-day.is-half-afternoon {
  background-position: right top;
}
.flatpickr-day.is-half-morning.flatpickr-disabled,
.flatpickr-day.is-half-afternoon.flatpickr-disabled {
  cursor: not-allowed;
  color: var(--ink);
}
.flatpickr-day.is-half-morning.selected,
.flatpickr-day.is-half-afternoon.selected {
  background: var(--green-deep);
  color: var(--paper);
}

/* Anreise-Tag im Abreise-Picker als Orientierungs-Marker:
   dezenter gold-Kreis um die Zahl, klar als "deine Anreise" erkennbar. */
.flatpickr-day.is-anreise-marker {
  color: var(--green-deep) !important;
  font-weight: 600;
  background: rgba(199, 157, 88, 0.15);
  border: 1.5px solid var(--gold);
}
.anfrage-form {
  display: grid; gap: 18px;
}
.anfrage-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.anfrage-row > .anfrage-field {
  flex: 1 1 200px; /* wrapt automatisch wenn weniger als 200 px pro Feld */
  min-width: 0;
}
.anfrage-field { display: flex; flex-direction: column; gap: 6px; }
.anfrage-field label {
  font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.anfrage-field input,
.anfrage-field textarea,
.anfrage-field select {
  font-family: var(--sans); font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.anfrage-field input:focus,
.anfrage-field textarea:focus,
.anfrage-field select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--cream);
}
.anfrage-field textarea {
  resize: vertical;
  min-height: 90px;
}
.anfrage-stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
}
.anfrage-stepper button {
  width: 38px; height: 44px;
  background: transparent;
  font-size: 1.2rem;
  color: var(--green-deep);
  cursor: pointer;
}
.anfrage-stepper button:hover { background: rgba(15,59,21,0.06); }
.anfrage-stepper input {
  border: 0; text-align: center;
  width: 48px; padding: 12px 0;
  font-size: 1rem; background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
}
input[type=number].anfrage-num,
.anfrage-stepper input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}
input[type=number].anfrage-num::-webkit-outer-spin-button,
input[type=number].anfrage-num::-webkit-inner-spin-button,
.anfrage-stepper input[type=number]::-webkit-outer-spin-button,
.anfrage-stepper input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0;
  display: none;
}
.anfrage-stepper input:focus { outline: none; }

.anfrage-privacy {
  font-size: 0.82rem; color: rgba(26,36,22,0.65);
  margin-top: 4px;
}
.anfrage-privacy a { color: var(--gold); text-decoration: underline; }

/* Honeypot fuer Bots, optisch versteckt aber nicht via display:none
   damit Bots, die display:none-Felder erkennen, trotzdem ausfuellen. */
.anfrage-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.anfrage-success {
  background: rgba(15, 59, 21, 0.08);
  border: 1px solid rgba(15, 59, 21, 0.2);
  color: var(--green-deep);
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  margin-top: 8px;
}
.anfrage-success strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.anfrage-success p { margin: 0; }
.anfrage-actions {
  display: flex; justify-content: flex-end; gap: 12px;
  margin-top: 6px;
}
.anfrage-actions .btn-cancel {
  padding: 12px 22px; background: transparent;
  color: var(--ink); border-radius: 99px;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
}
.anfrage-actions .btn-submit {
  padding: 14px 28px; background: var(--green-deep);
  color: var(--paper); border-radius: 99px;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500; cursor: pointer;
  border: 0; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background 0.2s, transform 0.2s;
}
.anfrage-actions .btn-submit.is-disabled {
  background: rgba(15,59,21,0.35); cursor: not-allowed;
  opacity: 0.85;
}
.anfrage-actions .btn-submit:hover { background: #163e1c; transform: translateY(-1px); }
.anfrage-error {
  color: #b8362a; font-size: 0.88rem;
  background: rgba(184,54,42,0.08);
  padding: 10px 14px; border-radius: 10px;
  display: none;
}
.anfrage-error.is-visible { display: block; }
/* Input/Textarea/Select generell shrink-bar machen damit das Grid nicht überläuft. */
.anfrage-field { min-width: 0; }
.anfrage-field input,
.anfrage-field textarea,
.anfrage-field select { min-width: 0; max-width: 100%; box-sizing: border-box; }

@media (max-width: 760px) {
  .anfrage-dialog { padding: 10px; }
  .anfrage-dialog .anfrage-inner {
    padding: 26px 18px;
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;  /* Picker-Calendar darf nicht horizontal sprengen */
  }
  .anfrage-form { width: 100%; max-width: 100%; box-sizing: border-box; }
  /* Date-Inputs untereinander.
     WICHTIG: flex-wrap muss nowrap sein, sonst wraperen Children entlang
     der Main-Axis (= column = vertikal) in eine ZWEITE Spalte rechts,
     wenn die Container-Hoehe nicht reicht. Das ist DER iOS/Mobile-Bug. */
  .anfrage-row {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 18px;
    width: 100%; max-width: 100%;
  }
  .anfrage-row > .anfrage-field {
    flex: 1 1 100% !important;
    width: 100%; max-width: 100%; min-width: 0;
  }
  .anfrage-field input,
  .anfrage-field textarea,
  .anfrage-field select {
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    padding: 12px 12px;
  }
  /* Flatpickr-Calendar (static:true) hat fix 307.875px Default-Breite, sprengt
     auf schmalen iPhones das Layout. Auf 100% schrumpfen. */
  .anfrage-field.is-date .flatpickr-calendar {
    width: 100% !important;
    max-width: calc(100vw - 60px) !important;
    min-width: 0 !important;
    left: 0 !important;
  }
  .anfrage-actions { flex-direction: column-reverse; }
  .anfrage-actions .btn-cancel,
  .anfrage-actions .btn-submit { width: 100%; justify-content: center; }
}



::selection { background: var(--green-deep); color: var(--paper); }
