/* ========================= GENERAL STYLES ========================= */
body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    font-family: ' Arial, sans-serif;
    color: #000000;
    background-color: #ffffff;
}

/* ========================= HEADER STYLES ========================= */
header {
    background-color: #000000;
    padding: 0em; /* Rahmen um Bannerbild */
}


.header-banner {
    background-image: url('../img/banner_1200_250.jpg'); /* Pfad zum Bannerbild */
    background-size: cover; /* Das Bild so skalieren, dass es den gesamten Bereich abdeckt */
    background-position: center; /* Bild zentrieren */
    height: 250px; /* Höhe des Banners anpassen */
    width: 100%; /* Breite des Banners */
    position: relative; /* Ermöglicht die absolute Positionierung des Textes */
}

.header-banner bannertext {
    color: white; /* Textfarbe */
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black; /* Textschatten für bessere Lesbarkeit */
    position: absolute; /* Damit der Text über dem Banner angezeigt wird */
    bottom: 20px; /* Positionierung des Titels */
    left: 20px; /* Abstand von links */
}


@media (max-width: 400px) {
    .header-banner {
        background-image: url('../img/banner_500_250.jpg'); /* Pfad zum kleinen Bild */
        height: 210px; /* Höhe des kleinen Banners */
    }

    header h1 {
        bottom: 10px; /* Positionierung des Titels für mobile Ansicht */
        left: 10px; /* Abstand von links */
    }
}

header h1 {
    color: white;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

h2 {
    font-size: 2rem; /* Desktop */
    color: #555555; 
}



@media only screen and (max-width: 768px) {
    body {
        font-size: 0.8rem; /* Mobile */
    }

    h1 {
        font-size: 1rem; /* Mobile */
    }

    h2 {
        font-size: 0.8rem; /* Mobile */
    }
}

 

/* ========================= NAVIGATION STYLES ========================= */



/* ========================= Kachel Container ========================= */
/* ==========================================================================
   1. ERSTE KACHEL-GRUPPE (.zwei-textkarten-container)
   ========================================================================== */
.zwei-textkarten-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px;
    max-width: 1200px;
    /* ÄNDERUNG: Erhöht den Abstand nach unten auf 50px */
    margin: 20px auto 100px auto; 
    padding: 0px;
    box-sizing: border-box;
    background-color: #ffffff; 
}

.textkarte {
    display: flex;
    flex-direction: column;
    background-color: #ffffff; 
    border: 1px solid #ffffff;  
    border-radius: 6px;
    text-decoration: none;
    color: #000000;             
    transition: transform 0.2s ease;
}

.textkarte:hover {
    transform: translateY(-3px);
    box-shadow: none;
    border-color: #ffffff;      
}

.karten-inhalt-zwei {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    height: 100%;
    box-sizing: border-box;
}

.textkarte h3 {
    margin: 0 0 12px 0;
    font-size: 1.3rem;
    color: #000000 !important;   
}

.textkarte p {
    margin: 0 0 24px 0;
    font-size: 0.95rem;
    color: #000000 !important;   
    line-height: 1.5;
    flex-grow: 1;               
}

.textkarte .button-link {
    display: inline-block;
    width: fit-content;
    padding: 10px 20px;
    background-color: #050567;  
    color: #ffffff !important;  
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    border: 1px solid #050567;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.2s ease;
}

.textkarte:hover .button-link {
    background-color: #0a0a8f;  
}

@media (max-width: 768px) {
    .zwei-textkarten-container {
        /* ÄNDERUNG: Auch auf Mobilgeräten Abstand halten */
        margin: 20px auto 40px auto;
        grid-template-columns: 1fr;
        padding: 10px;
    }
}

/* ==========================================================================
   2. ZWEITE KACHEL-GRUPPE (.karten-hintergrund-container)
   ========================================================================== */
.karten-hintergrund-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1200px;
    /* ÄNDERUNG: Abstand nach oben (40px) und unten (60px) deutlich vergrößert */
    margin: 100px auto 150px auto; 
    box-sizing: border-box;
    background-color: #ffffff; 
}

.karte {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;      
    background-size: cover;          
    background-position: center;     
    background-repeat: no-repeat;
    border: 1px solid #ffffff; 
    border-radius: 6px;
    text-decoration: none;
    color: #ffffff;
    overflow: hidden;                
    transition: transform 0.2s ease;
    min-height: 220px;               
}

.karte:hover {
    transform: translateY(-3px);
    box-shadow: none;
    border-color: #ffffff;
}

.karten-inhalt {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    height: 100%;
    box-sizing: border-box;
}

.karten-inhalt h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    color: #ffffff;
}

.karten-inhalt p {
    margin: 0 0 20px 0;
    font-size: 0.95rem;
    color: #ffffff;
    line-height: 1.4;
    flex-grow: 1;
}

.karten-inhalt span {
    font-weight: bold;
    font-size: 0.9rem;
    color: #ffffff;
}

@media (max-width: 600px) {
    .karten-hintergrund-container {
        /* ÄNDERUNG: Auch mobil optimierter Abstand */
        margin: 30px auto 40px auto;
        grid-template-columns: 1fr;
        padding: 10px;
    }
}

/* ==========================================================================
   3. DRITTE KACHEL-GRUPPE (.textkarten-raster)
   ========================================================================== */
.textkarten-raster {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;                   
    max-width: 1200px;
    /* ÄNDERUNG: Abstand nach oben (40px) und unten (50px) vergrößert */
    margin: 100px auto 100px auto; 
    padding: 0px;   
    box-sizing: border-box;
    background-color: #ffffff; 
}

.einzelne-textkarte {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;   
    border: 1px solid #ffffff;    
    border-radius: 6px;
    color: #000000;              
    box-sizing: border-box;
    box-shadow: none; 
    transition: transform 0.2s ease;
}

.einzelne-textkarte:hover {
    transform: translateY(-2px);
    box-shadow: none; 
}

.einzelne-textkarte .karten-inhalt {
    padding: 24px;
    height: 100%;
    box-sizing: border-box;
}

.einzelne-textkarte h3 {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    color: #000000;              
}

.einzelne-textkarte p {
    margin: 0;
    font-size: 0.95rem;
    color: #333333;              
    line-height: 1.5;
}

@media (max-width: 600px) {
    .textkarten-raster {
        /* ÄNDERUNG: Mobil-Abstand angepasst */
        margin: 30px auto 30px auto;
        grid-template-columns: 1fr;
        padding: 10px;
    }
}


/* ========================= Kachel Container Ende ========================= */






.button-link {
    display: inline-block;
    padding: 12px 24px;
    background-color: #050567;    /* Dein Mercedes-Dunkelblau */
    color: #ffffff;               /* Weißer Text */
    text-decoration: none;        /* Unterstreichung des Links entfernen */
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    border: 1px solid #ffffff;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Effekt, wenn man mit der Maus darüber fährt */
.button-link:hover {
    background-color: #0a0a8f;    /* Etwas helleres Blau beim Hovern */
    border-color: #ffffff;
}

/* Effekt, wenn man den Button anklickt */
.button-link:active {
    transform: scale(0.98);
}







nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav > ul {
    display: flex;
    flex-direction: row; /* Horizontale Navigation */
}

nav li {
    position: relative;
    margin: 0; /* Verhindere Verschiebungen */
}

/* Feste Höhe für Links, um Layout-Verschiebungen zu vermeiden */
nav a {
    display: block;
    padding: 10px 15px; /* Genügend Platz für den Link */
    height: 20px; /* Feste Höhe für Stabilität */
    color: white;
    background-color: #000000;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav a:hover {
    color: #000000;
    background-color: #D1EEEE; /* Hintergrundfarbe beim Hover */
}

/* Untermenü-Styles */
nav .submenu {
    display: none; /* Standardmäßig ausblenden */
    position: absolute; /* Untermenü über dem normalen Inhalt */
    left: 0; /* Ausrichten */
    top: 100%; /* Direkt unter dem Hauptmenü */
    background-color: #000000; /* Hintergrundfarbe für das Untermenü */
}

nav li:hover .submenu {
    display: block; /* Untermenü anzeigen bei Hover */
}

/* Stil für benutzerdefinierte Body Links */
.body-link {
    color: #000000; /* Standardfarbe für Links */
    text-decoration: none; /* Keine Unterstreichung */
    font-weight: bold; /* Fettdruck */
}

/* Hover-Effekt für benutzerdefinierte Links */
.body-link:hover {
    color: #000000; /* Farbe beim Hover */
    text-decoration: underline; /* Unterstreichung beim Hover */
}


/* Stil für benutzerdefinierte Links */
.custom-link {
    color: #ffffff; /* Standardfarbe für Links */
    text-decoration: none; /* Keine Unterstreichung */
    font-weight: bold; /* Fettdruck */
}

/* Hover-Effekt für benutzerdefinierte Links */
.custom-link:hover {
    color: #2980b9; /* Farbe beim Hover */
    text-decoration: underline; /* Unterstreichung beim Hover */
}

/* Ausrichtung für Links - links */
.align-left {
    text-align: left; /* Textausrichtung nach links */
}

/* Ausrichtung für Links - rechts */
.align-right {
    text-align: right; /* Textausrichtung nach rechts */
}

/* Zusätzliche Anpassungen */
.align-center {
    text-align: center; /* Textausrichtung in der Mitte */
}





/* ========================= MOBILE STYLES ========================= */
@media (max-width: 719px) {
    nav ul {
        flex-direction: column;
        display: none; /* Initially hide the menu */
    }
    nav:hover > ul {
        display: block; /* Show the menu on hover */
    }
    nav li:hover > .submenu {
        display: block; /* Show submenu on hover */
    }
}

/* ========================= DESKTOP STYLES ========================= */
@media (min-width: 720px) {
    nav > ul {
        flex-direction: row;
        justify-content: space-around;
    }
    nav li {
        margin: 0;
    }
    nav .submenu {
        display: none; /* Hide submenus */
    }
    nav li:hover .submenu {
        display: block; /* Show submenu on hover */
    }
}


/* ========================= NAVIGATION STYLES ========================= */
nav {
    position: relative;
}

/* Stile für mobile Navigation */
.mobile-menu-toggle {
    display: none; /* Standardmäßig ausblenden */
    background-color: #000000;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
}

@media (max-width: 719px) {
    .mobile-menu-toggle {
        display: block; /* Button nur auf mobilen Geräten anzeigen */
    }

    nav > ul {
        display: none; /* Standardmäßig ausblenden */
        flex-direction: column;
        background-color: #000000;
        padding: 10px;
    }

    nav > ul.visible {
        display: flex; /* Menü anzeigen, wenn die Klasse 'visible' hinzugefügt wird */
    }
}



/* Untermenü-Styles für Handy */
nav .submenu {
    display: none; /* Standardmäßig ausblenden */
    position: absolute; /* Untermenü über dem normalen Inhalt */
    left: 0; /* Ausrichten */
    top: 100%; /* Direkt unter dem Hauptmenü */
    background-color: #000000; /* Hintergrundfarbe für das Untermenü */
}

nav li:hover .submenu {
    display: block; /* Untermenü anzeigen bei Hover */
}

/* Mobile Styles für das Untermenü */
@media (max-width: 719px) {
    nav li {
        position: relative; /* Notwendig für das Untermenü */
    }
    nav .submenu {
        position: static; /* Positionierung ändern für mobile Ansicht */
        display: none; /* Standardmäßig ausblenden */
        background-color: #000000; /* Hintergrundfarbe für das Untermenü */
    }
    nav li.active .submenu {
        display: block; /* Untermenü anzeigen, wenn aktiv */
    }
}







/* ========================= DESKTOP STYLES ========================= */
@media (min-width: 720px) {
    nav > ul {
        display: flex;
        flex-direction: row;
    }
    nav > ul.visible {
        display: flex; /* Für Desktop, falls benötigt */
    }

    nav li {
        margin: 0;
    }
}

.mobile-menu-toggle {
    display: none; /* Standardmäßig ausblenden */
    background: none;
    border: none;
    cursor: pointer;
}

/* Hamburger-Striche */
.bar {
    display: block;
    width: 30px; /* Breite der Striche */
    height: 3px; /* Höhe der Striche */
    background-color: white; /* Farbe der Striche */
    margin: 5px 0; /* Abstand zwischen den Strichen */
}

@media (max-width: 719px) {
    .mobile-menu-toggle {
        display: block; /* Button nur auf mobilen Geräten anzeigen */
    }
}



/* ========================= Einrücken von spezifischen Elementen ======================== */

main {
    margin: 0 auto;
    padding: 5px; /* Gesamtabstand um den Hauptinhalt */
}

section {
    margin: 2px; /* Abstand um das section-Element */
    padding: 10px; /* Innenabstand für das section-Element */
    background-color: #FFFFFF; /* Hintergrundfarbe für das section-Element */
}

aside {
    margin: 2px; /* Abstand um das aside-Element */
    padding: 10px; /* Innenabstand für das aside-Element */
    background-color: #FFFFFF; /* Hintergrundfarbe für das aside-Element */
}

/* ========================= TEXTAUSRICHTUNG ========================= */

.left-align {
    text-align: left; /* Text wird nach links ausgerichtet */
    margin: 20px;
    background-color: #f0f0f0; /* Hintergrundfarbe */
    padding: 10px; /* Innenabstand */
    width: 100%; /* Breite auf 100% setzen */
    box-sizing: border-box; /* Padding und Margin in die Breite einbeziehen */
}

.right-align {
    text-align: right; /* Text wird nach rechts ausgerichtet */
    margin: 0px;
    background-color: #f0f0f0; /* Beispiel Hintergrundfarbe  */
    padding: 20px; /* Innenabstand */
    width: 100%; /* Breite auf 100% setzen */
    box-sizing: border-box; /* Padding und Margin in die Breite einbeziehen */
}

.center-align {
    text-align: center; /* Text wird zentriert */
    margin: 20px;
    background-color: #f0f0f0; /* Hintergrundfarbe */
    padding: 10px; /* Innenabstand */
    width: 100%; /* Breite auf 100% setzen */
    box-sizing: border-box; /* Padding und Margin in die Breite einbeziehen */
}




details {
    color: #000000;
    background-color: #f0f0f0;
    padding: 10px;
    cursor: pointer;
}
details details {
    background-color: #f0f0f0;
    margin-left: 1em;
}






/* ========================= FLEXBOX STYLES ========================= */

.flex-container {
    display: flex;
    justify-content: space-between; /* Elemente gleichmäßig verteilen */
    margin: 20px;
}

.flex-item {
    padding: 10px;
    flex: 1; /* Nimmt den verfügbaren Platz ein */
}

.left {
    text-align: left; /* Text wird nach links ausgerichtet */
    background-color: #f0f0f0;
}

.right {
    text-align: right; /* Text wird nach rechts ausgerichtet */
    background-color: #d0f0c0;
}

/* ========================= FOOTER STYLES ========================= */

.mb-footer {
    background-color: #0f1012;
    color: #ababab;
    font-family: Arial, sans-serif;
    padding: 40px 20px 20px 20px;
    font-size: 14px;
    border-top: 2px solid #1a1c1f;
}
.mb-footer-container {
    max-width: 1100px;
    margin: 0 auto;
}
.mb-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.mb-footer-column h4 {
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 15px;
}
.mb-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mb-footer-column ul li {
    margin-bottom: 10px;
}
.mb-footer-column ul li a {
    color: #ababab;
    text-decoration: none;
    transition: color 0.2s ease;
}
.mb-footer-column ul li a:hover {
    color: #ffffff;
}
.mb-footer-social {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: flex-start;
}
.mb-footer-social .social-icon {
    color: #ababab;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}
.mb-footer-social .social-icon:hover {
    color: #ffffff;
    transform: translateY(-2px);
}
.mb-footer-divider {
    border: 0;
    height: 1px;
    background-color: #1a1c1f;
    margin: 20px 0;
}
.mb-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #707070;
}
.mb-footer-legal a {
    color: #707070;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.2s ease;
}
.mb-footer-legal a:hover {
    color: #ffffff;
}
@media (max-width: 768px) {
    .mb-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .mb-footer-legal a {
        margin-left: 0;
        margin-right: 15px;
        display: inline-block;
    }
}
/* Untere Zeile: Gesamter Text (inklusive Copyright) in klarem Weiß */
.mb-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 13px; /* Leicht vergrößert für bessere Lesbarkeit */
    color: #ffffff;  /* Macht den Copyright-Text und das PHP-Datum weiß */
}

/* Die rechtlichen Links (Impressum & Datenschutz) standardmäßig in Weiß */
.mb-footer-legal a {
    color: #ffffff; /* Macht die Links dauerhaft weiß */
    text-decoration: none;
    margin-left: 20px;
    font-weight: normal;
    transition: opacity 0.2s ease;
}

/* Kleiner visueller Effekt: Beim Drüberfahren werden die Links minimal transparenter */
.mb-footer-legal a:hover {
    opacity: 0.7; 
}





/* ========================= Slideshow  ========================= */


.slideshow-container {
    position: relative; /* Belässt den Container im Fluss des Dokuments */
    max-width: 100%; /* Maximale Breite */
    margin: 0 auto; /* Zentriert die Slideshow */
    overflow: hidden; /* Verhindert Überlauf */
}

.mySlides {
    display: none; /* Standardmäßig ausblenden */
    width: 100%; /* Responsive Breite */
}

img {
    width: 100%; /* Responsive Bilder */
    height: auto; /* Automatische Höhe */
}

.text {
    color: white; 
    font-size: 25px; /* Standardgröße für größere Bildschirme */
    padding: 2px 12px; 
    position: absolute; 
    bottom: 8px; 
    left: 0px;
    width: 100%; /* Hintergrund auf 100% Breite */
    background-color: #050567; /* Hintergrundfarbe */
}

/* Media Query für Tablets und kleinere Bildschirme */
@media (max-width: 768px) {
    .text {
        font-size: 5vw; /* Schriftgröße in Viewport Width für Tablets */
    }
}

/* Media Query für Smartphones */
@media (max-width: 480px) {
    .text {
        font-size: 6vw; /* Schriftgröße in Viewport Width für Handys */
    }
}


.prev, .next {
    cursor: pointer;
    position: absolute; 
    top: 50%; 
    width: auto; 
    padding: 16px; 
    color: white; 
    font-weight: bold; 
    font-size: 18px; 
    transition: 0.6s ease; 
    border-radius: 0 3px 3px 0; 
    user-select: none; 
}

.next {
    right: 0; 
    border-radius: 3px 0 0 3px; 
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8); 
}

@media only screen and (max-width: 600px) {
    .text {
        font-size: 12px; /* Kleinere Schrift für Handys */
    }
}
