
/* ============================================================
   POPUP "AKTUELLES" – bewusst getrennt vom Seitendesign.
   Anzeigen, Bilder und Ablaufdatum: js/aktuelles-config.js
   ============================================================ */

.aktuelles-dialog {
    position: fixed;
    width: min(94vw, 640px);
    max-width: 94vw;
    max-height: 94vh;
    max-height: 94dvh;
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 22px;
    background: #f8f5ee;
    color: #1d2420;
    box-shadow: 0 24px 100px rgba(0, 0, 0, .34);
}

.aktuelles-dialog[open] {
    display: flex;
    flex-direction: column;
}

.aktuelles-dialog::backdrop {
    background: rgba(10, 21, 18, .76);
    backdrop-filter: blur(5px);
}

/* Oberer Bereich: Titel und Schließen-Button */

.aktuelles-kopf {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 9px 12px 9px 20px;
    border-bottom: 1px solid var(--farbe-gruen);
    background: var(--farbe-gruen);
    color: var(--farbe-weiss);
}



.aktuelles-ueberschrift {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--farbe-weiss);
}



.aktuelles-schliessen {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 7px 12px;
    border: 1px solid var(--farbe-gruen-hell);
    border-radius: 999px;
    background: var(--farbe-papier);
    color: var(--farbe-gruen);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}


.aktuelles-schliessen span {
    font-size: 22px;
    line-height: 1;
}

/* Mittlerer Bereich: Bilder */
.aktuelles-inhalt {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    overflow: hidden;
    background: radial-gradient(
        ellipse at center,
        #fffdf8 0%,
        #e4eee7 100%
    );
}

.aktuelles-bild {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(94vh - 148px);
    max-height: calc(94dvh - 148px);
    height: auto;
    object-fit: contain;
}

/* Unterer Bereich: Bildwechsel */
.aktuelles-navigation:not([hidden]) {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 64px;
    padding: 8px 18px;
    border-top: 1px solid #e0e5d9;
}

.aktuelles-navigation[hidden] {
    display: none;
}

.aktuelles-navknopf {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d2dacf;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

.aktuelles-navknopf:hover,
.aktuelles-schliessen:hover {
    background: #dcebe0;
}

.aktuelles-zaehler {
    min-width: 108px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

/* Anpassungen für Smartphones */
@media (max-width: 480px) {
    .aktuelles-dialog {
        width: min(97vw, 640px);
        max-width: 97vw;
        border-radius: 15px;
    }

    .aktuelles-kopf {
        min-height: 54px;
        padding-left: 14px;
    }

    .aktuelles-ueberschrift {
        font-size: 18px;
    }

    .aktuelles-inhalt {
        padding: 6px 7px;
    }

    .aktuelles-navigation:not([hidden]) {
        gap: 16px;
        min-height: 58px;
    }

    .aktuelles-bild {
        max-height: calc(94dvh - 132px);
    }
}
