@import url("fonts.css");

/* ============================================================
   Am Stadtpark Braunsbedra — Betreutes Wohnen
   Design system: "Accessible & Ethical" · warm sage + cream
   Fonts: Fraunces (display) / Inter (text) — self-hosted
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand greens */
  --forest: #2c5439;
  --green: #3c6e4a;
  --green-700: #345f43;
  --sage: #7ca86e;
  --sage-200: #cfe0c6;
  --sage-100: #e7efe2;
  --sage-50: #f1f6ee;

  /* Warm neutrals */
  --cream: #fbf9f4;
  --sand: #f4efe4;
  --sand-deep: #ece4d4;
  --surface: #ffffff;
  --line: #e6dfce;
  --line-soft: #efe9db;

  /* Accent */
  --gold: #b07a2b;
  --gold-ink: #8a5e1e;
  --gold-soft: #ecdcba;

  /* Text */
  --ink: #23302a;
  --ink-soft: #4f5e54;
  --ink-mute: #6c7a70;
  --on-dark: #f3f1e8;
  --on-dark-soft: #cdd6c8;

  /* Status */
  --ring: #3c6e4a;

  /* Shape & depth */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --shadow-sm: 0 1px 2px rgba(31, 51, 38, .06), 0 2px 8px rgba(31, 51, 38, .05);
  --shadow: 0 8px 24px -8px rgba(31, 51, 38, .18), 0 2px 6px rgba(31, 51, 38, .06);
  --shadow-lg: 0 28px 60px -22px rgba(28, 60, 40, .35), 0 8px 22px -12px rgba(28, 60, 40, .2);
  --shadow-gold: 0 14px 30px -12px rgba(176, 122, 43, .45);

  /* Layout */
  --container: 1180px;
  --container-narrow: 820px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --header-h: 80px;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-text);
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.1875rem); /* 17 → 19 */
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img { font-style: italic; color: var(--ink-mute); } /* alt-text fallback styling */
a { color: var(--green); text-decoration-color: color-mix(in srgb, var(--green) 40%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--forest); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sage-200); color: var(--forest); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--forest); letter-spacing: -0.01em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.3rem, 1.6rem + 3.4vw, 4.1rem); font-weight: 600; line-height: 1.04; }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.95rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); }
h4 { font-size: 1.18rem; }
p { text-wrap: pretty; }
strong { font-weight: 600; color: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-text);
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.eyebrow.is-light { color: var(--gold-soft); }
.eyebrow.is-light::before { background: var(--gold-soft); }

.lead { font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem); line-height: 1.6; color: var(--ink-soft); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.6rem, 2.4rem + 5vw, 7rem); }
/* Sprungziele nicht unter dem sticky Header verstecken */
main section[id] { scroll-margin-top: 90px; }
.section--tight { padding-block: clamp(2.6rem, 2rem + 3vw, 4.5rem); }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }
.section--mint { background: linear-gradient(180deg, var(--sage-50), var(--cream)); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.2rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head p { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--green); --_fg: #fff; --_bd: var(--green);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.5rem;
  font-weight: 600; font-size: 1rem; line-height: 1;
  border: 1.5px solid var(--_bd); border-radius: 999px;
  background: var(--_bg); color: var(--_fg);
  text-decoration: none; white-space: nowrap;
  transition: transform .18s ease, box-shadow .22s ease, background-color .22s ease, color .22s ease, border-color .22s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; }
.btn--primary { --_bg: var(--green); --_bd: var(--green); color: #fff; box-shadow: 0 12px 24px -12px rgba(60,110,74,.7); }
.btn--primary:hover { --_bg: var(--forest); --_bd: var(--forest); color:#fff; }
.btn--gold { --_bg: var(--gold); --_bd: var(--gold); color: #fff; box-shadow: var(--shadow-gold); }
.btn--gold:hover { --_bg: var(--gold-ink); --_bd: var(--gold-ink); color:#fff; }
.btn--ghost { --_bg: transparent; --_fg: var(--forest); --_bd: var(--sage-200); }
.btn--ghost:hover { --_bg: var(--surface); --_bd: var(--sage); color: var(--forest); }
.btn--light { --_bg: #fff; --_fg: var(--forest); --_bd: #fff; }
.btn--light:hover { --_bg: var(--cream); --_bd: var(--cream); color: var(--forest); }
.btn--outline-light { --_bg: transparent; --_fg: #fff; --_bd: rgba(255,255,255,.5); }
.btn--outline-light:hover { --_bg: rgba(255,255,255,.12); --_bd: #fff; color:#fff; }
.btn--lg { min-height: 58px; padding: 1rem 1.85rem; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(28,60,40,.5); background: color-mix(in srgb, var(--cream) 94%, transparent); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--forest); }
.brand__mark { flex: none; width: 42px; height: 42px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; color: var(--forest); letter-spacing: -.01em; white-space: nowrap; }
.brand__sub { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin-top: 3px; }

.nav__menu { display: flex; align-items: center; gap: .1rem; list-style: none; padding: 0; }
.nav__menu a { position: relative; display: inline-block; padding: .5rem .6rem; font-weight: 500; font-size: .94rem; color: var(--ink-soft); text-decoration: none; white-space: nowrap; border-radius: 8px; transition: color .2s ease, background-color .2s ease; }
.nav__menu a::after { content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .3rem; height: 2px; background: var(--gold); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav__menu a:hover { color: var(--forest); }
.nav__menu a:hover::after, .nav__menu a.is-active::after { transform: scaleX(1); }
.nav__menu a.is-active { color: var(--forest); }

.nav__actions { display: flex; align-items: center; gap: .8rem; }
.nav__phone { display: none; align-items: center; gap: .5rem; font-weight: 600; color: var(--forest); text-decoration: none; }
@media (min-width: 1240px) { .nav__phone { display: inline-flex; } }
.nav__phone svg { width: 18px; height: 18px; color: var(--green); }
.nav__phone span small { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }

.nav__toggle { display: none; }

/* mobile nav */
@media (max-width: 1024px) {
  .nav__menu, .nav__actions .btn, .nav__phone span { display: none; }
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; border: 1.5px solid var(--line); border-radius: 12px;
    background: var(--surface); color: var(--forest);
  }
  .nav__toggle svg { width: 26px; height: 26px; }
  .nav__toggle .icon-close { display: none; }
  body.nav-open .nav__toggle .icon-open { display: none; }
  body.nav-open .nav__toggle .icon-close { display: block; }

  .mobile-menu {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 90;
    background: var(--cream);
    padding: 1.5rem var(--gutter) 2.5rem;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    overflow-y: auto;
    display: flex; flex-direction: column; gap: .25rem;
  }
  body.nav-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
  .mobile-menu a.m-link { display: flex; align-items: center; justify-content: space-between; padding: 1rem .25rem; font-size: 1.2rem; font-weight: 500; color: var(--forest); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
  .mobile-menu a.m-link svg { width: 20px; height: 20px; color: var(--sage); }
  .mobile-menu .mobile-cta { margin-top: 1.5rem; display: grid; gap: .75rem; }
}
@media (min-width: 1025px) { .mobile-menu { display: none !important; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(2.2rem, 1rem + 4vw, 4.5rem); padding-bottom: clamp(2.8rem, 1.5rem + 4vw, 5rem); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 88% 0%, var(--sage-100), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, color-mix(in srgb, var(--gold-soft) 40%, transparent), transparent 65%),
    var(--cream);
}
.hero__leaf { position: absolute; z-index: -1; color: var(--sage); opacity: .12; }
.hero__leaf--1 { top: -40px; right: -30px; width: 320px; transform: rotate(12deg); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.hero__content { max-width: 600px; }
.hero h1 { margin-top: 1.1rem; }
.hero h1 .accent { color: var(--green); font-style: italic; }
.hero__sub { margin-top: 1.3rem; }
.hero__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__chips { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); list-style: none; }
.hero__chips li { display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.hero__chips svg { width: 20px; height: 20px; color: var(--green); flex: none; }

/* hero media — framed (crisp on low-res photos) */
.hero__media { position: relative; }
.frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo { aspect-ratio: 4 / 3.05; }
.hero__photo img { transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.hero__media:hover .hero__photo img { transform: scale(1.04); }
.hero__badge {
  position: absolute; left: -18px; bottom: 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: .9rem 1.1rem; display: flex; align-items: center; gap: .8rem;
  max-width: 240px;
}
.hero__badge .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sage-100); color: var(--forest); }
.hero__badge .ico svg { width: 24px; height: 24px; }
.hero__badge b { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--forest); line-height: 1.1; }
.hero__badge small { color: var(--ink-mute); font-size: .82rem; }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 540px; margin-inline: auto; width: 100%; }
  .hero__badge { left: 12px; }
}

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.stats__item { background: var(--surface); padding: clamp(1.2rem, 1rem + 1vw, 2rem) 1.1rem; text-align: center; }
.stats__num { font-family: var(--font-display); font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); color: var(--green); line-height: 1; }
.stats__num span { font-size: .6em; }
.stats__label { margin-top: .45rem; font-size: .92rem; color: var(--ink-soft); font-weight: 500; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__body h2 { margin-bottom: 1.1rem; }
.split__body .lead { margin-bottom: 1.2rem; }
.split__quote { margin: 1.6rem 0 0; padding: 1.2rem 1.5rem; border-left: 3px solid var(--sage); background: var(--sage-50); border-radius: 0 var(--r) var(--r) 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--forest); font-style: italic; }
.media-stack { position: relative; }
.media-stack .frame { aspect-ratio: 4/3; }
.media-stack__accent { position: absolute; z-index: -1; inset: auto -16px -16px auto; width: 62%; height: 70%; background: var(--sage-100); border-radius: var(--r-lg); }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split--reverse .split__media { order: -1; }
}

.tick-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .85rem; }
.tick-list li { position: relative; padding-left: 2.1rem; color: var(--ink-soft); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .15rem; width: 24px; height: 24px; border-radius: 50%;
  background: var(--sage-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232c5439' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.tick-list li strong { color: var(--ink); }

/* ---------- Wohnformen cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, .8rem + 1vw, 1.8rem); }
@media (max-width: 880px) { .cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

.wohn-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.8rem; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.wohn-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--sage-200); }
.wohn-card.is-featured { border-color: var(--sage); box-shadow: var(--shadow); }
.wohn-card__tag { position: absolute; top: -13px; left: 1.8rem; background: var(--gold); color:#fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; box-shadow: var(--shadow-gold); }
.wohn-card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--sage-100); color: var(--forest); margin-bottom: 1.1rem; }
.wohn-card__icon svg { width: 28px; height: 28px; }
.wohn-card h3 { color: var(--forest); }
.wohn-card__size { display: flex; align-items: baseline; gap: .4rem; margin: .4rem 0 1rem; }
.wohn-card__size b { font-family: var(--font-display); font-size: 2.2rem; color: var(--green); line-height: 1; }
.wohn-card__size span { color: var(--ink-mute); font-weight: 500; }
.wohn-card ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.wohn-card ul li { position: relative; padding-left: 1.7rem; font-size: .97rem; color: var(--ink-soft); }
.wohn-card ul li::before { content:""; position:absolute; left:0; top:.45rem; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.wohn-card .btn { margin-top: auto; }

/* ---------- Leistungen grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, .7rem + 1vw, 1.6rem); }
@media (max-width: 880px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.6rem; transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature__icon { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(140deg, var(--sage-100), var(--sage-50)); color: var(--forest); margin-bottom: 1.1rem; }
.feature__icon svg { width: 26px; height: 26px; stroke-width: 1.7; }
.feature h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.feature p { font-size: .96rem; color: var(--ink-soft); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--sand); cursor: zoom-in; box-shadow: var(--shadow-sm); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(28,60,40,.32)); opacity: 0; transition: opacity .3s ease; }
.gallery__item:hover::after { opacity: 1; }
.gallery__item .zoom { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--forest); display: grid; place-items: center; opacity: 0; transform: translateY(6px); transition: .3s ease; }
.gallery__item:hover .zoom { opacity: 1; transform: none; }
.gallery__item .zoom svg { width: 18px; height: 18px; }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }
@media (max-width: 880px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } .g-wide { grid-column: span 2; } .g-tall { grid-row: span 1; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 5vw; background: rgba(20,32,24,.86); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.lightbox__cap { color: var(--on-dark); text-align: center; margin-top: 1rem; font-size: .95rem; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color:#fff; border-radius: 50%; display: grid; place-items: center; transition: background .2s ease; }
.lightbox__close { top: 4vw; right: 4vw; width: 52px; height: 52px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; }
.lightbox__nav.prev { left: 3vw; } .lightbox__nav.next { right: 3vw; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox svg { width: 26px; height: 26px; }
@media (max-width: 620px){ .lightbox__nav { width: 46px; height: 46px; } .lightbox__close{ width:46px;height:46px; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem,.7rem + 1vw,1.8rem); counter-reset: step; }
@media (max-width: 880px){ .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.step__num { counter-increment: step; font-family: var(--font-display); font-size: 1.1rem; width: 46px; height: 46px; border-radius: 50%; background: var(--forest); color:#fff; display: grid; place-items: center; margin-bottom: 1rem; }
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { font-size: .95rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { max-width: var(--container-narrow); margin-inline: auto; display: grid; gap: .9rem; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .25s ease, border-color .25s ease; }
.faq__item[open] { box-shadow: var(--shadow); border-color: var(--sage-200); }
.faq__q { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.5rem; font-family: var(--font-display); font-size: 1.15rem; color: var(--forest); font-weight: 600; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q .chev { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sage-100); color: var(--forest); display: grid; place-items: center; transition: transform .3s ease, background .2s ease; }
.faq__q .chev svg { width: 18px; height: 18px; }
.faq__item[open] .faq__q .chev { transform: rotate(180deg); background: var(--sage); color: #fff; }
.faq__a { padding: 0 1.5rem 1.4rem; color: var(--ink-soft); }
.faq__a p + p { margin-top: .8rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--forest), var(--green-700) 70%, var(--green)); color: var(--on-dark); border-radius: var(--r-xl); padding: clamp(2.4rem, 1.6rem + 3vw, 4.2rem); box-shadow: var(--shadow-lg); }
.cta-band::after { content:""; position: absolute; inset: -2px; background: radial-gradient(40% 80% at 100% 0%, rgba(124,168,110,.45), transparent 60%); pointer-events: none; }
.cta-band__grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-dark-soft); margin-top: .9rem; }
.cta-band__actions { display: flex; flex-direction: column; gap: .8rem; }
@media (max-width: 760px){ .cta-band__grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: start; }
@media (max-width: 900px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 1.1rem; }
.contact-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.contact-row .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--sage-100); color: var(--forest); display: grid; place-items: center; }
.contact-row .ico svg { width: 23px; height: 23px; }
.contact-row b { display:block; font-family: var(--font-display); color: var(--forest); font-size: 1.05rem; }
.contact-row a { color: var(--ink-soft); text-decoration: none; }
.contact-row a:hover { color: var(--green); }
.contact-row span { color: var(--ink-soft); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px){ .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.field .req { color: var(--gold-ink); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: .85rem 1rem; min-height: 52px;
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 16%, transparent); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #c0492f; }
.form__consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.form__consent input { width: 22px; height: 22px; flex: none; accent-color: var(--green); margin-top: 2px; }
.form__legend { font-size: .85rem; color: var(--ink-mute); margin-bottom: 1.1rem; }
.form__legend .req { color: var(--gold-ink); }
.form__status:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.form__note { margin-top: 1rem; font-size: .85rem; color: var(--ink-mute); }
.form__status { display:none; margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 12px; font-size: .95rem; }
.form__status.ok { display:block; background: var(--sage-100); color: var(--forest); border: 1px solid var(--sage-200); }
.form__status.err { display:block; background: #fbeae5; color: #8a2c12; border: 1px solid #f0c2b3; }
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled, .btn.is-loading { opacity: .65; cursor: not-allowed; transform: none !important; box-shadow: var(--shadow-sm); }
.btn .btn-spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: btn-spin .7s linear infinite; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn .btn-spinner { animation-duration: 1.4s; } }

.map-frame { margin-top: 1.4rem; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-frame iframe { display:block; width: 100%; height: 280px; border: 0; filter: saturate(.92); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: var(--on-dark-soft); padding-top: clamp(3.5rem, 2.5rem + 4vw, 5.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 860px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand__name, .site-footer .brand__sub { color: #fff; }
.site-footer .brand__sub { color: var(--gold-soft); }
.footer-about p { margin-top: 1rem; color: var(--on-dark-soft); font-size: .95rem; max-width: 34ch; }
.footer-col h4 { color: #fff; font-family: var(--font-text); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-bottom: 1.6rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .7rem; }
.footer-col a { color: var(--on-dark-soft); text-decoration: none; font-size: .96rem; transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-contact a { display: flex; gap: .6rem; align-items: center; color: var(--on-dark-soft); text-decoration: none; margin-bottom: .8rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--sage); flex: none; }
.footer-hours { display: flex; gap: .6rem; align-items: flex-start; color: var(--on-dark-soft); margin-bottom: .8rem; font-size: .96rem; line-height: 1.45; }
.footer-hours svg { width: 18px; height: 18px; color: var(--sage); flex: none; margin-top: 3px; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; color: #fff; transition: background .2s ease, border-color .2s; }
.footer-social a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.6rem; font-size: .88rem; color: var(--on-dark-soft); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-bottom nav { align-items: center; }
.footer-bottom a, .footer-bottom .js-cookie-settings { color: var(--on-dark-soft); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding-block: .35rem; }
.footer-bottom a:hover, .footer-bottom .js-cookie-settings:hover { color: #fff; }
.footer-bottom .js-cookie-settings { background: none; border: 0; padding-inline: 0; font: inherit; cursor: pointer; }
.footer-credit-row { text-align: center; padding-bottom: 1.6rem; font-size: .85rem; color: var(--on-dark-soft); }
.footer-credit-row a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 1px; transition: border-color .2s ease; }
.footer-credit-row a:hover { border-color: #fff; }

/* ---------- Cookie / Consent ---------- */
.cc-noscroll { overflow: hidden; }
.cc-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; padding: 1rem clamp(.8rem, 4vw, 2rem); transform: translateY(130%); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.cc-banner.is-visible { transform: none; }
@media (prefers-reduced-motion: reduce) { .cc-banner { transition: none; } }
.cc-banner__inner { max-width: 1120px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: clamp(1.1rem, 1rem + 1vw, 1.6rem) clamp(1.2rem, 1rem + 1.5vw, 2rem); display: flex; gap: clamp(1rem, .5rem + 2vw, 2rem); align-items: center; flex-wrap: wrap; }
.cc-banner__body { flex: 1 1 340px; }
.cc-banner__title { font-family: var(--font-display); font-size: 1.2rem; color: var(--forest); margin-bottom: .35rem; line-height: 1.15; }
.cc-banner__inner p { font-size: .92rem; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.cc-banner__inner a { color: var(--green); }
.cc-banner__actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; flex: 0 0 auto; }
.cc-banner__actions .cc-btn { flex: 0 0 auto; min-width: 11rem; }

.cc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.3rem; border-radius: 999px; font: inherit; font-weight: 600; font-size: .95rem; line-height: 1; border: 1.5px solid transparent; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease; }
.cc-btn:hover { transform: translateY(-1px); }
.cc-btn--solid { background: var(--green); color: #fff; border-color: var(--green); }
.cc-btn--solid:hover { background: var(--forest); border-color: var(--forest); }
.cc-btn--ghost { background: transparent; color: var(--forest); border-color: var(--sage-200); }
.cc-btn--ghost:hover { background: var(--sage-50); border-color: var(--sage); }
.cc-btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
@media (max-width: 720px) { .cc-banner__actions { width: 100%; } .cc-banner__actions .cc-btn { flex: 1 1 100%; min-width: 0; } }

.cc-modal { position: fixed; inset: 0; z-index: 1100; display: none; }
.cc-modal.is-open { display: block; }
.cc-modal__backdrop { position: absolute; inset: 0; background: rgba(20,32,24,.55); backdrop-filter: blur(2px); }
.cc-modal__panel { position: relative; z-index: 1; max-width: 560px; width: calc(100% - 2rem); max-height: calc(100dvh - 2rem); overflow-y: auto; margin: 1rem auto; top: 50%; transform: translateY(-50%); background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: clamp(1.4rem, 1rem + 2vw, 2.2rem); }
.cc-modal__x { position: absolute; top: .8rem; right: .8rem; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 1.5rem; line-height: 1; color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; }
.cc-modal__x:hover { background: var(--sand); color: var(--forest); }
.cc-modal__title { font-family: var(--font-display); color: var(--forest); font-size: clamp(1.4rem, 1.2rem + 1vw, 1.7rem); margin-bottom: .5rem; padding-right: 2.5rem; }
.cc-modal__lead { color: var(--ink-soft); font-size: .93rem; margin-bottom: 1rem; }
.cc-cat { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.cc-cat__head { display: flex; align-items: center; gap: .9rem; }
.cc-cat__name { font-weight: 600; color: var(--ink); }
.cc-cat__name em { font-style: normal; font-weight: 500; color: var(--ink-mute); font-size: .85rem; }
.cc-cat__desc { margin: .55rem 0 0 3.5rem; font-size: .89rem; line-height: 1.55; color: var(--ink-soft); }
.cc-modal__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.6rem; }
@media (max-width: 520px) { .cc-modal__actions { grid-template-columns: 1fr; } }

.cc-switch { position: relative; display: inline-flex; align-items: center; min-height: 44px; flex: 0 0 auto; cursor: pointer; }
.cc-switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-switch__track { width: 48px; height: 28px; border-radius: 999px; background: var(--line); border: 1px solid var(--ink-mute); transition: background .2s ease; display: inline-block; position: relative; flex: none; }
.cc-switch__thumb { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.28); transition: transform .2s ease; }
.cc-switch input:checked + .cc-switch__track { background: var(--green); border-color: var(--green); }
.cc-switch input:checked + .cc-switch__track .cc-switch__thumb { transform: translateX(20px); }
.cc-switch input:disabled + .cc-switch__track { cursor: not-allowed; }
.cc-switch input:focus-visible + .cc-switch__track { outline: 3px solid var(--ring); outline-offset: 2px; }

/* ---------- Legal pages ---------- */
.page-hero { background: linear-gradient(180deg, var(--sage-50), var(--cream)); padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: .9rem; color: var(--ink-mute); margin-bottom: 1rem; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }
.legal { max-width: 820px; margin-inline: auto; }
.legal h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin: 2.5rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1rem; }
.legal h3 { font-size: 1.2rem; margin: 1.8rem 0 .6rem; color: var(--green-700); }
.legal p, .legal li { color: var(--ink-soft); }
.legal p { margin-bottom: 1rem; }
.legal ul { margin: 0 0 1rem 1.2rem; display: grid; gap: .4rem; }
.legal a { color: var(--green); word-break: break-word; }
.legal .addr-block { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--sage); border-radius: var(--r); padding: 1.2rem 1.4rem; margin-bottom: 1.4rem; }
.legal .addr-block p { margin: 0; line-height: 1.6; }
.legal .muted-box { background: var(--sand); border-radius: var(--r); padding: 1rem 1.3rem; font-size: .92rem; }
.legal .upper { text-transform: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"]{ transition-delay: .08s; }
.reveal[data-delay="2"]{ transition-delay: .16s; }
.reveal[data-delay="3"]{ transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__photo img, .gallery__item img { transition: none !important; }
  .btn:hover, .wohn-card:hover, .feature:hover { transform: none !important; }
}

/* skip link */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 300; background: var(--forest); color:#fff; padding: .8rem 1.2rem; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }

/* utilities */
.text-center { text-align: center; }
.mt-cta { margin-top: 2.2rem; }
.divider-leaf { display: grid; place-items: center; gap: 1rem; color: var(--sage); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
