/* ============================================================
   AHRE — Wohnen am Rhein · Website styles
   Built on colors_and_type.css tokens. Plain semantic CSS.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg-1);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

/* ---------- Layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 40px; width: 100%; }
.wrap-wide { max-width: 1360px; margin: 0 auto; padding-inline: 40px; width: 100%; }
.section { padding-block: var(--space-9); }
.section-sm { padding-block: var(--space-8); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-xs); letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--fg-2);
  display: inline-block;
}
.eyebrow--mute { color: var(--fg-3); }
.eyebrow--on-ink { color: var(--fg-on-ink-2); }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.mark {
  background: var(--yellow); color: var(--ink);
  padding: 0.02em 0.26em 0.12em; box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.mark--mint { background: var(--mint); }
.mark--lilac { background: var(--lilac); }

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: var(--tracking-tight); }
.display {
  font-weight: 800; font-size: clamp(48px, 7vw, var(--text-4xl));
  line-height: 0.98; letter-spacing: -0.03em;
}
.h-xl { font-weight: 800; font-size: clamp(36px, 5vw, var(--text-2xl)); line-height: 1.04; letter-spacing: -0.025em; }
.h-lg { font-weight: 700; font-size: clamp(28px, 3.4vw, var(--text-xl)); line-height: 1.1; letter-spacing: -0.02em; }
.h-md { font-weight: 700; font-size: var(--text-lg); line-height: 1.14; letter-spacing: -0.015em; }
.lead { font-size: clamp(18px, 2vw, var(--text-md)); line-height: 1.5; color: var(--fg-2); }
.body { font-size: var(--text-base); line-height: var(--leading-body); color: var(--fg-1); }
.muted { color: var(--fg-2); }
.mono { font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: -0.01em; border: 0; cursor: pointer;
  padding: 14px 24px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-base), opacity var(--dur-base), box-shadow var(--dur-base);
  line-height: 1; white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: #241f18; }
.btn--accent { background: var(--yellow); color: var(--ink); }
.btn--accent:hover { box-shadow: 0 10px 28px -12px rgba(232,255,61,0.9); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ghost-ink { background: transparent; color: var(--paper); border: 1.5px solid var(--hairline-on-ink); }
.btn--ghost-ink:hover { background: var(--paper); color: var(--ink); }
.btn--lg { padding: 17px 30px; font-size: 16px; }
.btn .ic { width: 18px; height: 18px; }

.textlink {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--ink); text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
}
.textlink .ic { width: 17px; height: 17px; transition: transform var(--dur-base) var(--ease-out); }
.textlink:hover .ic { transform: translate(2px, -2px); }

/* ---------- Lucide icon sizing ---------- */
.ic { display: inline-flex; line-height: 0; }
.ic svg { width: 1em; height: 1em; }
[data-lucide] { width: 20px; height: 20px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur-slow), border-color var(--dur-slow), backdrop-filter var(--dur-slow);
}
.site-header.is-scrolled {
  background: rgba(244,239,230,0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 18px; gap: 24px;
}
.nav-main { display: flex; align-items: center; gap: 34px; }
.nav-main a {
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  color: var(--ink); text-decoration: none; opacity: 0.72;
  transition: opacity var(--dur-base); position: relative; padding-block: 4px;
}
.nav-main a:hover { opacity: 1; }
.nav-main a[aria-current="page"] { opacity: 1; }
.nav-main a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  background: var(--yellow);
}
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-tel {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  opacity: 0.8;
}
.nav-tel:hover { opacity: 1; }
.nav-tel .ic { width: 16px; height: 16px; }
.burger {
  display: none; background: transparent; border: 0; cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink);
  border-radius: var(--radius-pill);
}
.burger .ic { width: 26px; height: 26px; }

/* ---------- Logo lockup ---------- */
.logo { display: inline-flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; }
.logo-stack {
  font-family: var(--font-display); font-weight: 800; font-size: 26px;
  line-height: 0.82; letter-spacing: -0.025em; text-align: right;
}
.logo-stack .re {
  background: var(--yellow); color: var(--ink);
  padding: 1px 3px 2px; display: inline-block; line-height: 1;
}
.logo-rule { width: 1.5px; align-self: stretch; background: currentColor; opacity: 0.22; }
.logo-slogan { font-family: var(--font-serif); font-style: italic; font-size: 11px; line-height: 1.04; }
.logo--lg .logo-stack { font-size: 38px; }
.logo--lg .logo-slogan { font-size: 15px; }

/* ---------- Mobile drawer ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 60; display: none;
}
.drawer.open { display: block; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(21,18,14,0.42); backdrop-filter: blur(3px); }
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(380px, 86vw);
  background: var(--paper); padding: 24px; display: flex; flex-direction: column;
  box-shadow: -30px 0 80px -30px rgba(21,18,14,0.5);
  animation: drawerIn var(--dur-base) var(--ease-out);
}
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0.6; } to { transform: translateX(0); opacity: 1; } }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a {
  font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--hairline-soft);
}
.drawer-nav a[aria-current="page"] { color: var(--ink); }
.drawer-nav a[aria-current="page"] span { background: var(--yellow); padding: 0 6px; }
.drawer-foot { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: 32px; padding-bottom: var(--space-9); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { margin-top: 20px; }
.hero .lead { margin-top: 24px; max-width: 46ch; }
.hero-actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-media { position: relative; }

/* ---------- Photo placeholder field ---------- */
.photo {
  position: relative; width: 100%;
  background: linear-gradient(140deg, var(--beige) 0%, var(--beige-deep) 135%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.photo--r-lg { border-radius: var(--radius-lg); }
.photo--r-md { border-radius: var(--radius-md); }
.photo-note {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(21,18,14,0.34); text-align: center; padding: 16px;
}
.photo-note .ic { width: 26px; height: 26px; }
.photo-note span {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 600;
}
.photo-tag {
  position: absolute; left: 18px; bottom: 18px;
  background: var(--yellow); color: var(--ink);
  padding: 8px 14px; font-family: var(--font-display); font-weight: 700; font-size: 13px;
}

/* ---------- trust strip ---------- */
.trust { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.trust-row {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding-block: 28px; flex-wrap: wrap;
}
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-num { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -0.02em; line-height: 1; }
.trust-lbl { font-family: var(--font-display); font-size: 13px; color: var(--fg-2); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-head .eyebrow { margin-bottom: 12px; }

/* ============================================================
   LISTING CARDS
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.listing {
  background: var(--surface-raised); border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--hairline-soft); text-decoration: none; color: inherit;
  box-shadow: 0 8px 24px -16px rgba(21,18,14,0.16);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
  display: flex; flex-direction: column;
}
.listing:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.listing-media { position: relative; aspect-ratio: 16 / 11; }

/* larger 2-up feature cards on the homepage */
.listing--feature { cursor: pointer; }
.listing--feature .listing-media { aspect-ratio: 3 / 2; }
.listing-gallery-cue {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(244,239,230,0.92); color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.02em; padding: 7px 13px; border-radius: var(--radius-pill);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 14px -6px rgba(21,18,14,0.3); transition: background var(--dur-base);
}
.listing-gallery-cue .ic { width: 15px; height: 15px; }
.listing--feature:hover .listing-gallery-cue { background: var(--yellow); }

/* ---- Gallery lightbox ---- */
.gallery { position: fixed; inset: 0; z-index: 90; display: none; }
.gallery.open { display: block; }
.gallery-scrim { position: absolute; inset: 0; background: rgba(21,18,14,0.5); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.gallery-panel {
  position: absolute; inset: 0; margin: auto; width: min(1040px, 94vw);
  max-height: 92vh; overflow-y: auto; background: var(--paper);
  border-radius: var(--radius-lg); box-shadow: 0 40px 100px -30px rgba(21,18,14,0.6);
  padding: 28px 32px 32px; animation: galleryIn var(--dur-base) var(--ease-out);
}
@keyframes galleryIn { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.gallery-close {
  position: sticky; top: 0; float: right; margin: -8px -8px 0 0; width: 42px; height: 42px;
  border-radius: var(--radius-pill); border: 1px solid var(--hairline); background: var(--surface-raised);
  color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 3;
}
.gallery-close .ic { width: 20px; height: 20px; }
.gallery-close:hover { background: var(--ink); color: var(--paper); }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.gallery-head .eyebrow { margin-bottom: 8px; }
.gallery-price { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.01em; }
.gallery-carousel { position: relative; }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: center; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: var(--radius-pill); border: 0; cursor: pointer;
  background: rgba(244,239,230,0.92); color: var(--ink);
  display: flex; align-items: center; justify-content: center; z-index: 2;
  box-shadow: var(--shadow-md); transition: background var(--dur-base), opacity var(--dur-base);
}
.gallery-nav:hover { background: var(--yellow); }
.gallery-nav[disabled] { opacity: 0; pointer-events: none; }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.gallery-nav .ic { width: 22px; height: 22px; }
.gallery-counter {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: rgba(21,18,14,0.7); color: var(--paper);
  font-family: var(--font-mono); font-size: 12px; padding: 5px 11px; border-radius: var(--radius-pill);
}
.gallery-dots { display: flex; gap: 7px; justify-content: center; margin-top: 16px; }
.gallery-dots button { width: 8px; height: 8px; border-radius: var(--radius-pill); border: 0; background: var(--hairline); cursor: pointer; padding: 0; transition: background var(--dur-base), width var(--dur-base); }
.gallery-dots button.is-active { background: var(--ink); width: 22px; }
.gallery-foot { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.listing-badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 11px;
  background: var(--ink); color: var(--paper);
}
.listing-badge--new { background: var(--yellow); color: var(--ink); }
.listing-fav {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px;
  border-radius: var(--radius-pill); background: rgba(244,239,230,0.92); color: var(--ink);
  display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer;
  transition: background var(--dur-base), transform var(--dur-fast) var(--ease-out);
}
.listing-fav .ic { width: 17px; height: 17px; }
.listing-fav:hover { background: var(--paper); }
.listing-fav.is-fav { background: var(--yellow); }
.listing-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.listing-area { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--fg-2); }
.listing-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; margin-top: 5px; }
.listing-meta { font-family: var(--font-mono); font-size: 13px; color: var(--fg-2); margin-top: 9px; }
.listing-feats { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--hairline-soft); display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.listing-feats li { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 13.5px; color: var(--fg-1); }
.listing-feats .ic { width: 15px; height: 15px; color: var(--fg-2); flex: none; }
.listing-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 16px; gap: 12px; }
.listing-price { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.listing-price small { font-family: var(--font-display); font-weight: 600; font-size: 12px; color: var(--fg-3); }
.listing-go { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--fg-2); display: inline-flex; align-items: center; gap: 5px; }
.listing-go .ic { width: 15px; height: 15px; }

/* ---------- filter bar ---------- */
.filterbar { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.chip {
  font-family: var(--font-display); font-weight: 600; font-size: 14px; cursor: pointer;
  padding: 9px 17px; border-radius: var(--radius-pill); border: 1px solid var(--hairline);
  background: transparent; color: var(--ink); transition: all var(--dur-base);
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ============================================================
   FEATURE / VALUE blocks
   ============================================================ */
.feature-card {
  background: var(--surface-raised); border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-md); padding: 28px; height: 100%;
  display: flex; flex-direction: column; gap: 12px;
}
.feature-ic {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--paper); border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.feature-ic .ic { width: 22px; height: 22px; }
.feature-card.accent-yellow .feature-ic { background: var(--yellow); border-color: transparent; }
.feature-card.accent-mint .feature-ic { background: var(--mint); border-color: transparent; }
.feature-card.accent-lilac .feature-ic { background: var(--lilac); border-color: transparent; }

/* ---------- step list ---------- */
.steps { display: grid; gap: 2px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--hairline); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--hairline); }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--ink); }
.step-num span { background: var(--yellow); padding: 2px 8px; }
.step h3 { font-size: var(--text-lg); }
.step p { margin-top: 8px; color: var(--fg-2); max-width: 58ch; }

/* ============================================================
   DARK BAND (sell CTA)
   ============================================================ */
.band-dark { background: var(--surface-dark); color: var(--fg-on-ink); }
.band-dark .muted, .band-dark .lead { color: var(--fg-on-ink-2); }
.band-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quote-card {
  background: var(--surface-raised); border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-md); padding: 32px; display: flex; flex-direction: column; gap: 20px; height: 100%;
}
.quote-card.feat { background: var(--yellow); border-color: transparent; }
.quote-mark { font-family: var(--font-serif); font-style: italic; font-size: 64px; line-height: 0.4; color: var(--ink); opacity: 0.5; height: 22px; }
.quote-text { font-family: var(--font-serif); font-style: italic; font-size: clamp(20px, 2.4vw, 27px); line-height: 1.34; color: var(--ink); }
.quote-by { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--lilac); color: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 16px; flex: none; }
.avatar--mint { background: var(--mint); }
.avatar--beige { background: var(--beige-deep); }
.quote-meta { display: flex; flex-direction: column; }
.quote-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.quote-role { font-family: var(--font-display); font-size: 13px; color: var(--fg-2); }
.quote-card.feat .quote-role { color: rgba(21,18,14,0.6); }

/* ---------- stars ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--ink); }
.stars .ic { width: 16px; height: 16px; }
.stars .ic svg { fill: var(--ink); }

/* ---- Testimonials swipe carousel (3-up, swipe for more) ---- */
.tcar { position: relative; }
.tcar-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 6px; margin: -6px;
}
.tcar-track::-webkit-scrollbar { display: none; }
.tcar-track > .quote-card { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }
.tcar-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: var(--radius-pill); border: 0; cursor: pointer;
  background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center; z-index: 2;
  transition: background var(--dur-base), opacity var(--dur-base);
}
.tcar-nav:hover { background: var(--yellow); }
.tcar-nav[disabled] { opacity: 0; pointer-events: none; }
.tcar-prev { left: -12px; }
.tcar-next { right: -12px; }
.tcar-nav .ic { width: 22px; height: 22px; }

/* ---- Benefit check-list (Community) ---- */
.benefit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.benefit-list li { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); }
.benefit-ic { width: 26px; height: 26px; border-radius: var(--radius-pill); background: var(--ink); color: var(--mint); display: flex; align-items: center; justify-content: center; flex: none; }
.benefit-ic .ic { width: 15px; height: 15px; }

/* ============================================================
   FORMS
   ============================================================ */
.form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.label { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 0.02em; color: var(--fg-1); }
.label .req { color: var(--ink); }
.input, .textarea, .select {
  font-family: var(--font-display); font-size: 16px; color: var(--ink);
  background: var(--surface-raised); border: 1px solid var(--hairline);
  border-radius: var(--radius-sm); padding: 14px 16px; width: 100%;
  transition: border-color var(--dur-base), box-shadow var(--dur-base); appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--fg-3); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21,18,14,0.08);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.select-wrap { position: relative; }
.select-wrap .ic { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--fg-2); width: 18px; height: 18px; }
.check { display: flex; gap: 11px; align-items: flex-start; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.check label { font-family: var(--font-display); font-size: 13.5px; color: var(--fg-2); line-height: 1.5; }
.check a { color: var(--ink); text-underline-offset: 2px; }
.form-note { font-family: var(--font-display); font-size: 13px; color: var(--fg-3); }

/* inline newsletter */
.news-form { display: flex; gap: 10px; flex-wrap: wrap; }
.news-form .input { flex: 1; min-width: 220px; background: var(--surface-page); }
.band-dark .news-form .input { background: rgba(244,239,230,0.08); border-color: var(--hairline-on-ink); color: var(--paper); }
.band-dark .news-form .input::placeholder { color: var(--fg-on-ink-2); }

/* ============================================================
   CONTACT / INFO rows
   ============================================================ */
.info-list { display: flex; flex-direction: column; gap: 4px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--hairline-soft); }
#wertermittlung .info-item { align-items: center; }
#wertermittlung .info-k { color: var(--ink); background: var(--yellow); display: inline-block; padding: 1px 6px 2px; }
#formular .info-k { display: block; }
.info-item:first-child { border-top: 1px solid var(--hairline-soft); }
.info-ic { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--surface-raised); border: 1px solid var(--hairline); display: flex; align-items: center; justify-content: center; flex: none; color: var(--ink); }
.info-ic .ic { width: 20px; height: 20px; }
.info-k { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--fg-3); }
.info-v { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-top: 3px; text-decoration: none; color: var(--ink); display: inline-block; }
a.info-v:hover { text-decoration: underline; text-underline-offset: 3px; }

/* agent profile card */
.agent-card { background: var(--surface-raised); border: 1px solid var(--hairline-soft); border-radius: var(--radius-lg); overflow: hidden; }
.agent-photo { aspect-ratio: 4/5; }
.agent-body { padding: 24px; }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero { padding-top: 40px; padding-bottom: 16px; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero .lead { margin-top: 20px; max-width: 60ch; }

/* pill badges */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-family: var(--font-display); font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: var(--radius-pill); background: var(--surface-raised); border: 1px solid var(--hairline); color: var(--fg-1); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--surface-page); border-top: 1px solid var(--hairline); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; }

/* simplified footer: brand + page nav */
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding-top: 64px; flex-wrap: wrap; }
.footer-tagline { flex: 1; min-width: 240px; text-align: center; max-width: 40ch; margin: 0 auto; font-family: var(--font-display); font-size: 14.5px; line-height: 1.55; color: var(--fg-2); }
.footer-nav { display: flex; flex-direction: column; gap: 14px; text-align: right; }
.footer-nav a { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; opacity: 0.85; transition: opacity var(--dur-base); }
.footer-nav a:hover { opacity: 1; }
.footer-brand p { font-family: var(--font-display); font-size: 14.5px; line-height: 1.55; color: var(--fg-2); margin-top: 20px; max-width: 32ch; }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social--lg { margin-top: 0; gap: 14px; align-self: center; }
.footer-social--lg a { width: 54px; height: 54px; }
.footer-social--lg .ic { width: 24px; height: 24px; }
.footer-social a { width: 40px; height: 40px; border-radius: var(--radius-pill); border: 1px solid var(--hairline); display: flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; transition: background var(--dur-base), color var(--dur-base); }
.footer-social a:hover { background: var(--ink); color: var(--paper); }
.footer-social .ic { width: 19px; height: 19px; }
.footer-col h4 { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--fg-3); }
.footer-col ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-family: var(--font-display); font-size: 15px; color: var(--ink); text-decoration: none; opacity: 0.78; transition: opacity var(--dur-base); }
.footer-col a:hover { opacity: 1; }
.footer-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-block: 22px 40px; border-top: 1px solid var(--hairline-soft); flex-wrap: wrap; gap: 14px; }
.footer-bar .mono { color: var(--fg-3); }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { font-family: var(--font-display); font-size: 13px; color: var(--fg-2); text-decoration: none; }
.footer-legal a:hover { color: var(--ink); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie {
  position: fixed; left: 24px; bottom: 24px; z-index: 80; max-width: 420px;
  background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 22px; display: none;
}
.cookie.show { display: block; animation: cookieIn var(--dur-base) var(--ease-out); }
@keyframes cookieIn { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie h4 { font-size: 17px; }
.cookie p { font-family: var(--font-display); font-size: 13.5px; line-height: 1.5; color: var(--fg-2); margin-top: 8px; }
.cookie-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.cookie .btn { padding: 11px 18px; font-size: 14px; }

/* ============================================================
   reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .tcar-track > .quote-card { flex-basis: calc((100% - 24px) / 2); }
  .band-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .wrap, .wrap-wide { padding-inline: 22px; }
  .section { padding-block: var(--space-8); }
  .nav-main, .nav-tel { display: none; }
  .tcar-track > .quote-card { flex-basis: 86%; }
  .tcar-nav { display: none; }
  .nav-cta .btn--header { display: none; }
  .burger { display: inline-flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-top { gap: 28px; }
  .footer-nav { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 16px 24px; }
  .gallery-panel { padding: 22px 18px 24px; }
  .gallery-nav { width: 40px; height: 40px; }
  .field-row { grid-template-columns: 1fr; }
  .sec-head { margin-bottom: 28px; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .cookie { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .trust-row { gap: 20px; }
  .trust-item { flex: 1 1 40%; }
}
