:root {
  --navy: #0B1D34;
  --green: #4CAF34;
  --anth: #232628;
  --white: #FFFFFF;
  --muted: #F5F7F8;
  --border: #E5EBEF;
  --text-muted: #5A6570;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(11, 29, 52, 0.07);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--anth);
  background: var(--white);
  line-height: 1.55;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container { width: min(var(--max), 100% - 40px); margin: 0 auto; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.brand img { height: 52px; width: auto; }
.nav-toggle {
  display: none; border: 2px solid var(--navy); background: #fff;
  color: var(--navy); font-size: 20px; padding: 6px 12px; border-radius: 8px; cursor: pointer;
}
.site-nav { display: flex; align-items: center; gap: 22px; font-weight: 700; color: var(--navy); }
.site-nav a { text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: var(--green); }
.nav-cta {
  background: var(--green) !important; color: #fff !important;
  padding: 10px 16px; border-radius: 10px;
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 12px; text-decoration: none;
  font-weight: 800; font-size: 16px; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
button.button { font: inherit; appearance: none; }
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.button.primary { background: var(--green); color: #fff; }
.button.secondary { background: #fff; color: var(--navy); border-color: var(--navy); }
.button.block { width: 100%; }
.button.sm { padding: 10px 16px; font-size: 14px; }

/* Hero */
.hero {
  padding: clamp(48px, 8vw, 96px) clamp(16px, 5vw, 48px);
  background: var(--muted);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--green); font-weight: 800; font-size: 13px; margin-bottom: 12px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); margin: 0 0 16px; }
.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--text-muted); max-width: 640px; margin-bottom: 0; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 16px;
  padding: clamp(20px, 3.5vw, 32px) clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  width: fit-content;
  max-width: 100%;
  justify-self: center;
}
.hero-logo {
  width: min(100%, 340px);
  height: auto;
  display: block;
}
.trust-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.trust-list span {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--navy);
}

/* Sections */
.section { padding: clamp(48px, 7vw, 80px) clamp(16px, 5vw, 48px); }
.section.muted { background: var(--muted); }
.section.navy { background: var(--navy); color: #fff; }
.section.navy h2, .section.navy h3 { color: #fff; }
.section-title { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; }
.section-intro { color: var(--text-muted); max-width: 720px; margin-bottom: 32px; font-size: 18px; }
.abo-meta {
  color: var(--text-muted);
  max-width: 720px;
  margin: -16px 0 28px;
  font-size: 15px;
  line-height: 1.5;
}

/* Cards */
.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); height: 100%;
}
.card h3 { margin-top: 0; font-size: 22px; }
.card .price { color: var(--green); font-weight: 900; font-size: 22px; margin: 8px 0; }
.card.featured { border-color: var(--green); border-width: 2px; }
.card ul { margin: 12px 0 0; font-size: 15px; color: var(--text-muted); }
.card-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 0; min-height: 0; }
.card-body > ul:last-child { margin-bottom: 20px; }
.card > .button,
.card > a.button {
  margin-top: auto;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
}
.card-icon { font-size: 28px; margin-bottom: 8px; }
.cards.abo-cards .card { padding: 22px; }
.cards.abo-cards .card .price { margin: 4px 0 8px; }
.cards.abo-cards .card ul { margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 10px;
}

/* FAQ */
.faq details {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 10px;
}
.faq summary { font-weight: 700; color: var(--navy); cursor: pointer; }
.faq p { margin: 12px 0 0; color: var(--text-muted); line-height: 1.65; }
.faq details p + p { margin-top: 10px; }
.info-box {
  background: #f0f9ee; border-left: 4px solid var(--green);
  padding: 16px 20px; border-radius: 0 12px 12px 0; font-size: 15px;
  margin: 0;
}

/* Forms */
.form-grid { display: grid; gap: 14px; max-width: 760px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font: inherit; padding: 14px 16px;
  border: 1px solid #D8E0E5; border-radius: 12px; background: #fff;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--green); border-color: var(--green);
}
.checkbox-field { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.checkbox-field input { margin-top: 4px; }
.form-status {
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  margin-top: 12px;
}
.form-status:empty,
.form-status[hidden] { display: none !important; }
.form-status.ok:not([hidden]) { display: block; background: #e8f8e6; color: #1d5c18; }
.form-status.err:not([hidden]) { display: block; background: #fdeaea; color: #8b1c1c; }
.form-optional { font-weight: 400; color: var(--text-muted); font-size: 13px; }
.selbst-einschaetzung-field { border: 0; margin: 0; padding: 0; }
.selbst-einschaetzung-field legend {
  font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--navy);
}
.selbst-einschaetzung {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.selbst-einschaetzung-option { cursor: pointer; display: flex; min-height: 100%; }
.selbst-einschaetzung-option input {
  position: absolute; opacity: 0; pointer-events: none;
}
.selbst-einschaetzung-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 118px;
  padding: 18px 14px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}
.selbst-einschaetzung-option input:checked + .selbst-einschaetzung-card,
.selbst-einschaetzung-option:hover .selbst-einschaetzung-card {
  border-color: var(--green);
  background: #f0f9ee;
}
.selbst-einschaetzung-card strong { font-size: 16px; font-weight: 800; color: var(--navy); }
.selbst-einschaetzung-beispiel { font-size: 13px; color: var(--text-muted); }

.page-hero {
  padding: 56px clamp(16px, 5vw, 48px) 40px;
  background: var(--muted); border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 44px); }
.page-hero .lead { max-width: 720px; color: var(--text-muted); margin: 0; }
.page-prose { max-width: 760px; }
.page-prose h2 { font-size: 22px; margin: 8px 0 12px; }
.page-prose p, .page-prose li { color: var(--text-muted); }
.page-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.breadcrumb { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--navy); font-weight: 600; text-decoration: none; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.price-list { list-style: none; padding: 0; margin: 0; font-size: 18px; }
.price-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }

.service-list { margin: 0; color: var(--text-muted); }
.service-list li { margin-bottom: 8px; }

/* Footer */
.site-footer {
  background: #071525; color: #fff; margin-top: 48px;
  border-top: 8px solid var(--green); padding: 48px clamp(16px, 5vw, 48px) 24px;
}
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px;
  max-width: var(--max); margin: 0 auto;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-brand img {
  width: 200px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  margin: 0;
}
.footer-brand .claim { font-weight: 700; margin: 0; line-height: 1.4; }
.footer-brand .region { opacity: .8; font-size: 14px; margin: 0; }
.footer-brand .button { margin-top: 6px; width: 100%; max-width: 280px; }
.site-footer h2,
.site-footer h3,
.site-footer h4 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.site-footer p { color: rgba(255,255,255,.92); }
.site-footer a { color: #fff; text-decoration: none; opacity: .95; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom {
  max-width: var(--max); margin: 28px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; opacity: .7;
}

.legal-page main { max-width: 800px; margin: 0 auto; padding: 48px 24px 80px; }
.legal-page h2 { font-size: 22px; margin: 32px 0 12px; }
.legal-page h3 { font-size: 18px; margin: 24px 0 8px; }
.legal-page ul { margin: 0 0 1em; }

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

@media (max-width: 720px) {
  .selbst-einschaetzung { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .hero-grid, .split, .cards.three, .cards.four, .steps, .footer-inner { grid-template-columns: 1fr; }
  .hero-grid { gap: 24px; }
  .hero-visual { order: -1; padding: 16px 20px; }
  .hero-logo { max-width: 280px; }
  .cta-row .button { flex: 1 1 100%; }
  .footer-brand .button { max-width: none; }
  .form-row { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-header { flex-wrap: wrap; position: relative; }
}
