/* ============================================================
   Cherry Homes — Stylesheet für Ratgeber- und Ortsseiten
   Passend zur Startseite: Cherry Deep #8B1538 · Playfair + Inter
   Diese Datei einmal hochladen, alle Unterseiten nutzen sie.
   ============================================================ */

/* ------------------------------------------------------------
   HIER die Schriften einfügen (optional, empfohlen):
   index.html öffnen, im <style>-Bereich ganz oben die Blöcke
   @font-face{font-family:'Inter'...} und @font-face{font-family:'Playfair Display'...}
   markieren, kopieren und hier direkt darunter einfügen.
   Ohne diesen Schritt sehen die Seiten trotzdem gut aus –
   dann werden Georgia und die System-Schrift verwendet.
   ------------------------------------------------------------ */


:root {
  --cherry: #8B1538;
  --cherry-deep: #730F2C;
  --blush: #F5E6E8;
  --blush-soft: #FBF1F3;
  --sand: #F0EAE0;
  --sand-soft: #F7F3EC;
  --charcoal: #2C2A28;
  --charcoal-soft: #4A4642;
  --olive: #7A8C3F;
  --paper: #FFFFFF;
  --line: #E7DFD4;
  --line-blush: #E9D4D9;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --shadow-soft: 0 1px 2px rgba(44,42,40,.04), 0 12px 40px rgba(44,42,40,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
strong { font-weight: 600; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
/* Alle Textspalten laufen bündig untereinander */
.narrow, .wrap.crumbs, .wrap.page-head { max-width: calc(760px + 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(48px, 6vw, 84px); }
.section.tight { padding-block: clamp(34px, 4vw, 54px); }
.section.blush { background: var(--blush-soft); }
.section.sand { background: var(--sand-soft); }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cherry);
}
.lede { font-size: clamp(17px, 2vw, 19.5px); color: var(--charcoal-soft); line-height: 1.72; }
.rule { width: 54px; height: 2px; background: var(--cherry); border: 0; margin: 22px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-size: 16px; font-weight: 500;
  padding: 16px 30px; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  text-align: center;
}
.btn-primary { background: var(--cherry); color: #fff; }
.btn-primary:hover { background: var(--cherry-deep); }
.btn-outline { background: transparent; color: var(--cherry); border-color: var(--cherry); }
.btn-outline:hover { background: var(--cherry); color: #fff; }
.btn-light { background: #fff; color: var(--cherry); }
.btn-light:hover { background: var(--blush); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }

/* ---------- Brotkrumen ---------- */
.crumbs { font-size: 13.5px; color: var(--charcoal-soft); padding-top: 26px; }
.crumbs a { border-bottom: 1px solid var(--line); }
.crumbs a:hover { color: var(--cherry); border-color: var(--cherry); }
.crumbs span { opacity: .55; margin-inline: 7px; }

/* ---------- Seitenkopf ---------- */
.page-head { padding-top: clamp(26px, 4vw, 44px); padding-bottom: clamp(34px, 5vw, 58px); }
.page-head h1 { font-size: clamp(34px, 5.4vw, 56px); margin-top: 14px; }
.page-head .lede { margin-top: 22px; max-width: 720px; }
.stamp { font-size: 13px; color: var(--charcoal-soft); opacity: .8; margin-top: 20px; }

/* ---------- Fließtext ---------- */
.prose h2 { font-size: clamp(24px, 3.2vw, 33px); margin-top: 52px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: clamp(19px, 2.2vw, 22px); margin-top: 34px; }
.prose p { margin-top: 18px; color: var(--charcoal-soft); }
.prose p.strong-p { color: var(--charcoal); }
.prose ul, .prose ol { margin: 18px 0 0; padding-left: 22px; color: var(--charcoal-soft); }
.prose li { margin-top: 10px; }
.prose li::marker { color: var(--cherry); }
.prose a { color: var(--cherry); border-bottom: 1px solid var(--line-blush); }
.prose a:hover { border-color: var(--cherry); }

/* ---------- Kästen ---------- */
.box {
  background: var(--blush-soft);
  border: 1px solid var(--line-blush);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.2vw, 34px);
  margin-top: 30px;
}
.box.sand { background: var(--sand-soft); border-color: var(--line); }
.box h3 { margin-top: 0; font-size: 21px; }
.box ul { margin-top: 16px; padding-left: 20px; }
.box p { margin-top: 14px; color: var(--charcoal-soft); }

.hint {
  border-left: 3px solid var(--cherry);
  background: var(--sand-soft);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 28px;
}
.hint .hint-label {
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cherry);
}
.hint p { margin-top: 8px; color: var(--charcoal-soft); font-size: 16px; }
.hint.olive { border-left-color: var(--olive); }
.hint.olive .hint-label { color: var(--olive); }

/* ---------- Checkliste ---------- */
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: var(--charcoal-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 12px; height: 12px; border: 1.5px solid var(--cherry); border-radius: 3px;
}

/* ---------- Schritte ---------- */
.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 4px; counter-reset: s; }
.steps li {
  counter-increment: s;
  display: grid; grid-template-columns: 44px 1fr; gap: 18px;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--font-head); font-size: 19px; color: var(--cherry);
}
.steps li b, .steps li span { grid-column: 2; }
.steps b { display: block; font-weight: 600; margin-bottom: 4px; }
.steps span { color: var(--charcoal-soft); }

/* ---------- Tabelle ---------- */
.table-scroll { overflow-x: auto; margin-top: 26px; }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 15.5px; }
th, td { text-align: left; padding: 13px 18px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-body); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--charcoal-soft); font-weight: 600; }
td { color: var(--charcoal-soft); }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--charcoal); font-weight: 500; }

/* ---------- Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 32px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.card h3 { font-size: 20px; margin-top: 0; }
.card p { margin-top: 12px; color: var(--charcoal-soft); font-size: 16px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; display: flex; flex-direction: column; gap: 14px; margin-top: 34px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.faq-item[open] { border-color: var(--line-blush); box-shadow: var(--shadow-soft); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px;
  font-family: var(--font-head); font-size: clamp(18px, 2.2vw, 21px); font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: 0 0 10px; width: 10px; height: 10px;
  border-right: 2px solid var(--cherry); border-bottom: 2px solid var(--cherry);
  transform: rotate(45deg); transition: transform .25s ease; margin-top: -4px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.faq-item .faq-a { padding: 0 24px 22px; color: var(--charcoal-soft); }
.faq-item .faq-a p { margin-top: 0; }
.faq-item .faq-a p + p { margin-top: 14px; }

/* ---------- CTA ---------- */
.cta { background: var(--cherry); color: var(--blush); }
.cta h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); }
.cta p { margin-top: 18px; max-width: 620px; color: rgba(245,230,232,.92); }
.cta .eyebrow { color: rgba(255,255,255,.7); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Fokus & Responsive ---------- */
a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--cherry); outline-offset: 3px; border-radius: 4px;
}
.cta a:focus-visible { outline-color: #fff; }

@media (max-width: 900px) {
  body { font-size: 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .steps li { grid-template-columns: 34px 1fr; gap: 12px; }
}
@media (max-width: 560px) {
  .nav { min-height: 0; }
  .nav-right { gap: 16px; }
  .cta-actions .btn { width: 100%; }
  .footer-bar { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Kopf und Fuß: exakt wie auf der Startseite ---------- */
.brand img{width:auto;height:40px;}
.footer-brand img{width:auto;height:46px;}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand .wm { display: flex; flex-direction: column; line-height: 1; }
.brand .wm b { font-family: var(--font-head); font-weight: 500; font-size: 22px; color: var(--cherry); letter-spacing: .005em; }
.brand .wm span { font-family: var(--font-body); font-size: 9.5px; font-weight: 500; letter-spacing: 0.34em; color: var(--charcoal-soft); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a.navitem {
  font-size: 15px; color: var(--charcoal-soft); font-weight: 400;
  transition: color .16s ease; position: relative;
}
.nav-links a.navitem:hover { color: var(--cherry); }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--charcoal); font-weight: 500; }
.nav-phone .label { color: var(--charcoal-soft); font-weight: 400; }
.nav-toggle { display: none; }
.site-footer { background: var(--cherry); color: var(--blush); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-block: clamp(48px, 6vw, 76px); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .wm b { font-family: var(--font-head); font-size: 24px; color: #fff; display: block; }
.footer-brand .wm span { font-size: 9.5px; letter-spacing: .34em; color: var(--blush); opacity: .8; }
.footer-claim { font-family: var(--font-head); font-style: italic; font-size: 22px; color: #fff; margin-top: 24px; }
.footer-col h4 { font-family: var(--font-body); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.65); font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li { color: var(--blush); font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.18); padding-block: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(245,230,232,.75); }
.footer-bar a:hover { color: #fff; }


/* Absicherung: Wortmarke bricht nie um, das Menü weicht zuerst */
.brand { flex: none; }
.brand .wm b, .brand .wm span { white-space: nowrap; }
.nav-links { justify-content: flex-end; }


/* ---------- Menüpunkt „Ratgeber" mit Ausklappliste ---------- */
.navdrop { position: relative; display: flex; align-items: center; }
.navdrop-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 15px; font-weight: 400;
  color: var(--charcoal-soft); background: none; border: 0; padding: 0;
  cursor: pointer; transition: color .16s ease; white-space: nowrap;
  line-height: 1.7;
}
.navdrop-btn:hover, .navdrop:hover .navdrop-btn, .navdrop-btn[aria-expanded="true"] { color: var(--cherry); }
.navdrop-btn svg { transition: transform .2s ease; }
.navdrop-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.navdrop-menu {
  display: none; position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  min-width: 268px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 40px rgba(44,42,40,.14); padding: 8px; z-index: 60;
}
.navdrop:hover .navdrop-menu, .navdrop-menu.open { display: block; }
.navdrop-menu a {
  display: block; padding: 11px 14px; border-radius: 11px;
  font-size: 15px; color: var(--charcoal-soft); white-space: nowrap;
}
.navdrop-menu a:hover { background: var(--blush-soft); color: var(--cherry); }


/* Abstand zwischen Wortmarke und Menü sichern */
.nav { gap: 30px; }
.nav-links { gap: 20px; }


.nav-links a.navitem { white-space: nowrap; }

/* ---------- Mobile Navigation (wie auf der Startseite) ---------- */
@media (max-width: 1200px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(0,0,0,.08); padding: 6px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a.navitem, .nav-phone {
    display: flex; align-items: center; padding: 14px 24px;
    font-size: 16px; border-top: 1px solid var(--line);
  }
  .nav-links a.navitem:first-child { border-top: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line);
    border-radius: 12px; background: #fff; cursor: pointer; color: var(--charcoal);
  }

  /* „Ratgeber" wird im Klappmenü zur einfachen Liste */
  .navdrop { display: block; }
  .navdrop-btn { display: none; }
  .navdrop-menu {
    display: block; position: static; transform: none; min-width: 0;
    background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 0;
  }
  .navdrop-menu a {
    padding: 14px 24px; border-radius: 0; font-size: 16px;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { .footer-bar { flex-direction: column; } }
