/* Joshua Ax Immobilien – Stylesheet */

@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/ebgaramond.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  /* Farbwelt „Salbei & Messing“ (2026-10-27): Salbeigrün für Buttons/Akzente, Messing für kleine Überschriften und Zahlen, gebrochenes Weiß als Grundfläche; Logo bleibt gold */
  --accent: #3f6550;
  --accent-dark: #2f4d3d;
  --accent-soft: #eaf0eb;
  --brass: #866a3e;
  --brass-light: var(--brass-light);
  --ink: #26221d;
  --ink-soft: #5b544b;
  --line: #dfe4dc;
  --page: #fbfaf6;
  --paper: #ffffff;
  --paper-warm: #f1f4ef;
  --footer: #1f2e27;
  --tile: #eef2ec;
  --tile-hover: #e6ede7;
  --tile-on: #dde8e0;
  --tile-line: #c6d3ca;
  --field-line: #c3cdc5;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1080px;
  --radius: 4px;
}

*, *::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(--page);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
}

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

a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100;
  font-family: var(--sans); font-size: 0.95rem;
}
.skip:focus { left: 8px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--accent);
}
.brand img { width: 54px; height: auto; }
.brand-text {
  font-family: var(--sans); font-weight: 400;
  font-size: 0.82rem; letter-spacing: 0.16em; line-height: 1.35;
  text-transform: uppercase;
}
.brand-text span { display: block; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-family: var(--sans); font-size: 0.9rem; color: var(--ink);
  text-decoration: none;
}
.nav a:hover { color: var(--accent-dark); }
.nav .nav-phone {
  border: 1px solid var(--accent); color: var(--accent-dark);
  padding: 8px 14px; border-radius: var(--radius); font-weight: 600;
  white-space: nowrap;
}
.nav .nav-phone:hover { background: var(--accent); color: #fff; }

@media (max-width: 860px) {
  .nav a:not(.nav-phone) { display: none; }
}
@media (max-width: 420px) {
  .brand img { width: 44px; }
  .brand-text { font-size: 0.72rem; }
  .nav .nav-phone { padding: 7px 10px; font-size: 0.82rem; }
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--serif); font-weight: 500; color: var(--ink);
  line-height: 1.15; margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.45rem; font-weight: 600; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 14px;
}

.lead { font-size: 1.4rem; color: var(--ink-soft); }

.rule {
  width: 56px; height: 1px; background: var(--accent); border: 0; margin: 0 0 28px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  padding: 14px 22px; border-radius: var(--radius);
  text-decoration: none; border: 1px solid var(--accent);
  cursor: pointer; transition: background .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent-dark); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 520px) {
  .btn-row .btn { flex: 1 1 100%; }
}

/* ---------- Sections ---------- */

section { padding: 96px 0; }
section.tint { background: var(--paper-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { section { padding: 64px 0; } }

.section-head { max-width: 680px; margin-bottom: 48px; }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero .wrap {
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 64px; align-items: center;
}
.hero-note {
  display: inline-block; font-family: var(--sans); font-size: 0.92rem;
  color: var(--ink-soft); background: var(--accent-soft);
  border-left: 2px solid var(--accent); padding: 10px 14px; margin-bottom: 28px;
  line-height: 1.5;
}
.hero-photo { margin: 0; }
.hero-photo picture {
  display: block; padding: 10px; background: var(--paper);
  border: 1px solid var(--accent); border-radius: var(--radius);
}
.hero-photo img {
  display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: 50% 18%;
  border-radius: 2px;
}
.hero-photo figcaption {
  font-family: var(--sans); font-size: 0.85rem; color: var(--ink-soft);
  margin-top: 22px; line-height: 1.45;
}
.hero-photo figcaption strong { display: block; color: var(--ink); font-weight: 600; font-size: 0.95rem; }

@media (max-width: 860px) {
  .hero { padding: 40px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo {
    order: -1; display: flex; align-items: center; gap: 20px;
  }
  .hero-photo picture { width: 128px; flex: none; padding: 6px; }
  .hero-photo img { aspect-ratio: 4 / 5; }
  .hero-photo figcaption { margin-top: 0; }
}

/* Über mich */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 40px; } }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--accent); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: 10px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
}
.timeline .when {
  display: block; font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.timeline strong { font-weight: 600; }

/* Versprechen */
.promises {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.promise { background: var(--paper); padding: 34px 32px; }
.promise h3 { margin-bottom: 8px; }
.promise p { margin: 0; color: var(--ink-soft); font-size: 1.15rem; }
.promise .num {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600; color: var(--accent);
  letter-spacing: 0.1em; display: block; margin-bottom: 10px;
}
@media (max-width: 700px) {
  .promises { grid-template-columns: 1fr; }
  .promise { padding: 28px 22px; }
}

/* Einschätzung */
.estimate { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .estimate { grid-template-columns: 1fr; gap: 40px; } }

.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.small { font-family: var(--sans); font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }

/* Formular */
.form {
  background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  padding: 34px; border-radius: var(--radius);
}
@media (max-width: 520px) { .form { padding: 24px 18px; } }
.form h3 { margin-bottom: 20px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.field label {
  display: block; font-family: var(--sans); font-size: 0.85rem; font-weight: 600;
  margin-bottom: 6px; color: var(--ink);
}
.field label .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--field-line); border-radius: var(--radius);
  padding: 12px 12px; line-height: 1.4;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(63, 101, 80, 0.18);
}
.form .btn { width: 100%; margin-top: 6px; }
.form .small { margin: 16px 0 0; }
.hidden { position: absolute; left: -9999px; }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--serif); font-size: 2.6rem; color: var(--accent);
  line-height: 1; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.steps h3 { font-size: 1.3rem; margin-bottom: 6px; }
.steps p { color: var(--ink-soft); font-size: 1.12rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 36px; } }

.costs {
  margin-top: 56px; padding: 28px 32px; background: var(--paper);
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
}
.costs h3 { margin-bottom: 6px; }
.costs p:last-child { margin-bottom: 0; }

/* Region */
.region-list {
  display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 24px 0 0;
}
.region-list li {
  font-family: var(--sans); font-size: 0.92rem; padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
}

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 36px; } }
.contact-card { border-top: 1px solid var(--line); }
.contact-line {
  display: flex; align-items: center; gap: 16px; padding: 18px 0;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.contact-line svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.contact-line .label {
  display: block; font-family: var(--sans); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}
.contact-line .value { font-size: 1.3rem; }
a.contact-line:hover .value { color: var(--accent-dark); }

/* Footer */
.site-footer {
  background: var(--footer); color: #d9d2c6; padding: 48px 0 40px;
  font-family: var(--sans); font-size: 0.9rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer a { color: #d9d2c6; }
.site-footer a:hover { color: #fff; }
.site-footer nav { display: flex; gap: 22px; }
@media (max-width: 860px) { .site-footer { padding-bottom: 104px; } }

/* Mobile-Aktionsleiste */
.mobile-bar { display: none; }
@media (max-width: 860px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--line); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: #fff; color: var(--accent-dark); text-decoration: none;
    font-family: var(--sans); font-weight: 600; font-size: 0.98rem; padding: 15px 8px;
  }
  .mobile-bar a:first-child { background: var(--accent); color: #fff; }
  .mobile-bar svg { width: 18px; height: 18px; }
}

/* Rechtstexte */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); }
.legal h2 { font-size: 1.6rem; margin-top: 2em; }
.legal h3 { font-size: 1.25rem; margin-top: 1.5em; }
.legal p, .legal li { font-size: 1.12rem; }
.legal address { font-style: normal; margin-bottom: 1em; }
.todo {
  background: #fff3cd; color: #6b4e00; font-family: var(--sans); font-size: 0.85em;
  padding: 1px 6px; border-radius: 3px; border: 1px dashed #d4a72c;
}

section[id] { scroll-margin-top: 80px; }

/* Referenzen */
.refs {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px;
}
.ref {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-top: 2px solid var(--accent); padding: 22px 22px 20px; border-radius: var(--radius);
}
.ref h3 { font-size: 1.3rem; margin: 0 0 2px; hyphens: auto; }
.ref-year {
  display: block; margin-bottom: 10px;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600; color: var(--accent);
  letter-spacing: 0.08em;
}
.ref-place { margin: 0 0 12px; color: var(--ink); font-size: 1.1rem; }
.ref-via {
  margin: 0; font-family: var(--sans); font-size: 0.78rem; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.refs-note { margin-top: 24px; max-width: 680px; }
@media (max-width: 520px) { .refs { grid-template-columns: 1fr; gap: 12px; } }
#verkauft + section { border-top: 1px solid var(--line); }

/* Kennzahlen */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); margin: -16px 0 32px;
}
.stats div { background: var(--paper-warm); padding: 22px 24px; }
.stats strong {
  display: block; font-family: var(--serif); font-weight: 500; font-size: 2.6rem;
  line-height: 1; color: var(--accent); margin-bottom: 6px;
}
.stats span { font-family: var(--sans); font-size: 0.88rem; color: var(--ink-soft); line-height: 1.4; display: block; }
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stats div { display: flex; align-items: baseline; gap: 14px; padding: 16px 18px; }
  .stats strong { font-size: 2rem; margin: 0; min-width: 72px; }
}
.stats strong { white-space: nowrap; }
@media (max-width: 640px) { .stats strong { min-width: 118px; } }

/* Header-Button */
.nav .nav-cta {
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  padding: 8px 14px; border-radius: var(--radius); font-weight: 600; white-space: nowrap;
}
.nav .nav-cta:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
@media (max-width: 1060px) { .nav { gap: 18px; } }
@media (max-width: 860px) { .nav .nav-cta { display: none; } }

.hero-meta { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-soft); margin: 18px 0 0; }

/* Leistungen */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--paper); padding: 30px 32px; }
.service h3 { font-size: 1.35rem; margin-bottom: 8px; }
.service p { margin: 0; color: var(--ink-soft); font-size: 1.12rem; }
.service a { display: inline-block; margin-top: 12px; font-family: var(--sans); font-size: 0.92rem; font-weight: 600; text-decoration: none; }
@media (max-width: 720px) { .services { grid-template-columns: 1fr; } .service { padding: 24px 20px; } }

/* Anliegen-Auswahl im Formular */
.choice { border: 0; padding: 0; margin: 0 0 18px; }
.choice legend { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice legend { grid-column: 1 / -1; }
.choice label {
  display: flex; align-items: center; gap: 8px; margin: 0;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 400;
  border: 1px solid var(--field-line); border-radius: var(--radius); padding: 10px 12px; cursor: pointer;
}
.choice input { width: auto; accent-color: var(--accent); margin: 0; }
.choice label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 520px) { .choice { grid-template-columns: 1fr; } }

/* Häufige Fragen */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative;
  font-size: 1.25rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 16px;
  font-family: var(--sans); font-size: 1.4rem; color: var(--accent);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 22px; color: var(--ink-soft); font-size: 1.12rem; max-width: 720px; }

/* Mobile-Leiste mit drei Feldern */
@media (max-width: 860px) { .mobile-bar { grid-template-columns: 1.2fr 1fr 1fr; } }

/* Trennlinie zwischen zwei weißen Abschnitten */
main > section:not(.tint) + section:not(.tint) { border-top: 1px solid var(--line); }
#anfrage { scroll-margin-top: 84px; }

/* ---------- Bewertung in Schritten ---------- */
.wz-head { display: none; }
.wz-on .wz-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.wz-count { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.wz-bar { flex: 1; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.wz-bar span { display: block; height: 100%; width: 16.6%; background: var(--accent); transition: width .25s ease; }
.wz-step { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.wizard:not(.wz-on) .wz-step { margin-bottom: 28px; }
.wz-step legend { font-family: var(--serif); font-size: 1.55rem; line-height: 1.2; color: var(--ink); margin-bottom: 18px; padding: 0; }
.wz-hint { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); margin: -8px 0 18px; }
.wz-step [hidden] { display: none !important; }

.tiles { display: grid; gap: 10px; }
.tiles-4 { grid-template-columns: 1fr 1fr; }
.tile {
  position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1px solid var(--tile-line); border-radius: var(--radius); background: var(--tile);
  padding: 16px; font-family: var(--sans); color: var(--ink);
  transition: border-color .15s, background .15s;
}
.tile:hover { border-color: var(--accent); background: var(--tile-hover); }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile:has(input:checked) { border-color: var(--accent); background: var(--tile-on); box-shadow: inset 0 0 0 1px var(--accent); }
.tile:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tiles-4 .tile { flex-direction: column; justify-content: center; text-align: center; min-height: 118px; font-weight: 600; font-size: 0.95rem; hyphens: auto; }
.tiles-4 .tile svg { width: 40px; height: 40px; color: var(--accent); }
.tiles-list .tile { padding: 14px 16px; }
.tiles-list .tile strong { display: block; font-weight: 600; font-size: 0.98rem; }
.tiles-list .tile small { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-top: 2px; }
.tiles-list .tile::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid #a9b8ad; background: #fff;
}
.tiles-list .tile:has(input:checked)::before { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 4px, #fff 5px); }

.unit { display: flex; }
.unit input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.unit span { display: flex; align-items: center; padding: 0 12px; font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); background: var(--paper-warm); border: 1px solid var(--field-line); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; }
.field-row-plz { grid-template-columns: 0.42fr 1fr; }
@media (max-width: 520px) { .field-row-plz { grid-template-columns: 0.42fr 1fr; gap: 12px; } }
.field.is-bad input, .field.is-bad select { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12); }
.wz-error { font-family: var(--sans); font-size: 0.9rem; color: #b3261e; margin: 4px 0 12px; }

.wz-nav { display: flex; gap: 10px; margin-top: 10px; }
.wizard .wz-nav .btn { width: auto; margin-top: 0; flex: 1; }
.wizard .wz-nav #wz-back { flex: 0 0 auto; }
.wz-nav [hidden] { display: none; }
.wizard:not(.wz-on) #wz-back, .wizard:not(.wz-on) #wz-next { display: none; }

/* Kacheln und Auswahlfelder wie Buttons: leicht erhaben, beim Darüberfahren angehoben, gewählt = gedrückt */
.tile, .choice label {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 1px 2px rgba(38, 34, 29, 0.10), 0 3px 8px rgba(38, 34, 29, 0.06);
  transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}
.choice label { background: var(--tile); border-color: var(--tile-line); }
.tile:hover, .choice label:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 3px 6px rgba(38, 34, 29, 0.12), 0 8px 18px rgba(38, 34, 29, 0.08);
}
.tile:active, .choice label:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(38, 34, 29, 0.10) inset; }
.tile:has(input:checked), .choice label:has(input:checked) {
  transform: none;
  box-shadow: inset 0 0 0 1px var(--accent), inset 0 2px 4px rgba(38, 34, 29, 0.10);
}
.choice label:has(input:checked) { background: var(--tile-on); }
@media (prefers-reduced-motion: reduce) { .tile, .choice label { transition: none; } .tile:hover, .choice label:hover { transform: none; } }

/* Alle Buttons einheitlich erhaben: Schatten, beim Darüberfahren angehoben, beim Klicken gedrückt */
.btn, .nav .nav-phone, .nav .nav-cta {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 1px 2px rgba(38, 34, 29, 0.14), 0 4px 10px rgba(38, 34, 29, 0.08);
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn-ghost, .nav .nav-phone { background: var(--tile); border-color: var(--tile-line); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 1px 2px rgba(38, 34, 29, 0.10), 0 3px 8px rgba(38, 34, 29, 0.06); }
.btn:hover, .nav .nav-phone:hover, .nav .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 3px 6px rgba(38, 34, 29, 0.16), 0 10px 20px rgba(38, 34, 29, 0.10);
}
.btn:active, .nav .nav-phone:active, .nav .nav-cta:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(38, 34, 29, 0.22); }
.btn-ghost:hover { background: var(--tile-on); }

/* Mobile Leiste: drei klar getrennte Buttons */
@media (max-width: 860px) {
  .mobile-bar { gap: 8px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(251, 250, 246, 0.97); box-shadow: 0 -4px 14px rgba(38, 34, 29, 0.08); }
  .mobile-bar a { border-radius: var(--radius); padding: 12px 6px; background: var(--tile); border: 1px solid var(--tile-line); box-shadow: 0 1px 2px rgba(38, 34, 29, 0.12); }
  .mobile-bar a:first-child { border-color: var(--accent); }
  .mobile-bar a:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(38, 34, 29, 0.2); }
  .site-footer { padding-bottom: 116px; }
}
@media (prefers-reduced-motion: reduce) { .btn, .nav a { transition: none; } .btn:hover, .nav a:hover { transform: none; } }

/* ---------- Ratgeber ---------- */
.article { padding: 48px 0 96px; }
.article .wrap { max-width: 800px; }
.crumbs { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 28px; }
.crumbs a { color: var(--ink-soft); }
.crumbs span { margin: 0 6px; color: var(--accent); }
.article h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); line-height: 1.12; margin-bottom: 14px; }
.art-meta { font-family: var(--sans); font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 32px; }
.art-kurz { background: var(--paper-warm); border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 22px 26px; margin-bottom: 32px; border-radius: var(--radius); }
.art-kurz-label { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.art-kurz ul { margin: 0; padding-left: 20px; }
.art-kurz li { font-size: 1.12rem; margin-bottom: 6px; }
.art-kurz li:last-child { margin-bottom: 0; }
.art-toc { margin-bottom: 40px; font-family: var(--sans); font-size: 0.95rem; }
.art-toc p { font-weight: 600; margin: 0 0 6px; }
.art-toc ol { margin: 0; padding-left: 20px; }
.art-toc li { margin-bottom: 4px; }
.art-body h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 1.8em 0 0.5em; scroll-margin-top: 90px; }
.art-body h3 { font-size: 1.3rem; margin: 1.4em 0 0.4em; }
.art-body p, .art-body li { font-size: 1.18rem; line-height: 1.65; }
.art-body li { margin-bottom: 8px; }
.art-body ol, .art-body ul { padding-left: 22px; }
.art-body table { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-family: var(--sans); font-size: 0.92rem; }
.art-body th, .art-body td { text-align: left; vertical-align: top; padding: 12px 12px; border-bottom: 1px solid var(--line); }
.art-body th { font-weight: 600; background: var(--paper-warm); }
@media (max-width: 640px) {
  .art-body table, .art-body tbody, .art-body tr, .art-body td { display: block; width: 100%; }
  .art-body thead { display: none; }
  .art-body tr { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; padding: 6px 4px; }
  .art-body td { border: 0; padding: 4px 10px; }
}
.art-cta { margin: 56px 0 32px; padding: 32px; background: var(--paper-warm); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); }
.art-cta h2 { font-size: 1.9rem; margin-bottom: 8px; }
.art-cta p { margin-bottom: 0; }
.art-cta .btn-row { margin-top: 20px; }
.art-author { display: flex; gap: 20px; align-items: flex-start; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.art-author img { width: 80px; height: 104px; object-fit: cover; object-position: 50% 18%; border-radius: var(--radius); flex: none; }
.art-author p { margin: 0 0 8px; }
.art-related { margin-top: 40px; }
.art-related h2 { font-size: 1.6rem; margin-bottom: 14px; }
.art-related ul, .guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.art-related a, .guide-card {
  display: block; text-decoration: none; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: var(--radius); padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(38, 34, 29, 0.08), 0 3px 8px rgba(38, 34, 29, 0.05);
  transition: box-shadow .15s, transform .15s;
}
.art-related a:hover, .guide-card:hover { transform: translateY(-1px); box-shadow: 0 3px 6px rgba(38, 34, 29, 0.12), 0 10px 20px rgba(38, 34, 29, 0.08); color: var(--ink); }
.art-related strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.25rem; margin-bottom: 4px; }
.art-related span { display: block; color: var(--ink-soft); font-size: 1.05rem; }
.guide-list { margin-top: 36px; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .guide-list { grid-template-columns: 1fr; } }
.guide-card { height: 100%; padding: 26px; }
.guide-card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.guide-card p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 14px; }
.guide-more { font-family: var(--sans); font-size: 0.9rem; font-weight: 600; color: var(--accent-dark); }
.guide-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
#ratgeber .guide-list { margin-top: 0; }

/* Startseite auf dem Handy: Überschrift und Button sofort sichtbar */
@media (max-width: 860px) {
  .hero { padding: 24px 0 48px; }
  .hero .wrap { gap: 22px; }
  .hero .wrap > div:first-child { display: flex; flex-direction: column; }
  .hero .eyebrow { order: 1; margin-bottom: 10px; }
  .hero h1 { order: 2; font-size: clamp(1.9rem, 8vw, 2.5rem); margin-bottom: 4px; }
  .hero .btn-row { order: 3; margin-top: 18px; }
  .hero .lead { order: 4; font-size: 1.18rem; margin: 22px 0 0; }
  .hero-meta { order: 5; }
  .hero-note { order: 6; display: none; margin: 20px 0 0; }
  body.from-brief .hero-note { display: block; order: 0; margin: 0 0 18px; }
  .hero-photo picture { width: 96px; padding: 5px; }
  .hero-photo { gap: 16px; }
}

/* Arbeitsweise als Leiste unter den Leistungen */
.promise-strip { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.promise-strip li { position: relative; padding-left: 26px; font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }
.promise-strip li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.promise-strip strong { display: block; color: var(--ink); font-size: 0.95rem; margin-bottom: 2px; }
@media (max-width: 900px) { .promise-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .promise-strip { grid-template-columns: 1fr; gap: 14px; } }

/* Verkaufskarten einklappen */
.refs.is-collapsed .ref:nth-child(n+9) { display: none; }
.refs-more { margin-top: 20px; }

/* Kennzahlen etwas kräftiger */
.stats strong { font-size: 3.1rem; }
@media (max-width: 640px) { .stats strong { font-size: 2.3rem; } }

/* Footer */
.site-footer { padding: 56px 0 0; }
.site-footer .wrap.footer-grid { display: grid; grid-template-columns: 1.3fr 0.9fr 1.1fr 1.1fr; gap: 36px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 600; margin-bottom: 14px; }
.footer-logo:hover { text-decoration: none !important; }
.footer-logo img { width: 46px; filter: brightness(1.6); }
.site-footer p { margin: 0 0 10px; line-height: 1.6; }
.footer-small { font-size: 0.82rem; color: #b5ad9f; }
.footer-head { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 12px !important; }
.footer-places { font-size: 0.88rem; color: #b5ad9f; }
.site-footer .footer-cta { margin-top: 8px; padding: 10px 16px; font-size: 0.9rem; color: #fff; }
.site-footer .footer-cta:hover { text-decoration: none; color: #fff; }
.site-footer .wrap.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 40px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.82rem; color: #b5ad9f; }
@media (max-width: 900px) { .site-footer .wrap.footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .wrap.footer-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 860px) { .site-footer { padding-bottom: 0; } .site-footer .wrap.footer-bottom { padding-bottom: 104px; } }

/* Kopfzeile: fester Abstand Logo–Menü; Menüpunkte fallen bei weniger Breite weg statt zu drängeln */
.nav a { white-space: nowrap; }
.site-header .wrap { gap: 48px; }
.brand { flex: none; }
.nav { gap: 24px; }
.site-header .wrap { max-width: 1200px; }
@media (max-width: 1180px) { .nav { gap: 20px; } .nav a[href="#verkauft"], .nav a[href="/#verkauft"] { display: none; } }
@media (max-width: 1040px) { .nav a[href="#kontakt"], .nav a[href="/#kontakt"] { display: none; } }

/* Kundenstimmen */
.stimmen { padding-bottom: 56px; }
.stimmen .section-head { margin-bottom: 28px; }
.quotes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.quote {
  position: relative; background: var(--paper-warm); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px 24px; box-shadow: 0 1px 2px rgba(38, 34, 29, 0.06);
}
.quote { border-left: 3px solid var(--accent); padding-top: 26px; }
.quote blockquote { margin: 0 0 18px; font-family: var(--serif); font-size: 1.45rem; line-height: 1.4; color: var(--ink); }
.quote-who { margin: 0; font-family: var(--sans); font-size: 0.85rem; color: var(--ink-soft); }
.quote-who strong { display: block; color: var(--ink); font-size: 0.95rem; }
.quotes:has(> li:only-child) { grid-template-columns: minmax(0, 640px); }


/* Messing für kleine Überschriften, Jahreszahlen und Kennzahlen */
.eyebrow, .stats strong, .ref-year, .timeline .when, .art-kurz-label, .steps li::before, .footer-head { color: var(--brass); }
.footer-head { color: var(--brass-light); }

/* Logo als zartes Wasserzeichen (5 % Deckkraft) auf jeder Seite */
.hero, #einschaetzung, #nachricht, main.article, main.legal { position: relative; overflow: hidden; isolation: isolate; }
.hero::after, #einschaetzung::after, #nachricht::after, main.article::after, main.legal::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  background: url(/assets/motiv-logo.svg) no-repeat center / contain; opacity: 0.05;
}
.hero::after { width: 900px; height: 510px; right: -160px; bottom: -40px; }
#einschaetzung::after { width: 760px; height: 430px; left: -220px; bottom: -30px; }
#nachricht::after { width: 600px; height: 340px; left: -180px; bottom: -20px; }
main.article::after, main.legal::after { width: 760px; height: 430px; right: -260px; top: 60px; }
@media (max-width: 860px) {
  .hero::after { width: 520px; height: 295px; right: -180px; bottom: 0; opacity: 0.05; }
  main.article::after, main.legal::after { width: 460px; height: 260px; right: -200px; top: 20px; opacity: 0.05; }
}

/* Vertrauensleiste unter dem Einstieg */
.trust { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0 auto; padding-top: 22px; padding-bottom: 22px; }
.trust li { display: flex; align-items: center; gap: 12px; font-family: var(--sans); font-size: 0.88rem; color: var(--ink-soft); line-height: 1.35; }
.trust svg { width: 30px; height: 30px; flex: none; color: var(--accent); }
.trust strong { display: block; color: var(--ink); font-size: 0.95rem; font-weight: 600; }
@media (max-width: 900px) { .trust ul { grid-template-columns: 1fr 1fr; gap: 16px 14px; } }
@media (max-width: 380px) { .trust ul { grid-template-columns: 1fr; } }

/* Logo kräftiger: Name dunkel und fett, „Immobilien“ in Messing */
.brand img { width: 62px; }
.brand-text { font-size: 0.86rem; letter-spacing: 0.14em; }
.brand-text span:first-child { color: var(--ink); font-weight: 600; }
.brand-text span:last-child { color: var(--brass); }
@media (max-width: 420px) { .brand img { width: 52px; } .brand-text { font-size: 0.8rem; } }

/* Verkaufskarten mit Symbol je Objektart */
.ref-icon { position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; color: var(--accent); opacity: 0.85; }
.ref h3 { padding-right: 34px; }

/* Symbole in den Leistungs-Kacheln */
.service-icon { width: 36px; height: 36px; color: var(--accent); margin-bottom: 10px; display: block; }

/* Gebietskarte */
.region { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .region { grid-template-columns: 1fr; gap: 28px; } }
.region-map { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: 0 1px 2px rgba(38, 34, 29, 0.06); }
.region-map svg { display: block; width: 100%; height: auto; }
.m-city { fill: var(--accent-soft); stroke: var(--tile-line); stroke-width: 1; }
.m-river { fill: none; stroke: #9db7c4; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; }
.m-river-label { font: italic 13px var(--serif); fill: #6f8f9e; }
.m-area { font: italic 18px var(--serif); fill: var(--brass); opacity: 0.6; letter-spacing: 0.2em; }
.m-dot { fill: var(--paper); stroke: var(--accent); stroke-width: 2; }
.m-label { font: 600 13px var(--sans); fill: var(--ink-soft); }
.m-city-label { font: 600 14px var(--sans); fill: var(--accent-dark); letter-spacing: 0.04em; }
.m-home-ring { fill: none; stroke: var(--brass); stroke-width: 2; opacity: 0.6; }
.m-home-dot { fill: var(--brass); }
.m-home-label { font: 700 15px var(--sans); fill: var(--ink); }
.m-home-sub { font: 13px var(--sans); fill: var(--brass); }

/* Kleinste Schrift etwas größer (Zielgruppe 50+) */
.small { font-size: 0.95rem; }
.ref-via { font-size: 0.8rem; }
.stats span { font-size: 0.95rem; }
.promise-strip li { font-size: 0.95rem; }
.promise-strip strong { font-size: 1rem; }
.field label, .choice legend { font-size: 0.92rem; }
.wz-hint { font-size: 0.97rem; }
.tiles-list .tile small { font-size: 0.9rem; }
.crumbs { font-size: 0.92rem; }
.art-meta { font-size: 0.93rem; }
.site-footer { font-size: 0.95rem; }
.footer-small, .site-footer .wrap.footer-bottom { font-size: 0.88rem; }
.footer-places { font-size: 0.93rem; }
.hero-photo figcaption { font-size: 0.92rem; }
.hero-note { font-size: 0.97rem; }
.ref h3 { padding-right: 0; hyphens: manual; overflow-wrap: normal; font-size: 1.22rem; }
