/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-image: linear-gradient(rgba(44, 62, 80, 0.8), rgba(52, 73, 94, 0.8)),
        url('https://www.regiomanager.de/wp-content/uploads/1995/08/schumacher-online-opener-2048x1280.jpg');
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.6;
}

/* Layout Structure */
.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    /* Use relative path so URL_PREFIX and static path resolve correctly */
    background-image: url('https://landing.sts-finanzen.de/ressources/landing-root/bilder/kontakt_hintergrund.jpg');
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mid-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.mid-nav img {
    height: 60px;
    width: auto;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation */
.low-nav {
    padding: 15px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.low-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.low-nav a:hover {
    background: #34495e;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding-top: 100px;
    transition: left 0.3s ease;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu a {
    display: block;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.mehr-anzeigen-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

/* Form Styles */
.form-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.form-container h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.2em;
    font-weight: 300;
}

.share-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.info-text {
    background: #e8f4fd;
    color: #1976d2;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 14px;
    border-left: 4px solid #1976d2;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Website URL specific styling */
.form-group input[type="url"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
    font-family: inherit;
}

.form-group input[type="url"]:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input[type="url"]:valid {
    border-color: #4caf50;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
}

.form-group input[type="url"]:invalid:not(:placeholder-shown) {
    border-color: #d32f2f;
    background: linear-gradient(135deg, #fff8f8 0%, #ffe8e8 100%);
}

/* Form Elements */
label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 0.95em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="number"],
input[type="password"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
    font-family: inherit;
}

select {
    width: 100%;
    max-width: 400px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

select {
    appearance: none;
    color: #555;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"%3E%3Cpath fill="%233498db" d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Radio Button Styles - Updated to match design */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    position: relative;
    cursor: pointer;
    padding: 16px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    background: #fafafa;
    transition: all 0.3s ease;
    user-select: none;
}

.radio-option:hover {
    border-color: #3498db;
    background: white;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.radio-option.selected {
    border-color: #3498db;
    background: linear-gradient(135deg, #e8f4fd 0%, #d1ecf1 100%);
    box-shadow: 0 2px 15px rgba(52, 152, 219, 0.2);
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.radio-content {
    display: flex;
    align-items: flex-start;
    width: 100%;
    gap: 15px;
}

.radio-checkmark {
    position: relative;
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
    background: white;
}

.radio-option input[type="radio"]:checked + .radio-content .radio-checkmark {
    border-color: #3498db;
    background: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.radio-checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

.radio-option input[type="radio"]:checked + .radio-content .radio-checkmark::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-text {
    flex: 1;
}

.radio-label {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 4px;
}

.radio-description {
    font-size: 14px;
    color: #666;
    line-height: 1.3;
}

.radio-option input[type="radio"]:focus + .radio-content .radio-checkmark {
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.3);
    outline: none;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
    margin-top: 3px;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
}

.checkbox-group a {
    color: #3498db;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Buttons */
.submit-btn,
.login-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover,
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

.submit-btn:active,
.login-btn:active {
    transform: translateY(-1px);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Error Styles */
.error {
    background: #ffe6e6;
    color: #d32f2f;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #d32f2f;
    font-size: 14px;
}

.required {
    color: #d32f2f;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 20px;
}

.flash-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #28a745;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.1);
}

.flash-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #dc3545;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.1);
}

.flash-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #17a2b8;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.1);
}

/* Footer */
.top-footer {
    width: 100%;
    background: #34495e;
    color: white;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 50px auto 0;
}

.top-footer h3 {
    margin-bottom: 15px;
}

.top-footer p {
    line-height: 1.6;
}

.top-footer a {
    color: #3498db;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.top-footer a:hover {
    text-decoration: underline;
}

.low-footer {
    background: #2c3e50;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.right-footer {
    display: flex;
    gap: 20px;
}

.right-footer a {
    color: #3498db;
    text-decoration: none;
}

.right-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .low-nav {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .mid-nav {
        padding: 15px 20px;
    }

    .mid-nav img {
        height: 35px;
    }

    .container {
        padding: 20px 15px;
    }

    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 25px 20px;
        gap: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .willkommen-box h2 {
        font-size: 2em;
    }

    .willkommen-box p {
        font-size: 1em;
        line-height: 1.6;
    }

    .form-container {
        padding: 25px 20px;
        margin: 15px;
        border-radius: 10px;
    }

    .form-container h2 {
        font-size: 1.8em;
    }

    .share-button {
        position: static;
        margin-bottom: 20px;
        align-self: flex-end;
    }

    .top-footer {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

    .low-footer {
        flex-direction: column;
        text-align: center;
    }

    .right-footer {
        justify-content: center;
        flex-wrap: wrap;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slider-nav.prev {
        left: 10px;
    }

    .slider-nav.next {
        right: 10px;
    }

    .mehr-anzeigen-btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    /* Mobile Radio Button Adjustments */
    .radio-option {
        padding: 12px 16px;
    }
    
    .radio-label {
        font-size: 15px;
    }
    
    .radio-description {
        font-size: 13px;
    }
    
    .radio-checkmark {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }
    
    .radio-checkmark::after {
        width: 8px;
        height: 8px;
    }

    /* Website URL field mobile optimization */
    .form-group input[type="url"] {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 16px;
    }

}

.mobile-menu a:hover {
    background: rgba(52, 73, 94, 0.7);
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
    background: white;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.willkommen-box {
    padding: 20px 0;
}

.willkommen-box h2 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 300;
}

.willkommen-box p {
    line-height: 1.8;
    color: #555;
    font-size: 1.1em;
}

.form-group {
    margin: 20px auto;
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 50px;
}

.event-image {
    text-align: center;
}

.event-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease max-width 0.5s ease;
}

.event-image img:hover {
    opacity: 0.9;
    max-width: 410px;
    transition: opacity 0.3s ease, max-width 0.5s ease;
    cursor: pointer;
}

.middle {
    transition: .5s ease;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
}

.event-image:hover .middle {
    opacity: 1;
}

.text {
    background-color: rgba(42, 75, 99, 0.5);
    color: white;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 5px;
}

/* Lazy Loading */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

.lazy-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 15px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Photo Slider */
.foto-slider-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    position: relative;
}

.foto-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
}

.slider-track {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
}

.slider-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #3498db;
}

/* Mehr anzeigen Button */
.mehr-anzeigen-container {
    text-align: center;
    margin-top: 25px;
}

.mehr-anzeigen-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
}
/* Extracted from templates/index.html */
:root {
            --card-radius: 14px;
            --card-shadow: 0 8px 26px rgba(0, 0, 0, 0.12);
            --card-shadow-hover: 0 14px 32px rgba(0, 0, 0, 0.17);
            --badge-event: linear-gradient(135deg, #2f80ed, #1d5fbf);
            --badge-action: linear-gradient(135deg, #2ecc71, #239b56);
            --badge-exclusive: linear-gradient(135deg, #f4d58d, #c7953c 55%, #8f6421);
        }

        body {
            background-color: #ffffff;
            background-image: none;
        }

        .hero-section {
            width: 100%;
            min-height: calc(100vh - 130px);
            margin: 0 0 34px;
            overflow: hidden;
            display: flex;
            align-items: center;
            background-image:
                linear-gradient(120deg, rgba(14, 34, 56, 0.9), rgba(28, 68, 101, 0.78)),
                url('https://www.regiomanager.de/wp-content/uploads/1995/08/schumacher-online-opener-2048x1280.jpg');
            background-size: cover;
            background-position: center;
        }

        .hero-inner {
            width: min(1200px, 100%);
            margin: 0 auto;
            padding: clamp(34px, 6vw, 68px) 20px;
        }

        .hero-event-slider {
            position: relative;
        }

        .hero-event-track {
            position: relative;
            height: 620px;
            overflow: hidden;
        }

        .hero-event-slide {
            position: absolute;
            inset: 0;
            opacity: 0;
            pointer-events: none;
            transform: translateX(0);
            transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
            margin: 0;
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
            align-items: center;
            gap: 28px;
            padding: clamp(24px, 3vw, 36px);
            z-index: 1;
        }

        .hero-event-slide.is-active {
            position: absolute;
            opacity: 1;
            pointer-events: auto;
            transform: translateX(0);
            z-index: 2;
        }

        .hero-event-slide.is-enter-from-right {
            opacity: 0;
            transform: translateX(48px);
        }

        .hero-event-slide.is-enter-from-left {
            opacity: 0;
            transform: translateX(-48px);
        }

        .hero-event-slide.is-exit-to-left {
            opacity: 0;
            transform: translateX(-48px);
            z-index: 1;
        }

        .hero-event-slide.is-exit-to-right {
            opacity: 0;
            transform: translateX(48px);
            z-index: 1;
        }

        .hero-event-content {
            max-width: 66ch;
            animation: heroContentIn 0.7s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .hero-kicker {
            margin: 0 0 6px;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: #b8d9f2;
            font-weight: 700;
        }

        .hero-kicker-exklusiv {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            width: fit-content;
            padding: 7px 14px;
            border-radius: 999px;
            color: #fff3cf;
            background: rgba(143, 100, 33, 0.3);
            border: 1px solid rgba(244, 213, 141, 0.45);
            box-shadow: 0 10px 24px rgba(143, 100, 33, 0.22);
        }

        .hero-kicker-exklusiv::before {
            content: "";
            width: 8px;
            height: 8px;
            border-radius: 999px;
            background: radial-gradient(circle, #fff7de 0%, #f4d58d 65%, #c7953c 100%);
            box-shadow: 0 0 10px rgba(244, 213, 141, 0.7);
        }

        .hero-title {
            color: #ffffff;
            font-size: clamp(2rem, 5vw, 3.2rem);
            margin-bottom: 10px;
            line-height: 1.15;
            font-weight: 700;
            text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
        }

        .hero-description {
            color: #f1f7ff;
            line-height: 1.65;
            font-size: 1.08rem;
            margin: 0;
        }

        .hero-meta {
            color: #d5e9fb;
            margin-top: 8px;
            font-size: 0.94rem;
            line-height: 1.4;
        }

        .hero-event-poster {
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero-event-poster img {
            width: auto;
            max-width: 100%;
            max-height: 550px;
            object-fit: contain;
            border-radius: 12px;
            filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.38));
            transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
            display: block;
        }

        .hero-event-slide.is-active .hero-event-poster img {
            transform: translateY(0) scale(1);
        }

        .hero-event-slide .hero-event-poster img {
            transform: translateY(6px) scale(0.985);
        }

        .hero-buttons {
            display: flex;
            gap: 14px;
            flex-wrap: wrap;
            margin-top: 24px;
        }

        .hero-buttons .submit-btn {
            width: auto;
            min-width: 190px;
            text-align: center;
            text-decoration: none;
            background: linear-gradient(135deg, #2f80ed, #1d5fbf);
        }

        .hero-buttons .submit-btn.hero-secondary-btn {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.55);
        }

        .hero-slider-controls {
            position: static;
            display: inline-flex;
            align-items: center;
            gap: 12px;
            background: rgba(6, 17, 28, 0.58);
            border: 1px solid rgba(255, 255, 255, 0.22);
            border-radius: 999px;
            padding: 8px 12px;
            backdrop-filter: blur(4px);
            margin: 6px auto 0;
        }

        .hero-slider-nav {
            border: 0;
            width: 42px;
            height: 42px;
            border-radius: 999px;
            background: rgba(8, 24, 38, 0.92);
            border: 1px solid rgba(255, 255, 255, 0.55);
            color: #ffffff;
            cursor: pointer;
            font-size: 22px;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
            transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
        }

        .hero-slider-nav:hover {
            background: rgba(5, 16, 26, 0.98);
            transform: translateY(-1px);
            box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
        }

        .hero-slide-indicator {
            color: #ffffff;
            min-width: 56px;
            text-align: center;
            font-weight: 700;
            font-size: 0.92rem;
        }

        @keyframes heroContentIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .low-nav a,
        .mobile-menu a {
            font-weight: 700;
        }

        .events-surface {
            background: transparent;
            border-radius: 0;
            padding: 0;
            box-shadow: none;
        }

        .section-header {
            text-align: center;
            margin-bottom: 34px;
            background: #2A4B63;
            border: 1px solid #1f394d;
            border-radius: 14px;
            padding: 20px 18px;
            box-shadow: 0 10px 24px rgba(25, 43, 59, 0.28);
        }

        .section-header h2 {
            color: #A26F52;
            font-size: clamp(1.9rem, 2.5vw, 2.4rem);
            margin-bottom: 10px;
            font-weight: 700;
            letter-spacing: 0.01em;
        }

        .section-header p {
            color: #A26F52;
            font-size: 1.05rem;
            max-width: 760px;
            margin: 0 auto;
        }

        .section-header .next-announcement {
            display: inline-block;
            margin-top: 10px;
            padding: 8px 14px;
            border-radius: 999px;
            background: #A26F52;
            color: #ffffff;
            font-size: 0.95rem;
            font-weight: 700;
            border: 1px solid #d7a486;
            box-shadow: 0 8px 18px rgba(162, 111, 82, 0.35);
        }

        .event-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
            gap: 28px;
            margin-bottom: 20px;
        }

        .event-card {
            background: #ffffff;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            transition: box-shadow 0.25s ease;
            border: 1px solid #dbe8f5;
        }

        .event-card:hover {
            box-shadow: var(--card-shadow-hover);
        }

        .event-card-image {
            width: 100%;
            aspect-ratio: 3 / 4;
            object-fit: contain;
            object-position: center;
            background: #ffffff;
            display: block;
            padding: 8px;
        }

        .event-card-content {
            padding: 14px 16px 16px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .event-card-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }

        .event-badge {
            display: inline-block;
            width: fit-content;
            padding: 6px 12px;
            border-radius: 999px;
            color: #A26F52;
            font-size: 0.76rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            background: #1f394d;
            border: 1px solid #A26F52;
            box-shadow: none;
        }

        .badge-event {
            background: #1f394d;
        }

        .badge-aktion {
            background: #1f394d;
        }

        .badge-exklusiv {
            background: var(--badge-exclusive);
            color: #3d2808;
            border-color: #f1d08a;
            box-shadow: 0 10px 20px rgba(151, 107, 37, 0.18);
        }

        .event-card-title {
            color: #000000;
            font-size: 1.18rem;
            line-height: 1.3;
            margin: 0;
        }

        .event-card-description {
            color: #000000;
            line-height: 1.6;
            font-size: 0.92rem;
            margin: 0;
        }

        .event-meta {
            color: #2f80ed;
            font-size: 0.86rem;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .event-meta-item {
            margin: 0;
        }

        .event-card-content .submit-btn {
            width: auto;
            min-width: 140px;
            padding: 10px 12px;
            font-size: 0.9rem;
            text-align: center;
            text-decoration: none;
            margin-top: 0;
            border-radius: 11px;
            background: linear-gradient(135deg, #2f80ed, #1d5fbf);
            color: #ffffff;
            border: 1px solid #1d5fbf;
            box-shadow: 0 6px 16px rgba(47, 128, 237, 0.28);
            font-weight: 700;
        }

        .event-card-content .submit-btn:hover {
            background: linear-gradient(135deg, #236fd8, #184f9f);
            color: #ffffff;
        }

        .page-title {
            font-weight: bold;
        }

        @media (max-width: 1200px) {
            .event-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 768px) {
            .hero-section {
                min-height: calc(100vh - 100px);
            }

            .hero-inner {
                padding: 28px 20px;
                gap: 20px;
            }

            .hero-event-track {
                height: 760px;
            }

            .hero-event-slide {
                grid-template-columns: 1fr;
                gap: 20px;
                padding: 20px 20px 72px;
            }

            .hero-title {
                font-size: clamp(1.7rem, 7.2vw, 2.3rem);
            }

            .hero-event-poster img {
                max-height: 330px;
            }

            .hero-buttons {
                flex-direction: column;
            }

            .hero-buttons .submit-btn {
                width: 100%;
            }

            .hero-slider-nav {
                width: 32px;
                height: 32px;
                font-size: 16px;
            }

            .events-surface {
                padding: 0;
            }

            .event-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .next-highlight {
                grid-template-columns: 1fr;
            }
        }

.next-highlight {
    display: grid;
    grid-template-columns: minmax(210px, 280px) 1fr;
    align-items: center;
    gap: 22px;
    background: linear-gradient(120deg, #f4f9ff, #ffffff);
    border: 2px solid #b9d7f7;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 28px;
    box-shadow: 0 12px 28px rgba(47, 128, 237, 0.16);
}

.next-highlight-image {
    width: 100%;
    max-height: 340px;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #dbe8f5;
    padding: 8px;
}

.next-highlight-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 62ch;
}

.next-highlight-content h3 {
    margin: 0;
    color: #10273b;
}

.next-highlight-kicker {
    color: #1d5fbf;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.78rem;
}

.next-highlight-description {
    margin: 0;
    color: #10273b;
    max-width: 54ch;
}

.next-highlight .submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 150px;
    margin-top: 6px;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #2f80ed, #1d5fbf);
    border: 1px solid #1d5fbf;
    box-shadow: 0 8px 18px rgba(47, 128, 237, 0.28);
}

.next-highlight .submit-btn:hover {
    text-decoration: none;
    background: linear-gradient(135deg, #236fd8, #184f9f);
    box-shadow: 0 10px 22px rgba(35, 111, 216, 0.35);
}

.event-card-description {
    max-width: 48ch;
}

.event-card.is-next {
    border: 2px solid #2f80ed;
    box-shadow: 0 14px 30px rgba(47, 128, 237, 0.2);
}

.next-chip {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: #2f80ed;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 992px) {
    .next-highlight {
        grid-template-columns: 220px 1fr;
    }
}

/* Admin */
.admin-panel,
.admin-table-wrap {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.admin-head h1 {
    color: #10273b;
}

.admin-head-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-logout-form {
    margin: 0;
}

.admin-head-links .submit-btn {
    width: auto;
    min-width: 130px;
    text-decoration: none;
    text-align: center;
    padding: 10px 14px;
    font-size: 14px;
}

.admin-secondary-btn {
    background: #1f394d;
}

.admin-form .form-group {
    display: block;
    margin: 0 0 16px;
}

.admin-table-wrap h2 {
    margin-bottom: 12px;
    color: #10273b;
}

.admin-table-scroll {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid #dbe8f5;
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: #1f394d;
}

.admin-actions {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.admin-actions form {
    margin: 0;
}

.admin-small-btn {
    width: auto;
    min-width: 100px;
    padding: 8px 10px;
    font-size: 13px;
    text-decoration: none;
    text-align: center;
}

.admin-danger-btn {
    background: linear-gradient(135deg, #d64545, #a93232);
}

.past-event-grid {
    margin-top: 18px;
}

.past-event-card {
    opacity: 0.92;
}

.past-chip {
    background: #6b7d90;
}

.empty-past-events {
    margin: 10px 0 24px;
    color: #10273b;
    background: #ffffff;
    border: 1px solid #dbe8f5;
    border-radius: 12px;
    padding: 14px 16px;
}

.admin-login-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-panel {
    width: min(520px, 100%);
}

.admin-login-text {
    margin: 8px 0 16px;
    color: #3d5165;
}

@media (max-width: 768px) {
    .admin-panel,
    .admin-table-wrap {
        padding: 16px;
    }

    .admin-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Device Optimizations */
html,
body {
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .container {
        padding: 28px 16px;
    }

    .hero-inner {
        padding: 26px 16px;
    }

    .hero-event-track {
        height: 680px;
    }

    .hero-event-slide {
        gap: 20px;
        grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
    }

    .next-highlight {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
    }

    .hero-event-track {
        height: clamp(620px, 170vw, 760px);
    }

    .hero-event-slide {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px 16px 72px;
    }

    .hero-event-content {
        max-width: 100%;
    }

    .hero-title {
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.55;
    }

    .hero-meta {
        font-size: 0.88rem;
    }

    .hero-event-poster img {
        max-height: 280px;
    }

    .hero-slider-controls {
        width: calc(100% - 24px);
        justify-content: center;
        margin-top: 4px;
    }

    .section-header {
        padding: 16px 14px;
    }

    .section-header h2 {
        font-size: clamp(1.4rem, 5.5vw, 1.9rem);
    }

    .event-card-top {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .event-card-content .submit-btn {
        width: 100%;
        min-width: 0;
    }

    .top-footer {
        width: 100%;
        margin-top: 24px;
        padding: 26px 16px;
        grid-template-columns: 1fr;
    }

    .low-footer {
        padding: 16px;
    }

    .right-footer {
        width: 100%;
        justify-content: center;
        gap: 12px;
    }

    .admin-head-links {
        width: 100%;
        flex-wrap: wrap;
    }

    .admin-head-links .submit-btn,
    .admin-logout-form .submit-btn {
        width: 100%;
        min-width: 0;
    }

    .admin-actions {
        flex-direction: column;
        width: 100%;
    }

    .admin-small-btn {
        width: 100%;
        min-width: 0;
    }

    .admin-table {
        min-width: 640px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 18px 12px;
    }

    .hero-inner {
        padding: 20px 12px;
    }

    .hero-event-track {
        height: clamp(600px, 188vw, 720px);
    }

    .hero-slider-controls {
        gap: 8px;
        padding: 6px 10px;
        margin-top: 2px;
    }

    .hero-slide-indicator {
        min-width: 44px;
        font-size: 0.84rem;
    }

    .hero-buttons .submit-btn {
        padding: 12px 14px;
        font-size: 14px;
    }

    .event-card {
        border-radius: 14px;
        display: grid;
        grid-template-columns: 110px 1fr;
        align-items: stretch;
    }

    .event-card-image {
        height: 100%;
        aspect-ratio: auto;
        object-fit: contain;
        object-position: center;
        background: #f7fbff;
        padding: 6px;
    }

    .event-card-content {
        padding: 12px;
        gap: 8px;
    }

    .event-card-title {
        font-size: 1.02rem;
    }

    .event-card-description {
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .event-meta {
        font-size: 0.8rem;
    }

    .event-card-content .submit-btn {
        padding: 9px 10px;
        font-size: 0.82rem;
    }
}

@media (min-width: 1025px) {
    .hero-slider-nav {
        width: 46px;
        height: 46px;
        font-size: 24px;
    }
}

@media (max-width: 420px) {
    .event-card {
        grid-template-columns: 1fr;
    }

    .event-card-image {
        height: auto;
        aspect-ratio: 3 / 4;
    }
}

