/* ============================================================
   ReqCompass – Designsystem
   Farben:  --ink Stahlblau · --accent Prüfgrün · Statusfarben
   Schrift: Archivo (Display) · Source Sans 3 (Text) · IBM Plex Mono (Labels/IDs)
   Schriften werden LOKAL gehostet (assets/fonts/, SIL Open Font License) –
   es findet keine Verbindung zu Google-Servern statt (DSGVO).
   ============================================================ */

/* --- Lokale Schriftarten (Self-Hosting, kein Google-CDN) --- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/archivo-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/archivo-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --ink: #14212f;
  --ink-soft: #45566a;
  --paper: #ffffff;
  --tint: #f2f5f8;
  --line: #d9e0e7;
  --accent: #3574e6;
  --accent-dark: #2258c4;
  --accent-soft: #e9f0fd;
  --amber: #b06f00;
  --amber-soft: #fbf1dc;
  --red: #b3362b;
  --red-soft: #fbe9e7;
  --radius: 10px;
  --maxw: 1120px;
  --font-display: "Archivo", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", "SF Mono", "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

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

/* --- Typo --- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
.lead { font-size: 1.22rem; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; }
.brand .byline { font-family: var(--font-mono); font-weight: 400; font-size: 0.68rem; color: var(--ink-soft); margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 0.98rem; }
.nav-links a[aria-current="page"] { color: var(--accent-dark); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-links a:hover { color: var(--accent-dark); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 1.05rem; cursor: pointer; color: var(--ink); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1rem;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-lg { padding: 15px 28px; font-size: 1.08rem; }

/* --- Hero --- */
.hero { padding: 76px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero .lead { margin: 18px 0 28px; max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.trust-line { font-size: 0.92rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 8px 18px; }
.trust-line span { display: inline-flex; align-items: center; gap: 7px; }
.trust-line svg { width: 15px; height: 15px; flex: none; }

/* --- Anforderungstabelle (Signatur-Element) --- */
.reqtable-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px -30px rgba(20,33,47,0.25);
  overflow: hidden;
}
.reqtable-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--tint);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft);
}
.reqtable-head .dots { display: flex; gap: 6px; }
.reqtable-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.reqtable { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.reqtable th {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft);
  text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.reqtable td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.reqtable tr:last-child td { border-bottom: none; }
.reqtable .rid { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); white-space: nowrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  padding: 3px 10px; border-radius: 99px; white-space: nowrap;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-ok { background: #e5f3ec; color: #0f7a43; }
.chip-check { background: var(--amber-soft); color: var(--amber); }
.chip-no { background: var(--red-soft); color: var(--red); }
.ki-hint {
  margin-top: 6px; font-size: 0.8rem; color: var(--ink-soft);
  background: var(--tint); border-left: 3px solid var(--accent);
  padding: 6px 9px; border-radius: 0 6px 6px 0;
}
.ki-hint b { color: var(--accent-dark); font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; }
.fig-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 10px; text-align: center; }

/* --- Sektionen --- */
.section { padding: 76px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 44em; margin-bottom: 44px; }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.12rem; }

/* --- Prozess-Schritte --- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-top: 16px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-dark);
  display: block; margin-bottom: 10px;
  border-top: 2px solid var(--accent); padding-top: 10px; width: 100%;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }

/* --- Nutzen-Karten --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.card h3 svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.card p { color: var(--ink-soft); font-size: 1rem; }
.card .metric { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent-dark); margin-top: 12px; display: block; }

/* --- Feature-Zeilen (Produktseite) --- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.feature-row:last-of-type { border-bottom: none; }
.feature-row.reverse .feature-media { order: -1; }
.feature-row p { color: var(--ink-soft); margin-top: 12px; }
.feature-row ul { margin: 16px 0 0 0; list-style: none; }
.feature-row li { padding-left: 28px; position: relative; margin-bottom: 9px; color: var(--ink); }
.feature-row li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232258c4' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 9px; background-position: center; background-repeat: no-repeat;
}
.feature-media img { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 50px -28px rgba(20,33,47,0.3); }

/* --- Preise --- */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.pricing-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--accent); position: relative; }
.price-card.featured .flag {
  position: absolute; top: -13px; left: 28px;
  background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 99px;
}
.price-card h3 { font-size: 1.35rem; }
.price-card .for { color: var(--ink-soft); font-size: 0.95rem; margin: 6px 0 18px; min-height: 2.6em; }
.price { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; letter-spacing: -0.02em; }
.price small { font-family: var(--font-body); font-size: 0.95rem; font-weight: 400; color: var(--ink-soft); }
.price-card ul { list-style: none; margin: 22px 0 26px; flex: 1; }
.price-card li { padding: 7px 0 7px 28px; position: relative; font-size: 0.98rem; border-bottom: 1px dashed var(--line); }
.price-card li:last-child { border-bottom: none; }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 15px; height: 15px; border-radius: 50%; background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232258c4' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 9px; background-position: center; background-repeat: no-repeat;
}
.price-note { text-align: center; color: var(--ink-soft); font-size: 0.95rem; margin-top: 26px; }

/* --- FAQ --- */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  font-family: var(--font-display); font-weight: 600; font-size: 1.06rem;
  padding: 18px 34px 18px 0; cursor: pointer; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px;
  font-family: var(--font-mono); font-size: 1.3rem; color: var(--accent-dark);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); max-width: 60em; }

/* --- Sicherheitstabelle --- */
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th { width: 260px; font-family: var(--font-mono); font-weight: 500; font-size: 0.82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; background: var(--tint); }
.spec-table td { color: var(--ink); font-size: 1rem; }

/* --- CTA-Banner --- */
.cta-banner { background: var(--ink); color: #fff; border-radius: 18px; padding: 56px 48px; text-align: center; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #b9c5d2; margin: 14px auto 28px; max-width: 38em; }
.cta-banner .btn-primary { background: var(--accent); }
.cta-banner .btn-primary:hover { background: #4a86ef; }
.cta-banner .btn-ghost { background: transparent; color: #fff; border-color: #4a5a6c; }
.cta-banner .btn-ghost:hover { border-color: #fff; }

/* --- Formular --- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
/* Nur Textfelder erhalten volle Breite + Rahmen – Radios/Checkboxen bleiben nativ
   (wichtig für den Potenzialanalyse-Fragebogen). */
input:not([type="radio"]):not([type="checkbox"]), textarea, select {
  width: 100%; font: inherit; color: var(--ink);
  padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff;
}
input[type="radio"], input[type="checkbox"] { accent-color: var(--accent); }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
.form-hint { font-size: 0.88rem; color: var(--ink-soft); }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--line); background: var(--tint); padding: 48px 0 36px; margin-top: 76px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); margin-bottom: 12px; font-weight: 500; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: var(--ink-soft); font-size: 0.88rem; }

/* --- Rechtstexte --- */
.legal { max-width: 780px; padding: 64px 24px; margin: 0 auto; }
.legal h1 { margin-bottom: 24px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }

/* --- Responsive --- */
@media (max-width: 960px) {
  .hero-grid, .feature-row, .grid-2 { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-media { order: 0; }
  .steps, .grid-3, .pricing, .pricing-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 56px 0; }
}
@media (max-width: 680px) {
  .steps, .grid-3, .pricing, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 24px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-toggle { display: block; }
  .cta-banner { padding: 40px 24px; }
}

/* --- Formulare (Kontakt & Potenzialanalyse) --- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .q label.q-title { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; }
.form-status { margin-top: 14px; font-weight: 600; display: none; padding: 12px 14px; border-radius: 8px; font-size: 0.95rem; }
.form-status.ok { display: block; background: #e5f3ec; color: #0f7a43; }
.form-status.err { display: block; background: var(--red-soft); color: var(--red); }
/* Honeypot: für Menschen unsichtbar, für Bots ein normales Feld */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* --- Fragebogen Potenzialanalyse --- */
.q-section { margin-top: 44px; }
.q-section > h2 { font-size: 1.35rem; padding-bottom: 10px; border-bottom: 2px solid var(--accent-soft); }
.q { margin-top: 26px; }
.q .q-title { font-weight: 600; margin-bottom: 10px; }
.q .q-hint { font-size: 0.85rem; color: var(--ink-soft); font-weight: 400; }
.choice-list { display: grid; gap: 8px; }
.choice-list.cols-2 { grid-template-columns: 1fr 1fr; }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: #fff; font-size: 0.98rem; font-weight: 400; margin-bottom: 0; }
.choice:hover { border-color: var(--accent); }
.choice input { margin-top: 4px; accent-color: var(--accent); flex: none; }
.choice input[type="text"] { margin-top: 0; width: auto; min-width: 120px; border: none; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 2px; flex: 1; }
.matrix { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.matrix th, .matrix td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix thead th { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); font-weight: 500; }
.matrix input { accent-color: var(--accent); width: 17px; height: 17px; }
.inline-count { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.inline-count input[type="number"] { width: 110px; }
.inline-count select { width: auto; }
@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
  .choice-list.cols-2 { grid-template-columns: 1fr; }
  .matrix { font-size: 0.85rem; }
  .matrix th, .matrix td { padding: 7px 5px; }
}
