/* Barlow & Barlow Condensed — lokal eingebunden (kein Aufruf an Google-Server, keine IP-Übertragung) */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/barlow-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/barlow-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/barlow-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/barlow-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlowcondensed-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlowcondensed-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Farbwelt: Waldgruen. Ausgangston #2E6B45. */
  --color-bg: #f7faf8;
  --color-surface: #e8efea;
  --color-text: #171a18;
  --color-text-muted: color-mix(in srgb, #171a18 58%, transparent);
  --color-accent: #2e6b45;
  --color-accent-600: #3a8256;
  --color-accent-700: #245436;
  --color-accent-800: #1a3d27;
  --color-divider: color-mix(in srgb, #171a18 15%, transparent);
  --color-divider-soft: color-mix(in srgb, #171a18 7%, transparent);
  --color-card: #ffffff;
  --color-accent-tint-bg: #eaf3ee;
  --color-accent-tint-text: #1a3d27;
  --color-neutral-tag-bg: #eef1ef;
  --color-neutral-tag-text: #383d3a;
  --color-dark: #171a18;
  --color-dark-soft: #242a26;

  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;

  --shadow-sm: 0 1px 2px rgba(23,26,24,.10);
  --shadow-md: 0 6px 22px rgba(23,26,24,.14);
}

html {
  /* Die Einblend-Animation schiebt Elemente kurzzeitig seitlich heraus.
     "clip" schneidet das ab. Anders als "hidden" erzeugt es keinen
     eigenen Scrollbereich, die klebende Kopfleiste bleibt also heil. */
  overflow-x: clip;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  /* Die Einblend-Animation schiebt Elemente seitlich heraus. "clip"
     schneidet das ab, ohne - anders als "hidden" - die klebende
     Kopfleiste ausser Kraft zu setzen. */
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0; }

a {
  color: var(--color-accent-700);
  text-decoration: none;
}
a:hover { color: var(--color-accent-800); }

img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.text-muted { color: var(--color-text-muted); }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

main { flex: 1; width: 100%; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--color-divider);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 0;
}
.nav-brand {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--color-text);
}
.nav-brand span.accent { color: var(--color-accent); }
.nav-brand span.suffix { font-size: 16px; color: var(--color-accent-700); font-family: var(--font-body); font-weight: 400;}
.nav-link {
  font-size: 18px;
  padding: 10px 4px;
  color: var(--color-text);
}
.nav-link:hover { color: var(--color-accent-700); }
.nav-link[aria-current="page"] { color: var(--color-accent-700); }
.nav-spacer { flex: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 18px;
  padding: 12px 22px;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-600); color: #fff; }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary {
  border-color: var(--color-divider);
  color: var(--color-text);
  background: transparent;
}
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }
.btn-ghost {
  color: var(--color-accent-700);
  border: none;
  padding: 8px 4px;
  background: none;
}
.btn-ghost:hover { color: var(--color-accent-800); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 15px;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}
.tag-outline {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 14px;
  padding: 6px 14px;
  letter-spacing: 0.06em;
}
.tag-accent { background: var(--color-accent-tint-bg); color: var(--color-accent-tint-text); }
.tag-neutral { background: var(--color-neutral-tag-bg); color: var(--color-neutral-tag-text); }

/* ---------- cards ---------- */
.card {
  background: var(--color-card);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
a.card, .card.hoverable { transition: box-shadow .15s ease; }
a.card:hover, .card.hoverable:hover { box-shadow: var(--shadow-md); }
.card-pad { padding: 28px; }
.card-kicker {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ---------- image slot ---------- */
.image-slot {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #e4ede8, #f5f9f7);
  color: var(--color-text-muted);
  font-size: 14px;
  padding: 12px;
  border-radius: inherit;
}

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 18px; }
.table td { padding: 10px 0; border-bottom: 1px solid var(--color-divider-soft); }
.table tr:last-child td { border-bottom: none; }
.table td.num { text-align: right; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 16px; color: var(--color-text-muted); }
.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font: inherit;
  font-size: 18px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: 14px;
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); }
textarea.input { min-height: 100px; resize: vertical; font-family: inherit; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-stack { display: flex; flex-direction: column; gap: 20px; }
.field-error {
  font-size: 14px;
  color: #a4372f;
  margin-top: -2px;
}
.input.has-error { border-color: #a4372f; }

/* ---------- sections ---------- */
.section { padding: 40px 0 56px; border-top: 1px solid var(--color-divider); }
.section:first-child { border-top: none; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--color-divider); margin-top: auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  padding: 36px 24px;
  font-size: 16px;
}
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.06em;
}
.footer-brand { font-family: var(--font-heading); font-weight: 600; font-size: 20px; }

/* ---------- grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2-9-11 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.grid-2-9-11-top { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.grid-2-even { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.grid-form-aside { display: grid; grid-template-columns: 1fr 0.7fr; gap: 56px; align-items: start; }

/* ---------- listing card ---------- */
.listing-card { display: flex; flex-direction: column; color: inherit; }
.listing-card .image-slot { height: 180px; border-radius: 20px 20px 0 0; }

/* Fotos in Kacheln beschneiden statt verzerren */
img.image-slot { object-fit: cover; }
.listing-body { display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.listing-body h3 { font-size: 22px; }
.listing-row { display: flex; justify-content: space-between; gap: 12px; font-size: 17px; margin-top: 4px; }
.listing-price { color: var(--color-accent-700); font-weight: 700; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 56px; }
.hero h1 { font-size: 58px; }
.hero p.lede { font-size: 21px; line-height: 1.6; max-width: 34em; }
.hero-image { height: 380px; border-radius: 20px; overflow: hidden; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-actions .btn { font-size: 20px; padding: 16px 28px; }

/* ---------- steps ---------- */
.step-card { display: flex; flex-direction: column; gap: 14px; }
.step-num {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 44px;
  color: var(--color-accent);
}
.step-card h3 { font-size: 24px; }
.step-card p { font-size: 17px; line-height: 1.6; opacity: 0.85; }

/* ---------- confirmation ---------- */
.confirm-check {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-accent);
}

/* ---------- utility ---------- */
.stack { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.hidden { display: none !important; }

@media (max-width: 860px) {
  .grid-3, .grid-2-9-11, .grid-2-9-11-top, .grid-2-even, .grid-form-aside, .footer-grid, .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .hero h1 { font-size: 40px; }
  .nav { flex-wrap: wrap; gap: 14px 20px; }
}

/* =========================================================
   AUGUSTA Pfalz Immobilien — Ergaenzungen
   ========================================================= */

/* ---------- Marke ---------- */
.brand { display: flex; align-items: center; gap: 14px; color: var(--color-text); }
.brand-logo { height: 54px; width: auto; flex: none; align-self: center; display: block; }
.brand-sub {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--color-text-muted); line-height: 1.6;
  padding-left: 14px; border-left: 1px solid var(--color-divider);
}
.site-header .nav { gap: 20px; }
.nav-link { font-size: 15px; letter-spacing: .03em; text-transform: uppercase; }

/* ---------- dunkles Band ---------- */
.band-dark {
  background: var(--color-dark);
  color: #f2f0ec;
  border: none;
}
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .text-muted { color: rgba(242,240,236,.62); }
.band-dark .card { background: var(--color-dark-soft); box-shadow: none; border: 1px solid rgba(255,255,255,.10); }
.band-dark .card h3 { color: #fff; }
.band-dark .card p { color: rgba(242,240,236,.75); }
.band-dark .card-kicker { color: var(--color-accent); }
.band-dark .btn-secondary { border-color: rgba(255,255,255,.35); color: #fff; }
.band-dark .btn-secondary:hover { background: rgba(255,255,255,.10); color: #fff; }
.band-dark .table td { border-bottom-color: rgba(255,255,255,.14); }

/* ---------- Hero ---------- */
.hero-eyebrow {
  font-size: 13px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--color-accent);
}
.hero h1 { font-size: 62px; letter-spacing: -.01em; }
.rule { width: 64px; height: 2px; background: var(--color-accent); border: none; margin: 0; }

/* ---------- Kennzahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-family: var(--font-heading); font-weight: 600; font-size: 46px;
  color: var(--color-accent); line-height: 1;
}
.stat-label { font-size: 16px; line-height: 1.45; }

/* ---------- Leistungs-/Vorteilsliste ---------- */
.feature { display: flex; gap: 14px; align-items: baseline; }
.feature-bullet { color: var(--color-accent); font-weight: 700; flex: none; }
.feature span:last-child { font-size: 17px; line-height: 1.55; }

/* ---------- Objekt-Details ---------- */
.obj-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 32px; }
.obj-meta-item { display: flex; flex-direction: column; gap: 2px; }
.obj-meta-label {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-text-muted);
}
.obj-meta-value { font-size: 18px; font-weight: 500; }

/* ---------- Hinweis auf Beispieldaten ---------- */
.badge-demo {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: #a4372f; color: #fff;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.listing-card { position: relative; }
.demo-hinweis {
  background: #fdf3f2; border: 1px solid #e7c3bf; color: #7d2a24;
  padding: 16px 20px; border-radius: 14px; font-size: 16px; line-height: 1.55;
}

/* ---------- Kontaktstreifen ---------- */
.contact-strip {
  display: grid; grid-template-columns: 1fr auto; gap: 32px;
  align-items: center; padding: 44px 0;
}

/* ---------- Zitat ---------- */
.quote {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 30px; line-height: 1.25; letter-spacing: -.01em;
}

/* ---------- Bildplatzhalter ---------- */
.image-slot.placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(36,84,54,.07) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #e4ede8, #f4f9f6);
  color: var(--color-accent-800);
  font-family: var(--font-heading); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; font-size: 12px;
}

/* ---------- Grids ---------- */
.grid-2-side { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 860px) {
  .stats, .grid-4, .obj-meta { grid-template-columns: 1fr 1fr; }
  .grid-2-side, .contact-strip { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .quote { font-size: 24px; }
  .brand-logo { height: 42px; }
  .brand-sub { display: none; }
}
@media (max-width: 560px) {
  .stats, .grid-4 { grid-template-columns: 1fr; }
}

/* =========================================================
   Kopfleiste bleibt beim Scrollen oben stehen
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
}

/* Sprungmarken (z. B. #projekte, #objekt-form) nicht unter
   die Leiste scrollen lassen */
html { scroll-padding-top: 110px; }

@media (max-width: 860px) {
  /* kompaktere Leiste, damit sie auf dem Handy nicht zu viel Platz nimmt */
  .site-header .nav { padding: 12px 0; gap: 10px 18px; }
  .nav-link { padding: 5px 2px; font-size: 15px; }
  .site-header .btn-primary { font-size: 15px; padding: 9px 16px; }
  html { scroll-padding-top: 150px; }
}

@media (max-width: 620px) {
  .site-header .nav { padding: 10px 0; gap: 8px 16px; }
  .nav-spacer { flex-basis: 100%; height: 0; }
  html { scroll-padding-top: 120px; }
}

/* =========================================================
   Kontaktreiter am rechten Bildschirmrand
   ========================================================= */
.kontaktreiter {
  position: fixed;
  right: 0;
  top: 28vh;
  z-index: 90;
  display: flex;
  align-items: stretch;
  /* eingefahren: nur die Lasche ragt herein */
  transform: translateX(calc(100% - 46px));
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  box-shadow: -2px 2px 14px rgba(28, 22, 24, .22);
}
.kontaktreiter[data-offen="true"] { transform: translateX(0); }

.kontaktreiter-lasche {
  width: 46px;
  flex: none;
  background: var(--color-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .16em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 0;
}
.kontaktreiter-lasche:hover { background: var(--color-accent-600); }
.kontaktreiter-titel {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.kontaktreiter-pfeil {
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 7px solid #fff;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.kontaktreiter[data-offen="true"] .kontaktreiter-pfeil { transform: rotate(180deg); }

.kontaktreiter-inhalt {
  width: 320px;
  background: var(--color-accent);
  color: #fff;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 17px;
}
.kontaktreiter-inhalt .kontaktreiter-kicker {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  margin-bottom: 8px;
}
.kontaktreiter-inhalt a {
  color: #fff;
  text-decoration: none;
  padding: 9px 0;
  line-height: 1.45;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  transition: color .25s;
}
.kontaktreiter-inhalt a:last-child { border-bottom: none; }
.kontaktreiter-inhalt a:hover { color: rgba(255, 255, 255, .72); }
.kontaktreiter-inhalt a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.kontaktreiter-lasche:focus-visible { outline: 2px solid var(--color-text); outline-offset: -4px; }

/* Auf schmalen Bildschirmen wuerde der Reiter Inhalte verdecken */
@media (max-width: 860px) {
  .kontaktreiter { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .kontaktreiter, .kontaktreiter-pfeil { transition: none; }
}

/* =========================================================
   Untere Fussleiste mit Widerrufsknopf
   ========================================================= */
.footer-bottom {
  border-top: 1px solid var(--color-divider-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 24px 30px;
  font-size: 15px;
}
.btn-sm { font-size: 15px; padding: 9px 18px; }

@media (max-width: 620px) {
  .footer-bottom { justify-content: flex-start; }
}

/* Hinweis "ODER" zwischen den beiden Identifikationsfeldern */
#widerruf-form .field + .text-muted { margin: -6px 0; }


/* Honigtopf gegen Bots: fuer Menschen unsichtbar, aber nicht per
   display:none ausgeblendet, damit Bots das Feld trotzdem finden. */
.hp-feld {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   Bildmosaik über der Objektbeschreibung
   ========================================================= */
.mosaik {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
  height: 520px;
  margin-bottom: 40px;
  border-radius: 20px;
  overflow: hidden;
}
.mosaik-einzeln { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.mosaik > .mosaik-kachel:first-child { grid-row: 1 / span 3; }

.mosaik-kachel {
  position: relative;
  padding: 0;
  border: none;
  background: var(--color-surface);
  cursor: zoom-in;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}
.mosaik-kachel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}
.mosaik-kachel:hover img { transform: scale(1.04); }
.mosaik-kachel:focus-visible { outline: 3px solid var(--color-accent); outline-offset: -3px; }

.mosaik-mehr {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(22, 18, 20, .55);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .06em;
}
.mosaik-mehr-symbol {
  width: 16px; height: 16px; flex: none;
  background-image:
    linear-gradient(#fff, #fff), linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
  background-size: 6px 6px;
  background-position: 0 0, 10px 0, 0 10px, 10px 10px;
  background-repeat: no-repeat;
}

@media (max-width: 860px) {
  .mosaik {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 210px 78px;
    height: auto;
  }
  .mosaik > .mosaik-kachel:first-child { grid-row: 1; grid-column: 1 / span 3; }
  .mosaik-mehr { font-size: 13px; gap: 6px; }
  .mosaik-mehr-symbol { width: 12px; height: 12px; background-size: 4px 4px; background-position: 0 0, 8px 0, 0 8px, 8px 8px; }
}

/* =========================================================
   Vollbildansicht (Lichtbox)
   ========================================================= */
body.lichtbox-offen { overflow: hidden; }

.lichtbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(18, 14, 16, .95);
  display: flex;
  flex-direction: column;
}
.lichtbox[hidden] { display: none; }

.lichtbox-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  flex: none;
}
.lichtbox-zaehler {
  color: rgba(242, 240, 236, .78);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .1em;
}
.lichtbox-knopf {
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  padding: 0 8px;
  cursor: pointer;
  opacity: .8;
}
.lichtbox-knopf:hover { opacity: 1; }

.lichtbox-buehne {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 72px;
}
.lichtbox-buehne img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.lichtbox-pfeil {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lichtbox-pfeil:hover { background: rgba(255, 255, 255, .24); }
.lichtbox-pfeil.links { left: 12px; }
.lichtbox-pfeil.rechts { right: 12px; }

.lichtbox-titel {
  flex: none;
  text-align: center;
  color: rgba(242, 240, 236, .82);
  font-size: 16px;
  padding: 14px 22px 0;
  margin: 0;
}

.lichtbox-mini {
  flex: none;
  display: flex;
  gap: 8px;
  justify-content: center;
  overflow-x: auto;
  padding: 14px 22px 22px;
  scrollbar-width: thin;
}
.lichtbox-mini button {
  flex: none;
  width: 82px;
  height: 56px;
  padding: 0;
  border: none;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: .45;
  transition: opacity .2s;
  background: none;
}
.lichtbox-mini button:hover { opacity: .8; }
.lichtbox-mini button[aria-current="true"] { opacity: 1; outline: 2px solid #fff; outline-offset: 2px; }
.lichtbox-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 860px) {
  .lichtbox-buehne { padding: 0 8px; }
  .lichtbox-pfeil { width: 42px; height: 42px; font-size: 24px; }
  .lichtbox-mini button { width: 60px; height: 42px; }
  .lichtbox-titel { font-size: 14px; }
}

/* =========================================================
   Grundrisse - eigener Abschnitt, volle Höhe, nichts beschnitten
   ========================================================= */
.grundriss-liste {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: start;
}
.grundriss { margin: 0; }
.grundriss-flaeche {
  display: block;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--color-divider-soft);
  border-radius: 18px;
  background: #fff;
  cursor: zoom-in;
}
.grundriss-flaeche:hover { border-color: var(--color-accent); }
.grundriss-flaeche:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.grundriss-flaeche img {
  width: 100%;
  height: auto;      /* volle Länge, kein Beschnitt */
  display: block;
}
.grundriss figcaption {
  margin-top: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
}

@media (max-width: 860px) {
  .grundriss-liste { grid-template-columns: 1fr; gap: 28px; }
  .grundriss-flaeche { padding: 12px; }
}

/* =========================================================
   Einblenden beim Scrollen
   Der versteckte Zustand wird nur wirksam, wenn das Skript das
   Attribut gesetzt hat. Ohne JavaScript bleibt alles sichtbar.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  /* Doppelt geschrieben, damit die Regel spezifischer ist als
     "a.card { transition: box-shadow .15s }" - sonst wuerde der
     Uebergang dort auf 0,15 s gekuerzt. Der Schatten-Uebergang der
     Karten bleibt erhalten. */
  [data-einblenden][data-einblenden] {
    transition: opacity .75s cubic-bezier(.16, .84, .44, 1),
                transform .75s cubic-bezier(.16, .84, .44, 1),
                box-shadow .15s ease;
    will-change: opacity, transform;
  }
  [data-einblenden="versteckt"] { opacity: 0; }
  [data-einblenden="versteckt"][data-einblenden-richtung="hoch"]   { transform: translate3d(0, 44px, 0); }
  [data-einblenden="versteckt"][data-einblenden-richtung="links"]  { transform: translate3d(-56px, 0, 0); }
  [data-einblenden="versteckt"][data-einblenden-richtung="rechts"] { transform: translate3d(56px, 0, 0); }
  [data-einblenden="sichtbar"] { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  /* seitlicher Versatz faellt auf schmalen Bildschirmen kleiner aus */
  [data-einblenden="versteckt"][data-einblenden-richtung="links"]  { transform: translate3d(-26px, 0, 0); }
  [data-einblenden="versteckt"][data-einblenden-richtung="rechts"] { transform: translate3d(26px, 0, 0); }
}

/* =========================================================
   Anpassungen fuer Handys (Android und iOS)
   ========================================================= */

/* Rasterelemente duerfen unter ihren Mindestinhalt schrumpfen.
   Ohne diese Zeile spannt ein breiter Inhalt die ganze Spur auf und
   die Seite laesst sich seitlich schieben. */
.grid-3 > *, .grid-4 > *, .grid-2-side > *, .grid-2-9-11 > *,
.grid-2-9-11-top > *, .grid-2-even > *, .grid-form-aside > *,
.obj-meta > *, .footer-grid > * { min-width: 0; }

/* Sanfte Antippfarbe statt des grauen Standardkastens */
a, button, .btn { -webkit-tap-highlight-color: rgba(46, 107, 69, .18); }

@media (max-width: 560px) {
  /* Eckdaten und Energieausweis einspaltig */
  .obj-meta { grid-template-columns: 1fr; gap: 14px; }

  /* Ueberschriften: die Groessen stehen in den Seiten direkt am Element,
     deshalb ist hier !important noetig. Gilt nur fuer schmale Fenster,
     die Darstellung am Rechner bleibt unveraendert. */
  h1 { font-size: clamp(28px, 8.2vw, 38px) !important; }
  h2 { font-size: clamp(23px, 6.2vw, 30px) !important; }
  .lede { font-size: 17px !important; line-height: 1.6; }
  .hero { padding: 32px 0 36px; }
  .section { padding: 32px 0 40px; }

  /* Antippflaechen auf das Android-Mindestmass von 48 px bringen */
  .nav-link { padding: 15px 6px; }
  .footer-col a { padding: 12px 0; }
  .btn-ghost { padding: 14px 4px; }
  .brand { padding: 5px 0; }
  .site-header .btn-primary { padding: 13px 20px; }
  .lichtbox-knopf { min-width: 48px; min-height: 48px; }
  .lichtbox-mini button { height: 48px; }
  .footer-bottom .btn-sm { padding: 13px 20px; }
  /* Leiste kompakt halten, sie scrollt ja mit */
  .site-header .nav { padding: 6px 0; gap: 4px 14px; }
}


/* =========================================================
   Kopfleiste: Klappmenue auf schmalen Bildschirmen
   ========================================================= */
.nav-links { display: flex; align-items: center; gap: 20px; }
.burger, .kopf-anruf { display: none; }

@media (max-width: 1100px) {
  /* einzeilige Leiste: Logo - Telefon - Hamburger */
  .site-header .nav { padding: 10px 0; gap: 10px; flex-wrap: nowrap; }
  .nav-spacer { flex: 1; flex-basis: auto; height: auto; }
  .brand-sub { display: none; }
  .brand-logo { height: 40px; }
  .brand { padding: 0; }

  .kopf-anruf {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; flex: none;
    border-radius: 50%;
    color: var(--color-accent);
    background: var(--color-accent-tint-bg);
  }
  .kopf-anruf svg { width: 24px; height: 24px; fill: currentColor; }

  .burger {
    display: flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 48px; height: 48px; flex: none;
    padding: 0 11px; border: none; background: none; cursor: pointer;
  }
  .burger span {
    display: block; height: 2px; width: 100%;
    background: var(--color-text); border-radius: 2px;
    transition: transform .3s ease, opacity .2s ease;
  }
  .burger.offen span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.offen span:nth-child(2) { opacity: 0; }
  .burger.offen span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Menueflaeche klappt unter der Leiste auf */
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-accent);
    max-height: 0;
    overflow: hidden;
    transition: max-height .42s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 12px 22px rgba(28, 22, 24, .18);
  }
  .nav-links[data-offen="true"] { max-height: 60vh; }

  .nav-links .nav-link {
    color: #fff;
    padding: 17px 24px;
    font-size: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
  }
  .nav-links .nav-link[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; }
  .nav-links .btn-primary {
    border-radius: 0;
    background: var(--color-accent-800);
    padding: 18px 24px;
    font-size: 17px;
  }
  .nav-links .btn-primary:hover { background: var(--color-accent-800); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links, .burger span { transition: none; }
}

/* =========================================================
   Mauszeiger-Kreis
   ========================================================= */
.mauskreis {
  position: fixed;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  will-change: transform;
  transition: opacity .25s ease, width .22s ease, height .22s ease,
              background-color .22s ease, border-color .22s ease;
}
.mauskreis[data-sichtbar="true"] { opacity: 1; }
.mauskreis[data-aktiv="true"] {
  width: 62px;
  height: 62px;
  background: color-mix(in srgb, var(--color-accent) 15%, transparent);
}

/* Auf dunklen Flaechen etwas heller, damit der Ring sichtbar bleibt */
.band-dark ~ * .mauskreis { border-color: var(--color-accent-600); }

/* Ohne Maus kein Kreis */
@media (hover: none), (pointer: coarse) {
  .mauskreis { display: none; }
}

/* =========================================================
   Bewertungsassistent
   ========================================================= */
.assistent {
  background: var(--color-card);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 780px;
}
.fortschritt { height: 8px; background: var(--color-surface); }
.fortschritt-balken {
  height: 100%;
  width: 0;
  background: var(--color-accent);
  transition: width .4s cubic-bezier(.4, 0, .2, 1);
}
.assistent form { padding: 40px 36px 28px; }
.schritt-titel {
  font-size: 27px;
  text-align: center;
  margin-bottom: 26px;
}

/* Kachelauswahl (Objektart) */
.kachelwahl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.wahlkachel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 14px;
  border: 1.5px solid var(--color-divider);
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  transition: border-color .2s, background-color .2s;
}
.wahlkachel input { position: absolute; opacity: 0; width: 0; height: 0; }
.wahlkachel svg {
  width: 58px; height: 58px;
  fill: none;
  stroke: var(--color-text-muted);
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: stroke .2s;
}
.wahlkachel:hover { border-color: var(--color-accent-600); }
.wahlkachel:has(input:checked) {
  border-color: var(--color-accent);
  border-width: 2px;
  background: var(--color-accent-tint-bg);
}
.wahlkachel:has(input:checked) svg { stroke: var(--color-accent); }
.wahlkachel:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* Knopfauswahl (Zustand, Ausstattung, Zeitraum) */
.knopfwahl { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.wahlknopf { position: relative; }
.wahlknopf input { position: absolute; opacity: 0; width: 0; height: 0; }
.wahlknopf span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid var(--color-divider);
  border-radius: 999px;
  cursor: pointer;
  font-size: 17px;
  transition: border-color .2s, background-color .2s, color .2s;
}
.wahlknopf span:hover { border-color: var(--color-accent-600); }
.wahlknopf input:checked + span {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;
}
.wahlknopf input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* Fussleiste des Assistenten */
.assistent-fuss {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--color-divider-soft);
}
.schritt-zaehler {
  flex: 1;
  text-align: center;
  font-size: 15px;
  color: var(--color-text-muted);
}
.assistent-fuss .btn { min-height: 48px; }

/* Vertrauensleiste */
.vertrauensleiste {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  justify-content: center;
  max-width: 780px;
  margin-top: 16px;
  padding: 16px 22px;
  border-radius: 14px;
  background: var(--color-accent-tint-bg);
  color: var(--color-accent-tint-text);
  font-size: 16px;
}

@media (max-width: 620px) {
  .assistent form { padding: 28px 20px 22px; }
  .schritt-titel { font-size: 22px; margin-bottom: 20px; }
  .kachelwahl { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .wahlkachel { padding: 16px 10px; font-size: 15px; }
  .wahlkachel svg { width: 44px; height: 44px; }
  .knopfwahl { flex-direction: column; }
  .wahlknopf span { width: 100%; justify-content: center; }
  .assistent-fuss { flex-wrap: wrap; }
  .schritt-zaehler { order: 3; flex-basis: 100%; }
  .vertrauensleiste { gap: 10px 20px; font-size: 15px; }
}

/* Vierte Kachel allein in der zweiten Reihe: mittig statt links */
@media (min-width: 621px) {
  .kachelwahl > .wahlkachel:nth-child(4):last-child { grid-column: 2; }
}

/* =========================================================
   Ueberschriften laufen zeichenweise ein
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .w { display: inline-block; }
  .ch {
    display: inline-block;
    opacity: 0;
    transform: translateY(4px);
    filter: blur(4px);
    transition: opacity .32s cubic-bezier(.2, .7, .2, 1),
                transform .32s cubic-bezier(.2, .7, .2, 1),
                filter .5s cubic-bezier(.2, .7, .2, 1);
  }
  .gelaufen .ch {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* =========================================================
   Fortschrittsbalken am oberen Rand
   ========================================================= */
.fortschritt-seite {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.fortschritt-seite.an { opacity: 1; }
.fortschritt-seite span {
  display: block;
  height: 100%;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* Kopfleiste wechselt beim Scrollen den Zustand */
.site-header {
  transition: background-color .4s cubic-bezier(.2, .7, .2, 1),
              box-shadow .4s cubic-bezier(.2, .7, .2, 1),
              border-color .4s cubic-bezier(.2, .7, .2, 1);
}
.site-header.gescrollt {
  background-color: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(23, 26, 24, .10);
  border-bottom-color: transparent;
}

/* Abschnitte stapeln: Ursprung unten, damit der Abschnitt nach unten
   wegtaucht statt aus der Mitte zu schrumpfen */
main section.section {
  transform-origin: 50% 100%;
  will-change: transform, filter;
}

/* =========================================================
   Ratgeber
   ========================================================= */
.brotkrumen {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.brotkrumen a { color: var(--color-accent-700); }

.artikel-meta { font-size: 16px; color: var(--color-text-muted); }

.artikel-text { max-width: 720px; }
.artikel-text h2 {
  font-size: 32px;
  margin: 44px 0 16px;
}
.artikel-text h3 {
  font-size: 23px;
  margin: 32px 0 12px;
}
.artikel-text p {
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 18px;
}
.artikel-text ul, .artikel-text ol {
  margin: 0 0 22px 22px;
  padding: 0;
}
.artikel-text li {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 10px;
}
.artikel-text a { text-decoration: underline; text-underline-offset: 3px; }
.artikel-text .merksatz {
  border-left: 3px solid var(--color-accent);
  background: var(--color-accent-tint-bg);
  padding: 18px 22px;
  border-radius: 0 12px 12px 0;
  margin: 26px 0;
}
.artikel-text .merksatz p { margin: 0; font-size: 17px; }
.artikel-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 17px;
}
.artikel-text th, .artikel-text td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--color-divider-soft);
}
.artikel-text th { font-family: var(--font-heading); font-weight: 600; letter-spacing: .04em; }

.artikel-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  max-width: 720px;
  margin: 48px 0 30px;
  padding: 30px;
  border-radius: 18px;
  background: var(--color-surface);
}
.artikel-cta p { font-size: 17px; line-height: 1.6; }
.artikel-fuss {
  max-width: 720px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 26px;
}

/* Beitragsliste */
.beitraege { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.beitrag {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  color: inherit;
}
.beitrag h2 { font-size: 24px; }
.beitrag p { font-size: 16px; line-height: 1.55; }
.beitrag .artikel-meta { font-size: 14px; margin-top: auto; padding-top: 8px; }

@media (max-width: 860px) {
  .beitraege { grid-template-columns: 1fr; }
  .artikel-cta { grid-template-columns: 1fr; }
  .artikel-text h2 { font-size: 26px; }
  .artikel-text p, .artikel-text li { font-size: 17px; }
}
