/* ==========================================================================
   immobilienkredit-hannover.de – zentrale Stylesheet-Datei
   Lukas Helmchen – Unabhängige Immobilienfinanzierung
   Mobile-First · keine externen Ressourcen (DSGVO) · System-Font-Stack
   ========================================================================== */

/* ---------- 1. Design-Tokens ---------- */
:root {
  --navy: #0f2537;
  --navy-700: #17364f;
  --navy-900: #091823;
  --gold: #b8860b;
  --gold-light: #d9a82e;
  --gold-dark: #8a6508;
  --slate: #5b7083;
  --ink: #1b2733;
  --muted: #55646f;
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --bg-tint: #eaeff3;
  --line: #dde3e8;
  --ok: #1f6f43;
  --ok-bg: #e8f4ed;
  --err: #a12a2a;
  --err-bg: #fbeaea;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 10px 30px rgba(15, 37, 55, 0.09);
  --shadow-sm: 0 2px 8px rgba(15, 37, 55, 0.08);
  --font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, "Times New Roman", "Liberation Serif", serif;
  --container: 1120px;
  --header-h: 72px;
}

/* ---------- 2. Reset & Basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }

a {
  color: var(--navy-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--gold-dark); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

ul, ol { padding-left: 1.25em; margin: 0 0 1.1em; }
li { margin-bottom: 0.4em; }

strong { font-weight: 650; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

/* ---------- 3. Header & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--navy);
}

.brand-text small {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  position: relative;
}

.nav-toggle .bar {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav-toggle .bar:nth-child(1) { top: 15px; }
.nav-toggle .bar:nth-child(2) { top: 22px; }
.nav-toggle .bar:nth-child(3) { top: 29px; }

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav li { margin: 0; }

.site-nav a:not(.btn) {
  display: block;
  padding: 10px 14px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  border-radius: var(--radius);
}

.site-nav a:not(.btn):hover { background: var(--bg-soft); color: var(--navy); }

.site-nav a[aria-current="page"]:not(.btn) {
  color: var(--navy);
  box-shadow: inset 0 -3px 0 var(--gold);
  border-radius: 0;
}

/* Mobile Navigation (nur wenn JavaScript aktiv ist) */
@media (max-width: 899px) {
  .js .nav-toggle { display: block; }

  .js .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px 20px 20px;
  }

  .js .site-nav.is-open { display: block; }

  .js .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .js .site-nav a:not(.btn) {
    padding: 14px 8px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .js .site-nav a[aria-current="page"]:not(.btn) { box-shadow: none; color: var(--gold-dark); }

  .js .site-nav .btn { width: 100%; margin-top: 12px; }

  /* Ohne JavaScript: Navigation bleibt sichtbar und umbrechbar */
  .header-inner { flex-wrap: wrap; padding-block: 10px; }
  .site-nav ul { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .brand-text small { display: none; }
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); }

.btn-dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-dark:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; }

.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }

.btn-sm { padding: 10px 18px; font-size: 0.95rem; }

.btn[disabled] { opacity: 0.65; cursor: wait; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* ---------- 5. Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(184, 134, 11, 0.14), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff;
  padding: 56px 0 64px;
}

.hero h1 { color: #fff; }

.hero .eyebrow { color: var(--gold-light); }

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-lead {
  font-size: 1.15rem;
  color: #d5dee6;
  max-width: 58ch;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

.trust-badges {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.trust-badges li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: #fff;
  font-weight: 500;
  line-height: 1.35;
}

.trust-badges .icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--gold);
  margin-top: 1px;
}

.trust-badges small {
  display: block;
  font-weight: 400;
  color: #b9c7d3;
  font-size: 0.88rem;
}

.img-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 280px;
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(255, 255, 255, 0.35);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 255, 255, 0.025) 14px 28px);
  color: #c4d1dc;
  padding: 24px;
  font-size: 0.95rem;
}

.img-placeholder strong { display: block; color: #fff; margin-bottom: 4px; font-size: 1.02rem; }

.img-placeholder.light {
  border-color: var(--line);
  background: repeating-linear-gradient(45deg, var(--bg-soft) 0 14px, #eef2f5 14px 28px);
  color: var(--muted);
}

.img-placeholder.light strong { color: var(--navy); }

.img-placeholder img,
.hero-media img,
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.portrait { aspect-ratio: 4 / 5; }
.portrait .img-placeholder { height: 100%; min-height: 0; }

/* ---------- 6. Sektionen ---------- */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: #d5dee6; }
.section-dark h2,
.section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--gold-light); }
.section-dark a { color: var(--gold-light); }

.section-head { max-width: 720px; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head p { color: #c4d1dc; }

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff;
  padding: 52px 0 56px;
}

.page-hero h1 { color: #fff; margin-bottom: 0.4em; }
.page-hero p { color: #d5dee6; max-width: 62ch; font-size: 1.12rem; margin: 0; }
.page-hero .eyebrow { color: var(--gold-light); }

.breadcrumb {
  font-size: 0.88rem;
  margin-bottom: 18px;
  color: #b9c7d3;
}

.breadcrumb a { color: #d5dee6; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------- 7. Grids & Karten ---------- */
.grid { display: grid; gap: 24px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.card h3 { margin-bottom: 0.5em; }
.card p:last-child,
.card ul:last-child { margin-bottom: 0; }

.card-accent { border-top: 4px solid var(--gold); }

.card .icon-wrap {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--bg-tint);
  color: var(--navy);
  margin-bottom: 16px;
}

.card .icon-wrap svg { width: 26px; height: 26px; }

.link-arrow {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
}

.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--gold-dark); }

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1em;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.65em;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 9px;
  border-left: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  transform: rotate(-45deg) scale(0.9);
}

.section-dark .check-list li { color: #e3eaf0; }

/* ---------- 8. Schritte ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 24px;
  counter-reset: step;
}

.steps li {
  position: relative;
  margin: 0;
  padding: 28px 28px 28px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
}

.steps h3 { margin-bottom: 0.4em; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- 9. Rechner ---------- */
.calc {
  display: grid;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.calc-inputs { padding: 28px; }

.calc-results {
  padding: 28px;
  background: var(--navy);
  color: #d5dee6;
}

.calc-results h3 { color: #fff; }

.field { margin-bottom: 18px; }

.field label,
.field .label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.field .hint {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.input-suffix { position: relative; }

.input-suffix .suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 500;
  pointer-events: none;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #b9c4cd;
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-suffix input { padding-right: 52px; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.35);
}

textarea { min-height: 140px; resize: vertical; }

.field-row { display: grid; gap: 0 16px; }

.result-main {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 8px;
}

.result-main .label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.result-main .value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

.result-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.result-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-list li span:last-child { color: #fff; font-weight: 600; text-align: right; }

.calc-hint {
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--gold);
  padding: 12px 14px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 18px;
  color: #e3eaf0;
}

.calc-disclaimer {
  font-size: 0.82rem;
  color: #a9b9c6;
  margin: 16px 0 0;
}

/* ---------- 10. Makler-Kooperation ---------- */
.partner-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

.partner-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.partner-card h3 { margin-bottom: 0.6em; }

/* ---------- 11. FAQ ---------- */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  padding: 18px 54px 18px 20px;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold-dark);
}

.faq details[open] summary::after { content: "–"; }

.faq .faq-body { padding: 0 20px 18px; color: var(--muted); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- 12. Kontakt & Formular ---------- */
.contact-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

.contact-info .contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-info .icon-wrap {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--bg-tint);
  color: var(--navy);
}

.contact-info svg { width: 22px; height: 22px; }
.contact-info h3 { font-size: 1.02rem; margin-bottom: 0.1em; font-family: var(--font); }
.contact-info p { margin: 0; color: var(--muted); }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-card h3 { margin-bottom: 0.3em; }
.form-card .form-intro { color: var(--muted); margin-bottom: 1.4rem; }

.req { color: var(--err); margin-left: 2px; }

.check-field {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 0.93rem;
  color: var(--muted);
}

.check-field input[type="checkbox"] {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--navy);
}

.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 500;
  border: 1px solid transparent;
}

.alert-ok { background: var(--ok-bg); color: var(--ok); border-color: #bcdcc9; }
.alert-err { background: var(--err-bg); color: var(--err); border-color: #eac3c3; }

.form-note { font-size: 0.85rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- 13. Blog ---------- */
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.blog-card .thumb {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  padding: 16px;
  text-align: center;
}

.blog-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }

.blog-card .meta {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.blog-card h2,
.blog-card h3 { font-size: 1.3rem; margin-bottom: 0.5em; }

.blog-card h2 a,
.blog-card h3 a { color: var(--navy); text-decoration: none; }

.blog-card h2 a:hover,
.blog-card h3 a:hover { color: var(--gold-dark); }

.blog-card p { color: var(--muted); }
.blog-card .link-arrow { margin-top: auto; }

.tag-soon {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--slate);
}

.article-layout {
  display: grid;
  gap: 40px;
  align-items: start;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.92rem;
  color: #b9c7d3;
  margin-top: 18px;
}

.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2rem; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.prose h3 { margin-top: 1.8rem; }
.prose p,
.prose li { color: #26343f; }

.prose blockquote,
.callout {
  margin: 1.6rem 0;
  padding: 18px 22px;
  background: var(--bg-soft);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout p:last-child { margin-bottom: 0; }
.callout strong.callout-title { display: block; color: var(--navy); margin-bottom: 4px; }

.table-wrap { overflow-x: auto; margin: 1.5rem 0; -webkit-overflow-scrolling: touch; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
  min-width: 460px;
}

table.data th,
table.data td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

table.data thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}

table.data tbody tr:nth-child(even) { background: var(--bg-soft); }
table.data td.num,
table.data th.num { text-align: right; white-space: nowrap; }

.sidebar-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.sidebar-box h3 { font-size: 1.1rem; }
.sidebar-box p { color: var(--muted); font-size: 0.97rem; }

.author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 2.4rem;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.author-box .avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-serif);
  font-weight: 700;
}

.author-box p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.author-box strong { color: var(--navy); }

/* ---------- 14. Leistungsseiten ---------- */
.service {
  display: grid;
  gap: 28px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.service:last-of-type { border-bottom: 0; }
.service h2 { margin-bottom: 0.4em; }
.service .lead { color: var(--muted); font-size: 1.1rem; }

.panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.panel h3 { font-size: 1.05rem; font-family: var(--font); letter-spacing: 0; }
.panel ul { margin-bottom: 0; }

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.toc li { margin: 0; }

.toc a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.toc a:hover { border-color: var(--gold); }

/* ---------- 15. Über mich ---------- */
.about-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

.card-title { font-size: 1.1rem; font-family: var(--font); letter-spacing: 0; margin-bottom: 0.4em; }
.mt-24 { margin-top: 24px; }

.facts { margin: 0; padding: 0; }

.facts .fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.facts .fact:first-child { padding-top: 6px; }
.facts .fact:last-child { border-bottom: 0; padding-bottom: 0; }

.facts dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.facts dd {
  margin: 0;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

/* ---------- 16. CTA-Band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff;
  padding: 52px 0;
  text-align: center;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: #d5dee6; max-width: 56ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- 17. Rechtstexte ---------- */
.legal { max-width: 78ch; }
.legal h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.12rem; margin-top: 1.6rem; font-family: var(--font); }
.legal address { font-style: normal; margin-bottom: 1.1em; }

.placeholder {
  background: #fff6d6;
  border-bottom: 1px dashed var(--gold-dark);
  padding: 0 4px;
  border-radius: 3px;
  color: #5c4500;
  font-weight: 500;
}

.legal-note {
  background: #fff6d6;
  border: 1px solid #ecd88b;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: #5c4500;
}

/* ---------- 18. Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #aebdca;
  padding-top: 56px;
  font-size: 0.96rem;
}

.site-footer a { color: #d5dee6; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }

.site-footer h2 {
  font-family: var(--font);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1em;
}

.footer-grid {
  display: grid;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.55em; }

.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text small { color: #aebdca; }
.site-footer .brand-mark { background: var(--navy-700); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 22px;
  display: grid;
  gap: 6px;
  font-size: 0.87rem;
}

.footer-bottom p { margin: 0; }

/* ---------- 19. Responsive ---------- */
@media (min-width: 640px) {
  .field-row.two { grid-template-columns: 1fr 1fr; }
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .trust-badges { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  :root { --header-h: 80px; }

  .container { padding-inline: 32px; }
  .section { padding: 88px 0; }
  .hero { padding: 88px 0 96px; }

  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .trust-badges { grid-template-columns: 1fr; }

  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }

  .calc { grid-template-columns: 1.1fr 0.9fr; }
  .calc-inputs,
  .calc-results { padding: 40px; }

  .partner-grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
  .form-card { padding: 36px; }

  .article-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
  .article-layout aside { position: sticky; top: calc(var(--header-h) + 24px); }

  .service { grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px 0; }
  .about-grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .footer-bottom { grid-template-columns: 1fr 1fr; }
  .footer-bottom p:last-child { text-align: right; }
}

@media (min-width: 1100px) {
  .trust-badges { grid-template-columns: 1fr; }
}

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

@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .nav-toggle,
  .skip-link { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .page-hero,
  .hero { background: none; color: #000; padding: 0 0 16px; }
  .page-hero h1,
  .hero h1,
  .page-hero p { color: #000; }
  a { color: #000; }
}
