
:root {
  --background-color: #ffffff;
  --text-color: #000000;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    background-color: var(--background-color);
    color: color(#000000); 
    line-height: 1.6;
}

.parallax-container {
    position: relative;
    overflow: hidden;  /*This is crucial */
}

#landing {
    height: 100vh;
    color: white;
    text-align: center;
    background-size: cover; /* Ensures the image covers the entire container */
    background-position: center; /* Centers the image */    
}

#landing .parallax-bg {
    background-image: url('images/Unterstand.webp');
}


/* Stile für den Container von Header und Logo im Landing-Bereich */
/* Stile für den Container von Header und Logo im Landing-Bereich mit CSS Grid */
.landing-header-container {
    width: 100%; /* Füllt die gesamte Bildschirmbreite */
    display: grid;
    /* Erstellt 3 Spalten: links | mitte (auto-breit) | rechts */
    grid-template-columns: 1fr auto 1fr; 
    align-items: center;
    gap: 30px; /* Abstand zwischen Logo und Text */
}

/* Weist das Logo der ersten Spalte zu und richtet es am Ende (rechts) dieser Spalte aus */
.landing-header-container .landing-logo {
    grid-column: 1;
    justify-self: end;
}

/* Weist den Header-Text der zweiten, mittigen Spalte zu */
.landing-header-container header {
    grid-column: 2;
}

/* Stile für das Logo im Landing-Bereich */
.landing-logo {
    width: 120px;  /* Breite des Logos für große Bildschirme */
    height: 120px; /* Höhe des Logos für große Bildschirme */
}


.landing-content {
    position: relative; /* Ensure content is above the parallax background */
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#landing-nav {
    position: absolute;
    bottom: 150px;
    left: 0;
    width: 100%;
}

#landing-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

#landing-nav ul li {
    margin: 0 15px;
}

#landing-nav ul li a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: bold;
}

#landing-nav ul li a:hover {
    text-decoration: none;
}

#sticky-nav {
    display: none;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--background-color);
    padding: 10px 0;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

#sticky-logo-btn {
    appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0 20px 0 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    order: -1;
}

.sticky-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 4px;
    box-sizing: border-box;
    object-fit: contain;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#sticky-logo-btn:hover .sticky-logo {
    transform: scale(1.1);
    background-color: rgba(0, 0, 0, 0.1);
}

#sticky-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin: 0;
}

#sticky-nav ul li {
    margin: 0 15px;
}

#mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1100;
    background-color: transparent;
    padding: 12px 20px;
    box-shadow: none;
    justify-content: flex-end;
    align-items: flex-start;
}

#scroll-to-top-btn {
    appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#scroll-to-top-btn:not(.scroll-to-top-hidden) {
    opacity: 1;
    pointer-events: auto;
}

.top-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    object-fit: contain;
}


#mobile-menu {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 0 12px;
    position: absolute;
    top: 52px;
    right: 20px;
    min-width: 200px;
}

#mobile-menu.open {
    max-height: 320px;
    padding-top: 16px;
    padding-bottom: 16px;
}

#mobile-menu-toggle {
    appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    width: 32px;
    height: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

#mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

#mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#mobile-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    padding: 10px 0;
    display: block;
}

#mobile-menu a:hover {
    color: #0073e6;
}

#mobile-nav .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 880px) {
    #landing-nav,
    #sticky-nav {
        display: none !important;
    }

    #mobile-nav {
        display: flex;
        flex-direction: column;
    }

    #landing {
        padding-top: 80px;
    }

    .landing-header-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .landing-header-container .landing-logo {
        justify-self: center;
    }
}

#sticky-nav ul li a {
    color: var(--text-color);
    text-decoration: underline;
    font-weight: bold;
}

#sticky-nav ul li a:hover {
    text-decoration: none;
}

#landing h1 {
    font-size: 3em; /* Vergrößert die Überschrift */
    margin-bottom: 10px;
}

#landing p {
    font-size: 1.5em; /* Vergrößert den Absatz */
}


section {
    padding: 40px 20px;
    margin: 0 auto;
    background-color: var(--background-color);
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

h1, h2, p {
    text-align: center;
}

ul {
  display: table;
  margin: 0 auto;
}

li {
  text-align: left;
}

p {
    color: var(--text-color); 
}

.separator-image {
    height: 300px; /* Passen Sie die Höhe nach Bedarf an */
    border-top: 5px solid #ffffff;
    border-bottom: 5px solid #ffffff;
}

.separator-image .parallax-bg {
    top: -50%;
    height: 140%;
}

.parallax-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%; /* Taller than the container to allow for scrolling */
    background-size: cover;
    background-position: center;
    will-change: transform;
    /*z-index: -1;  Ensures it stays behind the content */
}

#separator-spielplatz .parallax-bg {
    background-image: url('images/Spielplatz.webp');
    background-position: center; /* This will start the image from the top */
}

#separator-lenneufer .parallax-bg {
    background-image: url('images/Lenneufer.webp');
    background-position: center; /* This will keep the image centered (default) */
}

#separator-unterstand .parallax-bg {
    background-image: url('images/Unterstand.webp');
    background-position: center; /* This will start the image from the bottom */
}

.gallery-scroll-container {
    position: relative;
    display: flex;
    align-items: center;
}

.gallery-container {
    display: flex;
    overflow-x: auto; 
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    -webkit-overflow-scrolling: touch; /* Safari fix */
}

.gallery-container::-webkit-scrollbar { 
    display: none; /* Chrome, Safari, and Opera */
}

.gallery-container img {
    width: 280px; 
    height: 200px;
    object-fit: cover; 
    margin-right: 15px;
    border-radius: 8px; 
    cursor: pointer;
    transition: transform 0.2s ease; 
    flex-shrink: 0;
}

.gallery-container img:hover {
    transform: scale(1.05); 
}

.scroll-arrow {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--text-color);
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

@media (max-width: 768px) {
    .scroll-arrow {
        display: none; /* Hide arrows on mobile for swipe functionality */
    }
    #landing-nav {
        display: none;
    }
    #sticky-nav {
        display: none !important;
    }

    /* Final fix for header overflow */
    .landing-header-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 15px;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .landing-header-container .landing-logo {
        grid-column: auto;
        justify-self: auto;
        max-width: 80px; /* Smaller logo */
        height: auto;
        flex-shrink: 0;
    }
    
    .landing-header-container header {
        grid-column: auto; /* Reset grid properties */
        text-align: left;
    }

    #landing h1 {
        font-size: 2em; /* Adjust font size */
    }
}


form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #000000;
    background-color: #8087a0; 
    color: var(--text-color);
    border-radius: 8px;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    background-color: #8087a0;  
    color: var(--text-color);
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="number"],
form input[type="date"],
form input[type="time"],
form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #000000;
    color: #000000;
    border-radius: 4px;
}

form button {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

form button:hover {
    background-color: #0056b3;
}

/* Add calendar styles here */
#booking-calendar {
    display: flex;
    justify-content: center;
    padding: 20px 0; /* Fügt etwas vertikalen Abstand hinzu */
}

.flatpickr-calendar {
    font-size: 1.2rem; /* Increase the base font size */
    width: 100%; /* Make the calendar take more width */
    max-width: 800px;
}

.flatpickr-day {
    padding: 0.5em; /* Increase padding for day elements */
    line-height: 1.5; /* Adjust line height for better spacing */
}

/* Styling for available days */
.flatpickr-day.available-day {
    background-color: #4caf4fb7; /* Green */
    color: white;
    border-radius: 6px;
}

/* Styling for disabled (booked or unavailable) days */
.flatpickr-day.flatpickr-disabled {
    background-color: #f44336b7 !important; /* Red */
    color: #E0E0E0 !important;
    cursor: not-allowed;
    border-radius: 6px;
}

/* Styling for selected days */
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange {
    background-color: #2196F3;
    border-color: #2196F3;
}

#clear-selection-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px; /* Fügt etwas Abstand über dem Button hinzu */
}

#clear-selection-btn:hover {
    background-color: #0056b3;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: var(--background-color);
    color: var(--text-color);
    margin-top: 20px;
}

.footer-logo {
    width: 350px;
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.social-links {
  margin: 30px 0;
}

.instagram-icon {
  width: 40px;
  height: 40px;
  fill: #302c2c; /* Dezentes Dunkelgrau im Ruhezustand */
  transition: fill 0.3s ease, transform 0.2s ease;
  vertical-align: middle;
}

/* Effekt beim Drüberfahren mit der Maus */
.instagram-icon:hover {
  fill: #e1306c; /* Instagram Marken-Pink */
  transform: scale(1.15); /* Wird dezent größer */
}


#lightbox-modal {
    display: none; /* Initially hidden */
    position: fixed; /* Stay on top */
    z-index: 1000; /* High z-index to be on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scrolling if needed */
    background-color: rgba(0, 0, 0, 0.9); /* Black background with transparency */
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#lightbox-img {
    max-width: 90%;
    max-height: 80%;
    display: block;
    margin: auto;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

#lightbox-img.zoomed {
    max-width: none;
    max-height: none;
    transform: scale(1.5);
    cursor: zoom-out;
}

#lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 10px;
}

#prev-btn,
#next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(128, 128, 128, 0.5); /* Semi-transparent gray */
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 5px;
}

#prev-btn {
    left: 10px;
}

#next-btn {
    right: 10px;
}

#calendar {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#booking-message, #contact-message, #selected-dates {
    text-align: center;
    margin-top: 20px;
}

/* --- FAQ BEREICH --- */
.faq-section {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.faq-container {
  border-top: 1px solid #eaeaea;
}

.faq-item {
  border-bottom: 1px solid #eaeaea;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  text-align: left;
  padding: 20px 10px;
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
}

/* Hover-Effekt für die Frage */
.faq-question:hover {
  color: #0055a4; /* Nutzt dein gängiges Blau */
}

/* Das Plus-Symbol über CSS generieren */
.faq-question::after {
  content: '+';
  font-size: 1.4em;
  color: #0055a4;
  transition: transform 0.3s ease;
  font-weight: bold;
}

/* Wenn das Item aktiv ist: Farbe ändern und Plus zu Minus drehen */
.faq-item.active .faq-question {
  color: #0055a4;
}
.faq-item.active .faq-question::after {
  transform: rotate(45deg); /* Dreht das Plus-Symbol leicht, sieht elegant aus */
}

/* Die Antwort standardmäßig verstecken */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out; /* Sanfte Aufklapp-Animation */
  background-color: #f9f9f9;
  border-radius: 5px;
}

.faq-answer p {
  padding: 0 15px 15px 15px;
  margin: 0;
  color: #555;
  line-height: 1.6;
}

/* --- FORMULAR MELDUNGEN --- */
#booking-message, 
#contact-message {
  margin-top: 15px;
  padding: 12px 15px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
}

/* Rotes Design für Fehlermeldungen */
.error {
  color: #d32f2f; /* Kräftiges rotes Textformat */
  background-color: #fde0dc; /* Heller, rötlicher Hintergrund */
  border: 1px solid #f9bdbb; /* Zarter roter Rahmen */
}

/* Grünes Design für Erfolgsmeldungen (z.B. "Vielen Dank!") */
.success {
  color: #2e7d32; 
  background-color: #e8f5e9; 
  border: 1px solid #c8e6c9; 
}

/* Blaues Design für Info-Meldungen (z.B. "Wird verarbeitet...") */
.info {
  color: #0055a4; /* Euer Pfadfinder-Blau */
  background-color: #e6f0fa; 
  border: 1px solid #b3d4f0; 
}
