/* WBK Immobilien – Stylesheet
   Layout: ruhige, linksbündige Seiten mit breitem Satzspiegel; Petrol als Hausfarbe, Messing als einziger Akzent. */

:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --fg: #18272a;
  --muted: #55676a;
  --line: #d9dfdd;
  --brand: #1f4f56;        /* Petrol */
  --brand-ink: #ffffff;
  --accent: #a77a2b;       /* Messing */
  --accent-soft: #f1e8d6;

  --font-display: "Literata", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.3rem, 5vw, 3.4rem);

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1120px;
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111a1c;
    --surface: #172326;
    --fg: #e6ecea;
    --muted: #9db0b1;
    --line: #2a3a3d;
    --brand: #7fb7bd;
    --brand-ink: #0d1719;
    --accent: #d6a957;
    --accent-soft: #2b2518;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111a1c;
  --surface: #172326;
  --fg: #e6ecea;
  --muted: #9db0b1;
  --line: #2a3a3d;
  --brand: #7fb7bd;
  --brand-ink: #0d1719;
  --accent: #d6a957;
  --accent-soft: #2b2518;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0; max-width: 65ch; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Kopfzeile */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 14px;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}
.logo-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--brand);
}
.logo-text { font-size: var(--step--1); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.logo:hover .logo-mark { color: var(--brand); }

.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav a {
  text-decoration: none;
  color: var(--fg);
  font-weight: 500;
  font-size: 0.98rem;
  padding-block: 4px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--brand); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 2px solid var(--brand);
  background: var(--brand);
  color: var(--brand-ink);
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--brand); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: var(--brand-ink); }

/* Abschnitte */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
}
.hero-copy { display: grid; gap: 22px; }
.hero-copy .lead { font-size: var(--step-1); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--brand);
}
.hero-facts div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: baseline;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.hero-facts dt {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  min-width: 4ch;
}
.hero-facts dd { margin: 0; color: var(--muted); }
.placeholder-note { font-size: var(--step--1); color: var(--muted); font-style: italic; }

/* Leistungen */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.service {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px 28px 28px 0;
}
.service + .service { padding-left: 28px; border-left: 1px solid var(--line); }
.service .tag { font-size: var(--step--1); color: var(--accent); font-weight: 600; }
.service ul { margin: 4px 0 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 4px; }

/* Vorteile */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
}
.benefit { display: grid; gap: 8px; padding-left: 18px; border-left: 3px solid var(--accent); }
.benefit p { color: var(--muted); }

/* Ablauf */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
}
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; }
.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--accent);
  line-height: 1;
}
.steps p { color: var(--muted); }

/* Zielgruppen-Kacheln (Mieter / Eigentümer) */
.split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.split a.panel {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--fg);
}
.split a.panel:hover { border-color: var(--brand); }
.split a.panel p { color: var(--muted); }
.split a.panel .more { color: var(--brand); font-weight: 600; }

/* Formular */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; }
.contact-info { display: grid; gap: 18px; align-content: start; }
.contact-info dl { margin: 0; display: grid; gap: 10px; }
.contact-info dt { font-size: var(--step--1); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-info dd { margin: 0 0 6px; }
form.form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--muted); }
.check input { margin-top: 5px; }
.form-status { font-weight: 600; color: var(--brand); }

/* Unterseiten */
.page-head { padding-block: clamp(40px, 6vw, 72px) 24px; }
.page-head .wrap { display: grid; gap: 14px; }
.page-head p { color: var(--muted); font-size: var(--step-1); }

.notice {
  display: grid;
  gap: 8px;
  padding: 20px 24px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  max-width: 760px;
}

.doc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.doc-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.doc-list .meta { font-size: var(--step--1); color: var(--muted); }
.doc-list .soon { font-size: var(--step--1); color: var(--muted); border: 1px solid var(--line); padding: 4px 10px; border-radius: 99px; white-space: nowrap; }

.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.listing {
  display: grid;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.listing .img {
  aspect-ratio: 4 / 3;
  max-width: 100%;
  background: repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 12px), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: var(--step--1);
}
.listing .facts { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 0.95rem; font-variant-numeric: tabular-nums; }

.legal { display: grid; gap: 18px; max-width: 760px; }
.legal h2 { font-size: var(--step-1); margin-top: 12px; }

/* Fußzeile */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 40px;
  font-size: 0.95rem;
  color: var(--muted);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }

/* Schmale Bildschirme */
@media (max-width: 900px) {
  .hero .wrap, .contact { grid-template-columns: minmax(0, 1fr); }
  .services { grid-template-columns: minmax(0, 1fr); }
  .service, .service + .service { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .listing-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .benefits, .form-row, .steps { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 4px 16px; }
}

/* Spamschutz-Feld, für Menschen unsichtbar */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
