:root{color-scheme:light;--bg:#f4f7fa;--card:#fff;--text:#2b3a48;--heading:#0d1f35;--blue:#1f70b7;--on-blue:#fff;--border:#dce4ea;--line:#a9b8c6;--blue-hover:#1a609f;--muted:#52606c;--err-bg:#fdecea;--err-fg:#a5342a;--ok-bg:#e8f6ee;--ok-fg:#237a49}
/* Dunkel: per data-theme (theme.js, auch von der Website uebernommen), ohne JavaScript nach der Systemeinstellung. */
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){color-scheme:dark;--bg:#0b141f;--card:#101a26;--text:#c4d1dd;--heading:#eaf2f9;--blue:#4d9fe0;--on-blue:#06121e;--border:#25364c;--line:#41566f;--blue-hover:#78b6ec;--muted:#93a5b5;--err-bg:#3a1b18;--err-fg:#f0a49c;--ok-bg:#11301f;--ok-fg:#7fd9a6}}
:root[data-theme="dark"]{color-scheme:dark;--bg:#0b141f;--card:#101a26;--text:#c4d1dd;--heading:#eaf2f9;--blue:#4d9fe0;--on-blue:#06121e;--border:#25364c;--line:#41566f;--blue-hover:#78b6ec;--muted:#93a5b5;--err-bg:#3a1b18;--err-fg:#f0a49c;--ok-bg:#11301f;--ok-fg:#7fd9a6}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;align-items:center;background:var(--bg);color:var(--text);font:16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
a{color:var(--blue)}
::placeholder{color:var(--muted);opacity:1}
.top{width:100%;max-width:560px;display:flex;justify-content:space-between;align-items:center;padding:24px 16px 8px}
.brand{display:flex;align-items:center;gap:10px;color:var(--heading);font-weight:700;text-decoration:none}
.brand img{display:block}
.brand .logo-dark{display:none}
:root[data-theme="dark"] .brand .logo-light{display:none}
:root[data-theme="dark"] .brand .logo-dark{display:block}
@media (prefers-color-scheme:dark){:root:not([data-theme]) .brand .logo-light{display:none}:root:not([data-theme]) .brand .logo-dark{display:block}}
.lang{font-size:.9rem}
.card{width:calc(100% - 32px);max-width:528px;margin:16px;background:var(--card);border:1px solid var(--border);border-radius:16px;padding:28px}
h1{color:var(--heading);font-size:1.5rem;line-height:1.25;margin:0 0 16px}
.form{display:grid;gap:14px;grid-template-columns:minmax(0,1fr)}
.form input:not([type=checkbox]):not([type=radio]){width:100%;min-width:0}   /* Handy (22.10.2026): das Code-Feld in grosser Schrift hat die Karte sonst nach rechts gesprengt */
.form label{display:grid;gap:6px;font-weight:600;color:var(--heading)}
input{font:inherit;padding:11px 12px;border:1px solid var(--border);border-radius:10px;background:var(--card);color:var(--text)}
input:focus{outline:3px solid color-mix(in srgb,var(--blue) 35%,transparent);border-color:var(--blue)}
/* Knoepfe wie im Kundenbereich: Hauptknopf flaechig blau ohne Schatten, Zweitknopf weiss mit Umrandung, beide rund */
button{font:inherit;font-weight:700;padding:12px 20px;border:1px solid var(--blue);border-radius:999px;background:var(--blue);color:var(--on-blue);cursor:pointer}
.form>button:hover,.choices button:hover{background:var(--blue-hover);border-color:var(--blue-hover)}
button:focus-visible{outline:3px solid var(--heading);outline-offset:2px}
.muted{color:var(--muted);font-size:.9rem}
.msg{padding:12px 14px;border-radius:10px;margin:0 0 16px}
.msg.err{background:var(--err-bg);color:var(--err-fg)}
.msg.ok{background:var(--ok-bg);color:var(--ok-fg)}
.foot{display:flex;gap:18px;padding:8px 16px 32px;font-size:.85rem}
.foot a{color:var(--muted)}
input.code{font:600 1.4rem/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.2em;text-align:center}
.form.inline{margin-top:12px}
button.link,button.link:hover{background:none;border:0;color:var(--blue);padding:0;font-weight:600;text-decoration:underline}
.facts{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;margin:0 0 16px}
.facts dt{font-weight:600;color:var(--heading)}
.facts dd{margin:0}
.facts dd.pre{white-space:pre-wrap}
input.wide{width:100%;margin:4px 0 0}
.choices{display:grid;gap:12px;margin:16px 0}
.choices button{width:100%}
.small{font-size:.8rem}
.subnav{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;margin:-8px 0 20px;padding-bottom:12px;border-bottom:1px solid var(--border)}
.subnav a[aria-current="page"]{font-weight:700;text-decoration:none;color:var(--heading)}
.subnav form{margin-left:auto}
.release{border-top:1px solid var(--border);padding:16px 0}
.release h2{font-size:1.1rem;margin:0 0 4px;color:var(--heading)}
.release .notes{white-space:pre-line}
.release .changes h4{margin:.6rem 0 .2rem;font-size:.95rem}
.release .changes .notes{margin-top:0}
.release details.hints{margin:.6rem 0;font-size:.92rem}
.release details.hints>summary{cursor:pointer;font-weight:700}
.release details.hints .hint{margin:.5rem 0 0}
.sha code{font:.8rem/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;word-break:break-all}
section{margin:24px 0 0}
section h2{font-size:1.1rem;color:var(--heading);margin:0 0 10px}
.list{list-style:none;margin:0;padding:0}
.list li{display:grid;gap:2px;padding:10px 0;border-top:1px solid var(--border)}
.badge{justify-self:start;font-size:.75rem;font-weight:700;padding:2px 8px;border-radius:999px;background:var(--ok-bg);color:var(--ok-fg)}
.badge.warn{background:var(--err-bg);color:var(--err-fg)}
form.inline{display:inline}
button.secondary,button.danger{background:var(--card);border-color:var(--line);color:var(--heading)}
button.secondary:hover,button.danger:hover{background:var(--card);border-color:var(--blue);color:var(--blue)}
/* Auge in verdeckten Feldern (reveal.js) */
.pw-wrap{position:relative;display:block}
.pw-wrap input{width:100%;padding-right:46px}
.reveal-btn{position:absolute;right:4px;top:50%;transform:translateY(-50%);background:none;border:0;padding:6px 8px;color:var(--muted);line-height:0;border-radius:8px;cursor:pointer;min-height:0;box-shadow:none}
.reveal-btn:hover,.reveal-btn[aria-pressed=true]{color:var(--blue);background:none}
.reveal-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
/* KI-Assistent: eigene Datei assistant.css (Chat-Ansicht seit Portal Phase 1, 12.10.2026) */
/* Anmeldung: Schrittanzeige (10.10.2026) – 1 Passwort, 2 Bestaetigen, 3 Code aus der E-Mail */
.steps{display:flex;gap:8px;list-style:none;padding:0;margin:0 0 20px;font-size:.85rem;color:var(--muted)}
.steps li{display:flex;align-items:center;gap:6px;flex:1 1 0;min-width:0;padding-bottom:8px;border-bottom:3px solid var(--border)}
.steps .num{display:grid;place-items:center;width:22px;height:22px;flex:0 0 22px;border-radius:50%;border:2px solid currentColor;font-size:.75rem;font-weight:700}
.steps .done{color:var(--ok-fg);border-bottom-color:var(--ok-fg)}
.steps .now{color:var(--blue);font-weight:700;border-bottom-color:var(--blue)}
/* Seiten vor der Anmeldung (15.10.2026): Hintergrund wie oben auf der Website-Seite „BOS-UAV-App“ – Navy, Hoehenlinien,
   Schimmer und leuchtende Flugspur. Die Karte bleibt unveraendert; Kopf und Fuss hell, weil der Grund in beiden Themen
   dunkel ist. Die Flugspur zeichnet sich einmal beim Laden (kein Dauerlauf, keine Pause noetig) und ist ohne Animation
   gleich ganz zu sehen. */
body.auth-bg{background:radial-gradient(60% 70% at 78% 40%,rgba(31,111,235,.24),rgba(31,111,235,0) 70%),url(topo.svg) 50% 50%/cover no-repeat,linear-gradient(160deg,#071221 0%,#0b1d33 58%,#06101c 100%);background-attachment:fixed}
.auth-bg .brand{color:#eaf2f9}
.auth-bg .brand .logo-light{display:none}
.auth-bg .brand .logo-dark{display:block}
.auth-bg .lang,.auth-bg .foot a{color:#cfe3f5}
.auth-flight{position:fixed;inset:0;z-index:-1;width:100%;height:100%;pointer-events:none;filter:drop-shadow(0 0 4px rgba(90,180,255,1)) drop-shadow(0 0 16px rgba(58,160,255,.6))}
.auth-flight path{fill:none;stroke:url(#af-grad);stroke-width:3;stroke-linecap:round;stroke-dasharray:1900;stroke-dashoffset:0;animation:af-draw 2.6s cubic-bezier(.4,.1,.2,1) .3s backwards}
.auth-flight circle{fill:#3aa0ff;animation:af-wp .3s ease backwards}
.auth-flight circle:nth-of-type(1){animation-delay:1.1s}
.auth-flight circle:nth-of-type(2){animation-delay:1.9s}
.auth-flight circle:nth-of-type(3){animation-delay:2.7s}
@keyframes af-draw{from{stroke-dashoffset:1900}to{stroke-dashoffset:0}}
@keyframes af-wp{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.auth-flight path,.auth-flight circle{animation:none}}

/* Topographie-Design (2026-10-22): the sign-in pages get the animated contour terrain of the new homepage (topo-bg.js
   from topo-src/) instead of topo.svg, which stays as the fallback without WebGL 2. The flight line stays on top; the
   button bottom left stops the motion (the assistant sits bottom right). */
body.auth-bg{background:radial-gradient(60% 70% at 78% 40%,rgba(31,111,235,.24),rgba(31,111,235,0) 70%),linear-gradient(160deg,#071221 0%,#0b1d33 58%,#06101c 100%)}
.topo-layer{position:fixed;inset:0;z-index:-2;pointer-events:none}
.topo-layer:not(.is-live){background:url(topo.svg) 50% 50%/cover no-repeat}
.topo-layer canvas{display:block;width:100%;height:100%}
.topo-dim{display:none}
.topo-toggle{position:fixed;left:16px;bottom:16px;z-index:5;width:34px;height:34px;display:grid;place-items:center;padding:0;border-radius:50%;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.08);color:#fff;cursor:pointer}
.topo-toggle:hover{background:rgba(255,255,255,.16)}
.topo-toggle:focus-visible{outline:2px solid #7ec2f2;outline-offset:2px}
.topo-toggle svg{width:14px;height:14px;fill:currentColor}
/* Anmeldecode als acht Ziffernfelder (08.11.2026, code-fields.js): aktives Feld leuchtet, Ziffern springen kurz an, beim Pruefen
   laeuft eine Welle durch die Felder, nach falschem Code schuettelt sich die Reihe */
.otp{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:6px}
.otp .sep{width:12px;height:2px;border-radius:2px;background:var(--line);flex:0 0 12px}
.otp input{width:46px;min-width:0;height:58px;padding:0;text-align:center;font:600 1.5rem ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--heading);
  caret-color:var(--blue);border:1.5px solid var(--border);border-radius:14px;transition:border-color .18s,box-shadow .18s}
.form .otp input{width:46px}
.otp input:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 4px color-mix(in srgb,var(--blue) 22%,transparent),0 0 22px color-mix(in srgb,var(--blue) 35%,transparent)}
.otp input.pop{animation:otp-pop .22s ease-out}
@keyframes otp-pop{50%{transform:scale(1.12)}}
.otp.checking input{border-color:var(--blue);animation:otp-wave 1s ease-in-out infinite}
.otp.checking input:nth-child(2){animation-delay:.06s}.otp.checking input:nth-child(3){animation-delay:.12s}.otp.checking input:nth-child(4){animation-delay:.18s}
.otp.checking input:nth-child(6){animation-delay:.24s}.otp.checking input:nth-child(7){animation-delay:.3s}.otp.checking input:nth-child(8){animation-delay:.36s}.otp.checking input:nth-child(9){animation-delay:.42s}
@keyframes otp-wave{50%{transform:translateY(-6px);box-shadow:0 8px 20px color-mix(in srgb,var(--blue) 35%,transparent)}}
.otp.err{animation:otp-shake .4s}
.otp.err input{border-color:var(--err-fg)}
@keyframes otp-shake{20%,60%{transform:translateX(-8px)}40%,80%{transform:translateX(8px)}}
.code-state{margin:0;text-align:center}
.code-tip{margin:0}
@media(max-width:480px){.otp{gap:4px}.otp input,.form .otp input{width:34px;height:48px;font-size:1.2rem;border-radius:11px}.otp .sep{width:8px;flex-basis:8px}}
@media(prefers-reduced-motion:reduce){.otp input.pop,.otp.checking input,.otp.err{animation:none}}
