/* Reset styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base body styling and transitions */
body {
    font-family: 'Georgia', serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

/* Dark Theme as Default */
:root {
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --header-bg: #1a1a1a;
    --link-color: #990000;
    --footer-bg: #1a1a1a;
    --secondary-bg: #2a2a2a;
    --highlight-color: #990000;
    --hover-color: #f5f5f5;
    --concert-item-bg: #3a3a3a;
    --text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* Dark shadow for readability */;
    --outline: 0.3px black; /* Thin black outline */;
}

/* Light Theme */
@media (prefers-color-scheme: light) {
    :root {
        --bg-color: #ffffff;
        --text-color: #333333;
        --header-bg: #f2f2f2;
        --link-color: #990000;
        --footer-bg: #f5f5f5;
        --secondary-bg: #f5f5f5;
        --highlight-color: #990000;
        --hover-color: #000000;
        --concert-item-bg: #eaeaea;
        --text-shadow: none;
        --outline: none;
    }
}

/* Applying theme variables */
body {
    color: var(--text-color);
    background-color: var(--bg-color);
}

header {
    background-color: var(--header-bg);
    padding: 1em 0;
    text-align: center;
    border-bottom: 1px solid #333;
}

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

nav ul {
    list-style: none;
    padding: 0;
    margin-top: 1em;
}

nav ul li {
    display: inline;
    margin: 0 1em;
}

nav ul li a {
    color: var(--link-color); /* Keeps the red color */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.7em;
    transition: color 0.3s;
    text-shadow: var(--text-shadow);
    -webkit-text-stroke: var(--outline);
}


nav ul li a:hover {
    color: var(--hover-color);
}

main {
    flex-grow: 1;
    padding: 2em 1em;
    max-width: 800px;
    margin: 0 auto;
}

main h1 {
    color: var(--hover-color);
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

main p {
    color: var(--text-color);
    font-size: 1.2em;
    line-height: 1.6;
    margin-top: 0.5em;
}



/* Gallery Layout */
/* Gesamtcontainer für die Galerie */
.gallery-group {
    max-width: 100%; /* Verhindert Überlaufen über die Sidebar hinaus */
    margin: 0 auto 3em auto; /* Zentrierung und Abstand unten */
    padding: 0 1em;
    text-align: center;
}

/* Jedes Bild wird wie ein Textblock behandelt */
.gallery-item {
    display: inline-block;
    margin: 0 0.5em 1em 0; /* Abstand rechts und unten für fließendes Layout */
    vertical-align: top; /* Bilder oben ausrichten */
    width: calc(33.33% - 0.5em); /* Passt 3 Bilder pro Reihe auf großen Bildschirmen an */
    max-width: 200px; /* Begrenzung der Breite für kleinere Bildschirme */
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.caption {
    margin-top: 0.5em;
    font-size: 1em;
    color: #e5e5e5;
    text-align: center;
}

/* Titel für jede Galerie-Gruppe */
.gallery-group h2 {
    font-size: 2em;
    color: var(--highlight-color);
    margin-bottom: 1.5em;
    text-align: center;
}



@media (max-width: 768px) {
    .gallery-item {
        width: calc(50% - 1em); /* Zwei Bilder pro Zeile auf mittleren Bildschirmen */
    }
}

@media (max-width: 480px) {
    .gallery-item {
        width: calc(100% - 1em); /* Ein Bild pro Zeile auf kleinen Bildschirmen */
    }
}



/* Heading and Text Styles for Gallery */
#media-gallery h1 {
    font-size: 2.5em;
    text-align: left;
    margin-bottom: 0.5em;
}

#media-gallery p {
    text-align: center;
    font-size: 1.2em;
    color: #e5e5e5;
    max-width: 600px;
    margin: 0 auto 2em;
}

/* Lightbox overlay */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

/* Lightbox caption styling */
.lightbox-caption {
    margin-top: 1em;
    color: #f0f0f0;
    font-size: 1.1em;
    text-align: center;
    max-width: 80%;
}

/* Lightbox navigation arrows */
.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 1em;
    color: #ffffff;
    font-size: 2em;
    font-weight: bold;
    transition: 0.3s;
    user-select: none;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    color: #f0f0f0;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}


/* Main Content and Sidebar Layout */
.main-content {
    display: flex;
    justify-content: space-between;
    gap: 2em;
    padding: 3em 1em;
    max-width: 1200px;
    margin: 0 auto;
}

#home {
    flex: 1;
}

#concerts {
    width: 280px;
    background-color: var(--secondary-bg);
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: var(--text-color);
}

#concerts h2 {
    color: var(--highlight-color);
    font-size: 2.2em;
    margin-bottom: 1.5em;
    text-align: center;
    text-shadow: var(--text-shadow);
    -webkit-text-stroke: 0.3px black;
}

.concert-list {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.concert-item {
    background-color: var(--concert-item-bg);
    padding: 1.5em;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.concert-item h3 {
    font-size: 1.6em;
    color: var(--highlight-color);
    margin-bottom: 0.5em;
    text-shadow: var(--text-shadow);
    -webkit-text-stroke: 0.3px black;
}

.concert-item p {
    color: var(--text-color);
    font-size: 1.1em;
}


.concert-item p strong {
    color: var(--hover-color);
}

/* Responsive Layout */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
  
    #concerts {
        width: 100%;
        margin-top: 2em;
    }
}

/* Styling for the band photo container */
.band-photo-container {
    margin-top: 2em;
    text-align: center;
}

.band-photo {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 1.5em;
}

@media (max-width: 768px) {
    .band-photo {
        max-width: 100%;
        height: auto;
    }
}

.group-photo-container {
    margin-bottom: 2em;
    text-align: center;
}

.group-photo {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 1.5em;
}

@media (max-width: 768px) {
    .group-photo {
        max-width: 100%;
        height: auto;
    }
}


/* Hide the burger icon by default, show on smaller screens */
.burger-icon {
    display: none;
    font-size: 2em;
    cursor: pointer;
    color: var(--link-color);
}

@media (max-width: 768px) {
    /* Display burger icon for mobile */
    .burger-icon {
        display: block;
    }

    /* Hide the nav menu by default on mobile */
    #nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        right: 10px;
        background-color: var(--header-bg);
        width: 100%;
        padding: 1em;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    /* Show the nav menu when the burger menu is active */
    #nav-menu.active {
        display: block;
    }

    /* Style the nav links in the mobile menu */
    #nav-menu ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #nav-menu ul li {
        margin: 1em 0;
    }
}

/* Burger icon styling */
.burger-icon {
    display: none;
    font-size: 2em;
    cursor: pointer;
    color: var(--link-color);
    position: absolute;
    top: 1em;
    left: 1em; /* Move burger icon to the left */
    z-index: 1001; /* Ensure it stays above the menu */
}

@media (max-width: 768px) {
    /* Show burger icon on mobile */
    .burger-icon {
        display: block;
    }

    /* Hide the nav menu by default on mobile */
    #nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        right: 10px;
        background-color: var(--header-bg);
        width: 100%;
        padding: 1em;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    /* Show the nav menu when active */
    #nav-menu.active {
        display: block;
    }

    /* Style for nav links in the mobile menu */
    #nav-menu ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #nav-menu ul li {
        margin: 1em 0;
    }
}


/* Footer section */

/* Footer styling */

footer {
    background-color: var(--footer-bg);
    color: var(--text-color);
    text-align: center;
    padding: 1.5em 1em;
    margin-top: auto;
    border-top: 1px solid #333;
    position: relative;
}

footer p:hover {
    color: var(--hover-color);
}

/* Legal links in the footer */
.legal-links {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.legal-links a {
    color: var(--text-color);
    font-size: 0.8em;
    text-decoration: none;
    margin-left: 1em;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--highlight-color); /* Uses the red color for hover */
}

@media (max-width: 768px) {
    .legal-links {
        position: static;
        text-align: center;
        margin-top: 1em;
    }
}