/* --- GRUNDEINSTELLUNGEN --- */
:root {
    --primary-color: #006d77;
    --secondary-color: #83c5be;
    --accent-color: #edf6f9;
    --text-dark: #2d3436;
    --text-light: #fff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Playfair+Display:wght@700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

/* Scroll Offset für Sticky Header */
section, footer, #lage, #preise, #wohnung, #willkommen, #links, #umgebung, #reviews {
    scroll-margin-top: 100px;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- NAVIGATION --- */
.navbar {
    background: #fff; 
    height: 80px; 
    display: flex; 
    justify-content: center;
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
    height: 100%; 
}

/* LOGO CONTAINER */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%; 
    padding: 5px 0; 
}

/* LOGO BILD */
.navbar .logo img {
    height: auto;        
    max-height: 70px;    
    width: auto;         
    max-width: 250px;    
    object-fit: contain; 
}

.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li { margin-left: 20px; }
.nav-links a {
    text-decoration: none; color: var(--text-dark); font-weight: 600; transition: color 0.3s;
}
.nav-links a:hover { color: var(--primary-color); }

.burger { display: none; cursor: pointer; }
.burger div {
    width: 25px; height: 3px; background-color: var(--text-dark); margin: 5px; transition: all 0.3s ease;
}

/* --- SIDE BUTTONS (Floating am rechten Rand) --- */
.side-buttons {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.side-btn {
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 15px;
    text-decoration: none;
    border-radius: 5px 0 0 5px;
    box-shadow: -2px 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: var(--font-body);
}

.side-btn:not(.only-icon):hover {
    background-color: var(--secondary-color);
    padding-right: 25px; 
}

.side-btn .icon {
    font-size: 1.4rem;
}

.side-btn .text {
    margin-left: 10px;
    font-size: 0.95rem;
    white-space: nowrap; 
}

.side-btn.only-icon {
    padding: 12px;
    justify-content: center;
}

.side-btn.only-icon:hover {
    background-color: var(--secondary-color);
    padding-right: 12px; 
}

/* --- HERO --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('banner.jpg');
    background-size: cover; background-position: center; height: 60vh;
    display: flex; justify-content: center; align-items: center; text-align: center;
    color: #fff; text-shadow: 1px 1px 10px rgba(0,0,0,0.7); scroll-margin-top: 100px;
}

.hero h1 { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 10px; }

.hero-sub {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.btn-primary {
    display: inline-block; background: var(--primary-color); color: #fff;
    padding: 12px 30px; border-radius: 5px; text-decoration: none;
    margin-top: 20px; font-weight: 600; transition: transform 0.2s, background 0.3s;
    border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--secondary-color); transform: translateY(-2px); }

/* --- SECTIONS --- */
.section { padding: 60px 0; text-align: center; }
.section h2 { font-family: var(--font-heading); font-size: 2.2rem; margin-bottom: 30px; color: var(--primary-color); }
.bg-light { background-color: var(--accent-color); }
.intro-text { font-size: 1.1rem; max-width: 800px; margin: 0 auto; }

.info-box {
    background-color: #fff; border-left: 5px solid var(--primary-color);
    padding: 20px; margin: 40px auto 0; max-width: 800px; text-align: left;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* --- SLIDESHOW (Wohnung) --- */
.wohnung-text { max-width: 800px; margin: 0 auto 40px auto; text-align: left; font-size: 1.05rem; line-height: 1.8; }
.slideshow-container {
    max-width: 800px; position: relative; margin: auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); border-radius: 5px; overflow: hidden; background: #000;
}
.mySlides { display: none; }
.mySlides img { width: 100%; height: 500px; object-fit: cover; cursor: pointer; vertical-align: middle; }
.prev, .next {
    cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px; margin-top: -22px;
    color: white; font-weight: bold; font-size: 18px; transition: 0.6s ease;
    border-radius: 0 3px 3px 0; user-select: none; background-color: rgba(0,0,0,0.3);
}
.next { right: 0; border-radius: 3px 0 0 3px; }
.prev { left: 0; border-radius: 3px 0 0 3px; }
.prev:hover, .next:hover { background-color: rgba(0,0,0,0.8); }
.text {
    color: #f2f2f2; font-size: 15px; padding: 8px 12px; position: absolute; bottom: 0;
    width: 100%; text-align: center; background: rgba(0,0,0,0.6);
}
.numbertext {
    color: #f2f2f2; font-size: 12px; padding: 8px 12px; position: absolute; top: 0;
    background: rgba(0,0,0,0.3); border-bottom-right-radius: 5px;
}
.fade { animation-name: fade; animation-duration: 1.5s; }
@keyframes fade { from {opacity: .4} to {opacity: 1} }

/* --- UMGEBUNG GRID --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto 0;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 250px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 10px;
    font-size: 0.9rem;
}

/* --- PREISTABELLE --- */
.price-table {
    max-width: 800px; margin: 0 auto; border: 1px solid #ddd;
    border-radius: 8px; overflow: hidden; background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.price-row {
    display: grid; grid-template-columns: 2fr 1fr 1fr; padding: 20px;
    border-bottom: 1px solid #eee; align-items: center; text-align: center;
}
.price-row:last-child { border-bottom: none; }
.price-row.header {
    background-color: var(--primary-color); color: #fff; font-weight: 600;
    text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px;
}

/* HIER IST DIE ÄNDERUNG: text-align: center für die Webansicht */
.season-name { 
    font-size: 1.1rem; 
    color: var(--primary-color); 
    text-align: center; /* War vorher 'left' */
}
.price-tag { font-weight: bold; font-size: 1.2rem; color: var(--text-dark); }
.season-name small { display: block; color: #666; font-weight: normal; margin-top: 5px; }

/* --- REVIEWS (GÄSTEBUCH) --- */
.review-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* --- KARTE --- */
.map-container {
    margin-top: 30px; border-radius: 10px; overflow: hidden; height: 450px;
    background-color: #e0e0e0; position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.map-container iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-privacy-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center; width: 80%; max-width: 500px; padding: 20px;
    background: rgba(255, 255, 255, 0.95); border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.map-privacy-overlay h3 { margin-bottom: 10px; color: var(--primary-color); }

/* --- LINKS GRID (FIXED) --- */
.link-grid-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px; text-align: left; max-width: 1000px; margin: 0 auto;
}
.link-category {
    background: #fdfdfd; padding: 25px; border-radius: 8px;
    border: 1px solid #eee; transition: transform 0.3s, box-shadow 0.3s;
}
.link-category:hover {
    transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--secondary-color);
}

.link-category h3 {
    font-size: 1.1rem; 
    color: var(--primary-color); 
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color); 
    padding-bottom: 10px;
    line-height: 1.4;       
    height: 4.5rem;         
    display: flex;          
    align-items: flex-end;  
}

.link-list { list-style: none; padding: 0; }
.link-list li { margin-bottom: 10px; }
.link-list a {
    text-decoration: none; color: #555; font-weight: 600;
    transition: color 0.2s, padding-left 0.2s; display: block;
}
.link-list a:hover { color: var(--primary-color); padding-left: 5px; }

/* --- FOOTER & KONTAKT FORMULAR --- */
footer {
    background: var(--text-dark);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
footer a { color: var(--secondary-color); text-decoration: none; }
footer a:hover { text-decoration: underline; color: #fff; }

.contact-wrapper {
    display: flex; flex-wrap: wrap; justify-content: center;
    align-items: flex-start; gap: 40px; margin-top: 40px; text-align: left;
}
.contact-info, .contact-form-container { flex: 1; min-width: 300px; max-width: 500px; width: 100%; }

.contact-card {
    background: rgba(255,255,255,0.1); padding: 30px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1); height: 100%;
}
.contact-card h3 { color: var(--secondary-color); margin-bottom: 20px; }

.contact-form {
    background: #fff; padding: 30px; border-radius: 10px; color: #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.antispam { display: none !important; }

.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 15px; border: 1px solid #ccc; border-radius: 5px;
    font-family: var(--font-body); font-size: 1rem;
    color: #333 !important; background-color: #fff !important;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 109, 119, 0.2);
}
.footer-bottom {
    margin-top: 50px; border-top: 1px solid #444; padding-top: 20px;
    font-size: 0.9rem; color: #aaa;
}

/* --- MODAL / LIGHTBOX (Vergrößerung) --- */
.modal {
    display: none;
    position: fixed; z-index: 2000; padding-top: 50px; left: 0; top: 0;
    width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.95);
}
.modal-content {
    position: relative; background-color: #fefefe; margin: auto; padding: 0;
    width: 90%; max-width: 1000px;
}
.mySlidesModal { display: none; }
.close {
    color: white; position: absolute; top: 10px; right: 25px;
    font-size: 35px; font-weight: bold; cursor: pointer; z-index: 2001;
}
.close:hover { color: #999; }

/* --- MOBILE --- */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute; right: 0; height: 92vh; top: 80px;
        background-color: #fff; display: flex; flex-direction: column;
        align-items: center; width: 70%; transform: translateX(100%);
        transition: transform 0.4s ease-in; border-left: 1px solid #ddd;
        z-index: 999; padding-top: 50px;
    }
    .nav-links li { margin: 20px 0; }
    .burger { display: block; }
    
    .mySlides img { height: 300px; }
    
    .price-row { grid-template-columns: 1fr; gap: 10px; padding: 15px; }
    .season-name { text-align: center; }
    .price-row.header { display: none; }
    
    /* ZUSATZ 1: "Mindestaufenthalt" vor den Nächten */
    .min-stay::before {
        content: "Mindestaufenthalt: ";
        font-weight: normal;
        color: #555;
    }

    /* ZUSATZ 2: "pro Nacht" hinter dem Preis */
    .price-tag::after {
        content: " pro Nacht";
        font-size: 0.9rem;
        font-weight: normal;
        color: #555;
    }

    .contact-wrapper { flex-direction: column; align-items: center; }
    .contact-info, .contact-form-container { max-width: 100%; }
    
    /* Mobile: Side-Buttons anpassen */
    .side-btn { padding: 12px; } 
    .side-btn .text { display: none !important; } 
    .side-btn:hover { padding-right: 12px !important; } 
}

.nav-active { transform: translateX(0%); }
.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }