/* Sachverständigenbüro Herzog – Stylesheet
   Systemschriften (keine Google Fonts = DSGVO-sicher und schnell)
   Logo-Farbe #4B4294 (Briefkopf), Website-Blau #2C4596 passend dazu */

:root {
  --ink: #0f1a2c;
  --ink-2: #1c2a40;
  --logo: #4b4294;
  --brand: #2c4596;
  --brand-dark: #22377a;
  --brand-soft: #eaf1fb;
  --text: #22263a;
  --muted: #5d6276;
  --line: #e4e6ee;
  --bg: #ffffff;
  --bg-soft: #f5f6f9;
  --ok: #15803d;
  --ok-soft: #e8f6ed;
  --warn: #a16207;
  --warn-soft: #fdf6e3;
  --info-soft: #eef1f7;
  --wa: #1f9d55;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(22, 26, 46, .06), 0 8px 24px rgba(22, 26, 46, .07);
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--ink); color: #c9ccdb; }
.section--ink h2, .section--ink h3 { color: #fff; }
.kicker {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .7em;
}
.section--ink .kicker { color: #9fc0f0; }
.lead { font-size: 1.13rem; color: var(--muted); max-width: 680px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.4em; border-radius: 10px; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary, .btn--accent { background: var(--brand); color: #fff; }
.btn--primary:hover, .btn--accent:hover { background: var(--brand-dark); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #18834a; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }
.btn--white, .btn--dark { background: #fff; color: var(--brand); }
.btn--lg { padding: 1.05em 1.6em; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.btn-label small { font-weight: 600; opacity: .8; font-size: .78rem; }

/* Topbar + Header */
.topbar { background: var(--ink); color: #c9ccdb; font-size: .88rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.topbar .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-right: 8px; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { height: 52px; width: auto; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; color: var(--logo); }
.logo-text strong { font-size: 1.75rem; font-weight: 700; letter-spacing: -.01em; }
.logo-text span { font-size: .86rem; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--brand); }
.nav .btn { color: #fff; padding: .7em 1.15em; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero { background: linear-gradient(180deg, #f3f7fd 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 64px 20px 72px; }
.hero h1 span { color: var(--brand); }
.hero .lead { margin-bottom: 26px; }
.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.trust svg { width: 20px; height: 20px; color: var(--ok); flex: none; }

/* Hero: Recht auf einen Blick + Gutachter-Foto */
.right-box {
  display: flex; gap: 12px; align-items: flex-start; background: var(--ok-soft); border-left: 4px solid var(--ok);
  border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 0 0 26px; max-width: 600px;
}
.right-box svg { width: 22px; height: 22px; color: var(--ok); flex: none; margin-top: 2px; }
.right-box p { margin: 0; color: #1d3b2a; }
.right-box strong { color: var(--ok); }
.person { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; max-width: 460px; justify-self: end; }
.person img { width: 100%; aspect-ratio: 720 / 560; object-fit: cover; object-position: center 30%; }
.person figcaption { padding: 20px 24px 22px; }
.person strong { display: block; font-size: 1.25rem; color: var(--ink); }
.person span { color: var(--brand); font-weight: 700; font-size: .92rem; }
.person blockquote { margin: 12px 0 14px; font-style: italic; color: var(--text); }
.person a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.person a svg { width: 18px; height: 18px; }

/* Ihr Recht */
.rights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.right { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.right-icon {
  width: 46px; height: 46px; border-radius: 10px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 16px;
}
.right-icon svg { width: 24px; height: 24px; }
.right p { color: var(--muted); margin: 0; }
.covered { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.covered h3 { font-size: 1rem; margin-bottom: 10px; }
.covered ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 20px; }
.covered li { display: flex; gap: 8px; align-items: flex-start; font-size: .95rem; }
.covered svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 3px; }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; counter-reset: s; }
.step { position: relative; padding-top: 6px; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800;
  display: grid; place-items: center; font-size: 1.1rem; margin-bottom: 16px;
}
.step p { color: #b6b9cb; margin: 0; }
.step-time { display: inline-block; margin-top: 12px; font-size: .82rem; font-weight: 700; color: #9fc0f0; letter-spacing: .04em; text-transform: uppercase; }

/* Termin */
.booking { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.quick-contact { display: grid; gap: 12px; margin-top: 22px; }
.qc {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s;
}
.qc:hover { border-color: var(--brand); }
.qc-icon { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; background: var(--brand); }
.qc-icon svg { width: 22px; height: 22px; }
.qc--wa .qc-icon { background: var(--wa); }
.qc strong { display: block; font-size: 1.08rem; }
.qc small { color: var(--muted); font-size: .88rem; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 28px; }
.form h3 { font-size: 1.25rem; margin-bottom: 4px; }
.form > p { color: var(--muted); font-size: .95rem; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid #d3d6e0; border-radius: 9px; font: inherit; color: var(--text); background: #fff;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30, 79, 154, .18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.chips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chips label {
  border: 1.5px solid #d3d6e0; border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .92rem;
  cursor: pointer; margin: 0; color: var(--text);
}
.chips input:checked + label { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.chips input:focus-visible + label { outline: 3px solid #93b4e6; outline-offset: 2px; }
.form-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 18px; }
.form-note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }

/* Erfahrung */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.about-photo { position: relative; }
.about-photo img { border-radius: 16px; aspect-ratio: 4 / 3.2; object-fit: cover; width: 100%; }
.about-tag {
  position: absolute; left: 18px; bottom: 18px; background: #fff; border-radius: 10px; padding: 12px 16px; box-shadow: var(--shadow);
}
.about-tag strong { display: block; color: var(--ink); }
.about-tag span { font-size: .85rem; color: var(--muted); }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px 0; }
.figure { border-left: 3px solid var(--brand); padding: 4px 0 4px 14px; }
.figure strong { display: block; font-size: 1.55rem; color: var(--ink); line-height: 1.15; }
.figure span { font-size: .85rem; color: var(--muted); }
.partners { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin-top: 8px; }
.partners img { height: 30px; width: auto; }
.partners img.tall { height: 44px; }
.partners-label { font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }

/* Leistungen */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.service {
  display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; transition: border-color .15s, box-shadow .15s;
}
.service:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.service h3 { display: flex; justify-content: space-between; gap: 10px; }
.service h3::after { content: "→"; color: var(--brand); }
.service p { color: var(--muted); margin: 0; font-size: .97rem; }

/* FAQ */
.faq { max-width: 800px; margin: 32px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 44px 18px 0; font-weight: 700; color: var(--ink); position: relative; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--brand); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 0 18px; color: var(--muted); }

/* Standort */
.location { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.loc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.loc h3 { font-size: 1rem; margin-bottom: 10px; }
.loc p { margin: 0 0 6px; }
.loc a { font-weight: 700; text-decoration: none; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 4px 0; }
.hours td:last-child { text-align: right; font-weight: 600; }
.area { font-size: .92rem; color: var(--muted); margin-top: 18px; }

/* Unterseiten */
.page-hero { background: linear-gradient(180deg, #f3f7fd 0%, #fff 100%); border-bottom: 1px solid var(--line); padding: 48px 0 52px; }
.page-hero h1 { font-size: clamp(1.85rem, 4vw, 2.6rem); }
.page-hero .lead { margin: 0; }
.breadcrumb { font-size: .85rem; margin-bottom: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.55rem; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.aside-box { position: sticky; top: 100px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.aside-box h3 { margin-bottom: .4em; }
.aside-box p { color: var(--muted); font-size: .95rem; }
.aside-box .btn { width: 100%; margin-top: 10px; }
.cta-band { background: var(--brand); color: #e4e1fa; padding: 40px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.cta-band p { margin: 4px 0 0; }

/* Footer */
.site-footer { background: var(--ink); color: #a6aac0; padding: 52px 0 26px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #dfe1ec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { height: 40px; width: auto; background: #fff; border-radius: 6px; padding: 3px 5px; }
.footer-logo strong { color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 1.35rem; }
.footer-bottom { border-top: 1px solid #2d324b; margin-top: 34px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }

/* Mobile Schnellkontakt */
.mobile-bar { display: none; }

@media (max-width: 1000px) {
  .hero-inner, .booking, .about, .content-grid { grid-template-columns: 1fr; }
  .hero-inner { gap: 40px; padding-top: 44px; }
  .person { justify-self: start; }
  .rights, .steps, .services, .location { grid-template-columns: 1fr 1fr; }
  .covered ul { grid-template-columns: 1fr 1fr; }
  .aside-box { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 6px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
  .topbar .hide-sm { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .topbar { font-size: .8rem; white-space: nowrap; }
  .topbar .container { gap: 8px; }
  .section { padding: 56px 0; }
  .container, .hero-inner { padding-left: 16px; padding-right: 16px; }
  .hero-inner { padding-top: 32px; padding-bottom: 48px; }
  .btn-row .btn { flex: 1 1 100%; }
  .rights, .steps, .services, .location, .covered ul, .field-row { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr 1fr; }
  .form { padding: 22px 18px; }
  .form-actions { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-mark { height: 42px; }
  .logo-text strong { font-size: 1.4rem; }
  .logo-text span { font-size: .7rem; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(0, 0, 0, .1);
  }
  .mobile-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 9px 4px 10px;
    font-size: .78rem; font-weight: 700; text-decoration: none; color: var(--ink);
  }
  .mobile-bar svg { width: 22px; height: 22px; }
  .mobile-bar .call { background: var(--brand); color: #fff; }
  .mobile-bar .wa svg { color: var(--wa); }
  .mobile-bar .book svg { color: var(--brand); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
