/* Download-Seite von R3lay. Farben und Schriften wie in der App (app/src/renderer/styles.css). */
@font-face { font-family: 'Archivo'; src: url(archivo.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(jbmono-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(jbmono-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

@property --pct { syntax: '<integer>'; inherits: false; initial-value: 62; }
@property --n { syntax: '<integer>'; inherits: false; initial-value: 3; }

:root {
  --bg: #111113;
  --raised: #151518;
  --hover: #1c1c20;
  --tile: #0a0a0b;
  --line: #2a2a2f;
  --line-strong: #3b3b42;
  --ink: #ededee;
  --mute: #8e8e96;
  --faint: #5b5b63;
  --accent: #c2ff29;
  --accent-hover: #d4ff63;
  --on-accent: #111113;
  --danger: #ff5c5c;
  --sans: 'Archivo', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: max(clamp(16px, 4.5vw, 72px), calc((100vw - 1680px) / 2));
  --mark: clamp(118px, 23vw, 380px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.i { flex: none; }

/* Rollenfarben (Palette der App) */
.c-red { color: #ff5c5c; }
.c-sky { color: #38bdf8; }
.c-violet { color: #a78bfa; }
.c-yellow { color: #facc15; }

/* ---------- Kopf ---------- */

.top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gutter); }
.top-home { font-size: 26px; font-weight: 900; font-stretch: 62%; line-height: 1; text-decoration: none; }
.top-home i { font-style: normal; color: var(--accent); }
.top-nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.top-nav a { padding: 8px 0; color: var(--mute); text-decoration: none; }
.top-nav a:hover { color: var(--ink); }
.top-nav .top-dl { padding: 10px 14px; border: 1px solid var(--accent); color: var(--accent); }
.top-nav .top-dl:hover { background: var(--accent); color: var(--on-accent); }

/* ---------- Bühne ---------- */

.hero { position: relative; overflow: hidden; padding: 0 var(--gutter); }
.mark { position: relative; z-index: 0; margin: 0 0 0 -.03em; font-size: var(--mark); font-weight: 900; font-stretch: 62%; line-height: .8; letter-spacing: -.03em; }
.mark span { color: var(--accent); }
.hero-body { position: relative; z-index: 1; display: grid; gap: 44px; margin-top: 28px; }
.lead { max-width: 13em; margin: 0 0 30px; font-size: clamp(24px, 2.3vw, 34px); font-weight: 650; font-stretch: 78%; line-height: 1.1; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-dl { display: inline-flex; align-items: center; gap: 14px; padding: 15px 24px 15px 18px; background: var(--accent); color: var(--on-accent); text-decoration: none; }
.btn-dl:hover { background: var(--accent-hover); }
.btn-dl .i { width: 26px; height: 26px; }
.btn-dl b { display: block; font-size: 18px; font-weight: 750; font-stretch: 85%; line-height: 1.15; }
.btn-dl small, .btn-alt small { display: block; margin-top: 3px; font: 400 12px/1.3 var(--mono); }
.btn-dl small { opacity: .72; }
.btn-alt { display: inline-flex; flex-direction: column; justify-content: center; padding: 12px 18px; border: 1px solid var(--line-strong); font-size: 16px; font-weight: 650; font-stretch: 85%; text-decoration: none; }
.btn-alt small { color: var(--mute); }
.btn-alt:hover { border-color: var(--ink); }
.hero-meta { margin: 18px 0 0; font: 400 12px/1.4 var(--mono); letter-spacing: .06em; color: var(--mute); }
.soon { color: var(--mute); }

.hero-shot { position: relative; margin: 0 0 18px 18px; }
.hero-shot::before { content: ''; position: absolute; inset: 18px 18px -18px -18px; background: var(--accent); }
.hero-shot img { position: relative; width: 100%; border: 1px solid var(--line-strong); }

.invite { margin-bottom: 30px; }
.kicker { margin: 0 0 12px; font: 400 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.invite-server { margin: 0; font-size: clamp(38px, 4.6vw, 72px); font-weight: 800; font-stretch: 70%; line-height: .95; overflow-wrap: anywhere; }
.invite-meta { margin: 10px 0 22px; color: var(--mute); }
.btn-open { display: inline-block; padding: 13px 22px; border: 2px solid var(--accent); color: var(--accent); font-weight: 700; text-decoration: none; }
.btn-open:hover { background: var(--accent); color: var(--on-accent); }
.invite-code { margin: 16px 0 0; font: 400 13px var(--mono); color: var(--mute); }
.invite-code b { color: var(--ink); user-select: all; }

@media (min-width: 900px) {
  .hero-body { grid-template-columns: minmax(0, 32fr) minmax(0, 68fr); gap: clamp(36px, 4.5vw, 80px); align-items: start; margin-top: calc(.2 * var(--mark)); }
  .hero-shot { margin-left: 0; }
}

/* Pegel wie die Frequenzbalken des Radios: links die Bässe, rechts die Höhen. */
.meter { display: flex; align-items: flex-end; gap: 3px; height: 64px; margin-top: 64px; }
.meter i, .deck-bars i, .eq i { flex: 1 1 0; height: 100%; background: var(--accent); transform-origin: 50% 100%; transform: scaleY(var(--s, .3)); animation: level var(--d, 1.1s) ease-in-out var(--w, 0s) infinite alternate; }
.meter i:nth-child(3n) { --d: .8s; --w: -.5s; }
.meter i:nth-child(3n + 1) { --d: 1.35s; --w: -.2s; }
.meter i:nth-child(5n) { --d: .95s; --w: -.9s; }
.meter i:nth-child(7n) { --d: 1.6s; --w: -1.3s; }
.meter i:nth-child(odd) { --p: .9; --q: .45; --s: .55; }
.meter i:nth-child(even) { --p: .7; --q: .8; --s: .7; }
.meter i:nth-child(n + 25):nth-child(odd) { --p: .6; --q: .3; --s: .4; }
.meter i:nth-child(n + 25):nth-child(even) { --p: .45; --q: .55; --s: .35; }
.meter i:nth-child(n + 49) { --p: .3; --q: .14; --s: .12; }
.meter i:nth-child(n + 49):nth-child(4n) { --p: .42; --q: .2; }
@keyframes level {
  0% { transform: scaleY(.05); }
  45% { transform: scaleY(var(--p, .8)); }
  70% { transform: scaleY(.3); }
  100% { transform: scaleY(var(--q, .55)); }
}
@media (max-width: 700px) { .meter i:nth-child(2n) { display: none; } .meter { height: 48px; margin-top: 48px; } }

/* ---------- Abschnitte ---------- */

.section-title { display: flex; align-items: center; gap: 18px; margin: 0; padding: clamp(80px, 10vw, 150px) 0 0; font: 400 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.features { padding: 0 var(--gutter); }
.feature { display: grid; gap: 36px; padding: clamp(52px, 7vw, 104px) 0; border-bottom: 1px solid var(--line); }
.f-no { display: flex; align-items: center; gap: 10px; margin: 0; font: 400 13px/1 var(--mono); color: var(--accent); }
.f-no .i { width: 20px; height: 20px; }
.feature h3 { margin: 18px 0 30px; font-size: clamp(46px, 5.6vw, 92px); font-weight: 800; font-stretch: 66%; line-height: .9; letter-spacing: -.01em; }
.stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: -6px 0 30px; }
.stat b { font-size: clamp(60px, 7.4vw, 124px); font-weight: 900; font-stretch: 62%; line-height: .85; }
.stat .acc { color: var(--accent); }
.stat small { font: 400 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

.specs { display: grid; grid-template-columns: 164px minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); }
.specs dt, .specs dd { margin: 0; padding: 13px 0; border-bottom: 1px solid var(--line); }
.specs dt { padding-right: 24px; font: 400 11px/1.95 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.specs dd { font-size: 16px; line-height: 1.45; }
@media (max-width: 560px) {
  .specs { grid-template-columns: minmax(0, 1fr); }
  .specs dt { padding-bottom: 0; border-bottom: 0; }
  .specs dd { padding-top: 2px; }
}

@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(44px, 5.5vw, 104px); align-items: center; }
}

/* ---------- Grafiken ---------- */

.art { position: relative; background: var(--raised); border: 1px solid var(--line); }
.art img { max-width: none; }
.art-head { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.art-head .i { width: 18px; height: 18px; align-self: center; color: var(--mute); }
.art-head b { font-size: 18px; font-weight: 750; font-stretch: 82%; }
.art-head span { overflow: hidden; font: 400 12px var(--mono); color: var(--mute); white-space: nowrap; text-overflow: ellipsis; }
.art-label { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.art-label .i { width: 14px; height: 14px; }

/* Sprachkanal: wer spricht, bekommt den grünen Rahmen. */
.vg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; background: var(--bg); }
.vt { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--tile); }
.vt img { width: 25%; height: auto; aspect-ratio: 1; }
.vt-name { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; background: rgba(10, 10, 11, .84); font-size: 13px; font-weight: 650; font-stretch: 90%; }
.vt-name .i { width: 14px; height: 14px; color: var(--danger); }
.vt::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--accent); opacity: 0; }
.vt.sp-b::after { opacity: 1; }
.vt.sp-a::after, .vt.sp-b::after, .vt.sp-c::after { animation: speak 9s infinite; }
.vt.sp-b::after { animation-delay: -6s; }
.vt.sp-c::after { animation-delay: -3s; }
@keyframes speak {
  0%, 3% { opacity: 0; }
  4%, 13% { opacity: 1; }
  14%, 15% { opacity: 0; }
  16%, 29% { opacity: 1; }
  30%, 100% { opacity: 0; }
}
.vc { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); }
.vc span { display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-size: 14px; font-weight: 650; font-stretch: 90%; }
.vc .i { width: 18px; height: 18px; }
.vc .on { background: var(--hover); box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 600px) { .vc span { gap: 0; padding: 13px 14px; font-size: 0; } }

/* Bildschirm teilen */
.art-screen { background: #000; }
.art-screen > img { width: 100%; max-width: 100%; }
.qsel { position: absolute; right: 14px; bottom: 14px; display: flex; background: var(--bg); border: 1px solid var(--line-strong); }
.qsel span { display: flex; flex-direction: column; gap: 2px; padding: 9px 14px; border-left: 1px solid var(--line-strong); }
.qsel span:first-child { border-left: 0; }
.qsel b { font-size: 14px; font-weight: 750; font-stretch: 85%; }
.qsel small { font: 400 11px var(--mono); color: var(--mute); }
.qsel .on { background: var(--accent); color: var(--on-accent); }
.qsel .on small { color: rgba(17, 17, 19, .68); }
@media (max-width: 600px) { .qsel { position: static; border-width: 1px 0 0; } .qsel span { flex: 1; } }

/* Textkanal */
.cm-list { display: grid; gap: 16px; padding: 18px 18px 6px; }
.cm { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.cm > img { width: 40px; height: 40px; }
.cm-who { display: flex; align-items: baseline; gap: 8px; margin: 0 0 2px; }
.cm-who b { font-weight: 750; font-stretch: 90%; }
.cm-who time { font: 400 11px var(--mono); color: var(--faint); }
.cm-body p { margin: 0; }
.cm-reply { position: relative; display: flex; align-items: center; gap: 6px; margin: -4px 0 -10px 52px; padding-left: 4px; font-size: 13px; color: var(--mute); white-space: nowrap; }
.cm-reply span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cm-reply::before { content: ''; position: absolute; left: -32px; top: 50%; width: 26px; height: 12px; border: solid var(--line-strong); border-width: 2px 0 0 2px; }
.cm-reply img { width: 16px; height: 16px; }
.cm-reply b { font-weight: 650; }
.mention { padding: 0 3px; background: rgba(167, 139, 250, .16); color: #c4b5fd; font-weight: 650; }
.cm-body .reacts { display: flex; gap: 6px; margin-top: 8px; }
.reacts span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid var(--line-strong); font: 700 13px var(--mono); }
.reacts .on { border-color: var(--accent); background: rgba(194, 255, 41, .09); }
.count { counter-reset: n var(--n); animation: bump 7s steps(1) infinite; }
.count::before { content: counter(n); }
.count, .pct { font-style: normal; }
@keyframes bump { 0% { --n: 3; } 55% { --n: 4; } }
.file { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: center; max-width: 380px; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line-strong); background: var(--bg); }
.file .i { width: 26px; height: 26px; color: var(--mute); }
.file b { display: block; overflow: hidden; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.file .bar { display: block; height: 4px; margin: 8px 0 6px; background: var(--line); }
.file .bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(.62); animation: upload 9s linear infinite; }
.file small { font: 400 11px var(--mono); color: var(--mute); }
.pct { counter-reset: pct var(--pct); animation: pct 9s linear infinite; }
.pct::before { content: counter(pct) ' %'; }
@keyframes upload { 0% { transform: scaleX(0); } 82%, 100% { transform: scaleX(1); } }
@keyframes pct { 0% { --pct: 0; } 82%, 100% { --pct: 100; } }
.typing { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 18px 16px 70px; font-size: 13px; color: var(--mute); }
.typing b { color: var(--ink); font-weight: 650; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 5px; height: 5px; background: var(--mute); animation: dot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* Radio */
.art-radio { display: grid; }
.deck { padding: 22px; }
.deck-top { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; }
.cover { width: 96px; height: 96px; border: 4px solid #fff; }
.deck-where { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font: 400 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.deck-where .i { width: 14px; height: 14px; }
.deck-title { margin: 0; font-size: clamp(22px, 2.1vw, 30px); font-weight: 800; font-stretch: 68%; line-height: 1.02; }
.deck-station { margin: 6px 0 0; font-size: 14px; color: var(--mute); }
.deck-live { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; font: 400 12px var(--mono); color: var(--mute); }
.live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; background: var(--accent); color: var(--on-accent); font-weight: 700; letter-spacing: .12em; }
.live .i { width: 14px; height: 14px; }
.deck-ctrl { display: flex; gap: 6px; margin: 0 0 18px; }
.deck-ctrl span { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-strong); }
.deck-ctrl .on { width: 46px; border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.deck-ctrl .gap { width: 6px; border: 0; }
.deck-ctrl .i { width: 16px; height: 16px; }
.deck-vol { display: grid; grid-template-columns: 74px minmax(0, 1fr) 48px; gap: 14px; align-items: center; margin: 0 0 12px; font: 400 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.deck-vol span:last-child { letter-spacing: 0; text-align: right; }
.deck-vol i { position: relative; height: 2px; background: var(--line-strong); }
.deck-vol i::after { content: ''; position: absolute; top: -6px; width: 12px; height: 14px; background: var(--accent); transform: translateX(-50%); }
.deck-vol .v60::after { left: 60%; }
.deck-vol .v100::after { left: calc(100% - 6px); }
.deck-bars { display: flex; align-items: flex-end; gap: 3px; height: 52px; margin-top: 16px; }
.deck-bars i:nth-child(odd) { --p: .95; --q: .5; --s: .7; --d: .9s; }
.deck-bars i:nth-child(even) { --p: .7; --q: .85; --s: .8; --d: 1.2s; --w: -.4s; }
.deck-bars i:nth-child(n + 12) { --p: .5; --q: .3; --s: .35; }
.deck-bars i:nth-child(n + 20) { --p: .22; --q: .1; --s: .08; }
.deck-bars i:nth-child(3n) { --w: -.7s; }
.stations { display: grid; align-content: start; gap: 2px; margin: 0; padding: 12px; list-style: none; border-top: 1px solid var(--line); }
.stations li { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 9px 10px; border-left: 3px solid transparent; }
.stations li.on { border-left-color: var(--accent); background: rgba(194, 255, 41, .07); }
.stations img { width: 50px; height: 50px; border: 2px solid #fff; }
.stations b { display: block; font-weight: 750; font-stretch: 90%; }
.stations small { font: 400 11px var(--mono); color: var(--faint); }
.eq { display: flex; align-items: flex-end; gap: 2px; width: 14px; height: 14px; }
.eq i { --d: .7s; --p: 1; --q: .4; --s: .6; }
.eq i:nth-child(2) { --d: .9s; --w: -.3s; }
.eq i:nth-child(3) { --d: .6s; --w: -.5s; }
@media (min-width: 1280px) {
  .art-radio { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
  .stations { border-top: 0; border-left: 1px solid var(--line); }
}

/* Server und Rollen */
.art-server { display: grid; grid-template-columns: 72px minmax(0, 1fr); }
.srail { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 0; border-right: 1px solid var(--line); background: var(--bg); }
.srail img, .srail span { width: 44px; height: 44px; }
.srail img.on { outline: 2px solid var(--accent); outline-offset: 3px; }
.srail-home { display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); font-size: 17px; font-weight: 850; font-stretch: 70%; }
.srail-home i { font-style: normal; color: var(--accent); }
.srail-add { display: grid; place-items: center; border: 1px dashed var(--line-strong); color: var(--accent); }
.srail-add .i { width: 18px; height: 18px; }
.sbody { display: grid; gap: 24px; padding: 18px; }
.role { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.role .dot { width: 10px; height: 10px; background: currentColor; }
.role.dim .dot { background: var(--faint); }
.role b { flex: 1; font-weight: 750; font-stretch: 90%; }
.role.dim b { color: var(--mute); font-weight: 500; }
.avs { display: flex; padding-left: 6px; }
.avs img { width: 24px; height: 24px; margin-left: -6px; border: 2px solid var(--raised); }
.perm { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tri { display: inline-flex; flex: none; border: 1px solid var(--line-strong); }
.tri b { display: grid; place-items: center; width: 30px; height: 26px; border-left: 1px solid var(--line-strong); color: var(--faint); }
.tri b:first-child { border-left: 0; }
.tri .i { width: 14px; height: 14px; }
.t-allow b:nth-child(3), .t-cycle b:nth-child(3) { background: var(--accent); color: var(--on-accent); }
.t-deny b:nth-child(1) { background: var(--danger); color: #fff; }
.t-cycle b { animation: 7.5s steps(1) infinite; }
.t-cycle b:nth-child(1) { animation-name: tri-deny; }
.t-cycle b:nth-child(2) { animation-name: tri-mid; }
.t-cycle b:nth-child(3) { animation-name: tri-allow; }
@keyframes tri-deny { 0% { background: var(--danger); color: #fff; } 33.3% { background: transparent; color: var(--faint); } }
@keyframes tri-mid { 0% { background: transparent; color: var(--faint); } 33.3% { background: var(--line-strong); color: var(--ink); } 66.6% { background: transparent; color: var(--faint); } }
@keyframes tri-allow { 0% { background: transparent; color: var(--faint); } 66.6% { background: var(--accent); color: var(--on-accent); } }
.sinvite { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; padding: 12px 14px; border: 1px solid var(--line-strong); background: var(--bg); font: 400 13px var(--mono); overflow-wrap: anywhere; }
.sinvite .i { width: 16px; height: 16px; color: var(--accent); }
.sinvite b { color: var(--accent); }
.sinvite small { margin-left: auto; color: var(--mute); }
@media (min-width: 1280px) {
  .sbody { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sinvite { grid-column: 1 / -1; }
}

/* Sicherheit: Ton und Bild laufen verschlüsselt durch den Medienserver. */
.art-e2ee { display: grid; gap: 30px; padding: clamp(20px, 3vw, 36px); }
.e-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: start; }
.e-node { display: grid; justify-items: center; gap: 10px; font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.e-node img { width: 56px; height: 56px; }
.e-relay .i { width: 56px; height: 56px; padding: 14px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--accent); }
.wire { position: relative; height: 56px; margin: 0 10px; overflow: hidden; }
.wire::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line-strong); }
.hex { position: absolute; left: 0; right: 0; top: 6px; overflow: hidden; font: 400 10px/1 var(--mono); color: var(--faint); white-space: nowrap; }
.hex span { display: inline-block; padding-right: .6em; animation: hex 16s linear infinite; }
@keyframes hex { to { transform: translateX(-100%); } }
.pk { position: absolute; inset: 0; animation: travel 2.4s linear infinite; }
.pk::before { content: ''; position: absolute; left: 0; top: calc(50% - 4px); width: 8px; height: 8px; background: var(--accent); }
.pk:nth-of-type(2) { animation-delay: -.8s; }
.pk:nth-of-type(3) { animation-delay: -1.6s; }
@keyframes travel { from { transform: translateX(-8px); } to { transform: translateX(100%); } }
.totp { padding-top: 22px; border-top: 1px solid var(--line); }
.code { height: 1em; margin: 0; overflow: hidden; font: 700 clamp(38px, 4.4vw, 60px)/1 var(--mono); letter-spacing: .02em; }
.codes { display: block; animation: codes 90s steps(3) infinite; }
.codes span { display: block; height: 1em; }
@keyframes codes { to { transform: translateY(-3em); } }
.totp-bar { display: block; height: 4px; margin-top: 14px; background: var(--line); }
.totp-bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(.6); animation: drain 30s linear infinite; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 520px) {
  .e-node img, .e-relay .i { width: 44px; height: 44px; }
  .e-relay .i { padding: 10px; }
  .wire { height: 44px; margin: 0 6px; }
  .e-node { font-size: 9px; letter-spacing: .04em; }
}

/* App: dunkles und helles Thema, getrennt von einer wandernden Kante. */
.art-themes { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); }
.art-themes .th { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.th-light { clip-path: polygon(62% 0, 100% 0, 100% 100%, 46% 100%); animation: sweep 14s ease-in-out infinite; }
.th-cut { position: absolute; inset: 0; background: var(--accent); clip-path: polygon(calc(62% - 1.5px) 0, calc(62% + 1.5px) 0, calc(46% + 1.5px) 100%, calc(46% - 1.5px) 100%); animation: sweep-cut 14s ease-in-out infinite; }
@keyframes sweep {
  0%, 100% { clip-path: polygon(62% 0, 100% 0, 100% 100%, 46% 100%); }
  50% { clip-path: polygon(34% 0, 100% 0, 100% 100%, 18% 100%); }
}
@keyframes sweep-cut {
  0%, 100% { clip-path: polygon(calc(62% - 1.5px) 0, calc(62% + 1.5px) 0, calc(46% + 1.5px) 100%, calc(46% - 1.5px) 100%); }
  50% { clip-path: polygon(calc(34% - 1.5px) 0, calc(34% + 1.5px) 0, calc(18% + 1.5px) 100%, calc(18% - 1.5px) 100%); }
}
.th-caption { display: flex; justify-content: space-between; margin: 12px 0 0; font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

/* ---------- Bildschirmfotos ---------- */

.shots .section-title { margin: 0 var(--gutter); }
.shelf { display: grid; grid-auto-columns: min(86vw, 1120px); grid-auto-flow: column; gap: clamp(14px, 2vw, 28px); padding: 28px var(--gutter) 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-color: var(--accent) var(--line); scrollbar-width: thin; }
.shelf::-webkit-scrollbar { height: 6px; }
.shelf::-webkit-scrollbar-track { background: var(--line); }
.shelf::-webkit-scrollbar-thumb { background: var(--accent); }
.shelf figure { margin: 0; scroll-snap-align: start; }
.shelf img { width: 100%; border: 1px solid var(--line-strong); }
.shelf figcaption { display: flex; align-items: baseline; gap: 14px; padding-top: 14px; font-size: 15px; color: var(--mute); }
.shelf figcaption span { font: 400 12px var(--mono); color: var(--accent); }

/* ---------- Download ---------- */

.dl { padding: clamp(80px, 10vw, 150px) var(--gutter) clamp(64px, 8vw, 120px); }
.dl-title { margin: 0 0 clamp(26px, 3vw, 44px) -.03em; font-size: clamp(76px, 14vw, 230px); font-weight: 900; font-stretch: 62%; line-height: .8; letter-spacing: -.02em; }
.dl-rows { margin-bottom: 44px; border-top: 2px solid var(--ink); }
.dl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.dl-os { font-size: clamp(34px, 4.2vw, 60px); font-weight: 800; font-stretch: 68%; line-height: 1; }
.dl-req { grid-column: 1; grid-row: 2; font: 400 13px var(--mono); color: var(--mute); }
.dl-size { grid-column: 2; grid-row: 1 / 3; font: 400 14px var(--mono); color: var(--mute); }
.dl-row .i { grid-column: 3; grid-row: 1 / 3; width: 48px; height: 48px; padding: 10px; border: 1px solid var(--line-strong); }
.dl-row:hover .dl-os { color: var(--accent); }
.dl-row:hover .i, .dl-row.is-main .i { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.dl .specs { max-width: 640px; }

/* ---------- Fuß ---------- */

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 26px var(--gutter) 40px; border-top: 1px solid var(--line); font-size: 14px; }
.foot-mark { margin-right: auto; font-size: 26px; font-weight: 900; font-stretch: 62%; }
.foot-mark i { font-style: normal; color: var(--accent); }
.foot a { color: var(--mute); }
.foot a:hover { color: var(--ink); }

@media (max-width: 420px) { .top-shots { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
