/* Root Variables */
:root {
    color-scheme: light;
    --primary-color: #22c55e;
    --secondary-color: #16a34a;
    --accent-color: #eab308;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;
    --scrollbar-thumb-color: #cbd5e1; /* Light mode thumb color */
    --nav-bg: rgba(255, 255, 255, 0.98);
    --events-bg: var(--light-bg);

    /* Ticker Colors */
    --ticker-news-bg: #334155;
    --ticker-event-bg: var(--primary-color);
    --ticker-warning-bg: #ef4444;
    --ticker-text: #ffffff;
}

.dark-mode {
    color-scheme: dark;
    --light-bg: #0f172a;
    --text-dark: #f1f5f9;
    --text-light: #94a3b8;
    --border-color: #334155;
    --card-bg: #1e293b;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --scrollbar-thumb-color: #475569; /* Dark mode thumb color */
    --nav-bg: rgba(15, 23, 42, 0.98);

    /* Spezielle Korrektur für Preise in Dark Mode */
    --price-gradient: linear-gradient(135deg, #064e3b 0%, #1e293b 100%);
    --events-bg: var(--light-bg);
}

/* Modern Global Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb-color);
    border-radius: 10px;
    border: 3px solid var(--light-bg);
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Styles */
html {
    scroll-behavior: smooth;
    /* Firefox Support */
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb-color) var(--light-bg);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.6;
    /* Verhindert das Markieren von Text auf der gesamten Seite */
    user-select: none;
    -webkit-user-select: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modern Section Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Header & Navigation */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#newsTicker {
    height: 54px;
    padding: 0 !important;
    overflow: hidden;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 5;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    border-top: none;
    border-bottom: none;
    animation: tickerSlideDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#newsTicker::before,
#newsTicker::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        -45deg,
        #facc15,
        #facc15 10px,
        #000 10px,
        #000 20px
    );
    z-index: 10;
    pointer-events: none;
}

#newsTicker::before { top: 0; }
#newsTicker::after { bottom: 0; }

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-text {
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    white-space: nowrap;
}

.logo-text.visible {
    opacity: 1;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
}

.hero .gallery-admin-flag {
    top: 100px;
    z-index: 10;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('anlage.jpg') center/cover no-repeat;
    z-index: -1;
    background-attachment: fixed;
    filter: saturate(1.3) contrast(1.1);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--text-dark);
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: #facc15;
    transform: translateY(-3px);
}

.btn-gray {
    background-color: #64748b;
    color: white;
}

.btn-gray:hover {
    background-color: #475569;
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.section-header h2::after {
    content: '';
    display: block;
    height: 4px;
    width: 80px;
    background: var(--primary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* About Section */
.about {
    background-color: var(--light-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#about-anlage-card,
#about-verein-card {
    cursor: pointer;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.15);
}

.about-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Club Section Styles */
.club-category {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    background: var(--card-bg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-header {
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s;
}

.category-header:hover {
    background: var(--light-bg);
}

.category-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.member-card {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: left;
    position: relative; /* Für die absolute Positionierung der Buttons */
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.member-admin-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.member-card:hover .member-admin-actions {
    opacity: 1;
}

.member-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    transition: transform 0.2s;
}
.member-action-btn.edit { background: var(--primary-color); }
.member-action-btn.delete { background: #ef4444; }
.member-action-btn:hover { transform: scale(1.1); }

/* Club Search Styles */
.club-search-container {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 450px;
    margin: 0 auto 2rem;
}

.club-search-container input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid var(--border-color);
    background: var(--light-bg);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.club-search-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.club-search-container .search-icon {
    position: static;
    transform: none;
    color: var(--text-light);
    opacity: 0.5;
    pointer-events: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.club-search-container:focus-within .search-icon {
    color: var(--primary-color);
    opacity: 1;
    transform: scale(1.1);
}

.member-grid {
    display: none; /* Initial versteckt */
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-top: 1px solid var(--border-color);
}

.member-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.member-body {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.member-card img {
    width: 110px;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
}

.member-name {
    margin: 0 0 0.1rem 0;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.member-role {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.member-bio {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0;
    line-height: 1.4;
    font-style: italic;
}

@media (max-width: 768px) {
    .member-grid {
        grid-template-columns: 1fr;
    }
}

.member-card.gold-frame {
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.1);
}

.member-card.silver-frame {
    border: 2px solid rgba(192, 192, 192, 0.5);
    box-shadow: 0 4px 12px rgba(160, 160, 160, 0.1);
}

.member-card.bronze-frame {
    border: 2px solid rgba(205, 127, 50, 0.5);
    box-shadow: 0 4px 12px rgba(165, 124, 0, 0.1);
}



/* Gallery Section */
.gallery {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.gallery-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--card-bg);
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden; /* Versteckt das Element komplett für den Browser */
    pointer-events: none; /* Verhindert, dass Klicks abgefangen werden */
    z-index: 0;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.carousel-item.active {
    opacity: 1;
    visibility: visible; /* Macht es wieder sichtbar */
    pointer-events: auto; /* Erlaubt Klicks wieder */
    z-index: 1; /* Stellt sicher, dass es oben liegt */
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    /* Verhindert das Ziehen von Bildern auf den Desktop */
    -webkit-user-drag: none;
}

.carousel-item img:hover {
    transform: scale(1.02);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(34, 197, 94, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 1.5rem;
    background: rgba(248, 250, 252, 0.5);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* Prices Section */
.prices {
    background: var(--light-bg);
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.price-card {
    background: var(--price-gradient, linear-gradient(135deg, #f0fdf4 0%, white 100%));
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.2);
}

.price-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 1rem;
}

.rich-editor {
    min-height: 150px;
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.3s ease;
}

/* Modal Base Overlay */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    animation: modalSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Hide arrows on mobile where touch scrolling is native */
@media (max-width: 768px) {
    .event-nav-btn {
        display: none;
    }
}

.rich-editor:empty:before {
    content: attr(placeholder);
    color: var(--text-light);
    opacity: 0.6;
}

.rich-editor:focus {
    border-color: var(--primary-color);
}

/* Bahnen 16:9 Format */
.track-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    overflow: hidden;
}

#modalTrackImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.price-item:last-child {
    border-bottom: none;
}

.price-item .label {
    color: var(--text-light);
    font-weight: 500;
}

.price-item .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Events Section */
.events {
    background: var(--events-bg);
}

.events-grid {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 1.5rem 0.5rem 3rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Flüssiges Scrollen auf iOS */
}

.bb-spoiler {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 10px 0;
    overflow: hidden;
}

.bb-spoiler summary {
    padding: 10px 15px;
    font-weight: 600;
    cursor: pointer;
    color: var(--primary-color);
    outline: none;
    transition: background 0.2s;
}

.bb-spoiler summary:hover {
    background: rgba(34, 197, 94, 0.05);
}

.bb-spoiler-content {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
}

/* Fade-Effekt für Karten, die aus dem Bild laufen */
.events-wrapper {
    position: relative;
}

.events-wrapper::before,
.events-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.events-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--events-bg), transparent);
}

.events-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--events-bg), transparent);
}

.events-wrapper.show-left::before {
    opacity: 1;
}

.events-wrapper.show-right::after {
    opacity: 1;
}

/* Admin Erstellungs-Fähnchen Design */
.news-creation-flags {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 0.5rem; /* Klar unter dem Scrollbereich positionieren */
    margin-bottom: 3rem;
    position: relative;
    z-index: 6;
}

.create-flag {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 0 0 15px 15px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.create-flag:hover {
    padding-top: 18px; /* Kleiner Animationseffekt beim Drüberfahren */
    background: var(--secondary-color);
    transform: translateY(2px);
}

/* News/Event Navigation Arrows (Matching Gallery Style) */
.event-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(34, 197, 94, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.event-nav-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}

.event-nav-btn.prev { left: -25px; }
.event-nav-btn.next { right: -25px; }

@media (max-width: 1300px) {
    .event-nav-btn.prev { left: 5px; }
    .event-nav-btn.next { right: 5px; }
}

@media (max-width: 768px) {
    .events-wrapper::before, 
    .events-wrapper::after { width: 50px; }
}

.event-card {
    flex: 0 0 320px; /* Jede Karte hat eine feste Breite von 320px */
    scroll-snap-align: start;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.15);
}

.event-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-date {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.event-date .month {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
}

.event-date .day {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
}

.event-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.event-card p {
    padding: 0.5rem 1.5rem;
    color: var(--text-light);
    flex-grow: 1;
}

.event-card .btn {
    margin: 1.5rem;
    margin-top: auto;
    text-align: center;
}

/* Opening Hours Section */
.opening-hours {
    background: transparent;
    color: var(--text-dark);
    padding: 60px 0;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.hours-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(34, 197, 94, 0.2);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.hours-card:hover {
    transform: translateY(-5px);
}

.hours-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hours-card i {
    font-size: 1.5rem;
}

.hours-content ul {
    list-style: none;
}

.hours-content li {
    padding: 0.8rem 0;
    display: flex;
    justify-content: space-between;
    opacity: 0.95;
}

.hours-content span {
    font-weight: 500;
}

.hours-content p {
    opacity: 0.95;
    line-height: 1.8;
}

.hours-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.hours-content a:hover {
    opacity: 0.8;
}

.live-status {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 10px;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.card-header-flex {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1.5rem;
}

.weather-display {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-top: 1rem;
}

.weather-display img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.status-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #ef4444;
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

/* Map Button Styles */
.map-btn {
    margin-top: 1.5rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    color: white !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.status-indicator.open {
    background-color: #22c55e;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Contact Section */
.contact {
    background: var(--light-bg);
}

/* Footer Design */
.footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-section h4 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: white !important;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px 0;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
    margin: 0 5px;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 2000;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--card-bg);
        padding: 2rem;
        gap: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .anlage-info {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .obstacles-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.bb-gallery-grid-inline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 15px 0;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 12px;
}

.bb-gallery-grid-inline img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s;
    cursor: pointer;
}

.bb-gallery-grid-inline img:hover {
    transform: scale(1.05);
}

/* BBCode Editor Gallery Placeholder Button */
.editor-gallery-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--card-bg);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-light);
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.editor-gallery-add-btn i {
    font-size: 2rem;
    opacity: 0.6;
}

.editor-gallery-add-btn span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
}

.editor-gallery-add-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    border-style: solid;
}

.editor-gallery-add-btn:hover span, 
.editor-gallery-add-btn:hover i {
    color: white;
    opacity: 1;
}

/* Global Event Countdown Banner */
.event-countdown-banner {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: var(--shadow);
    display: none; /* Standardmäßig ausgeblendet, wird via JS aktiviert */
    animation: modalSlideUp 0.5s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.countdown-header {
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.countdown-item {
    background: var(--light-bg);
    padding: 12px;
    border-radius: 12px;
    min-width: 75px;
    border-bottom: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
    text-align: center;
}

.countdown-item:hover {
    transform: translateY(-5px);
}

.countdown-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1.1;
}

.countdown-text {
    display: block;
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 4px;
}

@media (max-width: 480px) {
    .countdown-grid { gap: 0.5rem; }
    .countdown-item { min-width: 65px; padding: 8px; }
    .countdown-number { font-size: 1.5rem; }
}

/* Floating Countdown Box Specific Styles */
.floating-countdown {
    position: fixed;
    top: 100px; /* Unter dem Header */
    right: 25px;
    z-index: 2500;
    background: var(--card-bg);
    border-right: 5px solid var(--primary-color);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    width: 260px;
    display: none; /* Wird via JS angezeigt */
    animation: slideInRight 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    max-height: 80vh;
    overflow-y: auto;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-countdown.has-ticker {
    top: 160px; /* Rutscht ca. 60px nach unten, wenn der Ticker aktiv ist */
}

.countdown-entry {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px dashed var(--border-color);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.countdown-entry:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.countdown-entry:hover {
    background: rgba(34, 197, 94, 0.05);
    border-radius: 8px;
}

.close-countdown {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-countdown:hover {
    color: #ef4444;
}

.floating-countdown .countdown-header {
    font-size: 0.85rem;
    margin-bottom: 12px;
    justify-content: flex-start;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.floating-countdown .countdown-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
}

.floating-countdown .countdown-item {
    min-width: 50px;
    padding: 6px;
    background: var(--light-bg);
}

.floating-countdown .countdown-number {
    font-size: 1.2rem;
}

/* Heute-Status Design */
.countdown-item.item-today {
    width: 100%;
    min-height: 52px; /* Entspricht der Höhe der Boxen mit Untertiteln */
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-color: var(--accent-color);
    background: var(--light-bg);
}

@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes tickerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .floating-countdown {
        top: auto;
        bottom: 20px;
        right: 10px;
        left: 10px;
        width: auto;
    }
}

/* Scroll Reveal Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
