/* ============================================================================
   GRBX-One — Grundlayout, Typografie, Navigation, Fußbereich
   ============================================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Wächst mit dem Fenster (31.10.2026): Bis 1440 px Breite bleibt 1 rem =
     16 px (bzw. die Schriftgröße des Browsers), darüber wachsen Schrift,
     Abstände und Spaltenbreite stufenlos mit, bis zum 1,875-fachen. Deshalb
     stehen alle Maße in rem; px nur noch für Haarlinien und Breakpoints. */
  font-size: clamp(100%, calc(100vw / 90), 187.5%);
}
/* Symbole wachsen mit: Ihre Größe steht als Attribut im HTML (width="16"),
   das bliebe sonst auf großen Bildschirmen klein. :where() hält die
   Gewichtung bei null, jede gezieltere Regel gewinnt weiter. */
:where(svg[width="13"][height="13"]) { width: 0.8125rem; height: 0.8125rem; }
:where(svg[width="14"][height="14"]) { width: 0.875rem; height: 0.875rem; }
:where(svg[width="15"][height="15"]) { width: 0.9375rem; height: 0.9375rem; }
:where(svg[width="16"][height="16"]) { width: 1rem; height: 1rem; }
:where(svg[width="17"][height="17"]) { width: 1.0625rem; height: 1.0625rem; }
:where(svg[width="18"][height="18"]) { width: 1.125rem; height: 1.125rem; }
:where(svg[width="20"][height="20"]) { width: 1.25rem; height: 1.25rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Sprungmarke für die Tastatur — sichtbar, sobald sie den Fokus bekommt. */
.skip {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 200; background: var(--ink); color: var(--bg);
  padding: 0.75rem 1.375rem; border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600; text-decoration: none;
  transition: transform var(--t-fast);
}
.skip:focus { transform: translate(-50%, 0); }

img, picture, svg, video { max-width: 100%; display: block; }
img { height: auto; }

/* ── Typografie ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-head);
  text-wrap: balance;
}
.t-hero { font-size: var(--t-hero); line-height: var(--lh-tight); font-weight: 600; }
.t-h1   { font-size: var(--t-h1); }
.t-h2   { font-size: var(--t-h2); }
.t-h3   { font-size: var(--t-h3); letter-spacing: -0.012em; }

p { margin: 0; }
.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.muted { color: var(--muted); }
.small { font-size: var(--t-small); }

/* Die Auszeichnungszeile über jedem Abschnitt — sie sagt in einem Wort,
   wovon der Abschnitt handelt („MODULAR", „MINIMALISMUS").
   GRÖSSE: Vorher stand sie auf --t-micro (12 px). Das ist die Stufe für
   Beiwerk, und genau so las sie sich auch: Man sah eine goldene Zeile,
   aber nicht, dass dort das Thema steht. Sie ist jetzt eine eigene, mit
   dem Fenster wachsende Stufe (15 → 21 px) und trägt damit das Gewicht,
   das ihr inhaltlich zusteht.
   FARBE: Gold in der textsicheren Tonstufe, damit 4,5:1 hält. Das war
   schon bei 12 px nötig und bleibt bei 21 px erst recht gültig. */
.eyebrow {
  font-size: clamp(0.95rem, 0.85rem + 0.55vw, 1.3rem);
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 clamp(0.875rem, 0.6rem + 0.5vw, 1.25rem);
}


/* ── Lang am Rechner, kurz am Telefon ───────────────────────────────────────
   Beide Fassungen stehen im Quelltext, sichtbar ist immer genau eine. Die
   Grenze ist dieselbe 760 px wie beim Zusammenklappen der Abschnitte — sonst
   gäbe es einen Bereich, in dem der lange Text in einem zugeklappten
   Abschnitt steckt oder der kurze in einem offenen.

   `display: none` und nicht `visibility`/`clip`: Die verborgene Fassung soll
   auch von Vorlesewerkzeugen übergangen werden. Sonst läse ein Screenreader
   am Telefon erst die kurze und dann die lange Fassung desselben Absatzes.

   Sicherheitsrichtung: Ohne diese Datei wären BEIDE Fassungen sichtbar —
   doppelt, aber vollständig. Nie umgekehrt. */
/* Derzeit OHNE WIRKUNG: erzeugen.py liefert seit dem 25.09.2026 nur noch die
   lange Fassung aus (Schalter KURZFASSUNG_AM_TELEFON). Die Regeln bleiben
   stehen, damit das Umlegen des Schalters genügt — sie greifen von selbst
   wieder, sobald wieder beide Fassungen im Markup stehen. */
.nur-schmal { display: none; }
@media (max-width: 760px) {
  .nur-breit  { display: none; }
  .nur-schmal { display: inline; }
}

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Sichtbarer Fokusring auf allem, was die Tastatur erreicht. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 0.1875rem;
  border-radius: 0.25rem;
}

/* ── Raster ──────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: var(--maxw-wide); }
.sect { padding-block: var(--sect-y); }
/* Sprungziele dürfen nicht unter der klebenden Leiste landen — ohne diesen
   Abstand steht die Überschrift des angesprungenen Abschnitts dahinter. */
.sect[id], [id] { scroll-margin-top: 4.5rem; }
.sect-tint { background: var(--bg-2); }
.sect-head { max-width: 46rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.sect-head.center { margin-inline: auto; text-align: center; }
.sect-head .lead { margin-top: 1rem; }

/* ── Knöpfe ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: var(--tap);
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font: inherit; font-size: var(--t-small); font-weight: 600;
  line-height: 1; text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--gold); color: var(--on-gold); }
.btn-primary:hover { background: var(--gold-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-plain { background: transparent; color: var(--accent-ink); padding-inline: 0.25rem; }
.btn-plain:hover { text-decoration: underline; }
.btn-lg { padding: 0.9375rem 1.875rem; font-size: var(--t-body); }
.btn-block { width: 100%; }

/* ── Navigation: Liquid Glass ────────────────────────────────────────────────
   Halbtransparent mit Unschärfe, damit der Inhalt durchscheint und die
   Leiste über der Seite zu schweben scheint. Wer Transparenz abbestellt
   hat (Systemeinstellung), bekommt eine deckende Leiste — sonst wäre der
   Text über hellen Bildern nicht mehr sicher lesbar. */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  -webkit-backdrop-filter: saturate(180%) blur(1.25rem);
  backdrop-filter: saturate(180%) blur(1.25rem);
  transition: background var(--t-fast), border-color var(--t-fast);
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: var(--bg); }
}
.nav-in {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.25rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.5625rem;
  color: var(--ink); font-weight: 600; font-size: 1.0625rem;
  letter-spacing: -0.01em; text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand .dia {
  /* Maße der ursprünglichen Website (styles.css: 15 px, Rundung 3 px);
     die v2 hatte die Raute auf 11 px verkleinert. */
  width: 0.9375rem; height: 0.9375rem; background: var(--gold);
  transform: rotate(45deg); border-radius: 0.1875rem; flex: none;
}
.brand .one { color: var(--muted); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  display: inline-flex; align-items: center;
  min-height: 2.25rem; padding: 0.375rem 0.8125rem;
  color: var(--ink-2); font-size: var(--t-small); font-weight: 500;
  background: none; border: 0; border-radius: var(--r-pill);
  font-family: inherit; cursor: pointer; text-decoration: none;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--accent-ink); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap);
  background: none; border: 0; border-radius: var(--r-pill);
  color: var(--ink-2); cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

.nav-burger { display: none; }
.nav-sheet { display: none; }
@media (max-width: 860px) {
  .nav-links, .nav-desktop { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-sheet {
    display: block; padding: 0.5rem var(--gutter) 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--bg);
  }
  .nav-sheet[hidden] { display: none; }
  .nav-sheet a, .nav-sheet button {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; min-height: var(--tap); padding: 0.75rem 2px;
    color: var(--ink); font-size: var(--t-body); font-weight: 500;
    background: none; border: 0; border-bottom: 1px solid var(--border);
    font-family: inherit; text-align: left; cursor: pointer; text-decoration: none;
  }
  .nav-sheet .btn { justify-content: center; border-bottom: 0; margin-top: 0.875rem; color: var(--on-gold); }
}

/* ── Fußbereich ──────────────────────────────────────────────────────────── */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem; }
.footer-grid {
  display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  grid-template-columns: 1.6fr repeat(3, 1fr);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
/* Unter 520 px BLEIBT es bei zwei Spalten. Einspaltig standen die zwölf
   Verweise untereinander und der Fussbereich war 751 px hoch — ein ganzer
   Bildschirm, nur Fusszeile. Zwei Spalten halbieren das, ohne dass ein
   Verweis wegfällt: Bei 375 px bleiben je Spalte rund 160 px, genug für
   „Support & Erste Schritte". Der Beschreibungstext oben spannt weiter über
   beide Spalten, sonst stünde er in einer 160-px-Säule. */
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1.25rem; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
.footer h4 { font-size: var(--t-small); font-weight: 600; margin-bottom: 0.875rem; color: var(--ink); }
.footer-col a {
  display: block; padding: 0.375rem 0; min-height: 2rem;
  color: var(--muted); font-size: var(--t-small);
}
.footer-col a:hover { color: var(--ink); text-decoration: none; }
/* „Cookie-Einstellungen" ist ein Knopf (er tut etwas, er fuehrt nirgends hin),
   soll aber neben den Links nicht auffallen. */
.footer-knopf {
  display: block; padding: 0.375rem 0; min-height: 2rem; width: 100%;
  background: none; border: 0; margin: 0; text-align: left; cursor: pointer;
  font: inherit; font-size: var(--t-small); color: var(--muted);
}
.footer-knopf:hover { color: var(--ink); }
.footer-blurb { color: var(--muted); font-size: var(--t-small); max-width: 30ch; margin-top: 0.875rem; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding-top: 1.5rem; border-top: 1px solid var(--border);
  color: var(--muted); font-size: var(--t-small);
}

/* ── Sanftes Einblenden beim Scrollen ────────────────────────────────────────
   300–500 ms, leichte Bewegung nach oben. Wer Bewegung abbestellt hat,
   sieht alles sofort und ohne Versatz — nicht etwa gar nichts. */
.reveal { opacity: 0; transform: translateY(1.125rem); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity 420ms cubic-bezier(.22,.61,.36,1),
              transform 420ms cubic-bezier(.22,.61,.36,1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
}

.hr { height: 1px; background: var(--border); border: 0; margin: 0; }
.row { display: flex; align-items: center; gap: 0.625rem; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; }
.center { text-align: center; }
.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;
}
