:root{color-scheme:dark;--bg:#0b1320;--panel:#141f30;--line:#2d3e53;--text:#eef4fb;--muted:#93a5bb;--green:#39d6a1;--red:#ff7180;--yellow:#ffd264;--blue:#7ebaf9;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#0b1320;color:var(--text)}body{background:radial-gradient(ellipse 900px 480px at 50% -240px,#274661 0%,transparent 100%),var(--bg)}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}input{color:inherit}a{color:#add5ff}[hidden]{display:none!important}.layout{max-width:1070px;margin:0 auto;padding:26px 22px 65px}.driver-layout{max-width:490px}.site-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.brand{display:flex;align-items:center;gap:11px}.brand-icon{width:43px;height:43px;display:grid;place-items:center;background:#163c4b;color:#8af6da;border:1px solid #2c6970;border-radius:12px;font-size:.86rem;font-weight:900;letter-spacing:-.05em}.brand strong{display:block;font-size:1.08rem;font-weight:800}.brand small{display:block;font-size:.77rem;color:var(--muted);margin-top:2px}.tag{color:#d7c08d;background:#352b17;border:1px solid #695532;font-size:.66rem;font-weight:800;letter-spacing:.07em;border-radius:8px;padding:7px 9px;white-space:nowrap}.test-banner{font-size:.82rem;color:#e4c68e;border-left:3px solid #c6984b;background:#302717;padding:10px 13px;border-radius:0 8px 8px 0;margin-bottom:22px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:20px;margin-bottom:16px}.panel h1,.panel h2{margin:0}.panel h2{font-size:1rem;font-weight:780}.login-panel{max-width:460px;margin:50px auto}.login-panel h1{font-size:1.5rem;margin-bottom:18px}.login-form{display:grid;gap:10px}.field{display:block;width:100%;min-height:50px;padding:12px 14px;border-radius:10px;background:#0e1a29;border:1px solid #40536b;outline:0}.field:focus{border-color:#69a8f0}.button{font-weight:750;min-height:43px;border:0;border-radius:10px;padding:11px 15px;color:var(--text);background:#34445a}.button:focus-visible,.mode-button:focus-visible{outline:3px solid #7bbdff;outline-offset:3px}.button-primary{color:#09261e;background:var(--green);font-size:1.04rem}.button-secondary{background:#314459}.button-alert{background:#803443;color:#fff}.button.subtle{background:#27374b;border:1px solid #3e5065;font-size:.82rem}.button.small-button{font-size:.79rem;min-height:36px;padding:8px 11px}.full-button{width:100%}.inline-error{font-size:.84rem;color:#ff9aa5;margin:12px 0 0}.inline-error.ok{color:#73e2b3}.note{color:var(--muted);font-size:.73rem}.status-main{border:1px solid #47566a;background:linear-gradient(110deg,#26374d,#1b2a3b);border-radius:17px;padding:26px 29px;display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:12px}.status-main[data-mode=open]{background:linear-gradient(110deg,#0d4838,#163328);border-color:#248a66}.status-main[data-mode=closed]{background:linear-gradient(110deg,#5c2330,#38222b);border-color:#ac505a}.status-main[data-mode=radio]{background:linear-gradient(110deg,#253348,#172438)}.overline{font-size:.72rem;color:#c1cbd8;letter-spacing:.1em;font-weight:800}.status-main h1{font-size:2.05rem;line-height:1.15;margin:9px 0 12px;letter-spacing:-.025em}.connection{color:#b8c7d9;font-size:.78rem}.connection.bad{color:#ffb8b8}.status-orb{flex:none;width:63px;height:63px;border-radius:50%;background:#7d8ba0;box-shadow:inset 0 -5px 13px #071a2877}.status-main[data-mode=open] .status-orb{background:var(--green);box-shadow:0 0 37px #2de4ab55}.status-main[data-mode=closed] .status-orb{background:var(--red);box-shadow:0 0 37px #fc5e6d55}.mode-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}.mode-button{height:69px;font-size:1.1rem;font-weight:900;color:#e1e9f1;background:#1d2d3f;border:2px solid #314459;border-radius:13px;display:flex;align-items:center;justify-content:center;gap:10px}.mode-button.selected{border-color:#e5edf7;box-shadow:0 0 0 2px #e5edf72a}.mode-dot{width:13px;height:13px;border-radius:100%;background:#9aa9bc}.green-button .mode-dot{background:var(--green)}.red-button .mode-dot{background:var(--red)}.radio-button .mode-dot{background:#a4b2c4}.mode-button.green-button.selected{background:#124b39}.mode-button.red-button.selected{background:#62303b}.mode-button.radio-button.selected{background:#354458}.attention-panel{background:#342c1c;border:1px solid #d4a752;border-radius:14px;padding:17px 18px;margin-bottom:16px}.attention-panel.problem{background:#4b232e;border-color:#ee7f8a}.attention-title{display:flex;align-items:center;gap:13px}.attention-title>span{display:grid;place-items:center;flex:0 0 39px;height:39px;border-radius:10px;background:#e3bd6e;color:#33270c;font-size:1.45rem;font-weight:900}.attention-panel.problem .attention-title>span{background:#ff7c8e;color:#3b0b17}.attention-title strong{display:block;font-size:1rem}.attention-title small{display:block;color:#f1d8bd;margin-top:3px;font-size:.82rem}.alarm-controls{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.alarm-controls .button{min-height:38px}.alarm-meta{display:block;margin-top:10px;font-size:.75rem;color:#e6c888}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-bottom:15px}.stat{border:1px solid var(--line);border-radius:12px;background:#18273a;padding:14px 17px}.stat span{display:block;font-size:.66rem;letter-spacing:.08em;font-weight:800;color:var(--muted)}.stat strong{font-size:1.5rem;display:block;margin-top:5px;font-variant-numeric:tabular-nums}.stat strong.warn{color:#ffb68e}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.42fr) minmax(270px,1fr);gap:15px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.count-number,.small-counter{color:var(--muted);font-weight:700;font-size:.84rem}.item-list{list-style:none;margin:0;padding:0}.item-list li{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #2b3a4d;padding:12px 0;min-width:0}.item-list li:first-child{border-top:0}.item-list strong{font-size:.9rem}.item-list small{font-size:.75rem;color:var(--muted);display:block;margin-top:4px}.item-list .placeholder{font-size:.89rem;color:var(--muted)}.ride-time{font-size:1.7rem;font-weight:850;color:#83e8c5;font-variant-numeric:tabular-nums}.ride-time.urgent{color:#ffc171}.small-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.small-actions .button{min-height:34px;padding:7px 8px;font-size:.72rem}.small-actions .delete{color:#ffb0b6}.audio-panel{padding-bottom:15px}.sound-toggle.active{background:#174439;color:#96f1cd;border:1px solid #36836f}.sound-row{display:flex;align-items:center;gap:10px;margin:10px 0;color:#b3c1d2;font-size:.78rem}.sound-row input[type=range]{min-width:45px;width:100%;flex:1;accent-color:#57d9af}.sound-row output{font-variant-numeric:tabular-nums;min-width:38px;text-align:right}.audio-panel .note{display:block}.drawer{padding:0}.drawer summary{cursor:pointer;list-style:none;padding:17px 19px;display:flex;align-items:center;justify-content:space-between;font-weight:750}.drawer summary::-webkit-details-marker{display:none}.drawer summary .chevron{color:#a1b5c9;font-size:1.15rem}.drawer[open] summary .chevron{transform:rotate(180deg)}.drawer-body{padding:0 19px 19px}.drawer>.item-list{padding:0 19px 11px}.code-line{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:5px 0 13px}.code-line strong{font-size:1.35rem;letter-spacing:.07em}.qrcode{display:flex;justify-content:center;background:white;border-radius:11px;padding:13px;margin:0 auto 10px;width:max-content;max-width:100%;min-width:216px;min-height:216px;align-items:center;color:#18202a}.qrcode svg{display:block;width:190px;height:190px;image-rendering:pixelated}.registration-link{display:block;font-size:.82rem;text-align:center;margin-bottom:15px}.logout-button{background:transparent;color:#8da4bc;border:none;padding:9px 5px;font-size:.79rem}.warning-pip{width:10px;height:10px;border-radius:50%;background:#ff7d89}.event-list li{font-size:.76rem;color:#b4c3d5;line-height:1.3}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
/* Fahreransicht */
.drive-card{background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:18px;margin-bottom:8px}.route-label{display:block;text-align:center;color:#9eafc2;font-size:.76rem;font-weight:800;letter-spacing:.12em;margin-bottom:14px}.drive-signal{border-radius:15px;border:2px solid #536075;background:#243347;text-align:center;min-height:298px;padding:29px 14px 22px;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:10px}.drive-signal.is-green{background:#11513d;border-color:#39b58b}.drive-signal.is-red{background:#682b38;border-color:#f1838f}.drive-signal.is-yellow{background:#8a5c10;border-color:#ffcf65}.drive-signal.is-offline{background:#273548;border-color:#4b6079}.drive-light{width:91px;height:91px;border-radius:50%;background:#8ca0b8;box-shadow:inset 0 0 18px #0006;margin-bottom:5px}.drive-signal.is-green .drive-light{background:#47e5aa;box-shadow:0 0 40px #48e5a46b}.drive-signal.is-red .drive-light{background:#ff7889;box-shadow:0 0 35px #fc607080}.drive-signal.is-yellow .drive-light{background:#ffe184;box-shadow:0 0 35px #ffdb5980}.drive-signal h1{font-size:1.72rem;line-height:1.1;margin:3px 0 0}.drive-signal p{margin:0;max-width:340px;color:#f1e9d8;font-size:.87rem;line-height:1.43}.drive-actions{display:grid;gap:9px;margin-top:15px}.drive-actions .button{min-height:60px;font-size:1.08rem}.countdown-block{text-align:center;margin-top:15px}.countdown{display:block;font-size:4.5rem;letter-spacing:-.055em;line-height:1;font-variant-numeric:tabular-nums}.countdown-block small{display:block;color:var(--muted);margin-top:5px}.trip-caption{display:block;text-align:center;color:var(--muted);margin:13px 0 0;font-size:.76rem}.device-label{display:block;text-align:center;color:#718ba7;font-size:.7rem}.driver-footer{text-align:center;margin-top:17px;color:#b1c4d6;font-size:.78rem}.driver-footer small{display:block;color:#8298ae;margin-top:7px}.driver-page #registration h1{font-size:1.45rem;margin-bottom:18px}.driver-page #regForm{display:grid;gap:11px}.driver-page.driver-alert::before{content:"";position:fixed;inset:0;pointer-events:none;border:9px solid #ffdf77;box-shadow:inset 0 0 55px #ffd94c54;z-index:2;animation:driverFlash 1s linear infinite}.driver-page.driver-alert .drive-signal.is-yellow{animation:yellowBg 1s ease infinite alternate}@keyframes driverFlash{50%{opacity:.18}}@keyframes yellowBg{50%{background:#b07a20}}
@media(max-width:700px){.dashboard-grid{grid-template-columns:1fr}.layout{padding:18px 14px 40px}.status-main{padding:19px 18px}.status-main h1{font-size:1.6rem}.status-orb{width:48px;height:48px}.mode-button{height:61px;font-size:.95rem}.stat{padding:12px}.stat strong{font-size:1.23rem}}
@media(max-width:400px){.code-line strong{font-size:1.13rem}.drive-card{padding:13px}.drive-signal{min-height:265px}.mode-button{gap:4px}.stat span{font-size:.58rem}}
@media(prefers-reduced-motion:reduce){.driver-page.driver-alert::before,.driver-page.driver-alert .drive-signal.is-yellow{animation:none}}
/* Aktiver Status bleibt klar sichtbar, auch wenn die Taste nicht erneut wählbar ist. */
.mode-button.selected:disabled{opacity:1;cursor:default}
/* v0.4: Stoerung direkt im Alarmfeld klaeren, PDF-Export im Einrichtungsbereich */
.resolve-controls{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.resolved-button{background:#eaf4ee;color:#17392a;font-size:.89rem;border:1px solid #bedeca;min-height:40px;padding:10px 16px}
.resolved-button:hover{background:#fff}
#pdfRegistrationBtn{margin:0 0 8px;font-size:.95rem;min-height:45px}
@media(max-width:720px){.resolve-controls{width:100%}.resolved-button{flex:1}}
