/* Hausverwaltung Florian Bock — Stylesheet
   Keine externen Schriften, keine Tracker: alles lokal (DSGVO-freundlich). */

:root {
  --ground: #f4f6f2;
  --paper: #ffffff;
  --ink: #17201c;
  --muted: #55615b;
  --line: #d6dcd4;
  --basalt: #1f2d27;
  --basalt-2: #2b3c35;
  --on-basalt: #eef1ec;
  --on-basalt-muted: #a9b8b0;
  --accent: #2c6456;
  --accent-ink: #ffffff;
  --brass: #94743a;
  --todo-bg: #fff4d6;
  --todo-ink: #6b4e10;
  --portrait-bg: #c9d4cb;
  --portrait-glow: #eef2ec;

  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0f1412;
    --paper: #161e1a;
    --ink: #e5ebe6;
    --muted: #9aa8a0;
    --line: #2a3631;
    --basalt: #18231e;
    --basalt-2: #22302a;
    --on-basalt: #eef1ec;
    --on-basalt-muted: #9fb0a7;
    --accent: #8cc4b4;
    --accent-ink: #0f1412;
    --brass: #cfb074;
    --todo-bg: #3a2f14;
    --todo-ink: #f3d894;
    --portrait-bg: #1b2621;
    --portrait-glow: #34473f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0f1412;
  --paper: #161e1a;
  --ink: #e5ebe6;
  --muted: #9aa8a0;
  --line: #2a3631;
  --basalt: #18231e;
  --basalt-2: #22302a;
  --on-basalt: #eef1ec;
  --on-basalt-muted: #9fb0a7;
  --accent: #8cc4b4;
  --accent-ink: #0f1412;
  --brass: #cfb074;
  --todo-bg: #3a2f14;
  --todo-ink: #f3d894;
  --portrait-bg: #1b2621;
  --portrait-glow: #34473f;
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font: 500 0.75rem/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem 1rem; z-index: 10; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: color-mix(in srgb, var(--basalt) 94%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--on-basalt);
  border-bottom: 1px solid color-mix(in srgb, var(--on-basalt) 10%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: flex; flex-direction: column; color: inherit; text-decoration: none; line-height: 1.1; }
.brand strong { font: 600 1.2rem/1.1 var(--display); letter-spacing: 0.01em; }
.brand span { font: 500 0.68rem/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-basalt-muted); }
.nav { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.75rem); font-size: 0.95rem; }
.nav a { color: var(--on-basalt); text-decoration: none; opacity: 0.85; }
.nav a:hover { opacity: 1; text-decoration: underline; }
.nav .btn { opacity: 1; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: var(--brass);
  color: #15110a;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--on-basalt); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on-basalt) 40%, transparent); }
.nav .btn { padding: 0.5rem 0.95rem; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero { background: var(--basalt); color: var(--on-basalt); padding-block: clamp(3rem, 8vw, 6rem) 0; overflow: hidden; }
.hero-grid { display: grid; gap: 2rem; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 500; letter-spacing: -0.015em; max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--brass); }
.hero .lead { color: var(--on-basalt-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.coords { font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.1em; color: var(--on-basalt-muted); }

.skyline { display: block; width: 100%; height: auto; margin-top: clamp(1.5rem, 5vw, 3.5rem); }
.skyline .ridge-back { fill: var(--basalt-2); }
.skyline .ridge-front { fill: var(--ground); }
.skyline .contour { fill: none; stroke: var(--brass); stroke-width: 1.25; opacity: 0.7; }
.skyline text { font: 500 11px var(--mono); letter-spacing: 0.08em; fill: var(--on-basalt-muted); }
.skyline .leader { stroke: var(--on-basalt-muted); stroke-width: 0.75; stroke-dasharray: 2 3; opacity: 0.6; }
@media (max-width: 640px) { .skyline .peak-label { display: none; } }

/* ---------- Facts ---------- */
.facts { padding-block: 1rem 3.5rem; }
.facts dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts div { padding: 1.4rem 1.25rem 1.3rem 0; }
.facts div + div { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.facts dt { font: 500 2.4rem/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.facts dd { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.4; }
@media (max-width: 760px) {
  .facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
section.block { padding-block: clamp(3.5rem, 8vw, 6rem); }
section.block + section.block { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 0.9rem; margin-bottom: 2.5rem; max-width: 44rem; }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; }
.service {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.6rem 1.5rem 1.5rem;
  display: grid; gap: 0.8rem; align-content: start;
}
.service ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.97rem; display: grid; gap: 0.3rem; }
.service .tag { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.service.ch { grid-column: 1 / -1; background: var(--basalt); color: var(--on-basalt); border-color: var(--basalt); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2.5rem; }
.service.ch > .ch-head { display: grid; gap: 0.8rem; align-content: start; }
@media (max-width: 760px) { .service.ch { grid-template-columns: 1fr; } }
.service.ch ul { color: var(--on-basalt-muted); }
.service.ch .tag { color: var(--brass); }

.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1.75rem;
  display: grid; gap: 1.1rem;
}
.portrait {
  margin: -1.75rem -1.75rem 0.25rem;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 35%, var(--portrait-glow), transparent 70%),
    var(--portrait-bg);
  border-bottom: 2px solid var(--brass);
}
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 598 / 795; object-fit: cover; object-position: top; }
.about-card dl { margin: 0; display: grid; gap: 0.8rem; }
.about-card dt { font: 500 0.7rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.about-card dd { margin: 0.15rem 0 0; }
.prose { display: grid; gap: 1.1rem; max-width: 38rem; }
.prose .note { font-size: 0.88rem; color: var(--muted); border-left: 2px solid var(--line); padding-left: 0.9rem; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.5rem 2rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 0.5rem; padding-top: 1rem; border-top: 2px solid var(--ink); }
.steps li::before { content: "Schritt " counter(step); font: 500 0.72rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); }
.steps p { color: var(--muted); font-size: 0.97rem; }

.region { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); }
.places { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.places li { padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.93rem; background: var(--paper); }
.places li.home { background: var(--basalt); color: var(--on-basalt); border-color: var(--basalt); }
@media (max-width: 860px) { .region { grid-template-columns: 1fr; } }

.faq { display: grid; gap: 0; max-width: 48rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 1.1rem; }
.faq summary { cursor: pointer; font: 600 1.12rem/1.35 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--brass); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 0.7rem; color: var(--muted); max-width: 42rem; }

/* ---------- Kontakt ---------- */
.contact { background: var(--basalt); color: var(--on-basalt); }
.contact .lead { color: var(--on-basalt-muted); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact address { font-style: normal; display: grid; gap: 1.2rem; }
.contact .line { display: grid; gap: 0.15rem; }
.contact .line span { font: 500 0.7rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-basalt-muted); }
.contact .line a, .contact .line strong { color: var(--on-basalt); font: 500 1.35rem/1.3 var(--display); text-decoration: none; }
.contact .line a:hover { text-decoration: underline; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--basalt); color: var(--on-basalt-muted); border-top: 1px solid color-mix(in srgb, var(--on-basalt) 12%, transparent); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.6rem calc(1.6rem + env(safe-area-inset-bottom, 0px)); }
.site-footer a { color: var(--on-basalt); }
.site-footer nav { display: flex; gap: 1.25rem; }

/* ---------- Rechtstexte ---------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal article { max-width: 44rem; display: grid; gap: 1.1rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 500; }
.legal h2 { font-size: 1.35rem; margin-top: 1.4rem; }
.legal h3 { font-size: 1.08rem; margin-top: 0.6rem; }
.legal ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.legal .meta { color: var(--muted); font-size: 0.93rem; }

/* Platzhalter: vor Veröffentlichung ausfüllen und Klasse entfernen */
.todo {
  background: var(--todo-bg);
  color: var(--todo-ink);
  border: 1px dashed currentColor;
  border-radius: 3px;
  padding: 0 0.3em;
  font-weight: 500;
}

/* ---------- Provision & Rechner ---------- */
.coords a { color: inherit; }
.fee { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 860px) { .fee { grid-template-columns: 1fr; } }
.calc {
  background: var(--basalt); color: var(--on-basalt);
  border-radius: 6px; padding: 1.75rem;
  display: grid; gap: 1rem;
}
.calc .tag { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); }
.calc label { font-size: 0.95rem; color: var(--on-basalt-muted); }
.calc output { font: 500 1.5rem/1.2 var(--display); color: var(--on-basalt); display: block; font-variant-numeric: tabular-nums; }
.calc input[type="range"] { width: 100%; accent-color: var(--brass); }
.calc-rows { margin: 0; display: grid; }
.calc-rows div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.6rem; border-top: 1px solid color-mix(in srgb, var(--on-basalt) 14%, transparent); }
.calc-rows dt { color: var(--on-basalt-muted); font-size: 0.95rem; }
.calc-rows dd { margin: 0; font-variant-numeric: tabular-nums; }
.calc-rows .mine dd { color: var(--on-basalt); font-weight: 600; }
.calc-rows .save dt { color: var(--on-basalt); font-weight: 600; }
.calc-rows .save dd { font: 600 1.6rem/1 var(--display); color: var(--brass); }
.calc-foot { font-size: 0.8rem; color: var(--on-basalt-muted); }

/* ---------- Datenschutzhinweis ---------- */
.notice {
  position: fixed; z-index: 20;
  left: 1rem; right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  max-width: 34rem; margin-inline: auto;
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 12px 32px rgba(10, 20, 16, 0.22);
  font-size: 0.92rem; line-height: 1.5;
}
.notice .btn { flex: none; }
@media (max-width: 520px) { .notice { flex-direction: column; align-items: stretch; } }
@media (prefers-reduced-motion: no-preference) {
  .notice { animation: notice-in 0.35s ease-out; }
  @keyframes notice-in { from { transform: translateY(12px); opacity: 0.4; } }
}
.site-footer nav { flex-wrap: wrap; }
.form-muster { border: 1px dashed var(--line); border-radius: 6px; padding: 1.25rem; display: grid; gap: 0.9rem; background: var(--paper); }

/* ---------- Modernisierung ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.hero h1 { font-size: clamp(2.6rem, 7.5vw, 5.6rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 13ch; }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); }
.lead { font-size: 1.2rem; }

.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; }
.eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; }

section.block { padding-block: clamp(4rem, 9vw, 7rem); }
.section-head { margin-bottom: 3rem; }

.btn { transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--brass) 35%, transparent); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--on-basalt); }

.facts dt { font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 400; letter-spacing: -0.03em; }

.service { border-radius: 12px; padding: 1.9rem 1.75rem; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.service:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brass) 55%, var(--line)); box-shadow: 0 14px 34px rgba(15, 25, 20, 0.08); }
.service h3 { font-size: 1.55rem; font-weight: 500; letter-spacing: -0.01em; }
.service ul { list-style: none; padding-left: 0; gap: 0.5rem; }
.service li { display: flex; gap: 0.6rem; }
.service li::before { content: "✓"; color: var(--brass); font-weight: 700; flex: none; }
.service.ch { border-radius: 12px; }

.about-card, .calc { border-radius: 12px; }
.portrait { border-radius: 12px 12px 0 0; }

.calc { box-shadow: 0 20px 50px rgba(15, 25, 20, 0.18); }
.calc-rows .save dd { font-size: 2rem; }

.steps li { border-top-width: 1px; padding-top: 1.25rem; }
.steps h3 { font-weight: 500; }

.places li { transition: border-color 0.2s ease; }
.places li:hover { border-color: var(--brass); }

.faq summary { font-weight: 500; font-size: 1.2rem; }

.contact .line a, .contact .line strong { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }

@media (prefers-reduced-motion: reduce) {
  .btn, .service, .places li { transition: none; }
  .btn:hover, .service:hover { transform: none; }
}

/* ---------- Start-Hinweis (verschwindet ab data-until automatisch) ---------- */
.launch { background: var(--brass); color: #15110a; font-size: 0.9rem; line-height: 1.45; }
.launch p { max-width: var(--wrap); margin-inline: auto; padding: 0.6rem var(--gutter); text-align: center; text-wrap: balance; }

/* ---------- Farbakzente Provision (stehen immer auf dunklem Basalt) ---------- */
:root { --pct-good: #8ccf9f; --pct-bad: #ec8a74; }
.hero h1 em.pct-new { color: var(--pct-good); font-style: italic; }
.hero h1 .pct-old { color: var(--pct-bad); }
.calc-rows div:first-child dt, .calc-rows div:first-child dd { color: var(--pct-bad); }
.calc-rows .mine dt, .calc-rows .mine dd { color: var(--on-basalt); }
.calc-rows .save dt, .calc-rows .save dd { color: var(--pct-good); }

/* ---------- Sprachauswahl ---------- */
.site-header .wrap { gap: 0.75rem; }
.nav { margin-inline-start: auto; }
.lang { position: relative; flex: none; }
.lang summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.45rem 0.7rem; border-radius: 999px;
  font: 600 0.78rem/1 var(--mono); letter-spacing: 0.08em;
  color: var(--on-basalt);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on-basalt) 35%, transparent);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: "▾"; font-size: 0.7rem; opacity: 0.8; }
.lang summary:hover { box-shadow: inset 0 0 0 1px var(--brass); }
.lang ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 0.5rem);
  margin: 0; padding: 0.4rem; list-style: none; min-width: 10rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 34px rgba(10, 20, 16, 0.2);
}
.lang li a {
  display: block; padding: 0.5rem 0.75rem; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-size: 0.95rem;
}
.lang li a:hover { background: var(--ground); }
.lang li a[aria-current] { color: var(--accent); font-weight: 600; }

.legal-lang { flex-basis: 100%; font-size: 0.8rem; opacity: 0.85; }

/* ---------- Arabisch / RTL ---------- */
:root[lang="ar"] {
  --display: "Geeza Pro", "Noto Naskh Arabic", "Traditional Arabic", "Segoe UI", Tahoma, serif;
  --body: "Geeza Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
}
[lang="ar"] body { line-height: 1.8; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3,
[lang="ar"] .eyebrow, [lang="ar"] .tag, [lang="ar"] .brand span,
[lang="ar"] .coords, [lang="ar"] .contact .line span, [lang="ar"] .about-card dt,
[lang="ar"] .steps li::before, [lang="ar"] .calc .tag { letter-spacing: 0; text-transform: none; }
[lang="ar"] .hero h1 { line-height: 1.25; }
[lang="ar"] em { font-style: normal; }
[dir="rtl"] .facts div { padding: 1.4rem 0 1.3rem 1.25rem; }
[dir="rtl"] .facts div + div { padding-left: 1.25rem; padding-right: 1.25rem; border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .prose .note { border-left: 0; padding-left: 0; border-right: 2px solid var(--line); padding-right: 0.9rem; }
[dir="rtl"] a[href^="tel:"], [dir="rtl"] a[href^="mailto:"] { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .skyline { transform: scaleX(-1); }
[dir="rtl"] .skyline text { display: none; }
[lang="ar"] .steps li::before { content: "الخطوة " counter(step, arabic-indic); }
@media (max-width: 760px) {
  [dir="rtl"] .facts div:nth-child(3) { border-right: 0; padding-right: 0; }
}
[lang="en"] .steps li::before { content: "Step " counter(step); }
[lang="fr"] .steps li::before { content: "Étape " counter(step); }
[lang="tr"] .steps li::before { content: "Adım " counter(step); }

/* ---------- „Bares Geld sparen" ---------- */
.hero .cash {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.5rem 1rem 0.5rem 0.8rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pct-good) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pct-good) 55%, transparent);
  color: var(--pct-good);
  font: 600 clamp(1rem, 2.2vw, 1.25rem)/1.1 var(--body);
  margin-bottom: -0.75rem;
}
.hero .cash::before { content: "€"; display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--pct-good); color: var(--basalt); font-size: 0.85em; font-weight: 700; }

/* ---------- Haus als Bleistiftzeichnung im Hero ---------- */
.hero .wrap { position: relative; }
.hero-grid > :not(.hero-house) { position: relative; z-index: 1; }
.hero-house {
  position: absolute; z-index: 0; pointer-events: none;
  inset-inline-end: var(--gutter); top: -0.5rem;
  width: clamp(220px, 27vw, 360px); height: auto;
  overflow: visible;
}
.hero-house .sketch, .hero-house .smoke {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.hero-house .sketch { stroke: var(--on-basalt); stroke-width: 1.6; opacity: 0.75; }
.hero-house .sketch .ghost { stroke-width: 1; opacity: 0.45; }
.hero-house .smoke { stroke: var(--brass); stroke-width: 1.4; opacity: 0.8; }
@media (max-width: 960px) {
  .hero-house {
    top: 1.5rem; inset-inline-end: -12%;
    width: min(92vw, 520px);
    opacity: 0.16;
  }
  .hero-house .sketch, .hero-house .smoke { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-house path, .hero-house rect, .hero-house circle {
    stroke-dasharray: 900; stroke-dashoffset: 0;
    animation: sketch-in 2.4s ease-out both;
  }
  .hero-house .smoke { animation-delay: 1.2s; }
  @keyframes sketch-in { from { stroke-dashoffset: 900; } }
}

/* ---------- Ratgeber ---------- */
.guide-hero { background: var(--basalt); color: var(--on-basalt); padding-block: clamp(3rem, 7vw, 5rem) clamp(5rem, 9vw, 7rem); }
.guide-hero .wrap { display: grid; gap: 1.1rem; }
.guide-hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; max-width: 18ch; }
.guide-hero .lead { color: var(--on-basalt-muted); }
.guide .tag { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); }

.guide-top { margin-top: clamp(-4rem, -6vw, -3rem); position: relative; }
.big-mistake {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: 0 24px 60px rgba(15, 25, 20, 0.12);
  display: grid; gap: 1.25rem; justify-items: start;
}
.big-mistake h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.mistake-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.25rem 2rem; width: 100%; }
.mistake-grid > div { display: grid; gap: 0.35rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.mistake-grid strong { font: 600 1.15rem/1.2 var(--display); }
.mistake-grid p { color: var(--muted); font-size: 0.98rem; }
.mistake-grid .bad { color: #b4533f; }
.mistake-grid .good { color: #3f8a5a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mistake-grid .bad { color: var(--pct-bad); } :root:not([data-theme="light"]) .mistake-grid .good { color: var(--pct-good); } }
:root[data-theme="dark"] .mistake-grid .bad { color: var(--pct-bad); }
:root[data-theme="dark"] .mistake-grid .good { color: var(--pct-good); }

.guide-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: clamp(2.5rem, 6vw, 5rem); padding-block: clamp(4rem, 8vw, 6rem); }
.guide-col { display: grid; gap: 1rem; align-content: start; }
.guide-col h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 0.5rem; }
.points { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: pt; }
.points li { counter-increment: pt; display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 0.9rem; row-gap: 0.25rem; padding-block: 1.1rem; border-top: 1px solid var(--line); }
.points li::before { content: counter(pt, decimal-leading-zero); grid-row: span 2; font: 500 0.85rem/1.6 var(--mono); color: var(--brass); }
.points h3 { font-size: 1.2rem; font-weight: 500; }
.points p { color: var(--muted); font-size: 0.98rem; }

.guide-cta { padding-block: 0 clamp(4rem, 8vw, 6rem); display: grid; gap: 1rem; }
.cta-box { background: var(--basalt); color: var(--on-basalt); border-radius: 14px; padding: clamp(1.75rem, 5vw, 3rem); display: grid; gap: 1rem; justify-items: start; }
.cta-box h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-box > p:not(.cash) { color: var(--on-basalt-muted); max-width: 40rem; }
.cta-box .cash {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.95rem 0.45rem 0.75rem; border-radius: 999px;
  background: color-mix(in srgb, var(--pct-good) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pct-good) 55%, transparent);
  color: var(--pct-good); font-weight: 600;
}
.cta-box .cash::before { content: "€"; display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--pct-good); color: var(--basalt); font-size: 0.85em; font-weight: 700; }
.guide-cta .note { font-size: 0.85rem; color: var(--muted); }

/* Start-Hinweis in Rot (passend zum Ziegelrot der Seite) */
.launch { background: #a8352a; color: #fff; }
.launch strong { color: #fff; }

/* ---------- Karte im Einsatzgebiet ---------- */
section.has-map { position: relative; overflow: hidden; }
section.has-map > .wrap { position: relative; z-index: 1; }
.region-map {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  opacity: 0.55; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 60% 50%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 90% at 60% 50%, #000 40%, transparent 100%);
}
.region-map .map-grid path { stroke: var(--line); stroke-width: 1; fill: none; opacity: 0.6; vector-effect: non-scaling-stroke; }
.region-map .map-water path { fill: color-mix(in srgb, var(--accent) 16%, transparent); stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.region-map .map-river path { fill: none; stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.region-map .map-lake { font: italic 500 18px var(--display); fill: color-mix(in srgb, var(--accent) 70%, transparent); }
.region-map .map-peak { fill: none; stroke: var(--brass); stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.region-map .map-town circle { fill: var(--brass); }
.region-map .map-town .ring { fill: none; stroke: var(--brass); stroke-width: 1.5; opacity: 0; vector-effect: non-scaling-stroke; transition: opacity 0.3s ease; }
.region-map .map-town text { font: 500 11px var(--mono); fill: var(--muted); letter-spacing: 0.02em; }
.region-map .map-town.home circle:first-child { fill: var(--accent); }
.region-map .map-town.active .ring { opacity: 1; }
.region-map .map-town.active text { fill: var(--ink); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .region-map .map-town.active .ring { animation: map-pulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes map-pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
}
@media (max-width: 860px) { .region-map { opacity: 0.35; -webkit-mask-image: none; mask-image: none; } }

.places li { padding: 0; border: 0; background: none; }
.places button {
  font: inherit; font-size: 0.93rem; cursor: pointer;
  padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 88%, transparent); color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.places button:hover { border-color: var(--brass); }
.places button[aria-pressed="true"] { background: var(--basalt); color: var(--on-basalt); border-color: var(--basalt); }
.places .map-reset { border-style: dashed; color: var(--muted); }
.region-map { --z: 1; }
.region-map .map-town text { font-size: calc(12px * var(--z)); }
.region-map .map-town circle:first-child { r: calc(4px * var(--z)); }
.region-map .map-town .ring { r: calc(12px * var(--z)); }
.region-map .map-lake { font-size: calc(20px * var(--z)); }

/* ---------- Anfrage-Formular ---------- */
.inquiry {
  width: min(560px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem);
  padding: 0; border: 1px solid var(--line); border-radius: 14px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 80px rgba(10, 20, 16, 0.35);
}
.inquiry::backdrop { background: rgba(15, 22, 19, 0.55); backdrop-filter: blur(3px); }
.inquiry form { display: grid; gap: 0.9rem; padding: clamp(1.25rem, 4vw, 2rem); }
.inquiry-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.inquiry-head h2 { font-size: 1.9rem; }
.inquiry-close { font-size: 1.8rem; line-height: 1; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0.2rem 0.4rem; border-radius: 6px; }
.inquiry-close:hover { color: var(--ink); background: var(--ground); }
.inquiry-lead { color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.35rem; font-size: 0.9rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--ground); border: 1px solid var(--line); border-radius: 8px;
  padding: 0.7rem 0.8rem; width: 100%;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: transparent; }
.inquiry .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.inquiry .btn[disabled] { opacity: 0.6; cursor: wait; }
.form-note { font-size: 0.8rem; color: var(--muted); }
.form-status { font-weight: 600; }
.form-status.ok { color: #3f8a5a; }
.form-status.err { color: #b4533f; }
.hp { position: absolute; left: -9999px; }
.contact .btn[data-open-inquiry] { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
