/* ============================================
   Alles rund ums Haus — Design System
   Palette: architectural material (charcoal / stone / brass)
   Signature: hairline blueprint line-art
   ============================================ */

:root {
  --ink: #14171A;
  --ink-soft: #22262A;
  --stone: #EFEBE4;
  --paper: #FAF8F4;
  --brass: #9C7A46;
  --brass-deep: #7A5F37;
  --brass-tint: #9C7A4614;
  --line: #DEDAD1;
  --line-dark: #33383D;
  --muted: #6B6560;
  --muted-on-dark: #A9A49C;
  --white: #FFFFFF;
  --alert: #A8462F;
  --alert-deep: #833626;
  --ok: #3F5D46;

  /* legacy aliases so existing per-page accent overrides keep working */
  --accent: var(--brass);
  --accent-dark: var(--brass-deep);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ---------- Header ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
header.site .wrap { display: flex; justify-content: space-between; align-items: center; }
.brand {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 1.65rem;
  letter-spacing: -0.015em;
}
.phone-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
  transition: opacity .15s ease;
}
.phone-link:hover { opacity: 0.65; }

/* ---------- Navigation ---------- */
header.site .wrap { flex-wrap: wrap; gap: 12px 24px; }
nav.main-nav { display: flex; flex-wrap: wrap; gap: 4px 26px; align-items: center; }
nav.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
nav.main-nav a:hover { color: var(--ink); border-bottom-color: var(--brass); }
nav.main-nav a.nav-notfall { color: var(--alert-deep); }
@media (max-width: 700px) {
  nav.main-nav { gap: 4px 18px; }
  nav.main-nav a { font-size: 0.82rem; }
}

/* ---------- Hero (service/content pages) ---------- */
main.hero { padding: 64px 0 76px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: start; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  main.hero { padding: 40px 0 48px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 16px; height: 1px; background: var(--brass); }

h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 450;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}

.subheadline { font-size: 1.08rem; color: var(--muted); margin: 0 0 34px; max-width: 46ch; }

.benefits { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 15px; }
.benefits li { display: flex; align-items: flex-start; gap: 14px; font-size: 0.97rem; }
.benefits li::before {
  content: ""; flex: none; width: 5px; height: 5px; margin-top: 9px;
  border-radius: 50%; background: var(--brass);
}

/* ---------- Form card ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 32px;
  position: sticky;
  top: 24px;
}
.form-card h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 1.25rem;
  margin: 0 0 22px;
}

label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--muted); margin: 16px 0 6px; }
label:first-of-type { margin-top: 0; }

input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 2px;
  font-size: 0.95rem; font-family: inherit; background: var(--paper); color: var(--ink);
}
textarea { resize: vertical; min-height: 72px; }
input:focus, select:focus, textarea:focus { outline: 1px solid var(--brass); outline-offset: 0; border-color: var(--brass); }

.consent { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 4px; font-size: 0.78rem; color: var(--muted); }
.consent input { width: auto; margin-top: 3px; }
.consent a { color: var(--ink); }

button.submit {
  width: 100%; margin-top: 20px; padding: 15px 16px;
  background: var(--ink); color: var(--white); border: none; border-radius: 2px;
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em; cursor: pointer;
  transition: background .15s ease;
}
button.submit:hover { background: var(--brass-deep); }
button.submit:disabled { opacity: 0.6; cursor: default; }

.form-note { text-align: center; font-size: 0.76rem; color: var(--muted); margin-top: 12px; }

.success { display: none; text-align: center; padding: 24px 4px; }
.success.show { display: block; }
.success h2 { font-family: 'Fraunces', Georgia, serif; margin-bottom: 8px; }
.success p { color: var(--muted); font-size: 0.95rem; }
.success .ok-badge {
  width: 40px; height: 40px; border-radius: 50%; background: var(--ok);
  margin: 0 auto 18px; display: flex; align-items: center; justify-content: center;
}
.success .ok-badge svg { width: 18px; height: 18px; }

form.hide { display: none; }
.error-msg { display: none; background: #F5E9E6; color: var(--alert-deep); padding: 11px 13px; border-radius: 2px; font-size: 0.84rem; margin-top: 15px; }
.error-msg.show { display: block; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0; font-size: 0.78rem; color: var(--muted); }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
footer.site a { color: var(--muted); }

/* ---------- Urgent / Notfall variant ---------- */
.urgent-banner { background: var(--ink); color: var(--white); }
.urgent-banner .wrap {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 11px 28px; font-size: 0.85rem; font-weight: 500;
}
.urgent-banner a.call-now {
  color: var(--white); text-decoration: none; background: var(--alert);
  padding: 7px 16px; border-radius: 2px; font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem;
}
.urgent-banner a.call-now:hover { background: var(--alert-deep); }

.badge-urgent {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white); background: var(--alert); padding: 5px 11px; border-radius: 2px; margin-bottom: 16px;
}
.badge-urgent::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--white); }

.call-cta {
  display: block; text-align: center; margin-top: 14px; padding: 14px 16px;
  border: 1px solid var(--ink); color: var(--ink); border-radius: 2px; font-weight: 500;
  text-decoration: none; font-size: 0.92rem;
}
.call-cta:hover { background: var(--ink); color: var(--white); }

/* ---------- Ratgeber content block ---------- */
.article-section { border-top: 1px solid var(--line); padding: 56px 0; }
.article-section .wrap { max-width: 760px; }
.article-section h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 1.6rem; margin: 0 0 22px; }
.article-section h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 1.1rem; margin: 30px 0 10px; }
.article-section p { color: var(--ink); font-size: 1rem; line-height: 1.75; margin: 0 0 17px; }

/* ---------- FAQ ---------- */
.faq-section { border-top: 1px solid var(--line); padding: 56px 0 64px; }
.faq-section .wrap { max-width: 760px; }
.faq-section h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 1.6rem; margin: 0 0 22px; }
details.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
details.faq-item summary {
  cursor: pointer; font-weight: 500; font-size: 0.98rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 1.2rem; color: var(--brass); flex: none; font-weight: 300; }
details.faq-item[open] summary::after { content: "–"; }
details.faq-item p { margin: 13px 0 0; color: var(--muted); line-height: 1.65; font-size: 0.94rem; }

/* ---------- Flagship hub hero (index page) ---------- */
.flagship-hero {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 96px 0 0;
}
.hero-illustration {
  position: absolute;
  right: -20px;
  top: 40px;
  width: min(44vw, 520px);
  opacity: 0.5;
  pointer-events: none;
}
@media (max-width: 900px) { .hero-illustration { display: none; } }


.blueprint-grid {
  position: absolute; inset: 0; opacity: 0.14; pointer-events: none;
  background-image:
    linear-gradient(var(--brass) 1px, transparent 1px),
    linear-gradient(90deg, var(--brass) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 100%);
}
.flagship-hero .wrap { position: relative; }
.flagship-hero .eyebrow { color: var(--brass); }
.flagship-hero .eyebrow::before { background: var(--brass); }
.flagship-hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 18ch;
  margin-bottom: 26px;
}
.flagship-hero .lede { color: var(--muted-on-dark); font-size: 1.15rem; max-width: 52ch; margin: 0 0 48px; }

.stat-bar { display: flex; gap: 56px; flex-wrap: wrap; padding: 40px 0 56px; border-top: 1px solid var(--line-dark); }
.stat-bar .stat-num {
  font-family: 'Fraunces', Georgia, serif; font-weight: 450; font-size: 2rem; color: var(--white); display: block;
}
.stat-bar .stat-num-sm { font-size: 1.45rem; padding-top: 9px; }
.stat-bar .stat-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted-on-dark); margin-top: 6px; display: block;
}

/* ---------- Process section ---------- */
.process-section { padding: 8px 0 76px; }
.process-section .section-head { margin-bottom: 40px; }
.process-section h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 450; font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin: 0; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; border-top: 1px solid var(--line); padding-top: 40px; }
.process-step { position: relative; }
.process-num {
  font-family: 'Fraunces', Georgia, serif; font-weight: 450;
  font-size: 2.6rem; line-height: 1; color: var(--brass);
  display: block; margin-bottom: 16px;
}
.process-step h3 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1rem; margin: 0 0 8px; }
.process-step p { color: var(--muted); font-size: 0.94rem; line-height: 1.6; margin: 0; max-width: 30ch; }

/* ---------- Category grid (blueprint cards) ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 64px 0; }
.category-card { background: var(--paper); padding: 36px 32px; }
.blueprint-icon { width: 40px; height: 40px; color: var(--brass); margin-bottom: 20px; }
.blueprint-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.1; }
.category-card h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 1.25rem; margin: 0 0 8px; }
.category-card .cat-desc { color: var(--muted); font-size: 0.88rem; margin: 0 0 22px; line-height: 1.5; }
.category-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.category-card a {
  color: var(--ink); text-decoration: none; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.category-card li:last-child a { border-bottom: none; }
.category-card a::after { content: "→"; color: var(--muted); font-size: 0.85rem; transition: transform .15s ease; }
.category-card a:hover::after { transform: translateX(3px); color: var(--brass); }
.category-card a.notfall-link { color: var(--alert-deep); font-weight: 500; }

/* ---------- Editorial "why" section ---------- */
.why-section { background: var(--stone); padding: 80px 0; }
.why-section .section-head { max-width: 60ch; margin-bottom: 56px; }
.why-section h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 450; font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 14px; letter-spacing: -0.01em; }
.why-section .section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 44px; }
.why-item .why-icon { width: 34px; height: 34px; color: var(--brass); margin-bottom: 18px; }
.why-item .why-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.1; }
.why-item h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 1.1rem; margin: 0 0 10px; }
.why-item p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; margin: 0; }

/* ---------- Regions inline list ---------- */
.regions-block { padding: 64px 0; border-top: 1px solid var(--line); }
.regions-block h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 1.5rem; margin: 0 0 8px; }
.regions-block .cat-desc { color: var(--muted); font-size: 0.92rem; margin: 0 0 24px; }
.region-links { display: flex; flex-wrap: wrap; gap: 4px 0; }
.region-links a {
  color: var(--ink); text-decoration: none; font-size: 0.9rem; padding: 9px 18px 9px 0;
  border-right: 1px solid var(--line); margin-right: 18px;
}
.region-links a:last-child { border-right: none; }
.region-links a:hover { color: var(--brass-deep); }

/* ---------- Closing CTA band ---------- */
.closing-cta { background: var(--ink); color: var(--white); padding: 88px 0; text-align: center; }
.closing-cta h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 450; font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 0 0 32px; }
.closing-cta a.btn-light {
  display: inline-block; color: var(--ink); background: var(--white); text-decoration: none;
  padding: 15px 32px; border-radius: 2px; font-weight: 500; font-size: 0.95rem;
}
.closing-cta a.btn-light:hover { background: var(--brass); color: var(--white); }

/* ---------- Hub hero (regional pages — lighter variant) ---------- */
.hub-hero { padding: 60px 0 44px; text-align: left; }
.hub-hero h1 { font-size: clamp(2rem, 4vw, 2.7rem); max-width: 22ch; }
.hub-hero p { color: var(--muted); font-size: 1.05rem; max-width: 60ch; margin: 0; }

/* ---------- Pillar / regional article page bits ---------- */
.breadcrumb { font-size: 0.8rem; color: var(--muted); padding: 20px 0 0; }
.breadcrumb a { color: var(--muted); }
.article-hero { padding: 22px 0 8px; }
.article-hero h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; margin: 0 0 14px; }
.article-hero .lede { color: var(--muted); font-size: 1.05rem; max-width: 65ch; }

.cta-box {
  background: var(--white); border: 1px solid var(--line); border-radius: 2px; padding: 26px;
  margin: 36px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.cta-box p { margin: 0; font-weight: 500; }
.cta-box a.btn { background: var(--ink); color: var(--white); text-decoration: none; padding: 12px 22px; border-radius: 2px; font-weight: 500; white-space: nowrap; }
.cta-box a.btn:hover { background: var(--brass-deep); }

table.cost-table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 0.92rem; }
table.cost-table th, table.cost-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.cost-table th { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
table.cost-table td a { color: var(--ink); font-weight: 500; }

.checklist { list-style: none; padding: 0; margin: 18px 0; }
.checklist li { padding: 9px 0 9px 30px; position: relative; }
.checklist li::before { content: "—"; position: absolute; left: 0; color: var(--brass); font-weight: 500; }

/* ---------- Extended footer ---------- */
footer.site { padding: 48px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-head {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brass-deep); margin-bottom: 4px;
}
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--ink); }

.updated-note {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.05em;
  color: var(--muted); margin: -12px 0 20px !important;
}

/* ---------- Ratgeber overview ---------- */
.ratgeber-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 32px 0; }
.ratgeber-card { background: var(--white); padding: 30px 28px; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.ratgeber-card h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 1.15rem; margin: 0 0 10px; line-height: 1.3; }
.ratgeber-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; margin: 0 0 16px; flex: 1; }
.ratgeber-card .read-more { color: var(--brass-deep); font-weight: 600; font-size: 0.86rem; }
.ratgeber-card:hover h2 { color: var(--brass-deep); }
