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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--gray-light);
    color: var(--gray-dark);
}

/* Farben als CSS-Variablen */
:root {
    --gray-light: #f9f9f9;
    --gray-medium: #eee;
    --gray-dark: #333;
    --red-main: #CC0000;
    --yellow: #FFC107;
    --red: #F44336;
    --purple: #800080;
    --green-status: #28a745;
}

/* ----------------------------- HEADER ----------------------------- */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    background-color: white;
    padding-bottom: 5px; /* etwas weniger Padding */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 250px; /* feste Höhe */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slider-background {
    width: 100%;
    height: 250px; /* Slider Höhe auf 250px */
    overflow: hidden;
    position: relative;
    z-index: 0;
    margin-top: 0;
}

.swiper-slide img {
    width: 100%;
    height: 250px; /* Bildhöhe anpassen */
    object-fit: cover;
}

.logo-container {
    display: flex;
    align-items: center;
    padding: 5px 20px; /* kompaktere Polsterung */
    height: 40px; /* Logo-Bereich kompakt */
}

/* Optional: Logo und Titel etwas kleiner, um reinzupassen */
.logo-container img {
    height: 30px;
    margin-right: 10px;
}

.logo-container h1 {
    font-size: 1.2rem;
    color: var(--gray-dark);
    line-height: 1;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    header {
        height: 250px; /* Höhe bleibt */
    }

    .slider-background {
        height: 250px;
    }

    .swiper-slide img {
        height: 250px;
    }

    .logo-container {
        padding: 5px 15px;
        height: 40px;
    }

    .logo-container img {
        height: 25px;
    }

    .logo-container h1 {
        font-size: 1rem;
    }
}


/* ----------------------------- NAVIGATION ----------------------------- */
nav {
    background-color: var(--red-main);
    color: white;
    padding: 6px 30px; /* reduziert von 10px 30px */
}

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

nav ul li {
    position: relative;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

nav a:hover,
nav a:focus {
    background-color: #990000;
    color: white;
    border-radius: 4px;
}

/* Hamburger Menü für mobil */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 4px 0;
}

.nav-links {
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: white;
        position: absolute;
        top: 60px;
        right: 10px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }
}

/* ----------------------------- CONTAINER ----------------------------- */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    background-color: var(--gray-medium);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Gruppen-Menü */
.groups-menu {
    margin-bottom: 30px;
}

.group-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.group-thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--gray-dark);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.group-thumb:hover {
    transform: scale(1.05);
    border-color: var(--red-main);
}

/* ----------------------------- EVENTS GRID ----------------------------- */
.events-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Einzelne Event-Box */
.event-box {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease;
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
}

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

.event-box ul,
.event-box ol {
    padding-left: 20px; /* oder z. B. 1.5em */
    margin-bottom: 15px; /* optional für etwas Abstand darunter */
    list-style-position: outside; /* Punkte stehen außerhalb der Box */
}

.event-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--red-main);
}

.event-link {
    text-decoration: none;
    color: var(--gray-dark);
}

.event-link:hover {
    color: var(--red-main);
}


.event-teaser {margin-top: 20px;}

.event-description ul,
.event-description ol {
    padding-left: 20px; /* oder 1.5em */
    margin-bottom: 15px;
}

.event-description li {
    margin-bottom: 5px;
    list-style-position: outside;
}

.soldout-status {
    color: var(--red);
    font-weight: bold;
    margin-left: 5px;
}

/* Status-Boxen */
.status {
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    margin-bottom: 15px;
    color: white;
    text-align: center;
}

.status.green {
    background-color: var(--green-status);
}

.status.yellow {
    background-color: var(--yellow);
    color: black;
}

.status.red {
    background-color: var(--red);
}

.status.purple {
    background-color: var(--purple);
}

/* Event-Bild */
.event-thumb {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    margin: 10px 0;
    border-radius: 10px;
}



.event-thumb-link {
    display: block;
    width: 100%;
}


.event-box a img.event-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}




/* Beschreibung */
.event-description {
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Gruppen-Info */
.group-info {
    background-color: var(--gray-light);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.group-link {
    color: var(--red-main);
    text-decoration: none;
}

.group-link:hover {
    text-decoration: underline;
}

.group-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 10px;
}

/* Buttons */
.button {
    background-color: var(--red-main);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s ease;
    user-select: none;
}

.button:hover {
    background-color: #990000;
}

.secondary-button {
    background-color: var(--gray-dark);
    margin-left: 10px;
    color: white;
    border-radius: 8px;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.secondary-button:hover {
    background-color: #222;
}

.soldout {
    color: var(--red);
    font-weight: bold;
}

/* ----------------------------- FORMULARE ----------------------------- */
form {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 20px auto;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-dark);
}

form input[type="text"],
form input[type="email"],
form input[type="number"],
form input[type="password"],
form select,
form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="number"]:focus,
form input[type="password"]:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: var(--red-main);
    box-shadow: 0 0 5px var(--red-main);
}

form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Formular Buttons */
form button,
form input[type="submit"] {
    background-color: var(--red-main);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover,
form input[type="submit"]:hover {
    background-color: #990000;
}

/* Fehler- und Erfolgsmeldungen */
.form-error {
    background-color: var(--red);
    color: white;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-weight: bold;
}

.form-success {
    background-color: var(--red-main);
    color: white;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-weight: bold;
}

/* ----------------------------- RESPONSIVE ----------------------------- */
@media (max-width: 992px) {
    .events-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .events-container {
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
        padding: 15px;
    }

    form {
        width: 95%;
        margin: 20px auto;
    }

    .event-thumb {
        height: auto;
        margin: 10px 0;
        border-radius: 10px;
    }

    .group-images {
        justify-content: center;
    }
}

/* ----------------------------- FOOTER ----------------------------- */
footer {
    text-align: center;
    padding: 15px 0;
    background-color: var(--gray-light);
    color: var(--gray-dark);
    font-size: 0.9rem;
}

footer a {
    color: var(--red-main);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


/* ----------------------------- SUCHE & SOCIAL ----------------------------- */

.search-container {
    max-width: 350px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 5px;
    background: #fafafa;
}

.search-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.search-container input[type="text"],
.search-container input[type="date"],
.search-container select {
    width: 100%;
    padding: 6px 10px;
    margin-bottom: 15px;
    font-size: 1rem;
    border: 1px solid #bbb;
    border-radius: 3px;
    box-sizing: border-box;
}

.search-container button {
    width: 100%;
    padding: 8px;
    font-size: 1rem;
    background-color: #005a87;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.search-container button:hover {
    background-color: #004566;
}

.search-accordion summary {
    list-style: none;
    user-select: none;
    padding: 8px 12px;
    background: #005a87;
    color: white;
    border-radius: 5px;
    width: fit-content;
    cursor: pointer;
}

.search-accordion summary::-webkit-details-marker {
    display: none;
}

.search-accordion[open] summary {
    background: #004566;
}

.social-share {
    margin-top: 10px;
    font-size: 1.2rem;
}

.social-share a {
    margin-right: 10px;
    text-decoration: none;
    font-size: 1.4rem;
}

.social-share span {
    font-weight: bold;
    margin-right: 8px;
}



/* Ergänzung: Status canceled */
.status.canceled {
    background-color: red; /* Alternativ: var(--red) */
    color: white;
    padding: 10px;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
}

/* Ergänzung: Absagegrund */
.cancel-reason {
    background-color: #ffe6e6;
    border: 1px solid red;
    padding: 10px;
    margin-bottom: 20px;
    font-weight: bold;
    white-space: pre-wrap; /* Zeilenumbrüche erhalten */
}

/* Ergänzung: Tabellen */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ccc;
}

th {
    background-color: #ddd;
    padding: 8px;
    text-align: left;
}

td {
    padding: 8px;
}



/*---------------------list.php------------------------------*/

        .list-search-container {
            max-width: 350px;
            margin-bottom: 20px;
            border: 1px solid #ccc;
            padding: 15px;
            border-radius: 5px;
            background: #fafafa;
        }
        .list-search-container label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }
        .list-search-container input[type="text"],
        .list-search-container input[type="date"],
        .list-search-container select {
            width: 100%;
            padding: 6px 10px;
            margin-bottom: 15px;
            font-size: 1rem;
            border: 1px solid #bbb;
            border-radius: 3px;
            box-sizing: border-box;
        }
        .list-search-container button {
            width: 100%;
            padding: 8px;
            font-size: 1rem;
            background-color: #005a87;
            color: white;
            border: none;
            border-radius: 3px;
            cursor: pointer;
        }
        .list-search-container button:hover {
            background-color: #004566;
        }
        table.list-events-table {
            width: 100%;
            border-collapse: collapse;
        }
        table.list-events-table th, table.list-events-table td {
            border: 1px solid #ddd;
            padding: 8px;
            vertical-align: middle;
        }
        table.list-events-table th {
            background-color: #f2f2f2;
            text-align: left;
        }
        .list-event-thumb-small {
            max-width: 100px;
            max-height: 70px;
            object-fit: cover;
            border-radius: 3px;
        }
        .list-status.green {
            background-color: #d4edda;
            color: #155724;
            padding: 5px 8px;
            border-radius: 3px;
            font-weight: bold;
            text-align: center;
        }
        .list-status.yellow {
            background-color: #fff3cd;
            color: #856404;
            padding: 5px 8px;
            border-radius: 3px;
            font-weight: bold;
            text-align: center;
        }
        .list-status.red {
            background-color: #f8d7da;
            color: #721c24;
            padding: 5px 8px;
            border-radius: 3px;
            font-weight: bold;
            text-align: center;
        }
        .list-status.purple {
            background-color: #e2d6f6;
            color: #3e2465;
            padding: 5px 8px;
            border-radius: 3px;
            font-weight: bold;
            text-align: center;
        }
        .list-soldout, .list-soldout-status {
            color: red;
            font-weight: bold;
        }
        .list-filter-group-select {
            margin-bottom: 20px;
            max-width: 200px;
        }
