/* Grundlegende Stile und Variablen */
:root {
    --anthracite: #11151a; /* sehr dunkles Anthrazit */
    --dark-blue: #12263b; /* dunkles Blau für Akzente */
    --yellow: #ffb24a; /* warmes Gelb-Orange */
    --muted: #a7b2bd;
    --light-gray: #ecf0f1;
    --dark-gray: #171b1f; /* dunkle Sektionen */
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Noto Sans', system-ui, sans-serif;
    background-color: var(--anthracite);
    color: var(--muted);
    line-height: 1.7;
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    color: var(--yellow);
    text-transform: uppercase;
}

h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.container {
    transform: translateZ(0); /* Stellt sicher, dass der Inhalt "vorne" bleibt */
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--yellow);
}

p {
    margin-bottom: 1rem;
}

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

.max-width-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.max-width-1200 {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Header */
header {
    background: linear-gradient(180deg, rgba(17,21,26,0.92), rgba(18,38,59,0.85));
    backdrop-filter: blur(10px);
    padding: 0 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 80px; /* increased from 44px to make the logo much larger */
    margin-right: 0.75rem;
}

.logo h1 {
    font-size: 1.25rem;
    color: var(--yellow);
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo:hover h1 {
    color: var(--yellow);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--muted);
    font-weight: bold;
    font-family: 'Oswald', sans-serif;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--yellow);
    border-bottom-color: var(--yellow);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--light-gray);
    border-radius: 5px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Main Content & Sections */
main {
    padding-top: var(--header-height);
}

section {
    padding: 5rem 0;
}

.dark-bg {
    transform: translateZ(0); /* Stellt sicher, dass der Inhalt "vorne" bleibt */
    background-color: var(--dark-gray);
}

.bright-bg {
    transform: translateZ(0); /* Stellt sicher, dass der Inhalt "vorne" bleibt */
    background-color: var(--anthracite);
    margin: 0 auto;
}

section#geschichte {
    max-width: 800px;
    text-align: center;
}

/* Hero Section */

.hero {
    transform: translateZ(0); /* Stellt sicher, dass der Inhalt "vorne" bleibt */
    height: calc(100vh - var(--header-height));
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 2rem;
    perspective: 1px; /* Erzeugt den 3D-Effekt */
}

.hero-parallax-container-js {
    position: relative;
    height: calc(100vh - var(--header-height)); /* Höhe deines Containers */
    overflow-y: scroll; /* Wichtig: Scrollen innerhalb dieses Elements */
    overflow-x: hidden;
    perspective: 1px; /* Erzeugt den 3D-Effekt */
    position: relative; /* Für die korrekte Positionierung der Kinder */
}

.hero-parallax-background-js {
    position: absolute;
    height: calc((100vh - var(--header-height))*2);
    width: 100%;
    display: flex;
    background: linear-gradient(180deg, rgba(18,38,59,0.55), rgba(17,21,26,0.6)), url('hero-bg.png') no-repeat center center/cover;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 2rem;
    perspective: 1px; /* Erzeugt den 3D-Effekt */

    /* Bewege das Bild nach hinten. Die -1px ist entscheidend. */
    /* Die Skalierung (scale) ist notwendig, um die scheinbare Größe zu korrigieren. */
    transform: translateZ(-1px) scale(2);
    z-index: -1; /* Setzt das Bild hinter den Inhalt */
}

.hero-content-js h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-content-js p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-content h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-subtext {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 2rem;
    font-weight: normal;
}

.btn {
    background: linear-gradient(90deg, var(--yellow), #ff9a2e);
    color: var(--anthracite);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    display: inline-block;
    transition: filter 0.22s ease, box-shadow 0.22s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin: 0.5rem;
}

.btn:hover {
    filter: brightness(0.95);
    box-shadow: 0 6px 18px rgba(6,22,40,0.45);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--yellow);
    color: var(--yellow);
}

.btn-secondary:hover {
    background: var(--yellow);
    color: var(--anthracite);
}

.button-group {
    text-align: center;
    margin-top: 2rem;
}

/* Download Section */
.download-section {
    max-width: 600px;
    margin: 3rem auto 2rem;
    padding: 2rem;
    background-color: var(--dark-gray);
    border-radius: 8px;
    border: 1px solid var(--anthracite);
}

.download-section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.download-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.download-list li {
    margin-bottom: 1rem;
}

.download-link {
    display: block;
    padding: 1rem;
    background-color: var(--anthracite);
    border-radius: 5px;
    color: var(--light-gray);
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid var(--blue);
}

.download-link:hover {
    background-color: var(--blue);
    color: var(--anthracite);
}

/* News Section -> umbenannt zu allgemeinen Sektionen */
.dark-bg {
    transform: translateZ(0); /* Stellt sicher, dass der Inhalt "vorne" bleibt */
    background-color: var(--dark-gray);

}

.bright-bg {
    transform: translateZ(0); /* Stellt sicher, dass der Inhalt "vorne" bleibt */
    background-color: var(--anthracite);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid var(--dark-gray);
}

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

/* Contact Section */
.contact-wrapper {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

#kontakt .container {
    transform: translateZ(0); /* Stellt sicher, dass der Inhalt "vorne" bleibt */
    padding: 0;
}

.contact-info {
    flex: 1;
    min-width: 280px;
}

.contact-info h3 {
    margin-bottom: 1rem;
    border-left: 4px solid var(--yellow);
    padding-left: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border: 2px solid var(--blue);
    color: var(--blue);
    border-radius: 50%;
    margin-right: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
}

.social-links a:hover {
    background-color: var(--blue);
    color: var(--anthracite);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

#kontakt form {
    flex: 1.5;
    min-width: 300px;
    margin: 0;
    max-width: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-family: 'Oswald', sans-serif;
}

#kontakt input, #kontakt textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--dark-gray);
    background-color: var(--anthracite);
    color: var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#kontakt input:focus, #kontakt textarea:focus {
    outline: none;
    border-color: var(--yellow);
}

/* Calendar Section */
.calendar-container {
    position: relative;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #fafafa;
    margin-top: 2rem;
    border-radius: 8px;
}

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

/* Sponsors Section */
.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
}

.sponsor-item {
    display: block;
    background-color: var(--anthracite);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--dark-gray);
}

.sponsor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.4);
}

.sponsor-item img {
    max-width: 180px;
    height: auto;
    filter: grayscale(100%) contrast(120%);
    opacity: 0.8;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.sponsor-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Legal Sections */
.legal-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    max-width: 900px;
    margin: auto;
}

.legal-section h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.legal-section h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--yellow);
    padding-bottom: 0.5rem;
    color: var(--light-gray);
}

/* Footer */
footer {
    background: #1e1e1e;
    padding: 2rem 0;
    margin-top: 0;
}

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

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: var(--muted);
    opacity: 0.85;
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--yellow);
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(33, 40, 42, 0.95);
    backdrop-filter: blur(5px);
    color: var(--light-gray);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    transition: bottom 0.5s ease-in-out;
    gap: 1rem;
    flex-wrap: wrap;
}

#cookie-banner.show {
    bottom: 0;
}

#cookie-banner p {
    margin: 0;
    flex-grow: 1;
}

#cookie-banner a {
    color: var(--yellow);
    text-decoration: underline;
}

/* Facebook Popup */
#facebook-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s 0.4s;
}

#facebook-popup-overlay.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease;
}

#facebook-popup {
    background: var(--dark-gray);
    padding: 2.5rem 2rem 2rem;
    border-radius: 8px;
    position: relative;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 1px solid var(--yellow);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

#facebook-popup-overlay.show #facebook-popup {
    transform: scale(1);
}

#facebook-popup h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

#facebook-popup p {
    margin-bottom: 1.5rem;
    color: var(--light-gray);
}

#close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: var(--light-gray);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.3s ease;
}

#close-popup:hover {
    color: var(--yellow);
}

.fb-page {
    display: inline-block;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

/* Responsive Design */
@media(max-width: 768px) {
    h2 {
        font-size: 2.2rem;
    }
    header { padding: 0 1rem; }
    .hero-content h2 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
    
    .nav-list {
        position: fixed;
        right: -100%;
        top: var(--header-height);
        flex-direction: column;
        width: 72%;
        height: calc(100vh - var(--header-height));
        background: rgba(33,40,42,0.98);
        padding-top: 2.5rem;
        gap: 1.25rem;
        transition: right 0.28s ease;
    }
    .nav-list.active { right: 0; }
    .header-grid { grid-template-columns: auto auto; }
    .hamburger { display: flex; flex-direction: column; justify-content: space-around; width: 36px; height: 28px; background: transparent; border: none; cursor: pointer; padding: 0; }
    .hamburger span { width: 100%; height: 3px; background-color: var(--light-gray); border-radius: 4px; transition: all 0.25s ease; }
    .hamburger.active span:nth-child(1){ transform: rotate(45deg) translate(4px,4px); }
    .hamburger.active span:nth-child(2){ opacity: 0; transform: translateX(10px); }
    .hamburger.active span:nth-child(3){ transform: rotate(-45deg) translate(4px,-4px); }
    .header-cta { display: none; } /* hide CTA inside header on small screens to keep layout clean */
}

.merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
    align-items: stretch;
}

.merch-item {
    display: flex;
    flex-direction: column;
    background: var(--dark-gray);
    border: 1px solid rgba(255,178,74,0.12);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--light-gray);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.merch-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.merch-thumb {
    background: #0f1518;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    overflow: hidden;
}

.merch-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%) contrast(95%);
    opacity: 0.95;
}

.merch-meta {
    padding: 1rem 1.25rem 1.5rem;
}

.merch-meta h3 {
    margin: 0 0 0.5rem;
    color: var(--yellow);
    font-size: 1.05rem;
}

.merch-meta p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.dark-mode-kalender {
    filter: invert(90%) hue-rotate(180deg) brightness(90%);
  }