/* ==========================================================================
   1. GLOBALE EINSTELLUNGEN & VARIABLEN
   ========================================================================== */
:root {
    --text-main: #3c352d;      /* Edles Dunkelbraun für Texte */
    --text-muted: #70665c;     /* Dezentes Grau für Beschreibungen */
    --card-bg: rgba(255, 255, 255, 0.5); /* Deine 50% Milchglas-Transparenz */
    --accent-blue: #4a6b82;    /* Oybin-Blau */
    --accent-green: #556b2f;   /* Großschönau-Grün */
    --accent-wood: #8b5a2b;    /* Warmes Holzbraun */
    --accent-light: #eae5da;   /* Cremeweiß */
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-main);
    line-height: 1.7;
    
    /* NEUES HINTERGRUNDBILD: Bombenfest fixiert beim Scrollen */
    background: linear-gradient(rgba(247, 244, 238, 0.15), rgba(247, 244, 238, 0.15)), 
                url('images/1 Titelbild Haus aussen mit Blume.JPG') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

/* ==========================================================================
   2. TOP-BAR UMSCHALTER (Permanent am oberen Bildschirmrand fixiert)
   ========================================================================== */
.top-switch-bar {
    background-color: #3c352d;
    border-bottom: 1px solid var(--accent-light);
    padding: 10px 0;
    width: 100%;
    font-size: 0.85rem;
    
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2); 
    height: 56px;
    box-sizing: border-box;
}

.switch-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.switch-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Der Burger-Button links mit 150px Abstand zum Text auf dem PC */
.burger-menu-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 150px; 
}

.switch-label {
    color: #eae5da;
    font-weight: 500;
}

.switch-links {
    display: flex;
    gap: 12px;
}

.switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a0958a;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

.switch-btn:hover, .switch-btn.active {
    color: #ffffff;
    background-color: rgba(74, 107, 130, 0.25);
    border-color: var(--accent-blue);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.dot-green { background-color: var(--accent-green); }
.dot-blue { background-color: var(--accent-blue); }

/* Feste Verankerung der Piktogramme am rechten Rand */
.switch-right-icons {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: auto;
    position: relative;
    z-index: 1000002;
}

.top-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
}

.top-icon-btn svg {
    width: 16px;
    height: 16px;
    fill: #eae5da;
}

.top-icon-btn:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    transform: scale(1.05);
}

.top-icon-btn:hover svg { fill: var(--accent-blue); }
.top-icon-btn.top-icon-wa:hover { border-color: #25d366; }
.top-icon-btn.top-icon-wa:hover svg { fill: #25d366; }
.top-icon-btn.top-icon-tel:hover { border-color: var(--accent-wood); }
.top-icon-btn.top-icon-tel:hover svg { fill: var(--accent-wood); }

/* ==========================================================================
   3. HERO HEADER (Das vergrößerte Logo ohne Text-Abstände)
   ========================================================================== */
header.hero {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 140px; /* Perfekter Freiraum unter der schwebenden Top-Bar */
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 50px;
}

.hero-text-box {
    max-width: 750px;
}

/* Zwingt das umschließende H1-Tag, absolut unsichtbar und ohne Leerräume zu agieren */
.logo-h1-container {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    display: block !important;
    border: none !important;
}

.hero-logo {
    max-width: 820px;
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 15px #ffffff) 
            drop-shadow(0 0 25px #ffffff)
            drop-shadow(0 0 35px rgba(255, 255, 255, 0.95));
}

/* ==========================================================================
   4. CONTENT LAYOUT (Box dockt auf dem PC direkt unter dem Logo an)
   ========================================================================== */
.container {
    max-width: 1140px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Die erste Milchglas-Box wandert nach oben direkt an die Logo-Unterkante */
.container section:first-of-type {
    margin-top: 30px; /* Perfekter, harmonischer Abstand direkt unter dem Logo */
    position: relative;
}

.container section {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px); 
    padding: 50px;
    border-radius: 16px;
    margin-bottom: 45px;
    box-shadow: 0 15px 40px rgba(60, 53, 45, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   5. BILDERGALERIE RASTER (Das moderne CSS-Grid)
   ========================================================================== */
.category-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-blue);
    margin: 35px 0 15px 0;
    border-left: 4px solid var(--accent-blue);
    padding-left: 12px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   6. ANREISE & GOOGLE MAPS (Mit erzwungenen runden Ecken)
   ========================================================================== */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 12px; 
    border: 1px solid var(--accent-light);
    margin-top: 20px;
    overflow: hidden !important;
    position: relative;
    transform: translateZ(0); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* ==========================================================================
   7. PREISTABELLE & FORMULAR-STRUKTUR
   ========================================================================== */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

.price-table th, .price-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--accent-light);
}

.price-table th {
    background-color: rgba(74, 107, 130, 0.1);
    color: var(--accent-blue);
    font-weight: bold;
}

.price-highlight {
    font-weight: bold;
    color: var(--accent-blue);
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: span 2;
}

form h3 {
    grid-column: span 2;
    color: var(--accent-blue) !important;
    font-size: 1.2rem !important;
    margin-bottom: 5px !important;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #c8bfb3;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
}

button[type="submit"] {
    grid-column: span 2;
    background-color: var(--accent-blue);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 25px;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 15px;
}

button[type="submit"]:hover {
    background-color: #385264;
}

/* ==========================================================================
   8. BELEGUNGSPLAN & CALENDAR SPLIT
   ========================================================================== */
.calendar-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 25px;
}

.calendar-box {
    background: rgba(255, 255, 255, 0.4);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.calendar-container {
    width: 100%;
    height: 380px;
}

/* ==========================================================================
   9. SEITENFUSS & FOOTER
   ========================================================================== */
footer {
    background-color: #3c352d;
    color: #eae5da;
    padding: 35px 20px;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid var(--accent-light);
}

.footer-links a {
    color: #eae5da;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
}

.footer-links a:hover { 
    color: var(--accent-blue); 
}

.footer-bottom { 
    margin-top: 20px; 
    font-size: 0.85rem; 
    color: #a0958a; 
}

/* ==========================================================================
   10. LIGHTBOX CSS SYSTEM (Die reine CSS-Bilder-Großansicht)
   ========================================================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox:target { 
    display: flex; 
}

.lightbox img { 
    max-width: 90vw; 
    max-height: 85vh; 
    object-fit: contain; 
    border-radius: 4px; 
}

.close-btn { 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    color: #fff; 
    font-size: 35px; 
    text-decoration: none; 
}

.nav-btn { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    color: #fff; 
    font-size: 50px; 
    text-decoration: none; 
    padding: 0 20px; 
}

.prev { left: 10px; }
.next { right: 10px; }

/* ==========================================================================
   11. REINES CSS BURGER-MENÜ (Völlig ohne JavaScript, DSGVO-konform)
   ========================================================================== */
.burger-checkbox { 
    display: none !important; 
}

.burger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
    cursor: pointer;
    z-index: 1000001;
    position: relative;
}

.burger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #eae5da;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.burger-nav {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background-color: #3c352d;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
    z-index: 9999999;
    transition: left 0.3s ease-in-out;
    display: block;
}

.close-menu-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    display: none;
    cursor: pointer;
}

.burger-nav-content { 
    padding: 80px 30px 30px 30px; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

.burger-nav-header { 
    color: #a0958a; 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    margin-bottom: 10px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    padding-bottom: 10px; 
}

.burger-nav-content a { 
    color: #eae5da; 
    text-decoration: none; 
    font-size: 1.1rem; 
    font-weight: 500; 
    padding: 10px 0; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.03); 
    transition: color 0.2s ease; 
}

.burger-nav-content a:hover { 
    color: var(--accent-blue); 
}

.burger-nav-content a.nav-cta {
    margin-top: 15px; 
    background-color: var(--accent-blue); 
    color: #ffffff; 
    text-align: center; 
    border-radius: 20px; 
    padding: 12px; 
    font-weight: bold; 
    border-bottom: none;
}

.burger-nav-content a.nav-cta:hover { 
    background-color: #385264; 
    color: #ffffff; 
}

.burger-checkbox:checked ~ .burger-nav { left: 0; }
.burger-checkbox:checked ~ .burger-nav .close-menu-area { display: block; }
.burger-checkbox:checked ~ .burger-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-checkbox:checked ~ .burger-icon span:nth-child(2) { opacity: 0; }
.burger-checkbox:checked ~ .burger-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   12. ULTRA-FLACHE & SAUBERE SMARTPHONE-OPTIMIERUNG (Icons vergrößert & mit Abstand)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. DIE BRAUNE MENÜLEISTE: Mobil leicht erhöht für den neuen Piktogramm-Abstand */
    .top-switch-bar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 82px !important; /* Von 76px auf 82px erhöht für mehr Luft */
        padding: 4px 0 !important;
        z-index: 999999 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    }

    .switch-container {
        padding: 0 12px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2px !important;
        height: 100% !important;
    }

    /* ZEILE 1: Burger ganz links, Text und Knöpfe geschlossen rechtsbündig */
    .switch-left {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important; /* Zwingt Burger nach links und Text/Knöpfe nach rechts */
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    /* Blendet das Wort "Unsere" auf dem Smartphone komplett aus */
    .desktop-only-text {
        display: none !important;
    }

    /* Das Burger-Icon (3 Striche) bleibt brav am linken Rand verankert */
    .burger-menu-container {
        margin-right: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    /* Der Text "Ferienhäuser" und die Knöpfe rücken rechtsbündig eng zusammen */
    .switch-label {
        font-size: 0.75rem !important;
        white-space: nowrap !important;
        margin-left: auto !important; /* MAGIE: Drückt den Text an den rechten Rand */
        margin-right: 6px !important; /* Knackiger Abstand vor den beiden Knöpfen */
    }

    /* Die Knöpfe kleben nahtlos am rechten Zeilenrand */
    .switch-links {
        display: flex !important;
        gap: 4px !important;
        margin-left: 0 !important;
    }

    .switch-btn {
        padding: 2px 6px !important;
        font-size: 0.7rem !important;
        border-radius: 10px !important;
    }

    /* ZEILE 2: Die Piktogramme werden vergrößert und nach unten geschoben */
    .switch-right-icons {
        margin: 0 auto !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 20px !important; /* Komfortabler Daumen-Abstand */
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important; /* Hauchzarte Trennlinie */
        
        /* HIER STECKT DER NEUE ABSTAND NACH OBEN: */
        margin-top: 6px !important; 
        padding-top: 5px !important;
    }

    /* DIE BUTTONS WERDEN MOBIL GRÖSSER: */
    .top-icon-btn {
        width: 32px !important;
        height: 32px !important;
    }

    /* Die darin liegenden weißen Symbole wachsen proportional mit: */
    .top-icon-btn svg {
        width: 15px !important;
        height: 15px !important;
    }

    /* SEO-H1 NOTBREMSE MOBIL: Löscht den Riesenabsatz um das Logo */
    header.hero h1 {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
        display: block !important;
    }

    /* MOBILE HEADER-ZONE (Kompakt und fließend) */
    header.hero {
        height: auto !important;
        min-height: auto !important;
        padding-top: 100px !important; /* Platzhalter für das fixierte Menü */
        padding-bottom: 15px !important;
    }

    .hero-content { padding: 0 15px !important; }
    .hero-logo { max-width: 100% !important; width: 100% !important; margin: 0 auto !important; }

    /* MOBILE CONTENT-ZONE */
    .container { padding: 0 10px !important; }
    .container section:first-of-type { margin-top: 15px !important; }
    .container section { padding: 20px 15px !important; margin-bottom: 20px !important; }

    /* Grids & Kalender untereinander stapeln */
    form, .calendar-split, .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .form-group.full-width, button[type="submit"], form h3 {
        grid-column: span 1 !important;
    }
}