/* ==========================================================================
   iOS 7 – System & UI-Kit
   ========================================================================== */
:root {
  --font: "Helvetica Neue", HelveticaNeue, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --blue: #007aff; --red: #ff3b30; --green: #4cd964; --orange: #ff9500; --yellow: #ffcc00;
  --pink: #ff2d55; --teal: #5ac8fa; --tealblue: #34aadc; --purple: #5856d6; --gray: #8e8e93;
  --tint: var(--blue);
  --bg: #fff; --group: #efeff4; --cell: #fff; --text: #000; --text2: #8e8e93; --text3: #6d6d72;
  --sep: #c8c7cc; --bar: rgba(248, 248, 248, .86); --bar-line: rgba(0, 0, 0, .3); --hl: #d9d9d9;
  --sbbg: #c9c9ce; --field: #fff; --plainh: rgba(247, 247, 247, .96);
  --sb: 20px; --nb: 44px; --tb: 49px;
  --icon: clamp(56px, 15.4vw, 64px);
}
html.night {
  --bg: #000; --group: #0b0b0c; --cell: #1a1a1c; --text: #fff; --text2: #8e8e93; --text3: #8e8e93;
  --sep: #38383a; --bar: rgba(22, 22, 24, .86); --bar-line: rgba(255, 255, 255, .14); --hl: #333336;
  --sbbg: #1c1c1e; --field: #2c2c2e; --plainh: rgba(28, 28, 30, .96);
}
html.pad { --icon: clamp(72px, 7.2vh, 92px); }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; font-family: var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overscroll-behavior: none; }
#device { position: fixed; inset: 0; overflow: hidden; background: #000; color: var(--text); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; letter-spacing: -.01em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; letter-spacing: inherit; }
button:focus { outline: none; }
button:focus-visible { outline: 2px solid var(--tint); outline-offset: 2px; }
input, textarea { font: inherit; color: inherit; user-select: text; -webkit-user-select: text; }
[hidden] { display: none !important; }
#device, #apps, .app-window, .navc, .navstack, .page, .tabc, .tab-content, .tab-pane, .split, #lockscreen, #switcher, #springboard { overflow: hidden; overflow: clip; }
#device * { scrollbar-width: none; }
#device *::-webkit-scrollbar { display: none; width: 0; height: 0; }
.gi { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.gi svg { width: 100%; height: 100%; display: block; overflow: visible; }
html.bold-text #device, html.bold-text #device * { font-weight: 600 !important; }

/* ---------------- Wallpaper ---------------- */
.wp { position: absolute; inset: -5%; z-index: 0; will-change: transform; transition: transform .25s ease-out; }
.wp-img { position: absolute; inset: 0; background: #0b1b3a center / cover no-repeat; }
.wp-dyn { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.wp.dynamic .wp-dyn { display: block; }

/* ---------------- App-Icons ---------------- */
.appicon { position: relative; width: var(--icon); height: var(--icon); border-radius: 22.5%; overflow: hidden; flex: none; container-type: size; background: #fff; }
.appicon img, .appicon > div > svg, .appicon > .ic-clock svg { width: 100%; height: 100%; display: block; }
.appicon::after { content: ''; position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .12s; }
.ic-cal { width: 100%; height: 100%; background: #fff; color: #000; display: flex; flex-direction: column; align-items: center; }
.ic-cal-wd { color: #ff3b30; font-size: 15.5cqw; margin-top: 10cqw; line-height: 1; letter-spacing: 0; }
.ic-cal-d { font-size: 62cqw; font-weight: 200; line-height: .95; letter-spacing: -.05em; margin-top: 1cqw; }
.ic-clock { width: 100%; height: 100%; }
.ic-clock text { font-family: var(--font); font-weight: 400; }

/* ---------------- Statusleiste ---------------- */
#statusbar { position: absolute; top: 0; left: 0; right: 0; height: var(--sb); z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; font-size: 12px; font-weight: 500; pointer-events: none; transition: color .25s; letter-spacing: 0; }
#statusbar.sb-light, .st-clone.sb-light { color: #fff; }
#statusbar.sb-dark, .st-clone.sb-dark { color: #000; }
#statusbar.hidden { opacity: 0; }
.st-clone { position: absolute; top: 0; left: 0; right: 0; height: var(--sb); display: flex; align-items: center; justify-content: space-between; padding: 0 6px; font-size: 12px; font-weight: 500; }
.st-left, .st-right { display: flex; align-items: center; gap: 4px; flex: 1; }
.st-right { justify-content: flex-end; }
.st-center { flex: none; font-weight: 600; display: flex; align-items: center; }
.st-dots { display: inline-flex; gap: 1.5px; }
.st-dots i { width: 5.5px; height: 5.5px; border-radius: 50%; border: 1px solid currentColor; }
.st-dots i.on { background: currentColor; }
.st-carrier { font-weight: 400; margin-left: 2px; }
.st-wifi { width: 15px; height: 11px; }
.st-net { font-weight: 400; }
.st-plane { width: 15px; height: 15px; }
.st-lock { width: 10px; height: 13px; }
.st-moon { width: 11px; height: 11px; }
.st-rot { width: 14px; height: 14px; }
.st-bt { width: 8px; height: 13px; }
.st-pct { font-weight: 400; }
.st-batt { position: relative; width: 24px; height: 11px; border: 1px solid currentColor; border-radius: 2.5px; padding: 1px; margin-right: 3px; }
.st-batt::after { content: ''; position: absolute; right: -3.5px; top: 3px; width: 2px; height: 3.5px; background: currentColor; border-radius: 0 1px 1px 0; }
.st-batt i { display: block; height: 100%; background: currentColor; border-radius: 1px; }
#statusbar.sb-light .st-batt i, .st-clone.sb-light .st-batt i { background: #4cd964; }
.st-batt.low i { background: #ff3b30 !important; }
.st-bolt { width: 7px; height: 11px; margin-left: -2px; }

/* ---------------- Sperrbildschirm ---------------- */
#lockscreen { position: absolute; inset: 0; z-index: 40; color: #fff; overflow: hidden; touch-action: none; background: #000; }
.ls-content { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.ls-clock { margin-top: calc(var(--sb) + 30px); text-align: center; text-shadow: 0 0 30px rgba(0, 0, 0, .12); }
.ls-time { font-size: clamp(76px, 25vw, 96px); font-weight: 100; line-height: 1.02; letter-spacing: -.03em; }
.ls-date { font-size: 18px; font-weight: 300; margin-top: 2px; letter-spacing: 0; }
.pad .ls-time { font-size: 120px; }
.pad .ls-date { font-size: 22px; }
/* „entsperren“: Pfeil sitzt auf der Grundlinie und reicht bis zur Versalhöhe – wie bei iOS 7 */
/* großer Bereich zum Wischen/Tippen, mittig um „entsperren“ (Text bleibt an derselben Stelle) */
.ls-slide { position: absolute; left: 0; right: 0; bottom: calc(clamp(56px, 11vh, 96px) - 46px); padding: 46px 16px; display: flex; align-items: baseline; justify-content: center; gap: .48em; font-size: 25px; line-height: 1.2; font-weight: 200; letter-spacing: 0; color: rgba(255, 255, 255, .75); cursor: grab; touch-action: none; }
.ls-slide:active { cursor: grabbing; }
.ls-chev { flex: none; width: .42em; height: .7em; background-color: rgba(255, 255, 255, .7); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ls-slide-t { color: rgba(255, 255, 255, .75); }
.ls-cam { position: absolute; right: 12px; bottom: 8px; width: 30px; height: 24px; background-color: rgba(255, 255, 255, .85); -webkit-mask: var(--m) center / 26px auto no-repeat; mask: var(--m) center / 26px auto no-repeat; }
/* hintergrund-abhängige Füllung (js/system.js → placeVib) */
.vib { position: relative; color: transparent !important; text-shadow: none !important; }
.vib::before, .vib::after { content: attr(data-v); position: absolute; inset: 0; color: transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
  background-size: var(--vib-size); background-position: var(--vib-pos); background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; }
.vib::before { background-image: var(--vib-halo); filter: blur(4px); opacity: .6; }   /* weicher Kontrast-Rand (statisch) */
.vib::after { background-image: var(--vib); }
.vib-bg { background-repeat: no-repeat !important; background-clip: border-box !important; }
.ls-chev.vib-bg { opacity: .85; }
.sb-dots i.vib-bg { opacity: .4; }
.sb-dots i.vib-bg.on { opacity: 1; }
#ncgrab i.vib-bg, #ccgrab i.vib-bg { opacity: .7; box-shadow: none; }
.ls-music { width: min(300px, 86%); margin-top: 18px; text-align: center; pointer-events: auto; }
.ls-music:empty { display: none; }
.lm-scrub { display: flex; align-items: center; gap: 8px; font-size: 11px; color: rgba(255, 255, 255, .7); }
.lm-track { flex: 1; height: 2px; background: rgba(255, 255, 255, .3); position: relative; }
.lm-track i { position: absolute; left: 0; top: 0; bottom: 0; background: #fff; }
.lm-title { font-size: 17px; margin-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-artist { font-size: 13px; color: rgba(255, 255, 255, .75); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-ctrl { display: flex; justify-content: center; align-items: center; gap: 44px; margin: 14px 0 10px; }
.lm-ctrl button { color: #fff; }
.lm-ctrl .lm-prev .gi, .lm-ctrl .lm-next .gi { width: 28px; height: 17px; }
.lm-play .gi { width: 20px; height: 22px; }
.has-music .ls-clock { margin-top: calc(var(--sb) + 18px); }
.lock-black { position: absolute; inset: 0; background: #000; z-index: 99; pointer-events: none; }

/* ---------------- Home-Bildschirm ---------------- */
#springboard { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; padding-top: var(--sb); color: #fff; }
#springboard.sb-hidden { opacity: 0; pointer-events: none; }
.sb-pages { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; transform: translate(var(--plx, 0), var(--ply, 0)); transition: transform .25s ease-out; }
.sb-pages.dragging { scroll-snap-type: none; cursor: grabbing; }
.sb-pages::-webkit-scrollbar { display: none; }
.sb-page { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: max-content; align-content: start; row-gap: clamp(18px, 3.4vh, 30px); padding: clamp(10px, 2.2vh, 22px) 4px 0; }
.sb-icon { position: relative; display: flex; flex-direction: column; align-items: center; justify-self: center; width: calc(var(--icon) + 24px); color: #fff; }
.sb-icon:active .appicon::after { opacity: .35; }
.sb-icon .appicon { box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }   /* minimaler Schatten, damit Icons sich vom Hintergrund lösen */
.sb-label { margin-top: 5px; font-size: 12px; line-height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 0 6px rgba(0, 0, 0, .25); letter-spacing: 0; }
.badge { position: absolute; top: -8px; left: calc(50% + var(--icon) / 2 - 14px); min-width: 23px; height: 23px; padding: 0 7px; border-radius: 12px; background: #ff3b30; color: #fff; font-size: 14px; line-height: 23px; text-align: center; font-weight: 400; letter-spacing: 0; }
.sb-dots { height: 26px; flex: none; display: flex; justify-content: center; align-items: center; gap: 9px; }
.sb-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .38); }
.sb-dots i.on { background: #fff; }
.dock { position: relative; flex: none; height: calc(var(--icon) + 38px); }
.dock-bg { position: absolute; inset: 0; background: rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(24px) saturate(1.7); backdrop-filter: blur(24px) saturate(1.7); }
.dock-icons { position: relative; height: 100%; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding: 0 4px; }
.pad .sb-page { grid-template-columns: repeat(5, 1fr); padding: clamp(40px, 7vh, 80px) 6vw 0; row-gap: clamp(40px, 7vh, 72px); }
.pad .sb-label { font-size: 13px; margin-top: 7px; }
.pad .dock { height: calc(var(--icon) + 46px); }
.pad .dock-icons { display: flex; justify-content: center; gap: clamp(30px, 6vw, 90px); }
.pad .badge { min-width: 26px; height: 26px; line-height: 26px; border-radius: 13px; font-size: 16px; }

/* ---------------- App-Fenster ---------------- */
#apps { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.app-window { position: absolute; inset: 0; overflow: hidden; background: var(--bg); color: var(--text); pointer-events: auto; transform-origin: center; contain: layout paint; }
.launch-ov { position: absolute; inset: 0; z-index: 9999; pointer-events: none; }
.launch-ov img { width: 100%; height: 100%; display: block; }

/* ---------------- Multitasking ---------------- */
#switcher { position: absolute; inset: 0; z-index: 30; display: none; overflow: hidden; }
#switcher.open { display: block; }
.mt-bg { position: absolute; inset: -40px; background: #000 center / cover; filter: blur(14px) brightness(.82) saturate(1.2); }
.sw-strip { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sw-strip.dragging { scroll-snap-type: none; }
.sw-strip::-webkit-scrollbar { display: none; }
.sw-pad { flex: none; }
.sw-item { flex: none; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-right: var(--gap); scroll-snap-align: center; padding-bottom: 6vh; }
.sw-item:nth-last-child(2) { margin-right: 0; }
.sw-card { position: relative; overflow: hidden; flex: none; background: #000; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25), 0 12px 32px rgba(0, 0, 0, .28); touch-action: pan-x; cursor: pointer; }
.sw-scale { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; overflow: hidden; }
.sw-scale > .app-window { position: absolute; inset: 0; display: block !important; }
.sw-home { position: absolute; inset: 0; background: center / cover; }
.springboard-clone { position: absolute; inset: 0; display: flex; flex-direction: column; padding-top: var(--sb); color: #fff; }
.sw-label { display: flex; flex-direction: column; align-items: center; margin-top: 22px; color: #fff; font-size: 12px; height: calc(var(--icon) + 22px); }
.sw-label .appicon { margin-bottom: 6px; }
.sw-home-l { visibility: hidden; }

/* ---------------- Kontrollzentrum ---------------- */
#cc-layer { position: absolute; inset: 0; z-index: 60; display: none; }
#cc-layer.open { display: block; }
.cc-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .42); opacity: 0; }
.cc { position: absolute; left: 0; right: 0; bottom: 0; transform: translateY(110%); color: rgba(0, 0, 0, .82); background: rgba(240, 240, 244, .6); -webkit-backdrop-filter: blur(26px) saturate(1.9) brightness(1.04); backdrop-filter: blur(26px) saturate(1.9) brightness(1.04); touch-action: none; padding-bottom: 10px; }
html.night .cc { background: rgba(40, 40, 44, .62); color: rgba(255, 255, 255, .85); }
.cc-grab { display: block; width: 100%; height: 26px; color: rgba(0, 0, 0, .45); }
.cc-grab .gi { width: 34px; height: 10px; }
html.night .cc-grab { color: rgba(255, 255, 255, .45); }
.cc-hint { position: absolute; top: 6px; left: 0; right: 0; text-align: center; font-size: 12px; opacity: 0; transition: opacity .25s; pointer-events: none; }
.cc-hint.show { opacity: 1; }
.cc-hint.show ~ * .cc-grab, .cc-hint.show + * { }
.cc-toggles { display: flex; justify-content: space-between; padding: 2px 18px 14px; }
.cc-tg { width: 48px; height: 48px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s; }
.cc-tg .gi { width: 23px; height: 23px; }
.cc-tg.on, .cc-q.on { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .22); }
.cc-sec { border-top: .5px solid rgba(0, 0, 0, .28); padding: 10px 18px; }
html.night .cc-sec { border-color: rgba(255, 255, 255, .2); }
.cc-sl { --tint: #fff; }
.cc-sl .sl-track { background: rgba(0, 0, 0, .55); height: 1.5px; }
.cc-sl .sl-fill { background: #fff; }
.cc-sl .sl-min, .cc-sl .sl-max { color: currentColor; }
.cc-scrub { display: flex; align-items: center; gap: 10px; font-size: 11px; padding: 2px 0; }
.cc-tm { min-width: 34px; text-align: center; opacity: .7; }
.cc-track { flex: 1; height: 1.5px; background: rgba(0, 0, 0, .55); position: relative; cursor: pointer; }
.cc-track::before { content: ''; position: absolute; inset: -8px 0; }
.cc-track i { position: absolute; left: 0; top: 0; bottom: 0; background: #fff; }
.cc-info { text-align: center; min-height: 0; cursor: pointer; }
.cc-music.has-track .cc-info { min-height: 36px; margin-top: 4px; }
.cc-mt { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-ms { font-size: 12px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-ctrl { display: flex; justify-content: center; align-items: center; gap: 56px; padding: 12px 0 10px; }
.cc-ctrl .gi { width: 30px; height: 18px; }
.cc-ctrl .cc-pp .gi { width: 20px; height: 22px; }
.cc-air { display: flex; padding: 0; }
.cc-wide { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; padding: 12px 6px; color: #fff; }
.cc-wide .gi { width: 26px; height: 24px; }
.cc-wide + .cc-wide { border-left: .5px solid rgba(0, 0, 0, .28); }
.cc-quick { display: flex; justify-content: space-between; padding: 12px 18px 4px; border-top: .5px solid rgba(0, 0, 0, .28); }
.cc-q { width: 60px; height: 60px; border-radius: 14px; border: 1px solid currentColor; display: grid; place-items: center; transition: background .2s, color .2s; }
.cc-q .gi { width: 30px; height: 28px; }
.cc-pad { padding: 0 0 8px; }
.cc-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; grid-template-rows: auto auto; column-gap: 4vw; row-gap: 10px; max-width: 1060px; margin: 0 auto; padding: 0 32px 6px; align-items: center; }
.cc-col { min-width: 0; }
.cc-pad .cc-toggles { padding: 0; justify-content: center; gap: 18px; }
.cc-pad .cc-quick { border: 0; padding: 0; justify-content: flex-end; gap: 22px; }
.cc-pad .cc-q { width: 64px; height: 48px; border-radius: 12px; }
.cc-pad .cc-air { justify-content: center; }
.cc-pad .cc-wide { flex: 0 1 auto; padding: 4px 16px; color: inherit; }
.cc-pad .cc-wide + .cc-wide { border: 0; }
.cc-pad .cc-ctrl { padding: 6px 0 0; gap: 48px; }
.cc-pad .cc-music.has-track .cc-info { min-height: 0; }

/* ---------------- Hardware-Bedienelemente ---------------- */
#hw { position: absolute; inset: 0; z-index: 80; pointer-events: none; }
#ccgrab { position: absolute; left: 50%; bottom: 0; width: 84px; height: 22px; margin-left: -42px; pointer-events: auto; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 5px; touch-action: none; transition: opacity .25s; }
#ccgrab i { display: block; width: 38px; height: 5px; border-radius: 3px; background: rgba(140, 140, 146, .7); box-shadow: 0 0 0 .5px rgba(255, 255, 255, .55); transition: transform .15s; }
#ccgrab:hover i { transform: scaleY(1.3); background: rgba(120, 120, 126, .9); }
#ccgrab.on-lock i { background: rgba(255, 255, 255, .55); box-shadow: none; }
#ccgrab.in-app { opacity: 0; height: 14px; padding-bottom: 3px; pointer-events: none; }
#ccgrab.in-app.peek { pointer-events: auto; }
#ccgrab.in-app i { width: 44px; }
#ccgrab.in-app.peek, #ccgrab.in-app:focus-visible { opacity: 1; }
#ccgrab.hide { opacity: 0; pointer-events: none; }
#homebtn { position: absolute; right: 10px; width: 52px; height: 52px; border-radius: 50%; pointer-events: auto; background: rgba(28, 28, 30, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 4px 14px rgba(0, 0, 0, .25); opacity: .62; transition: opacity .2s, transform .12s; touch-action: none; display: grid; place-items: center; }
#homebtn i { width: 17px; height: 17px; border: 1.6px solid rgba(255, 255, 255, .9); border-radius: 4.5px; }
#homebtn:hover { opacity: 1; }
#homebtn.down { transform: scale(.92); opacity: 1; }
#homebtn.on-lock { opacity: .4; }
#homebtn.hide { opacity: 0; pointer-events: none; }
#bright { position: absolute; inset: 0; z-index: 95; background: #000; opacity: 0; pointer-events: none; transition: opacity .1s; }
.lang-ov { position: absolute; inset: 0; z-index: 98; background: #000; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; font-size: 15px; }

/* ==========================================================================
   UI-Kit
   ========================================================================== */
.navc { position: absolute; inset: 0; overflow: hidden; background: var(--bg); }
.navstack { position: absolute; inset: 0; }
.page { position: absolute; inset: 0; overflow: hidden; background: var(--bg); will-change: transform; }
.page:not(:first-child) { box-shadow: -1px 0 10px rgba(0, 0, 0, .1); }
.page-scroll { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-top: calc(var(--sb) + var(--nb)); overscroll-behavior: contain; }
.page.noscroll .page-scroll { overflow: hidden; }
.page.nobar .page-scroll { padding-top: 0; }
.page.hidden { visibility: hidden; pointer-events: none; }
.page-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .1); opacity: 0; pointer-events: none; }
.page.grouped, .page.grouped .page-scroll { background: var(--group); }

.navbar { position: absolute; top: 0; left: 0; right: 0; height: calc(var(--sb) + var(--nb)); z-index: 500; background: var(--bar); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); box-shadow: 0 .5px 0 var(--bar-line); color: var(--text); }
.navbar.bar-hidden { display: none; }
.navbar.bar-clear { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.navbar.bar-dark { background: rgba(18, 18, 20, .82); color: #fff; box-shadow: 0 .5px 0 rgba(255, 255, 255, .12); }
.navbar.bar-solid { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.nb-item { position: absolute; left: 0; right: 0; bottom: 0; height: var(--nb); }
.nb-item.hidden { visibility: hidden; }
.nb-title { position: absolute; left: 90px; right: 90px; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.nb-title > * { max-width: 100%; }
.nb-left, .nb-right { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; z-index: 1; }
.nb-left { left: 0; padding-left: 0; }
.nb-right { right: 0; padding-right: 2px; }
.nb-back { display: flex; align-items: center; height: 100%; padding: 0 10px 0 8px; color: var(--tint); font-size: 17px; max-width: 46vw; }
.nb-chev { width: 13px; height: 22px; margin-right: 6px; flex: none; }
.nb-back-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-btn { display: flex; align-items: center; gap: 4px; height: 100%; padding: 0 9px; color: var(--tint); font-size: 17px; white-space: nowrap; }
.nb-btn.bold { font-weight: 600; }
.nb-btn:disabled { opacity: .35; cursor: default; }
.nb-btn:active:not(:disabled), .nb-back:active { opacity: .3; }
.nb-ic { width: 22px; height: 22px; }

.tabc { position: absolute; inset: 0; }
.tab-content, .tab-pane { position: absolute; inset: 0; }
.tabc .page-scroll { padding-bottom: var(--tb); }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: var(--tb); z-index: 600; display: flex; background: var(--bar); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); box-shadow: 0 -.5px 0 var(--bar-line); }
.tabbar.tb-hidden { visibility: hidden; }
/* Mini-Player (UI.miniPlayer) direkt über der Tab Bar */
.miniplayer { position: absolute; left: 0; right: 0; bottom: var(--tb); height: 52px; z-index: 599; display: none; align-items: center; padding: 0 4px 0 10px;
  background: var(--bar); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); box-shadow: 0 -.5px 0 var(--bar-line); }
.miniplayer.on { display: flex; }
.tabbar.tb-hidden ~ .miniplayer { visibility: hidden; }
.mp-info { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; gap: 10px; text-align: left; color: var(--text); }
.mp-info:active { opacity: .5; }
.mp-art { width: 38px; height: 38px; object-fit: cover; flex: none; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .15); background: var(--group); }
.mp-txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mp-t, .mp-a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; }
.mp-t { font-size: 15px; font-weight: 500; }
.mp-a { font-size: 13px; color: var(--text2); }
.mp-ctl { display: flex; align-items: center; flex: none; }
.mp-btn { width: 44px; height: 44px; display: grid; place-items: center; color: var(--text); }
.mp-btn:active { opacity: .3; }
.mp-btn.skip .gi { width: 25px; height: 15px; }
.mp-btn.pp .gi { width: 17px; height: 19px; }
.tabc.has-mini .page-scroll { padding-bottom: calc(var(--tb) + 52px); }
.pad .miniplayer { height: 56px; padding: 0 14px 0 16px; }
.pad .mp-art { width: 42px; height: 42px; }
.pad .mp-ctl { gap: 10px; }
.pad .tabc.has-mini .page-scroll { padding-bottom: calc(var(--tb) + 56px); }
.tabbar.dark { background: rgba(18, 18, 20, .9); box-shadow: 0 -.5px 0 rgba(255, 255, 255, .1); }
.tb-item { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 4px; color: #929292; }
.tb-item.sel { color: var(--tint); }
.tb-ic { width: 30px; height: 30px; }
.tb-l { font-size: 10px; margin-top: 1px; letter-spacing: 0; white-space: nowrap; }
.tb-badge { position: absolute; top: 2px; left: calc(50% + 8px); min-width: 18px; height: 18px; border-radius: 9px; background: #ff3b30; color: #fff; font-size: 12px; line-height: 18px; padding: 0 5px; }
.pad .tabbar { justify-content: center; }
.pad .tb-item { flex: 0 0 116px; }

.split { position: absolute; inset: 0; display: flex; background: var(--bg); }
.split > .navc { position: relative; inset: auto; height: 100%; }
.split-master { width: 320px; flex: none; box-shadow: .5px 0 0 var(--sep); z-index: 2; }
.split-detail { flex: 1; min-width: 0; }
.split-master .navbar { box-shadow: 0 .5px 0 var(--bar-line); }
.cell.selected { background: var(--tint) !important; }
.cell.selected .cell-title, .cell.selected .cell-detail, .cell.selected .cell-sub, .cell.selected .chev { color: #fff !important; }

/* ---------------- Tabellen ---------------- */
.tbl { padding-bottom: 30px; }
.tbl.grouped { background: var(--group); }
.tbl-h { padding: 22px 15px 7px; font-size: 13px; text-transform: uppercase; color: var(--text3); letter-spacing: 0; }
.tbl-gap { height: 35px; }
.tbl-f { padding: 7px 15px 0; font-size: 13px; color: var(--text3); line-height: 1.35; letter-spacing: 0; }
.tbl-s { background: var(--cell); box-shadow: 0 -.5px 0 var(--sep), 0 .5px 0 var(--sep); }
.tbl.plain .tbl-s { box-shadow: none; }
.tbl.plain { background: var(--bg); padding-bottom: 0; }
.plain-h { position: sticky; top: 0; z-index: 2; padding: 2px 15px; font-size: 14px; font-weight: 600; color: var(--text3); background: var(--plainh); text-transform: none; }
.cell { position: relative; display: flex; align-items: center; min-height: 44px; padding-left: 15px; background: var(--cell); color: var(--text); }
.cell::after { content: ''; position: absolute; left: 15px; right: 0; bottom: 0; height: .5px; background: var(--sep); transform: scaleY(1); }
.cell:last-child::after { display: none; }
.tbl.plain .cell:last-child::after { display: block; }
.cell.has-icon::after { left: 59px; }
.cell.tap { cursor: pointer; }
.cell.tap:active { background: var(--hl); }
.cell-icon { width: 29px; height: 29px; border-radius: 6.5px; margin-right: 15px; display: grid; place-items: center; color: #fff; flex: none; }
.cell-icon .gi { width: 19px; height: 19px; }
.cell-app { --icon: 29px; margin-right: 15px; border-radius: 6.5px; }
.cell-body { flex: 1; min-width: 0; padding: 11px 12px 11px 0; }
.cell-title { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.cell-sub { font-size: 12px; color: var(--text2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; }
.cell-detail { color: var(--text2); font-size: 17px; padding-right: 8px; white-space: nowrap; flex: none; max-width: 50%; overflow: hidden; text-overflow: ellipsis; }
.cell-acc { display: flex; align-items: center; padding-right: 15px; flex: none; }
.cell-acc.chev .gi { width: 8px; height: 13px; color: #c7c7cc; }
.cell-acc.check .gi { width: 14px; height: 11px; color: var(--tint); }
.btn-cell .cell-title { color: var(--tint); }
.btn-cell.center .cell-body { text-align: center; padding-left: 12px; }
.destructive .cell-title { color: var(--red); }
.cell-img { width: 44px; height: 44px; object-fit: cover; margin: 6px 12px 6px 0; flex: none; background: #ddd; }
.cell-img.round { border-radius: 50%; }

/* ---------------- Schalter ---------------- */
.switch { position: relative; width: 51px; height: 31px; border-radius: 16px; background: #e5e5ea; flex: none; cursor: pointer; transition: background .3s; }
.sw-bg { position: absolute; inset: 1.5px; border-radius: 14.5px; background: #fff; transition: transform .3s cubic-bezier(.3, .8, .3, 1); }
.sw-knob { position: absolute; top: 1.5px; left: 1.5px; width: 28px; height: 28px; border-radius: 14px; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16), 0 3px 1px rgba(0, 0, 0, .1); transition: transform .3s cubic-bezier(.3, .8, .3, 1.1), width .15s; }
.switch:active .sw-knob { width: 34px; }
.switch.on { background: #4cd964; }
.switch.on .sw-bg { transform: scale(0); }
.switch.on .sw-knob { transform: translateX(20px); }
.switch.on:active .sw-knob { transform: translateX(14px); }
html.night .switch { background: #39393d; }
html.night .switch.on { background: #4cd964; }
html.night .sw-bg { background: #1c1c1e; }

/* ---------------- Slider ---------------- */
.slider { display: flex; align-items: center; gap: 12px; height: 34px; }
.sl-wrap { position: relative; flex: 1; height: 34px; cursor: pointer; touch-action: none; }
.sl-track { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 1px; background: #b7b7b7; }
.sl-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 1px; background: var(--tint); }
.sl-thumb { position: absolute; top: 3px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16), 0 3px 1px rgba(0, 0, 0, .1), 0 0 0 .5px rgba(0, 0, 0, .04); pointer-events: none; }
.sl-min { width: 12px; height: 14px; color: var(--text2); flex: none; }
.sl-max { width: 22px; height: 16px; color: var(--text2); flex: none; }
.slider .sl-min:has(svg[viewBox="0 0 16 16"]) { width: 16px; height: 16px; }
.slider .sl-max:has(svg[viewBox="0 0 24 24"]) { width: 24px; height: 24px; }

/* ---------------- Segmente ---------------- */
.seg { display: inline-flex; height: 29px; border: 1px solid var(--tint); border-radius: 4.5px; overflow: hidden; }
.seg-b { flex: 1; padding: 0 14px; font-size: 13px; color: var(--tint); white-space: nowrap; letter-spacing: 0; }
.seg-b + .seg-b { border-left: 1px solid var(--tint); }
.seg-b.sel { background: var(--tint); color: #fff; }
.seg-b:active:not(.sel) { background: rgba(0, 122, 255, .12); }

/* ---------------- Suche ---------------- */
.searchbar { padding: 8px; background: var(--sbbg); }
.sb-field { display: flex; align-items: center; justify-content: center; gap: 6px; height: 28px; border-radius: 5px; background: var(--field); padding: 0 8px; color: #8e8e93; cursor: text; }
.sb-ic { width: 13px; height: 13px; flex: none; }
.sb-input { border: 0; outline: 0; background: transparent; font-size: 14px; width: 100%; max-width: 70px; color: var(--text); transition: max-width .25s; letter-spacing: 0; }
.searchbar.focus .sb-field { justify-content: flex-start; }
.searchbar.focus .sb-input { max-width: none; }
.sb-input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---------------- Toolbar ---------------- */
.toolbar { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; z-index: 600; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; background: var(--bar); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); box-shadow: 0 -.5px 0 var(--bar-line); }
.toolbar .nb-btn { height: 44px; }
.tb-flex { flex: 1; }

/* ---------------- Spinner ---------------- */
.spinner { position: relative; width: 20px; height: 20px; }
.spinner i { position: absolute; left: 9px; top: 0; width: 2px; height: 6px; border-radius: 1px; background: #8e8e93; transform-origin: 1px 10px; animation: spin-fade 1s linear infinite; }
.spinner.light i { background: #fff; }
@keyframes spin-fade { from { opacity: 1; } to { opacity: .15; } }

/* ---------------- Overlays: Action Sheet, Alert, Modal ---------------- */
#overlay { position: absolute; inset: 0; z-index: 70; pointer-events: none; }
.ov { position: absolute; inset: 0; pointer-events: auto; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.ov-center { justify-content: center; }
.ov-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }
.asheet { position: relative; width: 100%; max-width: 420px; padding: 8px; padding-bottom: 8px; }
.as-group, .as-cancel { background: rgba(250, 250, 250, .94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 5px; overflow: hidden; }
.as-title { padding: 14px 16px; font-size: 13px; color: #8f8f8f; text-align: center; line-height: 1.35; letter-spacing: 0; }
.as-btn { display: block; width: 100%; height: 44px; font-size: 20px; color: var(--blue); text-align: center; box-shadow: 0 -.5px 0 rgba(0, 0, 0, .18); letter-spacing: 0; }
.as-title + .as-btn { box-shadow: 0 -.5px 0 rgba(0, 0, 0, .18); }
.as-group > .as-btn:first-child { box-shadow: none; }
.as-btn.red { color: var(--red); }
.as-btn.bold, .as-cancel { font-weight: 600; }
.as-btn:active { background: rgba(0, 0, 0, .08); }
.as-cancel { margin-top: 8px; box-shadow: none; }
html.night .as-group, html.night .as-cancel { background: rgba(40, 40, 42, .94); }
html.night .as-btn { box-shadow: 0 -.5px 0 rgba(255, 255, 255, .12); }
.alert { position: relative; width: 270px; border-radius: 7px; overflow: hidden; background: rgba(248, 248, 248, .94); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); color: #000; text-align: center; }
html.night .alert { background: rgba(40, 40, 42, .94); color: #fff; }
.al-body { padding: 19px 16px 20px; }
.al-title { font-size: 17px; font-weight: 600; line-height: 1.25; }
.al-msg { font-size: 13px; margin-top: 4px; line-height: 1.35; letter-spacing: 0; }
.al-input { width: 100%; margin-top: 14px; height: 26px; border: .5px solid rgba(0, 0, 0, .3); border-radius: 4px; padding: 0 6px; font-size: 14px; outline: none; background: #fff; color: #000; }
.al-input.secure { letter-spacing: .3em; text-align: center; font-size: 16px; }
.al-err { min-height: 0; font-size: 12px; color: #ff3b30; margin-top: 6px; letter-spacing: 0; }
.al-err:empty { display: none; }
/* HUD (kurze Bestätigung) */
.hud { position: absolute; left: 50%; top: 50%; width: 150px; min-height: 130px; margin: -75px 0 0 -75px; padding: 22px 12px 16px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 5;
  background: rgba(30, 30, 32, .82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #fff; font-size: 15px; text-align: center; pointer-events: none; letter-spacing: 0; }
.hud .gi { width: 44px; height: 44px; }
.al-btns { display: flex; box-shadow: 0 -.5px 0 rgba(0, 0, 0, .2); }
.al-btns.col { flex-direction: column; }
.al-btn { flex: 1; height: 44px; font-size: 17px; color: var(--blue); letter-spacing: 0; }
.al-btn + .al-btn { box-shadow: -.5px 0 0 rgba(0, 0, 0, .2); }
.al-btns.col .al-btn + .al-btn { box-shadow: 0 -.5px 0 rgba(0, 0, 0, .2); }
.al-btn.bold { font-weight: 600; }
.al-btn.red { color: var(--red); }
.al-btn:active { background: rgba(0, 0, 0, .06); }
.ov-modal { justify-content: center; }
.modal { position: absolute; inset: 0; background: var(--bg); overflow: hidden; }
.modal.form-sheet { position: relative; inset: auto; width: 560px; height: min(640px, 92%); border-radius: 6px; }
.share-sheet .as-group { padding-bottom: 6px; }
.sh-air { display: flex; gap: 14px; align-items: center; padding: 14px 16px; font-size: 12px; color: #6d6d72; text-align: left; line-height: 1.3; box-shadow: 0 .5px 0 rgba(0, 0, 0, .15); letter-spacing: 0; }
.sh-air b { color: #000; font-size: 14px; font-weight: 500; }
.sh-air-ic { width: 54px; height: 54px; flex: none; color: #5ac8fa; }
.sh-row { display: flex; gap: 18px; padding: 14px 16px 6px; overflow-x: auto; }
.sh-app { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: #000; width: 62px; flex: none; letter-spacing: 0; }
.sh-app .appicon { --icon: 60px; }
.sh-glyph { width: 60px; height: 60px; border-radius: 13px; background: #fff; display: grid; place-items: center; color: #555; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .15); }
.sh-glyph .gi { width: 30px; height: 30px; }

/* Erhöhter Kontrast: weniger Transparenz */
html.contrast .navbar, html.contrast .tabbar, html.contrast .toolbar { background: #f7f7f7; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.night.contrast .navbar, html.night.contrast .tabbar, html.night.contrast .toolbar { background: #161618; }
html.contrast .dock-bg { background: rgba(70, 70, 76, .9); -webkit-backdrop-filter: none; backdrop-filter: none; }
html.contrast .cc { background: #d9d9de; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.contrast .as-group, html.contrast .as-cancel, html.contrast .alert { background: #fff; }

/* Leere Zustände */
.empty { padding: 60px 30px; text-align: center; color: var(--text2); font-size: 16px; line-height: 1.4; }
.empty b { display: block; color: var(--text); font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.cc-pad .cc-wide span { white-space: nowrap; }

/* ---------------- Helle Hintergründe: dunkle Schrift (iOS-7-Lesbarkeit) ---------------- */
.wpl-lock #lockscreen { color: #111; }
.wpl-lock .ls-clock { text-shadow: none; }
.wpl-lock .ls-slide, .wpl-lock .ls-slide-t { color: rgba(0, 0, 0, .55); }
.wpl-lock .ls-chev { background-color: rgba(0, 0, 0, .5); }
.wpl-lock .ls-cam { background-color: rgba(0, 0, 0, .75); }
.wpl-lock .lm-scrub, .wpl-lock .lm-artist { color: rgba(0, 0, 0, .6); }
.wpl-lock .lm-track { background: rgba(0, 0, 0, .2); }
.wpl-lock .lm-track i { background: #111; }
.wpl-lock .lm-ctrl button { color: #111; }
.wpl-lock #ncgrab.on-lock i, .wpl-lock #ccgrab.on-lock i { background: rgba(0, 0, 0, .3); }
.wpl-lock .ls-notifs { background: rgba(255, 255, 255, .62); box-shadow: 0 -.5px 0 rgba(0, 0, 0, .1), 0 .5px 0 rgba(0, 0, 0, .1); }
.wpl-lock .ls-notifs .ntf-card { color: #111; }
.wpl-lock .ls-notifs .ntf-card:active { background: rgba(0, 0, 0, .05); }
.wpl-lock .ls-notifs .ntf-time { color: rgba(0, 0, 0, .45); }
.wpl-lock .ls-notifs .ntf-text { color: rgba(0, 0, 0, .78); }
.wpl-lock .ls-notifs .ntf + .ntf { box-shadow: 0 -1px 0 rgba(0, 0, 0, .16); }
.wpl-home #springboard, .wpl-home .sb-icon { color: #111; }
.wpl-home .sb-icon .appicon { box-shadow: 0 0 0 .5px rgba(0, 0, 0, .16), 0 2px 6px rgba(0, 0, 0, .2); }   /* weiße Icons auf hellem Hintergrund */
.wpl-home .sb-label { text-shadow: 0 0 2px rgba(255, 255, 255, .95), 0 0 6px rgba(255, 255, 255, .85); }    /* dunkle Schrift mit hellem Rand – auch über dem Logo lesbar */
.wpl-home .dock-bg { background: rgba(214, 214, 220, .5); box-shadow: 0 -.5px 0 rgba(0, 0, 0, .1); }
.wpl-home .sb-dots i { background: rgba(0, 0, 0, .22); }
.wpl-home .sb-dots i.on { background: rgba(0, 0, 0, .75); }
.wpl-home #ncgrab:not(.in-app):not(.on-lock) i { background: rgba(0, 0, 0, .28); }

/* ---------------- Mitteilungen (js/notify.js) ---------------- */
.ntf { position: relative; }
.ntf + .ntf { box-shadow: 0 -1px 0 rgba(255, 255, 255, .24); }   /* klar getrennte Mitteilungen */
.ntf-acts { position: absolute; top: 0; right: 0; bottom: 0; width: 0; overflow: hidden; display: flex; justify-content: flex-end; z-index: 1; }
.ntf-act { flex: none; width: 84px; height: 100%; color: #fff; font-size: 15px; letter-spacing: 0; }
.ntf-act.open { background: #8e8e93; }
.ntf-act.del { background: #ff3b30; }
.ntf-card { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px 11px 16px; color: #fff; text-align: left; touch-action: pan-y; -webkit-user-select: none; user-select: none; cursor: pointer; }
.ntf-card:active { background: rgba(255, 255, 255, .06); }
.ntf-ic { width: 20px; height: 20px; border-radius: 5px; flex: none; margin-top: 1px; }
.ntf-main { flex: 1; min-width: 0; }
.ntf-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ntf-top b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ntf-time { flex: none; font-size: 12px; color: rgba(255, 255, 255, .6); white-space: nowrap; }
.ntf-sub { font-size: 14px; font-weight: 500; margin-top: 1px; }
.ntf-text { font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, .88); margin-top: 1px; }
/* auf dem Sperrbildschirm */
.ls-content { padding-bottom: calc(clamp(56px, 11vh, 96px) + 80px); }   /* Mitteilungen enden über dem Entsperr-Bereich */
.ls-notifs { pointer-events: auto; width: 100%; max-width: 560px; flex: 0 1 auto; min-height: 0; margin-top: 16px; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; scrollbar-width: none;
  background: rgba(0, 0, 0, .24); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -.5px 0 rgba(255, 255, 255, .14), 0 .5px 0 rgba(255, 255, 255, .14); }
.ls-notifs::-webkit-scrollbar { display: none; }
.ls-notifs:empty { display: none; }
.pad .ls-notifs { border-radius: 10px; margin-top: 28px; box-shadow: none; }
.has-notifs .ls-clock { margin-top: calc(var(--sb) + 22px); }
/* Mitteilungszentrale */
#nc-layer { position: absolute; inset: 0; z-index: 45; display: none; }
#nc-layer.open { display: block; }
.nc { position: absolute; inset: 0; display: flex; flex-direction: column; padding-top: var(--sb); color: #fff; transform: translateY(-100%); touch-action: none;
  background: rgba(22, 22, 26, .76); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); }
html.contrast .nc { background: rgba(22, 22, 26, .96); }
.nc-head { flex: none; display: flex; justify-content: center; padding: 8px 12px 10px; touch-action: none; }
.nc .seg { --tint: rgba(255, 255, 255, .92); }
.nc .seg-b { min-width: 84px; }
.pad .nc .seg-b { min-width: 120px; }
.nc .seg-b.sel { color: rgba(22, 22, 26, .95); }
.nc .seg-b:active:not(.sel) { background: rgba(255, 255, 255, .12); }
.nc-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding-bottom: 12px; scrollbar-width: thin; }
.pad .nc-body { width: min(640px, 100%); margin: 0 auto; }
.nc-grab { flex: none; height: 34px; display: flex; align-items: center; justify-content: center; touch-action: none; }
.nc-grab i { display: block; width: 38px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .45); }
.nc-today { padding: 8px 16px 2px; }
.nc-time { font-size: 54px; font-weight: 100; line-height: 1.05; letter-spacing: -.02em; }
.nc-date { font-size: 21px; font-weight: 200; }
.nc-sum { margin: 0; padding: 8px 16px 12px; font-size: 16px; font-weight: 300; line-height: 1.4; color: rgba(255, 255, 255, .8); }
.nc-sec { margin-left: 16px; padding: 10px 0 4px; box-shadow: 0 -.5px 0 rgba(255, 255, 255, .18); }
.nc-st { font-size: 17px; font-weight: 500; margin-bottom: 7px; }
.nc-item { display: flex; align-items: center; gap: 12px; width: calc(100% - 16px); padding: 2px 0 8px; color: #fff; text-align: left; }
.nc-item:active { opacity: .6; }
.nc-item img { width: 44px; height: 44px; object-fit: cover; flex: none; }
.nc-it { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nc-it b, .nc-it small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; }
.nc-it b { font-size: 15px; font-weight: 500; }
.nc-it small { font-size: 13px; color: rgba(255, 255, 255, .62); }
.nc-pp { width: 40px; height: 40px; flex: none; display: grid; place-items: center; color: #fff; }
.nc-pp .gi { width: 16px; height: 18px; }
.nc-big { flex: none; min-width: 84px; font-size: 26px; font-weight: 200; color: #7ef0d0; }
.nc-group { margin-top: 10px; }
.nc-group:first-child { margin-top: 2px; }
.nc-gh { display: flex; align-items: center; gap: 9px; padding: 8px 12px 8px 16px; font-size: 15px; font-weight: 500; background: rgba(255, 255, 255, .1); box-shadow: 0 -1px 0 rgba(255, 255, 255, .14), 0 1px 0 rgba(255, 255, 255, .14); }
.nc-gh .ntf-ic { width: 22px; height: 22px; margin: 0; }
.nc-gh span { flex: 1; }
.nc-x { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .92); font-size: 17px; line-height: 24px; transition: background .2s; }
.nc-x.armed { background: #ff3b30; color: #fff; font-size: 13px; padding: 0 11px; }
.nc-flat .ntf:first-child { box-shadow: 0 -1px 0 rgba(255, 255, 255, .24); }
.nc-group .ntf:first-of-type { box-shadow: none; }
.nc-empty { padding: 64px 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; color: rgba(255, 255, 255, .6); font-size: 17px; font-weight: 300; }
.nc-restore { color: #fff; border: 1px solid rgba(255, 255, 255, .5); border-radius: 5px; padding: 7px 14px; font-size: 14px; }
/* Griff oben */
#ncgrab { position: absolute; left: 50%; top: var(--sb); width: 84px; height: 18px; margin-left: -42px; pointer-events: auto; display: flex; align-items: flex-start; justify-content: center; padding-top: 4px; touch-action: none; transition: opacity .25s; }
#ncgrab i { display: block; width: 36px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .5); transition: transform .15s; }
#ncgrab:hover i { transform: scaleY(1.3); }
#ncgrab.in-app { opacity: 0; pointer-events: none; }
#ncgrab.in-app i { background: rgba(140, 140, 146, .8); box-shadow: 0 0 0 .5px rgba(255, 255, 255, .55); }
#ncgrab.in-app.peek { opacity: 1; pointer-events: auto; }
#ncgrab.hide { opacity: 0; pointer-events: none; }

/* Slideshow (UI.carousel) */
.carousel { position: relative; --hs-h: 100%; }
.cr-track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
.cr-track::-webkit-scrollbar { display: none; }
.cr-track.dragging { scroll-snap-type: none; cursor: grabbing; }
.cr-track.dragging .cr-slide { pointer-events: none; }
.cr-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.cr-dots { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; gap: 2px; pointer-events: none; }
.cr-dots button { width: 15px; height: 15px; display: grid; place-items: center; pointer-events: auto; }
.cr-dots button::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .35); transition: background .25s; }
.cr-dots button.on::after { background: #fff; }
.carousel .cr-arr { background: rgba(0, 0, 0, .32); color: #fff; box-shadow: none; opacity: 0; }
.carousel:hover .cr-arr { opacity: 1; }
.carousel .cr-arr:active { background: rgba(0, 0, 0, .5); }
.cr-count { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 3px 9px; border-radius: 12px; background: rgba(20, 20, 20, .6); color: #fff; font-size: 12px; letter-spacing: 0; pointer-events: none; }

/* Horizontale Reihen (UI.hscroll): Pfeile links/rechts */
.hs-wrap { position: relative; --hs-h: 100%; }
.hs-arr { position: absolute; top: calc(var(--hs-h) / 2 - 17px); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; z-index: 2;
  background: rgba(255, 255, 255, .9); color: var(--tint); box-shadow: 0 1px 6px rgba(0, 0, 0, .22), 0 0 0 .5px rgba(0, 0, 0, .08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity .2s, transform .2s; }
.hs-arr .gi { width: 9px; height: 15px; }
.hs-arr.l { left: 6px; } .hs-arr.l .gi { margin-left: -2px; }
.hs-arr.r { right: 6px; } .hs-arr.r .gi { margin-left: 2px; }
.hs-arr:active { transform: scale(.9); background: rgba(235, 235, 240, .95); }
.hs-arr.off, .hs-wrap.static .hs-arr { opacity: 0; pointer-events: none; }
html.night .hs-arr { background: rgba(44, 44, 46, .9); box-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
@media (hover: none) and (pointer: coarse) { .hs-arr { display: none; } }

/* ---------- Admin-Modus: Bearbeiten-Formular (js/cms.js) ---------- */
.cms-form { padding: 6px 0 40px; user-select: text; -webkit-user-select: text; }
.cms-f { margin: 18px 0 0; padding: 10px 15px 12px; background: var(--cell); border-top: .5px solid var(--sep); border-bottom: .5px solid var(--sep); }
.cms-l { margin: -2px 0 8px; font-size: 13px; text-transform: uppercase; color: var(--text3); letter-spacing: 0; }
.cms-hint { margin-top: 6px; font-size: 12px; color: var(--text2); letter-spacing: 0; }
.cms-in { display: block; width: 100%; padding: 8px 9px; border: .5px solid var(--sep); border-radius: 6px; background: var(--field); color: var(--text); font: inherit; font-size: 16px; letter-spacing: 0; outline: none; user-select: text; -webkit-user-select: text; resize: vertical; }
.cms-in:focus { border-color: var(--tint); box-shadow: 0 0 0 2px rgba(0, 122, 255, .18); }
textarea.cms-in { line-height: 1.35; min-height: 64px; }
select.cms-in { appearance: auto; -webkit-appearance: menulist; }
.cms-lang { display: grid; gap: 7px; }
.cms-lrow { display: flex; align-items: flex-start; gap: 8px; }
.cms-tag { flex: none; width: 26px; margin-top: 9px; font-size: 11px; font-weight: 600; color: var(--text2); letter-spacing: .04em; }
.cms-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.cms-thumbs:not(:empty) { margin-bottom: 10px; }
.cms-thumb { position: relative; width: 76px; height: 76px; border-radius: 6px; overflow: hidden; background: var(--group); display: flex; align-items: center; justify-content: center; }
.cms-thumb img, .cms-thumb video { width: 100%; height: 100%; object-fit: cover; }
.cms-x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .62); color: #fff; font-size: 16px; line-height: 21px; text-align: center; }
.cms-pick { color: var(--tint); font-size: 16px; padding: 4px 0; }
.cms-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.cms-color { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.cms-color.on { box-shadow: 0 0 0 2px var(--cell), 0 0 0 4px var(--tint); }
.cms-del { display: block; width: 100%; margin-top: 30px; padding: 12px 15px; background: var(--cell); color: var(--red); font-size: 17px; text-align: left; border-top: .5px solid var(--sep); border-bottom: .5px solid var(--sep); }
.cms-foot { padding: 14px 15px 0; font-size: 13px; color: var(--text2); letter-spacing: 0; }
.cms-inline { margin-left: 8px; color: var(--tint); font-size: 13px; }
.alert.al-busy .al-btns { opacity: .45; pointer-events: none; }

/* Impressum-Link auf dem Sperrbildschirm */
.ls-legal { position: absolute; left: 12px; bottom: 8px; z-index: 3; font-size: 10px; color: rgba(255, 255, 255, .72); text-decoration: none; letter-spacing: .01em; text-shadow: 0 0 4px rgba(0, 0, 0, .55); }
.ls-legal:hover { color: #fff; text-decoration: underline; }
.wpl-lock .ls-legal { color: rgba(0, 0, 0, .6); text-shadow: 0 0 4px rgba(255, 255, 255, .7); }
.wpl-lock .ls-legal:hover { color: #000; }
