:root{font-family:Arial,"Helvetica Neue",sans-serif;color-scheme:dark;font-synthesis:none}*{box-sizing:border-box}html,body{height:100%;margin:0}body{background:#07101b;color:#eef4fa}.outer{height:100vh;min-height:330px;display:flex;align-items:center;justify-content:center;overflow:hidden}.screen-wrap{width:960px;height:480px;flex:none;position:relative}.screen{width:960px;height:480px;position:absolute;left:0;top:0;overflow:hidden;border-radius:12px;background:radial-gradient(ellipse at 28% 46%,rgba(58,123,173,.18),transparent 52%),radial-gradient(ellipse at 88% 10%,rgba(87,114,193,.11),transparent 55%),linear-gradient(130deg,#182736 0%,#101a2a 60%,#121b2b 100%);box-shadow:0 25px 90px #0007;transform-origin:top left;transition:background .5s ease,filter .4s ease;color:#ecf2f6}.screen:after{content:"";pointer-events:none;position:absolute;inset:0;border:1px solid #ffffff1c;border-radius:12px}.grain{pointer-events:none;position:absolute;inset:0;background:linear-gradient(90deg,#fff0 50%,#0001 51%);background-size:4px 4px;opacity:.14}.screen.night{background:radial-gradient(ellipse at 34% 52%,rgba(51,76,94,.08),transparent 53%),#060b11;color:#b9c9d5}.screen.night .clock{color:#ccdce6;text-shadow:none}.screen.night .brand-mark,.screen.night .news-label{background:#384754;color:#dce7ec}.screen.night .weather-symbol{filter:grayscale(1)}.screen.night .market-row,.screen.night .compass-teaser,.screen.night .news-strip,.screen.night .settings-card,.screen.night .big-market-item,.screen.night .depot-summary,.screen.night .signals{background:#121922;border-color:#26303b}.screen.night .bottom-nav{background:#080d13}.screen.night .brand,.screen.night .topbar{opacity:.78}.topbar{position:absolute;left:28px;right:28px;top:16px;height:44px;display:flex;align-items:center;justify-content:space-between;z-index:2}.brand{display:flex;gap:10px;align-items:center;text-transform:uppercase;font-size:13px;line-height:14px;letter-spacing:1px;font-weight:800;color:#f5fbff}.brand span{color:#80b9ce}.brand small{display:block;font-size:8px;color:#7795a9;letter-spacing:2.1px;margin-top:4px}.brand-mark{background:#89cad1;color:#173844;border-radius:10px;font-size:24px;width:36px;height:36px;display:grid;place-items:center}.topright{display:flex;align-items:center;gap:15px;font-size:10px;color:#aebdce;letter-spacing:1.1px;font-weight:700}.network-status{display:flex;align-items:center;gap:7px}.dot{width:6px;height:6px;border-radius:50%;background:#c9a16a;display:block}.dot.good{background:#8bcdb4}.top-sep{height:17px;width:1px;background:#ffffff26}.pages{position:absolute;left:28px;right:28px;top:73px;bottom:67px}.page{height:100%;display:none;position:relative}.page.active{display:block}.home-left{position:absolute;left:0;top:15px;width:570px}.overline{letter-spacing:2.4px;color:#93bbcf;font-weight:700;font-size:12px}.clock{font-size:150px;letter-spacing:-10px;line-height:1.13;font-weight:300;color:#f4f8fa;font-variant-numeric:tabular-nums;font-family:"Helvetica Neue",Arial,sans-serif;margin-left:-9px}.clock-colon{color:#87c7cf;animation:blink 2s step-end infinite}@keyframes blink{50%{opacity:.65}}.weather-line{display:flex;align-items:center;gap:13px;margin-top:0}.weather-symbol{font-size:46px;color:#ffcc7f;line-height:1}.temperature{font-size:38px;letter-spacing:-1.5px;font-weight:500}.weather-copy{display:flex;flex-direction:column;gap:5px;padding-left:8px;border-left:1px solid #ffffff36}.weather-copy strong{font-size:13px}.weather-copy span{font-size:11px;color:#8faabc}.time-meta{display:flex;align-items:center;gap:13px;margin-top:19px;font-size:10px;color:#93a7b7}.mini-pill{border:1px solid #88bbc94a;background:#3d728334;border-radius:30px;padding:6px 10px;color:#a4d3d8;font-size:9px;letter-spacing:1px;font-weight:700}.home-right{position:absolute;right:0;top:10px;width:306px}.panel-caption{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#b0c9d7;letter-spacing:1.4px;font-weight:800;padding:0 2px 9px}.panel-caption span+span{font-size:9px;font-weight:500;letter-spacing:0;color:#8397a8}.market-mini{display:flex;flex-direction:column;gap:9px}.market-row{height:56px;border:1px solid #b4cbd526;border-radius:11px;background:#ffffff0a;display:flex;align-items:center;justify-content:space-between;padding:0 17px}.market-row strong{font-size:14px;letter-spacing:.4px}.quote{display:flex;flex-direction:column;align-items:end;gap:2px}.quote .value{font-size:16px;letter-spacing:.3px;font-weight:700}.delta{font-size:10px}.up{color:#90dbc2}.down{color:#f0a59c}.unavailable{font-size:12px;color:#8497a7}.compass-teaser{margin-top:12px;border:1px solid #b4cbd526;background:linear-gradient(110deg,#83b7bf1e,#ffffff09);height:65px;border-radius:11px;display:flex;align-items:center;justify-content:space-between;padding:12px 15px}.compass-teaser>div{display:flex;flex-direction:column;gap:7px}.soft-label{font-size:9px;color:#8ebcc6;letter-spacing:1.7px;font-weight:800}.compass-teaser strong{font-size:12px;max-width:235px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compass-teaser button{border:1px solid #9ecbd64f;background:#adcbd31b;border-radius:50%;width:27px;height:27px;color:#b7e1e9;font-size:16px;cursor:pointer}.news-strip{position:absolute;left:0;right:0;bottom:2px;height:44px;border-radius:9px;background:#ffffff0c;border:1px solid #ffffff18;display:flex;align-items:center;gap:15px;padding:0 16px;font-size:12px}.news-label{background:#81bdc7;border-radius:4px;color:#183440;font-size:9px;font-weight:900;letter-spacing:1px;padding:6px 9px}.news-title{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#e5edf3}.news-source{font-size:9px;letter-spacing:.3px;color:#889fae}.bottom-nav{position:absolute;bottom:0;left:0;right:0;height:58px;background:#0b14209c;border-top:1px solid #b8cad423;display:flex;justify-content:center;gap:7px;z-index:2;padding:6px}.nav-btn{cursor:pointer;background:transparent;border:0;border-radius:8px;color:#90a5b5;width:105px;display:flex;gap:7px;flex-direction:row;align-items:center;justify-content:center;font-size:12px;font-weight:700}.nav-btn span{font-size:18px}.nav-btn.active{background:#8bbac322;color:#b3e2e9}.nav-btn:hover,.mode-btn:hover{background:#ffffff15}.inner-heading{display:flex;justify-content:space-between;align-items:end;margin:2px 0 17px}.inner-heading small{display:block;font-size:10px;letter-spacing:2px;color:#7ebbc6;font-weight:800;margin-bottom:7px}.inner-heading h1{font-size:26px;font-weight:500;margin:0;letter-spacing:-.6px}.subtle{color:#8198a8;font-size:11px}.big-market{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.big-market-item{height:205px;padding:20px;background:#ffffff0b;border:1px solid #ffffff1b;border-radius:12px;display:flex;flex-direction:column;justify-content:space-between}.big-market-item strong{font-size:15px}.big-market-item .big-value{font-size:33px;font-weight:600;letter-spacing:-1px}.big-market-item .big-change{font-size:18px}.big-market-item .asof{font-size:10px;color:#8fa8b7}.empty-panel{grid-column:1/-1;padding:24px;background:#ffffff0b;border:1px solid #ffffff1b;border-radius:12px;color:#a2b7c4;font-size:14px}.page-footnote{position:absolute;bottom:8px;left:1px;color:#7b94a4;font-size:10px}.depot-body{display:grid;grid-template-columns:310px 1fr;gap:15px}.depot-summary,.signals{height:225px;background:#ffffff0b;border:1px solid #ffffff1b;border-radius:12px;padding:21px}.depot-summary small{letter-spacing:2px;color:#8fb8c6}.depot-summary>div{font-size:33px;letter-spacing:-1px;margin-top:38px}.depot-summary>span{display:block;color:#8aa4b6;font-size:11px;margin-top:14px}.signals .panel-caption{padding-bottom:18px}.signal-list{max-height:165px;overflow:auto}.empty-text{font-size:12px;line-height:1.7;color:#99b1be}.signal{display:flex;gap:10px;padding:9px 0;border-bottom:1px solid #ffffff1a}.signal-tag{color:#8bcfd4;font-size:10px;min-width:94px;font-weight:800}.signal-desc strong{font-size:12px;display:block;margin-bottom:4px}.signal-desc span{font-size:10px;color:#99b0bf}.news-list{height:245px;overflow:auto;padding-right:7px}.news-article{display:flex;align-items:center;text-decoration:none;color:inherit;border:1px solid #ffffff1a;background:#ffffff09;border-radius:10px;padding:13px 17px;margin-bottom:9px;gap:16px}.news-article .article-index{font-size:12px;color:#7caebf}.news-article .article-title{font-size:13px;line-height:1.4;flex:1}.news-article .article-open{color:#8bb9c5}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.settings-card{height:220px;border-radius:12px;border:1px solid #ffffff22;background:#ffffff0b;padding:17px}.setting-title{font-size:17px}.settings-card p{font-size:11px;line-height:1.5;color:#96adbd;margin:10px 0 16px}.segments{display:flex;gap:6px}.mode-btn{border:1px solid #ffffff2a;background:#ffffff0e;border-radius:7px;padding:9px 12px;color:#b4c5d3;cursor:pointer;font-size:11px}.mode-btn.active{background:#a3d6df2b;border-color:#9accd366;color:#bcf1f3}.setting-status{color:#849bac;font-size:10px;margin-top:17px}.settings-line{padding:11px 0 7px;display:flex;justify-content:space-between;border-bottom:1px solid #ffffff18;font-size:11px}.settings-line span{color:#91b5bf}.settings-card:nth-child(2) .setting-status{margin-top:10px}.screen:focus{outline:none}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* Nachtuhr: Informationen reduzieren statt nur die Farben umzustellen. */
.screen.night #page-home .home-right,.screen.night #page-home .news-strip{opacity:0;pointer-events:none}
.screen.night #page-home .home-left{left:165px;text-align:center}
.screen.night #page-home .weather-line,.screen.night #page-home .time-meta{justify-content:center}
.screen.night #page-home .time-meta #sun-info{display:none}
.screen.night #page-home .clock{font-weight:300}
.screen.night .bottom-nav,.screen.night .topbar{opacity:.30}
.screen.night .bottom-nav:hover,.screen.night .topbar:hover{opacity:1}

/* Device pairing overlay: only posted over HTTPS to the PHP backend. */
.pair-overlay[hidden]{display:none!important}
.pair-overlay{position:fixed;inset:0;background:rgba(4,10,18,.91);display:flex;align-items:center;justify-content:center;z-index:99;padding:16px;backdrop-filter:blur(7px)}
.pair-dialog{width:min(440px,100%);padding:26px 28px;border:1px solid #496070;border-radius:19px;color:#e8f0f7;background:#142333;box-shadow:0 24px 60px #0009;font:15px/1.45 system-ui,Arial,sans-serif}
.pair-dialog h2{font-size:27px;margin:12px 0 8px}.pair-logo{font-size:12px;letter-spacing:.13em;color:#87bacd;font-weight:700}
.pair-dialog p{color:#aec0ce;margin:0 0 18px}.pair-dialog label{display:block;font-size:12px;margin-bottom:8px}
.pair-dialog input{width:100%;color:#fff;border:1px solid #71899a;border-radius:8px;background:#0a1622;padding:12px;font-size:27px;letter-spacing:.3em;text-align:center;box-sizing:border-box}
.pair-dialog button,.logout-btn{display:block;margin-top:13px;background:#c2dfe8;color:#102634;border:0;border-radius:8px;padding:11px 17px;font:600 14px system-ui;cursor:pointer}
.pair-dialog button{width:100%}.pair-dialog button:disabled{opacity:.6}.pair-dialog small{display:block;color:#9ab5c3;margin-top:12px;min-height:17px}.logout-btn{margin-top:6px}
/* 0.3 radio + speech controls. Shared with Silk and the embedded Android app. */
.radio-layout {display:grid;grid-template-columns:1.22fr .78fr;gap:15px;height:235px}
.radio-stations {display:flex;flex-direction:column;gap:9px}
.station {width:100%;height:72px;background:#ffffff0a;border:1px solid #ffffff24;border-radius:12px;color:#e9f0f7;display:flex;align-items:center;gap:16px;padding:11px 15px;text-align:left;cursor:pointer}
.station.active {background:#83c5d122;border-color:#8fcbd57a}
.station-icon {display:grid;place-items:center;border-radius:9px;width:42px;height:42px;background:#d8e8ef;color:#163748;font-size:17px;font-weight:800;flex:none}
.station>span:nth-child(2) {font-size:16px;font-weight:700;flex:1}
.station small {display:block;font-size:11px;font-weight:400;color:#a7bdcb;margin-top:4px}
.station-arrow {color:#92d0db;font-size:14px}
.radio-player {background:#ffffff0d;border:1px solid #ffffff22;border-radius:12px;padding:17px;display:flex;flex-direction:column;gap:12px}
.radio-player>strong{font-size:23px;font-weight:500}
.radio-actions{display:flex;gap:10px;margin-top:3px}
.radio-actions button{border:1px solid #9bc7d26d;background:#afd7df21;border-radius:8px;padding:10px;color:#def4f7;font-weight:700;cursor:pointer}
.radio-actions #radio-toggle{background:#b4dce8;color:#142837}
.volume-control{display:flex;flex-direction:column;gap:4px;color:#a5bac9;font-size:11px}
.volume-control input{width:100%;accent-color:#a6d6e3}
#radio-status{font-size:10px;color:#95b6c6;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.quick-voice{position:fixed;right:14px;bottom:12px;width:44px;height:44px;border-radius:50%;background:#a7d8e0;color:#102530;border:0;cursor:pointer;font-size:19px;z-index:6;box-shadow:0 4px 15px #0005}
.screen.night .station,.screen.night .radio-player{background:#121922;border-color:#26303b}
.screen.night .quick-voice{opacity:.6}
@media(max-width:700px){.quick-voice{right:7px;bottom:7px}}

/* 960 x 480: reserve a permanent, readable news row above touch navigation. */
.pages{bottom:112px}
.inner-heading{margin-bottom:10px;align-items:center}
.inner-heading h1{font-size:24px}
.inner-heading small{margin-bottom:4px}
.inner-heading .subtle{font-size:13px;max-width:430px;text-align:right}
.depot-summary,.signals{height:208px;padding:18px}
.depot-summary>div{font-size:38px;margin-top:24px;white-space:nowrap}
.depot-summary>span{font-size:14px;line-height:1.45;margin-top:12px}
.signal-list{max-height:145px}
.empty-text{font-size:15px;line-height:1.55}
.signals .panel-caption{font-size:13px;padding-bottom:12px}
.page-footnote{font-size:11px;bottom:0}
.news-list{height:218px}
.news-article{padding:10px 14px;margin-bottom:7px}
.news-article .article-title{font-size:15px}
.radio-layout{height:214px}
.station{height:65px;padding:8px 14px}
.radio-player{padding:12px;gap:8px}
.settings-grid{grid-template-columns:1fr 1.15fr 1fr;gap:10px}
.settings-card{height:222px;padding:13px}
.setting-title{font-size:18px}
.settings-card p{font-size:13px;margin:9px 0 12px}
.segments{gap:4px}
.mode-btn{font-size:13px;padding:9px 7px;min-height:38px}
.setting-status{font-size:12px;margin-top:12px;line-height:1.4}
.settings-line{font-size:13px;padding:9px 0;gap:8px}
.settings-line span{text-align:right;max-width:155px}
.settings-actions{display:flex;flex-direction:column;gap:5px}
.settings-actions .logout-btn{margin:0;padding:8px 10px;font-size:13px;min-height:34px}
.settings-actions .setting-status{margin:0;font-size:11px;min-height:28px}
.news-strip{position:absolute;left:28px;right:28px;bottom:64px;height:38px;padding:0 12px;gap:12px;z-index:3}
.news-label{font-size:11px;padding:5px 7px}
.news-source{font-size:11px;flex:none}
.news-title{font-size:16px;line-height:1.4;min-width:0;overflow:hidden}
.news-ticker-track{display:flex;width:max-content;animation:news-scroll var(--ticker-duration,100s) linear infinite}
.news-ticker-copy{flex:none;white-space:nowrap;padding-right:48px}
.news-strip:hover .news-ticker-track{animation-play-state:paused}
@keyframes news-scroll{to{transform:translateX(-50%)}}
.screen.night .news-strip{opacity:1;pointer-events:auto;background:#101b27}
.screen.night .topbar,.screen.night .bottom-nav{opacity:.8}
.pair-dialog{max-height:calc(100vh - 20px);overflow:auto;padding:16px 22px}
.pair-dialog h2{font-size:23px;margin:8px 0}
.pair-dialog p{font-size:14px;margin-bottom:10px}
.pair-dialog input{padding:8px;font-size:24px}
.pair-dialog button{margin-top:8px;padding:9px 14px}
@media(prefers-reduced-motion:reduce){.news-title{overflow-x:auto}.news-ticker-track{animation:none}.news-ticker-copy[aria-hidden]{display:none}}
.big-market-item .asof{font-size:13px;color:#afc5d2}
.weather-symbol{width:64px;height:68px;display:grid;place-items:center;flex:none;line-height:1}
.wx-svg{width:64px;height:68px;overflow:visible}
.wx-sun{animation:wx-turn 30s linear infinite;transform-origin:32px 30px}
.wx-cloud,.wx-moon{animation:wx-drift 6s ease-in-out infinite alternate}
.wx-rain path{animation:wx-rain 1.6s ease-in-out infinite}
.wx-rain path:nth-child(2){animation-delay:.5s}.wx-rain path:nth-child(3){animation-delay:1s}
.wx-snow circle{animation:wx-flake 4s ease-in-out infinite}.wx-snow circle:nth-child(2){animation-delay:1.3s}.wx-snow circle:nth-child(3){animation-delay:2.6s}
.wx-fog{animation:wx-drift 7s ease-in-out infinite alternate}.wx-bolt{animation:wx-glow 7s ease-in-out infinite}
@keyframes wx-turn{to{transform:rotate(360deg)}}
@keyframes wx-drift{to{transform:translateX(3px)}}
@keyframes wx-rain{0%{transform:translateY(-2px);opacity:.25}60%{opacity:1}100%{transform:translateY(5px);opacity:.25}}
@keyframes wx-flake{0%{transform:translate(0,-2px);opacity:.3}60%{opacity:1}100%{transform:translate(3px,5px);opacity:.3}}
@keyframes wx-glow{0%,75%,100%{opacity:.35}85%{opacity:1}}
.big-market-item{height:226px;padding:13px 16px;gap:5px}
.big-market-item .big-value{font-size:28px;line-height:1.1}.big-market-item .big-change{font-size:16px}
.intraday-chart{margin:0;min-width:0}.intraday-chart figcaption{font-size:11px;color:#bfd0dc;white-space:nowrap}
.intraday-chart svg{display:block;width:100%;height:76px;overflow:visible}
.chart-grid{fill:none;stroke:#b4cfdf24;stroke-width:1}.chart-line{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.chart-times{display:flex;justify-content:space-between;font-size:11px;color:#a7bdcc;margin-top:-1px}
.chart-empty{height:89px;display:grid;place-items:center;color:#a7bdcc;font-size:13px}
.big-market-item .asof{font-size:11px}
@media(prefers-reduced-motion:reduce){.wx-svg *{animation:none!important}}
.time-meta{margin-top:9px}
.home-left{top:0}
.home-left .overline{font-size:11px;line-height:1.2}
.home-left .clock{font-size:100px;line-height:1;letter-spacing:-5px;margin:3px 0 4px -4px}
.home-left .weather-line{height:48px;gap:11px}
.home-left .weather-symbol,.home-left .wx-svg{width:48px;height:48px}
.home-left .temperature{font-size:32px}
.home-left .weather-copy strong{font-size:15px}
.home-left .weather-copy span{font-size:11px}
.home-left .time-meta{margin-top:3px;min-height:18px}
.home-left .mini-pill{padding:3px 7px}
.weather-day{margin-top:7px;height:95px;border:1px solid #b5d2e327;border-radius:9px;background:#ffffff08;padding:6px 9px;text-align:left;overflow:hidden}
.weather-day-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;line-height:14px;color:#acbfce;white-space:nowrap}
.weather-day-heading strong{font-size:12px;color:#d4e6ef}.weather-day-heading strong span{font-weight:400;margin-left:7px;color:#acd1dd}
.weather-day>svg{display:block;width:100%;height:35px;overflow:visible}
.weather-day-grid{stroke:#d5e7f025;fill:none}.weather-day-observed,.weather-day-forecast{fill:none;stroke:#9ed8e8;stroke-width:2;stroke-linecap:round;vector-effect:non-scaling-stroke}.weather-day-forecast{stroke-dasharray:4 4;stroke:#e6c88e}
.weather-hours{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}
.weather-hour{display:flex;flex-direction:column;align-items:center;line-height:14px;font-size:10px;color:#a6becc}.weather-hour strong{font-size:13px;font-weight:500;color:#e0eef5;white-space:nowrap}.weather-hour i{font-size:12px;font-style:normal;color:#acd5e5}
.weather-day-empty{height:100%;display:grid;place-items:center;font-size:13px;color:#a8bfcb}
.screen.night .weather-day{background:#0e1822;border-color:#344552}
