/**
@author Klaus Brunschede 2025
*/

body {
    background-color: #1a1a1a; /* Dunkelgrauer Hintergrund statt schwarz */
    color: #fff; /* Weiße Schrift */
    padding-top: 56px; /* Höhe der fixierten Navbar (Standard Bootstrap) */
    padding-bottom: 60px; /* Ungefähre Höhe des Footers */
    min-height: 100vh; /* Mindesthöhe, um Footer nach unten zu drücken */
    position: relative; /* Wichtig für absolute Positionierung von Kindelementen */
    display: flex; /* Flexbox für Footer-Fixierung */
    flex-direction: column; /* Hauptachse vertikal */
    font-display: swap; /* Bessere Font-Performance */
}

.container {
    flex: 1; /* Lässt den Container wachsen, um den verfügbaren Platz einzunehmen */
}


/* Navbar oben fixieren */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030; /* Über anderen Elementen */
}

/* Footer unten fixieren */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1030; /* Über anderen Elementen */
    background-color: #343a40; /* Standard bg-dark */
    color: white;
    text-align: center;
    padding: 1rem; /* Etwas Padding */
}

/* Verbesserte Lesbarkeit für Hauptinhalt */
.main-content-area {
    background-color: rgba(255, 255, 255, 0.05); /* Sehr leicht aufgehellter Hintergrund */
    padding: 30px; /* Innenabstand für den Inhalt */
    border-radius: 10px; /* Leicht abgerundete Ecken */
    margin-bottom: 20px; /* Abstand zum Footer */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtile Umrandung */
}

/* 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;
    }
}

/* Band-Bild Styling */
.band-image-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.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;
    }
    
    .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;
    }
}

