:root {
  --bg: #f5f8fb;
  --panel: #ffffff;
  --text: #15233b;
  --muted: #4f5f79;
  --brand-blue: #0160c5;
  --brand-blue-dark: #0a3d6e;
  --brand-green: #2d8a3e;
  --border: #d7e2ef;
  /* Abstand für fixierte/sticky Kopfzeile bei Sprungmarken (#leistungen, #vorgehen, #kontakt) */
  --header-offset: 7.5rem;
}
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
.container { width: min(1040px, 92vw); margin: 0 auto; }
.container.narrow { width: min(720px, 92vw); }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; gap: 20px; flex-wrap: wrap; }
.logo { width: 220px; max-width: 52vw; height: auto; display: block; }

.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; justify-content: flex-end; }
.nav-links a {
  padding: 8px 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--brand-blue); background: rgba(1, 96, 197, 0.06); }
.nav-links a.nav-link-active {
  color: #fff;
  background: var(--brand-blue);
}
.nav-links a.nav-link-active:hover {
  color: #fff;
  background: #0050a3;
}
.nav-links a.nav-link-active:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 46rem; }

/* Sprungmarken: Überschrift sitzt unter der sticky Navigation */
.section h2[id] {
  scroll-margin-top: var(--header-offset);
}

.brand-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-headline {
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  line-height: 1.45;
  font-weight: 700;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.hero-intro {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.05rem;
}
.hero-bullets {
  margin: 0 0 18px;
  padding-left: 1.2rem;
  line-height: 1.65;
}
.hero-bullets li { margin-bottom: 8px; }
.hero-closing { margin: 0 0 20px; font-size: 1.05rem; }
.hero-cta-wrap { margin: 0; }

.section-rule {
  height: 0;
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 auto;
  max-width: min(1040px, 92vw);
}

.simple-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.65;
  font-size: 1.05rem;
}
.simple-list li { margin-bottom: 10px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.grid-3 .card h3 { margin: 0 0 10px; font-size: 1.12rem; }
.grid-3 .card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.98rem; }

.steps-plain {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 8px;
}
.step-plain {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.step-plain:last-child { border-bottom: none; padding-bottom: 0; }
.step-plain h3 { margin: 0 0 8px; font-size: 1.15rem; }
.step-plain p { margin: 0; color: var(--muted); line-height: 1.6; }

.section-closing .closing-text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
}

.contact-block p { margin: 0 0 1.25rem; line-height: 1.6; }
.contact-block p:last-child { margin-bottom: 0; }
.contact-block a { color: var(--brand-blue); }

.eyebrow {
  color: var(--brand-green);
  font-weight: 700;
  margin: 0 0 12px;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  line-height: 1.12;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
main .hero h1.hero-headline {
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  line-height: 1.45;
  font-weight: 700;
}
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  margin: 0 0 26px;
  line-height: 1.65;
}
.lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 20px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand-blue), #0f76d9);
  color: #fff;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  text-align: center;
}
.btn:hover { filter: brightness(1.05); }
.btn-outline {
  background: #fff;
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}
.btn-outline:hover { background: rgba(1, 96, 197, 0.08); filter: none; }

.btn-on-dark {
  background: #fff;
  color: var(--brand-blue-dark);
}
.btn-on-dark:hover { filter: brightness(0.97); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); filter: none; }

.micro-hint { margin: 0; font-size: 0.88rem; color: var(--muted); }

.section { padding: clamp(2.75rem, 5vw, 4rem) 0; }
.section.alt { background: #eef4fa; border-block: 1px solid var(--border); }

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-intro {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}
.section-intro.centered { text-align: center; max-width: 40rem; margin-left: auto; margin-right: auto; }
.section-foot { margin: 1.25rem 0 0; }

.problem-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.65;
}
.problem-list li { margin-bottom: 12px; }
.problem-list li::marker { color: var(--brand-blue); }

.pull-quote {
  margin: 1.75rem 0 0;
  padding: 18px 20px;
  background: #fff;
  border-left: 4px solid var(--brand-green);
  border-radius: 0 10px 10px 0;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 2px 12px rgba(9, 31, 57, 0.06);
}

.solution-steps { display: flex; flex-direction: column; gap: 22px; margin-top: 8px; }
.solution-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}
.solution-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.solution-step h3 { margin: 0 0 8px; font-size: 1.15rem; }
.solution-step p { margin: 0; color: var(--muted); line-height: 1.6; }

.grid-examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 4px 18px rgba(9, 31, 57, 0.04);
}
.card-example h3 { margin: 0 0 12px; font-size: 1.12rem; line-height: 1.3; }
.card-example p { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.6; }

.benefits-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.7;
}
.benefits-list li { margin-bottom: 14px; }
.benefits-list strong { color: var(--text); }

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.process-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.process-num {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--brand-green);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.section-why .why-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.65;
}
.why-list li { margin-bottom: 14px; }

.cta-final {
  background: linear-gradient(160deg, var(--brand-blue-dark) 0%, #061f3d 100%);
  color: #e8f0fa;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}
.cta-final h2 { color: #fff; }
.cta-lead { font-size: 1.08rem; line-height: 1.65; margin: 0 0 22px; opacity: 0.95; }
.cta-lead strong { color: #fff; }
.cta-final .contact-card {
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #e8f0fa;
  box-shadow: none;
}
.cta-final .contact-card a { color: #fff; }
.cta-final .contact-card .muted { color: rgba(232, 240, 250, 0.75); }
.cta-final .contact-card .muted a { color: #b8d4f5; }
.contact-names { margin: 0 0 8px; font-size: 1.05rem; }
.contact-card p { margin: 0 0 12px; }
.contact-card p:last-child { margin-bottom: 0; }

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  margin-top: 0;
  padding-top: 12px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.footer-tagline { margin: 0 0 8px; font-size: 1.02rem; }
.footer-mini { margin: 0; font-size: 0.9rem; max-width: 28rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
}
.footer-nav a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom { padding: 14px 0 22px; }
.footer-legal a { margin-left: 14px; color: var(--brand-blue); text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }

.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }

.muted { color: var(--muted); font-size: 0.94rem; }
h3 { margin-top: 0; }
ul, ol { padding-left: 18px; }

/* Rechtstexte (Impressum / Datenschutz) */
.card.legal h2 { font-size: 1.25rem; margin-top: 1.4em; margin-bottom: 0.5em; }
.card.legal h2:first-of-type { margin-top: 0; }
.card.legal ul { margin: 0.5em 0 1em; }
.card.legal hr.legal-sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.75em 0;
}

@media (max-width: 900px) {
  .grid-examples { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 640px) {
  :root {
    /* Kompakterer Header → etwas weniger Offset nötig */
    --header-offset: 8.75rem;
    /* Eine Fläche mit dem Logo (oft weißes PNG): kein Grau daneben */
    --mobile-top-surface: #ffffff;
  }
  .site-header {
    background: var(--mobile-top-surface);
    border-bottom-color: var(--border);
  }
  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 0 8px;
    gap: 8px;
  }
  .logo {
    width: 168px;
    max-width: 56vw;
  }
  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 4px 4px;
  }
  .nav-links a {
    padding: 6px 10px;
    font-size: 0.9rem;
  }
  .hero {
    padding: clamp(0.85rem, 3vw, 2.5rem) 0 clamp(1.5rem, 5vw, 3rem);
    background: var(--mobile-top-surface);
    border-bottom-color: var(--border);
  }
  .brand-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }
  .hero-headline {
    margin-bottom: 16px;
  }
  .btn-row .btn { width: 100%; }
}

@media (max-width: 400px) {
  :root {
    --header-offset: 8.25rem;
  }
  .nav {
    padding: 4px 0 6px;
    gap: 6px;
  }
  .logo {
    width: 148px;
    max-width: 72vw;
  }
}
