/* === 1. LOKALE SCHRIFTARTEN (DSGVO-KONFORM) === */

/* Fließtext-Schrift: Jost */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jost-v14-latin-regular.woff2') format('woff2');
}

/* Alternativer Fließtext: Roboto */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/roboto-v30-latin-regular.woff2') format('woff2');
}

/* Überschriften: Josefin Sans (Bold 700) */
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/josefin-sans-v25-latin-700.woff2') format('woff2');
}

/* Standard Josefin Sans (Regular 400) */
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/josefin-sans-v25-latin-regular.woff2') format('woff2');
}

/* === 2. CSS VARIABLEN (ZENTRALE FARBEN & SCHRIFTEN) === */
:root {
    --bg-main: #ffffff;
    --bg-alt: #f0f0f0;          /* Helles Grau */
    --text-dark: #4a4641;       /* Anthrazit / Dunkles Grau aus dem Logo */
    --accent-red: #e32219;      /* BAM Rot aus dem Logo */
    
    --font-stack: 'Jost', 'Roboto', sans-serif;
    --font-heading: 'Josefin Sans', sans-serif;
}

/* === 3. BASE STYLES === */
html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Verhindert seitliches Verrutschen auf Handys */
    font-family: var(--font-stack);
    color: var(--text-dark);
    background-color: var(--bg-main);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.text-center { 
    text-align: center; 
}

/* === 4. TYPOGRAFIE === */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
}

/* === 5. HEADER & NAV === */
.site-header {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-img {
    max-height: 45px;
    width: auto;
}

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--accent-red);
}

/* === 6. SECTIONS === */
.section {
    padding: 60px 0;
}

.section-alt {
    background-color: var(--bg-alt);
}

/* === 7. BUTTONS === */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.btn-primary {
    background-color: var(--accent-red);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #b81710;
}

.btn-secondary {
    background-color: var(--text-dark);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #2e2b28;
}

/* === 8. HERO SECTION (OPTIMIERT FÜR DESKTOP) === */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('images/hero-bg.jpg') center 25% / cover no-repeat;
    color: #ffffff;
    text-align: center;
    padding: 120px 20px 80px 20px;
    min-height: 65vh; /* Verhindert das Bildeinschneiden auf großen Monitoren */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.hero-content {
    max-width: 900px;
}

.hero-section h1 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-top: 0;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* === 9. BAND MITGLIEDER SHOWCASE === */
.band-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.band-image-container {
    flex: 1 1 400px;
}

.band-image-container img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.band-info-box {
    flex: 1 1 300px;
}

.member-role {
    font-weight: bold;
    color: var(--accent-red);
}

/* === 10. AUDIO LIST === */
.audio-list {
    margin-bottom: 40px;
}

.audio-item {
    background: var(--bg-alt);
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.audio-item audio {
    max-width: 100%;
}

/* === DEMO & PLAYLIST INTRO GRID === */
.demo-intro-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.demo-img-box {
    flex: 1 1 300px;
    text-align: center;
}

.demo-img-box img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.demo-text-box {
    flex: 1 1 350px;
}

.demo-text-box h3 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.demo-text-box p {
    line-height: 1.6;
    margin-bottom: 12px;
}

/* === REPERTOIRE PDF DOWNLOAD SECTION === */
.repertoire-section {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.repertoire-section h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.repertoire-download-link {
    display: inline-block;
    text-decoration: none;
    margin-top: 20px;
    transition: transform 0.2s ease;
}

.repertoire-download-link:hover {
    transform: translateY(-3px);
}

.repertoire-preview-img {
    max-width: 220px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
}

.repertoire-btn {
    display: inline-block;
}

@media (max-width: 768px) {
    .demo-intro-grid {
        gap: 20px;
        text-align: center;
    }
}


/* === 11. YOUTUBE VIDEO-KARUSSELL === */
.video-section-container {
    margin-top: 50px;
    margin-bottom: 60px; /* Schafft den perfekten Abstand zur Impressionen-Galerie */
}

.video-carousel-wrapper {
    position: relative;
    width: 100%;
}

.video-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    width: 100%;          /* Zwingt das Karussell auf die Containerbreite */
    min-width: 0;         /* Verhindert das Ausdehnen über 4.000px in Flexbox */
}

.video-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.video-card {
    flex: 0 0 420px; /* Breite einer Video-Karte auf Desktop */
    scroll-snap-align: start;
    background: var(--bg-alt);
    padding: 15px;
    border-radius: 8px;
    box-sizing: border-box;
}

.video-title {
    font-size: 1.05rem;
    margin: 0 0 12px 0;
    color: var(--text-dark);
    text-align: center;
    white-space: normal;
    line-height: 1.3;
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtube-2click {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #222;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 15px;
    box-sizing: border-box;
}

.video-placeholder p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
}

.video-placeholder small {
    display: block;
    line-height: 1.3;
    font-size: 0.75rem;
    color: #ccc;
}

@media (max-width: 768px) {
    .video-card {
        flex: 0 0 85%; /* Auf Mobilgeräten füllt eine Karte 85% der Bildschirmbreite */
    }
}

/* === 12. GALERIE KARUSSELL === */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.gallery-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    /* Versteckt die Scrollbar für ein sauberes Design */
    scrollbar-width: none; /* Firefox */
}

.gallery-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.gallery-item {
    flex: 0 0 320px; /* Feste Breite pro Bild im Karussell */
    scroll-snap-align: start;
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* KARUSSELL PFEILE */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(227, 34, 25, 0.9); /* BAM-Rot */
    color: #ffffff;
    border: none;
    font-size: 2rem;
    line-height: 1;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.2s, transform 0.2s;
}

.carousel-btn:hover {
    background: #b81710;
    transform: translateY(-50%) scale(1.08);
}

.prev-btn { left: -15px; }
.next-btn { right: -15px; }

@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 82%; /* Mobil zeigt es fast das ganze Bild + Vorschau aufs nächste */
    }
    .carousel-btn {
        display: none; /* Auf dem Handy wird direkt mit dem Finger gewischt */
    }
}

/* === 13. FOOTER === */
.site-footer {
    background-color: var(--text-dark);
    color: #ffffff;
    padding: 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-nav a {
    color: #ffffff;
    margin-left: 15px;
    text-decoration: none;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* === 14. RESPONSIVE DESIGN (MOBILE FIXES) === */
@media (max-width: 768px) {
    /* Header löst sich mobil vom Screenrand ab, damit nichts mehr verdeckt wird */
    .site-header {
        position: relative; 
        box-shadow: none;
        border-bottom: 1px solid #eee;
    }

    .header-container { 
        flex-direction: column;
        padding: 12px 15px;
        text-align: center;
    }

    .logo-img {
        max-height: 38px;
    }

    .main-nav { 
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 12px;
    }

    .main-nav a { 
        margin: 0;
        font-size: 0.95rem;
    }

    .hero-section {
        padding: 60px 15px;
        min-height: auto;
    }

    .hero-section h1 { 
        font-size: 1.7rem; 
    }

    .hero-section p {
        font-size: 1.0rem;
    }

    .section {
        padding: 40px 0;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .audio-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .audio-item audio {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav a {
        margin: 0 8px;
    }
}