/* ==================================================== */
/*      FINALE, GEPRÜFTE VERSION - VILLA ZINA           */
/* ==================================================== */

/*
    WICHTIG: @font-face MUSS GANZ OBEN STEHEN,
    VOR ALLEN ANDEREN REGELN UND KOMMENTAREN.
*/

/* montserrat-300 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/montserrat-latin-300.woff2') format('woff2'),
       url('../fonts/montserrat-latin-300.ttf') format('truetype');
}

/* montserrat-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/montserrat-latin-regular.woff2') format('woff2'),
       url('../fonts/montserrat-latin-regular.ttf') format('truetype');
}

/* montserrat-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/montserrat-latin-600.woff2') format('woff2'),
       url('../fonts/montserrat-latin-600.ttf') format('truetype');
}

/* --- GRUNDEINSTELLUNGEN & VARIABLEN --- */
:root {
    --color-primary: #0077b6; 
    --color-secondary: #333; 
    --color-background: #ffffff; 
    --color-text: #4a4a4a; 
    --color-light-gray: #f4f4f4; 
    --color-stone: #e0e0e0; 
    --color-white: #fff; 
    --color-black: #000;
}
[data-theme="dark"] {
    --color-primary: #D8AB6D; 
    --color-secondary: #f4f4f4; 
    --color-background: #1B2A35; 
    --color-text: #e0e0e0; 
    --color-light-gray: #2a3b47; 
    --color-stone: #4d5a66;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Montserrat', sans-serif; 
    color: var(--color-text); 
    background-color: var(--color-background); 
    line-height: 1.6; 
    transition: background-color 0.3s, color 0.3s; 
    font-weight: 300; 
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
h1, h2, h3, h4, h5, h6 { color: var(--color-secondary); text-align: center; }
h1 { font-size: 2.8rem; font-weight: 600; margin: 0 0 1rem 0; line-height: 1.2; }
h2 { font-size: 2.5rem; font-weight: 600; }
h3 { font-weight: 600; }
p, li, span, div { font-weight: 300; }
label, button, a { font-weight: 400; }
strong, b { font-weight: 600; }

/* --- HEADER & NAVIGATION --- */
header { 
    position: fixed; top: 0; left: 0; width: 100%; 
    background: rgba(255, 255, 255, 0.8); 
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); 
    padding: 15px 0; z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    transition: background-color 0.3s; 
}
[data-theme="dark"] header { background: rgba(27, 42, 53, 0.8); }
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 50px; }
.desktop-nav { display: flex; align-items: center; gap: 20px; }
.desktop-nav ul { list-style: none; display: flex; }
.desktop-nav ul li { margin-left: 25px; }
.desktop-nav ul li a { text-decoration: none; color: var(--color-secondary); font-weight: 400; transition: color 0.3s; }
.desktop-nav ul li a:hover { color: var(--color-primary); }

/* --- HOMEPAGE SLIDER --- */
#home { height: 100vh; padding: 0; position: relative; overflow: hidden; }
.slider-main { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.slide { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    opacity: 0; 
    transition: opacity 1.5s ease-in-out; 
    z-index: 1;
    /* Performance-Optimierung für moderne Bildformate */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
.slide.active { opacity: 1; }
.slide-content-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; z-index: 3; text-align: center; color: var(--color-white); padding: 20px; }
.slide-content-container::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 40%, transparent 100%); z-index: -1; }
.slide-content { opacity: 0; transition: opacity 1.5s ease-in-out; position: absolute; }
.slide-content.active { opacity: 1; }
.slide-content h1 { font-size: 3.5rem; color: var(--color-white); text-shadow: 1px 1px 4px rgba(0,0,0,0.5); font-weight: 300; }
.slider-controls { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; z-index: 4; padding: 0 20px; }
.slider-controls button { background: rgba(0,0,0,0.3); color: var(--color-white); border: none; padding: 15px; font-size: 1.5rem; cursor: pointer; border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; }
.slider-thumbnails { display: none !important; }

/* --- IMPRESSIONEN / GALERIE --- */
.filter-buttons { text-align: center; margin-bottom: 40px; }
.filter-btn { background: none; border: 2px solid var(--color-stone); color: var(--color-secondary); padding: 10px 20px; margin: 5px; border-radius: 20px; cursor: pointer; font-weight: 600; transition: all 0.3s ease; }
.filter-btn.disabled {
    background: var(--color-light-gray);
    border-color: var(--color-stone);
    color: #aaa;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none; /* Klicks zuverlässig unterbinden */
}
.filter-btn:hover, .filter-btn.active { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.impressions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; }
.impressions-item { position: relative; overflow: hidden; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); height: 250px; cursor: pointer; }
.impressions-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.impressions-item:hover img { transform: scale(1.1); }
.impressions-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: var(--color-white); opacity: 0; transition: opacity 0.4s ease; padding: 40px 20px 20px 20px; pointer-events: none; }
.impressions-item:hover .impressions-overlay { opacity: 1; }
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(20, 20, 20, 0.95); z-index: 9999; display: none; align-items: center; justify-content: center; }
.lightbox-img { max-width: 100%; max-height: 85vh; object-fit: contain; display: block; width: auto; height: auto; transition: opacity 0.3s ease; }
.lightbox-img[src=""], .lightbox-img:not([src]) { opacity: 0.5; }
.lightbox-close { position: absolute; top: 15px; right: 35px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; }

/* Lightbox Navigation Styles - FIXED STATIC POSITIONING */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 20px; /* Top padding für Navigation */
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-nav-header {
    position: fixed !important; /* Force fixed positioning */
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10001 !important;
    /* Prevent any layout shift */
    will-change: auto;
    backface-visibility: hidden;
}

.lightbox-nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lightbox-nav-arrow {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.lightbox-nav-arrow:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

.lightbox-nav-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(200, 200, 200, 0.8);
}

.lightbox-nav-arrow svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.lightbox-nav-info {
    background: transparent;
    color: white;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
    text-shadow: none;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 50px;
    text-align: center;
}

.lightbox-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 90vw;
    max-height: calc(100vh - 160px); /* Platz für Navigation oben und unten */
    overflow: hidden;
    margin: 0; /* Kein Margin - Navigation ist fix positioniert */
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    width: auto;
    height: auto;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.1s ease; /* Sanfte Übergänge */
}

/* Loading states für sanfte Übergänge */
.lightbox-img.loading {
    opacity: 0.3;
    transform: scale(0.95);
}

.lightbox-img.loaded {
    opacity: 1;
    transform: scale(1);
}

.lightbox-img[src=""], .lightbox-img:not([src]) {
    opacity: 0.3;
}

.lightbox-caption {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    font-size: 14px;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    max-width: 80%;
    z-index: 10000;
}

.lightbox-keyboard-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    text-align: center;
    z-index: 10000;
    width: fit-content;
}

@media (max-width: 768px) {
    .lightbox-nav-header {
        top: 15px; /* Näher am oberen Rand auf Mobile */
    }
    
    .lightbox-nav-controls {
        gap: 6px;
        padding: 6px;
    }
    
    .lightbox-nav-arrow {
        width: 32px;
        height: 32px;
        padding: 6px;
    }
    
    .lightbox-nav-arrow svg {
        width: 16px;
        height: 16px;
    }
    
    .lightbox-nav-info {
        font-size: 12px;
        padding: 6px 10px;
        min-width: 45px;
    }
    
    .lightbox-image-container {
        max-height: calc(100vh - 140px); /* Angepasst für mobile */
        margin: 0;
    }
    
    .lightbox-keyboard-hint {
        font-size: 11px;
        padding: 6px 12px;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .lightbox-nav-header {
        top: 10px; /* Noch näher am oberen Rand auf sehr kleinen Screens */
    }
    
    .lightbox-nav-controls {
        gap: 4px;
        padding: 4px;
    }
    
    .lightbox-nav-arrow {
        width: 28px;
        height: 28px;
        padding: 4px;
    }
    
    .lightbox-nav-info {
        font-size: 11px;
        padding: 4px 8px;
        min-width: 40px;
    }
    
    .lightbox-image-container {
        max-height: calc(100vh - 120px); /* Angepasst für sehr kleine Screens */
        margin: 0;
    }
    
    .lightbox-caption {
        bottom: 60px;
        font-size: 12px;
        padding: 5px 12px;
        max-width: 95%;
    }
    
    .lightbox-keyboard-hint {
        bottom: 20px;
        font-size: 10px;
        padding: 5px 10px;
    }
}

/* --- AUSSTATTUNG & LAGE --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.feature-item { text-align: center; }
.feature-item svg { width: 50px; height: 50px; color: var(--color-primary); margin-bottom: 15px; }
.feature-description { max-width: 800px; margin: 60px auto 0; text-align: left; line-height: 1.8; }
.feature-description p { margin-bottom: 1em; }
.location-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 40px; }
.map-container { position: relative; padding-bottom: 75%; height: 0; overflow: hidden; border-radius: 10px; }
.map-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.location-text .cta-button { margin-top: 20px; }

/* --- KONTAKTFORMULAR & CTA --- */
.contact-form { max-width: 700px; margin: 40px auto 0; background: var(--color-background); padding: 40px; border-radius: 10px; }
.form-group label { font-weight: 600; display: block; margin-bottom: 5px;}
.form-group input, .form-group textarea { 
    width: 100%; padding: 12px; border: 1px solid var(--color-stone); 
    border-radius: 5px; background-color: var(--color-background); 
    color: var(--color-text); font-family: 'Montserrat', sans-serif;
    font-size: 1rem; font-weight: 400;
}
.cta-button, .contact-form button { display: inline-block; padding: 15px 30px; background: var(--color-primary); color: var(--color-white); text-decoration: none; border-radius: 5px; font-weight: 600; transition: background 0.3s; border: none; cursor: pointer; }
.cta-button:hover, .contact-form button:hover { background: #005f8e; }
[data-theme="dark"] .cta-button:hover, [data-theme="dark"] .contact-form button:hover { background: #c59a60; }
.honeypot { display: none; }

/* --- FOOTER & COOKIE BANNER --- */
footer { 
    background: var(--color-secondary); 
    color: var(--color-light-gray); 
    text-align: center; 
    padding: 40px 0; 
    /* Stelle sicher, dass Footer über Scroll-Arrows liegt */
    position: relative;
    z-index: 10;
}
[data-theme="dark"] footer { background: var(--color-black); }
.footer-links { 
    margin-bottom: 20px; 
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.footer-links a { 
    color: var(--color-light-gray); 
    text-decoration: none; 
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    /* Bessere Touch-Targets für mobile */
    min-height: 44px;
    display: flex;
    align-items: center;
    font-weight: 400;
}
.footer-links a:hover,
.footer-links a:focus { 
    text-decoration: underline; 
    background: rgba(255,255,255,0.1);
    outline: none;
}

footer p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Mobile Footer Optimierungen */
@media (max-width: 768px) {
    footer {
        padding: 30px 0;
    }
    
    .footer-links {
        gap: 20px;
        margin-bottom: 15px;
    }
    
    .footer-links a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    footer p {
        font-size: 0.8rem;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .footer-links a {
        min-width: 120px;
        justify-content: center;
    }
}
#cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px); color: var(--color-white); padding: 20px; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 15px; z-index: 2000; text-align: center;}
.cookie-buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cookie-btn { border: none; border-radius: 8px; padding: 10px 22px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; text-decoration: none; display: inline-block; }
.cookie-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
#cookie-accept { background-color: var(--color-primary); color: var(--color-white); }
#cookie-decline { background-color: #6c757d; color: var(--color-white); }
#cookie-info { background-color: transparent; color: var(--color-white); border: 1px solid var(--color-white); }
button span, a span { font-weight: inherit; }

/* --- SCROLL-PFEILE FÜR NAVIGATION --- */
.scroll-arrow {
    position: fixed;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1500;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: none;
}

.scroll-arrow.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-arrow:hover {
    background: #005f8e;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

[data-theme="dark"] .scroll-arrow:hover {
    background: #c59a60;
}

.scroll-arrow svg {
    width: 24px;
    height: 24px;
    color: var(--color-white);
    transition: transform 0.3s ease;
}

.scroll-arrow:hover svg {
    transform: translateY(2px);
}

/* Spezifische Positionierung */
.scroll-down-arrow {
    bottom: 30px;
    right: 30px;
}

.scroll-up-arrow {
    bottom: 90px;
    right: 30px;
}

.scroll-up-arrow:hover svg {
    transform: translateY(-2px);
}

/* Scroll-Pfeile in mobiler Navigation */
.mobile-nav-scroll-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px auto 0;
    padding: 15px 0;
    border-top: 1px solid var(--color-stone);
}

.mobile-nav .scroll-arrow {
    position: relative;
    bottom: auto;
    right: auto;
    width: 40px;
    height: 40px;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 0;
}

.mobile-nav .scroll-arrow svg {
    width: 20px;
    height: 20px;
}

/* --- SPRACH- & THEME-SCHALTER --- */
.theme-switch { display: inline-block; height: 24px; position: relative; width: 50px; }
.theme-switch input { display:none; }
.slider-toggle { background-color: #ccc; bottom: 0; cursor: pointer; left: 0; position: absolute; right: 0; top: 0; transition: .4s; border-radius: 34px; }
.slider-toggle:before { background: linear-gradient(to right, #2a3b47 50%, #f4f4f4 50%); content: ""; height: 16px; width: 16px; left: 4px; top: 4px; position: absolute; transition: .4s; border-radius: 50%; border: none; }
input:checked + .slider-toggle { background-color: var(--color-primary); }
input:checked + .slider-toggle:before { transform: translateX(26px); }

/* Theme-Switch Wrapper - Vertikal mittig in Desktop-Navigation */
.theme-switch-wrapper { 
    display: flex; 
    align-items: center; 
    justify-content: center;
    height: 100%;
    margin-left: 15px;
}

.language-switcher-wrapper { position: relative; display: flex; align-items: center; }
.globe-icon { position: absolute; left: 12px; pointer-events: none; font-size: 1rem; }
#language-switcher, #language-switcher-mobile { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-color: transparent; border: 1px solid var(--color-stone); border-radius: 8px; padding: 8px 15px 8px 38px; font-size: 0.95rem; font-family: 'Montserrat', sans-serif; color: var(--color-text); font-weight: 400; cursor: pointer; transition: all 0.3s; }
#language-switcher:hover, #language-switcher-mobile:hover { border-color: var(--color-primary); }

/* --- HAMBURGER & MOBILES MENÜ --- */
.hamburger-menu { 
    display: none; 
    flex-direction: column; 
    justify-content: space-around; 
    width: 2rem; 
    height: 2rem; 
    background: transparent; 
    border: none; 
    cursor: pointer; 
    padding: 0; 
    z-index: 1001;
    /* Verbesserte Touch-Unterstützung */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    /* Mindestgröße für Touch-Targets */
    min-width: 44px;
    min-height: 44px;
}

.hamburger-menu span { 
    width: 2rem; 
    height: 0.25rem; 
    background: var(--color-secondary); 
    border-radius: 10px; 
    transition: all 0.3s linear; 
    position: relative; 
    transform-origin: 1px;
    /* Bessere Sichtbarkeit */
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.hamburger-menu.open span { background: var(--color-secondary); }
.hamburger-menu.open span:nth-child(1) { transform: rotate(45deg); }
.hamburger-menu.open span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.hamburger-menu.open span:nth-child(3) { transform: rotate(-45deg); }
[data-theme="dark"] .hamburger-menu span { background: var(--color-secondary); }

/* Hamburger-Menu für verschiedene Gerätegrößen */
@media (max-width: 768px) {
    .hamburger-menu {
        width: 1.8rem;
        height: 1.8rem;
    }
    
    .hamburger-menu span {
        width: 1.8rem;
        height: 0.22rem;
    }
}

@media (max-width: 480px) {
    .hamburger-menu {
        width: 1.6rem;
        height: 1.6rem;
    }
    
    .hamburger-menu span {
        width: 1.6rem;
        height: 0.2rem;
    }
}

/* FIX: Mobile Navigation optimiert für alle mobile Geräte */
.mobile-nav { 
    display: flex; 
    flex-direction: column; 
    position: fixed; 
    top: 0; 
    left: 0; 
    height: 100vh;
    height: 100dvh; /* Dynamic Viewport Height für mobile Browser */
    width: 100%; 
    background: var(--color-background); 
    transform: translateX(-100%); 
    transition: transform 0.3s ease-in-out; 
    z-index: 1000; 
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    /* Verhindere Zoom auf Doppeltap */
    touch-action: manipulation;
}

.mobile-nav.open { 
    transform: translateX(0); 
}

.mobile-nav-content {
    padding: 120px 20px 40px 20px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-nav-controls { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 15px; 
    padding-bottom: 25px; 
    margin-bottom: 25px;
    border-bottom: 1px solid var(--color-stone);
    flex-shrink: 0;
}

.mobile-nav ul { 
    list-style: none; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.mobile-nav ul li { 
    margin: 0; 
    padding: 0; 
    text-align: center; 
    flex-shrink: 0;
    position: relative;
}

.mobile-nav ul li a { 
    text-decoration: none; 
    color: var(--color-secondary); 
    font-size: 1.6rem; 
    font-weight: 600; 
    display: block;
    padding: 18px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    /* Verbessere Touch-Target */
    min-height: 48px;
    line-height: 1.2;
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a:active,
.mobile-nav ul li a:focus {
    background: var(--color-light-gray);
    color: var(--color-primary);
    outline: none;
}

/* Mobile Scroll Controls - rechts positioniert */
.mobile-nav-scroll-controls {
    position: fixed;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1001;
    /* Nur in mobiler Navigation sichtbar */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav.open .mobile-nav-scroll-controls {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-scroll-controls .scroll-arrow {
    position: relative;
    bottom: auto;
    right: auto;
    width: 36px;
    height: 36px;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.mobile-nav-scroll-controls .scroll-arrow svg {
    width: 18px;
    height: 18px;
}

/* Zusätzlicher Fix: Sicherstellen, dass mobile-nav nur auf Mobile sichtbar ist */
@media (min-width: 993px) {
    .mobile-nav { 
        display: none !important; 
    }
}

/* FIX: Media Queries korrigiert */
@media (max-width: 992px) {
    .desktop-nav { display: none; }
    .hamburger-menu { display: flex; }
    /* mobile-nav bleibt auf display: flex für Mobile */
}
/* --- STILE FÜR NEUE SEITEN (PREISE, FAQ, RECHTLICHES) --- */
.content-page, .legal-page { padding-top: 150px; padding-bottom: 80px; }
.content-page h1, .legal-page h1 { text-align: center; margin-bottom: 60px; }
.content-page h2, .legal-page h2 { font-size: 2rem; margin-top: 40px; margin-bottom: 20px; border-bottom: 2px solid var(--color-primary); padding-bottom: 10px; }
.light-bg { background-color: var(--color-light-gray); }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.price-card { background: var(--color-background); border: 1px solid var(--color-stone); border-radius: 10px; text-align: center; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.price-card-header { background: var(--color-primary); color: var(--color-white); padding: 20px; }
.price-card-header h3 { color: var(--color-white); }
.price-card-header p { font-weight: 300; opacity: 0.9; }
.price-card-body { padding: 30px; }
.price-tag { font-size: 3rem; font-weight: 600; color: var(--color-secondary); display: block; }
.price-per-night { font-size: 1rem; color: var(--color-text); }
.price-info { text-align: center; margin-top: 40px; font-style: italic; }
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: center; margin-top: 40px;}
.step-number { width: 60px; height: 60px; border-radius: 50%; background: var(--color-primary); color: var(--color-white); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 600; margin: 0 auto 20px; }
.terms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px;}
.term-item { background: var(--color-background); padding: 20px; border-radius: 8px; border: 1px solid var(--color-stone); }
.term-item h4 { margin-bottom: 10px; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-stone); }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1.2rem; font-weight: 600; color: var(--color-secondary); }
.faq-icon { font-size: 1.5rem; transition: transform 0.3s; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background: var(--color-light-gray); }
.faq-answer p { padding: 20px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* --- MODAL FÜR STORNIERUNG --- */
.cancellation-link { color: var(--color-primary); text-decoration: underline; cursor: pointer; font-weight: 600; }
.cancellation-link:hover { text-decoration: none; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); z-index: 2000; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.open { display: flex; opacity: 1; }
.modal-content { background: var(--color-background); padding: 30px 40px; border-radius: 10px; max-width: 600px; width: 90%; position: relative; box-shadow: 0 5px 20px rgba(0,0,0,0.2); transform: scale(0.95); transition: transform 0.3s ease; max-height: 85vh; overflow-y: auto; }
.modal-overlay.open .modal-content { transform: scale(1); }
.modal-close { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 2.5rem; color: var(--color-text); cursor: pointer; line-height: 1; }
.modal-content h3 { text-align: center; margin-bottom: 25px; }
.cancellation-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.cancellation-table th, .cancellation-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--color-stone); }
.cancellation-table th { background-color: var(--color-light-gray); font-weight: 600; }
.cancellation-table tr:last-child td { border-bottom: none; }

/* Contact Table Styles */
.contact-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--color-background);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

[data-theme="dark"] .contact-table {
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.contact-table th,
.contact-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

[data-theme="dark"] .contact-table th,
[data-theme="dark"] .contact-table td {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-table th {
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    width: 30%;
}

.contact-table td {
    color: var(--color-text);
    font-weight: 300;
}

/* --- MEDIA QUERIES FÜR OPTIMALE MOBILE UNTERSTÜTZUNG --- */

/* Desktop und große Tablets */
@media (max-width: 992px) {
    .desktop-nav { display: none; }
    .hamburger-menu { display: flex; }
}

/* Tablets und mittlere Geräte */
@media (max-width: 768px) {
    .slide-content h1 { font-size: 2.5rem; }
    .impressions-grid { grid-template-columns: 1fr 1fr; }
    .location-content { grid-template-columns: 1fr; }
    #cookie-banner { flex-direction: column; }
    
    /* Scroll Arrows für Tablets */
    .scroll-down-arrow, .scroll-up-arrow { 
        width: 45px; 
        height: 45px; 
    }
    .scroll-down-arrow { bottom: 20px; right: 20px; }
    .scroll-up-arrow { bottom: 75px; right: 20px; }
    .scroll-arrow svg { width: 22px; height: 22px; }
    
    /* Mobile Navigation Anpassungen */
    .mobile-nav-content {
        padding: 100px 15px 30px 15px;
    }
    
    .mobile-nav ul li a {
        font-size: 1.5rem;
        padding: 16px 12px;
    }
}

/* Kleine Smartphones */
@media (max-width: 480px) {
    .slider-thumbnails { display: none; }
    .impressions-grid { grid-template-columns: 1fr; }
    
    /* Kleinere Scroll Arrows */
    .scroll-down-arrow, .scroll-up-arrow { 
        width: 40px; 
        height: 40px; 
    }
    .scroll-down-arrow { bottom: 15px; right: 15px; }
    .scroll-up-arrow { bottom: 65px; right: 15px; }
    .scroll-arrow svg { width: 20px; height: 20px; }
    
    /* Mobile Navigation für kleine Geräte */
    .mobile-nav-content {
        padding: 90px 12px 25px 12px;
    }
    
    .mobile-nav ul li a {
        font-size: 1.4rem;
        padding: 15px 10px;
    }
    
    .mobile-nav-controls {
        gap: 12px;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .mobile-nav-scroll-controls {
        right: 12px;
    }
    
    .mobile-nav-scroll-controls .scroll-arrow {
        width: 32px;
        height: 32px;
    }
    
    .mobile-nav-scroll-controls .scroll-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* Sehr kleine Geräte (iPhone SE, etc.) */
@media (max-width: 375px) {
    .mobile-nav-content {
        padding: 85px 10px 20px 10px;
    }
    
    .mobile-nav ul li a {
        font-size: 1.3rem;
        padding: 14px 8px;
    }
    
    .mobile-nav-scroll-controls {
        right: 10px;
    }
    
    .mobile-nav-scroll-controls .scroll-arrow {
        width: 30px;
        height: 30px;
    }
    
    .mobile-nav-scroll-controls .scroll-arrow svg {
        width: 14px;
        height: 14px;
    }
}

/* Landscape Modus für Smartphones */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-nav-content {
        padding: 70px 15px 15px 15px;
    }
    
    .mobile-nav ul li a {
        font-size: 1.2rem;
        padding: 12px 10px;
        min-height: 40px;
    }
    
    .mobile-nav-controls {
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    
    .mobile-nav-scroll-controls {
        gap: 8px;
    }
    
    .mobile-nav-scroll-controls .scroll-arrow {
        width: 28px;
        height: 28px;
    }
}

/* Sehr hohe Geräte (moderne iPhones, etc.) */
@media (min-height: 800px) {
    .mobile-nav ul li a {
        padding: 20px 15px;
        min-height: 52px;
    }
}

/* --- ERWEITERTE RECHTLICHE SEITEN STYLES --- */

/* Legal Page Layout - Vollständig an das Hauptdesign angepasst */
.legal-page {
    background: var(--color-background);
    min-height: 100vh;
    padding: 150px 0 80px;
}

[data-theme="dark"] .legal-page {
    background: var(--color-background);
}

.legal-page h1 { 
    font-size: 2.8rem; 
    text-align: center; 
    margin-bottom: 60px;
    color: var(--color-secondary);
    font-weight: 600;
    position: relative;
}

.legal-page h1:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
}

.legal-page h2 { 
    font-size: 2rem; 
    margin-top: 40px; 
    margin-bottom: 20px; 
    color: var(--color-secondary);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
    position: relative;
    font-weight: 600;
}

.legal-page h3 { 
    font-size: 1.5rem; 
    margin-top: 35px; 
    margin-bottom: 18px; 
    color: var(--color-primary);
    font-weight: 600;
    position: relative;
    padding-left: 20px;
}

.legal-page h3:before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 0.8em;
}

.legal-page h4 {
    font-size: 1.2rem;
    color: var(--color-secondary);
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: 600;
}

.legal-page p, 
.legal-page li { 
    margin-bottom: 16px; 
    line-height: 1.8;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 300;
}

.legal-page strong { 
    font-weight: 600;
    color: var(--color-secondary);
}

.legal-page ul { 
    list-style: none;
    margin-left: 0;
    padding-left: 25px;
}

.legal-page li { 
    margin-bottom: 12px;
    position: relative;
}

.legal-page li:before {
    content: '•';
    color: var(--color-primary);
    font-size: 1.2em;
    position: absolute;
    left: -20px;
    top: 0;
}

/* Links in rechtlichen Seiten */
.legal-page a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 400;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-page a:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

[data-theme="dark"] .legal-page a:hover {
    color: var(--color-primary);
}

.legal-page a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Zusätzliche Styles für rechtliche Seiten */
.legal-section {
    background: var(--color-white);
    border-radius: 10px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .legal-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.legal-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

[data-theme="dark"] .legal-section:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.legal-text {
    text-align: left;
}

/* Rights List and Highlight Boxes */
.rights-list {
    background: var(--color-background);
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--color-primary);
}

[data-theme="dark"] .rights-list {
    background: rgba(255, 255, 255, 0.03);
}

.rights-list h4 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.rights-list ul {
    margin: 0;
    padding-left: 0;
}

.rights-list li {
    margin-bottom: 10px;
    padding-left: 0;
}

.highlight-box,
.important-notice {
    background: linear-gradient(135deg, #f8f9fa, #e3f2fd);
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid var(--color-primary);
}

[data-theme="dark"] .highlight-box,
[data-theme="dark"] .important-notice {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,116,182,0.1));
    border: 1px solid rgba(0,116,182,0.3);
}

.highlight-box p,
.important-notice p {
    margin-bottom: 0;
    color: var(--color-text);
}

/* Mobile Anpassung für Gallery Navigation */
@media (max-width: 768px) {
    .gallery-navigation {
        gap: 15px;
        margin-top: 20px;
        padding: 15px 0;
    }
    
    .gallery-nav-button {
        width: 45px;
        height: 45px;
        padding: 10px;
    }
    
    .gallery-nav-button svg {
        width: 18px;
        height: 18px;
    }
}

/* --- ENDE GALLERY NAVIGATION STYLES --- */

/* --- ADDITIONAL INLINE STYLES CLEANUP --- */
/* About Section Styling */
.about-container {
    text-align: center;
}

/* Form Layout Styles */
.form-date-group {
    display: flex;
    gap: 20px;
}

.form-date-group .form-group {
    flex: 1;
}

/* Contact Info Styling */
.contact-info {
    text-align: center;
    margin-top: 20px;
}

.contact-direct-link {
    color: var(--color-primary);
    font-weight: 600;
}

/* Gallery Navigation Initial State */
.gallery-navigation {
    display: none; /* Initial state, JS will control visibility */
}

/* --- ENDE ADDITIONAL STYLES --- */

/* Loading Animation für Lightbox */
.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: lightbox-spin 1s linear infinite;
    z-index: 10002;
    display: none;
}

@keyframes lightbox-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.lightbox-img.loading + .lightbox-loading {
    display: block;
}

.impressions-grid .impressions-item.video-item {
    position: relative;
    cursor: pointer;
}

.impressions-grid .video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.impressions-grid .impressions-item.orientation-portrait video {
    object-fit: contain;
    background-color: #000;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Klicks gehen durch zum Video */
}

.video-overlay .play-icon {
    width: 64px;
    height: 64px;
    color: white;
    opacity: 0.8;
}

.impressions-item:hover .video-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Lightbox Video-Styling */
.lightbox-video-container {
    width: 100%;
    height: 100%;
    display: none; /* Wird per JS gesteuert */
    position: relative;
}

#lightbox-video-player {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#lightbox-video-player.orientation-portrait {
    height: 95%;
    width: auto;
}

#lightbox-video-player.orientation-landscape {
    width: 95%;
    height: auto;
}

/* Anpassung für den Schließen-Button, um über dem Video zu sein */
.lightbox-close {
    z-index: 10;
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}