/* =========================================================
   Immobilienbewertung Klügel – Stylesheet
   Keine externen Fonts/Tracker (DSGVO-freundlich)
   ========================================================= */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f0e8;
  --ink: #1d2a2a;
  --ink-soft: #4a5857;
  --line: #e2ddd1;
  --brand: #1f5c4f;        /* tiefes Salbeigrün – Vertrauen, Ruhe */
  --brand-ink: #ffffff;
  --brand-soft: #e3efe9;
  --accent: #c8894a;       /* warmes Kupfer – einladend */
  --accent-soft: #f6e9da;
  --accent-text: #8a4f1d;   /* Kupfer für kleine Schrift, Kontrast ≥ 4,5:1 */
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 30, 30, .05), 0 8px 30px rgba(20, 30, 30, .07);
  --max: 1160px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121817;
    --surface: #18201f;
    --surface-2: #1e2826;
    --ink: #eef2f0;
    --ink-soft: #a9b6b3;
    --line: #2c3836;
    --brand: #5fb39d;
    --brand-ink: #0d1514;
    --brand-soft: #1d3330;
    --accent: #e0a46a;
    --accent-soft: #3a2d20;
    --accent-text: #e9b47e;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 30px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  --bg: #121817; --surface: #18201f; --surface-2: #1e2826; --ink: #eef2f0; --ink-soft: #a9b6b3;
  --line: #2c3836; --brand: #5fb39d; --brand-ink: #0d1514; --brand-soft: #1d3330;
  --accent: #e0a46a; --accent-soft: #3a2d20; --accent-text: #e9b47e; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 30px rgba(0,0,0,.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--surface-2); }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .8rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; justify-content: center;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { background: var(--accent); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__mark { width: 38px; height: 38px; flex: none; }
.logo__text { line-height: 1.1; }
.logo__text strong { font-family: var(--serif); font-size: 1.12rem; display: block; }
.logo__text span { font-size: .8rem; color: var(--ink-soft); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 8px; font-size: .95rem; font-weight: 500; }
.nav a:hover { background: var(--brand-soft); color: var(--brand); }
.nav .btn { margin-left: 8px; padding: .6em 1.2em; color: var(--brand-ink); }
.nav .btn:hover { background: var(--accent); color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; color: var(--ink); cursor: pointer; }
.menu-toggle svg { margin: auto; }

@media (max-width: 960px) {
  .menu-toggle { display: grid; place-items: center; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 20px 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .25s, opacity .25s, visibility 0s .25s; box-shadow: var(--shadow);
    max-height: calc(100dvh - 72px); overflow-y: auto;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .25s, opacity .25s; }
  .nav a { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 16px 0 0; border-radius: 999px; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  /* Startbereich liegt – wie alle Abschnitte – in einem Glas-Fenster */
  padding: clamp(20px, 4vw, 48px) 0 clamp(28px, 5vw, 64px); position: relative;
  min-height: min(82vh, 820px); display: flex; align-items: center;
}
.hero > .container { width: min(var(--max), 100% - 24px); }
@media (max-width: 900px) { .hero { min-height: 0; } }

/* ---------- Fester Hintergrund, über den die Seite scrollt ---------- */
.bg-fixed {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-color: #c9d9e6;
  background-image: url("hero-bg.jpg");
  background-image: image-set(url("hero-bg.webp") type("image/webp"), url("hero-bg.jpg") type("image/jpeg"));
  background-position: 62% center; background-size: cover; background-repeat: no-repeat;
}
@media (max-width: 900px) {
  .bg-fixed {
    background-image: url("hero-bg-960.jpg");
    background-image: image-set(url("hero-bg-960.webp") type("image/webp"), url("hero-bg-960.jpg") type("image/jpeg"));
    background-position: 70% center;
  }
}
/* Inhalte schweben als Glas-Fenster über dem dauerhaft sichtbaren Hintergrund */
.section, .section--alt { background: transparent; position: relative; padding: clamp(28px, 5vw, 64px) 0; }
.section > .container,
.hero > .container {
  width: min(var(--max), 100% - 24px);
  padding: clamp(32px, 5vw, 64px) clamp(20px, 4.5vw, 56px);
  border-radius: 28px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid color-mix(in srgb, #fff 45%, transparent);
  box-shadow: 0 24px 60px rgba(15, 30, 28, .18);
}
.section--alt > .container { background: color-mix(in srgb, var(--surface-2) 88%, transparent); }
:root[data-theme="dark"] .section > .container, :root[data-theme="dark"] .hero > .container { border-color: rgba(255, 255, 255, .08); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .section > .container, :root:not([data-theme="light"]) .hero > .container { border-color: rgba(255, 255, 255, .08); }
}
/* Fenster blenden beim Scrollen weich ein (leicht skaliert + nach oben) */
.panel-reveal { opacity: 0; transform: translateY(40px) scale(.98); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.panel-reveal.in { opacity: 1; transform: none; }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.bg-window { padding: clamp(80px, 14vw, 180px) 0; }
.bg-window .cta-band {
  background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--ink);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 20px 60px rgba(0,0,0,.35); border: 1px solid color-mix(in srgb, var(--surface) 60%, transparent);
}
.bg-window .cta-band p { color: var(--ink-soft); opacity: 1; }
.bg-window .cta-band .btn { background: var(--brand); color: var(--brand-ink); }
.bg-window .cta-band .btn:hover { background: var(--accent); color: #fff; }
.nav a { white-space: nowrap; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; color: var(--ink-soft); font-size: .93rem; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.hero__visual { position: relative; }
.hero__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 28px; position: relative;
}
.hero__card svg.house { width: 100%; height: auto; }
.badge {
  position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: .88rem; line-height: 1.3;
}
.badge strong { display: block; font-size: 1rem; }
.badge__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.badge__icon svg { width: 20px; height: 20px; }
.badge--a { left: -24px; bottom: 28px; }
.badge--b { right: -16px; top: 22px; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .badge--a { left: 8px; bottom: -18px; }
  .badge--b { right: 8px; top: -14px; }
}

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.card p { color: var(--ink-soft); margin: 0; }
.card ul { color: var(--ink-soft); padding-left: 1.1em; margin: .8em 0 0; }
.card ul li { margin-bottom: .3em; }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--brand-soft); color: var(--brand);
}
.icon svg { width: 26px; height: 26px; }
.icon--accent { background: var(--accent-soft); color: var(--accent); }
.card .tag { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }

/* Anlässe – Chips */
.occasions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); font-weight: 500;
}
.chip svg { width: 20px; height: 20px; color: var(--brand); }

/* ---------- Ablauf ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding: 28px 24px 24px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: 16px;
}
.step p { color: var(--ink-soft); margin: 0; font-size: .97rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Split-Layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li { display: flex; gap: 12px; padding: 8px 0; }
.checklist svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 3px; }

.feature-panel {
  background: linear-gradient(145deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000));
  color: #fff; border-radius: 24px; padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
:root[data-theme="dark"] .feature-panel, .feature-panel { color: #fff; }
.feature-panel h3 { color: #fff; }
.feature-panel p { color: rgba(255,255,255,.85); }
.feature-panel .stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 24px; }
.feature-panel .stat { background: rgba(255,255,255,.1); border-radius: 14px; padding: 16px; }
.feature-panel .stat strong { display: block; font-family: var(--serif); font-size: 1.15rem; }
.feature-panel .stat span { font-size: .85rem; color: rgba(255,255,255,.78); }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.portrait {
  aspect-ratio: 4/5; border-radius: 24px; background: var(--brand-soft); border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center; color: var(--brand); padding: 24px; position: relative; overflow: hidden;
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait__initials { font-family: var(--serif); font-size: 4.5rem; line-height: 1; }
.portrait small { display: block; margin-top: 10px; color: var(--ink-soft); font-size: .85rem; }
.quals { display: grid; gap: 12px; margin-top: 24px; }
.qual { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.qual svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 3px; }
.qual strong { display: block; }
.qual span { color: var(--ink-soft); font-size: .94rem; }
blockquote.promise {
  margin: 28px 0 0; padding: 20px 24px; border-left: 4px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--serif); font-size: 1.15rem; font-style: italic;
}

/* ---------- Unterlagen-Checkliste (interaktiv) ---------- */
.docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 680px) { .docs { grid-template-columns: 1fr; } }
.docs label { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.docs input { width: 20px; height: 20px; accent-color: var(--brand); margin-top: 3px; flex: none; }
.docs label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.docs small { display: block; color: var(--ink-soft); font-size: .9rem; }
.progress { margin-top: 20px; display: flex; align-items: center; gap: 14px; font-size: .92rem; color: var(--ink-soft); }
.progress__bar { flex: 1; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress__bar span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 999px; transition: width .3s; }

/* ---------- Preise ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card .price { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); margin: 6px 0 4px; }
.price-card .price small { font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); }
.price-card ul { flex: 1; margin-bottom: 20px; }
.price-card .btn { align-self: flex-start; }
.price-card.featured { border: 2px solid var(--brand); position: relative; }
.price-card.featured::after {
  content: "Häufig gewählt"; position: absolute; top: -13px; right: 20px; background: var(--brand); color: var(--brand-ink);
  font-size: .76rem; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}
.note { font-size: .9rem; color: var(--ink-soft); margin-top: 22px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 600; font-size: 1.07rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--ink-soft); padding-bottom: 20px; margin: 0; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 14px; align-content: start; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.contact-item svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 2px; }
.contact-item strong { display: block; }
.contact-item a { text-decoration: none; display: inline-block; padding: 10px 0; margin: -10px 0; }
.contact-item span, .contact-item address { color: var(--ink-soft); font-style: normal; font-size: .96rem; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .92rem; }
.field label .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px var(--brand-soft); }
.field textarea { min-height: 120px; resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); margin: 4px 0 20px; }
.consent input { width: 20px; height: 20px; accent-color: var(--brand); margin-top: 2px; flex: none; }
.form-status { margin-top: 14px; font-size: .94rem; }
.form-status.ok { color: var(--brand); }
.form-status.err { color: #b4472e; }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--brand); color: var(--brand-ink); border-radius: 28px; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0 0 .3em; color: inherit; }
.cta-band p { margin: 0; opacity: .88; }
.cta-band .btn { background: var(--brand-ink); color: var(--brand); }
.cta-band .btn:hover { background: var(--accent); color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--surface-2); border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 0; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin: 0 0 14px; font-family: var(--sans); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 4px; }
.footer li a { display: inline-block; padding: 6px 0; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { color: var(--brand); text-decoration: underline; }
.footer__bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--ink-soft); font-size: .88rem; }
.theme-toggle { background: none; border: 1px solid var(--line); color: var(--ink-soft); border-radius: 999px; padding: 10px 18px; min-height: 44px; cursor: pointer; font: inherit; font-size: .9rem; }

/* ---------- Rechtstexte ---------- */
.legal > * { max-width: 820px; }   /* Fenster so breit wie auf der Hauptseite, Textzeilen lesefreundlich begrenzt */
.legal h1 { margin-bottom: .3em; }
.legal h2 { font-size: 1.45rem; margin-top: 2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5em; font-family: var(--sans); }
.legal p, .legal li { color: var(--ink-soft); }
.legal .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 24px; margin: 16px 0; }
.legal .box p { color: var(--ink); margin: 0; }
.todo { background: #fff3c4; color: #5c4400; padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Floating Call-Button (mobil) ---------- */
.fab {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow); place-items: center;
}
.fab svg { width: 24px; height: 24px; }
@media (max-width: 720px) { .fab { display: grid; } }

@media print {
  .header, .fab, .form, .footer, .hero__visual { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Lesbarkeit Handy & Tablet ---------- */
@media (max-width: 900px) {
  .lead { font-size: 1.08rem; }
  .card { padding: 24px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; line-height: 1.7; }
  h1 { font-size: 2.15rem; }
  .section > .container, .hero > .container { padding: 28px 20px; border-radius: 22px; }
  .eyebrow { font-size: .8rem; letter-spacing: .08em; }
  .chip { padding: 12px 16px; }
  .faq summary { padding: 20px 40px 20px 0; }
}

/* ---------- Objektarten ---------- */
.objects {
  margin-top: clamp(28px, 4vw, 44px); padding: clamp(22px, 3.5vw, 36px);
  background: var(--brand-soft); border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
}
.objects h3 { margin-bottom: .3em; }
.objects > p { color: var(--ink-soft); margin-bottom: 18px; }
.object-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.object-list li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.object-list svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 3px; }
.object-list strong { display: block; }
.object-list small { display: block; color: var(--ink-soft); font-size: .9rem; }
.objects .note { margin: 18px 0 0; }

/* ---------- Standort-Umschalter ---------- */
.loc-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 0 6px; }
.loc-switch__label { font-size: .92rem; color: var(--ink-soft); margin-right: 4px; width: 100%; }
.loc-switch button {
  font: inherit; font-size: .95rem; font-weight: 600; min-height: 44px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; gap: 6px;
}
.loc-switch button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.loc-switch button:hover { border-color: var(--brand); }
.loc-switch__geo svg { width: 16px; height: 16px; }
.contact-item a + span, .contact-item address + a { display: block; }

/* ---------- Pfeil „nach oben“ ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 41;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--brand); box-shadow: 0 10px 30px rgba(15, 30, 28, .22);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s, color .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand); color: var(--brand-ink); }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 720px) {
  .to-top { right: 20px; bottom: 84px; width: 48px; height: 48px; }  /* über dem Anruf-Knopf */
}
@media print { .to-top { display: none !important; } }

/* ---------- Preistabelle ---------- */
.price-table { margin-top: clamp(28px, 4vw, 44px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3.5vw, 32px); }
.price-table h3 { margin-bottom: 14px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); }
.table-wrap:focus-visible { outline: 3px solid var(--accent); }
.price-table table { width: 100%; border-collapse: collapse; font-size: .98rem; min-width: 520px; }
.price-table th, .price-table td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--line); hyphens: manual; }
.price-table thead th { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-text); vertical-align: bottom; }
.price-table th[scope="row"], .price-table thead th:first-child { text-align: left; color: var(--ink); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .95rem; }
.price-table tbody td { font-family: var(--serif); font-size: 1.08rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-table tbody td[colspan] { text-align: center; color: var(--ink-soft); font-family: var(--sans); font-size: .95rem; }
.price-table tbody tr:hover { background: var(--brand-soft); }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-notes { margin: 16px 0 0; padding-left: 1.1em; color: var(--ink-soft); font-size: .95rem; }
.price-notes li { margin-bottom: 6px; }
.price-notes strong { color: var(--ink); font-weight: 600; }
/* Handy: Tabelle als Karten je Wertstufe */
@media (max-width: 640px) {
  .price-table table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; min-width: 0; }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table tbody tr { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 14px; margin-bottom: 10px; background: var(--bg); }
  .price-table tbody tr:hover { background: var(--bg); }
  .price-table th[scope="row"] { padding: 10px 0 6px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .price-table tbody td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; text-align: right; }
  .price-table tbody td::before { content: attr(data-label); font-family: var(--sans); font-size: .95rem; color: var(--ink-soft); text-align: left; }
  .price-table tbody tr td:last-child, .price-table tbody tr:last-child td { border-bottom: 0; }
  .price-table tbody td[colspan] { display: block; text-align: left; }
  .price-table tbody td[colspan]::before { content: none; }
}

/* Preistabelle als aufklappbare Karte */
.price-table { padding: 0; overflow: hidden; }
.price-table > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(18px, 3vw, 26px) clamp(20px, 3.5vw, 32px);
}
.price-table > summary::-webkit-details-marker { display: none; }
.price-table > summary::after {
  content: ""; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-soft) center / 18px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5c4f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  transition: transform .25s ease;
}
.price-table[open] > summary::after { transform: rotate(180deg); }
.price-table > summary:hover::after { background-color: color-mix(in srgb, var(--brand) 20%, var(--brand-soft)); }
.price-table > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: var(--radius); }
.price-table__title { display: flex; flex-direction: column; gap: 2px; }
.price-table__title h3 { margin: 0; }
.price-table__hint { font-size: .92rem; color: var(--ink-soft); }
.price-table[open] .price-table__hint { display: none; }
.price-table__body { padding: 0 clamp(20px, 3.5vw, 32px) clamp(20px, 3.5vw, 32px); animation: priceOpen .3s ease; }
@keyframes priceOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.faq details ul { color: var(--ink-soft); margin: -8px 0 0; padding: 0 0 20px 1.2em; }
.faq details ul li { margin-bottom: 10px; }
.faq details ul strong { color: var(--ink); }
