/* ════════════════════════════════════════════════════════════
   Confy — Landing Page, einfache Fassung (15.09.2026)
   Struktur nach I am (theiam.app): Hero · ein Unterschied · drei
   Spalten · Status · Footer. Kein Reel, kein Dither, kein Glas —
   die Seite muss mobil tragen, weil der Kanal mobil ist (SIDE-50),
   und darf keine Rechenzeit fressen (SIDE-47).
   Nur index.html nutzt diese Datei. Die Unterseiten (contact,
   impressum, datenschutz) laufen weiter auf style.css.
   ════════════════════════════════════════════════════════════ */

:root {
  --grund: #F4F5F4;
  --flaeche: #FFFFFF;
  --tinte: #14181A;
  --schiefer: #3A3F42;
  --leise: #6E7A82;
  --linie: rgba(20,24,26,.09);
  --forest: #2F5D4E;
  --forest-hell: #E6EEEA;
  --breite: 1040px;
  --rand: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  background: var(--grund); color: var(--tinte);
  font-family: Geist, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.innen { max-width: var(--breite); margin: 0 auto; padding-inline: var(--rand); }

/* ══ Kopf ══ */
.kopf {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244,245,244,.88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linie);
}
.kopf .innen { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.marke { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 17px; letter-spacing: -.01em; }
.marke svg { width: 30px; height: 30px; }
.kopf-cta {
  text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 9px 16px; border-radius: 10px; background: var(--tinte); color: var(--grund);
}

/* ══ Hero ══ */
.hero { padding-block: 72px 88px; }
.hero .innen { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; margin-bottom: 22px;
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--forest); background: var(--forest-hell); padding: 7px 12px; border-radius: 8px;
}
h1 {
  margin: 0; font-weight: 400; font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.02; letter-spacing: -.035em;
}
.sub { margin: 20px 0 0; font-size: 19px; line-height: 1.55; color: var(--schiefer); max-width: 30em; }

.cta { display: flex; gap: 8px; margin-top: 32px; max-width: 460px; }
.cta input {
  flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 16px; border-radius: 12px;
  border: 1px solid rgba(20,24,26,.16); background: var(--flaeche); color: var(--tinte); font-size: 15px; outline: none;
}
.cta input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px var(--forest-hell); }
.cta input[aria-invalid="true"] { border-color: #A5655A; }
.cta button {
  flex: none; height: 52px; padding: 0 22px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--forest); color: #fff; font-size: 15px; font-weight: 500;
}
.cta button:disabled { opacity: .7; cursor: default; }
.status { min-height: 20px; margin: 10px 0 0; font-size: 13.5px; color: var(--leise); }
.status[data-state="err"] { color: #A5655A; }
.status[data-state="ok"] { color: var(--forest); }
.micro { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: var(--leise); max-width: 34em; }
.consent { margin: 14px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--leise); max-width: 38em; }
.consent-links { margin: 6px 0 0; font-size: 11.5px; color: var(--leise); }

/* ══ Geraet ══ */
/* margin hier statt als style-Attribut: Die CSP in vercel.json laesst keine
   Inline-Styles zu (style-src nur mit Hash). */
.geraet { position: relative; justify-self: center; width: min(300px, 100%); margin: 0; }
/* Die Screenshots sind reine Bildschirminhalte ohne Geraet — der Rahmen kommt
   von hier. */
.geraet-rahmen {
  border-radius: 36px; padding: 8px; background: var(--tinte);
  box-shadow: 0 30px 60px -24px rgba(20,24,26,.35);
}
.geraet-rahmen img { border-radius: 28px; width: 100%; height: auto; }
.vorschau {
  display: block; margin-top: 12px; text-align: center;
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--leise);
}

/* ══ Abschnitte ══ */
.abschnitt { padding-block: 88px; border-top: 1px solid var(--linie); }
.kicker {
  display: block; margin-bottom: 14px;
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--forest);
}
h2 { margin: 0; font-weight: 400; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -.028em; max-width: 20em; }

/* Warum anders */
.warum-text { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; margin-top: 32px; }
.warum-text p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--schiefer); }

.karten { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 48px; }
.karte { margin: 0; padding: 28px; border-radius: 18px; background: var(--flaeche); border: 1px solid var(--linie); }
.karte-label {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--leise);
}
.karte blockquote { margin: 16px 0 0; font-size: 22px; line-height: 1.35; letter-spacing: -.015em; }
.karte-generisch blockquote { color: var(--leise); }
.karte-beleg { background: var(--forest); border-color: var(--forest); color: #fff; }
.karte-beleg .karte-label { color: rgba(255,255,255,.7); }
.karte-quelle { display: block; margin-top: 18px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11.5px; color: rgba(255,255,255,.75); }
.hinweis { margin: 12px 0 0; font-size: 12.5px; color: var(--leise); }

/* So funktioniert es */
.spalten { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; margin-top: 48px; }
.spalte .geraet { width: min(230px, 100%); justify-self: start; }
.spalte-text { margin-top: 24px; }
.spalte-nr { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; color: var(--forest); }
.spalte h3 { margin: 8px 0 0; font-weight: 500; font-size: 20px; line-height: 1.3; letter-spacing: -.015em; }
.spalte p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--schiefer); }

/* Status */
.stand { background: var(--tinte); color: var(--grund); border-top: 0; }
.stand h2 { color: #fff; }
.stand p { margin: 20px 0 0; font-size: 17px; line-height: 1.65; color: rgba(244,245,244,.75); max-width: 36em; }
.stand-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stand-cta {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  height: 52px; padding: 0 24px; border-radius: 12px; background: var(--grund); color: var(--tinte); font-weight: 500; font-size: 15px;
}
/* Kontakt gleich gross wie der Waitlist-Knopf (Josua, 15.09.), aber als
   Umriss — der Waitlist-Knopf bleibt die erste Handlung. */
.stand-cta-zweit { background: transparent; color: #fff; border: 1px solid rgba(244,245,244,.45); }
.stand-cta-zweit:hover { border-color: #fff; }
.stand .kicker { color: #9CC3B4; }

/* ══ Footer ══ */
.fuss { padding-block: 56px 32px; border-top: 1px solid var(--linie); font-size: 14px; }
.fuss .innen { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.fuss-marke p { margin: 8px 0 0; color: var(--leise); line-height: 1.6; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-start; }
.fuss-links a { text-decoration: none; color: var(--schiefer); }
.fuss-links a:hover { color: var(--tinte); text-decoration: underline; }
.fuss-zeile { width: 100%; display: flex; justify-content: space-between; gap: 12px; color: var(--leise); font-size: 13px; padding-top: 24px; border-top: 1px solid var(--linie); }

/* ══ Schmal ══ */
@media (max-width: 860px) {
  .hero { padding-block: 44px 64px; }
  .hero .innen { grid-template-columns: 1fr; gap: 48px; }
  .warum-text, .karten, .spalten { grid-template-columns: 1fr; }
  .spalten { gap: 56px; }
  .spalte .geraet { justify-self: center; }
  .abschnitt { padding-block: 64px; }
}
@media (max-width: 480px) {
  .cta { flex-direction: column; }
  .cta button { width: 100%; }
  .kopf-cta { padding: 8px 12px; font-size: 13px; }
  .fuss-zeile { flex-direction: column; }
}
/* ══ Laufband — ein Satz quer über die Seite (nach I am) ══
   Zwei identische Kopien, die Spur wandert um genau eine Kopie (-50 %),
   dadurch schließt die Schleife ohne Sprung. Größe, Abstand und Tempo
   nach I am (theiam.app, gemessen 22.09.): 10vw / 12vw / 18vw, 15vw
   Abstand, ~2 Schriftgrößen pro Sekunde — bei diesem Satz ~6,5 s. */
.laufband { overflow: hidden; padding-block: 24px 88px; color: var(--tinte); }
.laufband-spur { display: flex; width: max-content; animation: laufband 6.5s linear infinite; }
.laufband-satz {
  flex: none; padding-right: 15vw; white-space: nowrap;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 10vw; line-height: 1.05; letter-spacing: -.01em;
}
@keyframes laufband { to { transform: translateX(-50%); } }
@media (max-width: 991px) { .laufband-satz { font-size: 12vw; } }
@media (max-width: 479px) { .laufband-satz { font-size: 18vw; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .laufband-spur { animation: none; width: auto; justify-content: center; padding-inline: var(--rand); }
  .laufband-satz { white-space: normal; text-align: center; padding-right: 0; }
  .laufband-satz[aria-hidden] { display: none; }
}
