.hm-notification-widget {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    font-family: inherit;
}

.hm-notification-bell {
    position: relative;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    box-shadow: 0 18px 38px rgba(37, 99, 235, .32);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform .18s ease, box-shadow .18s ease;
}

.hm-notification-bell:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(37, 99, 235, .42);
}

.hm-notification-bell-icon {
    font-size: 1.35rem;
}

.hm-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-weight: 900;
    font-size: .75rem;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
}

.hm-notification-panel {
    position: absolute;
    right: 0;
    bottom: 66px;
    width: min(360px, calc(100vw - 28px));
    border-radius: 22px;
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(15, 23, 42, .1);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .24);
    overflow: hidden;
}

.hm-notification-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    background: linear-gradient(135deg, #eff6ff, #fff);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.hm-notification-panel-head strong {
    color: #0f172a;
}

.hm-notification-panel-head a,
.hm-notification-profile-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 800;
    font-size: .88rem;
}

.hm-notification-status {
    padding: 12px 16px 0;
    color: #64748b;
    font-size: .9rem;
    line-height: 1.4;
}

.hm-notification-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
}

.hm-notification-sound-btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 13px;
    font-weight: 900;
    cursor: pointer;
    color: #fff;
    background: #2563eb;
}

.hm-notification-sound-btn.is-on {
    background: #16a34a;
}

.hm-notification-sound-btn.is-muted {
    background: #f59e0b;
}

.hm-notification-sound-btn.is-off {
    background: #2563eb;
}

.hm-notification-list {
    max-height: 280px;
    overflow: auto;
    padding: 0 10px 10px;
}

.hm-notification-item {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 16px;
    text-decoration: none;
    color: #0f172a;
    background: #f8fafc;
    margin-top: 8px;
    border: 1px solid rgba(15, 23, 42, .06);
}

.hm-notification-item:hover {
    background: #eff6ff;
}

.hm-notification-item span,
.hm-notification-empty {
    color: #64748b;
    font-size: .9rem;
}

.hm-notification-empty {
    padding: 12px;
    margin: 0;
}

.hm-notification-toast {
    position: absolute;
    right: 0;
    bottom: 66px;
    width: min(330px, calc(100vw - 28px));
    padding: 14px 16px;
    border-radius: 18px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 20px 46px rgba(15, 23, 42, .28);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
}

.hm-notification-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 720px) {
    .hm-notification-widget {
        right: 14px;
        bottom: 14px;
    }

    .hm-notification-bell {
        width: 50px;
        height: 50px;
    }
}

/* Akustischer Benachrichtigungston - Mini-Bedienfeld */
.hm-sound-file-mini-panel {
    position: fixed;
    right: 18px;
    bottom: 92px;
    z-index: 9998;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    max-width: min(92vw, 380px);
    pointer-events: auto;
}

.hm-sound-file-mini-button {
    border: 0;
    border-radius: 999px;
    padding: 9px 13px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, #0f7a5f, #15a37f);
    box-shadow: 0 12px 28px rgba(15, 122, 95, .22);
}

.hm-sound-file-mini-button.secondary {
    color: #16352e;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(15,122,95,.18);
}

html[data-hm-notification-sound="active"] .hm-sound-file-mini-button[data-hm-sound-status] {
    background: linear-gradient(135deg, #0b7f55, #13b77b);
}

html[data-hm-notification-sound="silent"] .hm-sound-file-mini-button[data-hm-sound-status] {
    background: linear-gradient(135deg, #7c6f10, #b49b18);
}

html[data-hm-notification-sound="off"] .hm-sound-file-mini-button[data-hm-sound-status] {
    background: linear-gradient(135deg, #6b7280, #374151);
}

@media (max-width: 760px) {
    .hm-sound-file-mini-panel {
        right: 12px;
        left: 12px;
        bottom: 84px;
        justify-content: flex-end;
    }

    .hm-sound-file-mini-button {
        padding: 8px 11px;
        font-size: 12px;
    }
}

/* Testton abspielen */
.hm-test-sound-wrap {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}

.hm-test-sound-button,
.hm-test-sound-floating-button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: .8rem 1.1rem;
    font-weight: 800;
    letter-spacing: .01em;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 12px 30px rgba(239, 68, 68, .28);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.hm-test-sound-button:hover,
.hm-test-sound-floating-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 38px rgba(239, 68, 68, .34);
}

.hm-test-sound-button:disabled,
.hm-test-sound-floating-button:disabled {
    opacity: .75;
    cursor: wait;
}

.hm-test-sound-button.is-playing,
.hm-test-sound-floating-button.is-playing {
    animation: hmTestSoundPulse .7s ease-in-out infinite alternate;
}

.hm-test-sound-hint {
    margin-top: .55rem;
    color: rgba(255,255,255,.72);
    font-size: .92rem;
    line-height: 1.45;
}

.hm-test-sound-status {
    margin-top: .55rem;
    min-height: 1.2rem;
    font-size: .92rem;
    font-weight: 700;
}

.hm-test-sound-status.ok {
    color: #86efac;
}

.hm-test-sound-status.error {
    color: #fca5a5;
}

.hm-test-sound-status.info {
    color: #bfdbfe;
}

.hm-test-sound-card {
    margin-top: 1.2rem;
}

.hm-test-sound-floating {
    position: fixed;
    right: 1rem;
    bottom: 5.3rem;
    z-index: 9997;
    max-width: 260px;
    padding: .65rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, .92);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 18px 45px rgba(0,0,0,.35);
    backdrop-filter: blur(14px);
}

.hm-test-sound-floating .hm-test-sound-status {
    max-width: 220px;
    font-size: .78rem;
}

@keyframes hmTestSoundPulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.035);
    }
}

@media (max-width: 720px) {
    .hm-test-sound-floating {
        right: .75rem;
        bottom: 5rem;
        max-width: 210px;
    }

    .hm-test-sound-floating-button {
        padding: .7rem .9rem;
        font-size: .9rem;
    }
}
