/* Base styles */
:root {
    --primary-color: #002D5C;
    --secondary-color: #7DC21C;
    --accent-color: #F27B35;
    --text-color: #333333;
    --background-color: #F2F2F2;
    --header-height: 120px;
    --footer-height: 200px;
    --container-width: 1200px;
    --primary-color-rgb: 0, 45, 92;
    --min-font-size: 16px; /* Mindestschriftgröße für Barrierefreiheit */
    --logo-blue: #002D5C; /* Neue Blaufarbe für Gradient */
    --logo-blue-rgb: 0, 45, 92; /* RGB-Werte für Transparenzen */
}

/* Grüner Balken direkt unter dem Header */
.header-gradient {
    height: 20px;
    background: #7DC21C;
    position: relative;
    width: 100%;
    z-index: 1;
    overflow: hidden; /* Verhindert unerwünschte Scrollbalken */
}

/* Alternative: Grüner Balken mit sanfterem Design */
.header-gradient-alt {
    height: 20px;
    background: #7DC21C;
    position: relative;
    width: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Responsive Anpassungen für den Gradient */
@media (max-width: 768px) {
    .header-gradient {
        height: 15px;
    }
    
    .header-gradient-alt {
        height: 15px;
    }
}

@media (max-width: 480px) {
    .header-gradient {
        height: 12px;
    }
    
    .header-gradient-alt {
        height: 12px;
    }
}

/* Globale Mindestschriftgröße für Barrierefreiheit */
html {
    font-size: 16px; /* Basis-Schriftgröße */
}

body {
    font-size: var(--min-font-size);
}

/* Ausnahmen für Überschriften (können größer sein) */
h1, h2, h3, h4, h5, h6 {
    font-size: revert !important;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--primary-color);
    padding: 20px 0;
}

.header-logos {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.header-logos .logo-item img {
    height: 80px;
    width: auto;
}

/* Navigation */
.main-navigation {
    background: var(--secondary-color);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.main-navigation a:hover {
    background-color: rgba(242, 123, 53, 0.2);
}

/* Footer */
.site-footer {
    background: transparent;
    /* padding: 40px 0; */
}

.footer-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.footer-logos .logo-item img {
    height: 60px;
    width: auto;
}

/* Hauptlogo vergrößern */
.main-logo img {
    max-height: 70px !important;
    width: auto;
    height: auto;
}

/* Responsive Anpassungen für größeres Hauptlogo */
@media (max-width: 768px) {
    .main-logo img {
        max-height: 55px !important;
    }
}

@media (max-width: 480px) {
    .main-logo img {
        max-height: 45px !important;
    }
}

/* 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(242, 242, 242, 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(242, 242, 242, 0.8);
    border: 1px solid #ddd;
}

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

.language-link-below.current-language {
    background: #002D5C;
    border-color: #002D5C;
}

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

/* Responsive Anpassungen für Flaggen */
@media (max-width: 768px) {
    .language-flags-below-menu {
        padding: 8px 0;
    }
    
    .language-switcher-container {
        gap: 10px;
    }
    
    .flag-img-below {
        width: 20px;
    }
}

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

/* Menü-Container mit Logo und Flaggen */
.menu-with-flags-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.main-logo {
    flex-shrink: 0;
}

.network-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

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

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

.network-menu-items a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.network-menu-items a:hover {
    background-color: rgba(242, 123, 53, 0.2);
}

/* Inline-Flaggen im Menü */
.language-flags-inline {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.language-switcher-inline {
    display: flex;
    gap: 10px;
    align-items: center;
}

.language-link-inline {
    display: inline-block;
    padding: 4px 6px;
    border-radius: 3px;
    transition: all 0.3s ease;
    background: rgba(242, 242, 242, 0.1);
    border: 1px solid rgba(242, 242, 242, 0.2);
}

.language-link-inline:hover {
    background: rgba(242, 242, 242, 0.2);
    border-color: rgba(242, 242, 242, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.language-link-inline.current-language {
    background: rgba(242, 242, 242, 0.3);
    border-color: rgba(242, 242, 242, 0.5);
}

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

/* Responsive Anpassungen für Inline-Flaggen */
@media (max-width: 768px) {
    .menu-with-flags-container {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .main-logo {
        order: 1;
    }
    
    .network-menu {
        order: 2;
        justify-content: center;
    }
    
    .language-flags-inline {
        order: 3;
        margin-left: 0;
        margin-top: 0;
    }
    
    .language-switcher-inline {
        gap: 8px;
    }
    
    .flag-img-inline {
        width: 18px;
    }
}

@media (max-width: 480px) {
    .menu-with-flags-container {
        gap: 10px;
    }
    
    .language-switcher-inline {
        gap: 6px;
    }
    
    .flag-img-inline {
        width: 16px;
    }
}

/* Responsive styles */
@media (max-width: 1024px) {
    :root {
        --header-height: 100px;
        --footer-height: 180px;
    }
    
    .header-logos .logo-item img {
        height: 70px;
    }
    
    .footer-logos .logo-item img {
        height: 50px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 80px;
        --footer-height: 160px;
    }
    
    .header-logos {
        gap: 15px;
    }
    
    .header-logos .logo-item img {
        height: 60px;
    }
    
    .footer-logos .logo-item img {
        height: 40px;
    }
    
    /* Mobile navigation */
    .menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
}

@media (max-width: 480px) {
    .header-logos {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Podcast-Styling */
.podcast-header {
    background: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.podcast-header h1 {
    margin: 0;
    font-size: 3em;
}

/* PODCAST CSS ENTFERNT - JETZT IN podcast-template.css */

.podcast-player {
    margin: 20px 0;
    background: #eee;
    padding: 15px;
    border-radius: 5px;
}

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

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

.play-pause:before {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
}

.play-pause.playing:before {
    content: "❚❚";
    transform: translate(-50%, -50%);
}

.progress {
    flex: 1;
    height: 8px;
    background: #ccc;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

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

.podcast-episodes {
    padding: 60px 0;
}

.podcast-item {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
    gap: 20px;
}

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

.podcast-item .podcast-content {
    flex: 1;
}

.podcast-meta {
    color: #777;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.podcast-link {
    display: inline-block;
    padding: 8px 15px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.podcast-link:hover {
    background-color: var(--secondary-color);
}

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

.pagination .page-numbers {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 3px;
    border: 1px solid #ddd;
    text-decoration: none;
    border-radius: 3px;
}

.pagination .current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Homepage Template Styling */
.home-hero {
    padding: 100px 0;
    background-color: #f5f9ff;
    position: relative;
    overflow: hidden;
    margin-top: 0; /* Nahtloser Übergang vom Gradient */
}

.home-hero .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    gap: 40px;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
    min-width: 300px;
    text-align: center;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.home-hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.hero-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-color);
}

.hero-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    transition: all 0.3s ease;
}

/* Featured Section */
.featured-section {
    padding: 80px 0;
    background-color: white;
}

.featured-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5em;
    color: var(--primary-color);
}

.featured-section h2,
.podcast-section h2,
.resources-section h2,
.projects-section h2,
.cta-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2em;
    color: var(--primary-color);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: -30px auto 50px;
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
}

.featured-items {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.featured-item {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.featured-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    height: 200px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-item:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 20px;
}

.featured-content h3 {
    margin-top: 0;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.featured-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.featured-content h3 a:hover {
    color: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.featured-excerpt {
    color: var(--text-color);
    margin-bottom: 20px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 1em; /* 16px minimum */
    transition: background-color 0.3s;
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    position: relative;
}

.read-more:hover {
    background-color: var(--secondary-color);
}

.read-more:after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s;
    display: inline-block;
}

.read-more:hover:after {
    transform: translateX(5px);
}

/* Podcast Section */
.podcast-section {
    padding: 80px 0;
    background: #7DC21C;
    color: white;
    position: relative;
    overflow: hidden;
}

.podcast-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5em;
    color: white !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    position: relative;
    z-index: 2;
}

.podcast-items {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.podcast-items .podcast-item {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    background: rgba(255,255,255,0.98);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.podcast-items .podcast-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(79, 96, 165, 0.4);
}

.podcast-items .podcast-image {
    flex: none;
    height: 220px;
    overflow: hidden;
}

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

.podcast-items .podcast-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.podcast-items h3 {
    margin-top: 0;
    font-size: 1.4em;
}

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

.podcast-items .podcast-meta {
    color: #777;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.podcast-items .podcast-excerpt {
    flex: 1;
    color: var(--text-color);
    margin-bottom: 20px;
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

.view-all-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Spezielle Anpassungen für Podcast-Sektion mit Gradient */
.podcast-section .view-all-button {
    background: rgba(255, 255, 255, 0.9);
    color: var(--logo-blue);
    border: 2px solid var(--logo-blue);
    position: relative;
    z-index: 2;
}

.podcast-section .view-all-button:hover {
    background: var(--logo-blue) !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(79, 96, 165, 0.4) !important;
    border-color: var(--logo-blue) !important;
}

/* Project Slider Section */
.project-slider-section {
    padding: 80px 0;
    background: #7DC21C !important;
    background-color: #7DC21C !important;
    color: white;
    position: relative;
    overflow: hidden;
}

.project-slider-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5em;
    color: white !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    position: relative;
    z-index: 2;
}

.project-slider-container {
    max-width: 90%; /* 90% Breite für bessere Sichtbarkeit der Pfeile */
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.project-slider {
    display: block;
    overflow: hidden;
}

.project-slide {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: none; /* Standardmäßig versteckt */
}

.project-slide:first-child {
    display: block; /* Erstes Slide sichtbar */
}

.project-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.project-slide-row {
    display: flex;
    flex-wrap: nowrap;
    min-height: 400px;
    align-items: stretch;
}

.project-slide-image-column {
    flex: 0 0 50%; /* Feste 50% Breite für das Bild */
    min-width: 50%;
    max-width: 50%;
}

.project-slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 400px;
}

.project-slide-content-column {
    flex: 0 0 50%; /* Feste 50% Breite für den Text */
    min-width: 50%;
    max-width: 50%;
    display: flex;
    align-items: center;
}

.project-slider-section .project-slide-content {
    padding: 40px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
    border-radius: 0 12px 12px 0; /* Rechte Seite abgerundet */
}

.project-slide-categories {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-slide-content h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--text-color);
}

.project-slide-excerpt {
    font-size: 1.1em;
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
}

.project-slide-button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.project-slide-button:hover {
    background: #F7AE20;
    color: #002D5C;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(247, 174, 32, 0.4);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-prev {
    left: -60px; /* Außerhalb des 90% Containers */
}

.slider-next {
    right: -60px; /* Außerhalb des 90% Containers */
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 100;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.slider-prev:disabled,
.slider-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

/* Responsive */
@media (max-width: 768px) {
    .project-slider-container {
        max-width: 95%;
    }
    
    .project-slide-row {
        flex-direction: column;
        min-height: auto;
    }
    
    .project-slide-image-column,
    .project-slide-content-column {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .project-slide-image {
        min-height: 250px;
    }
    
    .project-slide-content {
        padding: 30px 20px;
    }
    
    .project-slide-content h3 {
        font-size: 1.5em;
    }
    
    .slider-prev {
        left: -40px;
    }
    
    .slider-next {
        right: -40px;
    }
    
    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .project-slider-container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
}

/* Resources Section */
.resources-section {
    padding: 80px 0;
    background-color: white;
}

.resources-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5em;
    color: var(--primary-color);
}

.resource-items {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.resource-item {
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.resource-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.resource-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.resource-content {
    padding: 20px;
}

.resource-type {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 1em; /* 16px minimum */
    margin-bottom: 10px;
}

.resource-content h3 {
    margin-top: 0;
    font-size: 1.2em;
}

.resource-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.resource-excerpt {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1em; /* 16px minimum */
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center; /* Alles mittig ausgerichtet */
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center; /* Zusätzliche Zentrierung */
}

.cta-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: white;
    text-align: center; /* Überschrift mittig */
}

.cta-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
    text-align: center; /* Beschreibung mittig */
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    margin: 0 auto; /* Button mittig */
}

.cta-button:hover {
    background: #F7AE20 !important;
    color: #002D5C !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(247, 174, 32, 0.4) !important;
}

/* Projects Section */
.projects-section {
    padding: 80px 0;
    background-color: #F2F2F2;
}

.section-header {
    text-align: left;
    margin-bottom: 40px;
}

.project-items {
    margin-bottom: 40px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    width: 100% !important;
}

.project-items .project-item {
    width: calc(50% - 15px) !important;
    max-width: calc(50% - 15px) !important;
    min-width: calc(50% - 15px) !important;
    flex: 0 0 calc(50% - 15px) !important;
    display: block !important;
}

/* Grid Layout */
.project-layout-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    width: 100% !important;
    justify-content: flex-start !important; /* Linksbündige Ausrichtung */
}

.project-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    width: calc(50% - 15px); /* Exakt 50% minus halber Gap */
    max-width: calc(50% - 15px); /* Verhindert Überschreitung */
    min-width: calc(50% - 15px); /* Verhindert Unterschreitung */
    box-sizing: border-box;
    flex: 0 0 calc(50% - 15px); /* Feste Größe - kein Wachsen/Schrumpfen */
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-item:hover .project-image img {
    transform: scale(1.05);
}

.project-categories {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 1em; /* 16px minimum */
    font-weight: 500;
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    margin-top: 0;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.project-content h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.project-content h3 a:hover {
    color: var(--primary-color);
}

.project-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

.view-all-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Spezielle Anpassungen für Podcast-Sektion mit Gradient */
.podcast-section .view-all-button {
    background: rgba(255, 255, 255, 0.9);
    color: var(--logo-blue);
    border: 2px solid var(--logo-blue);
    position: relative;
    z-index: 2;
}

.podcast-section .view-all-button:hover {
    background: var(--logo-blue) !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(79, 96, 165, 0.4) !important;
    border-color: var(--logo-blue) !important;
}

/* ================================================
   BUTTON STYLING ANPASSUNG - ORANGE/BLAU
   ================================================ */

/* Alle Buttons im Normalzustand Orange (#ff5e00) und im Hover-Zustand Dunkelblau (#141e55) */
.hero-button,
.read-more,
.podcast-link,
.view-all-button,
.project-slide-button,
.cta-button,
.featured-project-button,
input[type="submit"],
.btn,
button {
    background-color: #ff5e00 !important; /* Orange */
    color: white !important;
    transition: all 0.3s ease !important;
    border-color: #ff5e00 !important;
}

.hero-button:hover,
.read-more:hover,
.podcast-link:hover,
.view-all-button:hover,
.project-slide-button:hover,
.cta-button:hover,
.featured-project-button:hover,
input[type="submit"]:hover,
.btn:hover,
button:hover {
    background-color: #141e55 !important; /* Dunkelblau */
    color: white !important;
    border-color: #141e55 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(20, 30, 85, 0.4) !important;
}

/* Spezifische Überschreibungen für Buttons in farbigen Abschnitten */
.section-bg-alternate-1 .hero-button,
.section-bg-alternate-1 .project-slide-button,
.section-bg-alternate-1 .read-more,
.section-bg-alternate-2 .hero-button,
.section-bg-alternate-2 .project-slide-button,
.section-bg-alternate-2 .read-more,
.section-bg-alternate-3 .hero-button,
.section-bg-alternate-3 .project-slide-button,
.section-bg-alternate-3 .read-more,
.section-bg-alternate-4 .hero-button,
.section-bg-alternate-4 .project-slide-button,
.section-bg-alternate-4 .read-more {
    background-color: #ff5e00 !important; /* Orange */
    color: white !important;
    border-color: #ff5e00 !important;
}

.section-bg-alternate-1 .hero-button:hover,
.section-bg-alternate-1 .project-slide-button:hover,
.section-bg-alternate-1 .read-more:hover,
.section-bg-alternate-2 .hero-button:hover,
.section-bg-alternate-2 .project-slide-button:hover,
.section-bg-alternate-2 .read-more:hover,
.section-bg-alternate-3 .hero-button:hover,
.section-bg-alternate-3 .project-slide-button:hover,
.section-bg-alternate-3 .read-more:hover,
.section-bg-alternate-4 .hero-button:hover,
.section-bg-alternate-4 .project-slide-button:hover,
.section-bg-alternate-4 .read-more:hover {
    background-color: #141e55 !important; /* Dunkelblau */
    color: white !important;
    border-color: #141e55 !important;
}

/* Spezielle Überschreibung für Podcast-Buttons */
.podcast-section .view-all-button {
    background-color: #ff5e00 !important; /* Orange */
    color: white !important;
    border-color: #ff5e00 !important;
}

.podcast-section .view-all-button:hover {
    background-color: #141e55 !important; /* Dunkelblau */
    color: white !important;
    border-color: #141e55 !important;
}

/* Spezielle Überschreibung für die Card-Buttons */
.featured-project-card:hover .featured-project-button:hover {
    background-color: #141e55 !important; /* Dunkelblau */
    color: white !important;
    border-color: #141e55 !important;
    box-shadow: 0 8px 20px rgba(20, 30, 85, 0.4) !important;
}

/* ================================================
   ABWECHSELNDE ABSCHNITTS-HINTERGRÜNDE FÜR HOMEPAGE
   ================================================ */

/* Farbige Hintergründe für abwechselnde Abschnitte */
.section-bg-alternate-1 {
    background: #7DC21C;
    color: white;
}

.section-bg-alternate-2 {
    background: #F27B35;
    color: white;
}

.section-bg-alternate-3 {
    background: #002D5C;
    color: white;
}

.section-bg-alternate-4 {
    background: #F7AE20;
    color: white;
}

/* Spezifische Anpassungen für farbige Abschnitte */
.section-bg-alternate-1 h2,
.section-bg-alternate-2 h2,
.section-bg-alternate-3 h2,
.section-bg-alternate-4 h2 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.section-bg-alternate-1 .project-slide-content,
.section-bg-alternate-2 .project-slide-content,
.section-bg-alternate-3 .project-slide-content,
.section-bg-alternate-4 .project-slide-content {
    background: rgba(255,255,255,0.95);
    color: var(--text-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.section-bg-alternate-1 .podcast-item,
.section-bg-alternate-2 .podcast-item,
.section-bg-alternate-3 .podcast-item,
.section-bg-alternate-4 .podcast-item {
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Buttons in farbigen Abschnitten */
.section-bg-alternate-1 .hero-button,
.section-bg-alternate-1 .project-slide-button,
.section-bg-alternate-1 .read-more,
.section-bg-alternate-2 .hero-button,
.section-bg-alternate-2 .project-slide-button,
.section-bg-alternate-2 .read-more,
.section-bg-alternate-3 .hero-button,
.section-bg-alternate-3 .project-slide-button,
.section-bg-alternate-3 .read-more,
.section-bg-alternate-4 .hero-button,
.section-bg-alternate-4 .project-slide-button,
.section-bg-alternate-4 .read-more {
    background: rgba(255,255,255,0.9);
    color: var(--text-color);
    border: 2px solid rgba(255,255,255,0.3);
}

.section-bg-alternate-1 .hero-button:hover,
.section-bg-alternate-1 .project-slide-button:hover,
.section-bg-alternate-1 .read-more:hover,
.section-bg-alternate-2 .hero-button:hover,
.section-bg-alternate-2 .project-slide-button:hover,
.section-bg-alternate-2 .read-more:hover,
.section-bg-alternate-3 .hero-button:hover,
.section-bg-alternate-3 .project-slide-button:hover,
.section-bg-alternate-3 .read-more:hover,
.section-bg-alternate-4 .hero-button:hover,
.section-bg-alternate-4 .project-slide-button:hover,
.section-bg-alternate-4 .read-more:hover {
    background: #F7AE20 !important;
    color: #002D5C !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(247, 174, 32, 0.4) !important;
}

/* ================================================
   ENDE ABWECHSELNDE HINTERGRÜNDE
   ================================================ */

/* ================================================
   MODERNE PROJEKT-CARDS MIT HOVER-ANIMATION
   ================================================ */

/* Container für die 4-Projekt-Reihe */
.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 60px 0;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Einzelne Projekt-Card */
.featured-project-card {
    background: white;
    border-radius: 20px;
    overflow: visible; /* Wichtig für Tooltips! */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid #c0c0c0; /* Silber/grauer Border */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 400px;
    cursor: pointer;
}

.featured-project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    border-color: var(--primary-color);
}

/* Bild-Container - startet mit 30% Höhe/50% Breite, dann 40% Höhe/100% Breite beim Hover */
.featured-project-image {
    position: absolute;
    top: 20px;
    left: 20px;
    width: calc(50% - 10px);
    height: 30%;
    border-radius: 15px;
    overflow: hidden; /* Für das Bild */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

/* Beim Hover wird das Bild breiter und höher */
.featured-project-card:hover .featured-project-image {
    width: calc(100% - 40px);
    height: 40%;
}

.featured-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-project-card:hover .featured-project-image img {
    transform: scale(1.1);
}

/* Content-Bereich - startet unter dem Bild (35% von oben) */
.featured-project-content {
    position: absolute;
    top: 35%;
    left: 20px;
    right: 20px;
    bottom: 20px;
    padding: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Beim Hover rutscht der Content weiter nach unten (45% von oben) */
.featured-project-card:hover .featured-project-content {
    top: 45%;
}

/* Titel */
.featured-project-title {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 10px 0;
    line-height: 1.3;
    transition: all 0.4s ease;
    opacity: 1;
}

.featured-project-card:hover .featured-project-title {
    opacity: 0;
    transform: translateY(-10px);
}

/* Kategorie */
.featured-project-category {
    font-size: 1em; /* 16px minimum */
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    transition: all 0.4s ease;
    opacity: 1;
}

.featured-project-card:hover .featured-project-category {
    opacity: 0;
    transform: translateY(-10px);
}

/* Beschreibung */
.featured-project-excerpt {
    font-size: 1em; /* 16px minimum */
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    transition: all 0.4s ease;
    opacity: 1;
}

.featured-project-card:hover .featured-project-excerpt {
    opacity: 0;
    transform: translateY(-10px);
}

/* Button */
.featured-project-button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1em; /* 16px minimum */
    font-weight: 600;
    transition: all 0.4s ease;
    opacity: 0;
    align-self: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(20px);
    white-space: nowrap;
}

.featured-project-card:hover .featured-project-button {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

/* Button-eigener Hover - behält die gleiche Transform-Position bei */
.featured-project-card:hover .featured-project-button:hover {
    background: #F7AE20 !important;
    color: #002D5C !important;
    box-shadow: 0 8px 25px rgba(247, 174, 32, 0.4) !important;
    transform: translate(-50%, -50%) translateY(0) !important;
}

/* Tooltip/Popup für Projekt-Cards */
.featured-project-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 1em; /* 16px minimum */
    line-height: 1.5;
    max-width: 320px;
    width: max-content;
    min-width: 200px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 9999;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    pointer-events: none;
}

/* Tooltip Pfeil */
.featured-project-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.95) transparent transparent transparent;
}

/* Tooltip beim Card Hover anzeigen */
.featured-project-card:hover .featured-project-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Alternative: Helleres Design */
.featured-project-tooltip.light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.featured-project-tooltip.light::after {
    border-color: rgba(255, 255, 255, 0.95) transparent transparent transparent;
}

/* Responsive Anpassungen für Tooltips */
@media (max-width: 768px) {
    .featured-project-tooltip {
        max-width: 200px;
        font-size: 0.8em;
        padding: 12px 16px;
    }
}

/* Tooltip für mobile Geräte - erscheint oberhalb */
@media (max-width: 600px) {
    .featured-project-tooltip {
        position: fixed;
        bottom: auto;
        top: 20px;
        left: 20px;
        right: 20px;
        transform: none;
        max-width: none;
        width: auto;
    }
    
    .featured-project-tooltip::after {
        display: none;
    }
}

/* ================================================
   ENDE TOOLTIP/POPUP
   ================================================ */

/* ================================================
   RESPONSIVE FEATURED PROJECTS GRID
   ================================================ */

/* Tablet (bis 1024px) - 2 Cards pro Reihe */
@media (max-width: 1024px) {
    .featured-projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px;
        margin: 40px 0;
        padding: 0 15px;
    }
    
    .featured-project-card {
        height: 350px;
    }
    
    .featured-projects-section h2 {
        font-size: 2.2em !important;
    }
    
    .featured-projects-section p {
        font-size: 1em !important;
    }
}

/* Mobile (bis 768px) - 1 Card pro Reihe */
@media (max-width: 768px) {
    .featured-projects-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        margin: 30px 0;
        padding: 0 10px;
    }
    
    .featured-project-card {
        height: 320px;
        max-width: 400px;
        margin: 0 auto; /* Zentriert einzelne Cards */
    }
    
    .featured-projects-section h2 {
        font-size: 1.8em !important;
        margin-bottom: 15px !important;
    }
      .featured-projects-section p {
        font-size: 1em !important; /* 16px minimum */
        margin-bottom: 25px !important;
    }
    
    /* Anpassungen für mobile Cards */
    .featured-project-image {
        top: 15px;
        left: 15px;
        width: calc(50% - 10px);
        height: 35%;
    }
    
    .featured-project-content {
        bottom: 15px;
        right: 15px;
        left: calc(50% + 10px);
        padding: 15px;
    }
    
    .featured-project-title {
        font-size: 1.1em !important;
        margin-bottom: 8px !important;
    }
      .featured-project-excerpt {
        font-size: 1em !important; /* 16px minimum */
        margin-bottom: 12px !important;
    }
    
    .featured-project-button {
        padding: 8px 16px !important;
        font-size: 1em !important; /* 16px minimum */
    }
    
    .featured-project-category {
        font-size: 1em !important; /* 16px minimum */
        margin-bottom: 8px !important;
    }
}

/* Kleine Mobile Geräte (bis 480px) */
@media (max-width: 480px) {
    .featured-projects-grid {
        grid-template-columns: 1fr !important;
        padding: 0 5px;
        gap: 15px;
    }
    
    .featured-project-card {
        height: 280px;
        max-width: 350px;
    }
    
    .featured-projects-section h2 {
        font-size: 1.5em !important;
    }
      .featured-projects-section p {
        font-size: 1em !important; /* 16px minimum */
        padding: 0 10px;
    }
    
    /* Kompaktere mobile Layout */
    .featured-project-image {
        top: 10px;
        left: 10px;
        width: calc(45% - 5px);
        height: 40%;
    }
    
    .featured-project-content {
        bottom: 10px;
        right: 10px;
        left: calc(45% + 15px);
        padding: 10px;
    }
    
    .featured-project-title {
        font-size: 1em !important;
        line-height: 1.2 !important;
    }
      .featured-project-excerpt {
        font-size: 1em !important; /* 16px minimum */
        line-height: 1.3 !important;
    }
    
    .featured-project-button {
        padding: 6px 12px !important;
        font-size: 1em !important; /* 16px minimum */
    }
    
    /* Tooltip auf mobilen Geräten anpassen */
    .featured-project-tooltip {
        font-size: 1em !important; /* 16px minimum */
        padding: 10px !important;
        max-width: 280px !important;
    }
}

/* ================================================
   ENDE RESPONSIVE FEATURED PROJECTS GRID
   ================================================ */

/* ZUSÄTZLICHE STARKE MOBILE REGELN - FEATURED PROJECTS */
@media screen and (max-width: 767px) {
    .featured-projects-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        width: 100% !important;
    }
    
    .featured-project-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
}

@media screen and (max-width: 575px) {
    .featured-projects-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        width: 100% !important;
    }
}

/* ================================================
   LEERE DIVI-SEKTIONEN AUSBLENDEN
   ================================================ */

/* Verstecke leere Divi-Sektionen die nur Whitespace enthalten */
.et_pb_section:empty,
.et_pb_section_4:empty {
    display: none !important;
}

/* Verstecke Divi-Sektionen die nur Leerzeichen/Zeilenumbrüche enthalten */
.et_pb_section:not(:has(> *:not(style):not(script))),
.et_pb_section_4:not(:has(> *:not(style):not(script))) {
    display: none !important;
}

/* Alternative für ältere Browser - verstecke Sektionen ohne sichtbaren Content */
.et_pb_section {
    min-height: 0 !important;
}

.et_pb_section:empty,
.et_pb_section_4:empty {
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* Spezifisch für die problematische Sektion */
.et_pb_section.et_pb_section_4.et_section_regular:empty {
    display: none !important;
}

/* ================================================
   ENDE LEERE DIVI-SEKTIONEN
   ================================================ */
