/* ================================
   Farbvariablen für Light Theme
   ================================ */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --header-bg: #f5f5f5;
    --nav-bg: #e0e0e0;
    --nav-hover: #d0d0d0;
    --submenu-bg: #f0f0f0;
    --submenu-hover: #e5e5e5;
    --map-bg: #f8f8f8;
    --button-bg: #4CAF50;
    --button-text: #ffffff;
    --button-hover: #45a049;
    --link-color: #0066cc;
 	--news-btn-bg: #4CAF50;
	--news-btn-text: #ffffff;
	--news-btn-hover: #45a049;
  	--edit-btn-bg: #ffc107;      /* Gelb */
	--edit-btn-text: #000000;    /* Schwarz */
	--edit-btn-hover: #e0a800;   /* dunkleres Gelb */


}

/* ================================
   Farbvariablen für Dark Theme
   ================================ */
[data-theme="dark"] {
    --bg-color: #1f1f1f;
    --text-color: #e0e0e0;
    --header-bg: #333333;
    --nav-bg: #222222;
    --nav-hover: #444444;
    --submenu-bg: #444444;
    --submenu-hover: #555555;
    --map-bg: #333333;
    --button-bg: #6c63ff;
    --button-text: #ffffff;
    --button-hover: #5a52d5;
    --link-color: #28a745;
  	--footer-link-color: #28a745;
   	--news-btn-bg: #34d058;   /* helleres Grün */
    --news-btn-text: #000000; /* Schwarz für guten Kontrast */
    --news-btn-hover: #2ea043;
  	--edit-btn-bg: #ffdd57;      /* helleres Gelb */
	--edit-btn-text: #000000;    /* Schwarz */
	--edit-btn-hover: #e6c84f;   /* dunkleres Gelb */


}

/* ================================
   Impressum-Layout
   ================================ */
.impressum-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

    .impressum-container h2 {
        text-align: center;
        margin-bottom: 30px;
        color: var(--link-color);
    }

    .impressum-container h3 {
        margin-top: 30px;
        color: var(--link-color);
    }

    .impressum-container a {
        color: var(--link-color);
        text-decoration: none;
    }

        .impressum-container a:hover {
            text-decoration: underline;
        }


/* ================================
   Theme Slider
   ================================ */
.theme-slider-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    background: var(--button-bg);
    color: var(--button-text);
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#theme-slider {
    -webkit-appearance: none;
    width: 100px;
    height: 6px;
    border-radius: 5px;
    background: var(--nav-bg);
    outline: none;
    cursor: pointer;
}

    /* Schiebeknopf */
    #theme-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: var(--button-bg);
        border: 2px solid var(--button-text);
        cursor: pointer;
    }

    #theme-slider::-moz-range-thumb {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: var(--button-bg);
        border: 2px solid var(--button-text);
        cursor: pointer;
    }

/* ================================
   Farbvariablen für Colorful Theme
   ================================ */
[data-theme="colorful"] {
    --bg-color: linear-gradient(135deg, #ff9a9e, #fad0c4, #fad390);
    --text-color: #2d3436; /* dunkle Schrift für Kontrast */
    --header-bg: rgba(255,255,255,0.7);
    --nav-bg: rgba(255,255,255,0.6);
    --nav-hover: rgba(255,255,255,0.9);
    --submenu-bg: rgba(255,255,255,0.8);
    --submenu-hover: rgba(255,255,255,0.95);
    --map-bg: rgba(255,255,255,0.5);
    --button-bg: #e84393; /* Pink */
    --button-text: #ffffff;
    --button-hover: #d63384; /* etwas dunkleres Pink */
    /* Extras nur im bunten Theme */
    background-image: url("images/sport_background.jpg");
    background-size: cover;
    background-attachment: fixed;
}


    .theme-toggle:hover {
        background-color: var(--button-hover);
        transform: translateY(-2px); /* leichter Hover-Effekt */
        box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    }

    .theme-toggle:active {
        transform: translateY(0); /* Klick-Effekt */
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

.theme-icon {
    margin-right: 8px;
    font-size: 18px;
}

/* Handy-Ansicht */
@media (max-width: 768px) {
    #themeText {
        display: none;
    }
    /* Nur Icon anzeigen */
    .theme-toggle {
        padding: 10px;
        width: 50px;
        height: 50px;
        border-radius: 50%; /* Kreisförmig */
        justify-content: center;
    }
}

/* ================================
   Grundlayout: Body, Header, Nav
   ================================ */
body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    background-color: var(--header-bg);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    header .logo {
        flex: 0 0 auto;
    }

    header h1 {
        flex: 1;
        text-align: center;
        margin: 0;
        font-size: 36px;
        color: var(--text-color);
    }

    header img {
        width: 50px;
        height: auto;
        margin-right: 15px;
    }

nav {
    display: flex;
    justify-content: space-around;
    background-color: var(--nav-bg);
    padding: 10px;
}

    nav a {
        color: var(--text-color);
        text-decoration: none;
        padding: 10px;
        transition: background-color 0.3s;
    }

        nav a:hover {
            background-color: var(--nav-hover);
        }

.content {
    padding: 20px;
}

/* ================================
   Submenü
   ================================ */
.submenu {
    display: none;
    margin-top: 20px;
    padding: 10px;
    background-color: var(--submenu-bg);
}

    .submenu a {
        display: block;
        color: var(--text-color);
        text-decoration: none;
        padding: 10px;
    }

        .submenu a:hover {
            background-color: var(--submenu-hover);
        }

/* ================================
   Karte
   ================================ */
#map {
    width: 100%;
    height: 100%;
    background-color: var(--map-bg);
}

/* Container der Karte */
#mapContainer {
    width: 100%;
    height: 500px; /* Desktop-Höhe */
    margin: 20px 0;
    position: relative;
}
/* Mobile Ansicht */
@media (max-width: 768px) {
    #mapContainer {
        height: 70vh;
    }
        /* 70% der Bildschirmhöhe */
        #mapContainer.fullscreen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 9999;
            margin: 0;
            border-radius: 0;
            background: white;
        }

            #mapContainer.fullscreen #map {
                width: 100%;
                height: 100%;
            }

    #closeMap {
        display: none;
        position: fixed;
        top: 30px;
        right: 10px;
        z-index: 10001;
        background: rgba(255,255,255,0.9);
        border: none;
        padding: 8px 12px;
        font-size: 18px;
        cursor: pointer;
        border-radius: 4px;
    }

    .mobile-only {
        display: block;
    }
}

/* ================================
   Filter (Dropdowns)
   ================================ */
.filter-container {
    display: flex;
    flex-wrap: wrap; /* Umbruch wenn zu lang */
    gap: 15px;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 15px auto;
    padding: 0 10px;
    box-sizing: border-box;
    position: relative;
    z-index: 1100; /* Über der Karte */
}

    .filter-container label {
        margin-right: 5px;
        white-space: nowrap; /* Kein Umbruch im Label */
        font-size: 1rem;
    }

    .filter-container select {
        min-width: 150px;
        max-width: 220px;
        flex: 1 1 auto;
        padding: 5px 8px;
        border-radius: 5px;
        font-size: 1rem;
    }
/* Mobile Ansicht */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

        .filter-container label,
        .filter-container select {
            width: 100%;
            margin-right: 0;
        }
}

/* ================================
   Sektionen mit Bild + Text
   ================================ */
.section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background-color: rgba(0,123,255,0.05);
    border-radius: 8px;
}

    .section img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

        .section img:hover {
            transform: scale(1.03);
        }

.section-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .section-text h2 {
        margin: 0;
        font-size: 24px;
        color: var(--text-color);
    }

    .section-text p {
        margin: 0;
        line-height: 1.5;
        color: var(--text-color);
    }

/* Mobile: 1 Spalte */
@media (max-width: 768px) {
    .section {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Landing Page (Start)
   ================================ */
.landing {
    position: relative;
    height: 100vh; /* Vollbild */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    color: var(--text-color);
    background-color: var(--bg-color);
}
    /* Hintergrund-Logo */
    .landing::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-image: url('../../images/Logo_Hintergrund.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        width: 80%;
        height: 80%;
        opacity: 0.1; /* Transparent */
        z-index: 0;
    }

    .landing h1 {
        position: relative;
        font-size: 3rem;
        margin: 0;
        z-index: 1;
    }

    .landing p.highlight {
        position: relative;
        margin-top: 20px;
        font-size: 1.5rem;
        font-weight: bold;
        padding: 10px 20px;
        border-radius: 8px;
        background-color: rgba(128,128,128,0.2);
        color: var(--text-color);
        z-index: 1;
    }
/* Hell/Dunkel Anpassung */
[data-theme="light"] .landing-banner::before {
    opacity: 0.6;
}

[data-theme="dark"] .landing p.highlight {
    background-color: rgba(255,255,255,0.2);
}
/* Mobile: kleinere Schrift */
@media (max-width: 768px) {
    .landing h1 {
        font-size: 2rem;
    }

    .landing p.highlight {
        font-size: 1.2rem;
    }
}

/* ================================
   Animation (Fade-In)
   ================================ */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing h1, .landing p.highlight {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.landing h1 {
    animation-delay: 0.3s;
}

.landing p.highlight {
    animation-delay: 0.8s;
}

/* ================================
   Banner
   ================================ */
.landing-banner {
    background-color: rgba(255,255,255,1);
    text-align: center;
    padding: 20px 40px;
    margin: 50px auto;
    border-radius: 12px;
    max-width: 900px;
}

.highlight-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #8B0000; /* Rot */
    letter-spacing: 1px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    display: inline-block;
}

[data-theme="dark"] .highlight-text {
    color: #28a745;
}
/* Grün im Dark Mode */
[data-theme="dark"] .landing-banner {
    background-color: rgba(50,50,50,0.2);
}

/* ================================
   Content Sektionen (Bild + Text)
   ================================ */
.content-section {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.section-image {
    width: 400px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.section-text {
    flex: 1;
    min-width: 250px;
}

    .section-text h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .section-text p {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 10px;
    }

/* ================================
   Timeline
   ================================ */
.history-timeline {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
}

    .history-timeline h2 {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 40px;
    }

.timeline-item {
    margin-bottom: 30px;
    padding-left: 10px;
    border-left: 3px solid #28a745; /* Grüne Linie */
}

    .timeline-item h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
        color: #28a745; /* Jahr */
    }

    .timeline-item ul {
        list-style: disc;
        padding-left: 20px;
    }

        .timeline-item ul li {
            margin-bottom: 8px;
            font-size: 1rem;
        }
/* Links Timeline */
.history-timeline a {
    color: #8B0000;
    text-decoration: underline;
}

[data-theme="dark"] .history-timeline a {
    color: #28a745;
}

/* ================================
   Kontaktformular – Container
   ================================ */
.contact-container {
    max-width: 600px; /* Begrenzte Breite für bessere Lesbarkeit */
    margin: 40px auto; /* Zentriert mit Abstand oben/unten */
    padding: 30px; /* Innenabstand */
    background: var(--content-bg, #f9f9f9); /* Hintergrundfarbe, anpassbar über CSS-Variablen */
    border-radius: 12px; /* Abgerundete Ecken */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* Schatten für Tiefe */
    font-family: 'Montserrat', sans-serif; /* Einheitliche Schrift */
    color: var(--text-color, #333); /* Standardtextfarbe */
}

    /* ================================
   Überschrift
   ================================ */
    .contact-container h2 {
        margin-bottom: 15px;
        font-size: 28px;
        text-align: center;
        color: black;
    }

    /* ================================
   Labels (z. B. für Datei-Upload)
   ================================ */
    .contact-container label {
        color: black;
        font-weight: bold;
    }

    /* ================================
   Einleitungstext
   ================================ */
    .contact-container p {
        margin-bottom: 20px;
        text-align: center;
        color: var(--text-color-secondary, #555); /* Sekundäre Textfarbe */
    }

    /* ================================
   Formularstruktur
   ================================ */
    .contact-container form {
        display: flex;
        flex-direction: column; /* Felder untereinander */
        gap: 15px; /* Abstand zwischen Feldern */
    }

    /* ================================
   Eingabefelder & Textarea
   ================================ */
    .contact-container input,
    .contact-container textarea,
    .contact-container select {
        padding: 12px 15px;
        border-radius: 8px;
        border: 1px solid var(--border-color, #ccc);
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
        transition: all 0.3s ease;
        background: var(--input-bg, #fff);
        color: black;
    }

        /* ================================
   Fokus-Effekt für Felder
   ================================ */
        .contact-container input:focus,
        .contact-container textarea:focus {
            outline: none;
            border-color: var(--accent-color, #007bff); /* Blaue Umrandung bei Fokus */
            box-shadow: 0 0 5px rgba(0,123,255,0.3); /* Leichter Glow-Effekt */
        }

    /* ================================
   Senden-Button
   ================================ */
    .contact-container button {
        padding: 12px;
        border: none;
        border-radius: 8px;
        background: var(--accent-color, #007bff); /* Primärfarbe */
        color: #fff;
        font-size: 18px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        /* ================================
   Hover-Effekt für Button
   ================================ */
        .contact-container button:hover {
            background: var(--accent-color-hover, #0056b3); /* Dunkler beim Hover */
        }

    /* ================================
   Hinweistext für Dateiupload
   ================================ */
    .contact-container small {
        font-size: 12px;
        color: black;
    }

/* ================================
   Responsive Anpassung für Mobilgeräte
   ================================ */
@media (max-width: 640px) {
    .contact-container {
        padding: 20px;
        margin: 20px;
    }
}






[data-theme="dark"] .kontaktbereich a:not(.btn) {
    color: #ffcc00 !important;
}




/* ================================
   Impressum-Optimierung
   ================================ */
.impressum-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 2rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

[data-theme="dark"] .impressum-container {
    background-color: #2a2a2a;
    box-shadow: none;
}

.impressum-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--link-color);
}

.impressum-container h3 {
    margin-top: 2rem;
    font-size: 1.2rem;
    color: var(--link-color);
}

.impressum-container p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.impressum-container a {
    color: var(--link-color);
    text-decoration: none;
}

    .impressum-container a:hover {
        text-decoration: underline;
    }





.file-link {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
}
.file-link:hover {
  color: var(--button-bg);
  text-decoration: underline;
}





.panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.panel.open {
  max-height: 1000px; /* groß genug für den Inhalt */
}



.restore-btn {
  background-color: #28a745; /* sattes Grün */
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  margin-right: 8px;
  display: inline-block;
}

.restore-btn:hover {
  background-color: #218838; /* dunkleres Grün beim Hover */
}




footer a {
  color: var(--footer-link-color);
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--button-bg); /* z. B. grün beim Hover */
  text-decoration: underline;
}

/* ================================
   News-Button (Admin Bereich)
   ================================ */
.news-create-btn {
    background-color: var(--news-btn-bg);
    color: var(--news-btn-text);
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.news-create-btn:hover {
    background-color: var(--news-btn-hover);
    transform: translateY(-2px);
}

.news-create-btn:active {
    transform: translateY(0);
}

/* ================================
   Bearbeiten-Button (Admin Bereich)
   ================================ */
.edit-btn {
    background-color: var(--edit-btn-bg);
    color: var(--edit-btn-text);
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-right: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.edit-btn:hover {
    background-color: var(--edit-btn-hover);
    transform: translateY(-2px);
}

.edit-btn:active {
    transform: translateY(0);
}


/* ================================
   News Cards (öffentliche Seite)
   ================================ */
.card {
    background-color: var(--submenu-bg);
    color: var(--text-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.card h3 {
    margin-top: 0;
    color: var(--link-color);
}

.card small {
    color: var(--text-color);
    opacity: 0.8;
}

.card img {
    margin-top: 10px;
    border-radius: 6px;
    max-width: 200px;
    height: auto;
}

/* Pagination */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.page-btn.active {
    background: var(--link-color);
    color: #ffffff;
    pointer-events: none;
}

.page-dots {
    display: inline-block;
    padding: 8px 10px;
    color: var(--text-color);
    opacity: 0.7;
}


.page-btn {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 5px;
    background: var(--button-bg);
    color: var(--button-text);
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.page-btn:hover {
    background: var(--button-hover);
}

/* News Cards */
.card {
    background-color: var(--submenu-bg);
    color: var(--text-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card img {
    max-width: 200px;
    border-radius: 6px;
    margin-top: 10px;
}

.news-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--link-color);
}
