/**
@author Klaus Brunschede 2025
*/

body {
    background-color: #1a1a1a; /* Dunkelgrauer Hintergrund statt schwarz */
    color: #fff; /* Weiße Schrift */
    padding-top: 76px; /* Mehr Platz für mobile Navigation */
    padding-bottom: 20px; /* Weniger Padding für mobil */
    min-height: 100vh; /* Mindesthöhe, um Footer nach unten zu drücken */
    position: relative; /* Wichtig für absolute Positionierung von Kindelementen */
    font-display: swap; /* Bessere Font-Performance */
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

/* Container für bessere mobile Darstellung */
.container, .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
}

/* Navbar Anpassungen */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030; /* Über anderen Elementen */
    background-color: #343a40 !important; /* Sicherstellen, dass bg-dark funktioniert */
}

/* Mobile Navigation Fix */
.navbar-collapse {
    background-color: #343a40;
    border-radius: 0 0 5px 5px;
    margin-top: 5px;
    padding: 10px 15px;
}

/* Footer entfernen für mobile Probleme */
footer {
    background-color: #343a40;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative; /* Nicht mehr fixed */
}

/* Verbesserte Lesbarkeit für Hauptinhalt */
.main-content-area {
    background-color: rgba(255, 255, 255, 0.05); /* Sehr leicht aufgehellter Hintergrund */
    padding: 15px; /* Weniger Padding für mobil */
    border-radius: 10px; /* Leicht abgerundete Ecken */
    margin-bottom: 20px; /* Abstand zum Footer */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtile Umrandung */
}

/* Mobile Anpassungen */
@media (max-width: 767.98px) {
    body {
        padding-top: 70px; /* Weniger Top-Padding für mobile */
        padding-bottom: 10px;
    }
    
    .main-content-area {
        padding: 10px;
        margin: 10px 5px;
        border-radius: 5px;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Navigation für mobil */
    .navbar-brand {
        font-size: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
}

/* Tablet Anpassungen */
@media (min-width: 768px) {
    .main-content-area {
        padding: 30px;
    }
}

/* Card-Styling für bessere Optik */
.card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.card-header {
    background-color: rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-body {
    color: #fff;
}

/* List-Group Items für EPK und andere Listen */
.list-group-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.list-group-item-action:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* YouTube-Videos Styling */
.youtube-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.youtube-preview {
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: box-shadow 0.3s;
}

.youtube-preview:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.youtube-preview img {
    object-fit: cover;
    transition: transform 0.3s;
}

.youtube-preview:hover img {
    transform: scale(1.05);
}

.youtube-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s, transform 0.3s;
    z-index: 2;
    text-shadow: 0 0 8px rgba(0,0,0,0.7);
    pointer-events: none; /* Verhindert separate Klick-Events */
}

.youtube-preview:hover .youtube-play-button {
    color: #ff0000;
    transform: translate(-50%, -50%) scale(1.2);
}

.youtube-consent-notice {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.8);
    color: white;
    padding: 10px;
    font-size: 0.85rem;
    text-align: center;
    transition: opacity 0.3s;
    z-index: 1;
    border-radius: 0 0 8px 8px;
}

.youtube-preview:hover .youtube-consent-notice {
    opacity: 0.95;
}

/* Direktes YouTube iframe styling */
.youtube-container iframe {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Responsive Anpassungen für YouTube-Container */
@media (max-width: 768px) {
    .youtube-consent-notice {
        font-size: 0.8rem;
        padding: 8px;
    }
    
    .youtube-play-button {
        font-size: 3rem;
    }
    
    /* YouTube Container mobil */
    .youtube-container {
        margin-bottom: 1rem;
    }
}

/* Mobile spezifische Verbesserungen */
@media (max-width: 575.98px) {
    /* Sehr kleine Bildschirme */
    h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    /* Text größer für bessere Lesbarkeit */
    p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Footer mobil optimiert */
    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-lg-3 {
        margin-bottom: 1.5rem;
    }
    
    footer h5,
    footer h6 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    /* Navigation auf mobil */
    .navbar-nav .nav-link {
        font-size: 1rem;
        padding: 0.75rem 0;
    }
}

/* Wichtige Basis-Fixes für mobile Geräte */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container-Fixes */
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Navigation Dropdown für mobil */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(52, 58, 64, 0.95);
        border-radius: 0 0 8px 8px;
        margin-top: 5px;
        padding: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .nav-link {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 5px;
        padding: 10px 0;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
}

/* Band-Bild Styling */
.band-image-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 600px; /* Kleinere maximale Breite für bessere Zentrierung */
    margin: 0 auto;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Startseite Zentrierung */
.main-content-area .text-center {
    max-width: 800px;
    margin: 0 auto;
}

.main-content-area .text-center h1 {
    margin-bottom: 1.5rem;
}

.main-content-area .text-center .lead {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #e9ecef;
}

.band-image-container:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.band-image-container:hover,
.band-image-container:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.band-main-image {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    display: block;
    min-height: 200px; /* Fallback Höhe falls Bild nicht lädt */
    background-color: rgba(255, 255, 255, 0.1); /* Fallback Hintergrund */
    object-fit: cover;
}

.band-image-container:hover .band-main-image {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    top: 75%; /* Startet im unteren Viertel */
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 0 10px 10px; /* Nur untere Ecken abgerundet */
}

.overlay-text {
    text-align: center;
    font-size: 0.9rem;
}

.band-image-container:hover .image-overlay {
    opacity: 1;
}

/* Modal-Anpassungen für Bildanzeige */
.modal-content.bg-transparent {
    background: none !important;
    box-shadow: none;
}

.modal-xl {
    max-width: 95vw;
}

.modal-body img {
    max-height: 90vh;
    width: auto;
    object-fit: contain;
}

/* Responsive Anpassungen für das Band-Bild */
@media (max-width: 1200px) {
    .band-image-container {
        max-width: 700px;
    }
}

@media (max-width: 992px) {
    .band-image-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .band-image-container {
        margin-bottom: 1.5rem;
        max-width: 100%;
    }
    
    .band-main-image {
        width: 100%;
        height: auto;
        max-height: 60vh; /* Begrenzt die Höhe auf mobilen Geräten */
    }
    
    .image-overlay {
        opacity: 0.8; /* Auf mobilen Geräten immer sichtbar */
        top: 70%; /* Etwas früher auf kleinen Bildschirmen */
        background-color: rgba(0, 0, 0, 0.8); /* Stärker für bessere Lesbarkeit */
    }
    
    .image-overlay.touch-active {
        opacity: 1;
    }
    
    .image-overlay i {
        font-size: 1.5rem;
    }
    
    .overlay-text {
        font-size: 0.8rem;
    }
}

/* Weitere mobile Optimierungen */
@media (max-width: 575.98px) {
    .band-image-container {
        margin-bottom: 1rem;
    }
    
    .band-main-image {
        max-height: 50vh;
    }
    
    .image-overlay {
        top: 65%;
        padding: 5px;
    }
}

