/* Overlay füllt rechten Bildschirmrand, vertikal scrollbar */
.notifications-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px; /* für Desktop */
    height: 100vh;
    background: #fff;
    border-left: 1px solid #ddd;
    box-shadow: -2px 0 5px rgba(0,0,0,0.15);
    z-index: 9999;
    transform: translateX(100%); /* anfangs versteckt */
    transition: transform 0.3s ease;
}

.filter-icon {
    height: 30px;       /* Icon-Größe anpassen */
    margin: 0 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.filter-icon:hover {
    opacity: 1;
}
.filter-icon.active {
    border-bottom: 2px solid #007bff;
    opacity: 1;
}

/* Vollbild bei schmalen Bildschirmen (z.B. Handy) */
@media (max-width: 768px) {
    .notifications-overlay {
        width: 100%;
    }
}

/* Sobald .show-Klasse ergänzt wird, sichtbar */
.notifications-overlay.show {
    transform: translateX(0);
}

/* Kopfzeile mit X-Button */
.notifications-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    background-color: #f8f8f8;
}

.notifications-overlay-close {
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}

.notification-filters {
    display: flex;
    justify-content: space-around; 
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background-color: #fafafa;
}

.filter-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.filter-icon-wrapper:hover,
.filter-icon-wrapper.active {
    opacity: 1;
}

.filter-label {
    font-size: 11px;
    margin-top: 4px;
    color: #444;
}

/* Einzelner Filter-Button */
.filter-btn {
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    background: #efefef;
    font-size: 14px;
    white-space: nowrap;
    color: #333;
    user-select: none;
    border: 1px solid #ddd;
}

.filter-btn.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Inhalt scrollen */
.notifications-overlay-content {
    height: calc(100vh - 110px); /* Platz abziehen für Header und Filter */
    overflow-y: auto;
    padding: 10px;
}

/* Notification-Einträge */
.notification-item {
    background: #fff;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

/* Titel, Text etc. wie gehabt */
.notification-title {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 5px;
}
.notification-text {
    font-size: 14px;
    color: #555;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.notification-timestamp {
    text-align: right;
    font-size: 12px;
    color: #888;
    line-height: 1.2;
}

.timestamp-small {
    font-size: 11px;
    color: #aaa;
}

.notifications-overlay.show {
  display: block;           /* <— zeigt das Element */
  transform: translateX(0);  /* <— schiebt ein */
}
.notifications-overlay .notification-item {
  display: block;         /* <-- zeig die Items, unless JS filtert sie */
}
