/* Öffentliche Landingpage + Login-Modal – Thema „Neon & Glas“ (thema.ugur.at, themes/neon-glas)
   Cyan/Magenta auf Tiefschwarz, Glaskarten, langsam treibende Farbwolken über einem Raster.
   Keine externen Schriften/Bilder; nur Systemschriften. */
:root {
  --bg: #05060a;
  --text: #f1f5f9;
  --muted: #a3aec2;
  --muted-hi: #c0c9d8;
  --kicker-c: #67e8f9;
  --kicker-m: #f0abfc;
  --cyan: #22d3ee;
  --cyan-2: #67e8f9;
  --magenta: #e879f9;
  --amber: #fbbf24;
  --orange: #f97316;
  --danger: #fb7185;
  --grey: #94a3b8;
  --glass: rgba(14, 17, 28, 0.62);
  --glass-hi: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --grad: linear-gradient(100deg, var(--cyan), var(--magenta));
  --r-lg: 24px;
  --r-md: 16px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  font: 16px/1.6 var(--sans); color: var(--text); background: transparent;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; }
code, pre { font-family: var(--mono); }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--bg); border: 1px solid var(--cyan); border-radius: 8px; }
.skip:focus { left: 8px; }
main:focus { outline: none; }

/* ---------- Hintergrund ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .3; will-change: transform; }
.blob.b1 { width: 58vmax; height: 58vmax; left: -18vmax; top: -22vmax;
  background: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, .55), rgba(34, 211, 238, 0) 68%);
  animation: drift1 32s ease-in-out infinite alternate; }
.blob.b2 { width: 52vmax; height: 52vmax; right: -20vmax; top: 18vh;
  background: radial-gradient(circle at 50% 50%, rgba(232, 121, 249, .5), rgba(232, 121, 249, 0) 68%);
  animation: drift2 38s ease-in-out infinite alternate; }
.blob.b3 { width: 40vmax; height: 40vmax; left: 20vw; bottom: -24vmax;
  background: radial-gradient(circle at 50% 50%, rgba(45, 212, 191, .35), rgba(45, 212, 191, 0) 70%);
  animation: drift3 26s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1.05); } to { transform: translate(-12vw, 16vh) scale(.9); } }
@keyframes drift3 { from { transform: translate(0, 0) scale(.95); } to { transform: translate(10vw, -12vh) scale(1.1); } }
.bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
}

/* ---------- Glas ---------- */
.glass {
  background: linear-gradient(var(--glass-hi), var(--glass-hi)), var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.glow:hover, .glow:focus-within {
  border-color: rgba(34, 211, 238, .5);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, .25), 0 0 28px -4px rgba(34, 211, 238, .45), 0 0 60px -20px rgba(232, 121, 249, .55);
  transform: translateY(-2px);
}

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font: 600 15px/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; transition: box-shadow .25s, transform .2s, background-color .25s, border-color .25s, opacity .2s;
}
.btn-primary { background: var(--grad); color: #05060a; box-shadow: 0 0 24px -6px rgba(34, 211, 238, .7); }
.btn-primary:hover { box-shadow: 0 0 32px -2px rgba(34, 211, 238, .75), 0 0 48px -8px rgba(232, 121, 249, .8); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: 0 0 20px -6px rgba(34, 211, 238, .7); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }
.link-btn { background: none; border: 0; padding: 6px 2px; color: var(--cyan-2); font: 500 14px/1.3 var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }
.link-btn[disabled] { color: var(--muted); cursor: default; text-decoration: none; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 6, 10, .7);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 20px; min-height: 68px; }
/* Logo: Animation und Zeichen aus u-brand.css */
.brand { font-size: 19px; min-height: 44px; }
.nav { display: flex; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font: 500 14px/1 var(--mono); white-space: nowrap; }
.nav a::before { content: "#"; color: var(--kicker-c); margin-right: 4px; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.bar-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  font-size: 14px; color: var(--muted); border: 1px solid var(--line); background: rgba(14, 17, 28, .6);
}
h1 { font-size: clamp(36px, 5.6vw, 68px); line-height: 1.05; letter-spacing: -.035em; margin: 22px 0 20px; font-weight: 800; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--muted-hi); max-width: 60ch; margin: 0 0 32px; }
.lead strong { color: var(--text); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--grey); box-shadow: 0 0 0 3px rgba(148, 163, 184, .15); }
.dot.ok { background: var(--cyan); box-shadow: 0 0 10px 1px rgba(34, 211, 238, .8); animation: pulse 2.4s ease-in-out infinite; }
.dot.bad { background: var(--danger); box-shadow: 0 0 8px 1px rgba(251, 113, 133, .6); }
.dot.off { background: transparent; border: 1.5px solid var(--grey); box-shadow: none; }
@keyframes pulse { 50% { box-shadow: 0 0 2px 0 rgba(34, 211, 238, .4); } }

/* Hero-Terminal */
.term { margin: 0; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.lights { display: flex; gap: 7px; }
.lights span { width: 11px; height: 11px; border-radius: 50%; }
.lights span:nth-child(1) { background: var(--danger); }
.lights span:nth-child(2) { background: var(--amber); }
.lights span:nth-child(3) { background: var(--cyan); }
.term-title { font: 500 13px/1.2 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.state { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 3px 12px 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(5, 6, 10, .5); }
.state.ok { color: var(--cyan); border-color: rgba(34, 211, 238, .35); }
.term-body { margin: 0; padding: 18px 20px; background: rgba(3, 4, 8, .72); font-size: 14px; line-height: 1.7; color: var(--text); overflow-x: auto; white-space: pre-wrap; }
.term-body .p { color: var(--magenta); }
.term-body .k { color: var(--cyan); }
.term-body .m { color: var(--muted); }
.term-body .s { color: var(--cyan-2); }

/* ---------- Abschnitte ---------- */
section.sec { padding: 88px 0; scroll-margin-top: 80px; }
.head { max-width: 720px; margin-bottom: 40px; }
.kicker { display: inline-block; font: 600 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--kicker-c); margin-bottom: 14px; }
.kicker.m { color: var(--kicker-m); }
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 14px; font-weight: 800; }
.head p { color: var(--muted-hi); font-size: 18px; margin: 0; }
h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
p code, li code { font-size: .9em; color: var(--cyan-2); background: rgba(34, 211, 238, .08); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
/* Symbol und Titel nebeneinander, Text darunter über die volle Breite */
.why .card { padding: 26px 24px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.why .card h3 { margin: 0; }
.why .ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; }
.why .card:nth-child(odd) .ico { color: var(--cyan); background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .3); }
.why .card:nth-child(even) .ico { color: var(--magenta); background: rgba(232, 121, 249, .1); border: 1px solid rgba(232, 121, 249, .3); }
.why p { grid-column: 1 / -1; margin: 14px 0 0; color: var(--muted); font-size: 15px; }

/* Warteschlange für schwere Schritte: Text links, Ablaufbild rechts, Beleg-Bild darunter */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 32px 48px; align-items: start; margin-top: 64px; }
.flow-text h3 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 12px; }
.flow-text > p { color: var(--muted-hi); font-size: 17px; margin: 0 0 18px; }
.flow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.flow-list li { position: relative; padding-left: 22px; }
.flow-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px rgba(34, 211, 238, .6); }
.flow-fig { margin: 0; padding: 20px; }
.flow-fig svg { display: block; width: 100%; height: auto; }
.proof { grid-column: 1 / -1; margin: 0; padding: 16px; }
.proof img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 12px; }
.proof figcaption { margin: 12px 4px 0; color: var(--muted); font-size: 14.5px; }

/* Ablaufbild (SVG): Farben aus den Variablen der Seite */
.qd text { font-family: var(--sans); font-size: 13px; fill: var(--text); }
.qd .qd-mono { font-family: var(--mono); }
.qd .qd-cap { font-size: 13px; fill: var(--muted); }
.qd .qd-step { fill: var(--muted-hi); }
.qd .qd-title { font-size: 14px; font-weight: 700; }
.qd-box { fill: rgba(255, 255, 255, .04); stroke: var(--line-strong); }
.qd-dot-c { fill: var(--cyan); }
.qd-dot-m { fill: var(--magenta); }
.qd-run { fill: rgba(34, 211, 238, .1); stroke: rgba(34, 211, 238, .45); }
.qd-wait { fill: rgba(251, 191, 36, .06); stroke: rgba(251, 191, 36, .35); stroke-dasharray: 4 3; }
.qd-badge-run { fill: rgba(34, 211, 238, .18); }
.qd-badge-wait { fill: rgba(251, 191, 36, .16); }
.qd .qd-badge-t { font-size: 13px; font-weight: 700; text-anchor: middle; }
.qd .qd-t-run { fill: var(--cyan-2); }
.qd .qd-t-wait { fill: var(--amber); }
.qd-arrow { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.qd-head { fill: var(--muted); }
.qd-sep, .qd-grid { fill: none; stroke: var(--line-strong); stroke-dasharray: 3 4; }
.qd-icon { fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; }
.qd-cpu { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; }

/* Lastverteilung (TICKET#218): nur vom Block #lastverteilung und der Gruppe #lastverteilung-grafik
   benutzt – beim Entfernen des Blocks diese Regeln mit entfernen */
.handover { margin-top: 24px; padding: 22px 24px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.handover h3 { margin: 0; font-size: 18px; letter-spacing: 0; }
.handover .ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--magenta); background: rgba(232, 121, 249, .1); border: 1px solid rgba(232, 121, 249, .3); }
.handover p { grid-column: 1 / -1; margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.lv-arrow { fill: none; stroke: var(--magenta); stroke-width: 1.5; stroke-dasharray: 5 4; }
.lv-head { fill: var(--magenta); }
.qd .lv-label { font-size: 13px; font-weight: 600; fill: var(--kicker-m); }
.lv-box { fill: rgba(232, 121, 249, .06); stroke: rgba(232, 121, 249, .4); }
.lv-icon { fill: none; stroke: var(--magenta); stroke-width: 1.6; stroke-linecap: round; }

@media (max-width: 900px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-fig { width: 100%; max-width: 480px; }
}
@media (max-width: 720px) {
  .flow { margin-top: 44px; }
  .flow-fig { padding: 12px; }
  .proof { padding: 10px; }
  .handover { padding: 20px 18px; }
}

/* Antworten vorlesen lassen: ab 1024 px Text links und rechts zwei nachgebaute Ansichten (Rechner,
   davor versetzt das Telefon), Abstände und Ausrichtung wie bei .flow; schmaler Text oben, Ansichten darunter.
   Farben wie in app.css: --orange für Rand, Hauch und gesprochenes Wort (.ra-playing,
   ::highlight(read-word)), --amber für das Symbol im Stopp-Knopf (.ra-playing .ra-btn). */
.rd { margin-top: 72px; }
.rd-text { max-width: 760px; }
.rd-text h3 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 12px; }
.rd-text > p { color: var(--muted-hi); font-size: 17px; margin: 0 0 18px; }
.rd-list li::before { background: var(--orange); box-shadow: 0 0 8px rgba(249, 115, 22, .6); }
.rd-text > .rd-need { margin: 22px 0 0; padding: 16px 20px; border-radius: var(--r-md); color: var(--muted); font-size: 15px; }
.rd-need strong { color: var(--text); display: block; margin-bottom: 4px; }
.rd-need p { margin: 0; }
/* Aufklappbare Anleitung: eigenes Symbol als CSS-Winkel (kein Schriftzeichen), Standard-Marker aus */
.rd-how summary { display: inline-flex; align-items: center; gap: 10px; list-style: none; cursor: pointer; color: var(--cyan-2); font-weight: 600; border-radius: 6px; }
.rd-how summary::-webkit-details-marker { display: none; }
.rd-how summary::before { content: ""; flex: none; width: 7px; height: 7px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.rd-how[open] summary::before { transform: rotate(45deg); }
.rd-how summary:hover { color: var(--text); }
.rd-how p { margin: 8px 0 0; }
/* Auf schmalen Bildschirmen eine Tippfläche von mindestens 44 px */
@media (max-width: 900px) {
  .rd-how summary { min-height: 44px; }
}
.rd-mocks { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: end; margin-top: 32px; }
.rd-mock { overflow: hidden; }
.rd-inner { display: flex; flex-direction: column; height: 100%; }
.rd-mock p { margin: 0; }
.rd-bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.rd-wtitle { font: 500 13px/1.2 var(--mono); color: var(--muted); }
.rd-log { flex: 1; padding: 18px 20px 6px; font-size: 14.5px; line-height: 1.6; background: rgba(3, 4, 8, .6); }
.rd-mock .rd-user { margin: 0 0 12px; padding: 8px 12px; border-left: 2px solid var(--magenta); border-radius: 0 8px 8px 0; background: rgba(232, 121, 249, .07); color: var(--muted-hi); }
.rd-mock .rd-tool { margin: 0 0 12px; font: 13px/1.4 var(--mono); color: var(--muted); }
.rd-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--cyan); vertical-align: 1px; }
.rd-block { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 10px -10px; padding: 4px 0 4px 10px; border-radius: 0 8px 8px 0; }
.rd-body { flex: 1; min-width: 0; }
.rd-mock .rd-h { font-weight: 700; color: var(--text); }
.rd-btn { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); opacity: .8; }
.rd-btn svg { width: 14px; height: 14px; }
.rd-fill { fill: currentColor; }
.rd-playing { background: rgba(249, 115, 22, .05); box-shadow: inset 2px 0 0 var(--orange); }
.rd-playing .rd-btn { opacity: 1; color: var(--amber); border-color: var(--orange); }
.rd-w { border-radius: 3px; padding: 0 2px; margin: 0 -2px; }
.rd-now { background-color: var(--orange); color: var(--bg); }
/* Die Sprung-Pillen umbrechen als Ganzes, nie ihre Beschriftung: bei 1024 px ist die Rechner-Ansicht
   310 px breit, und mit breiteren Systemschriften als Segoe UI (unter Linux z. B. Noto Sans, gemessen
   rund 41 px zu breit) passen beide beschrifteten Pillen nicht nebeneinander. Dann rutscht die zweite
   rechtsbündig in eine zweite Reihe, statt „Neue Ausgabe“ in zwei Zeilen zu brechen. */
.rd-jumps { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 6px 16px 10px; background: rgba(3, 4, 8, .6); }
.rd-jump { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(34, 211, 238, .5);
  background: rgba(5, 6, 10, .9); color: var(--cyan-2); font: 600 12.5px/1.2 var(--sans); white-space: nowrap; box-shadow: 0 0 18px -6px rgba(34, 211, 238, .8); }
.rd-jump-read { border-color: rgba(249, 115, 22, .55); color: var(--orange); box-shadow: 0 0 18px -6px rgba(249, 115, 22, .8); }
.rd-round { width: 36px; height: 36px; padding: 0; justify-content: center; }
.rd-ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rd-input { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.rd-field { flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-ibtn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 34px; height: 34px; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--muted-hi); }
.rd-ra-stop { border-color: rgba(249, 115, 22, .55); color: var(--orange); }
.rd-sq { width: 10px; height: 10px; }
.rd-send { border-color: rgba(34, 211, 238, .5); color: var(--cyan-2); }
/* Telefon-Rahmen */
.rd-phone { border: 1px solid var(--line-strong); border-radius: 30px; padding: 10px 6px 8px; background: rgba(8, 10, 16, .9);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .03), 0 24px 60px -20px rgba(0, 0, 0, .8); }
.rd-notch { width: 70px; height: 6px; margin: 2px auto 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.rd-phone .rd-log { padding: 14px 14px 4px; font-size: 13.5px; border-radius: 18px 18px 0 0; }
.rd-phone .rd-jumps { padding: 4px 10px 8px; }
.rd-phone .rd-input { padding: 8px 6px 4px; border-top-color: transparent; }
/* Leichte Bewegung: die Markierung wandert über vier Wörter. Ohne Bewegungswunsch (und über die
   allgemeine Regel unten) bleibt sie still auf .rd-now stehen. */
@media (prefers-reduced-motion: no-preference) {
  .rd-w { animation: rd-word 3.2s steps(1, end) infinite; }
  /* negative Verzögerung: jedes Wort startet sofort, nur um seinen Platz in der Reihe versetzt */
  .rd-w2 { animation-delay: -2.4s; }
  .rd-w3 { animation-delay: -1.6s; }
  .rd-w4 { animation-delay: -.8s; }
  .rd-how summary::before { transition: transform .2s; }
}
@keyframes rd-word {
  0% { background-color: var(--orange); color: var(--bg); }
  25%, 100% { background-color: transparent; color: var(--text); }
}
/* Zweispaltig: das Telefon liegt 12 px vor dem rechten Rand des Rechners. Dort liegen nur dessen
   Rahmen (1 px) und Innenabstände (mindestens 12 px), also kein Knopf; nach unten versetzt. */
@media (min-width: 1024px) {
  .rd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 510px); gap: 32px 48px; align-items: start; }
  .rd-text { max-width: none; }
  .rd-mocks { grid-template-columns: minmax(0, 1fr) 200px; gap: 0; align-items: start; margin-top: 0; }
  .rd-phone { position: relative; z-index: 1; margin: 40px 0 0 -12px; }
}
@media (max-width: 900px) {
  .rd-mocks { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .rd-desk { width: 100%; }
  .rd-phone { width: 100%; max-width: 300px; }
}
@media (max-width: 720px) {
  .rd { margin-top: 52px; }
  .rd-log { padding: 14px 14px 4px; }
}

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
/* Nummer und Titel nebeneinander, Text darunter über die volle Breite */
.step { padding: 26px 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; }
.step h3 { margin: 0; }
.step .no { font: 700 13px/1 var(--mono); color: var(--magenta); letter-spacing: .1em; }
.step p { grid-column: 1 / -1; margin: 12px 0 0; color: var(--muted); font-size: 15px; }

.sec-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sec-list li { padding: 18px 22px; border-radius: var(--r-md); color: var(--muted); font-size: 15px; }
.sec-list strong { color: var(--text); display: block; margin-bottom: 4px; }

section.sec-cta { padding-top: 0; }

/* Download-Bereich (öffentlich) */
.dl-list { display: grid; gap: 14px; max-width: 760px; }
.dl-card { display: flex; align-items: center; gap: 20px; padding: 20px 22px; border-radius: var(--r-md); }
.dl-info { flex: 1; min-width: 0; }
.dl-info h3 { margin: 0 0 4px; font-size: 18px; }
.dl-meta { margin: 0 0 6px; color: var(--muted-hi); font-size: 14.5px; }
.dl-sha { margin: 0; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.dl-sha code { font-size: 12px; }
.dl-empty { color: var(--muted); margin: 0; }
@media (max-width: 560px) {
  .dl-card { flex-direction: column; align-items: stretch; }
}
.cta { position: relative; padding: 56px 40px; text-align: center; border-radius: 28px; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.cta p { color: var(--muted-hi); font-size: 18px; margin: 0 auto 28px; max-width: 52ch; }
.cta .actions { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: 14px; background: rgba(5, 6, 10, .6); }
.foot { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; border-radius: 8px; }
footer nav a:hover { color: var(--cyan-2); }

/* ---------- Login-Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 3, 6, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .2s ease-out; }
.modal-card {
  position: relative; width: 100%; max-width: 420px; padding: 30px 28px 24px;
  border-color: rgba(34, 211, 238, .35);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, .15), 0 0 40px -8px rgba(34, 211, 238, .45), 0 30px 80px rgba(0, 0, 0, .7);
  animation: pop .22s ease-out;
}
.modal-card h2 { font-size: 26px; margin: 0 0 6px; }
.modal-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid transparent; background: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.modal-x:hover { color: var(--text); border-color: var(--line-strong); }
/* × als SVG statt Schriftzeichen (TICKET#223): so groß wie die Schrift, Farbe über currentColor */
.modal-x > .ico { display: block; width: 1em; height: 1em; margin: 0 auto; }
/* Mindesthöhe = Höhe einer Zeile: das Formular springt auch dann nicht, wenn ein Text länger wird */
.smtp-state { min-height: 35px; margin: 0 0 14px; }
.smtp-state .pill { padding: 6px 14px; font-size: 13px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.login-step { display: flex; flex-direction: column; gap: 10px; }
.login-step p { margin: 0 0 6px; font-size: 15px; }
.login-step label { font-size: 14px; font-weight: 600; color: var(--muted-hi); }
.login-step input {
  min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(3, 4, 8, .6); color: var(--text); font: 16px/1.3 var(--sans);
}
.login-step input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .2); }
.login-step .code-input { font: 600 24px/1.2 var(--mono); letter-spacing: .4em; text-align: center; }
.login-step .btn { margin-top: 6px; }
.login-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.login-msg { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; color: var(--muted-hi); }
.login-msg.err { color: var(--danger); }
.login-msg.ok { color: var(--cyan-2); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  /* Umbruch als Absicherung: Passen Logo und Knöpfe nicht in die Zeile (ohne den Seitenrand von
     16 px), rutschen die Knöpfe rechtsbündig (margin-left: auto) in eine zweite Reihe, statt aus dem
     Bild zu ragen. Mit DejaVu Sans (unter Linux häufig system-ui) ragte „Login“ bei 375 px trotz der
     schmaleren Polsterung unten gemessen 22 px hinaus, mit Arial-Maßen (Liberation Sans) 3 px; jede
     Kürzung von Abständen bleibt von der Schrift abhängig, der Umbruch nicht. Mit Segoe UI passt die
     Zeile seit der schmaleren Polsterung mit Reserve, dort ändert sich nichts: 44 px Knopf plus
     2 × 8 px Polsterung sind genau die 60 px Mindesthöhe. */
  .bar { min-height: 60px; gap: 10px; flex-wrap: wrap; row-gap: 4px; padding-top: 8px; padding-bottom: 8px; }
  /* Logo, „Einrichtung“ und „Login“ sollen bei 375 px möglichst in eine Zeile passen. Mit Segoe UI ging das
     knapp auf; mit breiteren Systemschriften (unter Linux Noto Sans) ragte „Login“ gemessen 21 px
     aus dem Bild. Schmalere Polsterung (14 statt 20 px) und Lücke (8 statt 10 px) geben 26 px
     zurück; die Knöpfe bleiben 44 px hoch (.btn min-height). */
  .bar-actions { gap: 8px; }
  .bar-actions .btn { padding-left: 14px; padding-right: 14px; }
  .nav { display: none; }
  .hero { padding: 48px 0 32px; }
  /* Sprungziele: Bricht die Kopfzeile oben zweireihig um, ist sie 8 + 44 + 4 + 44 + 8 px plus 1 px
     Rand = 109 px hoch – mehr als die 80 px scroll-margin-top vom Rechner. 120 px halten den
     Abschnittsanfang auch dann unter der Kopfzeile frei; am Rechner bleibt es bei 80 px. */
  section.sec { padding: 60px 0; scroll-margin-top: 120px; }
  .steps, .why, .sec-list { grid-template-columns: 1fr; }
  .cta { padding: 40px 20px; }
  .actions .btn { flex: 1 1 100%; }
  .term-body { font-size: 13px; padding: 14px; }
  .blob { filter: blur(30px); opacity: .28; }
  .blob.b1 { width: 90vw; height: 90vw; left: -30vw; top: -20vw; }
  .blob.b2 { width: 80vw; height: 80vw; right: -30vw; }
  .blob.b3 { display: none; }
  .glass { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .modal-card { padding: 26px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .glow:hover, .glow:focus-within, .btn-primary:hover { transform: none; }
}
