@font-face {
    font-family: 'mland';
    src: url('font/mland.woff2') format('woff2'),
        url('font/mland.woff') format('woff'),
        url('font/mland.ttf') format('truetype');
    font-weight: normal;
}


@font-face {
    font-family: 'mland';
    src: url('font/mlandb.woff2') format('woff2'),
        url('font/mlandb.woff') format('woff'),
        url('font/mlandb.ttf') format('truetype');
    font-weight: bold;
}

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

:root {
    --prim: #be974e;
    --sec: #06452b;
    --prim-bg: #cddad5;
}

body {
    font-family: Arial, sans-serif;
    font-size: 1.3em;
    line-height: 1.6;
    color: #333;
}

h1 {
    font-family: "mland", Arial, Helvetica, sans-serif;
    font-size: 8em;
    line-height: 1em;
    padding-bottom: 1em;
    color: #fff;
}

h2 {
    font-family: "mland", Arial, Helvetica, sans-serif;
    font-size: 3em;
    line-height: 1em;
    color: var(--prim);
}

.prim {
    color: var(--prim);
}

.sec {
    color: var(--sec);
}

a {
    text-decoration: underline;
    color: var(--prim);
    font-weight: bold;
    transition: all .3s;
}

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

a.button {
    display: inline-block;
    background-color: var(--prim-bg);
    color: var(--prim);
    padding: .7em;
    border-radius: 5px;
    text-decoration: none;
    margin: 1em;
    transition: all .5s;
    font-family: "mland", Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 1.5em;
}

a.button:hover {
    background-color: var(--sec);
    color: #fff;
}

p.button::before {
    position: relative;
    top: 20px;
    left: -30px;
    content: url(bilder/left.png);
    transition: all .4s;
}

p.button::after {
    position: relative;
    top: 20px;
    right: -30px;
    content: url(bilder/right.png);
    transition: all .4s;
}

p.button:hover::before {
    left: 0px;
}

p.button:hover::after {
    right: 0px;
}

p.musik::before {
    position: relative;
    top: 10px;
    left: -20px;
    content: url(bilder/musiknoten_braun.png);
    transition: all .4s;
}

p.musik::after {
    position: relative;
    top: 10px;
    left: 20px;
    content: url(bilder/musiknoten_gruen.png);
    transition: all .4s;
}


/* 🖱️ Styling der fixierten Navigation */
#main-nav {
    display: none;
    position: fixed;
    /* Fixiert die Navigation im Viewport */
    top: 0;
    right: 0;
    z-index: 1000;
    /* Stellt sicher, dass die Navigation immer über den Sektionen liegt */
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    border-bottom-left-radius: 5px;
}

#main-nav ul {
    list-style: none;
    display: flex;
    /* Ordnet die Links horizontal an */
}

#main-nav ul li {
    margin-left: 15px;
    /* Abstand zwischen den Links */
}

#main-nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 0.9em;
    padding: 5px 10px;
    transition: color 0.3s, background-color 0.3s;
    border-radius: 3px;
}

#main-nav ul li a:hover {
    color: #333;
    background-color: white;
}

/* 🧱 CSS Parallax Sektionen */
.parallax-section {
    /* Wichtig: Höhe auf mindestens den gesamten Viewport setzen */
    min-height: 100vh;
    height: 100vh;

    /* Hintergrund-Eigenschaften */
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    /* Der Parallax-Trick: Hintergrund fixiert sich am Viewport */
    background-attachment: fixed;

    /* Zentrierung des Textinhalts */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

/* 2. Styling für das Video selbst */
.background-video {
    /* Absolut im Container positionieren */
    position: absolute;
    top: 50%;
    left: 50%;

    /* Sicherstellen, dass das Video immer den gesamten Container ausfüllt */
    min-width: 100%;
    min-height: 100%;

    /* Zentrieren des Videos, falls es größer ist als der Container */
    transform: translate(-50%, -50%);

    /* Hintergrund-Farbe, falls das Video nicht lädt */
    background-color: #000;

    /* Video HINTER dem Text positionieren */
    z-index: 1;
}

/* 3. Text-Inhalt VOR dem Video positionieren */
.content {
    position: relative;
    /* Wichtig: Text muss über dem Video sein */
    z-index: 2;
    /* Höherer z-index als das Video (z-index: 1) */
    /* ... (restliches Styling) ... */
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    /* Leichter dunkler Hintergrund für Lesbarkeit */
    padding: 20px 40px;
    border-radius: 10px;
}

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

.content-section img {
    box-shadow: 5px 5px 15px 5px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 5px;
    margin-bottom: 1em;
    max-width: 1200px;

}

.content-section img:hover {
    transform: scale(1.02);
    box-shadow: 8px 8px 15px 7px rgba(0, 0, 0, 0.7);
}

.content-section .event-details img {
    width: 100%;
    max-width: 480px;
}

#section-1 {
    background-image: url('bilder/bg/new_year.jpg');
}

#section-2 {
    background-image: url('bilder/bg/Adventhuetten_Schnee.jpg');
}

#section-3 {
    background-image: url('bilder/bg/mariazell_hauptplatz_01.jpg');
}

#section-4 {
    background-image: url('bilder/bg/staende.jpg');
}

#section-5 {
    background-image: url('bilder/bg/lichterzauber.jpg');
}

#section-6 {
    background-image: url('bilder/bg/mariazell.jpg');
}

#section-7 {
    background-image: url('bilder/bg/galerie.jpg');
}

#section-8 {
    background-image: url('bilder/bg/sponsoren.jpg');
}

#section-9 {
    background-image: url('bilder/bg/feuerwerk.jpg');
}


/* 📝 Styling für den Inhalt über den Bildern */

/* Normale Inhalts-Sektionen */
.content-section {
    min-height: 50vh;
    padding: 100px 5%;
    background: url(bilder/bg/bg.jpg) center top repeat-y;
    background-size: 100%;
    color: #333;
    text-align: center;
}


.content-section h2 {
    margin-bottom: 20px;
    font-size: 2em;
}

.content-section p,
.content-section ul,
.content-section ol {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 1em;
}

.content-section ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.content-section ul li {
    list-style: none;
    background-color: var(--prim);
    padding: 1em;
    margin: .5em;
    border-radius: 5px;
    color: #fff;
}


/* Countdown */
.content.countdown {
    display: block;
    position: relative;
    z-index: 2;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 40px;
    border-radius: 10px;
}

#countdown-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    transition: all .5s;
    flex-direction: row;
    justify-content: center;
}

#countdown-container:hover {
    transform: translateY(-5px) rotate(0deg);
    background-color: rgba(255, 255, 255, 0.1);
}

.time-box {
    background-color: #cddad5;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #000;
}

.time-box p {
    font-size: 3em;
    font-weight: bold;
    margin: 0;
    line-height: 1;
}

.time-box span {
    font-size: 0.8em;
    text-transform: uppercase;
    color: #000;
}

#new-year-message {
    margin-top: 40px;
    font-size: 2.5em;
    color: #ffcc00;
}

.hidden {
    display: none;
}






/* Programm und Highlights */
.event-liste {
    list-style: none;
    padding: 0;
}

/* Stil für ein einzelnes Event */
.event-item {
    display: flex;
    /* Nutze Flexbox für das Layout */
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--prim);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.event-item:hover {
    transform: translateY(-5px);
}

/* Stil für den Datum-Block */
.event-datum {
    flex-shrink: 0;
    /* Verhindert, dass das Datum schrumpft */
    width: 80px;
    /* Feste Breite für das Datum */
    text-align: center;
    padding-right: 20px;
    border-right: 2px solid #fff;
    margin-right: 20px;
    line-height: 1.2;
}

.event-datum .tag {
    display: block;
    font-size: 2.2em;
    font-weight: bold;
    color: #fff;
}

.event-datum .monat {
    display: block;
    font-size: 1.1em;
    text-transform: uppercase;
    font-weight: 600;
}

.event-datum .jahr {
    display: block;
    font-size: 0.8em;
    color: var(--sec);
}

/* Stil für die Event-Details */
.event-details {
    flex-grow: 1;
    /* Nimmt den restlichen Platz ein */
}

.event-name {
    margin: 0;
    font-size: 1.5em;
    color: var(--text-farbe);
}








/* Icons Angebote und Stände */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    /* Wichtig: Lässt die Elemente in die nächste Zeile umbrechen */
    gap: 20px;
    /* Abstand zwischen den Kacheln */
    justify-content: center;
    /* Zentriert die Kacheln in der Mitte des Containers */
    max-width: 1000px;
    /* Maximale Breite des Rasters */
    margin: 0 auto 50px auto;
}

/* 2. Die Quadratische Div-Karte */
.card {
    /* Flexible Basis: Stellt sicher, dass 4 in einer Reihe Platz haben */
    flex: 1 1 200px;
    /* Flex-Grow, Flex-Shrink, Basis-Größe */
    width: 200px;
    height: 200px;

    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Zustand vor dem Mouseover */
.icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #007bff;
    font-size: 3em;
    transition: opacity 0.5s ease;
}

.icon-container img {
    box-shadow: none;
    position: relative;
    top: 45px;
}

/* 3. Die Details und Animation */
.details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    color: white;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    /* Startzustand für die Animation */
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Spezifische Farben für die Details */
.details-1 {
    background-color: #8b0000;
}


.details-2 {
    background-color: var(--prim-bg);
    color: var(--sec);
}


.details-3 {
    background-color: #a06841;
}


.details-4 {
    background-color: #ff6699;
}



/* 4. Mouseover-Effekt */
.card:hover .icon-container {
    opacity: 0;
    /* Icon ausblenden */
}

.card:hover .details {
    opacity: 1;
    /* Details einblenden */
    transform: translateY(0);
    /* Details in Position bringen */
}



/* Besucherinfos */

/* Stil für den Karten-Platzhalter */
#google-maps-placeholder {
    position: relative;
    width: 100%;
    height: 720px;
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    /* Optional: Hintergrundbild, das wie eine Karte aussieht */
    background-image: url('bilder/maps.jpg');
    background-size: cover;
    background-position: center;
    margin-bottom: 30px;
}

/* Stil für das Datenschutz-Overlay */
.privacy-overlay {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

.privacy-overlay p {
    margin: 0 0 15px;
    color: #333;
}

#accept-maps-btn {
    background-color: #0056b3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#accept-maps-btn:hover {
    background-color: #004085;
}

/* Google Maps */
#google-maps-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: none;
    /* Wichtig: Zuerst versteckt */
}


/* Partner & Sponsoren */
img.ps {
    padding: 10px;
    margin: 1em;
}

img.as {
    max-width: 300px;
}

.footer {
    background-image: url(bilder/footer.svg);
    background-repeat: no-repeat;
    position: relative;
    background-position: center bottom;
}

.footer ul {
    display: block;
    margin-bottom: 20px;
}

.footer ul li {
    list-style: circle;
    background: none;
    color: #000;
    padding: 0;
    margin: 0 0 0 50px;
}



/* Accordion */
.accordion-container {
    max-width: 1200px;
    margin: 20px auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    /* Für saubere Kanten */
}

/* Styling für jedes einzelne Accordion-Element */
.accordion-item {
    border-bottom: 1px solid #eee;
    margin: 0;
}

/* Entfernt die untere Linie des letzten Elements */
.accordion-item:last-child {
    border-bottom: none;
}

/* Styling des Headers (Titel) */
.accordion-header {
    background-color: #f7f7f7;
    color: #333;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    /* Für Ausrichtung von Titel und Icon */
    justify-content: space-between;
    align-items: center;
    list-style: none;
    /* Entfernt das Standard-Dreieckssymbol des Browsers */
}

/* Damit der Header-Inhalt (z.B. h3) auch klickbar ist und ordentlich aussieht */
.accordion-header h3 {
    margin: 0;
    font-size: 1em;
}

/* Visuelles Zeichen für den Zustand (Chevron/Pfeil) */
.accordion-header::after {
    content: '+';
    /* Standard-Zustand: Geschlossen */
    font-size: 1.5em;
    font-weight: bold;
    color: #555;
    transition: transform 0.3s;
}

/* Ändert das Symbol, wenn der Abschnitt geöffnet ist */
.accordion-item[open] .accordion-header::after {
    content: '−';
    /* Geöffnet-Zustand */
    /* Alternative: transform: rotate(45deg); für ein "X" oder Ähnliches */
}

/* Styling des Inhaltsbereichs */
.accordion-content {
    padding: 15px 20px;
    background-color: #ffffff;
    border-top: 1px solid #eee;
    text-align: left;
}

/* Fügt eine einfache Übergangsanimation für den Inhalt hinzu, 
   obwohl die Höhe (height) nicht direkt animiert werden kann, 
   kann man andere Eigenschaften animieren, um einen visuellen Effekt zu erzielen. */
.accordion-item[open] .accordion-content {
    animation: fadeIn 0.4s ease-in-out;
}

input#trackVisits {
    margin-left: 30px;
    width: 20px;
    height: 20px;
}

label[for="trackVisits"] span {
    margin-left: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media screen and (max-width: 680px) {
    .content.countdown {
        background-color: rgba(0, 0, 0, 0);
    }

    #countdown-container {
        flex-direction: column;
    }

    h1,
    h2 {
        font-size: 2em;
    }

    .content-section {
        background: url(bilder/bg/bg.jpg) center top repeat-y;
        background-size: 100%;
    }

    .content-section img {
        width: 80%;
        height: auto;
    }

    .card {
        height: 100%;
    }

    p.button::before {
        display: none;
    }

    p.button::after {
        display: none;
    }

    .content-section.footer {
        background-image: url(bilder/footer.svg);
        background-repeat: no-repeat;
        position: relative;
        background-position: center bottom;
    }
}

@media screen and (max-width: 575px) {
    /* Für kleine Bildschirme (Handys) */

    .event-item {
        /* Ändere das Layout zu einer vertikalen Anordnung */
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .event-datum {
        /* Datum oben, voller Breite */
        width: 100%;
        text-align: left;
        border-right: none;
        border-bottom: 2px solid var(--haupt-farbe);
        /* Trennlinie unten */
        margin-right: 0;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .event-datum .tag {
        display: inline;
        margin-right: 10px;
    }

    .event-datum .monat {
        display: inline;
        margin-right: 5px;
    }

    .event-datum .jahr {
        display: inline;
    }

    .event-details {
        width: 100%;
    }

    .event-name {
        font-size: 1.2em;
    }
}


@media screen and (max-width: 992px) {
    .parallax-section {
        /* Setzt background-attachment auf den Standardwert zurück */
        background-attachment: scroll !important;

        /* Optional: Verbessert die Darstellung auf Mobile, falls Bilder abgeschnitten wurden */
        background-position: center center !important;

        /* WICHTIG: Erhöhe die minimale Höhe leicht, falls die Adressleiste des Browsers stört */
        min-height: 100vh;
    }
}