:root { 
    --free: #27ae60; --fewo: #c0392b; --airbnb: #ff5a5f; --owner: #777777;
    --text: #2c3e50; --light: #888; --border: #eee;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; overflow-x: hidden; background-color: #fff; }
body { font-family: 'Helvetica Neue', Arial, sans-serif; color: var(--text); line-height: 1.6; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

/* --- STICKY SHRINKING HEADER --- */
header {
    position: fixed; top: 0; left: 0; width: 100%; height: 120px;
    display: flex; align-items: center; justify-content: space-between;
    z-index: 1000; transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); padding: 0 40px;
}
header.scrolled {
    height: 60px; background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}
.header-spacer { width: 80px; display: block; }
.header-logo-img { height: 35px; width: auto; display: block; }
.nav-container { display: flex; gap: clamp(10px, 3vw, 35px); flex-grow: 1; justify-content: center; }
header a { color: white; text-decoration: none; text-transform: uppercase; font-size: 0.75em; letter-spacing: 2px; font-weight: 300; transition: color 0.5s; }
header.scrolled a { color: var(--text); font-weight: 400; }
.lang-switch { width: 80px; display: flex; gap: 12px; justify-content: flex-end; }
.lang-switch a { opacity: 0.6; font-size: 1.3em; filter: grayscale(100%); text-decoration: none; transition: 0.5s; }
.lang-switch a.active { opacity: 1; filter: grayscale(0%); transform: scale(1.1); }
header.scrolled .lang-switch a { filter: none; }

@media (max-width: 768px) {
    header { height: 80px; padding: 0 15px; }
    header.scrolled { height: 55px; }
    .header-spacer, .lang-switch { width: 60px; }
    header a { font-size: 0.55em; letter-spacing: 1px; }
}

/* --- HERO --- */
.hero-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000;
    line-height: 0;
}

/* Das Bild bestimmt die natürliche Höhe */
.hero-fallback {
    width: 100%;
    height: auto;
    display: block;
}

/* Video liegt darüber */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.6s ease;
    background-color: transparent;
}

/* sobald geladen → einblenden */
.hero-video.is-ready {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.35));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    z-index: 5;
    line-height: 1.6;
}

.hero-h1 { font-size: clamp(2.2em, 8vw, 6em); font-weight: 200; letter-spacing: clamp(10px, 3.5vw, 30px); margin: 0; text-transform: uppercase; line-height: 1.1; padding-bottom: 10px; }
.hero-p { font-size: clamp(0.75em, 2vw, 1.3em); letter-spacing: 6px; margin: 15px 0 0 0; font-weight: 300; line-height: 1.4; }
.btn-cta { margin-top: 50px; padding: 18px 45px; border: 1px solid white; color: white; text-decoration: none; text-transform: uppercase; letter-spacing: 4px; font-size: 0.75em; transition: 0.4s; line-height: 1; }
.btn-cta:hover { background: white; color: black; }

@media (max-width: 768px) { 
    .hero-h1 { padding-top: 20px; font-size: 2.2em; letter-spacing: 8px; } 
    .hero-p { margin-top: 10px; font-size: 0.8em; letter-spacing: 3px; } 
    .btn-cta { margin-top: 25px; padding: 12px 30px; }
}

/* --- GEMEINSAME SEKTIONS-STYLES --- */
section { 
    padding: 80px 20px; 
    max-width: 1400px; 
    margin: auto; 
}

.section-title { 
    font-size: 1.6em; 
    font-weight: 200; 
    letter-spacing: 6px; 
    text-transform: uppercase; 
    margin-bottom: 50px; 
    text-align: center; 
    color: var(--text);
}

/* Unterüberschriften jetzt in der dunklen Farbe (--text) */
section h3, 
section h4,
.overview-subtitle,
.tab-text-area h3 {
    color: var(--text) !important;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.intro-text { 
    max-width: 850px; 
    margin: 0 auto 60px; 
    text-align: center; 
    font-size: 1.1em; 
    color: var(--light); 
    font-weight: 300; 
}

.features { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 40px; 
    margin-bottom: 60px; 
}

.feature-item { 
    text-align: center; 
    padding: 10px; 
}

.feature-item h3 { 
    font-weight: 400; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    font-size: 0.9em; 
    margin-bottom: 15px; 
    color: var(--text);
}

/* --- KALENDER GRID --- */
.calendar-container { background: #fafafa; padding: 80px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.grid { display:grid; grid-template-columns: repeat(2, 1fr); gap:12px; max-width:1400px; margin:auto; padding:0 15px; }
@media (min-width:1200px) { .grid { grid-template-columns: repeat(6, 1fr); gap:15px; } }
.month-block { border: 1px solid #ddd; border-radius:2px; overflow:hidden; background:#fff; }
.m-tab { border-collapse:collapse; width:100%; table-layout:fixed; }
.m-tab th { background:#fdfdfd; height:40px; font-weight:400; border-bottom:1px solid #ddd; font-size:0.8em; }
.day-header td { color:#bbb; font-size:0.5em; height:25px; border-bottom:1px solid var(--border); }
.m-tab td { border: 1px solid var(--border); position: relative; font-size: 0.75em; padding-bottom: 14.28%; }
.day-content { position: absolute; top:0; left:0; width:100%; height:100%; display: flex; align-items: center; justify-content: center; }
.day-num { position:relative; z-index:10; color:white; font-weight: 300; }
.free { background:var(--free); }
.diag-box { position:absolute; top:0; left:0; width:100%; height:100%; }
.layer-topleft { clip-path:polygon(0 0, 100% 0, 0 100%); z-index:2; }
.layer-bottomright { clip-path:polygon(100% 0, 100% 100%, 0 100%); z-index:3; }
.separator { position:absolute; top:0; left:0; width:100%; height:100%; background:white; clip-path:polygon(0 98%, 2% 100%, 100% 2%, 98% 0); z-index:4; }

/* --- FORMULAR GRID --- */
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap:20px; max-width: 750px; margin: auto; }
.field-group { display: flex; flex-direction: column; gap: 8px; text-align: left; }
label { font-size:0.6em; text-transform:uppercase; color:var(--light); letter-spacing: 1px; }
input, select, textarea { padding:12px; border:1px solid var(--border); border-radius:3px; font-size:0.9em; width: 100%; font-family: inherit; outline: none; }
.btn-submit { grid-column:span 2; background:var(--text); color:white; padding:18px; border:none; cursor:pointer; text-transform:uppercase; letter-spacing:3px; margin-top: 15px; }

/* Nur wirklich schmale Geräte einspaltig */
@media (max-width: 380px) {
    .form-grid { 
        grid-template-columns: 1fr; 
        gap: 18px;
    }

    .form-grid .field-group[style] {
        grid-column: span 1 !important;
    }

    .btn-submit {
        grid-column: span 1;
    }
}

/* FLATPICKR COLORS */
.flatpickr-day.flatpickr-disabled { background: #f8d7da !important; color: #c0392b !important; opacity: 1; border: none !important; }
.flatpickr-day:not(.flatpickr-disabled):not(.prevMonthDay):not(.nextMonthDay) { background: #e8f5e9 !important; color: #27ae60 !important; border: none !important; }

/* --- BACK TO TOP & BUTTONS --- */
#backToTop { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: #2c3e50; color: white; border: none; border-radius: 50%; cursor: pointer; display: none; z-index: 9999; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: all 0.3s ease; }
#backToTop:hover { transform: translateY(-5px); background: #000; }

.btn-dark { display: inline-block; margin-top: 30px; padding: 15px 40px; border: 1px solid var(--text); color: var(--text); text-decoration: none; text-transform: uppercase; letter-spacing: 3px; font-size: 0.75em; transition: all 0.4s ease; }
.btn-dark:hover { background-color: var(--text); color: #ffffff; }

/* --- VILLA ÜBERSICHT SPLIT-LAYOUT --- */
.villa-overview-split { display: flex; gap: 60px; margin-top: 100px; align-items: center; }
.overview-content { flex: 1; }
.overview-image { flex: 1.2; width: 100%; }
.overview-image img { width: 100%; height: auto; display: block; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.overview-subtitle { font-size: 1.1em; font-weight: 300; margin-bottom: 20px; color: var(--text); text-transform: uppercase; letter-spacing: 3px; }
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 15px; margin-bottom: 50px; }
.icon-item { display: flex; align-items: center; gap: 12px; font-size: 0.9em; color: var(--light); line-height: 1.3; }
.icon-item svg { color: var(--text); flex-shrink: 0; width: 38px; height: 38px; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
    .villa-overview-split { flex-direction: column-reverse; gap: 40px; margin-top: 60px; width: 100%; }
    .overview-grid { grid-template-columns: 1fr; }
}

/* --- VILLA DETAIL TABS --- */
.tab-buttons { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; flex-wrap: wrap; }

.tab-btn { 
    background: #f8f8f8;
    border: 1px solid var(--border); 
    padding: 12px 25px; 
    font-size: 0.85em; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    color: var(--text);
    cursor: pointer; 
    transition: all 0.3s ease; 
}

.tab-btn:hover { 
    color: white; 
    background-color: var(--light); 
    border-color: var(--light); 
}

.tab-btn.active { 
    background-color: var(--text); 
    color: white; 
    border-color: var(--text); 
}

.tab-split { display: flex; align-items: center; gap: 50px; animation: fadeEffect 0.6s; }
.tab-split.reverse { flex-direction: row-reverse; }
.tab-text-area { flex: 1; }
.tab-text-area h3 { font-size: 1.6em; font-weight: 300; margin-bottom: 20px; color: var(--text); letter-spacing: 2px; }
.tab-slider-area { flex: 1.5; position: relative; width: 100%; overflow: hidden; }

.swipe-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 15px; scrollbar-width: none; -ms-overflow-style: none; }
.swipe-slider::-webkit-scrollbar { display: none; }
.swipe-slider img { flex: 0 0 100%; scroll-snap-align: center; width: 100%; height: 450px; object-fit: cover; border-radius: 4px; }
.swipe-hint { text-align: center; font-size: 0.7em; color: var(--light); margin-top: 10px; letter-spacing: 1px; text-transform: uppercase; }

@keyframes fadeEffect { from {opacity: 0; transform: translateY(10px);} to {opacity: 1; transform: translateY(0);} }

@media (max-width: 900px) {
    .tab-split, .tab-split.reverse { flex-direction: column; gap: 30px; }
    .swipe-slider img { height: 300px; }
    .tab-buttons { gap: 10px; }
    .tab-btn { flex: 1 1 45%; padding: 10px; font-size: 0.75em; }
}

/* --- SLIDER PFEILE --- */
.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85); border: none;
    width: 45px; height: 45px; border-radius: 50%;
    font-size: 20px; color: var(--text); cursor: pointer;
    z-index: 10; box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}
.slider-btn:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.prev-btn { left: 15px; }
.next-btn { right: 15px; }

@media (max-width: 900px) { .slider-btn { display: none; } }

/* --- FOOTER --- */
.site-footer {
    padding: 60px 20px;
    text-align: center;
    font-size: 0.75rem;
    color: #888;
    border-top: 1px solid #eee;
}

.site-footer-link {
    color: #888;
    text-decoration: none;
}

.site-footer-link:hover {
    text-decoration: underline;
}