/* ═══ 23. LOCK OVERLAY / PIN ═══ */

/* ============================================================
   Lock Overlay (Privacy PIN)
   ============================================================ */
.lock-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lock-overlay[hidden] { display: none; }

.lock-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 320px;
    max-width: 90vw;
    padding: 48px 32px;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
    border: 1px solid var(--border);
}

.lock-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 4px;
}

.lock-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.lock-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.lock-dots {
    display: flex;
    gap: 12px;
    margin: 4px 0;
}

.lock-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: transparent;
    transition: background 0.15s, border-color 0.15s;
}

.lock-dot.filled {
    background: var(--accent);
    border-color: var(--accent);
}

.lock-dot.shake {
    animation: lockDotShake 0.4s ease;
}

@keyframes lockDotShake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-4px); }
    40%       { transform: translateX(4px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

/* PIN input — sichtbares Eingabefeld, funktioniert auf allen Plattformen */
.lock-pin-input {
    width: 160px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 22px;
    letter-spacing: 10px;
    text-align: center;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s;
    font-size: 16px; /* iOS: verhindert Auto-Zoom */
}

.lock-pin-input:focus {
    border-color: var(--accent);
}

.lock-error {
    font-size: 13px;
    color: var(--red);
    text-align: center;
    min-height: 18px;
}

.lock-unlock-btn {
    width: 100%;
    margin-top: 4px;
}

.lock-logout-btn {
    font-size: 12px;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.15s;
    margin-top: 4px;
}

.lock-logout-btn:hover { color: var(--text); }

/* PIN settings: remove-row spacing handled inline */
#lockTimeoutRow { align-items: flex-start; }
#lockTimeoutRow .btn-group { flex-wrap: wrap; }
#lockTimeoutBtns .btn-sm { flex: 1; }

/* ═══ 24. ACCESSIBILITY ═══ */

/* ─── UX-006: Focus-Indikatoren für Keyboard-Navigation ─── */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ─── UX-007: Animationen für motion-sensitive User deaktivieren ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
