/* ====================
   Header & Hero
   ==================== */
.site-header {
    position: relative;
    text-align: center;
    color: white;
}

.header-image-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.header-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Nunito Sans', sans-serif;
    font-size: 4em;
    color: #317bcc;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.7);
    margin: 0;
}

@media (max-width: 900px) {
    .header-title{
    position: absolute;
    top: 15%;
    left: 50%;
    font-size: 3rem;
    }
    
}

/* ====================
   Hauptnavigation
   ==================== */
.navbar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Punkte umbrechen, wenn zu eng */
    background-color: #143355;
    padding: 15px;
    margin-bottom: 25px;
}

.navbar ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.navbar li {
    margin: 0 10px;
}

.navbar a {
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: all 0.3s;
}

.navbar a:hover {
    background-color: #eaf4fe;
    color: #143355;
    border-radius: 6px;
}


.navbar .current-menu-item > a,
.navbar .current-menu-parent > a,
.navbar .current-post-ancestor > a,
.navbar .current-post-parent > a {
    background-color: #deedfd;
    color: #143355;
    border-radius: 6px;
}

/* ====================
   Responsive Navigation
   ==================== */
@media (max-width: 800px) {
    .navbar ul {
        flex-direction: column;
        align-items: center;
    }
    .navbar li {
        width: 100%;
        border-bottom: 1px dotted #fff;
        margin: 0;
    }
    .navbar li:last-child {
        border-bottom: none;
    }
    .navbar a {
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    text-decoration: none;
    padding: 2px 2px;
    display: block;
    transition: all 0.3s;
}
}

@media (max-width: 600px) {
    
.teaser-text {
    padding: 14px 20px;
    flex: 1;
}
}

/*****************************************************
                 Teaser
*****************************************************/
.teaser-section {
    display: flex;
    flex-direction: column; /* Vertikale Anordnung der Teaser */
    align-items: center; /* Zentriert die Teaser-Kästen horizontal */
    gap: 12px; /* Abstand zwischen den Teasern */
}

.teaser {
    display: flex; /* Flex-Layout für die Teaser-Inhalte */
    align-items: center; /* Vertikale Zentrierung von Bild und Text */
    border-bottom: 2px dotted #317bcc; /* Rand */
    overflow: hidden; /* Verhindert Überlauf */
    max-width: 800px; /* Maximale Breite */
    width: 99%; /* Vollständige Breite im Container */
}


.teaser:last-child {
        border-bottom: none;
    }

.teaser-image {
    width: 250px; /* Feste Breite des Bildes */
    height: 250px; /* Feste Höhe des Bildes */
    object-fit: cover; /* Bild wird ohne Verzerrung skaliert */
}

.teaser-text {
    padding: 14px 20px; /* Abstand im Textbereich */
    text-align: left; /* Links ausgerichteter Text */
    flex: 1; /* Nimmt den verfügbaren Raum im Teaser ein */
    line-height: 1.2;
}

#artikelteaser .teaser-text h2,
.main-content .teaser-text h2{
    font-family: Nunito Sans,sans-serif;
    font-size: clamp(1rem, 0.62vw + 0.876rem, 2rem);
    line-height: 1.2;
    color: #317bcc;
    font-weight: 300;
    margin: 0 0 10px; /* Abstand unter dem Titel */
}

#artikelteaser a:link, 
#artikelteaser a:visited,
#artikelteaser a:hover,
#artikelteaser a:active{
    color: #317bcc;
    text-decoration-line: none;
    font-weight: 400;
}

#artikelteaser a:hover{
    color: #143355;
}

.copyright,
.main-content .wp-caption{
    text-align: left; /* Zentriert den Copyright-Text */
    font-size: 0.80em; /* Kleinere Schriftgröße für den Copyright-Hinweis */
    color: #555; /* Hellerer Farbton für besseren Kontrast */
    margin-top: 4px; /* Abstand über dem Copyright-Text */
    padding: 10px 0; /* Optionale Polsterung im Bereich */
    width: 100%; /* Volle Breite für Copyright */
}
/*****************************************************
                 Hauptinhalt
*****************************************************/
.main-content h2.main-title{
    font-family: Nunito Sans,sans-serif;
    font-size: clamp(1.25rem, 2.165vw + 0.763rem, 4.688rem);
    line-height: clamp(1.875rem, 2.657vw + 1.277rem, 6.094rem);
    color: #317bcc; 
    font-weight: 400;
}


.main-content h2{
    font-family: Nunito Sans,sans-serif;
    font-size: clamp(1.125rem, 1.85vw + 0.709rem, 4.063rem);
    line-height: clamp(1.688rem, 2.264vw + 1.178rem, 5.281rem); 
    color: #317bcc;
    font-weight: 400;
}

.main-content h3{
    font-family: Nunito Sans,sans-serif;
    font-size: clamp(1.063rem, 1.496vw + 0.726rem, 3.438rem);
    line-height: clamp(1.594rem, 1.811vw + 1.186rem, 4.469rem);
    color: #317bcc;
    font-weight: 300;
    
}

.main-content img {
    max-width: 100%;
    height: auto;
    display: block;
} 

.main-content {
    max-width: 60%; /* Maximale Breite des Inhalts */
    margin: 0 auto; /* Zentriert den Inhalt auf der Seite */
    padding: 20px; /* Abstand innen */
}

.main-content .fett{font-weight: 500;color: #317bcc;}

.datum{
    font-weight: bold;
}
/***********************************************/
.main-content a:link, 
.main-content a:visited,
.main-content a:hover,
.main-content a:active{
    color: #666;
    text-decoration-line: none;
    font-weight: 300;
}

.main-content a:hover{
    color: #143355;
}



/* Optional: Für kleinere Bildschirme */
@media (max-width: 900px) {
    .main-content {
        max-width: 80%;
        padding: 20px; /* Weniger Innenabstand auf kleineren Bildschirmen */
    }
}

/* Media Queries für responsives Verhalten ab 800px */
@media (max-width: 800px) {
    .navbar ul li{
    display: block;
    padding: 6px;
    border-bottom: 1px dotted #317bcc;
}
    
}

/* Media Queries für responsives Verhalten ab 600px */
@media (max-width: 600px) {
    .header h1 {
        font-size: 2em; 
    }
    .teaser {
        flex-direction: column; 
        align-items: left; 
    }

    .teaser-image {
        width: 100%; 
        height: auto; 
    }

    .teaser-text {
        text-align: left; 
        padding: 16px 0 16px 0;
    }
}

/* Zusätzliche Media Query für kleinere Bildschirme ab 360px */
@media (max-width: 360px) {
    .teaser-image {
        width: 100%; 
    }

    .teaser-text {
        padding: 10px; 
    }

    .teaser-text p {
        font-size: 0.9em;
    }

    .teaser-link {
        font-size: 0.9em;
    }

}

/*****************************************************
                 Footer
*****************************************************/
.footer {
    background-color: #143355;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 25px;
}

.footer-nav {
    margin-top: 15px; /* Abstand zwischen dem Copyright-Text und den Links */
}

.footer-nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px; /* Abstand zwischen den Links */
}

.footer-nav a:hover {
    text-decoration: underline; /* Unterstreichen bei Hover */
}



.footer ul li{
    list-style-type: none;
    display: inline;
}

.footer ul{
    padding: 0;
}