/* ======== ALLGEMEINE EINSTELLUNGEN ======== */
:root {
    --primary-color: #00796b; 
    --accent-color: #f9a825;  
    --secondary-color: #f8f9fa; 
    --text-color: #333;
    --heading-color: #2c3e50; 
    --white: #ffffff;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: var(--text-color);
    scroll-behavior: smooth; 
    
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

main {
    flex-grow: 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--heading-color);
}
h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* ======== HEADER & NAVIGATION ======== */
.header {
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: sticky; 
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center; 
}

.nav li {
    margin-left: 25px;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 5px 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent; 
}

.nav a:hover, .nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* ======== SPRACHUMSCHALTER (DESKTOP) ======== */
.lang-switcher-li {
    margin-left: 15px;
    padding-left: 15px;
    border-left: 2px solid #ddd;
    line-height: 1;
}

.lang-switcher-li:first-of-type {
    margin-left: 30px; 
    border-left: none;
    padding-left: 0;
}

.lang-switcher-li a {
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 8px;
    border-bottom: none; 
}

.lang-switcher-li a:hover {
    color: var(--primary-color);
    background-color: var(--secondary-color);
    border-bottom: none;
    border-radius: 5px;
}

.lang-switcher-li a.lang-active {
    color: var(--primary-color);
    background-color: var(--secondary-color);
    border-radius: 5px;
    border-bottom: none;
}


/* ======== HAMBURGER MENÜ-BUTTON (Desktop: Versteckt) ======== */
.menu-toggle {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101; 
}
.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* ======== HERO-BEREICH (BANNER) ======== */
.hero {
    height: 70vh; 
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('img/header02.jpeg') no-repeat center center/cover;
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.2rem;
    color: var(--white);
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.cta-button {
    background: var(--accent-color);
    color: var(--heading-color); 
    padding: 14px 30px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 30px; 
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background: #ffb300; 
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ======== INHALTSBEREICHE ======== */
.content-section, .gallery-section, .contact-section, .activity-section, .map-section {
    padding: 80px 0;
}

.intro-text {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

/* ======== FEATURES (CARD-DESIGN) ======== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

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

.feature-card ul {
    list-style: '✓'; 
    padding-left: 20px;
}

.feature-card li {
    margin-bottom: 10px;
}

/* ======== PREISRECHNER ======== */
.pricing-calculator {
    margin-top: 60px;
    text-align: left;
    background: var(--secondary-color); 
    padding: 30px;
    border-radius: 8px;
}

.pricing-calculator h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.calculator-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    height: 46px; 
    font-family: inherit; 
    background-color: #fff;
}

.form-group input[type=number]::-webkit-inner-spin-button, 
.form-group input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
.form-group input[type=number] {
    -moz-appearance: textfield; /* Für Firefox */
}

.calculator-results .result-line {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.calculator-results .result-divider {
    border: 0;
    border-top: 2px solid var(--primary-color);
    margin: 15px 0;
    opacity: 0.5;
}

.calculator-results .result-line.total {
    font-size: 1.5rem;
    color: var(--heading-color);
}

.pricing-calculator .tax-info {
    font-size: 0.9rem;
    color: #555;
    margin-top: 20px;
    text-align: center;
    margin-bottom: 0;
}

.pricing-calculator .tax-info a {
    color: var(--primary-color);
    font-weight: 600;
}


/* ======== GALERIE ======== */
.gallery-section {
    background: var(--secondary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer; 
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* ======== UMGEBUNG / AKTIVITÄTEN ======== */
.activity-section {
    padding: 80px 0;
    background: var(--white); 
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.activity-card {
    background: var(--white);
    border-radius: 8px; 
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    overflow: hidden; 
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.activity-card img {
    width: 100%;
    height: 200px; 
    object-fit: cover; 
}

.activity-content {
    padding: 25px;
}

.activity-content h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.activity-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ======== LAGE & KARTE (Google Maps) ======== */
.map-section {
    padding: 80px 0;
    background: var(--secondary-color); 
}

.map-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; 
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ======== KONTAKT ======== */
.contact-section {
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.contact-info a:hover {
    text-decoration: underline;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; 
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(0,121,107,0.3); 
}

/* ======== RECHTLICHE SEKTIONEN (Impressum/Datenschutz) ======== */
.legal-section {
    padding: 80px 0;
    background: var(--white);
}
.legal-section h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}
.legal-section h2 {
    text-align: left;
    font-size: 2.0rem; 
    margin-bottom: 20px;
}
.legal-section h2::after {
    left: 0; 
    transform: none;
    width: 50px;
}
.legal-section h3 {
    font-size: 1.4rem;
    color: var(--heading-color);
    margin-top: 30px;
}
.legal-section h4 {
    font-size: 1.1rem;
    color: var(--heading-color);
    margin-top: 25px;
}
.legal-section .container {
    max-width: 800px; 
}


/* ======== 404 ERROR SEITE ======== */
.error-section {
    padding: 80px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.error-title {
    font-size: 10rem; 
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}
.error-section h2 {
    text-align: center; 
    font-size: 2.5rem;
    margin-top: 10px;
}
.error-section h2::after {
    display: none; 
}
.error-section .intro-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* ======== FOOTER ======== */
.footer {
    background: var(--heading-color);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    flex-shrink: 0; 
}

.footer a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}
.footer a:hover {
    text-decoration: underline;
}


/* =================================
LIGHTBOX-GALERIE (MODAL)
=================================
*/
.lightbox-modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    display: block;
    max-width: 85%;
    max-height: 85vh; 
    animation-name: zoomIn;
    animation-duration: 0.4s;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem; 
    color: #f1f1f1;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    user-select: none; 
    padding: 16px;
    z-index: 1001;
}

.lightbox-prev {
    left: 15px;
}

.lightbox-next {
    right: 15px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #bbb;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}


/* =================================
FADE-IN ANIMATION BEIM SCROLLEN
=================================
*/
.hidden-on-load {
    opacity: 0;
    transform: translateY(30px); 
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hidden-on-load.is-visible {
    opacity: 1;
    transform: translateY(0); 
}

/* =================================
NEU: COOKIE CONSENT BANNER
=================================
*/
.cookie-banner {
    display: none; /* JS macht es sichtbar */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--heading-color);
    color: var(--white);
    padding: 20px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
    z-index: 2000;
    box-sizing: border-box;
    
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.cookie-banner p {
    margin: 0;
    flex-grow: 1;
    font-size: 0.9rem;
}

.cookie-banner p a {
    color: var(--white);
    font-weight: 600;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0; /* Verhindert, dass Buttons schrumpfen */
}

.cookie-btn {
    background: var(--accent-color);
    color: var(--heading-color);
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 30px; 
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap; /* Verhindert Umbruch */
}

.cookie-btn.decline {
    background: #aaa;
    color: #fff;
}


/* =================================
RESPONSIVE DESIGN (Mobilgeräte)
=================================
*/
@media (max-width: 768px) {

    .container {
        padding: 0 15px; 
    }

    .content-section, 
    .gallery-section, 
    .contact-section, 
    .activity-section, 
    .map-section, 
    .legal-section {
        padding: 50px 0;
    }

    h2 {
        font-size: 2rem;
    }

    /* ======== Header & Mobile Navigation ======== */
    .header .container {
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
        height: 70px; 
        padding-top: 0;
        padding-bottom: 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 70px; 
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }

    .nav.nav-open {
        max-height: 500px; 
    }

    .nav ul {
        flex-direction: column;
        align-items: flex-start; 
        width: 100%;
        padding: 10px 0; 
    }

    .nav li {
        margin-left: 0;
        margin-bottom: 0;
        width: 100%;
    }

    .nav a {
        padding: 15px 20px; 
        width: 100%;
        display: block;
        box-sizing: border-box; 
        border-bottom: 1px solid var(--secondary-color);
    }
    .nav a:hover {
        background: var(--secondary-color);
        border-bottom-color: var(--secondary-color);
    }

    /* ======== SPRACHUMSCHALTER (MOBIL) ======== */
    .lang-switcher-li {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 10px; 
    }
    .lang-switcher-li a {
        padding: 15px 20px !important;
        border-bottom: 1px solid var(--secondary-color) !important;
    }
    .lang-switcher-li a.lang-active {
        background-color: var(--secondary-color);
    }
    

    /* ======== Hero-Banner ======== */
    .hero {
        height: 60vh; 
    }
    .hero-content h1 {
        font-size: 2.2rem; 
    }
    .hero-content p {
        font-size: 1.1rem;
    }

    /* ======== Layout-Raster (auf 1 Spalte ändern) ======== */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px;
    }
    
    /* ======== PREISRECHNER MOBILE ======== */
    .pricing-calculator {
        margin-top: 40px;
        padding: 25px 20px;
    }
    .calculator-form {
        grid-template-columns: 1fr; /* 1 Spalte auf Mobile */
        gap: 15px;
    }
    .calculator-results .result-line.total {
        font-size: 1.3rem;
    }

    /* ======== Rechtliche Seiten Mobile ======== */
    .legal-section h1 {
        font-size: 2.0rem;
    }
    .legal-section h2 {
        font-size: 1.6rem;
    }

    /* ======== Lightbox Mobile ======== */
    .lightbox-content {
        max-width: 90%; 
    }
    .lightbox-close {
        font-size: 30px;
        top: 15px;
        right: 25px;
    }
    .lightbox-prev,
    .lightbox-next {
        font-size: 2.5rem;
        padding: 10px;
    }
    .lightbox-prev {
        left: 5px;
    }
    .lightbox-next {
        right: 5px;
    }

    /* ======== COOKIE BANNER MOBILE ======== */
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
}