/* ============================================================
   DGD-Check Onepager — Styles
   Farbwelt: Anthrazit #1F2937 · Signalorange #EA580C · Prüfgrün #15803D
   Systemschriften, keine externen Abhängigkeiten.
   ============================================================ */

:root {
  --ink: #1F2937;
  --ink-soft: #4B5563;
  --ink-faint: #6B7280;
  --paper: #FFFFFF;
  --paper-tint: #F5F6F8;
  --line: #D8DCE1;
  --line-soft: #E7EAEE;
  --orange: #EA580C;
  --orange-deep: #C2410C;   /* für Buttons: AA-Kontrast mit Weiß */
  --green: #15803D;
  --dark: #1F2937;
  --dark-2: #273244;
  --dark-line: #3B4657;
  --dark-text: #D7DCE3;
  --dark-text-strong: #FFFFFF;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --container: 1160px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--orange-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip-Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Eyebrow / Zierlinien (Frachtbrief-Laufweite) ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow-invert { color: var(--dark-text); }

/* Gefahrgut-Raute als Formmotiv */
.diamond {
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--orange);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--orange-deep);
  color: #fff;
}
.btn-primary:hover { background: var(--orange); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; text-align: center; }

/* ============================================================
   KOPFZEILE
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; }
.brand-logo { width: 200px; height: auto; }

.main-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--ink); border-bottom-color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.btn-login { padding: 10px 20px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 64px 0 72px;
  background:
    linear-gradient(180deg, #FAFBFC 0%, #FFFFFF 90%);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
/* Rollenbahn-Linie als dezentes Zierelement */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: repeating-linear-gradient(
    -45deg,
    var(--orange) 0 10px,
    transparent 10px 22px
  );
  opacity: 0.55;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em {
  font-style: normal;
  color: var(--orange-deep);
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 34em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-size: 0.9rem;
  color: var(--ink-faint);
}
.hero-facts li {
  position: relative;
  padding-left: 16px;
}
.hero-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--green);
  transform: rotate(45deg);
}
.hero-facts strong { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Screenshot-Rahmen */
.screen-frame {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 22px 44px -18px rgba(31, 41, 55, 0.28);
}
.screen-bar {
  display: flex;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper-tint);
}
.screen-bar span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line);
}
.screen-caption {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin: 12px 4px 0;
}

/* ============================================================
   SEKTIONEN — GRUNDRASTER
   ============================================================ */
.section { padding: 76px 0; }
.section-tint { background: var(--paper-tint); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-dark {
  background: var(--dark);
  color: var(--dark-text);
}
.section-dark h2, .section-dark h3 { color: var(--dark-text-strong); }
.section-dark p { color: var(--dark-text); }
.section-lead {
  font-size: 1.08rem;
  max-width: 46em;
  color: var(--ink-soft);
}
.section-dark .section-lead { color: var(--dark-text); }
.section-narrow-inner { max-width: 820px; }

.footnote {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin: 26px 0 0;
  max-width: 52em;
}
.section-dark .footnote { color: #9AA4B2; }

/* ============================================================
   RISIKO-KACHELN
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--dark-line);
  border: 1px solid var(--dark-line);
  margin-top: 40px;
}
.stat-card {
  background: var(--dark-2);
  padding: 28px 24px 22px;
}
.stat-card-accent {
  box-shadow: inset 0 3px 0 var(--orange);
}
.stat-value {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 700;
  color: var(--dark-text-strong);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.stat-unit { font-size: 0.6em; font-weight: 600; color: var(--dark-text); }
.stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #F0A276;
  margin: 0 0 12px;
}
.stat-text { font-size: 0.92rem; margin: 0; color: var(--dark-text); }

/* ============================================================
   ABLAUF / SCHRITTE
   ============================================================ */
.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  gap: 64px;
}
.step {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 48px;
  align-items: center;
}
.step:nth-child(even) .step-copy { order: 2; }
.step:nth-child(even) .screen-frame { order: 1; }
.step-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange-deep);
  letter-spacing: 0.22em;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--line);
  display: inline-block;
  padding-bottom: 6px;
  margin: 0 0 14px;
}
.step h3 { font-size: 1.45rem; }
.step p { color: var(--ink-soft); margin-bottom: 0; }
.screen-frame-small { box-shadow: 0 16px 32px -16px rgba(31, 41, 55, 0.24); }

/* ============================================================
   PRÜFUMFANG
   ============================================================ */
.check-grid {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 22px;
}
.check-grid li {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.check-grid strong { display: block; color: var(--ink); font-size: 0.98rem; }

/* ============================================================
   ABGRENZUNG
   ============================================================ */
.section-narrow { padding: 68px 0; }
.plain-block {
  max-width: 760px;
  border-left: 3px solid var(--orange);
  padding-left: 32px;
}
.plain-block p { color: var(--ink-soft); max-width: 42em; }
.plain-block p:last-child { margin-bottom: 0; }

/* ============================================================
   TEAM
   ============================================================ */
.team-facts {
  list-style: none;
  margin: 30px 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.team-facts li {
  position: relative;
  padding: 0 0 18px 30px;
  border-bottom: 1px solid var(--dark-line);
}
.team-facts li:last-child { border-bottom: none; padding-bottom: 0; }
.team-facts li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--orange);
  transform: rotate(45deg);
}
.team-note {
  font-size: 0.85rem;
  color: #9AA4B2;
}
.placeholder-block {
  margin-top: 28px;
  border: 1.5px dashed var(--dark-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.9rem;
}
.placeholder-block p { margin: 0; color: #9AA4B2; }

/* ============================================================
   DATENSCHUTZ & BETRIEB
   ============================================================ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}
.trust-card {
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
}
.trust-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.trust-card p { font-size: 0.94rem; color: var(--ink-soft); margin: 0; }

/* ============================================================
   PRICING (vorbereitet)
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
  align-items: stretch;
}
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}
.price-card-featured { border: 2px solid var(--orange-deep); position: relative; }
.price-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--orange-deep);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 3px;
  margin: 0;
}
.price-value {
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 6px 0 18px;
}
.price-unit { font-size: 0.5em; font-weight: 600; color: var(--ink-faint); }
.price-features {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--ink-soft);
  flex: 1;
}
.price-features li {
  padding-left: 22px;
  position: relative;
}
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
  border-bottom: 1px solid var(--line-soft);
}
.faq-item:first-of-type { border-top: 1px solid var(--line-soft); margin-top: 34px; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 18px 40px 18px 0;
  position: relative;
  list-style: none;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--orange-deep);
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { color: var(--orange-deep); }
.faq-item p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  max-width: 46em;
  font-size: 0.97rem;
}

/* ============================================================
   KONTAKT
   ============================================================ */
.kontakt-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: start;
}
.kontakt-copy p { max-width: 30em; }
.kontakt-direct {
  margin-top: 28px;
  font-size: 0.95rem;
}
.kontakt-direct a { color: #F0A276; font-weight: 600; }
.kontakt-direct a:hover { color: #fff; }

.kontakt-form {
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  padding: 30px 28px;
}
.form-row { margin-bottom: 18px; }
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.kontakt-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: var(--dark-text);
}
.kontakt-form label span { color: var(--orange); }
.kontakt-form input,
.kontakt-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  padding: 11px 12px;
}
.kontakt-form input:focus,
.kontakt-form textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--orange);
}
.kontakt-form textarea { resize: vertical; }
.form-note {
  font-size: 0.8rem;
  color: #9AA4B2;
  margin: 14px 0 0;
}

/* ============================================================
   FUSSZEILE
   ============================================================ */
.site-footer {
  background: #161D29;
  color: #9AA4B2;
  padding: 52px 0 34px;
  font-size: 0.9rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--dark-line);
}
.footer-brand img { width: 170px; margin-bottom: 14px; }
.footer-brand p { margin: 0; max-width: 28em; }
.footer-nav, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a, .footer-legal a {
  color: var(--dark-text);
  text-decoration: none;
}
.footer-nav a:hover, .footer-legal a:hover { color: #fff; text-decoration: underline; }
.footer-meta { padding-top: 22px; }
.footer-meta p { margin: 0; font-size: 0.82rem; }

/* ============================================================
   UNTERSEITEN (Impressum / Datenschutz)
   ============================================================ */
.legal-page { padding: 64px 0 90px; }
.legal-page .container { max-width: 780px; }
.legal-placeholder {
  border: 1.5px dashed var(--orange);
  border-radius: var(--radius);
  background: #FFF7ED;
  padding: 20px 22px;
  margin: 26px 0;
  color: var(--ink-soft);
}
.legal-placeholder strong { color: var(--orange-deep); }
.back-link { font-size: 0.95rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .check-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 56px; }
  .step,
  .step:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
  .step:nth-child(even) .step-copy { order: 1; }
  .step:nth-child(even) .screen-frame { order: 2; }
  .kontakt-grid { grid-template-columns: 1fr; gap: 40px; }
  .trust-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  /* Mobiles Menü */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    box-shadow: 0 16px 24px -16px rgba(31, 41, 55, 0.25);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1rem;
  }
  .main-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .container { padding: 0 18px; }
  .brand-logo { width: 158px; }
  .stat-grid { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .btn-login { padding: 9px 14px; }
  .plain-block { padding-left: 20px; }
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Fußzeile: Urheberschaft Marsteam ---------- */
.footer-maker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 30px 0 6px;
  /* Keine eigene Trennlinie: .footer-inner bringt bereits eine border-bottom mit,
     zwei Linien uebereinander wirkten wie ein Fehler. */
}
.footer-maker img {
  flex: 0 0 auto;
  width: 180px;
  height: auto;
  /* Das Marsteam-Logo bringt eine eigene weisse Kontur mit und steht damit
     auf dem Anthrazit-Grund der Fusszeile fuer sich -- nicht einfaerben. */
}
.footer-maker-text { max-width: 92ch; }
.footer-maker-claim {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 650;
  color: #fff;
  letter-spacing: .01em;
}
.footer-maker-text p:last-child {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #9CA3AF;
}
@media (max-width: 640px) {
  .footer-maker { flex-direction: column; gap: 16px; }
  .footer-maker img { width: 150px; }
}

/* ---------- Kontaktformular: Honigtopf und Rückmeldung ---------- */
.kontakt-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin: 14px 0 0;
  padding: 11px 14px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
}
.form-status.is-wartet { background: #F3F4F6; color: #4B5563; }
.form-status.is-erfolg { background: #ECFDF5; color: #15803D; border-left: 3px solid #15803D; }
.form-status.is-fehler { background: #FEF2F2; color: #B91C1C; border-left: 3px solid #B91C1C; }
