/* =============================================================================
   RIGHT SIDEBAR  –  sidebar-right.css
   Erweiterung / Modernisierung des bestehenden Sidebar-Stils
   ============================================================================= */

/* ── CSS-Variablen ─────────────────────────────────────────────────────────── */
:root {
    --rbs-primary:       rgba(27, 155, 152, 1);   /* Teal */
    --rbs-primary-light: rgba(27, 155, 152, 0.12);
    --rbs-accent:        rgba(105, 19, 47, 1);    /* Dunkelrot */
    --rbs-text:          rgba(76, 76, 76, 1);
    --rbs-text-light:    rgba(120, 120, 120, 1);
    --rbs-white:         rgba(255, 255, 255, 1);
    --rbs-bg:            rgba(255, 255, 255, 0.6);
    --rbs-bg-solid:      rgba(248, 248, 248, 1);
    --rbs-border:        rgba(27, 155, 152, 0.3);
    --rbs-shadow:        0 4px 24px rgba(0, 0, 0, 0.08);
    --rbs-radius:        6px;
    --rbs-width:         260px;
    --rbs-transition:    0.22s ease;
}

/* ── Sidebar-Wrapper ───────────────────────────────────────────────────────── */
#main aside.right-sidebar {
    min-width: var(--rbs-width);
    /*width: var(--rbs-width); */
    flex-shrink: 0;
    position: relative;
    z-index: 200;
}

.rbs-inner {
    position: relative;
    top: -70px;
}

/* ── rechts-aktuelles (Haupt-Container) ────────────────────────────────────── */
.rechts-aktuelles {
    background: var(--rbs-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--rbs-radius);
    box-shadow: var(--rbs-shadow);
    overflow: hidden;
    padding-bottom: 0 !important;
}

/* ── Block-Struktur ────────────────────────────────────────────────────────── */
.news-latest-container.rbs-block {
    float: none;
    display: block;
    border-top: none;
    background: transparent;
    padding: 0;
}

/* Trennlinie zwischen Blöcken */
.news-latest-container.rbs-block + .news-latest-container.rbs-block {
    border-top: 2px solid var(--rbs-primary);
}

/* ── Block-Überschriften ───────────────────────────────────────────────────── */
.rbs-block__heading {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rbs-white) !important;
    background: var(--rbs-primary);
    padding: 10px 5%;
    margin: 0;
}

/* Newsline-Block bekommt Akzentfarbe */
.rbs-block--newsline .rbs-block__heading {
    background: var(--rbs-accent);
}

/* Veranstaltungen-Block */
.rbs-block--events .rbs-block__heading {
    background: var(--rbs-primary);
}

/* ── Einzel-Eintrag ────────────────────────────────────────────────────────── */
.news-latest-item {
    margin: 0;
    float: none;
    display: block;
    width: 100%;
    padding: 12px 5% 10px;
    cursor: pointer;
    text-decoration: none;
    color: var(--rbs-text);
    transition:
        background-color var(--rbs-transition),
        color            var(--rbs-transition);
    position: relative;
    border-top:1px solid var(--rbs-border);
    border-bottom:1px solid var(--rbs-border);
}


/* Hover-Zustand */
.news-latest-item:hover {
    background-color: var(--rbs-primary);
    text-decoration: none;
}

.news-latest-item:last-child:hover {
    border-bottom: 1px solid white;
}
.news-latest-item:hover span.news-latest-item-h3,
.news-latest-item:hover a,
.news-latest-item:hover p,
.news-latest-item:hover .news-latest-date,
.news-latest-item:hover .rbs-badge {
    color: var(--rbs-white);
}

.news-latest-item.no-hover {
    cursor: default;
}
.news-latest-item.no-hover:hover {
    background-color: unset;
}
.news-latest-item.no-hover:hover p,
.news-latest-item.no-hover:hover span.news-latest-item-h3 {
    color: var(--rbs-text);
}

/* ── Item-Titel ────────────────────────────────────────────────────────────── */
span.news-latest-item-h3 {
    display: block;
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--rbs-text);
    transition: color var(--rbs-transition);
}

span.news-latest-item-h3 a {
    color: inherit;
    text-decoration: none;
}

/* ── Datum ─────────────────────────────────────────────────────────────────── */
.news-latest-date {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--rbs-primary);
    margin-bottom: 5px;
    transition: color var(--rbs-transition);
}

/* ── Teaser-Text ───────────────────────────────────────────────────────────── */
.news-latest-item p {
    margin: 0px;
    font-size: 14px;
    color: var(--rbs-text);
    transition: color var(--rbs-transition);
}

/* ── Badge (Veranstaltungs-Kategorie) ─────────────────────────────────────── */

.rbs-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rbs-primary);
    border: 1px solid var(--rbs-border);
    border-radius: 3px;
    padding: 1px 6px;
    margin-bottom: 5px;
    transition: color var(--rbs-transition), border-color var(--rbs-transition);
}
.rbs-badge {
    display:none;
}
.news-latest-item:hover .rbs-badge {
    border-color: rgba(255, 255, 255, 0.5);
}

/* ── Hinweis-Bereich ───────────────────────────────────────────────────────── */
.news-hinweis {
    float: none;
    display: block;
    width: 100%;
    padding: 8px 5%;
    font-size: 12px;
    color: var(--rbs-text-light);
    border-top: 1px solid var(--rbs-border);
}

/* ── Logo-Bereich (bleibt wie gehabt, leicht modernisiert) ───────────────── */
.logo-section {
    background-color: var(--rbs-accent);
    min-height: 130px;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 4px;
    box-shadow: 0 2px 8px rgba(105, 19, 47, 0.2);
    flex-direction: column;
    min-width: var(--rbs-width);
}

.logo-section img {
    max-width: 85%;
    height: auto;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 995px) {
    #main .row {
        display: flex;
        flex-direction: column;
    }

    #main aside.right-sidebar {
        width: 100%;
        min-width: unset;
    }

    .news-latest-container.rbs-block + .news-latest-container.rbs-block {
        border-top: none;
        border-left: 2px solid var(--rbs-primary);
    }

    .rbs-inner {
        position: relative;
        top: 0px;
        padding: 25px;
    }
}

@media (max-width: 640px) {
    .rechts-aktuelles {
        display: block;
    }

    .news-latest-container.rbs-block + .news-latest-container.rbs-block {
        border-left: none;
        border-top: 2px solid var(--rbs-primary);
    }
}
