/* WTCHLST Notifications
   Feed-Style
   - Satz in einer Zeile mit normalem Umbruch bei Bedarf
   - Button „Gelesen" in eigener Fußzeile unter dem Content
   - Strenges Scoping, keine Kollision mit feed.css oder .desktop-nav-links */

div.notif-wrapper.notif-desktop {
    margin-left: var(--spacing-24);
}

.notif-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    /* isolation: isolate ist bewusst entfernt (2026-07-06):
       schuf einen Stacking-Kontext, in dem die Bell ueber Modals lag.
       Stattdessen setzt der Wrapper einen expliziten niedrigen z-index,
       damit Modals + Toasts immer drueberliegen. */
    z-index: var(--z-sticky);
    line-height: 1;
    font-family: var(--font-family);
    color: var(--text);
}

/* Wenn das Overlay offen ist (kein hidden-Attribut), heben wir den Wrapper
   ueber Standard-Overlays wie .custom-select (z-index: var(--z-overlay)).
   Ohne diesen Boost erzeugt der .notif-wrapper einen Stacking-Kontext auf
   Ebene 200, in dem der inner z-index des Overlays (1010) NICHT gegen aeussere
   Elemente wie custom-select (1000) durchschlaegt. Beim geoeffneten Overlay
   heben wir den Wrapper auf --z-modal - 1 (also 1099), damit er ueber
   Overlays liegt, aber unter echten Modals bleibt. Fix 2026-07-28. */
.notif-wrapper:has(.notif-overlay:not([hidden])) {
    z-index: calc(var(--z-modal) - 1);
}

.notif-wrapper .notif-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    border-radius: 50%;
}

.notif-wrapper .notif-btn:hover {
    color: var(--primary-color);
}

.notif-wrapper .notif-btn i {
    font-size: 18px;
    line-height: 1;
}

.notif-wrapper .notif-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    background: var(--accent-red);
    border-radius: 50%;
    border: 2px solid var(--background);
}

/* Mobile: Bell sitzt auf dem helleren Header-Ton (Light Mode).
   Border auf --background-active angleichen, damit die weisse Kontur
   im Light Mode nicht wie ein heller Ring um den roten Dot wirkt. */
.notif-wrapper.notif-mobile .notif-dot {
    border-color: var(--background-active);
}

/* Overlay */
.notif-wrapper .notif-overlay {
    position: absolute;
    top: 44px;
    right: -56px;
    width: clamp(280px, 92vw, 360px);
    background: var(--background);
    border: 1px solid var(--primary-color);
    border-radius: var(--spacing-12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    padding: 0;
    /* Dropdown liegt ueber normalen Overlays, aber unter Modals + Toasts.
       Wenn ein Modal offen ist, hat es Vorrang; Toasts immer ganz oben. */
    z-index: calc(var(--z-overlay) + 10);
    color: var(--text);
    overflow: hidden;
}

/* Reset im Overlay: verhindert Einflüsse aus Nav/Feed */
.notif-wrapper .notif-overlay,
.notif-wrapper .notif-overlay * {
    box-sizing: border-box;
    font-family: var(--font-family);
    letter-spacing: 0.3px;
}

.notif-wrapper .notif-overlay a {
    display: inline !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    color: var(--text-link) !important;
    text-decoration: none;
    vertical-align: baseline;
    border-bottom: var(--border-champagne);
    opacity: 1;
    font-size: inherit;
    font-weight: var(--fw-regular);
}

.notif-wrapper .notif-overlay a:has(> img) {
    border-bottom: none;
}

.desktop-nav-links .notif-wrapper .notif-overlay a {
    display: inline !important;
    gap: 0 !important;
}

/* Kopf */
.notif-wrapper .notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-12);
    padding: var(--spacing-12) var(--spacing-16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    min-width: 0;
    min-height: 56px;
}

.notif-wrapper .notif-title {
    margin: 0;
    font-size: 14px;
    font-weight: var(--fw-bold);
    color: var(--headline);
    line-height: 1.2;
    flex: 1;
    min-width: 0;
}

.notif-wrapper .notif-mark-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 112px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--text-sub);
    border-radius: var(--radius-full);
    padding: 0 var(--spacing-12);
    height: 32px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
    white-space: nowrap;
    visibility: visible;
    opacity: 1;
}

.notif-wrapper .notif-mark-all.is-hidden {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
}

.notif-wrapper .notif-mark-all:hover {
    background: var(--background-light);
    color: var(--text);
    border-color: var(--primary-color-hover);
}

/* Tabs */
.notif-wrapper .notif-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--background) 88%, var(--background-light));
}

.notif-wrapper .notif-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    padding: var(--spacing-12) 0;
    font-size: 14px;
    font-weight: var(--fw-regular);
    cursor: pointer;
    position: relative;
    transition: color 0.2s, background-color 0.2s;
}

.notif-wrapper .notif-tab:hover {
    color: var(--primary-color);
}

.notif-wrapper .notif-tab.active {
    color: var(--primary-color);
}

.notif-wrapper .notif-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

/* Liste */
.notif-wrapper .notif-list {
    max-height: 60vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Item-Layout:
   Row 1: avatar | content | dismiss-x
   Row 2: avatar | actions (colspan 2, nur wenn vorhanden) */
.notif-wrapper .notif-item {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    grid-template-areas:
        "avatar content dismiss"
        "avatar actions  actions";
    column-gap: var(--spacing-12);
    row-gap: var(--spacing-8);
    padding: var(--spacing-16) var(--spacing-24);
    align-items: start;
    border-bottom: var(--border-subtle);
    position: relative;
    transition: background-color 0.15s ease;
}

.notif-wrapper .notif-item:last-child {
    border-bottom: none;
}

.notif-wrapper .notif-item:hover {
    background: var(--background-hover);
}

/* Ungelesen: dezenter primary-Akzent links + zarter Background */
.notif-wrapper .notif-item.unread {
    background: var(--background-hover);
}

.notif-wrapper .notif-item.unread::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}

.notif-wrapper .notif-item .notif-avatar-link {
    grid-area: avatar;
    align-self: start;
}

.notif-wrapper .notif-item .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--background-light);
    border: 1px solid var(--background-dark);
    display: block;
}

.notif-wrapper .notif-item .notif-poster-avatar {
    grid-area: avatar;
    display: block;
    width: 32px;
    height: 48px;
    border-radius: var(--spacing-4);
    overflow: hidden;
    background: var(--background-light);
    border: 1px solid var(--background-dark);
    flex-shrink: 0;
    align-self: start;
}

.notif-wrapper .notif-item .notif-poster-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.notif-wrapper .notif-item .content {
    grid-area: content;
    min-width: 0;
    display: block;
}

.notif-wrapper .notif-item .content > * + * {
    margin-top: var(--spacing-8);
}

.notif-wrapper .notif-item .content .sentence {
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
    word-break: break-word;
    white-space: normal;
}

/* Timestamp außerhalb des Blocks */
.notif-wrapper .notif-item .content .meta {
    color: var(--text-sub);
    font-size: 14px;
    margin-top: var(--spacing-8);
    opacity: 0.95;
}

/* Dismiss-X oben rechts */
.notif-wrapper .notif-item .notif-dismiss {
    grid-area: dismiss;
    background: transparent;
    border: none;
    color: var(--text-sub);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s, background-color 0.2s;
    align-self: start;
    flex-shrink: 0;
}

.notif-wrapper .notif-item .notif-dismiss:hover {
    color: var(--text);
    background: var(--background-light);
}

.notif-wrapper .notif-item .notif-dismiss i {
    font-size: 13px;
    line-height: 1;
}

/* Actions-Fußzeile (nur für Annehmen/Ablehnen und Watchlog-Übernahme) */
.notif-wrapper .notif-item .actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    gap: var(--spacing-8);
    flex-wrap: wrap;
}

/* Empty State */
.notif-wrapper .notif-list .empty {
    padding: var(--spacing-16);
    color: var(--text-sub);
    text-align: center;
    font-size: 14px;
}

/* Fokus für A11y */
.notif-wrapper .notif-btn:focus-visible,
.notif-wrapper .notif-mark-all:focus-visible,
.notif-wrapper .notif-tab:focus-visible,
.notif-wrapper .notif-item .notif-dismiss:focus-visible,
.notif-wrapper .notif-overlay a:focus-visible,
.notif-announcement-close:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--radius-full);
}

/* Zusatz: Buttons für Interaktionen */
.notif-wrapper .actions .btn,
.btn {
    height: 32px;
    padding: 0 var(--spacing-12);
    border-radius: var(--radius-full);
    cursor: pointer;
    border: 1px solid var(--primary-color);
    color: var(--text-sub);
    background: transparent;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.notif-wrapper .actions .btn-accept,
.btn-accept {
    background: var(--primary-color);
    color: var(--text-darker);
    border-color: var(--primary-color);
}

.notif-wrapper .actions .btn-accept:hover,
.btn-accept:hover {
    background: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
}

.notif-wrapper .actions .btn-decline:hover,
.btn-decline:hover {
    background: var(--background-light);
    color: var(--text);
    border-color: var(--primary-color-hover);
}

/* Companion-tagged hint */
.notif-companion-hint {
    font-size: 13px;
    color: var(--text);
    font-weight: var(--fw-regular);
}

/* Home-spezifischer Anker für die Glocke */
.home-mobile-bell {
    position: absolute;
    top: var(--spacing-12);
    right: var(--spacing-12);
    /* War 2100 — kollidierte mit Toast (var(--z-toast) = 1200 alt / 100000000 neu).
       Sticky reicht: die Bell liegt ueber normalen Inhalten, aber
       Modals + Toasts bleiben drueber. */
    z-index: var(--z-sticky);
}

/* Breakpoints */
.notif-desktop {
    display: none;
}

.notif-mobile {
    display: none;
}

@media (max-width: 768px) {
    .notif-mobile {
        display: inline-flex;
        /* War 99999999 — lag ueber Modals + Toasts. Auf sticky-Level
           runter, damit Modals (--z-modal) und Toasts (--z-toast)
           immer drueberliegen. */
        z-index: var(--z-sticky);
    }

    .notif-desktop {
        display: none;
    }

    .notif-wrapper .notif-overlay {
        right: -12px;
        width: min(360px, 92vw);
    }
}

@media (min-width: 769px) {
    .notif-desktop {
        display: inline-flex;
    }

    .notif-mobile {
        display: none;
    }
}

/* Notification-Icon hinter Modalen verstecken */
.body-no-scroll .notif-mobile,
.body-no-scroll .home-mobile-bell {
    z-index: 1;
}

/* Kommentar/Reaction-Block */
.notif-wrapper .notif-comment-block {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-12);
    padding: var(--spacing-8) var(--spacing-12);
    background: var(--background-light);
    border: 1px solid var(--background-hover);
    border-radius: var(--spacing-8);
}

.notif-wrapper .notif-comment-block .notif-poster {
    width: 45px;
    height: 67px;
    object-fit: cover;
    border-radius: var(--spacing-4);
    flex-shrink: 0;
}

/* Review-Poster: gleiche Größe wie andere Notification-Poster */
.notif-wrapper .notif-comment-block .notif-comment-block-poster {
    width: 45px;
    height: 67px;
    object-fit: cover;
    border-radius: var(--spacing-4);
    flex-shrink: 0;
}

/* Reaction-Poster: Wrapper mit relativer Position, damit das Emoji-Overlay
   die untere rechte Ecke des Posters ueberragen kann. Leicht angeschraegt. */
.notif-wrapper .notif-comment-block .notif-reaction-poster-wrap {
    position: relative;
    flex-shrink: 0;
    width: 45px;
    height: 67px;
}
.notif-wrapper .notif-comment-block .notif-reaction-poster-wrap .notif-comment-block-poster {
    display: block;
    width: 100%;
    height: 100%;
}
.notif-wrapper .notif-comment-block .notif-reaction-emoji-overlay {
    position: absolute;
    right: -10px;
    bottom: -8px;
    font-size: 32px;
    line-height: 1;
    transform: rotate(12deg);
    transform-origin: center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
    pointer-events: none;
    user-select: none;
}

/* Emoji-Bubble ersetzt das Poster bei Non-Media-Reactions
   (Friendship, Follow, List-Created) — gleicher Slot wie das Poster,
   damit das Layout des Notif-Blocks konsistent bleibt. */
.notif-wrapper .notif-comment-block .notif-reaction-emoji-bubble {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    line-height: 1;
    background: transparent;
    border-radius: var(--spacing-4);
    flex-shrink: 0;
    user-select: none;
}

.notif-wrapper .notif-comment-block-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
}

.notif-wrapper .notif-comment-block-text .comment-link {
    display: block !important;
    font-size: 16px;
    line-height: 1.5;
    border-bottom: none !important;
    opacity: 0.95;
    word-break: break-word;
    color: var(--text) !important;
}

.notif-wrapper .notif-comment-block-text .meta {
    color: var(--text-sub);
    font-size: 14px;
    opacity: 0.95;
    margin-top: var(--spacing-4);
}

.notif-poster {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--spacing-4);
    flex-shrink: 0;
}

.notif-wrapper .notif-item .link {
    font-weight: var(--fw-regular);
}

/* Notif-Detail-Modal-Content-Overrides.
   Shell (Overlay, Card, Close) kommt aus .content-modal-* (components.css).
   Hier nur die Feed-Item-Overrides fuers Innere. */

/* Das Feed-Item bringt sein Aussehen vollstaendig aus feed.css mit —
   Poster links, Zeilen, Footer. Hier wird NICHTS mehr ueberschrieben
   ausser dem Aussenabstand, den das Modal selbst stellt.
   (Bereinigt 03.10.: die frueheren Overrides fuer Hintergrund und
   Footer-Padding stammten aus dem alten Card-Layout und haben die neue
   Card verbogen.) */
.notif-detail-body .feed-item {
    margin: 0;
}

/* Platz fuer das X oben rechts (.content-modal-close: 8px Abstand + 36px
   = 44px ab Kartenrand). Die Card hat 16px (mobil) bzw. 20px Innenabstand;
   mit 40px mehr endet der Titel 12–16px links vom X. Cards ohne Titelzeile
   (Freundschaft, Follow) beginnen mit dem Satz, der bekommt denselben
   Abstand. */
.notif-detail-body .feed-card-head,
.notif-detail-body .feed-content > .feed-text:first-child {
    padding-right: var(--spacing-40);
}

/* Kein Extra-Rahmen auf der Card: .content-modal-content bringt im Light
   bereits --background-active plus border-light mit (components.css).
   Ein zweiter Rahmen auf der Card darin waere doppelt gemoppelt. */

/* --- Modal-Layout: kompakter Kopf, Review ueber volle Breite -------
   Im Feed nimmt das Poster 29 % der Cardbreite ein. Im Modal (540 px)
   sind das ~157 px — daneben stehen aber nur Titel, Name und Wertung,
   der Rest bleibt leer. Im Modal faellt das Poster deshalb kleiner aus
   (Owner-Feedback 03.10.).

   Die Breite kommt aus --feed-poster-w, derselben Variable, die
   feed.css nutzt — nicht aus drei einzelnen width-Angaben. */
.notif-detail-body .feed-main--poster {
    /* Variable steuert das Kontext-Menue auf dem Poster … */
    --feed-poster-w: 92px;
    flex-wrap: wrap;
}
/* … der Wrapper selbst hat in feed.css eine feste Breite (29%),
   die hier ueberschrieben werden muss. Sonst waere nur das Menue
   schmaler, das Poster aber unveraendert. */
.notif-detail-body .feed-poster-wrap {
    width: 92px;
    min-width: 92px;
    max-width: 92px;
}

/* Das Kontext-Menue sitzt NICHT im Poster-Wrapper, sondern ist ein
   Geschwister von .feed-main und wird per absoluter Position darueber
   gelegt. Seine Breite rechnet feed.css eigenstaendig aus
   (clamp(96px, 29%, 180px)) — es folgt weder dem Wrapper noch
   --feed-poster-w.

   Ohne diese Regel bliebe der Knopf also an der alten 29-%-Kante
   stehen, waehrend das Poster darunter auf 92 px schrumpft: er haenge
   dann frei neben dem Poster (Owner-Feedback 03.10.). Deshalb hier
   derselbe feste Wert wie beim Wrapper. */
.notif-detail-body .feed-item:has(.feed-main--poster) .feed-context-menu {
    width: 92px;
}

/* Die Review steht im Markup INNERHALB von .feed-main-top, also in der
   rechten Spalte neben dem Poster. Damit sie unter das Poster rutschen
   und die volle Breite nutzen kann, wird .feed-main-top aufgebrochen —
   dieselbe Technik, die feed.css im Mobile-Block verwendet. Ohne das
   flex-wrap oben wuerde flex-basis:100% keine neue Zeile erzeugen. */
.notif-detail-body .feed-main--rows .feed-main-top {
    display: contents;
}
.notif-detail-body .feed-main--rows .feed-poster-wrap {
    order: 1;
}
.notif-detail-body .feed-main--rows .feed-content--rows {
    order: 2;
    flex: 1;
    min-width: 0;
}
.notif-detail-body .feed-main--rows .feed-review-block {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    margin: var(--spacing-12) 0 0;
}
/* --- Review im Modal: immer vollstaendig ---------------------------
   Im Feed wird der Review-Text per line-clamp auf 5 Zeilen gekuerzt,
   "Weiterlesen" oeffnet dann dieses Modal. Im Modal selbst waere die
   Kuerzung sinnlos: ein Modal ueber dem Modal zu oeffnen, um denselben
   Text zu lesen, ergibt keinen Sinn (Owner-Feedback 03.10.).

   Der volle Text steht ohnehin schon im Markup — gekuerzt wird nur per
   CSS (siehe feed_render_review_block_html). Hier wird die Kuerzung
   also lediglich abgeschaltet, nichts nachgeladen.

   :not(.spoiler-hidden) bleibt stehen: ein Spoiler soll auch im Modal
   erst nach bewusstem Klick sichtbar werden. */
.notif-detail-body .feed-review-block .feed-review-text:not(.spoiler-hidden) {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

/* Aufgedeckter Spoiler: sobald .spoiler-revealed gesetzt ist, zeigt
   feed.css den Text per display:block an. Die Regel oben greift dann
   nicht mehr (sie schliesst .spoiler-hidden aus), der Text waere also
   wieder auf 5 Zeilen gekuerzt. Deshalb hier nochmal ohne Kuerzung —
   im Modal wird grundsaetzlich alles gezeigt. */
.notif-detail-body .feed-review-block.spoiler-revealed .feed-review-text {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

/* Ohne Kuerzung gibt es nichts mehr aufzuklappen. */
.notif-detail-body .feed-review-readmore {
    display: none !important;
}

/* Comments section standardmaessig offen im Modal. */
.notif-detail-body .comments-section.show {
    border-top: 1px solid var(--background-hover);
    padding-top: var(--spacing-12);
    margin-top: var(--spacing-12);
}

.notif-detail-body .loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-24) 0;
}

/* Entfernt 03.10.: Hier wurde das Poster bei Review-Cards mobil
   ausgeblendet. Die Regel stammte aus dem alten Layout, in dem das Poster
   per float:right rechts stand und dem Review-Text die Breite nahm.
   Seit dem Redesign steht es links in der zweispaltigen Zone und die
   Review laeuft darunter ueber die volle Breite — ausblenden ist nicht
   mehr noetig und liess die Card im Modal anders aussehen als im Feed. */

/* --- Announcement-Modal (Broadcast-System, eigene Shell, KEIN
   Content-Modal-Namespace) ------------------------------------- */
.notif-announcement-modal {
    position: fixed;
    inset: 0;
    z-index: 100000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-16);
}
.notif-announcement-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: var(--backdrop-blur-sm);
}
.notif-announcement-content {
    position: relative;
    background: var(--background);
    border: var(--border-light);
    border-radius: var(--spacing-16);
    width: min(520px, 100%);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: notifModalIn 0.25s ease-out;
}
:root[data-theme="light"] .notif-announcement-content {
    background: var(--background-active);
}
@keyframes notifModalIn {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.notif-announcement-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-12);
    padding: var(--spacing-16) var(--spacing-16);
    border-bottom: var(--border-light);
    flex-shrink: 0;
}
.notif-announcement-title {
    margin: 0;
    font-weight: var(--fw-bold);
    font-size: 16px;
    color: var(--headline);
    line-height: 1.3;
}
/* Aussehen aus .modal-close-round (components.css) */
.notif-announcement-close {
    flex-shrink: 0;
}
.notif-announcement-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-16) var(--spacing-16) var(--spacing-24);
}
/* --- System-Announcement Notifications --- */
.notif-wrapper .notif-item.notif-item-announcement .notif-announcement-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--background-light);
    border: 1px solid var(--background-dark);
    flex-shrink: 0;
    align-self: start;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-wrapper .notif-item.notif-item-announcement .notif-announcement-icon img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.notif-wrapper .notif-item.notif-item-announcement .notif-announcement-title {
    display: block;
    font-weight: var(--fw-bold);
    color: var(--text);
}

.notif-wrapper .notif-item.notif-item-announcement .notif-announcement-body {
    font-size: 0.9em;
    line-height: 1.7;
    color: var(--text-sub);
    opacity: 0.85;
    white-space: pre-wrap;
    word-break: break-word;
    margin-top: var(--spacing-4, 4px);
}

.notif-wrapper .notif-item.notif-item-announcement .notif-announcement-body--clamped {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

/* Announcement Detail Modal */
.notif-announcement-modal-body {
    padding: var(--spacing-20, 20px) var(--spacing-16);
    flex: 1;
    overflow-y: auto;
}

.notif-announcement-modal-text {
    font-size: 1rem;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    opacity: 0.9;
}

/* Footer: Absender */
.notif-announcement-modal-footer {
    display: flex;
    align-items: center;
    gap: var(--spacing-12);
    padding: var(--spacing-12, 12px) var(--spacing-16);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.notif-announcement-modal-footer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.notif-announcement-modal-footer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.notif-announcement-modal-footer-name {
    font-size: 0.875rem;
    font-weight: var(--fw-regular);
    color: var(--text);
    line-height: 1.2;
}

.notif-announcement-modal-footer-time {
    font-size: 0.78rem;
    color: var(--text-sub);
    line-height: 1.2;
}

/* Community-Notifications: Name als Inline-Link (Theme-aware). */
.notif-wrapper .notif-item .notif-community-link {
    color: var(--text-link);
    text-decoration: none;
}
.notif-wrapper .notif-item .notif-community-link:hover,
.notif-wrapper .notif-item .notif-community-link:focus-visible {
    color: var(--text-link-hover);
    text-decoration: underline;
}
.notif-wrapper .notif-item .notif-community-body {
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-top: 2px;
}

/* Tipps der UX-Kampagne (M3.1): Glühbirne statt Logo, Link „So geht's“ */
.notif-wrapper .notif-item.notif-item-tip .notif-tip-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    align-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    color: var(--text-link);
    font-size: 22px;
}

.notif-wrapper .notif-item.notif-item-tip .notif-tip-link,
.notif-wrapper .notif-item.notif-item-tip .notif-tip-link:visited {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    font-size: var(--font-size-sm);
    font-weight: var(--fw-bold);
    color: var(--text-link);
}

/* Ankündigungen + Tipps in der Glocken-Liste kompakter und bündig (2026-10-22):
   .notif-announcement-body ist auch die Klasse des Ankündigungs-Fensters
   (Innenabstand 16px, Zeilenhöhe 1.7) — in der Liste rückte der Text deshalb
   gegenüber dem Titel ein. Hier zurücksetzen; das Fenster bleibt unverändert. */
.notif-wrapper .notif-item.notif-item-announcement > .content {
    padding-left: var(--spacing-8);
}

.notif-wrapper .notif-item.notif-item-announcement .notif-announcement-title {
    line-height: 1.3;
}

.notif-wrapper .notif-item.notif-item-announcement .notif-announcement-body {
    padding: 0;
    line-height: 1.45;
    margin-top: 2px;
}

.notif-wrapper .notif-item.notif-item-tip .notif-tip-link,
.notif-wrapper .notif-item.notif-item-tip .notif-tip-link:visited {
    min-height: 0;
    margin-top: var(--spacing-4);
}

.notif-wrapper .notif-item.notif-item-announcement .meta {
    margin-top: var(--spacing-4);
}
