#footer-custom {
    background-color: rgba(0, 0, 0, 0.7); /* Transparenz nur auf dem Hintergrund */
    color: white;
    display: flex;
    justify-content: center; /* Zentriert den inside-Container */
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 100;
    box-sizing: border-box;
    height: 50px;
}

/* NEUE KLASSE: Footer ausblenden */
#footer-custom.hidden {
    opacity: 0;
    pointer-events: none; /* Verhindert Interaktionen, wenn ausgeblendet */
    transform: translateY(100%); /* Bewegen nach unten aus dem Viewport */
}


#footer-custom .inside {
    position: relative;
    display: flex;
    justify-content: center; /* Zentriert den footer-content-wrapper auf kleinen Bildschirmen */
    align-items: center;
    max-width: 100%; /* Sicherstellen, dass es die volle Breite einnehmen kann */
    width: 100%; /* Muss 100% haben, um das Padding vom Rand zu nutzen */
    box-sizing: border-box;
    padding: 0 20px; /* Dieser Wert sorgt für 20px festen Abstand von den Bildschirmrändern */
}

#footer-custom .footer-content-wrapper {
    display: flex;
    flex-direction: column; /* Standard: gestapelt auf kleinen Bildschirmen */
    justify-content: center; /* Zentriert die Elemente vertikal */
    align-items: center; /* Zentriert die Elemente horizontal */
    width: 100%; /* Nimmt die volle Breite des .inside-Containers ein */
    position: relative;
    height: 100%; /* Füllt die Höhe des Parent (.inside) aus */
}

/* Media Query für größere Bildschirme (Tablets und Desktops) für den Footer-Inhalt */
@media (min-width: 768px) {
    #footer-custom .footer-content-wrapper {
        flex-direction: row; /* Elemente in einer Reihe ausrichten */
        justify-content: space-between; /* Links ganz links und Copyright ganz rechts */
        align-items: center;
    }

    #footer-custom .footer-links {
        margin-bottom: 0; /* Keinen unteren Abstand auf größeren Bildschirmen */
        text-align: left; /* Textausrichtung für Links */
    }

    #footer-custom p {
        text-align: right; /* Textausrichtung für Copyright */
    }
}

/* Styling für die Gruppe der Footer-Links */
#footer-custom .footer-links {
    margin-bottom: 10px; /* Abstand unter den Links auf kleinen Bildschirmen */
    white-space: nowrap; /* Verhindert, dass Links umbrechen */
    text-align: center; /* Zentriert auf kleinen Bildschirmen */
}

/* Styling für einzelne Footer-Links */
#footer-custom .footer-links a {
    color: white;
    text-decoration: none;
    padding: 0 15px; /* Horizontaler Abstand zwischen den Links */
    transition: color 0.3s ease;
}

#footer-custom .footer-links a:hover {
    color: #ccc;
}

/* Styling für den Copyright-Text */
#footer-custom p {
    margin: 0;
    font-size: clamp(14px, 1.5vw, 20px);
    text-align: center; /* Zentriert auf kleinen Bildschirmen */
}

/* Footer Modal Overlay */
.fullscreen-overlay.footer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1.0);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
    z-index: 160;
    visibility: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    box-sizing: border-box;
}

.fullscreen-overlay.footer-modal.is-active {
    transform: translateX(0);
    visibility: visible;
    display: flex;
}

.footer-modal .overlay-content {
    background-color: rgba(0, 0, 0, 1.0);
    padding: 30px;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: calc(100% - 80px);
    overflow-y: auto;
    position: relative;
    color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.footer-modal .overlay-content h2 {
    color: white;
    text-align: center;
    font-size: clamp(24px, 5vw, 45px);
    margin-top: 0;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.footer-modal .overlay-text-content {
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.6;
}

/* Spezifische Formatierungen für Textinhalte innerhalb von .overlay-text-content */
.footer-modal .overlay-text-content p {
    margin-bottom: 1em;
}

.footer-modal .overlay-text-content ul,
.footer-modal .overlay-text-content ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.footer-modal .overlay-text-content li {
    margin-bottom: 0.5em;
}

.footer-modal .overlay-text-content a {
    color: rgb(129, 196, 255);
    text-decoration: underline;
}

.footer-modal .close-overlay-button {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 40px;
    color: white;
    cursor: pointer;
    line-height: 1;
    z-index: 1;
    padding: 5px;
    opacity: 0.8;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.footer-modal .close-overlay-button:hover,
.footer-modal .close-overlay-button:focus {
    opacity: 1;
    transform: rotate(90deg);
}

/* Media Queries für Footer und Modal */
@media screen and (max-width: 767px) {
    #footer-custom {
        height: 40px;
    }
    .footer-modal .overlay-content {
        padding: 20px;
        width: 95%;
        max-height: calc(100% - 40px);
    }
    .footer-modal .close-overlay-button {
        font-size: 35px;
        top: 10px;
        right: 15px;
    }
}

@media screen and (max-width: 479px) {
    #footer-custom {
        height: 30px;
    }
    .footer-modal .overlay-content {
        padding: 15px;
        width: 95%;
        max-height: calc(100% - 30px);
    }
    .footer-modal .overlay-text-content {
        font-size: 15px;
    }
    .footer-modal .close-overlay-button {
        font-size: 30px;
        top: 5px;
        right: 10px;
    }
}
/* Header-Anpassungen */
#header-custom {
    display: flex;
    justify-content: flex-start; /* Angepasst, da .inside den Haupt-Flex macht */
    align-items: center;
    position: fixed; /* Bleibt fixiert */
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Transparenz nur auf dem Hintergrund */
    color: white;
    padding: 0 20px; /* Etwas Padding an den Seiten für Inhalt */
    text-align: center;
    z-index: 200; /* Hoher z-index, damit er über allem liegt */
    box-sizing: border-box;
    height: 70px; /* Standardhöhe für große Bildschirme */
}

#header-custom .inside {
    display: flex;
    justify-content: center; /* **WICHTIG: Zentriert den H1-Titel primär** */
    align-items: center;
    width: 100%;
    position: relative; /* **WICHTIG für die absolute Positionierung des Burgers** */
    height: 100%;
    padding: 0;
    box-sizing: border-box;
}

#header-custom h1 {
    font-size: clamp(24px, 4vw, 60px);
    margin: 0;
    /* h1 wird jetzt nur zentriert, da der Burger absolut positioniert ist und die Navi versteckt wird */
    flex-grow: 0; /* Stellt sicher, dass h1 nicht übermäßig wächst */
    white-space: nowrap; /* Verhindert Zeilenumbruch des Titels */
}

/* Styling für den Header-Home-Link */
#header-custom h1 .header-home-link {
    color: inherit; /* Nimmt die Textfarbe des Eltern-Elements (h1) an, also Weiß */
    text-decoration: none; /* Entfernt die Unterstreichung */
    cursor: pointer; /* Zeigt an, dass es klickbar ist */
    transition: color 0.3s ease; /* Sanfter Übergang beim Hover */
}

#header-custom h1 .header-home-link:hover,
#header-custom h1 .header-home-link:focus {
    color: grey; /* Ändert die Farbe beim Darüberfahren oder Fokussieren */
}

/* Spezifische Farben (falls in deinem HTML verwendet) */
#farbe1 {
    color: rgb(129, 196, 255);
}

#farbe2 {
    color: rgb(22, 88, 142);
}

#farbe3 {
    color: rgb(231, 34, 46);
}

/* --- Hamburger Navigation Styling --- */

/* Hamburger Icon */
.hamburger-menu {
    position: absolute; /* Absolut positioniert, um den Fluss nicht zu stören */
    right: 20px; /* Am rechten Rand platzieren */
    top: 50%; /* Vertikal zentrieren */
    transform: translateY(-50%); /* Vertikal zentrieren */
    display: flex; /* **IMMER display: flex, damit er sichtbar ist** */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200; /* Muss über dem Fullscreen-Menü liegen */
    outline: none; /* Keine Outline beim Fokus */
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Fullscreen Navigation Menü (Deine bestehende Nav-Klasse + fullscreen-nav) */
.fullscreen-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1.0); /* Schwarzer Hintergrund */
    justify-content: center;
    align-items: center;
    transform: translateX(100%); /* Startet außerhalb des Bildschirms (rechts) */
    transition: transform 0.5s ease-in-out;
    z-index: 150; /* Zwischen Header und dem Rest des Inhalts */
    visibility: hidden; /* Standardmäßig ausgeblendet */
    overflow: hidden; /* Verhindert Scrollen des Menüs selbst */
}

/* Menü ist aktiv (durch JavaScript hinzugefügt) */
.fullscreen-nav.is-active {
    transform: translateX(0); /* Schiebt das Menü in den Viewport */
    visibility: visible;
    display: flex !important; /* **WICHTIG: Setzt display: flex mit hoher Priorität, wenn aktiv** */
}

.fullscreen-nav ul.level_1 { /* Spezifischer auf deine ul abzielen */
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    width: 100%; /* Wichtig, damit li und a sich zentrieren können */
}

.fullscreen-nav ul.level_1 li {
    margin: 20px 0;
}

.fullscreen-nav ul.level_1 a {
    color: white; /* Weiße Schrift */
    text-decoration: none;
    font-size: clamp(30px, 8vw, 60px); /* Responsive Schriftgröße */
    transition: color 0.3s ease-in-out;
    display: block; /* Für größere Klickfläche */
    text-align: center; /* Text im Link zentrieren */
}

.fullscreen-nav ul.level_1 a:hover,
.fullscreen-nav ul.level_1 a:focus {
    color: grey; /* Hover-Effekt für Links */
}

/* Contao "invisible" Klasse anpassen, damit sie nicht das Menü beeinflusst */
.fullscreen-nav .invisible {
    display: none;
}

/* Animation des Hamburgers zu einem "X" */
.hamburger-menu.is-active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger-menu.is-active .bar:nth-child(2) {
    opacity: 0; /* Mittlerer Strich verschwindet */
}

.hamburger-menu.is-active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Media Queries für Header */
@media screen and (max-width: 767px) {
    #header-custom {
        height: 50px;
        padding: 0 15px;
    }
    .hamburger-menu {
        right: 15px;
    }
}

@media screen and (max-width: 479px) {
    #header-custom {
        height: 40px;
        padding: 0 10px;
    }
    .hamburger-menu {
        right: 10px;
    }
}
/* =======================================================
 * FINALES CSS FÜR DIE NEWS-DETAILSEITE (READER & KOMMENTARE)
 * - Korrigierte Selektoren & Padding -
 * ======================================================= */

/* --- 1. Globale Seiten-Einstellungen --- */
body {
    background-color: #000000;
    color: #f1f1f1;
    font-family: sans-serif;
    padding-top: 70px;
    padding-bottom: 50px;
}

/* --- 2. Haupt-Container für den Artikel --- */
.mod_newsreader .news_full {
    background-color: #36454F; /* Anthrazit */
    color: #f1f1f1;
    padding: 0; /* KORREKTUR: Kein Innenabstand mehr hier */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin: 40px auto;
    max-width: 900px;
    overflow: hidden;
}

/* --- 3. Elemente im Artikel --- */

/* KORREKTUR: Zielt jetzt auf den korrekten Container .mod_newsreader */
.mod_newsreader .news_full .content-image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Seitenverhältnis */
    height: 0;
    overflow: hidden;
    background-color: #222;
    /* Kein seitlicher Abstand */
    margin-left: 0;
    margin-right: 0;
}

.mod_newsreader .news_full .content-image figure {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.mod_newsreader .news_full .content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* KORREKTUR: Nur die Text-Elemente bekommen jetzt einen Innenabstand */
.mod_newsreader .news_full .content-text {
    padding: 30px; /* Gibt dem Text und der Überschrift darin den nötigen Abstand */
}

/* Text-Absätze */
.mod_newsreader .news_full .content-text p {
    line-height: 1.7;
}

/* Hauptüberschrift (die jetzt als Inhaltselement im .content-text liegt) */
.mod_newsreader .news_full .content-text h1,
.mod_newsreader .news_full .content-text h2 {
    font-size: 2.2em;
    margin-top: 0;
    margin-bottom: 20px;
}


/* --- 4. Styling für den Kommentar-Bereich --- */
.ce_comments {
    padding: 0 30px 30px 30px;
    margin-top: 20px;
    border-top: 1px solid #555;
}

.ce_comments h2, .ce_comments h3 {
    color: #f1f1f1;
    padding-top: 20px;
}

/* ... (Rest der Kommentar-Stile bleibt unverändert) ... */
.comment_container { background-color: #444; padding: 20px; border-radius: 4px; margin-bottom: 15px; }
.comment_container .comment_header { font-weight: bold; color: #fff; }
.comment_container .comment_header time { font-weight: normal; font-size: 0.85em; color: #bbb; margin-left: 10px; }
.ce_comments .form { margin-top: 30px; }
.ce_comments .form label { display: block; margin-bottom: 5px; }
.ce_comments .form input[type="text"], .ce_comments .form input[type="email"], .ce_comments .form input[type="url"], .ce_comments .form textarea { width: 100%; padding: 10px; background-color: #555; border: 1px solid #666; color: #fff; border-radius: 4px; margin-bottom: 15px; }
.ce_comments .form .submit { display: inline-block; padding: 10px 20px; background-color: #ddd; color: #111; text-decoration: none; border: none; border-radius: 4px; cursor: pointer; transition: background-color 0.3s, color 0.3s; }
.ce_comments .form .submit:hover { background-color: #fff; color: #000; }


/* --- 5. "Zurück"-Link und seitenspezifische Farben --- */
.mod_newsreader .news_full p.back {
    padding: 0 30px 30px 30px;
}
.mod_newsreader .news_full p.back a {
    display: inline-block;
    margin-top: 30px;
    color: #aaa;
    text-decoration: none;
}
.mod_newsreader .news_full p.back a:hover {
    text-decoration: underline;
}
.mod_newsreader > p.back {
    display: none;
}

/* Farben für M88/3 */
body.page-m88-3 .mod_newsreader .news_full .content-text h1,
body.page-m88-3 .mod_newsreader .news_full .content-text h2 { color: #FF8C00; }

/* Farben für S50B32 */
body.page-s50b32 .mod_newsreader .news_full .content-text h1,
body.page-s50b32 .mod_newsreader .news_full .content-text h2 { color: #32CD32; }

/* Farben für S85B50 */
body.page-s85b50 .mod_newsreader .news_full .content-text h1,
body.page-s85b50 .mod_newsreader .news_full .content-text h2 { color: #C0C0C0; }

/*
 * Responsive Anpassung für größere Monitore
 */
@media (min-width: 1200px) {
  
  /* Macht den Artikel-Container auf breiten Bildschirmen breiter */
  .mod_newsreader .news_full {
    max-width: 1300px; 
  }

}
