/*
 * Die Verkaufsseite trägt dieselbe Kleidung wie das Produkt.
 *
 * Farben und Schrift kommen aus apps/web-admin/src/styles/tokens.css. Wer von der Seite
 * in die Anwendung kommt, soll nicht das Gefühl haben, das Fenster gewechselt zu haben.
 *
 * Montserrat wird selbst ausgeliefert und nicht von Google geholt — sonst schickt der
 * Browser jedes Besuchers IP und Kennung an einen US-Server, während wir daneben mit
 * Schweizer Hosting werben.
 */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/montserrat-400.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/montserrat-600.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/montserrat-700.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/montserrat-800.woff2") format("woff2");
}

:root {
  --bg: #f2f5f8;
  --surface: #fdfdfc;
  --surface-2: #e7ecf1;
  --border: #d2dae2;
  --text: #172138;
  --text-muted: #5a6675;
  --text-faint: #8895a3;
  --accent: #2453e0;
  --accent-ink: #0e2f94;
  --accent-contrast: #ffffff;
  --accent-soft: #e5ebfc;
  --ok: #158a50;
  --ok-bg: #e1f5ea;
  --ok-ink: #0e5c34;
  --mangel: #c6303b;
  --mangel-bg: #fbeaeb;
  --mangel-ink: #8c1f27;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --font: "Montserrat", "Segoe UI", -apple-system, Roboto, Arial, sans-serif;
  --mono: "Cascadia Mono", "SF Mono", Consolas, ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1217;
    --surface: #161d25;
    --surface-2: #1e2731;
    --border: #2c3743;
    --text: #eaf0f6;
    --text-muted: #98a5b3;
    --text-faint: #838f9d;
    --accent: #5c87f5;
    --accent-ink: #c7d6fc;
    --accent-contrast: #0a1020;
    --accent-soft: #1b2740;
    --ok: #39c57f;
    --ok-bg: #123423;
    --ok-ink: #8cebb9;
    --mangel: #ff6b6b;
    --mangel-bg: #3b1518;
    --mangel-ink: #ffb3b3;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 22px; }
.schmal { max-width: 66ch; }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(31px, 5.5vw, 50px); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(23px, 3.4vw, 31px); font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

a { color: var(--accent-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- Kopfzeile ---- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.kopf .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
/* ---- Marke ----
   Nach docs/brand/FM-Proof_Brand_Guide.md:
   - Die Wortmarke wird als gelieferte Bilddatei eingesetzt und nie mit Text nachgesetzt;
     die Buchstaben sind eine eigens gezeichnete Form ohne entsprechende Schrift.
   - Unter etwa 180 px Breite gilt nur das Doppel-O-Symbol. Deshalb 190 px in der
     Kopfzeile und auf schmalen Geräten über <picture> das Symbol allein.
   - Rundherum mindestens eine halbe Symbolhöhe frei — das ist die Polsterung der
     Kopfzeile und der Abstand zur Navigation.
   - Die Hälfte "Proof" ist Proof Navy und verschwände auf dunklem Grund. Der Guide
     kennt nur helle Hintergründe für das Logo, also bekommt es im Dunkelmodus die
     Warm-White-Fläche der Mastergrafik unter sich. */
.marke { display: flex; align-items: center; text-decoration: none; flex: none; }
.marke img { width: 190px; height: auto; display: block; }
@media (max-width: 420px) {
  .marke img { width: 46px; }
}
@media (prefers-color-scheme: dark) {
  .marke {
    background: #fdfdfc;
    padding: 8px 14px;
    border-radius: 10px;
  }
}
.kopf nav { display: flex; align-items: center; gap: 20px; }
.kopf nav a { color: var(--text-muted); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.kopf nav a:hover { color: var(--text); }
@media (max-width: 680px) {
  .kopf nav a.nur-breit { display: none; }
}

/* ---- Knöpfe ---- */
.knopf {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--accent-contrast);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.knopf:hover { background: var(--accent-ink); }
.knopf.stille {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.knopf.stille:hover { background: var(--surface-2); }
.knopf[disabled] { opacity: 0.6; cursor: default; }

/* ---- Abschnitte ---- */
section { padding: 68px 0; }
section.getont { background: var(--surface); border-block: 1px solid var(--border); }
.abschnitt-kopf { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.augenbraue {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.lead { font-size: 17.5px; color: var(--text-muted); max-width: 62ch; }

/* ---- Aufmacher ---- */
.aufmacher { padding: 76px 0 62px; }
.aufmacher .lead { font-size: 19px; margin-top: 18px; }
.aufmacher .tasten { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.merkmale {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.merkmale span { display: inline-flex; align-items: center; gap: 8px; }
.punkt { width: 7px; height: 7px; border-radius: 999px; background: var(--ok); flex: none; }

/* ---- Karten ---- */
.raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 16px;
}
.karte {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
section.getont .karte { background: var(--bg); }
.karte p { color: var(--text-muted); font-size: 14.5px; }
/*
 * Die Zeile, die sagt, was am Ende herauskommt.
 *
 * Stand bis zum 16.08.2026 in `--text-faint` und kam damit im Hellmodus auf 2,8:1 — für
 * eine Randnotiz vertretbar, für die tragende Aussage der Karte nicht. Seit der Abschnitt
 * ausdrücklich auf diese Zeile verweist, hat sie dasselbe Gewicht wie der Fliesstext.
 */
.karte .fuss {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}
.marke-live {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok-ink);
}
/* Zwei Angaben nebeneinander: ob es den Baustein gibt, und was für einer es ist. */
.marken {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.marke-stufe {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
/* Der Aufbau hebt sich ab: Er ist der einzige, der ohne einen anderen nicht zu haben ist. */
.marke-stufe.aufbau {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent-soft);
}
.marke-bald {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-faint);
}

/* ---- Ablauf in drei Schritten ---- */
ol.schritte {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 18px;
  counter-reset: s;
}
ol.schritte li {
  counter-increment: s;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}
section.getont ol.schritte li { background: var(--bg); }
ol.schritte li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 13px;
}
ol.schritte h3 { margin-bottom: 6px; }
ol.schritte p { color: var(--text-muted); font-size: 14.5px; }

/* ---- Preisstufen ---- */
.stufen { display: flex; flex-direction: column; gap: 14px; }
.stufe {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
section.getont .stufe { background: var(--bg); }
.stufe .name { font-weight: 800; font-size: 17px; }
.stufe p { color: var(--text-muted); font-size: 14.5px; }
@media (max-width: 620px) {
  .stufe { grid-template-columns: 1fr; gap: 6px; }
}

/* ---- Hervorhebung ---- */
.hinweis {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: 17px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
  margin-top: 26px;
  max-width: 68ch;
}

/* ---- Formular ---- */
form { display: grid; gap: 14px; max-width: 620px; }
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld label { font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
.feld input,
.feld textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
}
.feld textarea { min-height: 128px; resize: vertical; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .zwei { grid-template-columns: 1fr; } }
/* Falle für Maschinen: unsichtbar für Menschen, ausgefüllt von den meisten Bots. */
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.meldung {
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14.5px;
  border-left: 3px solid;
}
.meldung.gut { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok); }
.meldung.schlecht { background: var(--mangel-bg); color: var(--mangel-ink); border-color: var(--mangel); }
.klein { font-size: 13px; color: var(--text-faint); max-width: 62ch; }

/* ---- Fusszeile ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
  color: var(--text-faint);
  font-size: 13.5px;
}
footer .zeilen { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between; }
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ---- Rechtliche Seiten ---- */
.rechtstext { padding: 56px 0 72px; }
.rechtstext h2 { margin-top: 34px; font-size: 21px; }
.rechtstext p, .rechtstext li { color: var(--text-muted); font-size: 15px; }
.rechtstext ul { padding-left: 20px; }
.rechtstext .zurueck { display: inline-block; margin-bottom: 22px; font-size: 14.5px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
