/* ==========================================================================
   System-Oberflaeche
   Milchglas ohne backdrop-filter: Flaechen zeigen eine vorab weichgezeichnete
   Kopie des Hintergrundbilds (.frost / *-bg mit filter: blur).
   ========================================================================== */

.wallpaper { background: var(--wall) center / cover no-repeat, #000; z-index: 0; }

/* ---------------- Statusleiste ---------------- */
.statusbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 54px;
    display: flex;
    justify-content: space-between;
    z-index: 50;
    pointer-events: none;
    transition: color .25s;
}
.statusbar.tone-light { color: #fff; }
.statusbar.tone-dark { color: #000; }
.sb-side {
    width: 132px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-top: 3px;
    pointer-events: auto;
    cursor: pointer;
}
.sb-time { font-size: 17px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; padding-left: 8px; }
.sb-right { padding-right: 6px; gap: 5px; }
.sb-signal { display: flex; align-items: flex-end; gap: 1.6px; height: 11px; }
.sb-signal i { width: 3.2px; border-radius: 1px; background: currentColor; opacity: .32; }
.sb-signal i:nth-child(1) { height: 4px; }
.sb-signal i:nth-child(2) { height: 6.2px; }
.sb-signal i:nth-child(3) { height: 8.4px; }
.sb-signal i:nth-child(4) { height: 11px; }
.sb-signal i.on { opacity: 1; }
.sb-net { font-size: 13px; font-weight: 700; letter-spacing: -.02em; }
/* Funknetz (vyce-voltpower): Netzbetreiber auf Sperrbildschirm/Kontrollzentrum, "SOS" bei 0 Balken */
.sb-carrier { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; max-width: 118px; padding-left: 10px; }
.sb-sos { letter-spacing: .02em; }
.sb-battery { display: flex; align-items: center; gap: 1px; }
.sb-battery-body {
    width: 25px; height: 12px;
    border-radius: 4px;
    border: 1.1px solid currentColor;
    opacity: .95;
    padding: 1.4px;
    position: relative;
}
.sb-battery-body { border-color: rgba(128, 128, 128, .7); }
.tone-light .sb-battery-body { border-color: rgba(255, 255, 255, .45); }
.tone-dark .sb-battery-body { border-color: rgba(0, 0, 0, .4); }
.sb-battery-fill { height: 100%; border-radius: 2px; background: currentColor; }
.sb-battery.low .sb-battery-fill { background: #ff453a; }
.sb-battery.charging .sb-battery-fill { background: #30d158; }
.sb-battery-cap { width: 1.6px; height: 4px; border-radius: 0 1px 1px 0; background: currentColor; opacity: .45; }

/* ---------------- Dynamic Island ---------------- */
.island {
    position: absolute;
    top: 11px;
    left: 50%;
    width: 126px;
    height: 37px;
    transform: translateX(-50%);
    background: #000;
    border-radius: 20px;
    z-index: 56;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    transition: width .5s var(--spring), height .5s var(--spring), border-radius .5s var(--ease-out), top .4s var(--ease-out);
}
.island.m-call { width: 232px; justify-content: space-between; padding: 0 14px 0 8px; cursor: pointer; }
.island-left { display: flex; align-items: center; gap: 8px; color: #30d158; font-size: 15px; font-weight: 600; }
.island-callicon {
    width: 24px; height: 24px; border-radius: 50%;
    background: #30d158; color: #000;
    display: flex; align-items: center; justify-content: center;
}
.island-wave { display: flex; align-items: center; gap: 2.5px; height: 16px; }
.island-wave i { width: 3px; height: 100%; border-radius: 2px; background: #30d158; animation: wave .9s ease-in-out infinite alternate; }
@keyframes wave { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.island.m-incoming { width: 372px; height: 76px; top: 8px; border-radius: 38px; padding: 0 12px 0 14px; gap: 12px; }
.island-text { flex: 1; min-width: 0; }
.island-sub { font-size: 13px; color: rgba(255, 255, 255, .6); }
.island-title { font-size: 17px; font-weight: 600; }
.island-btn {
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #fff; flex: 0 0 auto;
}
.island-btn.red { background: #ff3b30; }
.island-btn.green { background: #34c759; }
.island.m-face { width: 128px; height: 128px; border-radius: 42px; top: 11px; justify-content: center; }
.island-face { color: #fff; animation: face .5s var(--ease-out); }
@keyframes face { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------------- Homescreen ---------------- */
.home { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
/* eigene GPU-Ebene: Wischen verschiebt nur die fertige Ebene, nichts wird neu gezeichnet */
.home-pages { display: flex; height: 100%; transition: transform .38s cubic-bezier(.25, 1, .3, 1); will-change: transform; transform: translate3d(0, 0, 0); }
.home-pages.dragging { transition: none; }
.home-page { flex: 0 0 390px; height: 100%; padding-top: 66px; }

.widgets {
    display: grid;
    grid-template-columns: 158px 158px;
    column-gap: 22px;
    padding: 0 26px;
    margin-bottom: 14px;
}
.widget {
    height: 158px;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.widget-labels { grid-column: 1 / -1; display: grid; grid-template-columns: 158px 158px; column-gap: 22px; }
.widget-labels span { text-align: center; font-size: 12px; font-weight: 500; color: #fff; margin-top: 6px; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.w-weather {
    background: linear-gradient(180deg, #3f8fe8 0%, #6db2f2 100%);
    padding: 14px 15px;
    display: flex; flex-direction: column;
}
.w-weather.night { background: linear-gradient(180deg, #0f1a3a 0%, #2c3c6e 100%); }
.ww-top { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; }
.ww-temp { font-size: 44px; font-weight: 300; line-height: 1.05; letter-spacing: -.02em; }
.ww-bottom { margin-top: auto; font-size: 13px; font-weight: 600; line-height: 1.3; }
.ww-bottom .ph-icon { margin-bottom: 3px; }
.ww-hl { font-weight: 500; opacity: .9; }
.w-clock { background: #f5f5f7; display: flex; align-items: center; justify-content: center; }
.clockface .cf-bg { fill: #fff; }
.clockface .cf-ticks line { stroke: #1c1c1e; stroke-width: 1.3; stroke-linecap: round; }
.clockface .cf-nums text { font-size: 11px; font-weight: 600; fill: #1c1c1e; text-anchor: middle; font-family: var(--font); }
.clockface .cf-h { stroke: #1c1c1e; stroke-width: 3.6; stroke-linecap: round; }
.clockface .cf-m { stroke: #1c1c1e; stroke-width: 2.4; stroke-linecap: round; }
.clockface .cf-dot { fill: #1c1c1e; }
.clockface .cf-pin { fill: #ff9f0a; }

.home-grid {
    display: grid;
    grid-template-columns: repeat(4, 86px);
    grid-auto-rows: 94px;
    padding: 0 23px;
}
.home-slot { display: flex; justify-content: center; }
.home-app {
    display: flex; flex-direction: column; align-items: center;
    width: 80px;
    cursor: pointer;
    transition: transform .15s;
}
.home-app:active { transform: scale(.94); }
.home-icon { position: relative; }
.home-icon .ph-badge { position: absolute; top: -7px; right: -8px; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
/* App Store: Laden (Kreis-Fortschritt wie iOS) + Loeschen im Bearbeiten-Modus */
.home-icon.installing .ph-app-icon { filter: saturate(.35) brightness(.75); }
.home-pie {
    position: absolute;
    left: 50%; top: 50%;
    width: 40px; height: 40px;
    margin: -20px 0 0 -20px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .55);
    pointer-events: none;
}
.home-remove {
    position: absolute;
    top: -8px; left: -8px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(118, 118, 128, .92);
    color: #000;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
    z-index: 2;
}
.home-remove:active { transform: scale(.88); }
.home-label {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
    max-width: 80px;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    letter-spacing: -.005em;
}
.home.editing .home-app { animation: jiggle .26s ease-in-out infinite alternate; }
.home.editing .home-slot:nth-child(2n) .home-app { animation-delay: -.13s; animation-direction: alternate-reverse; }
.home-app.dragging { opacity: 0; }
@keyframes jiggle { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
.home-slot-end { min-height: 80px; }
/* gezogenes Icon (folgt der Maus, Position per JS) */
.home-ghost { position: absolute; left: 0; top: 0; z-index: 20; pointer-events: none; will-change: transform; }
.home-ghost .ph-app-icon, .home-ghost .home-folder { box-shadow: 0 12px 28px rgba(0, 0, 0, .38); }
.home.icon-drag, .home.icon-drag * { cursor: grabbing !important; }
.home-hint {
    position: absolute; bottom: 140px; left: 20px; right: 20px; z-index: 5;
    text-align: center; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .85);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    pointer-events: none;
}

/* ---------------- Ordner ---------------- */
.home-folder {
    width: 62px; height: 62px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .26);
    box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .28), 0 2px 8px rgba(0, 0, 0, .12);
    padding: 7px;
    transition: transform .2s var(--ease-out), background .2s;
}
.hf-grid { display: grid; grid-template-columns: repeat(3, 14px); grid-auto-rows: 14px; gap: 3px 4px; }
.hf-grid .ph-app-icon { box-shadow: 0 .5px 1px rgba(0, 0, 0, .2); }
.home-icon.merge-into .home-folder { transform: scale(1.14); background: rgba(255, 255, 255, .4); }
/* App wird zum Ordner: Ordner-Hintergrund waechst hinter dem Ziel-Icon */
.home-icon.merge-target::before {
    content: '';
    position: absolute;
    left: -6px; top: -6px; right: -6px; bottom: -6px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .34);
    animation: hf-grow .22s var(--ease-out);
}
.home-icon.merge-target .ph-app-icon { position: relative; transform: scale(.86); transition: transform .2s var(--ease-out); }
@keyframes hf-grow { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.folder-ov { position: absolute; inset: 0; z-index: 8; overflow: hidden; }
.frost-folder { left: 0; top: 0; filter: blur(30px) saturate(1.5) brightness(.62); transform: scale(1.1); }
.folder-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .18); }
.folder-title {
    position: absolute; left: 30px; right: 30px; top: 168px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    color: #fff;
    font-size: 30px; font-weight: 700; letter-spacing: -.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
.folder-title span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.folder-title svg { opacity: .55; flex: 0 0 auto; }
.folder-title:active { opacity: .7; }
.folder-panel {
    position: absolute; left: 34px; right: 34px; top: 228px;
    height: 330px;
    border-radius: 38px;
    background: rgba(255, 255, 255, .2);
    box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .25), 0 14px 40px rgba(0, 0, 0, .25);
    padding: 22px 8px;
}
.folder-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 96px; height: 100%; overflow-y: auto; }
.folder-hint { position: absolute; left: 0; right: 0; top: 576px; text-align: center; color: rgba(255, 255, 255, .7); font-size: 13px; font-weight: 500; }
.folder-enter-active, .folder-leave-active { transition: opacity .28s var(--ease-out); }
.folder-enter-active .folder-panel, .folder-leave-active .folder-panel,
.folder-enter-active .folder-title, .folder-leave-active .folder-title { transition: transform .34s var(--spring), opacity .28s; }
.folder-enter-from, .folder-leave-to { opacity: 0; }
.folder-enter-from .folder-panel, .folder-leave-to .folder-panel { transform: scale(.4); opacity: 0; }
.folder-enter-from .folder-title, .folder-leave-to .folder-title { transform: translateY(20px); opacity: 0; }
.home-done, .home-add {
    position: absolute; top: 14px; z-index: 5;
    height: 30px; border-radius: 15px;
    background: rgba(120, 120, 128, .55);
    color: #fff; font-size: 15px; font-weight: 600;
    padding: 0 16px;
    display: flex; align-items: center;
}
.home-done { right: 18px; }
.home-add { left: 18px; padding: 0 8px; }

.home-dots {
    position: absolute; left: 0; right: 0; bottom: 122px;
    display: flex; justify-content: center; gap: 9px;
}
.home-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .4); cursor: pointer; }
.home-dots i.on { background: #fff; }

.dock {
    position: absolute;
    left: 12px; right: 12px; bottom: 12px;
    height: 96px;
    border-radius: 36px;
    overflow: hidden;
}
.frost {
    position: absolute;
    width: 390px;
    height: 844px;
    background: var(--wall) center / cover no-repeat;
    filter: blur(26px) saturate(1.7) brightness(.92);
}
.frost-dock { left: -12px; top: -736px; }
.dock::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 36px;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .22);
    pointer-events: none;
}
.dock-row {
    position: relative; z-index: 1;
    display: flex; justify-content: space-around; align-items: center;
    height: 100%;
    padding: 0 6px;
}

/* ---------------- Sperrbildschirm ---------------- */
.lock {
    position: absolute; inset: 0;
    z-index: 30;
    color: #fff;
    transform: translateY(var(--ly, 0px));
    transition: transform .38s var(--ease-out), opacity .38s;
    overflow: hidden;
    will-change: transform;
}
.lock.dragging { transition: none; }
.lock.unlocking { transform: translateY(-104%); transition: transform .5s cubic-bezier(.55, .05, .4, 1) .08s; }
.lock-bg { background: var(--lockwall) center / cover no-repeat, #000; }
.lock-shade { background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .35) 100%); }
.lock-padlock { position: absolute; top: 58px; left: 0; right: 0; display: flex; justify-content: center; opacity: .95; }
.lock-date { position: absolute; top: 90px; left: 0; right: 0; text-align: center; font-size: 20px; font-weight: 600; opacity: .92; letter-spacing: -.01em; }
.lock-time {
    position: absolute; top: 112px; left: 0; right: 0;
    text-align: center;
    font-size: 104px; font-weight: 600; line-height: 1;
    letter-spacing: -.045em;
    opacity: .97;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .12);
}
.lock-widgets {
    position: absolute; top: 232px; left: 30px; right: 30px;
    display: flex; justify-content: center; gap: 16px;
    font-size: 15px; font-weight: 600;
}
.lw { display: flex; align-items: center; gap: 6px; min-width: 0; opacity: .92; }
.lock-notes { position: absolute; top: 290px; bottom: 118px; left: 10px; right: 10px; }
.lock-note {
    display: flex; gap: 11px;
    padding: 12px 14px;
    border-radius: 22px;
    background: rgba(40, 40, 44, .74);
    color: #fff;
    margin-bottom: 8px;
    cursor: pointer;
    box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .08);
}
.lock-note .ph-app-icon { border-radius: 9px !important; }
.ln-body { flex: 1; min-width: 0; }
.ln-head { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.ln-head b { font-weight: 600; }
.ln-head .ph-time { font-size: 13px; color: rgba(255, 255, 255, .55); flex: 0 0 auto; }
.ln-text { font-size: 15px; line-height: 1.3; opacity: .92; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lock-bottom {
    position: absolute; left: 46px; right: 46px; bottom: 44px;
    display: flex; justify-content: space-between; align-items: center;
}
.lock-btn {
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(0, 0, 0, .34);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12);
}
.lock-btn:active { background: rgba(255, 255, 255, .35); }
.lock-hint { font-size: 13px; font-weight: 500; opacity: .75; position: absolute; left: 0; right: 0; bottom: -28px; text-align: center; pointer-events: none; }
.lockfade-leave-active { transition: opacity .2s .5s; }
.lockfade-leave-to { opacity: 0; }
.lockfade-enter-active { transition: opacity .25s; }
.lockfade-enter-from { opacity: 0; }

/* ---------------- App-Host ---------------- */
.app-host {
    position: absolute; inset: 0;
    z-index: 10;
    transition: transform .44s var(--ease-out), opacity .3s var(--ease-out), border-radius .44s;
    border-radius: 54px;
    overflow: hidden;
}
.app-host.from { transform: scale(.14); opacity: 0; transition: none; border-radius: 80px; }
.app-host.closing { transform: scale(.14); opacity: 0; transition: transform .3s cubic-bezier(.4, 0, .6, 1), opacity .26s; pointer-events: none; }
.app-host-inner { position: absolute; inset: 0; background: var(--bg); overflow: hidden; }

/* ---------------- Banner ---------------- */
.banners { position: absolute; top: 54px; left: 8px; right: 8px; z-index: 70; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.banner {
    display: flex; gap: 11px; align-items: center;
    padding: 11px 14px 11px 12px;
    border-radius: 24px;
    background: rgba(32, 32, 35, .95);
    color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .35), inset 0 0 0 .5px rgba(255, 255, 255, .08);
    pointer-events: auto;
    cursor: pointer;
    position: relative;
}
.theme-light .banner { background: rgba(250, 250, 252, .97); color: #000; box-shadow: 0 8px 30px rgba(0, 0, 0, .18); }
.banner .ph-app-icon { border-radius: 9px !important; }
.bn-body { flex: 1; min-width: 0; }
.bn-head { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.bn-head b { font-weight: 600; }
.bn-head span { font-size: 13px; opacity: .5; flex: 0 0 auto; }
.bn-text { font-size: 15px; line-height: 1.28; opacity: .9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bn-x { position: absolute; top: -4px; left: -4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(90, 90, 95, .95); color: #fff; display: none; align-items: center; justify-content: center; }
.banner:hover .bn-x { display: flex; }
.banner-enter-active, .banner-leave-active { transition: transform .45s var(--spring), opacity .35s; }
.banner-enter-from, .banner-leave-to { transform: translateY(-130%); opacity: 0; }

/* ---------------- Toasts ---------------- */
.toasts { position: absolute; top: 60px; left: 0; right: 0; z-index: 95; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.toast {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    border-radius: 22px;
    background: rgba(28, 28, 30, .95);
    color: #fff;
    font-size: 15px; font-weight: 500;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .3);
    max-width: 330px;
}
.theme-light .toast { background: rgba(255, 255, 255, .98); color: #000; }
.toast.k-ok .ph-icon { color: #30d158; }
.toast.k-error .ph-icon { color: #ff453a; }
.toast.k-info .ph-icon { color: var(--accent); }
.toast-enter-active, .toast-leave-active { transition: transform .35s var(--spring), opacity .25s; }
.toast-enter-from, .toast-leave-to { transform: translateY(-16px) scale(.94); opacity: 0; }

/* ---------------- Home-Indikator ---------------- */
.homebar {
    position: absolute; bottom: 0; left: 50%;
    width: 200px; height: 30px;
    transform: translateX(-50%);
    z-index: 80;
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 8px;
    cursor: pointer;
}
.homebar i { width: 134px; height: 5px; border-radius: 3px; background: currentColor; }
.homebar.tone-light { color: rgba(255, 255, 255, .92); }
.homebar.tone-dark { color: rgba(0, 0, 0, .85); }

/* ---------------- Anruf ---------------- */
.callscreen { position: absolute; inset: 0; z-index: 40; color: #fff; overflow: hidden; }
.cs-bg { background: var(--wall) center / cover no-repeat; filter: blur(34px) brightness(.42) saturate(1.3); transform: scale(1.15); }
.cs-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .45)); }
.cs-min { position: absolute; top: 58px; left: 16px; color: rgba(255, 255, 255, .8); z-index: 2; }
.cs-top { position: absolute; top: 104px; left: 20px; right: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cs-avatar { margin-bottom: 16px; box-shadow: 0 8px 30px rgba(0, 0, 0, .3); }
.cs-name { font-size: 32px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; max-width: 340px; }
.cs-sub { font-size: 18px; color: rgba(255, 255, 255, .7); margin-top: 6px; min-height: 22px; word-break: break-all; }
.cs-grid { position: absolute; left: 0; right: 0; bottom: 240px; display: flex; justify-content: center; gap: 26px; }
.cs-act { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.cs-round {
    width: 78px; height: 78px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: background .15s, transform .15s;
}
.cs-round:active { transform: scale(.94); }
.cs-round:disabled { opacity: .45; }
.cs-round.glass { background: rgba(255, 255, 255, .17); }
.cs-round.glass.on { background: #fff; color: #000; }
.cs-round.red { background: #ff3b30; }
.cs-round.green { background: #34c759; }
.cs-round.pulse { animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, .55); } 100% { box-shadow: 0 0 0 22px rgba(52, 199, 89, 0); } }
.cs-bottom { position: absolute; left: 0; right: 0; bottom: 74px; display: flex; justify-content: center; }
.cs-hide { position: absolute; right: 52px; top: 26px; font-size: 17px; color: #fff; }
.cs-incoming { position: absolute; left: 44px; right: 44px; bottom: 84px; display: flex; justify-content: space-between; }
.cs-incoming-extra { position: absolute; left: 0; right: 0; bottom: 230px; display: flex; justify-content: center; }
.cs-mini { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font-size: 13px; font-weight: 500; }
.cs-keypad { position: absolute; left: 0; right: 0; bottom: 176px; display: grid; grid-template-columns: repeat(3, 78px); justify-content: center; gap: 16px 24px; }
.cs-key {
    width: 78px; height: 78px; border-radius: 50%;
    background: rgba(255, 255, 255, .17); color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.cs-key:active { background: rgba(255, 255, 255, .45); }
.cs-key b { font-size: 34px; font-weight: 400; line-height: 1; }
.cs-key small { font-size: 10px; font-weight: 600; letter-spacing: .12em; margin-top: 1px; min-height: 12px; }
.callview-enter-active, .callview-leave-active { transition: opacity .3s, transform .35s var(--ease-out); }
.callview-enter-from, .callview-leave-to { opacity: 0; transform: scale(1.04); }

/* ---------------- Kontrollzentrum ---------------- */
.cc { position: absolute; inset: 0; z-index: 45; color: #fff; }
.cc-bg { background: var(--wall) center / cover no-repeat; filter: blur(30px) brightness(.46) saturate(1.4); transform: scale(1.12); }
.cc-grid {
    position: absolute; top: 72px; left: 24px; right: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 72px;
    gap: 16px;
}
.cc-tile {
    border-radius: 22px;
    background: rgba(255, 255, 255, .13);
    box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .1);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cc-conn { grid-column: span 2; grid-row: span 2; display: grid; grid-template-columns: 1fr 1fr; place-items: center; padding: 10px; border-radius: 28px; }
.cc-circle {
    width: 58px; height: 58px; border-radius: 50%;
    background: rgba(255, 255, 255, .2); color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.cc-circle.on.orange { background: #ff9f0a; }
.cc-circle.on.green { background: #30d158; }
.cc-circle.on.red { background: #ff453a; }
.cc-circle.on.blue { background: #0a84ff; }
.cc-col { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; gap: 16px; }
.cc-wide { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 12px; text-align: left; }
.cc-wide b { display: block; font-size: 14px; font-weight: 600; }
.cc-wide small { font-size: 13px; opacity: .65; }
.cc-wide-icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .2); flex: 0 0 auto; }
.cc-wide.on { background: rgba(255, 255, 255, .92); color: #000; }
.cc-wide.on .cc-wide-icon.purple { background: #5e5ce6; color: #fff; }
.cc-slider { grid-row: span 2; cursor: ns-resize; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18px; border-radius: 24px; }
.cc-slider-fill { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; }
.cc-slider .ph-icon { position: relative; color: #8e8e93; mix-blend-mode: normal; }
.cc-sq { display: flex; align-items: center; justify-content: center; }
.cc-sq.on { background: #fff; color: #000; }
.cc-enter-active, .cc-leave-active, .nc-enter-active, .nc-leave-active { transition: opacity .3s, transform .38s var(--ease-out); }
.cc-enter-from, .cc-leave-to { opacity: 0; transform: scale(1.06); }
.nc-enter-from, .nc-leave-to { opacity: 0; transform: translateY(-30px); }

/* ---------------- Mitteilungszentrale ---------------- */
.nc { position: absolute; inset: 0; z-index: 44; color: #fff; }
.nc-bg { background: var(--lockwall) center / cover no-repeat; filter: blur(24px) brightness(.5) saturate(1.3); transform: scale(1.1); }
.nc-date { position: absolute; top: 70px; left: 0; right: 0; text-align: center; font-size: 19px; font-weight: 600; opacity: .9; }
.nc-time { position: absolute; top: 92px; left: 0; right: 0; text-align: center; font-size: 84px; font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.nc-head { position: absolute; top: 204px; left: 22px; right: 18px; display: flex; justify-content: space-between; align-items: center; font-size: 20px; font-weight: 700; }
.nc-head button { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .22); color: #fff; display: flex; align-items: center; justify-content: center; }
.nc-list { position: absolute; top: 246px; bottom: 40px; left: 10px; right: 10px; }
.nc-item { background: transparent !important; border-radius: 22px; margin-bottom: 8px; }
.nc-item .lock-note { margin: 0; }
.nc-item .ph-swipe-actions button { border-radius: 22px; margin-left: 6px; }
.nc-empty { text-align: center; margin-top: 60px; opacity: .6; font-size: 15px; }

/* ---------------- Dialoge ---------------- */
.alerts { position: absolute; inset: 0; z-index: 90; pointer-events: none; }
.alert-wrap {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, .42);
    display: flex; align-items: center; justify-content: center;
    pointer-events: auto;
}
.alert-wrap.k-actions { align-items: flex-end; padding: 0 8px 30px; }
.alert {
    width: 272px;
    border-radius: 16px;
    background: rgba(44, 44, 46, .98);
    color: var(--label);
    overflow: hidden;
    text-align: center;
}
.theme-light .alert, .theme-light .as-group, .theme-light .as-cancel { background: rgba(245, 245, 247, .99); }
.al-body { padding: 20px 16px 16px; }
.al-title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.al-text { font-size: 13px; line-height: 1.38; margin-top: 3px; color: var(--label); opacity: .85; }
.al-input {
    width: 100%; margin-top: 14px;
    height: 32px; border-radius: 8px;
    border: .5px solid var(--sep);
    background: var(--bg-elev);
    color: var(--label);
    font-size: 14px; padding: 0 8px; outline: none;
}
.al-btns { display: flex; border-top: .5px solid var(--sep); }
.al-btns button { flex: 1; height: 44px; font-size: 17px; color: var(--accent); }
.al-btns button + button { border-left: .5px solid var(--sep); }
.al-btns button.bold { font-weight: 600; }
.al-btns button.destructive { color: var(--red); }
.al-btns button.cancel { font-weight: 400; }
.al-btns button:active { background: var(--fill2); }
.al-btns.stacked { flex-direction: column; }
.al-btns.stacked button + button { border-left: 0; border-top: .5px solid var(--sep); }
.actionsheet { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.as-group { border-radius: 14px; overflow: hidden; background: rgba(44, 44, 46, .98); }
.as-head { padding: 14px 16px; text-align: center; font-size: 13px; color: var(--label2); display: flex; flex-direction: column; gap: 3px; border-bottom: .5px solid var(--sep); }
.as-head b { font-weight: 600; }
.as-btn { width: 100%; height: 57px; font-size: 20px; color: var(--accent); display: flex; align-items: center; justify-content: center; gap: 10px; }
.as-group .as-btn + .as-btn { border-top: .5px solid var(--sep); }
.as-btn.destructive { color: var(--red); }
.as-btn:active { background: var(--fill2); }
.as-cancel { border-radius: 14px; background: rgba(44, 44, 46, .98); font-weight: 600; }
.alert-enter-active, .alert-leave-active { transition: opacity .22s; }
.alert-enter-active .alert, .alert-leave-active .alert { transition: transform .25s var(--ease-out), opacity .22s; }
.alert-enter-active .actionsheet, .alert-leave-active .actionsheet { transition: transform .32s var(--ease-out); }
.alert-enter-from, .alert-leave-to { opacity: 0; }
.alert-enter-from .alert { transform: scale(1.12); }
.alert-leave-to .alert { transform: scale(.96); }
.alert-enter-from .actionsheet, .alert-leave-to .actionsheet { transform: translateY(110%); }

/* ---------------- Auswahl ---------------- */
.picker { z-index: 85; }
.picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.picker-cell { aspect-ratio: 1; cursor: pointer; }
.picker-cell:active { opacity: .7; }
#ph-overlay { position: absolute; inset: 0; z-index: 60; pointer-events: none; }
#ph-overlay > * { pointer-events: auto; }

/* ---------------- SIM-System (js/core/sim.js) ---------------- */
.sb-nosim { font-size: 12.5px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.sim-nonet { display: flex; align-items: center; justify-content: center; background: var(--bg-grouped); color: var(--label); padding: 70px 26px 50px; }
.sim-nonet-box { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.sim-nonet-icon { width: 84px; height: 84px; border-radius: 26px; display: flex; align-items: center; justify-content: center; background: var(--fill); color: var(--label2); margin-bottom: 20px; }
.sim-nonet-title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.sim-nonet-text { margin-top: 10px; font-size: 15px; color: var(--label2); line-height: 1.4; }
.sim-nonet-help { margin-top: 10px; font-size: 13.5px; color: var(--label3); line-height: 1.4; }
.sim-nonet-actions { margin-top: 26px; width: 100%; display: flex; flex-direction: column; gap: 10px; }

.sim-pin { position: absolute; inset: 0; z-index: 48; display: flex; flex-direction: column; align-items: center; color: #fff; padding-top: 96px;
    background: rgba(8, 8, 12, .94); }
.sim-pin-head { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sim-pin-title { font-size: 21px; font-weight: 600; }
.sim-pin-sub { font-size: 14px; color: rgba(255, 255, 255, .6); }
.sim-pin-dots { display: flex; gap: 22px; margin-top: 34px; }
.sim-pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid #fff; }
.sim-pin-dots i.on { background: #fff; }
.sim-pin-dots.shake { animation: simShake .4s; }
@keyframes simShake { 20% { transform: translateX(-12px); } 40% { transform: translateX(10px); } 60% { transform: translateX(-7px); } 80% { transform: translateX(4px); } }
.sim-pin-err { height: 20px; margin-top: 16px; font-size: 14px; color: #ff6961; }
.sim-pin-keys { display: grid; grid-template-columns: repeat(3, 78px); gap: 16px 26px; margin-top: 18px; }
.sim-pin-key { width: 78px; height: 78px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-family: inherit; font-size: 32px; font-weight: 400; line-height: 1;
    display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sim-pin-key:active { background: rgba(255, 255, 255, .4); }
.sim-pin-key.blank { background: transparent; pointer-events: none; }
.sim-pin-key.del { background: transparent; }
.sim-pin-cancel { margin-top: 28px; background: none; border: 0; color: #fff; font-size: 17px; cursor: pointer; }

/* Mehrere Handys (SIM-Task 3): Blatt "Handy wechseln", Knopf auf dem Sperrbildschirm, Kachel im Kontrollzentrum, Anruf-Hinweis */
.sim-devices { z-index: 86; }
.sim-devices .ph-sheet-body { padding-top: 4px; }
.sim-devices .ph-row-right { gap: 8px; }
.lock-devices {
    position: absolute; top: 258px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px;
    border-radius: 13px; background: rgba(0, 0, 0, .34); color: #fff;
    font-family: inherit; font-size: 12.5px; font-weight: 600; border: 0; cursor: pointer;
    box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14);
}
.lock-devices:active { background: rgba(255, 255, 255, .3); }
.lock-dot, .cc-dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: #ff453a; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .35); }
.cc-wide-icon { position: relative; }
.cc-wide-icon.blue { background: #0a84ff; color: #fff; }
.cc-dot { position: absolute; top: -1px; right: -1px; }
.cc-devices { grid-column: span 2; min-width: 0; }
.cc-devices > div:last-child { min-width: 0; }
.cc-devices b, .cc-devices small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.cs-device {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 12px;
    border-radius: 14px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 14px; font-weight: 600;
    box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .18);
}
.sim-boot { position: absolute; inset: 0; z-index: 55; background: #000; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.sim-boot-title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.sim-boot-text { font-size: 14px; color: rgba(255, 255, 255, .6); }
