/* --- CSS Variablen --- */
:root {
    --bg-color: #0d0d0d;
    --text-color: #f0f0f0;
    --blood-red: #b30000;
    --blood-red-hover: #ff0000;
    --footer-link-color: #888;
    --border-radius: 15px;
    --font-body: 'Open Sans', sans-serif;
    --font-heading: 'Creepster', cursive;
}

/* --- Globale Styles & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* DURCH DIESEN BLOCK ERSETZEN: */
body {
    /* Das Hintergrundbild wird hier festgelegt */
    background: var(--bg-color) url('/pix/background-spooky.jpg') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;

    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--blood-red);
    letter-spacing: 2px;
    line-height: 1.2;
}

h1 { margin: 0 0 20px 0;}
h2, h3 { margin: 20px 0;}

h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
h2 { font-size: clamp(2rem, 8vw, 2.8rem); }
h3 { font-size: clamp(1.8rem, 7vw, 2.2rem); }

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

a:hover {
    color: var(--blood-red-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Dekorationen --- */
.spooky-decoration {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    z-index: -1;
}
.top-left { top: 100px; left: 20px; transform: rotate(-15deg); }
.top-right { top: 100px; right: 20px; transform: rotate(15deg); }
.spider-web { position: absolute; bottom: 10px; right: 10px; font-size: 4rem; opacity: 0.2; }


/* --- Header --- */
.site-header {
    width: 100%;
    padding: 10px 20px;
    position: relative;
    min-height: 100px; /* Gibt dem Header eine Mindesthöhe */
}

.header-content-desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
}

/* NEU: Styles für den Seitentitel (ersetzt das Logo) */
.site-title {
    font-family: var(--font-heading);
    color: red;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
    white-space: nowrap; 
    
    /* Animation anwenden: Name, Dauer, Timing, Endlosschleife, Richtung */
    animation: soft-glow 4s ease-in-out infinite alternate;
}

.site-title-link, .site-title-link-mobile {
    text-decoration: none;
}
.site-title-link:hover .site-title,
.site-title-link-mobile:hover .site-title-mobile {
    color: var(--blood-red-hover); /* Hover-Effekt auf den Link anwenden */
}

.ad-banner img { border-radius: 5px; }
.header-content-mobile { display: none; }


/* --- Haupt-Layout (3 Spalten) --- */
.site-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 30px auto;
    padding: 0;
}

.column {
    padding: 20px;
    background-color: rgba(10, 10, 10, 0.5);
    border: 1px solid #222;
}

.column-nav { flex: 1 1 18%; }
.column-content { flex: 2 1 64%; }
.column-sidebar { flex: 1 1 18%; }

/* --- Navigation (Desktop) --- */
.column-nav nav ul {
    list-style: none;
}
.column-nav nav li {
    margin-bottom: 15px;
}
.column-nav nav a {
    font-size: 1.1rem;
    font-weight: bold;
    display: block;
}
.column-nav nav a.active {
    color: var(--blood-red);
    pointer-events: none;
}
.column-nav nav a::before {
    content: '\1F47B';
    margin-right: 10px;
    opacity: 0.5;
}

/* --- Seitenleiste (Termine) --- */
.column-sidebar h3 {
    text-align: center;
}
.event-list {
    list-style: none;
}
.event-list li {
    margin-bottom: 15px;
    border-left: 3px solid var(--blood-red);
    padding-left: 10px;
}
.event-date {
    font-weight: bold;
    color: var(--blood-red-hover);
    display: block;
}
.event-location {
    font-size: 0.9rem;
    color: #aaa;
    display: block;
}

/* --- Mobile Navigation & Overlay (Standard: Versteckt) --- */
.mobile-nav-container, .overlay {
    display: none;
}


/* NEU: Style für den X-Button im mobilen Menü */
.close-menu-button {
    position: absolute;
    top: 15px;
    right: 25px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2.5rem; /* Macht das X groß und gut klickbar */
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-menu-button:hover {
    transform: scale(1.2) rotate(90deg); /* Kleiner Dreheffekt beim Hovern */
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 40px 20px;
}
/* Container für beide Share-Buttons */
.share-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* Abstand zwischen den Buttons */
}

/* Allgemeiner Stil für beide Buttons */
.share-button {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
}
.share-button:hover {
    color: white;
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Spezifische Farbe für den WhatsApp-Button */
.whatsapp-button {
    background-color: #25D366;
}
.whatsapp-button:hover {
    background-color: #128C7E;
}

/* Spezifische Farbe für den nativen Share-Button */
.native-share-button {
    background-color: #555;
}
.native-share-button:hover {
    background-color: #333;
}
.footer-line {
    border: 0;
    height: 1px;
    background: #333;
    margin: 30px 0;
}
.footer-links a {
    color: var(--footer-link-color);
    margin: 0 15px;
}
.footer-links a:hover {
    color: var(--text-color);
}


/* --- Responsive Design (Tablet & Handy) --- */
@media (max-width: 992px) {
    .site-header {
        min-height: initial; /* Mindesthöhe aufheben */
    }
    .site-container {
        flex-direction: column;
    }
    .column-nav, .column-sidebar {
        width: 100%;
    }
    .column-nav { display: none; }

    /* NEU: Rahmen und Innenabstand für die Inhaltsspalten entfernen */
    .column-content, .column-sidebar {
        border: none;
        padding: 0 20px;
        background-color: transparent; /* Diese Zeile ist neu */
    }
    
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background-color: rgba(10, 10, 10, 0.8);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
    
    .header-content-desktop { display: none; }
    .header-content-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 60px;
    }

    .instagram-icon {
        font-size: 1.8rem;
        color: var(--text-color);
    }
    
    .site-title-mobile {
        font-family: var(--font-heading);
        color: var(--blood-red);
        font-size: 1.9rem; /* Feste Größe für mobile Ansicht */
        line-height: 1;
    }

    .burger-menu {
        background: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 24px;
        padding: 0;
        z-index: 1002;
    }

    .burger-bar {
        width: 100%;
        height: 3px;
        background-color: var(--text-color);
        border-radius: 2px;
    }

    .mobile-nav-container {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        height: 100%;
        background: linear-gradient(135deg, var(--blood-red) 0%, var(--bg-color) 70%);
        transform: translateX(-100%);
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1001;
        padding-top: 80px;
    }
    .mobile-nav-container.open {
        transform: translateX(0);
    }
    .mobile-nav-container nav ul {
        list-style: none;
    }
    .mobile-nav-container nav a {
        display: block;
        padding: 15px 30px;
        font-size: 1.2rem;
        font-weight: bold;
        color: var(--text-color);
    }
    .mobile-nav-container nav a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    .overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s ease;
    }
    .overlay.open {
        opacity: 1;
        visibility: visible;
    }
    
    /* --- Responsive Event-Boxen --- */
    .event-grid {
        display: flex;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        padding-bottom: 15px;
    }
    .event-grid::-webkit-scrollbar {
      height: 4px;
    }
    /* -- NACHHER -- */
    .event-grid::-webkit-scrollbar-thumb {
      background: linear-gradient(to right, black, var(--blood-red), black);
      border-radius: 4px;
    }
    .event-box {
        flex: 0 0 80%;
        scroll-snap-align: start;
    }
}


/* --- Spezifische Styles für Event-Boxen --- */
.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.event-box {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    color: white;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
}
.event-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 60%);
    z-index: 1;
}
.event-box-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.event-box:hover .event-box-bg {
    transform: scale(1.1);
}
.event-box-content {
    position: relative;
    z-index: 2;
}
.event-box-title {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}
.event-box-date {
    font-size: 1rem;
    color: var(--blood-red-hover);
    font-weight: bold;
}
.event-storer {
    position: absolute;
    width: 150px; /* Make the banner element wider */
    top: 25px; /* Adjust vertical position */
    right: -35px; /* Adjust horizontal position */
    transform: rotate(45deg); /* Keep the rotation */
    
    /* Styling */
    background-color: var(--blood-red-hover);
    color: white;
    padding: 8px 0; /* Adjust padding */
    text-align: center; /* Center the text on the wider banner */
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2); /* Add a subtle shadow for depth */
    z-index: 3;
}

/* Responsive Event-Boxen */
@media (max-width: 768px) {
    .event-grid {
        display: flex;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        padding-bottom: 15px;
    }
    .event-grid::-webkit-scrollbar {
      height: 4px;
    }
/* -- NACHHER -- */
.event-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(to right, black, var(--blood-red), black);
  border-radius: 4px;
}
    .event-box {
        flex: 0 0 80%;
        scroll-snap-align: start;
    }
}

/* =================================== */
/* Styling für die Spooky-Liste     */
/* =================================== */

.spooky-list {
    list-style-type: none; /* Entfernt die Standard-Aufzählungszeichen */
    padding-left: 20px;    /* Rückt die ganze Liste vom Rand ein */
    margin-top: 30px;      /* Fügt Abstand nach oben hinzu */
}

.spooky-list li {
    padding-left: 15px;    /* Erzeugt Platz für den Bluttropfen */
    margin-bottom: 15px;   /* Abstand zwischen den einzelnen Punkten */
    position: relative;    /* Wichtig für die Positionierung des Bluttropfens */
    line-height: 1.5;      /* Verbessert die Lesbarkeit */
}

.spooky-list li::before {
    content: '🩸';         /* Das Bluttropfen-Emoji als Aufzählungszeichen */
    font-size: 1.1rem;     /* Passt die Größe des Emojis an */
    position: absolute;    /* Positioniert den Tropfen exakt */
    left: -10px;           /* Platziert den Tropfen links vom Text */
    top: 2px;              /* Stimmt die vertikale Höhe ab */
}

/* -- DIESEN BLOCK AM ENDE DER DATEI HINZUFÜGEN -- */

@keyframes soft-glow {
  from {
    /* Ein subtiler, enger Schatten als Startpunkt */
    text-shadow: 1px 1px 2px #000, 0 0 10px var(--blood-red-hover), 0 0 15px var(--blood-red);
  }
  to {
    /* Ein stärkerer, weicherer Schatten als Höhepunkt der Animation */
    text-shadow: 1px 1px 2px #000, 0 0 20px var(--blood-red-hover), 0 0 35px var(--blood-red);
  }
}

/* Styling for the disclaimer in the footer */
.disclaimer-text {
    font-size: 0.8rem; /* Smaller font size */
    color: #777;      /* A subtle, gray color */
    max-width: 700px;  /* Prevents the line from being too long on wide screens */
    margin: 40px auto 0 auto; /* Adds space above and centers the block */
    line-height: 1.5;
}


/* =================================== */
/* Styling für die Bildergalerie       */
/* =================================== */

.gallery-item {
    cursor: pointer;
}

/* Overlay für die Großansicht */
#image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;

    /* Per Flexbox das Bild perfekt zentrieren */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Standardmäßig unsichtbar */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#image-overlay.visible {
    visibility: visible;
    opacity: 1;
}

/* Das Bild im Overlay */
#overlay-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; /* Stellt sicher, dass das ganze Bild sichtbar ist */
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.3);
}

/* Der Schließen-Button im Overlay */
.close-overlay {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.close-overlay:hover {
    transform: scale(1.2);
}

/* =================================== */
/* Styling für responsive Videos       */
/* =================================== */

.video-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Trick für 16:9 Aspect Ratio (9 / 16 = 0.5625) */
    padding-top: 56.25%; 
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}