 body {
        margin: 0;
        font-family: Arial, sans-serif;
        background: #eaf3ff;
        color: #00315c;
    }

    /* ----------------------- HEADER ----------------------- */
    header {
        background: #2f6fbe;
        color: white;
        display: flex;
        align-items: center;
        padding: 10px 20px;
        position: relative;
        user-select: none;
    }

    #logoK {
        height: 60px;
        margin-right: 10px;
    }

    header h1 {
        font-size: 36px;
        margin: 0;
        letter-spacing: 2px;
        font-weight: 700;
    }

    /* ----------------------- CONTAINER ----------------------- */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-row p {
    width: 180px;
    margin: 0;
    font-weight: bold;
}

.form-row input {
    flex: 1;
    padding: 5px;
}
    .content {
        padding: 20px;
    }
.TextDarkMode {
color: #00315c;
}
.DarkModeTextfelder {
    background: white
    color: black
}
    .intro-box {
        background: #ffffff;
        padding: 15px;
        border-radius: 10px;
        border-left: 6px solid #2f6fbe;
        margin-bottom: 25px;
    }

    textarea {
        width: 99%;
        height: 200px;
        border-radius: 10px;
        border: 2px solid #2f6fbe;
        padding: 10px;
        font-size: 16px;
        resize: vertical;
    }
 /* Unsichtbarer Button über dem Bild */
        #secretButton {
            position: absolute;
            left: 10px;
            top: 10px;
            width: 40px;
            height: 40px;
            opacity: 0;
            cursor: pointer;
        }
    .button {
        background: #2f6fbe;
        color: white;
        padding: 10px 18px;
        border: none;
        border-radius: 8px;
        margin-top: 10px;
        cursor: pointer;
        font-size: 16px;
    }

    .button:hover {
        background: #1c4f8c;
    }

    input[type="file"] {
        margin-top: 10px;
    }
.restore-btn {
    background: #2e8b57;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.delete-btn {
    background: #b30000;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}
.startseite-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    align-items: start;
}

/* Ab 1000px: 2 Spalten */
@media (min-width: 900px) {
    .startseite-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .news-box {
        grid-column: 1 / -1; /* News über beide Spalten */
    }
}

/* Ab 1500px: 3 Spalten */
@media (min-width: 1100px) {
    .startseite-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .news-box {
        grid-column: auto;
    }
}

    /* ----------------------- SECTION HEADERS ----------------------- */
    h2 {
        color: #1f4e88;
    }

    /* ----------------------- Leseprobe ----------------------- */
    .leseprobe-box {
        margin-top: 40px;
        background: #ffffff;
        color: black;
        padding: 15px;
        border-radius: 10px;
        border-left: 6px solid #2f6fbe;
    }

    .leseprobe-box a {
        color: #2f6fbe;
        font-size: 20px;
        cursor: pointer;
        text-decoration: underline;
    }
.news-box {
    margin-top: 40px;
    background: #ffffff;
    color: black;
    padding: 15px;
    border-radius: 10px;
    border-left: 6px solid #2f6fbe;
}
    /* ----------------------- Redaktion ----------------------- */
    .redaktion-img {
        margin-top: 10px;
        width: 100%;
        border-radius: 10px;
        border: 3px solid #2f6fbe;
    }

    /* ----------------------- MODAL LOGIN ----------------------- */
    .modal-bg {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.75);
        display: none;
        justify-content: center;
        align-items: center;
    }

    .modal {
        background: #fff;
        color: #00315c;
        padding: 20px;
        width: 300px;
        border-radius: 10px;
        text-align: center;
    }

    .modal input {
        width: 90%;
        padding: 8px;
        margin-top: 10px;
        margin-bottom: 15px;
        border-radius: 6px;
        border: 1px solid #2f6fbe;
    }

    /* ----------------------- ADMIN PAGE ----------------------- */
    #adminPage {
        display: none;
        padding: 20px;
    }

    .message {
        background: #fff;
        padding: 10px;
        border-left: 5px solid #2f6fbe;
        margin-bottom: 10px;
        border-radius: 8px;
    }

    /* farbliche Markierungen */
    .mark-archiv { background: #fff3a0; }
    .mark-mitbild { background: #cfe3ff; }
    .mark-ohnebild { background: #ffb0b0; }

    /* Stern für Favoriten */
    .star-btn {
        background: gold;
        color: black;
        border: none;
        padding: 5px 10px;
        margin-left: 10px;
        border-radius: 5px;
        cursor: pointer;
    }
    .starred {
        border: 2px solid gold !important;
    }

    /* ----------------------- LOGIN BUTTON ----------------------- */
    #tinyLoginBtn {
        position: fixed;
        right: 8px;
        bottom: 8px;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: #2f6fbe;
        opacity: 0.25;
        cursor: pointer;
        border: none;
        z-index: 9999;
    }
/* ============================
   WICHTIGKEIT-FARBEN
   ============================ */
.wichtig-hoch {
    background: #ffb0b0 !important;
    border-left: 5px solid #b30000 !important;
}

.wichtig-mittel {
    background: #fff3a0 !important;
    border-left: 5px solid #c9a300 !important;
}

.wichtig-gering {
    background: #d4f7d4 !important;
    border-left: 5px solid #2e8b57 !important;
}

    #tinyLoginBtn:hover {
        opacity: 0.5;
    }

    /* ----------------------- SUCHE + FILTER ----------------------- */
    #searchContainer {
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    #searchInput {
        flex: 1;
        padding: 8px 12px;
        border-radius: 8px;
        border: 2px solid #2f6fbe;
        font-size: 15px;
        box-shadow: 0 0 6px rgba(0,0,0,0.1);
    }
#leseprobePage h2 {
    font-weight: bold;
    text-decoration: underline;
}
    #searchIcon {
        font-size: 20px;
        user-select: none;
    }

    .filterSelect {
        background: white
        color: black
        padding: 6px;
        border-radius: 6px;
        border: 2px solid #2f6fbe;
    }
/* ============================
   KATEGORIE-FARBEN
   ============================ */
.type-idee {
    background: #d4f7d4 !important;   /* grünlich */
    border-left: 5px solid #2e8b57 !important;
}

.type-lehrerspruch {
    background: #fff3a0 !important;   /* gelb */
    border-left: 5px solid #c9a300 !important;
}

.type-kritik {
    background: #ffb0b0 !important;   /* rot */
    border-left: 5px solid #b30000 !important;
}

/* ============================
   NEUE ELEMENTE FÜR SUCHLEISTE
   ============================ */
.admin-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.searchBox {
    position: relative;
    display: inline-block;
}

.searchBox input {
    padding: 8px 12px 8px 32px;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #2f6fbe;
    background: #ffffff;
    width: 220px;
}

.searchIcon {
    position: absolute;
    left: 8px;
    top: 7px;
    pointer-events: none;
    font-size: 18px;
    color: #2f6fbe;
}

/* kleine Adminbuttons */
.small-btn {
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 6px;
}

/* ============================
   NACHRICHTEN MIT BILDERN
   ============================ */
.message img {
    display: block;
    max-width: 200px;
    border-radius: 6px;
    margin-top: 8px;
    border: 2px solid #2f6fbe;
}

/* ============================
   ARCHIV MARKIERUNGEN
   ============================ */

/* gelb = archivierte Nachricht */
.archived-message {
    background: #fff7c2;
    border-left: 5px solid #c9a300;
}

/* rot = Text ohne Bild */
.no-image {
    background: #ffd4d4 !important;
    border-left-color: #b30000 !important;
}

/* blau = Nachricht enthält Bild */
.with-image {
    background: #cfe3ff !important;
    border-left-color: #004d99 !important;
}

/* ============================
   STERNMARKIERUNG
   ============================ */
.star-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
    color: #aaa;
    transition: 0.2s;
}

.star-btn.starred {
    color: gold;
    transform: scale(1.15);
}

/* ============================
   POPUP-HINWEISE (Hover)
   ============================ */
.message:hover {
    background: #f7fbff;
    transition: background 0.2s;
}
.message {
    overflow-wrap: anywhere;
}
.multiSelectContainer {
    position: relative;
    width: 240px;
}

.multiSelectDisplay {
    padding: 8px 12px;
    border: 2px solid #2f6fbe;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.multiSelectMenu {
    display: none;
    position: absolute;
    top: 45px;
    left: 0;
    width: 100%;
    background: white;
    border: 2px solid #2f6fbe;
    border-radius: 8px;
    padding: 10px;
    z-index: 999;
}

.multiSelectMenu label {
    display: block;
    margin-bottom: 6px;
    cursor: pointer;
}

.multiSelectMenu hr {
    margin: 8px 0;
}
.starred {
    color: gold;
}
.wichtig-hoch { background: #ffb0b0 !important; border-left: 5px solid #b30000 !important; }
.wichtig-mittel { background: #fff3a0 !important; border-left: 5px solid #c9a300 !important; }
.wichtig-gering { background: #d4f7d4 !important; border-left: 5px solid #2e8b57 !important; }
.type-idee { background: #d4f7d4 !important; border-left: 5px solid #2e8b57 !important; }
.type-lehrerspruch { background: #fff3a0 !important; border-left: 5px solid #c9a300 !important; }
.type-kritik { background: #ffb0b0 !important; border-left: 5px solid #b30000 !important; }
.fixed-height-btn {
    height: 40px;        /* feste Höhe */
    line-height: 40px;   /* Text vertikal zentrieren */
    padding: 0 16px;     /* horizontale Polsterung */
    white-space: nowrap; /* verhindert Zeilenumbruch */
}
.newsCard {
    background: #fff;
    padding: 10px;
    border-left: 5px solid #2f6fbe;
    margin-bottom: 10px;
    border-radius: 8px;
}
.latestnewsCard {
    background: #f7f7f7;
    padding: 10px;
    border-left: 5px solid #2f6fbe;
    margin-bottom: 10px;
    border-radius: 8px;
}
.newsDateTitle {
    margin: 25px 0 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #ddd;
    font-size: 1.4rem;
    font-weight: bold;
}
.newsCardFuture {
    background: #ffe5e5;
    border-left: 5px solid #ff4d4d;
}
.newsCard h3 {
    margin-top: 0;
    margin: 0;
}
.newsCard p {
margin: 0;
}
.newsCard strong {
    margin: 0;
    
}
.latestnewsCard h3 {
    margin-top: 0;
    margin: 0;
}
.latestnewsCard p {
margin: 0;
}
.latestnewsCard strong {
    margin: 0;
    
}
.latestsourceBox {
    background: #e0e0e0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 10px;
    margin-top: 8px;
}

.latestsourceBox strong,
.latestsourceBox p {
    margin: 0;
}
.sourceBox {
    background: #f3f4f6;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 10px;
    margin-top: 8px;
}

.sourceBox strong,
.sourceBox p {
    margin: 0;
}
.newsHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.newsHeader h3 {
    margin: 0;
}

.newsHeader small {
    color: gray;
    white-space: nowrap;
}
``
.sourceBox p {
    color: #555;
    font-size: 0.9rem;
    margin-top: 4px;
}
.newsCard small {
    color: gray;
    margin: 0;
}
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup-window {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* ============================
   RESPONSIVE
   ============================ */
@media(max-width: 600px) {
    .admin-controls {
        flex-direction: column;
    }
    .searchBox input {
        width: 100%;
    }
    #filterSelect, #sortSelect,
    #archiveFilterSelect, #archiveSortSelect {
        width: 100%;
    }
}
#adminPage, #mainPage, #leseprobePage, header {
    position: relative;
    z-index: 1;
}
#loginModal {
    z-index: 10000 !important;
}

#passwordModal {
    z-index: 10000 !important;
}
/* ============================
   GELESEN / UNGELESEN FARBEN
   ============================ */
.read-false {
    background: #cfe3ff !important;      /* hellblau */
    border-left: 5px solid #004d99 !important;
}

.read-true {
    background: #f0f0f0 !important;       /* grau */
    border-left: 5px solid #777 !important;
    opacity: 0.7;
}

#urgentPopup .popup-window {
    border-left: 6px solid #b30000;
}
#fullMessagePopup {
    z-index: 9000;
}
#commentPopup {
    z-index: 99999 !important;
}
#editPopup {
    z-index: 99999 !important;
}
/* ============================
   Einheitliche Größe für alle Admin-Picker
   ============================ */
.admin-picker {
    width: auto;          /* feste Breite */
    height: 40px;          /* feste Höhe */
    padding: 6px 10px;
    font-size: 15px;
    border-radius: 8px;
    border: 2px solid #2f6fbe;
    box-sizing: border-box;
}
.todo-item {
    padding: 10px;
    background: #f0f4ff;
    border: 2px solid #2f6fbe;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
}

.todo-item.dragging {
    opacity: 0.5;
}
.impressum-box {
    background: #ffffff;
    color: black;
    padding: 20px;
    border-radius: 10px;
    border-left: 6px solid #2f6fbe;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: auto;
    line-height: 1.6;
}

.impressum-box h3 {
    margin-top: 20px;
    color: #1f4e88;
}

.impressum-box a {
    color: #2f6fbe;
    text-decoration: underline;
}
