/* Neue Features: Mitglieder, Dark Mode, Hamburger, Scroll-to-Top, Loading, Breadcrumb */

/* ===== TEAM SECTION ===== */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.team-image {
    font-size: 5rem;
    margin-bottom: 20px;
    display: inline-block;
    max-width: 150px;
}

.team-card h3 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.team-position {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.team-bio {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.team-email {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-3px);
}

/* ===== DARK MODE TOGGLE ===== */
.theme-toggle {
    position: fixed;
    top: 120px;
    right: 20px;
    z-index: 1001;
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.3);
}

/* Dark Mode Styles */
body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.dark-mode .content-section {
    background: #2d2d44;
    color: #e0e0e0;
}

body.dark-mode .content-section h1,
body.dark-mode .content-section h2 {
    color: #8b94ff;
}

body.dark-mode .content-section p {
    color: #b8b8b8;
}

body.dark-mode .card {
    background: linear-gradient(135deg, #3a3a52 0%, #2d2d44 100%);
}

body.dark-mode .card h3 {
    color: #e0e0e0;
}

body.dark-mode .card p {
    color: #b8b8b8;
}

body.dark-mode nav {
    background: rgba(45, 45, 68, 0.95);
}

body.dark-mode .nav-link {
    color: #e0e0e0;
}

body.dark-mode .dropdown {
    background: #2d2d44;
}

body.dark-mode .dropdown-link {
    color: #b8b8b8;
}

body.dark-mode .theme-toggle {
    background: #2d2d44;
    color: #ffd700;
}

body.dark-mode .blog-card,
body.dark-mode .team-card {
    background: #2d2d44;
}

body.dark-mode .blog-card h2,
body.dark-mode .team-card h3 {
    color: #e0e0e0;
}

body.dark-mode .blog-preview,
body.dark-mode .team-bio {
    color: #b8b8b8;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

body.dark-mode .hamburger span {
    background: #e0e0e0;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;

    /* NEU: damit das Icon in der Mitte sitzt und der Kreis voll klickbar ist */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;

    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}


.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

/* ===== LOADING SPINNER ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== BREADCRUMB NAVIGATION ===== */
#breadcrumb-container {
    max-width: 1200px; /* NEU: Gleiche Breite wie main-content */
    margin: 20px auto 0 auto; /* NEU: Zentriert mit Abstand oben */
    padding: 0 20px; /* NEU: Padding wie main-content */
}

.breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 0; /* NEU: Kein margin-bottom mehr nötig */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1; /* Niedriges z-index damit Dropdown darüber liegt */
}

body.dark-mode .breadcrumb {
    background: rgba(45, 45, 68, 0.9);
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #888;
}

.breadcrumb-current {
    color: #333;
    font-weight: 600;
}

body.dark-mode .breadcrumb-current {
    color: #e0e0e0;
}

/* ===== ARTICLE IMAGES ===== */
.article-image {
    width: 60%; /* NEU: Nur 60% der Container-Breite */
    max-width: 700px; /* NEU: Maximal 500px */
    height: auto;
    border-radius: 12px;
    margin: 30px auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    display: block;
}

.article-image-caption {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 10px;
    max-width: 500px; /* NEU: Gleiche Breite wie Bild */
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Anpassung für Bilder */
@media (max-width: 768px) {
    .article-image {
        width: 90%; /* NEU: Auf Mobile etwas größer */
        max-width: 100%;
    }
    
    .article-image-caption {
        width: 90%;
        max-width: 100%;
    }
}
/* Mobile Anpassungen */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        gap: 0; /* NEU: Keine Lücken zwischen Items */
    }
    
    body.dark-mode .nav-menu {
        background: #2d2d44;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* NEU: Mobile Navigation Items ohne Lücken */
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        border-radius: 0; /* NEU: Keine runden Ecken im Mobile-Menü */
        padding: 15px 20px;
    }
    
    /* NEU: Dropdown im Mobile-Menü */
    .dropdown {
        position: static; /* NEU: Nicht absolut positioniert */
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0;
        border-radius: 0;
        background: transparent; /* NEU: Transparenter Hintergrund */
        min-width: 100%;
        max-height: 0; /* NEU: Initial geschlossen */
        overflow: hidden;
        transition: max-height 0.3s ease; /* NEU: Smooth Slide-Animation */
    }
    
    /* NEU: Dropdown aufgeklappt */
    .nav-item.has-dropdown.mobile-open .dropdown {
        max-height: 500px; /* NEU: Genug Platz für alle Items */
    }
    
    /* NEU: Dropdown-Links im Mobile-Menü eingerückt */
    .dropdown-link {
        padding-left: 40px; /* NEU: Eingerückt zur besseren Hierarchie */
        background: rgba(0, 0, 0, 0.05);
    }
    
    body.dark-mode .dropdown-link {
        background: rgba(0, 0, 0, 0.2);
    }
    
    .dropdown-link:hover {
        padding-left: 45px; /* NEU: Weniger Bewegung beim Hover */
    }
    
    /* NEU: Pfeil im Mobile-Menü zeigt Zustand */
    .nav-item.has-dropdown.mobile-open > .nav-link::after {
        transform: rotate(180deg);
    }
    
    .theme-toggle {
        top: 20px;
        right: 80px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
}