/* ==========================================================================
   postbuch.net — Stylesheet
   Art Direction: „Editorial Warm" — warmes Papier, editoriale Serif, viel
   Weißraum. Das Corporate Design (Violett→Cyan-Verlauf, weicher Blur-Halo
   aus dem Logo) liefert die Akzente: Verlauf ist Satzzeichen, nicht Tapete.
   Reines CSS, keine Frameworks, keine externen Ressourcen.
   ========================================================================== */

/* ── 1. Schriften (selbst gehostet, OFL) ─────────────────────────────────── */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-var.woff2') format('woff2-variations');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('../fonts/publicsans-var.woff2') format('woff2-variations');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrainsmono-var.woff2') format('woff2-variations');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
/* Nur für die Wortmarke im Logo-Lockup — entspricht dem bestehenden CD */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ── 2. Design-Tokens ────────────────────────────────────────────────────── */

:root {
  /* Papier & Tinte. Die Neutralen sind bewusst nicht grau:
     hell = warm (Papier), dunkel = violettstichig (Anschluss ans CD). */
  --paper:        #fcfaf7;
  --paper-sunk:   #f6f2ec;   /* abgesetzte Bänder */
  --paper-card:   #ffffff;
  --ink:          #1a1424;
  --ink-2:        #514a5e;
  --ink-3:        #8a8296;
  --line:         rgb(26 20 36 / 0.11);
  --line-soft:    rgb(26 20 36 / 0.06);

  /* Marke */
  --v-deep:       #7d2dbd;
  --v-light:      #a56bd8;
  --cyan:         #2cc5dd;
  --brand-grad:   linear-gradient(115deg, #7d2dbd 0%, #a56bd8 45%, #2cc5dd 100%);
  /* Für Text auf hellem Papier: gleicher Verlauf, aber am Cyan-Ende
     abgedunkelt — das Original-Cyan hat auf Creme nur ~1,9:1 Kontrast. */
  --brand-grad-text: linear-gradient(115deg, #7d2dbd 0%, #9450cf 40%, #1590a6 100%);

  /* Typo */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Public Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --font-mark:    'Poppins', system-ui, sans-serif;

  /* Maße */
  --wide:         1160px;
  --measure:      64ch;
  --gap:          clamp(1.25rem, 3vw, 2.5rem);
  --section-y:    clamp(4.5rem, 10vw, 8.5rem);
  --radius:       14px;

  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ── 3. Reset / Grundlagen ───────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: rgb(125 45 189 / 0.16); }

:focus-visible {
  outline: 2px solid var(--v-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 0.7rem 1.1rem; border-radius: 8px;
  font-size: 0.9rem; text-decoration: none;
  transition: top 180ms var(--ease);
}
.skip-link:focus { top: 1rem; }

.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;
}

/* ── 4. Layout-Helfer ────────────────────────────────────────────────────── */

.wrap {
  width: min(100% - 2.5rem, var(--wide));
  margin-inline: auto;
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 2rem, var(--wide)); }
}

.section { padding-block: var(--section-y); position: relative; }
.section--sunk { background: var(--paper-sunk); }
.section--sunk + .section--sunk { padding-top: 0; }

/* Schmale Lesespalte für redaktionelle Passagen */
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.1em; }

/* ── 5. Typografie ───────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.021em;
  margin: 0;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(2.7rem, 6.6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
}
.h-section {
  font-size: clamp(1.95rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}
.h-sub {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.25;
}

p { margin: 0; }

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 46ch;
}

.body-muted { color: var(--ink-2); }
.small { font-size: 0.92rem; }

/* Kapitälchen-artiges Label, mono, als redaktionelle Marginalie */
.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--brand-grad);
  flex: none;
}
.eyebrow--plain::before { display: none; }

@media (max-width: 520px) {
  /* Sperrsatz kostet auf schmalen Displays zu viel Breite */
  .eyebrow { font-size: 0.65rem; letter-spacing: 0.1em; }
}

/* Verlaufstext — sparsam, max. 1× pro Sektion */
.grad-text {
  background: var(--brand-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Glow hinter dem Verlaufstext. Gleiches Prinzip wie <GlowHeading> in der App:
   eine zweite, unscharfe Kopie mit DEMSELBEN Verlauf darunterlegen. Ein
   einfarbiger Blur würde die cyanfarbene Seite violett einfärben. Die Kopie
   kommt aus data-glow, damit die Markierung nicht doppelt im Text steht. */
.grad-text[data-glow] {
  position: relative;
  display: inline-block;
  /* Eigener Stapelkontext: sonst rutscht z-index:-1 hinter den
     Sektionshintergrund (.section--sunk) und der Glow verschwindet. */
  isolation: isolate;
}
.grad-text[data-glow]::before {
  content: attr(data-glow);
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  white-space: nowrap;
  /* Der Glow nimmt den Original-Verlauf, nicht die abgedunkelte Textvariante —
     leuchten soll er, lesbar sein muss die scharfe Ebene darüber. */
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: blur(var(--glow-blur, 16px));
  opacity: var(--glow-opacity, 0.9);
  pointer-events: none;
  user-select: none;
}

/* Kleinflächige Verlaufselemente (Wortmarke, Icons) bekommen den Glow als
   doppelten drop-shadow: der folgt der Glyphen-/Pfadkontur exakt und braucht
   keine Textkopie — bei verschachtelten Spans (postbuch.net) der einzige Weg. */
.lockup__word,
.lockup__mark {
  filter: drop-shadow(0 0 5px rgb(125 45 189 / 0.42))
          drop-shadow(0 0 13px rgb(44 197 221 / 0.3));
}
.feature__icon,
.limits__head svg {
  filter: drop-shadow(0 0 4px rgb(125 45 189 / 0.35))
          drop-shadow(0 0 10px rgb(44 197 221 / 0.25));
}

/* ── 5b. Textmarker ─────────────────────────────────────────────────────────
   Dieselbe handgezeichnete Bürste wie in der App, byteidentisch übernommen aus
   web/public/pen-brushes-III.svg (130 KB, ~48 KB gzip). NICHT „optimieren":
   die Pfaddaten enthalten verkettete Zahlen der Form `1.04.16` (= zwei
   Koordinaten). Ein Rundungslauf über /\d+\.\d+/ verschmilzt die zu `1.16` und
   zerstört den Pfad still — die Markierung verschwindet dann spurlos.

   Ersetzt Fettdruck als Hervorhebung: Fettdruck setzt in einer ruhigen
   Lesespalte dunkle Flecken, der Marker markiert — und ist das Vokabular
   der App. */

.mark {
  font-weight: inherit;
  color: var(--ink);
  background-image: url('../img/pen-brush.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 112%;
  margin: 0 -0.3em;
  padding: 0.06em 0.3em;
  /* Ohne clone bekäme eine über mehrere Zeilen laufende Markierung einen
     einzigen, über alle Zeilen gestreckten Strich statt einen pro Zeile. */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* Im Kontrastmodus fällt das Hintergrundbild weg — dann muss die
   Hervorhebung wieder über die Schriftstärke laufen. */
@media (forced-colors: active) {
  .mark { font-weight: 700; }
}

/* Feiner Verlaufsstrich als Absatzzeichen */
.rule-grad {
  width: 68px; height: 3px;
  border-radius: 3px;
  background: var(--brand-grad);
  border: 0;
  margin: 1.6rem 0 0;
}

/* ── 6. Halo / Blur (Zitat aus dem Logo-Glow) ────────────────────────────── */

.halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.halo--violet { background: radial-gradient(circle, rgb(125 45 189 / 0.30), transparent 70%); }
.halo--cyan   { background: radial-gradient(circle, rgb(44 197 221 / 0.30), transparent 70%); }
.halo--soft   { background: radial-gradient(circle, rgb(165 107 216 / 0.22), transparent 70%); }

/* ── 7. Buttons & Links ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  padding: 0.78rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 220ms var(--ease),
              background-color 180ms var(--ease), border-color 180ms var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 1px 2px rgb(26 20 36 / 0.18);
}
.btn--primary:hover { box-shadow: 0 8px 24px rgb(26 20 36 / 0.20); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: rgb(26 20 36 / 0.28); background: rgb(255 255 255 / 0.6); }

/* Textlink mit Pfeil — der Standard-Weiterleser */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1.5px solid rgb(26 20 36 / 0.18);
  padding-bottom: 1px;
  transition: border-color 180ms var(--ease), gap 180ms var(--ease);
}
.link-arrow::after {
  content: '→';
  font-size: 1em;
  transition: transform 220ms var(--ease);
}
.link-arrow:hover { border-color: var(--v-deep); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ── 8. Logo-Lockup ──────────────────────────────────────────────────────── */

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  position: relative;
}
.lockup__mark { width: 38px; height: 38px; flex: none; }
.lockup__word {
  font-family: var(--font-mark);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
/* Keine vertical-align-Korrektur: die Unterkante des Punkts soll auf der
   Schriftunterkante stehen (wie im Loginscreen der App, LoginPage.jsx) —
   das ergibt sich aus der normalen Baseline-Ausrichtung von selbst, sobald
   nichts nachjustiert wird. line-height:1 auf beiden Spans, sonst reißt der
   größere Zeilenabstand des Punkts die Zeilenhöhe des Lockups auf. */
.lockup__word .dot { font-size: 1.8em; line-height: 1; }
.lockup__word .tld { font-size: 0.47em; letter-spacing: 0; line-height: 1; }

/* ── 9. Kopfzeile ────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(252 250 247 / 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 260ms var(--ease), background-color 260ms var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line-soft); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.5rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  position: relative;
  transition: color 160ms var(--ease);
}
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); }
.nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0.75rem; right: 0.75rem; bottom: 0.1rem;
  height: 2px; border-radius: 2px;
  background: var(--brand-grad);
}

/* `.nav a` (0,1,1) ist spezifischer als `.btn--primary` (0,1,0) und hat dem
   CTA die Textfarbe --ink-2 auf --ink-Grund verpasst: dunkel auf dunkel.
   Die Farbe muss deshalb auf derselben Ebene wie der Selektor gesetzt werden. */
.header-cta { margin-left: 0.5rem; }
.nav a.btn--primary,
.nav a.btn--primary:hover { color: var(--paper); }

/* Mobile-Navigation: reines CSS über eine versteckte Checkbox */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

@media (max-width: 900px) {
  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    align-items: center;
    cursor: pointer;
    border-radius: 10px;
    margin-right: -0.5rem;
  }
  .nav-toggle-label span {
    display: block;
    width: 21px; height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 260ms var(--ease), opacity 180ms var(--ease);
  }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed;
    inset: 4.5rem 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.5rem;
    box-shadow: 0 18px 40px rgb(26 20 36 / 0.09);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 220ms var(--ease), transform 260ms var(--ease), visibility 260ms;
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
  }
  .nav-toggle:checked ~ .nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav a {
    font-size: 1.05rem;
    padding: 0.85rem 0.4rem;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }
  .nav a[aria-current='page']::after { left: 0.4rem; right: auto; width: 26px; bottom: 0.5rem; }

  /* Der Haupt-CTA darf im Mobilmenü nicht verschwinden — er wandert ans
     Ende der Liste und behält seine Button-Optik. */
  .nav a.header-cta {
    margin: 1.25rem 0 0;
    justify-content: center;
    border-bottom: 0;
    border-radius: 999px;
    padding: 0.85rem 1.35rem;
    font-size: 0.98rem;
  }
}

/* Bei offenem Menü muss die Kopfzeile deckend sein, sonst scheint der
   Seiteninhalt durch das Backdrop-Blur hindurch. */
.site-header:has(.nav-toggle:checked) {
  background: var(--paper);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (min-width: 901px) {
  .nav-toggle-label { display: none; }
}

/* ── 10. Hero ────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero__halo-a { width: 620px; height: 620px; top: -260px; right: -140px; }
.hero__halo-b { width: 480px; height: 480px; top: 120px; right: 180px; opacity: 0.75; }
.hero__halo-c { width: 400px; height: 400px; bottom: -220px; left: -160px; opacity: 0.55; }

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
/* minmax(0,…) ist Pflicht: ein blankes 1fr wächst auf die min-content-Breite
   des breitesten Kindes und sprengt auf Mobilgeräten die Spalte auf. */
@media (max-width: 900px) {
  .hero { padding-block: 2rem clamp(3rem, 7vw, 6rem); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .hero__art { order: -1; min-height: 0; justify-items: start; }
}

.hero__eyebrow { margin-bottom: 1.4rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lead { margin-bottom: 2.2rem; }

.hero__meta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__meta span::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--v-light);
  flex: none;
}

.hero__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
}
.hero__mark {
  width: min(340px, 30vw);
  height: auto;
  position: relative;
  z-index: 1;
  animation: mark-float 9s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgb(125 45 189 / 0.38))
          drop-shadow(0 0 38px rgb(44 197 221 / 0.28));
}
@keyframes mark-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(-1.2deg); }
}
@media (max-width: 900px) {
  /* Über dem Text stehend darf die Marke die erste Bildschirmhöhe
     nicht auffressen — der Claim muss ohne Scrollen sichtbar sein. */
  .hero__mark { width: min(180px, 42vw); }
}

/* ── 11. Install-Block (dunkle Insel mit Verlaufsrand — CD-Zitat) ────────── */

/* Der Kasten ist eine Befehlszeile, kein Panel: Er soll so flach sein wie das,
   was drinsteht. Rand, Innenabstand und Feldpolster sind deshalb bewusst knapp
   — ~48px Gesamthöhe statt der ~74px der ersten Fassung. */
.install {
  position: relative;
  padding: 2px;
  border-radius: 13px;
  background: linear-gradient(115deg, #7d2dbd, #a56bd8, #2cc5dd, #7d2dbd);
  background-size: 300% 300%;
  animation: grad-drift 9s ease infinite;
  max-width: 620px;
  box-shadow: 0 14px 34px -18px rgb(125 45 189 / 0.55);
}
@keyframes grad-drift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.install__inner {
  background: #120b1c;
  border-radius: 11px;
  padding: 0.38rem 0.42rem 0.38rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.install__label {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex: none;
  background: linear-gradient(115deg, #a56bd8, #2cc5dd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.install__cmd {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 1.15vw, 0.775rem);
  font-weight: 400;
  color: #f4f0fa;
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.09);
  border-radius: 7px;
  padding: 0.4rem 0.7rem;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  user-select: all;
  font-feature-settings: 'liga' 0, 'calt' 0;
}
.install__cmd::-webkit-scrollbar { display: none; }

.copy-btn {
  flex: none;
  background: none;
  border: 0;
  padding: 0.42rem;
  border-radius: 7px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 160ms var(--ease);
}
.copy-btn:hover { background: rgb(255 255 255 / 0.09); }
.copy-btn svg {
  width: 18px; height: 18px;
  filter: drop-shadow(0 0 3px rgb(125 45 189 / 0.9)) drop-shadow(0 0 8px rgb(44 197 221 / 0.5));
  transition: filter 200ms var(--ease);
}
.copy-btn:hover svg { filter: drop-shadow(0 0 5px rgb(165 107 216 / 1)) drop-shadow(0 0 14px rgb(44 197 221 / 0.85)); }
.copy-btn .icon-check { display: none; }
.copy-btn.is-copied .icon-copy { display: none; }
.copy-btn.is-copied .icon-check { display: block; }

.install__hint {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}

@media (max-width: 560px) {
  /* Umbruch-Reihenfolge: Label und Kopierknopf teilen sich die erste Zeile,
     der Befehl bekommt die zweite. Sonst rutscht der Knopf allein unter den
     Befehl und steht verloren in der linken Ecke. */
  .install__inner { flex-wrap: wrap; padding: 0.5rem 0.5rem 0.55rem 0.7rem; gap: 0.35rem 0.45rem; }
  .install__cmd { order: 1; flex-basis: 100%; }
  .copy-btn { margin-left: auto; }
  /* Auf schmalen Displays lieber umbrechen als seitlich wegscrollen —
     ein halb sichtbarer Befehl sieht aus wie ein Layoutfehler. */
  .install__cmd {
    font-size: 0.73rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    overflow-x: visible;
  }
}

/* ── 12. Kennzahlen-Band ─────────────────────────────────────────────────── */

.stats {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding-block: clamp(2rem, 4vw, 3rem);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
@media (max-width: 780px) { .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; } }

.stat__num {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}
.stat__label {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.45;
  max-width: 22ch;
}

/* ── 13. Sektionskopf ────────────────────────────────────────────────────── */

.sec-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 56ch; }
.sec-head .eyebrow { margin-bottom: 1.1rem; }
.sec-head p { margin-top: 0.9rem; color: var(--ink-2); font-size: 1.05rem; }

/* ── 14. Geschichten (redaktionelle Zitatblöcke) ─────────────────────────── */

.stories {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.story {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
@media (max-width: 700px) {
  .story { grid-template-columns: 1fr; gap: 0.9rem; }
}

.story__who {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 0.55rem;
  line-height: 1.7;
}
.story__who strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.story__text {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.32;
  letter-spacing: -0.017em;
  color: var(--ink);
  text-wrap: pretty;
}
.story__text em {
  font-style: italic;
  color: var(--v-deep);
}
.story__note {
  margin-top: 0.9rem;
  font-size: 0.97rem;
  color: var(--ink-2);
  max-width: 58ch;
}

/* ── 14b. Leitsatz-Band ──────────────────────────────────────────────────── */

.claim {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 9vw, 7.5rem);
  text-align: center;
  border-top: 1px solid var(--line-soft);
}
.claim__halo { width: 560px; height: 560px; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0.38; }
.claim p {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144;
  font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.16;
  letter-spacing: -0.028em;
  max-width: 20ch;
  margin-inline: auto;
  text-wrap: balance;
}
.claim p span { display: block; color: var(--ink-3); }

/* ── 15. Ablauf in drei Schritten ────────────────────────────────────────── */

.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  position: relative;
}
@media (max-width: 820px) { .flow { grid-template-columns: 1fr; gap: 2.25rem; } }

/* Flex-Spalte, damit die Visuals aller drei Schritte auf einer Linie
   abschließen — unabhängig davon, wie lang der Fließtext darüber ist. */
.step { position: relative; display: flex; flex-direction: column; }
.step__n {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--v-deep);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.step__n::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgb(125 45 189 / 0.35), rgb(44 197 221 / 0.05));
}
.step h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.step p { color: var(--ink-2); font-size: 0.99rem; margin-bottom: 1.5rem; }

.step__visual {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-card);
  padding: 1.1rem;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.step__visual svg { width: 100%; height: 100%; }
.step__visual text { font-family: var(--font-mono); letter-spacing: 0.02em; }

/* Kleinere Überschriften: flachere optische Größe, sonst werden Fraunces'
   Haarstriche bei 1,2 rem zu dünn und brechen auf normalen Displays weg. */
.step h3, .feature h3, .h-sub, .stack__layer h3 {
  font-variation-settings: 'opsz' 30;
  font-weight: 500;
}

/* ── 15b. Architektur-Diagramm (Abhängigkeiten) ──────────────────────────── */
/* Drei gestapelte Blöcke (Client → Backend → Cloud), reines Flexbox/Grid —
   funktioniert dadurch identisch auf Mobile wie Desktop, ohne SVG-Skalierung. */

.arch-diagram {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-card);
}

/* Dezente Linie am linken Rand: zeigt, dass der Web-Push-Dienst am Backend
   vorbei direkt mit dem Client verbunden ist — bleibt bei jeder Breite in
   der linken Innenabstands-Spalte der Panels (fixer px-Wert, kein %-Wert). */
.arch-push-line {
  position: absolute;
  left: 14px;
  top: 2.6rem;
  bottom: 2.6rem;
  width: 0;
  border-left: 1.5px dashed rgb(26 20 36 / .28);
  pointer-events: none;
}

.arch-panel { padding: 1.6rem 1.9rem; }
.arch-panel--server { background: var(--paper-sunk); }
.arch-panel--cloud {
  background: rgb(44 197 221 / .05);
  border-top: 1px solid rgb(44 197 221 / .15);
}
.arch-panel__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--v-deep);
  margin: 0 0 0.9rem;
}

.arch-connector {
  width: 2px;
  height: 26px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgb(125 45 189 / .45), rgb(44 197 221 / .4));
}

.arch-node {
  border: 1.5px solid rgb(26 20 36 / .16);
  border-radius: 10px;
  background: var(--paper-card);
  padding: 1rem 1.1rem;
}
.arch-node--hub {
  border: 2px solid var(--v-deep);
  background: linear-gradient(115deg, rgb(125 45 189 / .08) 0%, rgb(44 197 221 / .05) 100%);
}
.arch-node--hub > .arch-node__title { color: var(--v-deep); font-size: 1.1rem; }
.arch-node__sub {
  margin-top: 0.9rem;
  padding: 0.6rem 0.85rem;
  border: 1.5px dashed rgb(26 20 36 / .22);
  border-radius: 8px;
  background: var(--paper-card);
}
.arch-node__sub .arch-node__title { font-size: 0.85rem; }
.arch-node__sub .arch-node__desc { font-size: 0.78rem; margin-top: 0.2rem; }

.arch-node__title {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 30;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  margin: 0;
}
.arch-node__desc {
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0.3rem 0 0;
}

.arch-cloud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.9rem;
}
.arch-cloud-grid .arch-node__title { font-size: 0.94rem; }
.arch-cloud-grid .arch-node__desc { font-size: 0.8rem; }

/* ── 16. Funktionsraster ─────────────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.feature {
  padding: 2rem clamp(1rem, 2.5vw, 2rem) 2rem 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.feature__icon { width: 26px; height: 26px; margin-bottom: 1.1rem; }
.feature h3 {
  font-size: 1.17rem;
  letter-spacing: -0.012em;
  margin-bottom: 0.5rem;
}
.feature p { font-size: 0.96rem; color: var(--ink-2); line-height: 1.6; }

/* ── 17. Redaktionelle Textsektion ───────────────────────────────────────── */

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 880px) { .editorial { grid-template-columns: 1fr; gap: 1.75rem; } }

.editorial__body { max-width: 62ch; }
.editorial__body p {
  font-size: 1.09rem;
  line-height: 1.72;
  color: var(--ink-2);
}
.editorial__body p + p { margin-top: 1.15em; }
/* :not(.mark), weil `.editorial__body strong` sonst spezifischer wäre als
   `.mark` und die Markierung trotzdem fett bliebe — doppelte Hervorhebung. */
.editorial__body strong:not(.mark) { color: var(--ink); font-weight: 600; }

/* Initial für den ersten Absatz — echtes Redaktionsdetail */
.editorial__body--drop > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 144;
  float: left;
  font-size: 3.7em;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  font-weight: 400;
  color: var(--v-deep);
}

/* ── 18. Grenzen & Risiken ───────────────────────────────────────────────── */

.limits {
  background: var(--paper-sunk);
  border: 1px solid var(--line);
  border-radius: clamp(16px, 2vw, 22px);
  padding: clamp(1.75rem, 4vw, 3.25rem);
}
.limits__head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.5rem; }
.limits__head svg { width: 26px; height: 26px; flex: none; }
.limits__list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem clamp(1.5rem, 4vw, 3rem);
}
@media (max-width: 760px) { .limits__list { grid-template-columns: 1fr; } }
.limits__list li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.99rem;
  color: var(--ink-2);
  line-height: 1.6;
}
.limits__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--brand-grad);
}
/* Vier fettgesetzte Sätze untereinander waren der unruhigste Fleck der Seite.
   Die Vorsätze sind der Sache nach Mini-Überschriften — also werden sie auch
   so gesetzt: eigene Zeile, Serif, ohne Fettdruck. Der Textmarker bleibt der
   Hervorhebung im Fließtext vorbehalten, sonst schreit hier alles gleichzeitig. */
.limits__list strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 30;
  font-weight: 500;
  font-size: 1.06rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ── 18b. Scan, Shred & Forget (Prinzip-Kasten) ──────────────────────────── */
/* Bewusst eigene, hellere Optik statt .limits wiederzuverwenden: das hier ist
   eine Empfehlung, keine Warnung — der Verlaufsrand oben macht den
   Tonartwechsel auf einen Blick klar, ohne dass ein Alarm-Icon nötig wäre. */
.principle {
  position: relative;
  overflow: hidden;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: clamp(16px, 2vw, 22px);
  padding: clamp(1.75rem, 4vw, 3.25rem);
}
/* Verlaufsbalken statt border-image: border-image ignoriert border-radius
   und würde die runden Ecken eckig überzeichnen. So clippt overflow:hidden
   den Balken sauber auf den bereits abgerundeten Rahmen. */
.principle::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-grad);
}
.principle__head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.1rem; }
.principle__head svg { width: 26px; height: 26px; flex: none; }
.principle__lead {
  max-width: 62ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 1.75rem;
}
.principle__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem clamp(1.5rem, 4vw, 2.5rem);
}
@media (max-width: 760px) { .principle__steps { grid-template-columns: 1fr; } }
.principle__steps li { font-size: 0.97rem; color: var(--ink-2); line-height: 1.6; }
.principle__steps strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 30;
  font-weight: 500;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ── 18c. Developer's-Choice-Teaser ──────────────────────────────────────── */

.teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--paper-sunk);
  border: 1px solid var(--line);
  border-radius: clamp(16px, 2vw, 22px);
  padding: clamp(1.6rem, 3.5vw, 2.4rem) clamp(1.8rem, 4vw, 2.8rem);
  text-decoration: none;
  color: inherit;
  transition: border-color 220ms var(--ease), background-color 220ms var(--ease);
}
.teaser:hover { border-color: var(--v-light); background: var(--paper-card); }
.teaser__text p:last-child {
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 58ch;
  margin-top: 0.5rem;
}
.teaser__arrow {
  font-size: 1.7rem;
  color: var(--v-deep);
  flex: none;
  transition: transform 220ms var(--ease);
}
.teaser:hover .teaser__arrow { transform: translateX(5px); }
@media (max-width: 640px) {
  .teaser { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ── 19. FAQ ──────────────────────────────────────────────────────────────── */

.faq { max-width: 50rem; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 30;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::marker { content: ''; }

.faq__icon {
  width: 20px; height: 20px;
  flex: none;
  transition: transform 220ms var(--ease);
}
.faq__item[open] .faq__icon { transform: rotate(45deg); }

.faq__item p {
  margin: 0 0 1.5rem;
  max-width: 60ch;
  color: var(--ink-2);
  font-size: 0.99rem;
  line-height: 1.65;
}

/* ── 20. Abschluss-CTA ───────────────────────────────────────────────────── */

.closing {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(4rem, 9vw, 7rem);
}
.closing__halo-a { width: 560px; height: 560px; left: 50%; top: -180px; transform: translateX(-58%); }
.closing__halo-b { width: 420px; height: 420px; left: 50%; bottom: -220px; transform: translateX(-10%); opacity: 0.7; }
.closing__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 1.5rem;
}
.closing .install { margin-inline: auto; width: 100%; }
.closing .lead { max-width: 52ch; margin-inline: auto; }
.closing__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ── 20. Fußzeile ────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
  background: var(--paper);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 3rem;
}
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer__brand p {
  margin-top: 1rem;
  font-size: 0.93rem;
  color: var(--ink-3);
  max-width: 34ch;
}
.footer__brand .lockup { cursor: pointer; }

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer__col a {
  font-size: 0.94rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 160ms var(--ease);
}
.footer__col a:hover { color: var(--ink); }

.footer__bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--ink-3);
}
.footer__bottom a { color: inherit; }
.footer__bottom a:hover { color: var(--ink); }

/* ── 21. Einblenden beim Scrollen ────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ── 22. Easter Egg: Tropfen-Effekt (aus der alten Startseite) ───────────── */

.droplet {
  position: fixed;
  left: 50%; top: 50%;
  width: 300vmax; height: 300vmax;
  transform: translate(-50%, -50%) scale(0.02);
  transition: transform 2600ms cubic-bezier(.16,.84,.24,1), opacity 500ms linear;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  will-change: transform, opacity;
}
.droplet.is-open { transform: translate(-50%, -50%) scale(3); }
.droplet__blob {
  position: absolute;
  left: 50%; top: 50%;
  width: 50vmax; height: 60vmax;
  transform: translate(-50%, -50%);
  border-radius: 48% 52% 60% 40% / 50% 40% 60% 50%;
  filter: blur(140px);
  opacity: 0.9;
  transition: transform 2600ms cubic-bezier(.16,.84,.24,1), opacity 500ms linear;
}

body.is-inverted {
  --paper:      #120b1c;
  --paper-sunk: #1b1128;
  --paper-card: #1b1128;
  --ink:        #f6f2fb;
  --ink-2:      #b6acc6;
  --ink-3:      #857b96;
  --line:       rgb(255 255 255 / 0.13);
  --line-soft:  rgb(255 255 255 / 0.07);
}
body.is-inverted .site-header { background: rgb(18 11 28 / 0.78); }
body.is-inverted .btn--primary { background: var(--paper-sunk); color: var(--ink); }
body.is-inverted .btn--ghost:hover { background: rgb(255 255 255 / 0.05); }
body.is-inverted .install__inner { background: #0a0611; }
/* Der Marker bleibt gelb, also muss die Schrift darauf dunkel bleiben —
   sonst steht im invertierten Modus helle Schrift auf Neongelb. */
body.is-inverted .mark { color: #1a1424; }
body { transition: background-color 700ms linear, color 400ms linear; }

/* ── 23. Bewegung reduzieren ─────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── 24. Druck ───────────────────────────────────────────────────────────── */

@media print {
  .site-header, .closing, .halo, .droplet { display: none !important; }
  body { background: #fff; color: #000; }
}
