/* Die Tokens der Seite - hell, aus squally-apps :root (siehe CLAUDE.md).
   Stehen seit 15.09. hier statt auf `body.landing`: als die Landingpage
   umgestellt wurde, waren die Rechtsseiten noch dunkel, und ein helles
   :root haette sie mit umgefaerbt. Jetzt sind alle drei Seiten hell, und
   ein Tokensatz fuer die ganze Site ist das, was eine Themeaenderung
   eigentlich meint. Nachgemessen vor der Umstellung: die dunklen Werte
   unten werden von keiner Regel mehr gelesen, die noch etwas trifft. */
:root{
  --background: #f8f5f1;
  --foreground: #2a2620;
  --card: #fefdfb;
  --border: #e6e0d6;
  --muted: #f1ede6;
  --muted-foreground: #6b655c;
  --primary: #007e7f;
  --primary-foreground: #ffffff;
  --brand-mark: #007e7f;
  --link: #007e7f;
  /* Dokumentiertes Composite von --primary bei 10% ueber der Seite,
     plus die Textfarbe, die darauf AA schafft. */
  --primary-tint: #dee9e5;
  --primary-tint-foreground: #00686a;
  --status-stable: #329d5a;
  --status-broken: #e24947;
  --status-flaky: #b77600;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
}

/* ALTBESTAND, nur noch fuer die toten Regeln weiter unten (Terminal,
   pain-*, steps, final-cta ...). Keine davon trifft seit der Umstellung
   auf Variante B noch ein Element - nachgemessen, jeder Selektor der
   Datei gegen alle drei Seiten. Der Block geht zusammen mit ihnen; er
   steht hier nur, damit sie bis dahin nicht ins Leere zeigen.
   NICHT fuer neue Regeln benutzen. */
:root{
  --bg: #10141C;
  --surface: #171B24;
  --surface-2: #1E2430;
  --text: #E6E8EB;
  --text-muted: #8891A0;
  --pass: #34D399;
  --fail: #F87171;
  --flaky: #FBBF24;
  --flaky-dim: #FBBF2422;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Manrope', system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Manrope', system-ui, sans-serif; margin: 0; }
code, .mono { font-family: 'Fira Code', ui-monospace, monospace; }

a { color: inherit; }
/* Site-weit, nicht nur auf der Landingpage: die Rechtsseiten fielen sonst
   auf den UA-Ring zurueck (auto 1px), waehrend index.html einen gesetzten
   hatte - gemessen beim Durchtabben, nicht vermutet. */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Nav */
nav {
  display:flex; align-items:center; justify-content:space-between;
  padding: 24px; max-width: 1080px; margin: 0 auto;
}
/* gap 10px, nicht mehr 8: die Rechtsseiten trugen bis 15.09. einen
   8px-Punkt als Marke, jetzt dasselbe 24px-SVG wie die Landingpage, und
   das Wort soll auf allen drei Seiten denselben Abstand zur Marke haben
   wie dort (.landing .brand). Die .logo-Typografie selbst bleibt, wie sie
   war - hier wurde die Marke getauscht, nicht die Wortmarke. */
.logo { font-weight:700; font-size: 1.1rem; letter-spacing: -0.02em; display:flex; align-items:center; gap:10px; }
.nav-cta {
  font-size: 0.9rem; padding: 8px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-md); text-decoration:none; color: var(--foreground);
  background: var(--card);
  transition: border-color .15s, color .15s;
}
.nav-cta:hover { border-color: var(--primary); color: var(--primary); }

/* Hero */
header.hero { padding: 48px 0 80px; }
.hero-grid {
  display:grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items:center;
}
.eyebrow {
  display:inline-flex; align-items:center; gap:8px;
  font-family:'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--flaky);
  background: var(--flaky-dim); border: 1px solid #FBBF2444;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
h1.headline {
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  line-height: 1.08; letter-spacing: -0.02em; font-weight: 700;
}
h1.headline .accent { color: var(--flaky); }
.sub {
  color: var(--text-muted); font-size: 1.08rem; margin-top: 20px; max-width: 46ch;
}

.cta-row { display:flex; gap:12px; margin-top: 32px; flex-wrap: wrap; }
form.waitlist { display:flex; gap:0; max-width: 420px; width:100%; }
form.waitlist input[type=email]{
  flex:1; background: var(--surface); border:1px solid var(--border); border-right:none;
  color: var(--text); padding: 13px 16px; border-radius: 8px 0 0 8px; font-family: inherit; font-size: 0.95rem;
  min-width: 0;
}
form.waitlist input[type=email]:focus-visible{ outline: 2px solid var(--flaky); outline-offset: -2px; }
form.waitlist button{
  background: var(--flaky); color: #14110A; border:none; font-weight:600;
  padding: 13px 20px; border-radius: 0 8px 8px 0; cursor:pointer; font-family: inherit; font-size: 0.95rem;
  transition: filter .15s;
  white-space: nowrap;
}
form.waitlist button:hover{ filter: brightness(1.08); }
form.waitlist button:focus-visible{ outline: 2px solid var(--text); outline-offset: 2px; }
.cta-note { color: var(--text-muted); font-size: 0.82rem; margin-top: 10px; }

/* Terminal signature element */
.terminal {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  overflow:hidden; box-shadow: 0 24px 60px -20px #00000080;
}
.terminal-bar {
  display:flex; align-items:center; gap:8px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
  flex-wrap: nowrap; overflow: hidden;
}
.terminal-bar span { width:10px; height:10px; border-radius:50%; background:#3A4152; flex-shrink:0; }
.terminal-title {
  margin-left: 8px; font-family:'JetBrains Mono', monospace; font-size:0.78rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.terminal-body { padding: 18px 20px; font-family:'JetBrains Mono', monospace; font-size: 0.86rem; overflow: hidden; }
.test-line { display:flex; align-items:center; gap:10px; padding: 7px 0; border-bottom: 1px dashed #2A314055; flex-wrap: nowrap; }
.test-line:last-child { border-bottom:none; }
.badge {
  display:inline-flex; align-items:center; justify-content:center;
  width: 64px; flex-shrink:0; font-size:0.72rem; font-weight:600; padding: 2px 0; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.badge.pass { color: var(--pass); background:#34D39922; }
.badge.fail { color: var(--fail); background:#F8717122; }
.badge.retry { color: var(--flaky); background: var(--flaky-dim); animation: pulse 1.8s ease-in-out infinite; }
.badge { flex-shrink: 0; }
.test-name {
  color: var(--text-muted); flex:1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.test-time { color: #4C5567; font-size: 0.78rem; flex-shrink: 0; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.55;} }
@media (prefers-reduced-motion: reduce) { .badge.retry, [data-cycle] { animation: none !important; } }

.terminal-footer {
  padding: 12px 20px; border-top: 1px solid var(--border); background: var(--surface-2);
  font-family:'JetBrains Mono', monospace; font-size: 0.76rem; color: var(--text-muted);
  display:flex; justify-content:space-between;
}
.terminal-footer .flag { color: var(--flaky); }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .kicker { font-family:'JetBrains Mono', monospace; font-size:0.78rem; color: var(--flaky); text-transform:uppercase; letter-spacing:0.06em; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 10px; letter-spacing:-0.01em; }
.section-head p { color: var(--text-muted); margin-top: 12px; }

.pain-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain-card {
  background: var(--surface); border:1px solid var(--border); border-radius:10px; padding: 22px;
}
.pain-card .mark { color: var(--fail); font-family:'JetBrains Mono', monospace; font-size:0.85rem; }
.pain-card h3 { font-size: 1.05rem; margin-top: 10px; }
.pain-card p { color: var(--text-muted); font-size: 0.92rem; margin-top: 8px; }

.steps { display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position:relative; padding-left: 4px; }
.step .num {
  font-family:'JetBrains Mono', monospace; color: var(--flaky); font-size: 0.85rem;
  border: 1px solid #FBBF2444; width: 30px; height: 30px; border-radius:8px;
  display:flex; align-items:center; justify-content:center; margin-bottom:16px;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--text-muted); font-size: 0.92rem; margin-top: 8px; }
.step code { color: var(--text); background: var(--surface); padding: 2px 6px; border-radius:4px; font-size:0.82rem; }

.final-cta {
  background: var(--surface); border:1px solid var(--border); border-radius: 16px;
  padding: 48px; text-align:center;
}
.final-cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.final-cta p { color: var(--text-muted); margin-top:10px; }
.final-cta form.waitlist { margin: 28px auto 0; }

footer { padding: 32px 0 48px; color: var(--text-muted); font-size: 0.85rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pain-grid, .steps { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ *
 * Ab hier: gemeinsam genutzt von index.html, impressum.html und
 * datenschutz.html. Der ganze Block oben lag bis zur Extraktion inline
 * in index.html - eine zweite Seite haette ihn duplizieren muessen, und
 * ab der ersten Aenderung waeren die Seiten auseinandergelaufen.
 * ------------------------------------------------------------------ */

/* Rechtsseiten (Impressum, Datenschutz). Erben jeden Token von :root,
   damit sie nie ein eigenes Farbschema entwickeln. */
.legal { padding: 40px 0 64px; max-width: 720px; }
.legal h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -0.02em; }
.legal .updated {
  color: var(--muted-foreground); font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.78rem; margin-top: 12px;
}
.legal h2 { font-size: 1.15rem; margin-top: 40px; }
.legal h3 { font-size: 1rem; margin-top: 26px; }
.legal p, .legal li { color: var(--muted-foreground); font-size: 0.95rem; margin-top: 10px; }
.legal ul { padding-left: 20px; margin-top: 10px; }
.legal li { margin-top: 6px; }
/* Unterstrichen, nicht nur eingefaerbt: auf hellem Grund steht das Teal
   naeher am Fliesstext als das Amber auf dunklem stand, und ein Link in
   einem Rechtstext muss auch ohne Farbe als Link lesbar sein. */
.legal a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--primary-tint-foreground); }
.legal address { font-style: normal; color: var(--foreground); margin-top: 12px; line-height: 1.75; }
.legal .lead { color: var(--muted-foreground); margin-top: 16px; }

/* Fusszeilen-Leiste. Full-bleed, deshalb ausserhalb von .wrap - der
   innere Container holt sich dieselbe Breitenbegrenzung zurueck.
   Identisch auf allen drei Seiten. */
.site-footer { border-top: 1px solid var(--border); background: var(--card); }
.site-footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-top: 18px; padding-bottom: 18px;
  font-size: 0.8rem; color: var(--text-muted);
}
/* Der Selektor `nav` weiter oben gilt global und trifft auch diese
   Leiste: dessen `margin: 0 auto` wuerde als Flex-Item den freien Raum
   schlucken und die Links in die Mitte ruecken, dessen `padding: 24px`
   die Leiste aufblaehen. Beides hier zuruecksetzen - im Screenshot
   gesehen, nicht im Markup vermutet. */
.site-footer-links {
  display: flex; gap: 20px; flex-wrap: wrap;
  max-width: none; margin: 0; padding: 0; justify-content: flex-start;
}
.site-footer a { color: var(--muted-foreground); text-decoration: none; }
.site-footer a:hover { color: var(--foreground); }
.site-footer a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 2px; }

/* Datenschutzhinweis direkt am Formular. */
.cta-note a { color: var(--muted-foreground); text-decoration: underline; }
.cta-note a:hover { color: var(--foreground); }

/* ================================================================== *
 * Landing page - Variante B (hell). Ab hier gilt alles NUR fuer
 * index.html, erkennbar an `body.landing`.
 *
 * WARUM GESCOPED UND NICHT IN :root: legal.html und privacy.html erben
 * jeden Token aus :root oben (der Kommentar dort sagt es ausdruecklich)
 * und benutzen ausserdem `body`, `nav`, `.logo`, `.nav-cta`, `.wrap`,
 * `.legal`, `.site-footer`. Die hellen Tokens in :root zu schreiben
 * haette beide Rechtsseiten mit umgefaerbt - dunkel abgestimmte
 * Kontrastpaare auf hellem Grund. Die Tokens stehen deshalb auf
 * `body.landing`; :root bleibt Byte fuer Byte wie es war.
 *
 * Namen bewusst die aus squally-app (CLAUDE.md, :root/hell), nicht die
 * alten --bg/--text/--surface: nur `--border` heisst in beiden Saetzen
 * gleich, und dass der helle Wert auf der Landingpage gewinnt, ist
 * genau richtig - die geteilte Fusszeile nimmt ihn mit.
 * ================================================================== */

/* Die Tokens standen bis 15.09. hier, weil :root damals noch dunkel war
   und die Rechtsseiten daran hingen. Seit die ganze Site hell ist,
   kommen sie aus :root; hier bleibt nur, was wirklich nur die
   Landingpage betrifft. */
body.landing {
  text-wrap: pretty;
}

.landing h1, .landing h2, .landing h3 { font-family: 'Manrope', system-ui, sans-serif; }
.landing .mono { font-family: 'Fira Code', ui-monospace, monospace; }
.landing a { color: var(--link); text-decoration: none; }
.landing a:hover { color: var(--primary-tint-foreground); }
.landing :focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }

.landing .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Nav - der globale `nav`-Selektor oben trifft diese Leiste auch, also
   hier gezielt ueberschreiben statt ihn anzufassen. */
.landing .landing-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  max-width: 1080px;
}
.landing .brand { display: flex; align-items: center; gap: 10px; color: var(--foreground); }
.landing .brand-word { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.landing .landing-nav-cta {
  font-size: 0.85rem; font-weight: 600; padding: 9px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--foreground); background: var(--card);
  transition: border-color .15s ease, color .15s ease;
}
.landing .landing-nav-cta:hover { border-color: var(--primary); color: var(--primary); }

/* Hero - mittig, die Konvention heller Entwickler-Marketingseiten. */
.landing .hero { padding: 88px 0 72px; text-align: center; }
.landing .hero-inner { max-width: 720px; margin: 0 auto; }
.landing .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--primary-tint); color: var(--primary-tint-foreground);
  padding: 6px 13px; border-radius: 999px;
  /* border: none ist kein Schmuck - die tote .eyebrow-Regel im Altbestand
     setzt `border: 1px solid #FBBF2444` und trifft dieses Element ueber
     denselben Klassennamen. Hintergrund und Farbe ueberschreibt die Regel
     hier, den Rand nicht: der Chip trug einen amberfarbenen Rand, bis der
     Amber-Durchgang am 15.09. ihn gemessen hat. Faellt mit dem Altbestand. */
  border: none;
}
.landing h1.headline {
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 1.12; letter-spacing: -0.022em; font-weight: 800; margin: 0;
}
.landing .sub {
  font-size: 1.05rem; line-height: 1.62; color: var(--muted-foreground);
  margin: 22px auto 0; max-width: 56ch;
}

/* Formular - eigene Regeln, nicht die dunklen `form.waitlist` von oben:
   dort sind Feld und Knopf zu einer Pille zusammengezogen, hier stehen
   sie mit `gap` nebeneinander und brechen mobil sauber untereinander. */
.landing form.waitlist {
  display: flex; gap: 10px; max-width: 460px; width: 100%;
  margin: 34px auto 0; flex-wrap: wrap; justify-content: center;
}
.landing form.waitlist input[type=email] {
  flex: 1; min-width: 210px;
  background: var(--card); border: 1px solid var(--border); border-right: 1px solid var(--border);
  color: var(--foreground); padding: 12px 14px; border-radius: var(--radius-md);
  font-family: inherit; font-size: 0.9rem;
}
.landing form.waitlist input[type=email]::placeholder { color: var(--muted-foreground); }
/* Die dunklen :focus-visible-Regeln von oben sind spezifischer als ein
   allgemeines `.landing :focus-visible` und haben hier sonst Amber
   (--flaky) bzw. --text durchgereicht - beides Farben, die auf dieser
   Seite nicht mehr vorkommen. Gemessen im Browser, nicht vermutet. */
.landing form.waitlist input[type=email]:focus-visible {
  outline: 2px solid var(--primary); outline-offset: -1px;
}
.landing form.waitlist button:focus-visible {
  outline: 2px solid var(--foreground); outline-offset: 2px;
}
.landing form.waitlist button {
  background: var(--primary); color: var(--primary-foreground); border: none;
  font-weight: 600; padding: 12px 22px; border-radius: var(--radius-md);
  cursor: pointer; font-family: inherit; font-size: 0.9rem; white-space: nowrap;
  transition: filter .15s ease;
}
.landing form.waitlist button:hover { filter: brightness(1.08); }
.landing .cta-note { font-size: 0.8rem; color: var(--muted-foreground); margin-top: 12px; }
.landing .cta-note a { color: var(--muted-foreground); text-decoration: underline; }
.landing .cta-note a:hover { color: var(--foreground); }

/* Das Produktbild im Hero. War bis 15.09. ein Skelett aus divs; die
   Regeln dafuer (shot-sidebar, shot-row, shot-bar, shot-tag ...) sind mit
   dem Platzhalter-Markup zusammen entfallen - sie hatten nach dem Tausch
   kein Element mehr.

   Kein aspect-ratio mehr: das <img> traegt width/height als Attribute,
   der Browser leitet das Verhaeltnis daraus ab und reserviert den Platz
   schon vor dem Laden. height:auto ist dabei noetig, sonst skaliert die
   Hoehe nicht mit der Breite mit. */
.landing .shot-wrap { padding-bottom: 88px; }
.landing .shot {
  display: block; width: 100%; height: auto;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 2px rgba(42, 38, 32, .04), 0 8px 24px rgba(42, 38, 32, .06);
}

/* Abschnitte - hell trennt ueber Flaechen, nicht ueber Haarlinien. Der
   globale `section`-Selektor (padding + border-top) wird hier ersetzt. */
.landing section { padding: 80px 0; border-top: none; }
.landing .band { background: var(--muted); border-block: 1px solid var(--border); }
.landing .problem { max-width: 60ch; margin: 0 auto; text-align: center; }
.landing h2 {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.012em; margin: 0 0 16px;
}
.landing .problem p, .landing .closing-panel p {
  font-size: 1rem; line-height: 1.7; color: var(--muted-foreground); margin: 0;
}

.landing .cap-heading { text-align: center; margin-bottom: 40px; }
.landing .cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.landing .cap-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 26px;
}
.landing .cap-icon {
  width: 38px; height: 38px; border-radius: 9px; background: var(--primary-tint);
  display: flex; align-items: center; justify-content: center;
}
.landing .cap-card h3 { font-size: 1.02rem; font-weight: 700; margin: 4px 0 0; }
.landing .cap-card p { font-size: 0.9rem; line-height: 1.62; color: var(--muted-foreground); margin: 0; }

/* Abschluss - der eine Conversion-Punkt bekommt eine eigene Flaeche. */
.landing .closing { padding-top: 8px; }
.landing .closing-panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 56px 40px; text-align: center;
  box-shadow: 0 1px 2px rgba(42, 38, 32, .04);
}
.landing .closing-panel p { max-width: 44ch; margin: 0 auto; }

/* Die geteilte Fusszeile traegt dunkle Tokens (--surface, --text-muted),
   die hier nicht neu definiert sind - auf hellem Grund deshalb gezielt
   umgefaerbt. Das Markup bleibt identisch zu den Rechtsseiten. */
/* Die Fusszeile brauchte hier eigene Farben, solange sie auf dunklen
   Tokens sass. Die Basisregeln oben sind jetzt selbst hell - identisch
   auf allen drei Seiten, ohne Sonderfall. */

@media (max-width: 720px) {
  .landing .wrap { padding-left: 20px; padding-right: 20px; }
  .landing .hero { padding: 56px 0 48px; }
  .landing section { padding: 56px 0; }
  .landing form.waitlist { flex-direction: column; max-width: 100%; }
  .landing form.waitlist button { width: 100%; }
  .landing .cap-grid { grid-template-columns: 1fr; }
  .landing .closing-panel { padding: 40px 24px; }
}
