/* Qifora landing page — brand tokens per docs/brand-style.md.
   Self-hosted font only (no external requests → GDPR-safe, CSP-strict). */

@font-face {
  font-family: "InterVariable";
  /* Legen Sie InterVariable.woff2 in /fonts/ ab (siehe fonts/README.md).
     Fehlt die Datei, greift automatisch der System-Font-Stack unten. */
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Design tokens (Light = Standard) ── */
:root {
  --ink: #0B0F14;
  --paper: #F7F8FA;
  --line: #D8DEE6;
  --blue: #1F5E8C;
  --blue-deep: #164A6E;
  --muted: #667085;
  --positive: #157347;
  --negative: #B42318;
  --surface: #FFFFFF;
  --header-bg: rgba(255, 255, 255, 0.9);
  --footer-bg: #0B0F14;
  --on-accent: #FFFFFF;
  --text-soft: #384150;

  --font: "InterVariable", "Inter", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1080px;
  --maxw-narrow: 760px;
  --radius: 12px;
  --radius-sm: 8px;
}

/* ── Dark: automatisch (System) außer manuell auf Light gestellt ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E7ECF2;
    --paper: #151C24;
    --line: #273039;
    --blue: #6FA8D6;
    --blue-deep: #8CBBE0;
    --muted: #9AA6B2;
    --surface: #161D25;
    --header-bg: rgba(15, 20, 26, 0.9);
    --on-accent: #0B1016;
    --text-soft: #C2CBD6;
  }
}

/* ── Dark: manuell erzwungen ── */
:root[data-theme="dark"] {
  --ink: #E7ECF2;
  --paper: #151C24;
  --line: #273039;
  --blue: #6FA8D6;
  --blue-deep: #8CBBE0;
  --muted: #9AA6B2;
  --surface: #161D25;
  --header-bg: rgba(15, 20, 26, 0.9);
  --on-accent: #0B1016;
  --text-soft: #C2CBD6;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 680; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 640; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #0B0F14; color: #FFFFFF;
  padding: 10px 16px; border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; display: block; }
.brand-mark [stroke] { stroke: var(--blue); }
.brand-word { font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--blue); }
.site-nav { display: flex; gap: 20px; margin-left: auto; }
.site-nav a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 560; font-size: 1rem; line-height: 1;
  padding: 13px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-sm { padding: 9px 15px; font-size: 0.9rem; }
.btn-primary { background: var(--blue); color: var(--on-accent); }
.btn-primary:hover { background: var(--blue-deep); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-block { display: flex; width: 100%; margin-top: 8px; }

/* Language switch */
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.lang-switch a { color: var(--muted); font-weight: 500; }
.lang-switch a[aria-current="page"] { color: var(--ink); }
.lang-switch a:hover { color: var(--ink); text-decoration: none; }
.lang-sep { opacity: 0.5; }

/* Hero */
.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem;
  font-weight: 600; color: var(--blue); margin: 0 0 16px;
}
.hero h1 { margin-bottom: 20px; }
.lede { font-size: 1.2rem; color: var(--text-soft); max-width: 620px; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-note { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* Bands & sections */
.section { padding: clamp(48px, 7vw, 80px) 0; }
.band { padding: clamp(48px, 7vw, 80px) 0; background: var(--paper); border-block: 1px solid var(--line); }
.section-title { margin-bottom: 28px; }
.band .narrow p { color: var(--text-soft); font-size: 1.08rem; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { color: var(--ink); display: flex; align-items: center; gap: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.card-icon {
  width: 26px; height: 26px; margin-bottom: 14px; display: block;
  color: var(--blue); stroke: currentColor; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex: none;
  background: var(--blue); color: var(--on-accent);
  border-radius: 50%; font-size: 0.9rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Open-source band */
.os-band .os-inner { display: flex; gap: 20px; align-items: flex-start; }
.os-icon {
  width: 40px; height: 40px; flex: none; color: var(--blue);
  stroke: currentColor; fill: none; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.os-band h2 { margin-bottom: 10px; }
.os-band p { color: var(--text-soft); margin-bottom: 10px; }

/* Article / blog */
.article { padding: clamp(40px, 6vw, 72px) 0; }
.article .container { max-width: var(--maxw-narrow); }
.article h1 { margin-bottom: 12px; }
.article .article-meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 28px; }
.article h2 { margin-top: 40px; }
.article p, .article li { color: var(--text-soft); }
.article ol, .article ul { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.98rem; }
.article th, .article td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { color: var(--muted); font-weight: 500; }
.callout {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* Price */
.price-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; max-width: 460px; margin: 0 auto;
  text-align: center;
}
.price-eyebrow { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.price { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 0 0 8px; }
.price-amount { font-size: 2.8rem; font-weight: 660; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "zero" 1; }
.price-unit { color: var(--muted); font-weight: 500; }
.price-founder { color: var(--blue); font-size: 0.98rem; margin: 0 0 18px; }
.price-list { list-style: none; margin: 0 0 22px; padding: 0; text-align: left; }
.price-list li { padding: 8px 0 8px 26px; position: relative; color: var(--ink); border-bottom: 1px solid var(--line); }
.price-list li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--positive); }
.price-fineprint { font-size: 0.82rem; color: var(--muted); margin: 12px 0 0; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 6px 0; }
summary {
  cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative;
  font-weight: 560; color: var(--ink);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; font-weight: 400; color: var(--blue); line-height: 1; }
details[open] summary::after { content: "\2013"; }
details p { color: var(--muted); margin: 0 0 14px; padding-right: 24px; }

/* Footer */
.site-footer { background: var(--footer-bg); color: #C6CDD8; padding: 48px 0 32px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; padding-bottom: 24px; margin-bottom: 20px; border-bottom: 1px solid #23303e; }
.footer-word { color: #FFFFFF; font-size: 1.25rem; }
.footer-tag { color: #8B95A3; margin: 6px 0 0; font-size: 0.95rem; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: #C6CDD8; font-weight: 500; }
.footer-nav a:hover { color: #FFFFFF; }
.trademark { color: #7C8797; font-size: 0.82rem; max-width: 640px; margin: 0 0 8px; }
.copyright { color: #7C8797; font-size: 0.82rem; margin: 0; }

/* Gründerinnen-Story */
.founder-sign { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }

/* Badge (kleine Kennzeichnung, z. B. "Beta") */
.badge {
  display: inline-block; vertical-align: middle;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--blue); border: 1px solid var(--blue);
  border-radius: 999px; padding: 2px 8px; line-height: 1.4;
}

/* Beta / Formulare */
.section-intro { color: var(--text-soft); font-size: 1.08rem; max-width: 620px; margin: -12px 0 28px; }
.signup-card { padding: 28px; }
.card .card-lede, .mini-signup .card-lede { margin: 0 0 18px; color: var(--muted); font-size: 0.98rem; }

.mini-signup { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.mini-signup h3 { margin-bottom: 6px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input[type="email"] { flex: 1; min-width: 220px; width: auto; }

.fr-toggle { margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fr-toggle summary { color: var(--muted); font-weight: 500; }
.fr-toggle form { padding: 4px 0 18px; max-width: 560px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

form .field { display: block; margin: 0 0 14px; }
form .field label {
  display: block; font-size: 0.88rem; font-weight: 500;
  color: var(--text-soft); margin-bottom: 6px;
}
form input[type="email"],
form input[type="text"],
form select,
form textarea {
  width: 100%; padding: 11px 12px;
  font: inherit; font-size: 0.98rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s;
}
form textarea { resize: vertical; min-height: 80px; }
form input:focus-visible, form select:focus-visible, form textarea:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue);
}
form input::placeholder, form textarea::placeholder { color: var(--muted); opacity: 0.7; }
.card .form-note { font-size: 0.82rem; color: var(--muted); margin: 10px 0 0; }
.card .form-note a { color: var(--muted); text-decoration: underline; }

/* Honeypot: unsichtbar für Menschen, sichtbar für Bots */
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; }

/* Versions-Vergleich (Kostenlos / Pro) */
.tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; max-width: 900px; }
.tier-card { padding: 26px; }
.tier-card h3 { margin-bottom: 12px; }
@media (max-width: 820px) {
  .tier-grid { grid-template-columns: 1fr; }
}

/* Fahrplan-Liste (neutral, Blau als Akzent — Grün bleibt Finanz-Semantik) */
.plan-list { list-style: none; margin: 8px 0 0; padding: 0; }
.plan-list li { padding: 9px 0 9px 26px; position: relative; color: var(--text-soft); border-bottom: 1px solid var(--line); }
.plan-list li:last-child { border-bottom: none; }
.plan-list li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.plan-list strong { color: var(--ink); font-weight: 600; }

/* Focus visibility */
a:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px;
}

/* Responsive */
@media (max-width: 820px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .os-band .os-inner { flex-direction: column; gap: 12px; }
  .footer-inner { flex-direction: column; }
  .header-inner { gap: 10px; }
  .cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
