/* =========================================================
   Gruppen-Stylesheet für Makler-Websites
   Hell · Weiß & Beige · warm und professionell
   Unverändert in jede Makler-Website kopieren.
   Keine externen Ressourcen (DSGVO): System-Schriften, keine CDNs.
   ========================================================= */

:root {
  --bg: #FDFBF7;          /* warmes Weiß, Seitenhintergrund */
  --surface: #FFFFFF;     /* Karten */
  --beige: #F4EDE2;       /* Abschnitte im Wechsel */
  --beige-strong: #E8DCCA;
  --line: #E6DCCD;
  --text: #2F2A24;
  --muted: #675D52;
  --accent: #7A5A3C;      /* warmes Braun – Buttons, Links */
  --accent-dark: #5C432C;
  --accent-soft: #EFE4D4;

  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(47, 42, 36, .04), 0 8px 24px rgba(47, 42, 36, .06);
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--surface); padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 251, 247, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}
.brand {
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  line-height: 1.2;
}
.brand-name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; }
.brand-sub { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 12px; font: inherit; color: var(--text); cursor: pointer;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font-size: .98rem;
}
.main-nav a:hover { background: var(--beige); color: var(--text); }
.main-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.main-nav .btn { margin-left: 8px; color: #fff; }
.main-nav .btn:hover { color: #fff; background: var(--accent-dark); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent); color: #fff;
  padding: 13px 26px; border-radius: 999px; border: 1px solid var(--accent);
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: background .2s, border-color .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--beige { background: var(--beige); }
.section-head { max-width: 44rem; margin-bottom: 40px; }

.hero {
  padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px);
  background: linear-gradient(180deg, var(--bg) 0%, var(--beige) 100%);
  border-bottom: 1px solid var(--line);
}
.hero h1 { max-width: 18em; }

.page-header {
  padding: clamp(48px, 7vw, 80px) 0 clamp(36px, 5vw, 56px);
  background: var(--beige);
  border-bottom: 1px solid var(--line);
}

/* ---------- Grids & Cards ---------- */
.grid-2, .grid-3 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 4px; }
.card p:last-child { margin-bottom: 0; }
.card--link { display: block; text-decoration: none; color: var(--text); transition: transform .2s, border-color .2s; }
.card--link:hover { transform: translateY(-2px); border-color: var(--beige-strong); color: var(--text); }
.card--link .more { color: var(--accent); font-weight: 600; }

.icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 16px;
}
.icon svg { width: 24px; height: 24px; }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; padding-top: 8px; border-top: 2px solid var(--beige-strong); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-head); font-size: 1.8rem; color: var(--accent); margin: 12px 0 6px;
}

/* ---------- Split (Bild + Text) ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.img-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--beige) 0 14px, var(--accent-soft) 14px 28px);
  border: 1px dashed var(--beige-strong);
  display: grid; place-items: center; text-align: center;
  color: var(--muted); font-size: .9rem; padding: 20px;
}

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 32px 16px 0; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 12px; }

/* ---------- CTA-Band ---------- */
.cta-band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  box-shadow: var(--shadow);
}
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin: 0; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; letter-spacing: .03em; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 48rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5em; }
.legal address { font-style: normal; }

.todo {
  background: #FFF3CD; color: #5C4400; padding: 0 4px; border-radius: 3px; font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--beige);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  font-size: .95rem;
  color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { font-size: 1.05rem; margin-bottom: .6em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--beige-strong);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem;
}

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