/* ==========================================================================
   1. FONTS & GLOBALS
   ========================================================================== */

@font-face {
    font-family: 'IrishUncial';
    src: url('../fonts/IrishUncialfabeta-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --color-bg: #000;
    --color-text: whitesmoke;
    --color-accent: #790000;
    --color-accent-hover: #a00000;
    --color-border: rgba(255, 255, 255, 0.1);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    font-family: sans-serif; /* Fallback Font */
}

/* ==========================================================================
   2. TYPOGRAFIE
   ========================================================================== */

h1, h2 {
    margin: 0;
    padding-top: 1em;
}

h1 {
    font-family: 'IrishUncial', serif;
    font-weight: 200;
    font-size: 4em;
    text-align: center;
    padding-bottom: 20px;
}

p {
    font-family: serif;
    text-align: center;
}

/* ==========================================================================
   3. INTRO / HERO SECTION (Maske)
   ========================================================================== */

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Mobile Fix */
    overflow: hidden;
    background-color: var(--color-bg);
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.mask {
    position: absolute;
    z-index: 2;
    width: 101vw;
    height: auto;
    max-height: 100%;
    outline: 2px solid var(--color-bg);
    outline-offset: -1px;
    display: block;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    z-index: 10;
    width: 20px;
    height: 20px;
    border-bottom: 3px solid white;
    border-right: 3px solid white;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.5s ease;
    animation: bounce 2s infinite;
}

.scroll-down.fade-out {
    opacity: 0;
    pointer-events: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { margin-bottom: 0; }
    40% { margin-bottom: 20px; }
    60% { margin-bottom: 10px; }
}

/* ==========================================================================
   4. CONTENT BEREICH
   ========================================================================== */

.content {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: visible;
    perspective: 1000px;
}

/* --- Concert List --- */

.concert-list {
    list-style: none;
    /* Zentrierung wie Karte & Spotify */
    max-width: 600px;
    width: 92%; /* Lässt Rand auf Mobile */
    margin: 40px auto;
    padding: 0; 
}

.concert-list li {
    margin-bottom: 2em;
    padding: 1em;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    align-items: center;
    gap: 1em;
}

.concert-name {
    grid-column: 1;
    font-family: 'IrishUncial', serif;
    font-size: 1.6em;
    color: var(--color-accent);
    margin-right: 1em;
}

/* Hier wieder Serifen wie gewünscht */
.concert-date, .concert-place {
    color: #aaa;
    margin-right: 1em;
    font-size: 1rem;
    font-family: serif; 
}

.social-wrapper {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* --- Social Buttons (Shared Styles) --- */

.concert-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2em;
    height: 2.2em;
    border-radius: 50%;
    background: radial-gradient(circle at 0% 0%, black 40%, var(--color-accent) 100%);
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: none;
    margin: 0 2px;
}

.concert-social:hover {
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(121, 0, 0, 0.8);
    background: radial-gradient(circle at 0% 0%, #222 20%, var(--color-accent-hover) 100%);
}

.concert-social.disabled {
    opacity: 0.3;
    pointer-events: none;
    filter: grayscale(1);
}

.social-icon {
    width: 1.4em;
    height: 1.4em;
    display: block;
}

/* ==========================================================================
   5. KARTE (Leaflet)
   ========================================================================== */

#gigMap {
    height: 400px;
    max-width: 600px;
    width: 92%; /* Konsistent mit Liste */
    margin: 40px auto;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    z-index: 0;
    background-color: #111;
}

/* Map Popups */
.leaflet-popup-content-wrapper, 
.leaflet-popup-tip {
    background-color: var(--color-bg) !important;
    color: var(--color-text) !important;
    border: 1px solid var(--color-accent);
}

.popup-title {
    display: block;
    font-family: 'carol-gothic', sans-serif;
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--color-accent);
    margin-bottom: 5px;
}

.popup-date {
    display: block;
    color: #aaa;
    font-size: 1rem;
    font-family: serif; /* Auch hier Serifen für Konsistenz */
}

/* ==========================================================================
   6. MEDIA SECTION (Video & Spotify) - NEU HINZUGEFÜGT
   ========================================================================== */

.media-container {
    max-width: 800px;
    width: 100%;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
    box-sizing: border-box;
}

.media-container h1, 
.media-container h2 {
    margin-bottom: 30px;
    margin-top: 50px;
    color: var(--color-text);
}

/* YouTube Video Zentrierung */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin: 0 auto 50px auto; /* Zentrieren */
    width: 100%;
    border: 1px solid #333;
    border-radius: 8px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Spotify Zentrierung */
.spotify-wrapper {
    width: 92%;
    max-width: 600px; /* Konsistent mit Karte */
    margin: 40px auto;
    padding: 0;
}

.spotify-wrapper iframe {
    width: 100%;
    border-radius: 12px;
    display: block;
}

/* ==========================================================================
   7. SLIDESHOW SECTION
   ========================================================================== */

.slider-section {
    padding: 80px 0;
    text-align: center;
    overflow: hidden
}

.slider-section h2 {
    color: var(--color-text);
    margin-bottom: 40px;
    font-size: 3rem;
    text-transform: uppercase;
}

.swiper {
    width: 100%;
    padding-bottom: 50px;
}

.swiper-slide {
    width: auto;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.swiper-slide-active {
    opacity: 1;
}

.swiper-slide img {
    display: block;
    height: 60vh;
    max-height: 600px;
    width: auto;
    max-width: 90vw;
    object-fit: contain;
    border-radius: 8px;
    filter: grayscale(100%);
    transition: filter 0.5s;
}

.swiper-wrapper {
    /* Das ist eine "Cubic Bezier" Kurve (Expo Ease In Out) */
    transition-timing-function: cubic-bezier(0.65, 0, 0.35, 1) !important;
}

.swiper-slide-active img {
    filter: grayscale(0%);
}

.swiper-button-next, .swiper-button-prev {
    color: var(--color-text);
    transition: color 0.3s;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    color: var(--color-accent);
}

:root {
    --swiper-theme-color: #790000;
}

/* ==========================================================================
   8. MERCH SECTION
   ========================================================================== */

.merch-sticky-wrapper {
    height: 100%;
    width: 100%;
    
    display: flex;
    flex-direction: column;
    
    justify-content: center; 
    align-items: center;
    
    padding: 40px 20px; 
    
    box-sizing: border-box; 
}


#shirt-video {
    width: 100%;
    
    height: auto; 
    max-height: 65vh; 
    
    object-fit: contain; 
    object-position: center center; 
    
    margin-top: -20px;
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */

.footer-section {
    text-align: center;
    padding: 80px 20px 40px 20px;
    background: linear-gradient(to top, #050000, #111);
    margin-top: 50px;
    border-top: 1px solid #222;
}

.email-link {
    font-family: 'IrishUncial', serif;
    font-size: 1.5rem;
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.email-link:hover {
    color: var(--color-text);
    border-bottom: 2px solid var(--color-accent);
    letter-spacing: 1px;
}

.footer-socials {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-socials .concert-social {
    transform: scale(1.3);
}

.footer-socials .concert-social:hover {
    transform: scale(1.5);
    box-shadow: 0 0 20px rgba(121, 0, 0, 0.6);
}

.copyright {
    margin-top: 40px;
    color: #444;
    font-size: 0.8rem;
}

/* ==========================================================================
   10. MOBILE OPTIMIERUNG
   ========================================================================== */

@media (max-width: 768px) {
    
    h1 {
        font-size: 2.5rem;
    }

    .concert-list li {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        padding: 15px 10px;
    }
    
    .concert-name {
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 1.6rem;
    }
    
    .concert-date, .concert-place {
        margin: 0;
        font-size: 0.9rem;
    }

    .concert-date::after {
        content: " | ";
        color: #555;
        margin-left: 5px;
    }

    .social-wrapper {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .swiper-slide img {
        height: auto;
        max-width: 85vw; 
        
        width: auto;
        object-fit: contain;
    }
}