/* tessera -- Website
 *
 * Einzige Quelle fuer Farben dieser Seite. Die Werte spiegeln
 * app/lib/design/tokens.dart. Aendert sich dort etwas, aendert es sich hier --
 * und nur hier. Kein Hex-Wert weiter unten im Dokument.
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  /* Brand */
  --deep-trust: #21264e;
  --core-logic: #194093;
  --bright-code: #a3c7eb;
  --soft-spark: #f7ae67;
  --signal: #f18557;
  --powerline: #e36150;
  --cream: #f6e9df;
  --white: #ffffff;

  /* App-Erweiterungen (siehe tokens.dart) */
  --surface-dark: #14172e;
  --surface-dark-2: #21264e;
  --border-dark: #2e3563;
  --border-light: #dcd3cb;
  --success: #3e8e5a;
  --muted-light: #6c7192;
  --muted-dark: #9aa0c2;

  /* Abgeleitet: nur fuer die Seite, nicht fuer die App */
  --abyss: #0d1024;
  --glass: rgba(33, 38, 78, 0.55);
  --glow-signal: rgba(241, 133, 87, 0.35);
  --glow-code: rgba(163, 199, 235, 0.28);

  /* Rollen -- Dunkelmodus ist die Vorgabe */
  --bg: var(--abyss);
  --bg-elevated: var(--surface-dark);
  --bg-card: var(--surface-dark-2);
  --ink: var(--cream);
  --ink-muted: var(--muted-dark);
  --line: var(--border-dark);
  --accent: var(--signal);
  --accent-2: var(--bright-code);

  /* Textfarben. Flaechen duerfen die reine Markenfarbe tragen, Text nicht:
     Signal Orange auf Creme kommt auf 2,5:1 und faellt damit durch WCAG AA.
     Diese Ebene haelt beide Schemata ueber 4,5:1 -- geprueft, nicht geschaetzt. */
  --accent-ink: var(--signal);
  --accent-2-ink: var(--bright-code);
  --success-ink: color-mix(in srgb, var(--success) 62%, var(--cream));
  --warn-ink: var(--soft-spark);
  --error-ink: var(--powerline);

  /* Masse -- Vielfache von 4, wie im Brand Guide */
  --sp-xxs: 2px;
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-xxl: 48px;
  --sp-3xl: 80px;
  --sp-4xl: 120px;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 20px;
  --r-pill: 999px;

  --shell: 1200px;
  --shell-narrow: 760px;

  /* Schrift: dieselbe Ersatzkette wie SwFonts. Keine Familie benennen, die
     nicht mitgeliefert wird -- weder hier noch in der App. */
  --font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;
  --font-mono: "Cascadia Mono", "JetBrains Mono", Consolas, Menlo,
    "DejaVu Sans Mono", monospace;

  --motion-fast: 120ms;
  --motion: 200ms;
  --motion-slow: 520ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #fdfaf7;
  --bg-elevated: var(--white);
  --bg-card: var(--cream);
  --ink: var(--deep-trust);
  --ink-muted: var(--muted-light);
  --line: var(--border-light);
  --glass: rgba(255, 255, 255, 0.72);
  --glow-signal: rgba(241, 133, 87, 0.22);
  --glow-code: rgba(25, 64, 147, 0.14);

  --accent-ink: color-mix(in srgb, var(--signal) 52%, var(--deep-trust));
  --accent-2-ink: var(--core-logic);
  --success-ink: color-mix(in srgb, var(--success) 78%, var(--deep-trust));
  --warn-ink: color-mix(in srgb, var(--soft-spark) 38%, var(--deep-trust));
  --error-ink: color-mix(in srgb, var(--powerline) 62%, var(--deep-trust));
}

/* ==========================================================================
   2. Grundlagen
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background var(--motion) var(--ease), color var(--motion) var(--ease);
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin: 0 0 var(--sp-md);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}
h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

p {
  margin: 0 0 var(--sp-md);
  text-wrap: pretty;
}

a {
  color: var(--ink);
  text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent);
  text-underline-offset: 3px;
  transition: color var(--motion-fast) var(--ease);
}

a:hover {
  color: var(--accent-ink);
}

code,
kbd,
pre,
samp {
  font-family: var(--font-mono);
  font-size: 0.92em;
  font-weight: 400;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection {
  background: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--ink);
}

img,
svg {
  max-width: 100%;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--sp-xxl) 0;
}

/* ==========================================================================
   3. Bausteine
   ========================================================================== */

.shell {
  width: min(100% - 2 * var(--sp-lg), var(--shell));
  margin-inline: auto;
}

/* Nicht mit left: -9999px aus dem Bild schieben -- das verbreitert das
   Dokument und laesst die Seite waagerecht scrollen. */
.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--deep-trust);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: 0 0 var(--r-md) 0;
  font-weight: 600;
  transform: translateY(-140%);
  transition: transform var(--motion-fast) var(--ease);
}

.skip-link:focus {
  transform: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: var(--sp-md);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--ink-muted);
  max-width: 62ch;
}

.section {
  padding: var(--sp-4xl) 0;
  position: relative;
}

.section--tight {
  padding: var(--sp-3xl) 0;
}

.section__head {
  max-width: 64ch;
  margin-bottom: var(--sp-xxl);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 13px 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--motion-fast) var(--ease),
    box-shadow var(--motion) var(--ease), background var(--motion) var(--ease),
    border-color var(--motion) var(--ease), color var(--motion) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--accent);
  color: var(--deep-trust);
  box-shadow: 0 10px 30px -10px var(--glow-signal);
}

.btn--primary:hover {
  color: var(--deep-trust);
  box-shadow: 0 18px 44px -12px var(--glow-signal);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: color-mix(in srgb, var(--bg-card) 45%, transparent);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.btn__arrow {
  transition: transform var(--motion) var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.card {
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--bg-card) 88%, transparent),
    color-mix(in srgb, var(--bg-elevated) 92%, transparent)
  );
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-xl);
  position: relative;
  overflow: hidden;
  transition: border-color var(--motion) var(--ease),
    transform var(--motion) var(--ease), box-shadow var(--motion) var(--ease);
}

.card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-3px);
}

.card h3 {
  margin-bottom: var(--sp-sm);
}

.card p {
  color: var(--ink-muted);
  margin-bottom: 0;
  font-size: 0.98rem;
}

.card__icon {
  width: 36px;
  height: 36px;
  margin-bottom: var(--sp-md);
  color: var(--accent-ink);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  background: color-mix(in srgb, var(--bg-card) 60%, transparent);
}

.tag--ok {
  color: var(--success-ink);
  border-color: color-mix(in srgb, var(--success) 45%, transparent);
}
.tag--work {
  color: var(--warn-ink);
  border-color: color-mix(in srgb, var(--soft-spark) 45%, transparent);
}
.tag--soon {
  color: var(--ink-muted);
}

kbd {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  background: color-mix(in srgb, var(--bg-card) 70%, transparent);
  font-size: 0.8em;
  line-height: 1.5;
  color: var(--ink);
  white-space: nowrap;
}

/* ==========================================================================
   4. Kopf- und Fusszeile
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(150%);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--motion) var(--ease),
    background var(--motion) var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand svg {
  display: block;
}

.brand__mark {
  width: 26px;
  height: 26px;
}

.brand__word {
  height: 19px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.95rem;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transition: right var(--motion) var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

/* Die Schaltflaeche in der Leiste ist kein Navigationslink: `.nav a` ist
   spezifischer als `.btn--primary` und faerbte ihre Schrift sonst gedaempft
   -- auf Signal Orange waere das nahezu unlesbar. */
.nav .btn--primary {
  color: var(--deep-trust);
}

.nav .btn--ghost {
  color: var(--ink);
}

.nav .btn::after {
  display: none;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  right: 0;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color var(--motion-fast) var(--ease),
    border-color var(--motion-fast) var(--ease);
}

.icon-btn:hover {
  color: var(--accent-ink);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--sp-xxl) 0 var(--sp-xl);
  background: color-mix(in srgb, var(--bg-elevated) 55%, transparent);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--sp-xl);
}

.site-footer h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: var(--sp-md);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-footer a:hover {
  color: var(--accent-ink);
}

.site-footer__note {
  color: var(--ink-muted);
  font-size: 0.9rem;
  max-width: 42ch;
}

.site-footer__bar {
  margin-top: var(--sp-xxl);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  justify-content: space-between;
  color: var(--ink-muted);
  font-size: 0.86rem;
}

/* ==========================================================================
   5. Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: var(--sp-4xl) 0 var(--sp-3xl);
  isolation: isolate;
  /* Mosaik und Schimmer ragen bewusst ueber den Rand hinaus. Ohne diese
     Zeile waechst dadurch die Dokumentbreite und die Seite scrollt waagerecht. */
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 720px;
  z-index: -2;
  opacity: 0.55;
  mask-image: radial-gradient(
    120% 80% at 50% 20%,
    #000 0%,
    #000 45%,
    transparent 78%
  );
}

.hero__aura {
  position: absolute;
  z-index: -3;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero__aura--a {
  width: 520px;
  height: 520px;
  top: -160px;
  left: 52%;
  background: var(--glow-signal);
  animation: drift 22s var(--ease) infinite alternate;
}

.hero__aura--b {
  width: 460px;
  height: 460px;
  top: 120px;
  left: 4%;
  background: var(--glow-code);
  animation: drift 27s var(--ease) infinite alternate-reverse;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(60px, 50px, 0) scale(1.12);
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--sp-xxl);
  align-items: center;
}

.hero h1 {
  margin-bottom: var(--sp-lg);
}

.hero h1 .grad {
  background: linear-gradient(
    100deg,
    var(--accent-ink),
    var(--warn-ink) 55%,
    var(--accent-2-ink)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  margin-top: var(--sp-xl);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  margin-top: var(--sp-xl);
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__meta svg {
  width: 15px;
  height: 15px;
  color: var(--success-ink);
}

/* ==========================================================================
   6. App-Nachbau (Fenster, Terminal, Listen)
   ========================================================================== */

.window {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-dark);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.75),
    0 0 0 1px color-mix(in srgb, var(--bright-code) 8%, transparent);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--cream);
  font-weight: 400;
}

.window--tilt {
  transform: perspective(1600px) rotateY(-7deg) rotateX(3deg) translateZ(0);
  transition: transform var(--motion-slow) var(--ease);
}

.window--tilt:hover {
  transform: perspective(1600px) rotateY(-3deg) rotateX(1deg);
}

.window__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 0 12px;
  height: 38px;
  background: var(--surface-dark-2);
  border-bottom: 1px solid var(--border-dark);
}

.window__dots {
  display: flex;
  gap: 6px;
}

.window__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-dark);
  display: block;
}

.window__tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  font-size: 12px;
  color: var(--muted-dark);
  border-bottom: 2px solid transparent;
}

.window__tab.is-active {
  color: var(--cream);
  border-bottom-color: var(--signal);
  background: color-mix(in srgb, var(--border-dark) 45%, transparent);
}

.window__tab .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent);
}

.term {
  padding: var(--sp-md);
  min-height: 320px;
  background: var(--surface-dark);
  white-space: pre-wrap;
  word-break: break-word;
  overflow: hidden;
}

.term .u {
  color: var(--bright-code);
}
.term .p {
  color: var(--soft-spark);
}
.term .g {
  color: var(--success);
}
.term .o {
  color: var(--signal);
}
.term .d {
  color: var(--muted-dark);
}
.term .r {
  color: var(--powerline);
}

.term__cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  vertical-align: text-bottom;
  background: var(--signal);
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Sitzungsband "als wer arbeite ich" */
.term__band {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px var(--sp-md);
  background: color-mix(in srgb, var(--core-logic) 34%, transparent);
  border-bottom: 1px solid var(--border-dark);
  font-size: 12px;
  color: var(--bright-code);
}

/* Zweispaltiger Dateibrowser */
.sftp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 260px;
}

.sftp__col {
  min-width: 0;
}

.sftp__col + .sftp__col {
  border-left: 1px solid var(--border-dark);
}

.sftp__head {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-dark);
  font-size: 11px;
  color: var(--muted-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

/* Das Lesezeichen am Ende des Pfadfelds. Gefuellt heisst gemerkt -- die
   Form sagt es, die Farbe nur zusaetzlich. */
.sftp__path {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sftp__mark {
  width: 12px;
  height: 12px;
  flex: none;
}

.sftp__mark.is-set {
  color: var(--accent);
}

.sftp__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--border-dark) 45%, transparent);
  font-size: 12px;
}

.sftp__row .name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sftp__row .size {
  color: var(--muted-dark);
  font-size: 11px;
}

.sftp__row.is-part .name {
  color: var(--soft-spark);
}

.sftp__row.is-done .name {
  color: var(--success);
}

.progress {
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--border-dark);
  overflow: hidden;
}

.progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--signal), var(--soft-spark));
  border-radius: inherit;
  transition: width 140ms linear;
}

/* Hostliste */
.hostlist {
  padding: var(--sp-sm) 0;
}

.hostlist__group {
  padding: 6px 12px;
  color: var(--muted-dark);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hostlist__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 26px;
  font-size: 12.5px;
  border-left: 2px solid transparent;
}

.hostlist__item.is-active {
  background: color-mix(in srgb, var(--core-logic) 30%, transparent);
  border-left-color: var(--signal);
}

.hostlist__item .swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: 0 0 auto;
}

/* ==========================================================================
   7. Abschnitt: Was der Server sieht
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-xl);
  align-items: start;
}

/* Vier Karten: drei nebeneinander und eine allein darunter sieht aus wie
   vergessen. Die groessere Mindestbreite laesst nur zwei Spalten zu, damit
   zwei volle Zeilen entstehen -- und faellt schmal auf eine zurueck. */
.split--paar {
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}

.pipe {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--sp-md);
  align-items: center;
}

.pipe__box {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-md);
  background: color-mix(in srgb, var(--bg-card) 70%, transparent);
  font-family: var(--font-mono);
  font-size: 12px;
  min-height: 168px;
  overflow: hidden;
}

.pipe__box h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 var(--sp-sm);
}

.pipe__box--plain .k {
  color: var(--accent-2-ink);
}
.pipe__box--plain .v {
  color: var(--cream);
}

[data-theme="light"] .pipe__box--plain .v {
  color: var(--deep-trust);
}

.pipe__box--cipher {
  color: var(--ink-muted);
  word-break: break-all;
  line-height: 1.5;
}

.pipe__arrow {
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
  gap: 4px;
}

.pipe__arrow svg {
  width: 34px;
}

.ledger {
  display: grid;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
}

.ledger__row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--sp-sm);
  align-items: start;
  font-size: 0.97rem;
  color: var(--ink-muted);
}

.ledger__row b {
  color: var(--ink);
  font-weight: 600;
}

.ledger__row svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.ledger__row--yes svg {
  color: var(--success-ink);
}
.ledger__row--no svg {
  color: var(--error-ink);
}

/* ==========================================================================
   8. Bento-Raster
   ========================================================================== */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-md);
}

.bento > * {
  grid-column: span 2;
}

.bento > .span-3 {
  grid-column: span 3;
}
.bento > .span-4 {
  grid-column: span 4;
}
.bento > .span-6 {
  grid-column: span 6;
}

/* ==========================================================================
   9. Strg+C-Demo
   ========================================================================== */

.demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-xl);
  align-items: start;
}

.keycaps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-lg);
}

.keycap {
  padding: 10px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  background: color-mix(in srgb, var(--bg-card) 75%, transparent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  cursor: pointer;
  transition: transform var(--motion-fast) var(--ease),
    border-color var(--motion-fast) var(--ease),
    background var(--motion-fast) var(--ease);
}

.keycap:hover {
  border-color: var(--accent);
}

.keycap:active,
.keycap.is-hit {
  transform: translateY(2px);
  border-bottom-width: 1px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--ink-muted);
  font-size: 0.92rem;
  user-select: none;
}

.switch input {
  appearance: none;
  width: 42px;
  height: 24px;
  border-radius: var(--r-pill);
  background: var(--line);
  position: relative;
  cursor: pointer;
  transition: background var(--motion) var(--ease);
  margin: 0;
}

.switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform var(--motion) var(--ease);
}

.switch input:checked {
  background: var(--accent);
}

.switch input:checked::after {
  transform: translateX(18px);
  background: var(--deep-trust);
}

.wire {
  font-family: var(--font-mono);
  font-size: 12.5px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.wire__head {
  padding: 8px 12px;
  background: color-mix(in srgb, var(--bg-card) 80%, transparent);
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wire__log {
  padding: var(--sp-md);
  min-height: 190px;
  max-height: 260px;
  overflow-y: auto;
  display: grid;
  gap: 6px;
  align-content: start;
}

.wire__line {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: var(--sp-sm);
  animation: slide-in var(--motion) var(--ease) both;
}

.wire__line b {
  color: var(--accent-2-ink);
  font-weight: 400;
}

.wire__line span {
  color: var(--ink-muted);
}

.wire__line .byte {
  color: var(--warn-ink);
}
.wire__line .none {
  color: var(--success-ink);
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ==========================================================================
   10. Pairing / SAS
   ========================================================================== */

.pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--sp-lg);
  align-items: center;
}

.device {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  text-align: center;
  background: color-mix(in srgb, var(--bg-card) 70%, transparent);
}

.device__name {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: var(--sp-sm);
}

.sas {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: 0.16em;
  color: var(--accent-ink);
  font-weight: 600;
}

.sas--match {
  color: var(--success-ink);
}

.pair__link {
  display: grid;
  place-items: center;
  gap: 6px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
}

.pair__link .beam {
  width: 2px;
  height: 54px;
  background: linear-gradient(
    180deg,
    transparent,
    var(--accent) 45%,
    transparent
  );
  animation: beam 2.4s var(--ease) infinite;
}

@keyframes beam {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

/* ==========================================================================
   11. Zahlen, Plattformen, FAQ
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-md);
}

.stat {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  background: color-mix(in srgb, var(--bg-card) 55%, transparent);
}

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 600;
  color: var(--accent-ink);
  line-height: 1;
}

.stat__label {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-top: var(--sp-sm);
}

.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-md);
}

.platform {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--bg-card) 45%, transparent);
}

.platform svg {
  width: 24px;
  height: 24px;
  color: var(--ink-muted);
  flex: 0 0 auto;
}

.platform strong {
  display: block;
  font-weight: 600;
  font-size: 0.98rem;
}

.platform small {
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.faq {
  display: grid;
  gap: var(--sp-sm);
  max-width: 900px;
}

details.qa {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--bg-card) 50%, transparent);
  overflow: hidden;
  transition: border-color var(--motion) var(--ease);
}

details.qa[open] {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

details.qa summary {
  cursor: pointer;
  padding: var(--sp-md) var(--sp-lg);
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}

details.qa summary::-webkit-details-marker {
  display: none;
}

details.qa summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent-ink);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform var(--motion) var(--ease);
}

details.qa[open] summary::after {
  transform: rotate(45deg);
}

details.qa .qa__body {
  padding: 0 var(--sp-lg) var(--sp-md);
  color: var(--ink-muted);
}

details.qa .qa__body > :last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   12. Code
   ========================================================================== */

.code {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-dark);
  overflow: hidden;
}

.code__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-dark);
  background: var(--surface-dark-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.code pre {
  margin: 0;
  padding: var(--sp-md);
  overflow-x: auto;
  color: var(--cream);
  font-size: 13px;
  line-height: 1.7;
}

.code pre .c {
  color: var(--muted-dark);
}
.code pre .s {
  color: var(--soft-spark);
}
.code pre .k {
  color: var(--bright-code);
}

.copy-btn {
  border: 1px solid var(--border-dark);
  background: transparent;
  color: var(--muted-dark);
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: color var(--motion-fast) var(--ease),
    border-color var(--motion-fast) var(--ease);
}

.copy-btn:hover {
  color: var(--signal);
  border-color: var(--signal);
}

/* ==========================================================================
   13. Doku-Layout
   ========================================================================== */

.docs {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 210px;
  gap: var(--sp-xxl);
  align-items: start;
  padding: var(--sp-xl) 0 var(--sp-4xl);
}

.docs-nav {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: var(--sp-sm);
  font-size: 0.94rem;
}

.docs-nav h4 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: var(--sp-lg) 0 var(--sp-sm);
  font-weight: 600;
}

.docs-nav h4:first-child {
  margin-top: 0;
}

.docs-nav ul {
  list-style: none;
  margin: 0 0 var(--sp-md);
  padding: 0;
  display: grid;
  gap: 2px;
}

.docs-nav a {
  display: block;
  padding: 5px 10px;
  border-radius: var(--r-md);
  color: var(--ink-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
}

.docs-nav a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--bg-card) 60%, transparent);
}

.docs-nav a[aria-current="page"] {
  color: var(--accent-ink);
  border-left-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.docs-main {
  min-width: 0;
}

.docs-main h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: var(--sp-md);
}

.docs-main h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin-top: var(--sp-xxl);
  padding-top: var(--sp-sm);
  scroll-margin-top: 96px;
}

.docs-main h3 {
  margin-top: var(--sp-xl);
  scroll-margin-top: 96px;
}

.docs-main ul,
.docs-main ol {
  padding-left: 1.25em;
  margin: 0 0 var(--sp-md);
}

.docs-main li {
  margin-bottom: 6px;
}

.docs-main :not(pre) > code {
  background: color-mix(in srgb, var(--bg-card) 80%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 1px 5px;
}

.docs-main .code {
  margin: 0 0 var(--sp-lg);
}

.docs-toc {
  position: sticky;
  top: 92px;
  font-size: 0.88rem;
}

.docs-toc h4 {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 var(--sp-sm);
  font-weight: 600;
}

.docs-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  border-left: 1px solid var(--line);
}

.docs-toc a {
  display: block;
  padding: 2px 0 2px 12px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  color: var(--ink-muted);
  text-decoration: none;
}

.docs-toc a.is-active {
  color: var(--accent-ink);
  border-left-color: var(--accent);
}

.breadcrumb {
  display: flex;
  gap: var(--sp-sm);
  align-items: center;
  color: var(--ink-muted);
  font-size: 0.84rem;
  margin-bottom: var(--sp-md);
  list-style: none;
  padding: 0;
}

.breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-ink);
}

table.grid {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--sp-lg);
  font-size: 0.94rem;
  display: block;
  overflow-x: auto;
}

table.grid th,
table.grid td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}

table.grid th {
  background: color-mix(in srgb, var(--bg-card) 70%, transparent);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.note {
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--sp-md) var(--sp-lg);
  margin: 0 0 var(--sp-lg);
  color: var(--ink-muted);
}

.note > :last-child {
  margin-bottom: 0;
}

.note strong {
  color: var(--ink);
}

.note--warn {
  border-left-color: var(--powerline);
  background: color-mix(in srgb, var(--powerline) 9%, transparent);
}

.note--ok {
  border-left-color: var(--success);
  background: color-mix(in srgb, var(--success) 9%, transparent);
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-md);
  margin-top: var(--sp-xxl);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.pager a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.pager a:hover {
  color: var(--accent-ink);
}

.pager b {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.endpoint {
  display: flex;
  align-items: baseline;
  gap: var(--sp-sm);
  font-family: var(--font-mono);
  margin: var(--sp-xl) 0 var(--sp-sm);
  scroll-margin-top: 96px;
  flex-wrap: wrap;
}

.method {
  padding: 2px 9px;
  border-radius: var(--r-sm);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid;
}

.method--get {
  color: var(--success-ink);
  border-color: color-mix(in srgb, var(--success) 50%, transparent);
}
.method--post {
  color: var(--accent-ink);
  border-color: color-mix(in srgb, var(--signal) 50%, transparent);
}
.method--put {
  color: var(--warn-ink);
  border-color: color-mix(in srgb, var(--soft-spark) 50%, transparent);
}
.method--del {
  color: var(--error-ink);
  border-color: color-mix(in srgb, var(--powerline) 50%, transparent);
}

/* ==========================================================================
   14. Bewegung beim Scrollen
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: 90ms;
}
.reveal[data-delay="2"] {
  transition-delay: 180ms;
}
.reveal[data-delay="3"] {
  transition-delay: 270ms;
}
.reveal[data-delay="4"] {
  transition-delay: 360ms;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--signal), var(--soft-spark));
  z-index: 60;
}

/* ==========================================================================
   15. Schmale Bildschirme
   ========================================================================== */

@media (max-width: 1080px) {
  .docs {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .docs-toc {
    display: none;
  }
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .window--tilt {
    transform: none;
  }
  .bento > * {
    grid-column: span 3;
  }
  .bento > .span-4 {
    grid-column: span 6;
  }
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }
  .section {
    padding: var(--sp-3xl) 0;
  }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-md) var(--sp-lg) var(--sp-lg);
    transform: translateY(-120%);
    transition: transform var(--motion) var(--ease);
  }
  .nav.is-open {
    transform: none;
  }
  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav .btn {
    margin-top: var(--sp-md);
    justify-content: center;
  }
  .nav-toggle {
    display: inline-grid;
    margin-left: auto;
  }
  .nav-toggle + .icon-btn {
    margin-left: 0;
  }
  .demo,
  .pair,
  .pipe {
    grid-template-columns: 1fr;
  }
  /* Zwei Spalten passen hier nicht nebeneinander. Sie stehen dann
     untereinander, die Gegenseite oben -- so macht es das Programm auch. */
  .sftp {
    grid-template-columns: 1fr;
  }
  .sftp__col + .sftp__col {
    border-left: 0;
    border-top: 1px solid var(--border-dark);
  }
  .sftp__col:first-child {
    order: 2;
  }
  .pipe__arrow {
    transform: rotate(90deg);
  }
  .bento > *,
  .bento > .span-3,
  .bento > .span-4 {
    grid-column: span 6;
  }
  .docs {
    grid-template-columns: 1fr;
  }
  .docs-nav {
    position: static;
    max-height: none;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--sp-md);
    background: color-mix(in srgb, var(--bg-card) 45%, transparent);
  }
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .wire__line {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 520px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: var(--sp-xxl);
  }
}

/* ==========================================================================
   16. Weniger Bewegung
   ========================================================================== */

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

@media print {
  .site-header,
  .site-footer,
  .docs-nav,
  .docs-toc,
  .scroll-progress {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* ==========================================================================
   17. Bildmarke und Wortmarke im Dokument
   Zweifarbig, wie in brand/README.md festgelegt: linke Haelfte traegt die
   Textfarbe, rechte Haelfte Signal Orange. Der Spalt bleibt offen.
   ========================================================================== */

.mark-a {
  fill: currentColor;
}

.mark-b {
  fill: var(--signal);
}

.word {
  fill: none;
  stroke: currentColor;
  stroke-width: 11;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   18. Kleine Helfer
   Damit im Markup keine style-Attribute stehen muessen -- die Seite laeuft
   unter einer Content-Security-Policy ohne 'unsafe-inline'.
   ========================================================================== */

.mt-md {
  margin-top: var(--sp-md);
}
.mt-lg {
  margin-top: var(--sp-lg);
}
.mt-xl {
  margin-top: var(--sp-xl);
}
.mt-xxl {
  margin-top: var(--sp-xxl);
}
.mb-0 {
  margin-bottom: 0;
}
.center {
  text-align: center;
}
.right {
  text-align: right;
}
.mx-auto {
  margin-inline: auto;
}
.row-center {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  justify-content: center;
}

/* Fehlerseite */
.page-404 {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: var(--sp-md);
  padding: var(--sp-4xl) 0;
}

.page-404 .eyebrow {
  justify-content: center;
}

.page-404 h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.page-404 svg {
  margin-inline: auto;
}

.muted {
  color: var(--ink-muted);
}

/* ==========================================================================
   19. Telefon-Nachbau mit Tastenleiste
   Die Leiste ist der Grund, warum ein Terminal auf einem Telefon mehr ist
   als eine Textanzeige. Deshalb steht sie hier bedienbar und nicht als Bild.
   ========================================================================== */

.mobile-demo {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: var(--sp-xxl);
  align-items: center;
}

.phone {
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  aspect-ratio: 9 / 18.5;
  border: 9px solid var(--surface-dark-2);
  border-radius: 38px;
  background: var(--surface-dark);
  box-shadow: 0 40px 80px -34px rgba(0, 0, 0, 0.8),
    0 0 0 1px color-mix(in srgb, var(--bright-code) 10%, transparent);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--cream);
  font-weight: 400;
}

.phone__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px 5px;
  background: var(--surface-dark-2);
  color: var(--muted-dark);
  font-size: 10px;
  flex: 0 0 auto;
}

.phone__bar b {
  color: var(--cream);
  font-weight: 400;
}

.phone__term {
  flex: 1 1 auto;
  padding: 10px 12px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone__term .d {
  color: var(--muted-dark);
}
.phone__term .o {
  color: var(--signal);
}
.phone__term .g {
  color: var(--success);
}
.phone__term .u {
  color: var(--bright-code);
}

.keybar {
  flex: 0 0 auto;
  display: flex;
  gap: 4px;
  padding: 7px 8px;
  overflow-x: auto;
  background: var(--surface-dark-2);
  border-top: 1px solid var(--border-dark);
  scrollbar-width: thin;
}

.keybar button {
  flex: 0 0 auto;
  min-width: 34px;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-dark);
  background: color-mix(in srgb, var(--surface-dark) 80%, transparent);
  color: var(--cream);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
  transition: background var(--motion-fast) var(--ease),
    color var(--motion-fast) var(--ease),
    border-color var(--motion-fast) var(--ease);
}

.keybar button:hover {
  border-color: var(--signal);
}

.keybar button.is-armed {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--deep-trust);
  font-weight: 600;
}

.keybar button.is-hit {
  background: color-mix(in srgb, var(--bright-code) 30%, transparent);
}

.keybar__sep {
  flex: 0 0 auto;
  width: 1px;
  background: var(--border-dark);
  margin: 2px 3px;
}

@media (max-width: 1080px) {
  .mobile-demo {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   20. Downloadseite
   Die Liste kommt aus /downloads/latest.json. Ein Release aendert nur diese
   Datei -- damit gibt es hier nie einen Verweis auf etwas, das es nicht gibt.
   ========================================================================== */

.release {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: color-mix(in srgb, var(--bg-card) 55%, transparent);
  padding: var(--sp-xl);
}

.release__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}

.release__version {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-ink);
}

.release__date {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.dl {
  display: grid;
  gap: var(--sp-md);
}

.dl__item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: var(--sp-md);
  align-items: center;
  padding: var(--sp-md);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--bg-elevated) 55%, transparent);
  transition: border-color var(--motion) var(--ease);
}

.dl__item:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.dl__icon {
  width: 28px;
  height: 28px;
  color: var(--ink-muted);
  justify-self: center;
}

.dl__name {
  font-weight: 600;
}

.dl__meta {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.dl__hash {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-muted);
  word-break: break-all;
  border-top: 1px dashed var(--line);
  padding-top: var(--sp-sm);
}

.dl__hash b {
  color: var(--ink);
  font-weight: 400;
}

.fingerprint {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--ink);
}

@media (max-width: 620px) {
  .dl__item {
    grid-template-columns: 32px minmax(0, 1fr);
  }
  .dl__item .btn {
    grid-column: 1 / -1;
    justify-content: center;
  }
}
