/* Globale Einstellungen */
:root {
    --primary-color: #2c3e50; /* Dunkles Schiefergrau */
    --accent-color: #c0392b; /* Warmes Alpen-Rot */
    --bg-color: #f8f9fa; /* Sehr helles Grau */
    --text-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Offset for fixed header */
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    line-height: 1.2;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Navigation */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    padding: 10px 0;
}

.logo {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--accent-color);
}

.btn-book {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.2);
    transition: all 0.3s ease;
}

.btn-book:hover {
    background-color: #a93226;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.3);
}

/* Hero Sektion */
.hero {
    height: var(--hero-height-desktop, 80vh);
    min-height: 400px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1486870591958-9b9d0d1dda99?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero h1, .hero h2 {
    color: white;
    font-size: clamp(1.4rem, 4.5vw, 4.5rem);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.2;
    word-break: keep-all;
}

.hero p, .hero .editable {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #a93226;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Info Sektion */
.info-section {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 100px 0;
}

.info-text {
    flex: 1;
}

.info-text h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.info-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.features {
    list-style: none;
    margin-top: 25px;
}

.features li {
    margin-bottom: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.features li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

.info-image {
    flex: 1;
    position: relative;
}

.info-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.info-image img:hover {
    transform: translateY(-5px);
}

/* Buchungs Sektion (iFrame) */
.booking-section {
    background-color: white;
    padding: 100px 0;
}

.text-center {
    text-align: center;
    margin-bottom: 15px;
}

.iframe-wrapper {
    margin-top: 40px;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background-color: #fafafa;
}

/* Footer */
footer {
    background-color: var(--footer-bg, var(--primary-color));
    color: var(--footer-color, white);
    padding: 50px 0;
    margin-top: 50px;
}

/* Responsive (Handy) */
@media (max-width: 768px) {
    .info-section {
        flex-direction: column;
    }
    .hero h1, .hero h2 {
        font-size: clamp(1rem, 6vw, 2.5rem);
        padding: 0 10px;
    }
    nav ul {
        gap: 15px;
    }
    .btn-book {
        display: none; /* Auf ganz kleinen Displays Button oben ausblenden */
    }
}


/* --- Bildergalerie --- */
.gallery-section {
    padding: 80px 20px;
}

.gallery-grid {
    display: grid;
    /* Macht die Galerie responsive: Spalten sind mind. 300px breit, sonst passen sich an */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* Sorgt dafür, dass die Bilder nicht verzerrt werden */
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1); /* Sanfter Zoom-Effekt beim Darüberfahren */
}

/* --- Lightbox (Vollbild-Ansicht) --- */
.lightbox {
    display: none; /* Standardmäßig ausgeblendet */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dunkler, halbtransparenter Hintergrund */
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

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

.close-lightbox:hover {
    color: var(--accent-color);
}

@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.9);}
    to {opacity: 1; transform: scale(1);}
}

/* Editor Button */
#toggle-edit-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    z-index: 9999;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
}

#toggle-edit-btn:hover {
    transform: scale(1.05);
}


/* Bild-Upload Styles */
.admin-img-wrapper {
    position: relative;
}

.upload-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Versteckt den Button normalerweise */
    transition: opacity 0.3s;
}

/* Zeigt den Button an, wenn man mit der Maus über das Bild fährt */
.admin-img-wrapper:hover .upload-overlay {
    opacity: 1;
}

.upload-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.upload-btn:hover {
    background-color: #a93226;
}

/* Admin Color Panel */
#admin-color-panel {
    position: fixed;
    top: 100px;
    left: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    width: 250px;
    border-left: 4px solid var(--accent-color);
}

#admin-color-panel h3 {
    font-size: 16px;
    margin-bottom: 15px;
    font-family: sans-serif;
}

#admin-color-panel label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    font-family: sans-serif;
    cursor: pointer;
}

#admin-color-panel input[type="color"] {
    border: none;
    width: 40px;
    height: 30px;
    cursor: pointer;
    background: none;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}
.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.2s;
}
.lightbox-nav:hover {
    background: rgba(255,255,255,0.4);
}
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

/* --- Mobile Fixes (iOS & Android) --- */
body, html {
    overflow-x: hidden; /* Verhindert links/rechts Wackeln auf Handys */
    width: 100%;
}

img, iframe, video {
    max-width: 100%; /* Verhindert, dass Medien aus dem Container ausbrechen */
}

.embedded-widget-container iframe {
    width: 100% !important;
    min-height: 400px; /* Sichert eine gute Höhe für YouTube/Google Maps */
}

/* EasyBooking spezifische mobile Anpassung */
#ebFrontEndFrame {
    width: 100% !important;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Touch-Ziele & Mobile Menü */
@media (max-width: 768px) {
    /* Zeige den Hamburger Button */
    #mobile-menu-toggle {
        display: block !important;
    }

    /* Verstecke das Menü standardmäßig auf Mobile */
    #main-nav {
        display: none;
        position: absolute;
        top: 80px; /* Unterhalb des Headers */
        left: 0;
        width: 100%;
        background-color: var(--header-bg);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 99;
        padding: 20px;
    }

    /* Wenn das Menü aktiv ist */
    #main-nav.active {
        display: block;
    }

    #main-menu {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    nav a {
        padding: 15px;
        text-align: center;
        display: block;
        border-radius: 5px;
    }
    
    .btn-primary, .btn-book {
        display: block;
        text-align: center;
        width: 100%;
        margin-top: 10px;
    }

    /* Damit Logo-Ausrichtung auf Mobile besser aussieht */
    .nav-container {
        justify-content: space-between !important;
        flex-direction: row !important;
    }
    
    .hero {
        height: var(--hero-height-mobile, 60vh);
        min-height: 350px;
    }
}

/* Footer Menü Links (überschreibt die globalen nav a Styles) */
#footer-menu a {
    background: none !important;
    padding: 5px 10px !important;
    font-size: 14px !important;
    font-weight: normal !important;
    color: var(--footer-color, white) !important;
}
#footer-menu a:hover {
    color: var(--accent-color) !important;
    text-decoration: underline;
}
/* Google Translate Fixes */
.goog-te-banner-frame { display: none !important; }
body { top: 0px !important; }
.goog-te-gadget { color: transparent !important; font-size:0; }
.goog-te-gadget .goog-te-combo { color: var(--text-color); font-size: 14px; padding: 5px; border-radius: 4px; border: 1px solid #ccc; }


/* Mobile Page Block Fix */
@media (max-width: 768px) {
    .page-block { width: 100% !important; }
}
