/*
Theme Name: Divi Child
Theme URI: https://www.elegantthemes.com/gallery/divi/
Description: Child Theme für Divi ohne ACF-Abhängigkeit
Author: Dein Name
Author URI: https://deine-website.de
Template: Divi
Version: 1.0.0
*/

/* Hier beginnen deine eigenen CSS-Anpassungen */

/* Farbvariablen für konsistente Verwendung */
:root {
    --primary-color: #4e60a5;    /* Dunkelblau/Indigo - für Hauptelemente */
    --accent-color: #e23d43;     /* Rot - für Hervorhebungen/Aktionen */
    --secondary-color: #EECF23;  /* Gelb - für sekundäre Elemente */
}

/* Grundlegende Farbeinstellungen */
body {
    color: #333;
}

/* Links und Buttons */
a {
    color: var(--primary-color);
}

a:hover, a:focus {
    color: var(--accent-color);
}

.btn, button, .button, input[type="submit"], .et_pb_button {
    background-color: var(--primary-color);
    color: #fff !important;
    border-color: var(--primary-color);
}

.btn:hover, button:hover, .button:hover, input[type="submit"]:hover, .et_pb_button:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Header-Bereich */
header, .site-header, #main-header, .et-fixed-header {
    background-color: #fff;
    
}

/* Navigation */
.nav-primary, #top-menu li.current-menu-item > a, .et-fixed-header #top-menu li.current-menu-item > a {
    color: var(--primary-color);
}

.nav-primary .current-menu-item > a, .sub-menu {
    background-color: var(--secondary-color);
    color: #333;
}

/* Footer */
footer, .site-footer {
    color: #fff;
}

/* Anpassungen für den modifizierten Footer mit nur einer Zeile */
#main-footer {
    background-color: #ff6b35; /* Orange Hintergrundfarbe */
}

#footer-bottom {
    padding: 10px 0;
    background-color: #ff6b35; /* Orange Hintergrundfarbe */
}

#footer-bottom .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

#footer-bottom .bottom-nav {
    padding-bottom: 0;
    margin-bottom: 2px;
    flex: 1;
    order: 1;
}

/* Sprachflaggen im Footer */
.language-switcher-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    order: 2;
    padding: 0 10px;
}

.language-link-footer {
    margin: 0 12px; /* Noch mehr Abstand zwischen den Flaggen */
    opacity: 0.7;
    transition: opacity 0.3s ease;
    display: block; /* Sicherstellen, dass der Link richtig dimensioniert ist */
}

.language-link-footer:hover {
    opacity: 1;
    transform: scale(1.05); /* Leichter Zoom-Effekt beim Hover */
}

.language-link-footer.current-language {
    opacity: 1;
    transform: scale(1.05); /* Aktuelle Sprache leicht hervorheben */
}

.flag-img-footer {
    width: 40px; /* Weiter vergrößert auf 40px */
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 3px; /* Etwas mehr abgerundete Ecken */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); /* Stärkerer Schatten für mehr Tiefe */
}

#footer-bottom .bottom-nav li {
    margin-right: 20px;
    padding-right: 20px;
}

#footer-bottom .bottom-nav li:last-child {
    margin-right: 0;
    padding-right: 0;
}

/* Weiße Textfarbe für die Menülinks im Footer (Impressum, Datenschutz) */
#footer-bottom .bottom-nav a {
    color: #fff;
}

#footer-bottom .bottom-nav a:hover {
    color: #f0f0f0;
    opacity: 0.9;
}

#footer-bottom .et-social-icons {
    float: none;
    margin-left: auto;
    margin-bottom: 0;
    flex: 1;
    order: 3;
    text-align: right;
}

/* Weiße Farbe für Social Media Icons */
#footer-bottom .et-social-icons li a {
    color: #fff !important;
}

#footer-bottom .et-social-icons li a:hover {
    color: #f0f0f0 !important;
    opacity: 0.9;
}
.site-header {

    display: none;
}
/* Responsive Anpassungen für den Footer */
@media only screen and (max-width: 767px) {
    #footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
    
    #footer-bottom .bottom-nav {
        margin-bottom: 15px;
        order: 1;
        text-align: center;
    }
    
    .language-switcher-footer {
        margin: 15px 0;
        order: 2;
        justify-content: center;
        flex-wrap: wrap; /* Erlaubt Umbruch bei sehr kleinen Bildschirmen */
    }
    
    #footer-bottom .et-social-icons {
        margin-left: 0;
        margin-top: 10px;
        order: 3;
        text-align: center;
    }
}

/* Widgets */
.widget-title, h3.widget-title {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
}

/* Sections & Überschriften */
.section-title, .entry-title, h1, h2, h3 {
    color: var(--primary-color);
}

/* Call-to-Action Elemente */
.cta, .highlight, .featured {
    background-color: var(--secondary-color);
    color: #333;
}

.alert, .notice, .badge {
    background-color: var(--accent-color);
    color: #fff;
}

/* Formulare */
input:focus, textarea:focus, select:focus {
    border-color: var(--primary-color);
}

/* Divi spezifische Elemente */
.et_pb_section_highlighted {
    background-color: var(--secondary-color);
}

.et_pb_promo, .et_pb_cta {
    background-color: var(--primary-color);
    color: #fff;
}

.et_pb_tabs_controls li.et_pb_tab_active {
    background-color: var(--secondary-color);
}

/* Polylang-Flaggen-Styling */
#et-top-navigation .et_pb_menu__wrap:after,
#top-menu:after {
    content: '';
    display: inline-block;
    clear: none;
}

/* Position der Sprachumschalter */
.et_header_style_left #et-top-navigation .pll-parent-menu-item,
.et_header_style_left #et-top-navigation #polylang-2,
.et_header_style_left #et-top-navigation .widget_polylang {
    display: block !important;
    position: relative;
    padding-left: 15px;
    float: right;
    margin-top: -8px; /* Feinabstimmung der vertikalen Position */
}

/* Verstecke den Standardlabel */
.pll-parent-menu-item > a,
.widget_polylang h4.widgettitle {
    display: none !important;
}

/* Gestaltung der Flaggen */
.pll-parent-menu-item ul.sub-menu,
#polylang-2 ul,
.widget_polylang ul {
    display: flex !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    width: auto !important;
}

/* Einzelne Flaggen vergrößern */
.pll-parent-menu-item ul.sub-menu li,
#polylang-2 li,
.widget_polylang li {
    padding: 0 5px !important;
    width: auto !important;
    background: none !important;
}

/* Vergrößerte Flaggen */
.pll-parent-menu-item img.pll-lang-icon,
#polylang-2 img.pll-lang-icon,
.widget_polylang img.pll-lang-icon,
.pll-parent-menu-item img.flag,
#polylang-2 img.flag,
.widget_polylang img.flag {
    width: 26px !important; /* Größere Flaggen */
    height: auto !important;
    vertical-align: middle;
    margin-right: 0;
    margin-bottom: 0;
    border: 1px solid #eee;
}

/* Aktive Sprache hervorheben */
.pll-parent-menu-item li.current-lang img,
#polylang-2 li.current-lang img,
.widget_polylang li.current-lang img {
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 3px rgba(0,0,0,0.2);
}

/* Polylang-Flaggen im Netzwerk-Menü */
.network-menu-items .widget_polylang {
    display: inline-block;
    margin-left: 20px;
    vertical-align: middle;
}

.network-menu-items .widget_polylang ul.polylang-language-switcher {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.network-menu-items .widget_polylang ul.polylang-language-switcher li {
    margin: 0 5px;
    display: inline-block;
}

.network-menu-items .widget_polylang img.pll-lang-icon,
.network-menu-items .widget_polylang img.flag {
    width: 24px !important;
    height: auto !important;
    vertical-align: middle;
    margin-right: 0;
    margin-bottom: 0;
    border: 1px solid #eee;
    border-radius: 2px;
}

.network-menu-items .widget_polylang li.current-lang img {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

/* Flaggen auch im Site-Header-Menü */
.primary-menu .widget_polylang {
    display: inline-block;
    margin-left: 15px;
}

.primary-menu .widget_polylang ul.polylang-language-switcher {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.primary-menu .widget_polylang ul.polylang-language-switcher li {
    margin: 0 3px;
    display: inline-block;
}

.primary-menu .widget_polylang img.pll-lang-icon,
.primary-menu .widget_polylang img.flag {
    width: 20px !important;
    height: auto !important;
    vertical-align: middle;
    border: 1px solid #ddd;
    border-radius: 2px;
}

.primary-menu .widget_polylang li.current-lang img {
    border: 2px solid var(--primary-color);
}

/* Polylang-Flaggen unterhalb des Menüs */
.language-flags-below-menu {
    width: 100%;
    padding: 10px 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    background: rgba(255, 255, 255, 0.95);
}

.language-switcher-container {
    display: inline-flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.language-link-below {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
}

.language-link-below:hover {
    background: #4e60a5;
    border-color: #4e60a5;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.language-link-below.current-language {
    background: #4e60a5;
    border-color: #4e60a5;
}

.flag-img-below {
    width: 24px;
    height: auto;
    display: block;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Logo größer machen */
.main-logo img {
    max-height: 80px !important; /* Vergrößert von ursprünglich ~50px */
    width: auto;
    height: auto;
}

/* Responsive Anpassungen für größeres Logo */
@media (max-width: 768px) {
    .main-logo img {
        max-height: 55px !important;
    }
    
    .language-flags-below-menu {
        padding: 8px 0;
    }
    
    .language-switcher-container {
        gap: 10px;
    }
    
    .flag-img-below {
        width: 20px;
    }
}

@media (max-width: 480px) {
    .main-logo img {
        max-height: 45px !important;
    }
    
    .language-flags-below-menu {
        padding: 6px 0;
    }
    
    .language-switcher-container {
        gap: 8px;
    }
    
    .flag-img-below {
        width: 18px;
    }
}

/* Responsive Anpassungen */
@media (max-width: 980px) {
    /* Flaggen im mobilen Menü richtig positionieren */
    .et_header_style_left .mobile_menu_bar + .pll-parent-menu-item,
    .et_header_style_left .mobile_menu_bar + #polylang-2,
    .et_header_style_left .mobile_menu_bar + .widget_polylang {
        position: absolute;
        right: 50px;
        top: 15px;
    }
}

.et_header_style_left #et-top-navigation nav>ul>li>a, .et_header_style_split #et-top-navigation nav>ul>li>a {
    /* padding-bottom: 40px; - Entfernt, da dies das Menü kaputt macht */
    font-size: 16px; /* Angepasst für Barrierefreiheit von 14px auf 16px */
}

/* Vergrößerte Flaggen */
.widget_polylang img.pll-lang-icon,
.widget_polylang img.flag,
.widget_polylang .lang-item img {
    width: 32px !important; /* Doppelt so groß wie Standard */
    height: auto !important;
    vertical-align: middle;
    margin-right: 0;
    margin-bottom: 0;
    border: 1px solid #eee;
}


/* Projekt-Slider auf der Startseite */
.project-slider-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.project-slider-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.project-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.project-slider {
    overflow: hidden;
}

.project-slide {
    display: none;
}

.project-slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.project-slide-card {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 10px;
}

.project-slide-image {
    flex: 0 0 30%; /* 30% Breite wie gewünscht */
    background-size: cover;
    background-position: center;
    min-height: 300px;
}

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

.project-slide-content {
    flex: 0 0 70%;
    padding: 30px;
}

.project-slide-categories {
    font-size: 16px; /* Angepasst für Barrierefreiheit von 14px auf 16px */
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.project-slide-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.project-slide-excerpt {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}

.project-slide-meta {
    margin-bottom: 20px;
    font-size: 16px; /* Angepasst für Barrierefreiheit von 14px auf 16px */
}

.meta-item {
    margin-bottom: 5px;
}

.project-slide-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-slide-button:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* Slider-Navigation */
.slider-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 1;
}

.slider-prev, .slider-next {
    background-color: rgba(255,255,255,0.8);
    color: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.slider-prev:hover, .slider-next:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .project-slide-card {
        flex-direction: column;
    }

    .project-slide-image, 
    .project-slide-content {
        flex: 0 0 100%;
    }

    .project-slide-image {
        min-height: 200px;
    }

    .project-slide-content {
        padding: 20px;
    }
}

/* Podcast Styles */
.podcast-header {
    background-color: #f5f5f5;
    padding: 40px 0;
    margin-bottom: 30px;
}

.podcast-header h1 {
    text-align: center;
    margin: 0;
    color: var(--primary-color);
}

.featured-episode {
    margin-bottom: 50px;
}

.podcast-featured {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.podcast-featured .podcast-image {
    flex: 0 0 30%;
}

.podcast-featured .podcast-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podcast-featured .podcast-content {
    flex: 0 0 70%;
    padding: 30px;
}

.podcast-player {
    margin: 20px 0;
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 15px;
}

.player-controls {
    display: flex;
    align-items: center;
}

.play-pause {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: none;
    cursor: pointer;
    position: relative;
    margin-right: 15px;
}

.play-pause::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #fff;
}

.play-pause.playing::before {
    content: '';
    border-style: double;
    border-width: 0 0 0 12px;
    height: 14px;
}

.progress {
    flex: 1;
    height: 6px;
    background-color: #ddd;
    border-radius: 3px;
    margin: 0 10px;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    background-color: var(--primary-color);
    height: 100%;
    width: 0;
    border-radius: 3px;
}

.podcast-episodes h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.podcast-item {
    display: flex;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.podcast-item .podcast-image {
    flex: 0 0 150px;
}

.podcast-item .podcast-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podcast-item .podcast-content {
    flex: 1;
    padding: 20px;
}

.podcast-meta {
    font-size: 16px; /* Angepasst für Barrierefreiheit von 14px auf 16px */
    color: #666;
    margin-bottom: 10px;
}

.podcast-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
}

.podcast-link:hover {
    text-decoration: underline;
}

.pagination {
    margin-top: 30px;
    text-align: center;
}

@media (max-width: 768px) {
    .podcast-featured {
        flex-direction: column;
    }
    
    .podcast-featured .podcast-image {
        flex: auto;
    }
    
    .podcast-featured .podcast-content {
        flex: auto;
        padding: 20px;
    }
    
    .podcast-item {
        flex-direction: column;
    }
    
    .podcast-item .podcast-image {
        flex: auto;
        height: 180px;
    }
}
.language-switcher-footer img{
    width: 25px; /* Angepasst für bessere Sichtbarkeit */
    height: auto;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);

}
/* Einzelne Podcast-Episode */
.podcast-single-header {
    background-color: #f5f5f5;
    padding: 20px 0;
}

.podcast-breadcrumbs {
    font-size: 16px; /* Angepasst für Barrierefreiheit von 14px auf 16px */
}

.podcast-breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.podcast-breadcrumbs a:hover {
    text-decoration: underline;
}

.podcast-single-content {
    padding: 40px 0;
}

.podcast-full {
    max-width: 800px;
    margin: 0 auto;
}

.podcast-full .podcast-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.podcast-full .podcast-meta {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px; /* Angepasst für Barrierefreiheit von 14px auf 16px */
}

.podcast-full .podcast-featured-image {
    margin-bottom: 30px;
}

.podcast-full .podcast-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.podcast-full .podcast-player {
    margin: 30px 0;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
}

.podcast-full .podcast-content {
    line-height: 1.7;
}

.related-podcasts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.related-podcasts h2 {
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
}

.related-podcasts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.related-podcast-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.related-podcast-item:hover {
    transform: translateY(-5px);
}

.related-podcast-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-podcast-title {
    padding: 15px 15px 5px;
    font-size: 18px;
}

.related-podcast-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.related-podcast-meta {
    padding: 0 15px 15px;
    font-size: 16px; /* Angepasst für Barrierefreiheit von 14px auf 16px */
    color: #666;
}

.all-podcasts-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.all-podcasts-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .related-podcasts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .related-podcasts-grid {
        grid-template-columns: 1fr;
    }
}
/* Netzwerk-Header und Menü Styling */
.main-network-header {
    background-color: #f8f8f8; /* Heller Hintergrund */
    color: #333;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    position: relative;
    z-index: 999;
    /* Verhindert Überlappung */
    margin-bottom: 0;
}

.network-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.main-logo {
    max-width: 300px;
    /* border-right: 2px solid var(--secondary-color); - Entfernt die gelbe Linie */
    padding-right: 20px;
    margin-right: 20px;
}

.main-logo img {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); /* Subtiler Schatten */
}

.network-menu,
.network-menu nav {
    display: flex;
    align-items: center;
}

.network-menu-items {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.network-menu-items li {
    margin: 0 15px;
}

.network-menu-items a {
    color: var(--primary-color); /* Verwendet das Website-Blau #4e60a5 */
    text-decoration: none;
    font-size: 16px; /* Angepasst für Barrierefreiheit von 14px auf 16px */
    padding: 8px 12px;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-weight: 500; /* Etwas dicker für bessere Lesbarkeit */
}

.network-menu-items a:hover {
    background-color: var(--primary-color); /* Blauer Hintergrund bei Hover */
    color: #fff; /* Weiße Schrift bei Hover */
}

/* Anpassung des aktiven Menüpunkts auf Orange und Dunkelblau */
.network-menu-items li.current-menu-item a, 
.primary-menu li.current-menu-item a,
#top-menu li.current-menu-item > a, 
.et-fixed-header #top-menu li.current-menu-item > a,
.et_pb_menu_inner_container .et_pb_menu__menu .current-menu-item a {
    background-color: #ff5e00 !important; /* Orange */
    color: white !important;
}

/* Hover-Zustand für aktive Menüpunkte */
.network-menu-items li.current-menu-item a:hover, 
.primary-menu li.current-menu-item a:hover,
#top-menu li.current-menu-item > a:hover, 
.et-fixed-header #top-menu li.current-menu-item > a:hover,
.et_pb_menu_inner_container .et_pb_menu__menu .current-menu-item a:hover {
    background-color: #141e55 !important; /* Dunkelblau */
    color: white !important;
}

/* Auch für das Site-Header Menü konsistent gestalten */
.primary-menu a {
    color: var(--primary-color); /* Blaue Schrift */
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.primary-menu a:hover {
    background-color: var(--primary-color); /* Blauer Hintergrund bei Hover */
    color: white;
    transform: translateY(-1px); /* Subtiler Hover-Effekt */
}

/* Aktive Menüpunkte hervorheben */
.network-menu-items li.current-menu-item a,
.primary-menu li.current-menu-item a {
    background-color: #ff5e00 !important; /* Orange */
    color: white !important;
}

/* Debug-Kommentare ausblenden */
.site-header,
.main-network-header {
    overflow: hidden;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .network-navigation,
    .site-header .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .network-menu-items,
    .primary-menu {
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
    }
    
    .network-menu-items li,
    .primary-menu li {
        margin: 5px 0;
        width: 100%;
    }
    
    .network-menu-items a,
    .primary-menu a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px;
    }
    
    .main-navigation {
        margin-top: 15px;
        text-align: center;
        width: 100%;
    }
    
    .main-navigation nav {
        justify-content: center;
    }
}

/* Mobile Responsive - Logo-Anpassungen */
@media (max-width: 768px) {
    .main-logo {
        max-width: 200px; /* Kleiner auf Mobile */
    }
    
    .main-logo img {
        max-height: 45px;
    }
    
    .site-logo {
        max-width: 250px;
    }
    
    .site-logo img {
        max-height: 60px;
    }
    
    .main-network-header {
        padding: 20px 0; /* Mehr Padding für Mobile */
    }
}

/* Verbesserte Header-Trennung */
.main-network-header {
    background-color: #f8f8f8;
    color: #333;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    position: relative;
    z-index: 999;
    /* Verhindert Überlappung */
    margin-bottom: 0;
}

/* Dual Header System - Netzwerk und Subsite */
.network-header {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    position: relative;
    z-index: 1000;
}

.network-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.network-header .network-logo {
    flex: 0 0 auto;
}

.network-header .network-logo img {
    max-height: 60px;
    width: auto;
}

.network-header .network-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.network-menu {
    display: flex;
    align-items: center;
}

.network-menu-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.network-menu-items li {
    margin: 0 15px;
}

.network-menu-items a {
    color: #4e60a5;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.network-menu-items a:hover {
    background-color: #f0f2f5;
    color: #333;
}

/* Site Header (Subsite) */
.site-header {
    background: #f8f9fa;
    border-bottom: 2px solid #4e60a5;
    padding: 15px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header .site-branding h1.site-title {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
}

.site-header .site-branding h1.site-title a {
    color: #4e60a5;
    text-decoration: none;
}

.site-header .main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.site-header .primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.site-header .primary-menu li {
    margin: 0 10px;
}

.site-header .primary-menu a {
    color: #4e60a5;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.site-header .primary-menu a:hover {
    background-color: #e9ecef;
    color: #333;
}

/* === NEUE POLYLANG INTEGRATION === */

/* Menü-Integration für Language Switcher */
.menu-item-language-switcher {
    position: relative;
    margin-left: auto !important;
}

.language-switcher-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.language-link {
    display: inline-block;
    padding: 4px 6px;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.language-link:hover {
    background-color: rgba(78, 96, 165, 0.1);
    border-color: rgba(78, 96, 165, 0.3);
}

.language-link.current-language {
    background-color: #4e60a5;
    border-color: #4e60a5;
}

.language-link.current-language .language-flag {
    border-color: #fff;
}

.language-flag {
    width: 24px !important;
    height: auto !important;
    border: 1px solid #ddd;
    border-radius: 2px;
    vertical-align: middle;
    display: block;
    transition: all 0.3s ease;
}

.language-code {
    background: #4e60a5;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 16px; /* Angepasst für Barrierefreiheit von 12px auf 16px */
    font-weight: bold;
    text-transform: uppercase;
    min-width: 24px;
    text-align: center;
}

/* Header-Integration (Alternative Methode) */
.header-language-switcher {
    position: fixed;
    top: 50px;
    right: 20px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.language-switcher-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-item {
    display: block;
    padding: 4px;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.lang-item:hover {
    background-color: rgba(78, 96, 165, 0.1);
    border-color: rgba(78, 96, 165, 0.3);
    transform: scale(1.05);
}

.lang-item.current-lang {
    background-color: #4e60a5;
    border-color: #4e60a5;
}

.lang-item.current-lang .flag-img {
    border-color: #fff;
}

.flag-img {
    width: 20px !important;
    height: auto !important;
    border: 1px solid #ccc;
    border-radius: 2px;
    display: block;
    transition: all 0.3s ease;
}

/* Netzwerk-Header Integration */
.network-menu-items .menu-item-language-switcher {
    margin-left: 20px;
}

/* Site-Header Integration */
.primary-menu .menu-item-language-switcher {
    margin-left: 15px;
}

/* Debug-Styles für bessere Sichtbarkeit */
body.logged-in .header-language-switcher {
    background: #fff3cd;
    border-color: #ffeaa7;
}

body.logged-in .header-language-switcher:before {
    content: "🌍 DEBUG: Polylang";
    font-size: 16px; /* Angepasst für Barrierefreiheit von 10px auf 16px */
    color: #856404;
    display: block;
    margin-bottom: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-language-switcher {
        position: static;
        margin: 10px auto;
        text-align: center;
        width: fit-content;
    }
    
    .menu-item-language-switcher {
        width: 100%;
        text-align: center;
        margin: 10px 0 !important;
    }
    
    .language-switcher-wrapper {
        justify-content: center;
    }
}

/* Keine Podcasts verfügbar - Meldung */
.no-podcasts-message {
    padding: 60px 0;
    background: #f9f9f9;
    text-align: center;
}

.no-content-notice {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.no-content-notice h2 {
    color: #4e60a5;
    margin-bottom: 20px;
    font-size: 28px;
}

.no-content-notice p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.language-switch-link {
    display: inline-block;
    background: #4e60a5;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.language-switch-link:hover {
    background: #3a4d8a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .no-content-notice {
        margin: 0 20px;
        padding: 30px 15px;
    }
    
    .no-content-notice h2 {
        font-size: 24px;
    }
      .no-content-notice p {
        font-size: 16px; /* Angepasst für Barrierefreiheit von 14px auf 16px */
    }
}

/* CSS für die Projektdetailseite */

/* Container für das Hauptbild und die Logos */
.project-media-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    flex-wrap: nowrap;
}

/* Hauptbild */
.project-featured-image {
    width: 70%;
    min-width: 0;
    margin-right: 30px;
    flex-shrink: 1;
}

.project-featured-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Container für die Logos */
.project-logos {
    width: 30%;
    min-width: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
}

/* Einzelnes Logo */
.project-logo-item {
    max-width: 150px;
    width: 150px;
    flex: 0 0 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 6px;
}

.project-logo-item img {
    max-width: 100%;
    width: 100%;
    height: auto;
    padding: 4px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    border: 1px solid #eee;
    background: #fff;
    object-fit: contain;
}

/* Projekt Header */
.project-header {
    margin-top: 20px;
}

/* Verbesserte Desktop-Ausrichtung für Logos */
@media (min-width: 769px) {
    .project-logos {
        display: flex;
        flex-direction: row;
        align-items: center;
        align-self: center;
        flex-wrap: nowrap;
    }

    .project-media-container {
        flex-wrap: nowrap;
        align-items: center;
    }

    .project-logo-item + .project-logo-item {
        margin-left: 10px;
    }
}

.project-excerpt {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

/* Responsive Anpassungen */
@media (max-width: 980px) {
    .project-featured-image {
        width: calc(65% - 15px);
        margin-right: 15px;
    }
    
    .project-logos {
        width: 35%;
        gap: 10px;
    }
    
    .project-logo-item {
        max-width: calc(33.333% - 8px);
    }
}

@media (max-width: 900px) {
    .project-featured-image {
        width: 60%;
        margin-right: 20px;
    }
    .project-logos {
        width: 40%;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .project-media-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .project-featured-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .project-logos {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        gap: 15px;
    }
    
    .project-logo-item {
        max-width: 80px;
    }
}

/* Für sehr kleine Bildschirme */
@media (max-width: 480px) {
    .project-logos {
        justify-content: center;
    }
    
    .project-logo-item {
        max-width: 80px;
    }
}

/* Sicherstellen, dass die Stile auf der Projekt-Detailseite greifen */
.single-project .project-logo-item {
    max-width: 150px !important;
    width: 150px !important;
    flex: 0 0 150px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 6px !important;
}

.single-project .project-logo-item img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    padding: 4px !important;
    border-radius: 2px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
    border: 1px solid #eee !important;
    background: #fff !important;
    object-fit: contain !important;
}

.single-project .project-logos {
    gap: 12px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 30% !important;
    min-width: 0 !important;
    margin-left: auto !important;
}

.single-project .project-media-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

.single-project .project-featured-image {
    width: 70% !important;
    min-width: 0 !important;
    margin-right: 30px !important;
    flex-shrink: 1 !important;
}


