/* Premium Boutique Hotel Design */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary-color: #FAFAF5;
    --secondary-color: #1a1a1a;
    --accent-color: #D4AF37;
    --text-color: #d1d1d1;
    --bg-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --navbar-bg: rgba(26, 26, 26, 0.95);
    --navbar-shadow: rgba(0, 0, 0, 0.3);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
    --primary-color: #2D3436;
    --secondary-color: #FAFAF5;
    --accent-color: #C5A059;
    --text-color: #4A4A4A;
    --bg-color: #FAFAF5;
    --card-bg: #FFFFFF;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-shadow: rgba(0, 0, 0, 0.05);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
    --border-color: rgba(0, 0, 0, 0.05);
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

body:not(.loading) .page-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body,
html {
    min-height: 100vh;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-bottom: 0;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-top: 0;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -1px;
}

h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 1rem auto 0;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Navigation */
.navbar {
    background-color: var(--navbar-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px var(--navbar-shadow);
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.navbar-brand-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
}

.navbar-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navbar-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--accent-color);
}

.navbar-link:hover::after,
.navbar-link.active::after {
    width: 100%;
}

.lang-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1rem;
    /* Slightly larger for better alignment */
    font-weight: 600;
    padding: 0 0.5rem;
    transition: color 0.3s ease;
    display: inline-block;
    /* Changed from flex to allow baseline alignment */
    border: 1px solid transparent;
    border-radius: 4px;
}

.lang-toggle:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Floating Book Button */
.floating-book-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #FF5A5F, #FF385C);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 25px rgba(255, 90, 95, 0.4);
    z-index: 1001;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-book-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 90, 95, 0.6);
}

.floating-book-btn i {
    font-size: 1.3rem;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 8px 25px rgba(255, 90, 95, 0.4);
    }

    50% {
        box-shadow: 0 8px 35px rgba(255, 90, 95, 0.6);
    }
}

/* Hero */
.parallax {
    background-image: url('Bilder/berlin1.jpeg');
    height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

.hero-content {
    max-width: 900px;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
}

.btn:hover {
    background-color: #b08d4b;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(197, 160, 89, 0.6);
}

.btn-airbnb {
    background-color: white;
    color: #FF5A5F;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-airbnb:hover {
    background-color: #FF5A5F;
    color: white;
    box-shadow: 0 8px 20px rgba(255, 90, 95, 0.4);
}

/* Section Divider */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.3;
}

/* Sections */
.section {
    padding: 6rem 2rem;
    background-color: var(--bg-color);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.section-text {
    flex: 1;
}

.section-image {
    flex: 1;
    position: relative;
}

.section-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.5s ease;
}

.section-image:hover img {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.section-text ul {
    list-style-type: none;
    padding: 0;
    margin-top: 2rem;
}

.section-text ul li {
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-text ul li:last-child {
    border-bottom: none;
}

.section-text ul li i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Gallery */
#photos {
    background-color: var(--bg-color);
    position: relative;
    z-index: 10;
    height: 2500vh;
    /* Significantly increased height for extended sticking effect */
}

.gallery-container {
    height: 100vh;
    display: flex;
    overflow: hidden;
    background-color: var(--bg-color);
    position: sticky;
    top: 80px;
    /* Offset for fixed navbar */
}

.gallery-text-col {
    width: 40%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    z-index: 50;
    /* Increased to ensure it stays above everything */
    background-color: var(--bg-color);
}

.gallery-text-wrapper {
    max-width: 400px;
    overflow: visible;
    /* Ensure no clipping */
}

.gallery-text-wrapper h3 {
    line-height: 1.4;
    padding: 0.2em 0;
    /* Add padding to account for ascenders/descenders */
    margin-bottom: 0.5rem;
}

.gallery-images-col {
    width: 60%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    visibility: hidden;
}

/* Map */
.map-container {
    width: 100%;
    /* Removed fixed height to allow iframe to resize */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* FAQ */
.faq-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.faq-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.faq-item p {
    margin-bottom: 0;
    font-size: 1rem;
}

.faq-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.faq-item a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.airbnb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.airbnb-link:hover {
    color: #FF5A5F;
}

.impressum-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.impressum-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Impressum Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.modal-content p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.modal-content a {
    color: var(--accent-color);
    text-decoration: none;
}

.modal-content a:hover {
    text-decoration: underline;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-color);
}




/* Reviews */
.reviews-carousel-container {
    position: relative;
    width: 100%;
}

.reviews-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0.5rem 3rem 0.5rem;
    /* Bottom padding for shadow/scrollbar space */
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: var(--accent-color) transparent;
    -webkit-overflow-scrolling: touch;
}

.reviews-carousel::-webkit-scrollbar {
    height: 6px;
}

.reviews-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.reviews-carousel::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 20px;
}

.review-card {
    flex: 0 0 350px;
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    scroll-snap-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.review-stars {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.review-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: auto;
}

.review-author {
    font-weight: 700;
    color: var(--primary-color);
}

.review-date {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Skeleton Loading */
.review-card-skeleton {
    flex: 0 0 350px;
    height: 300px;
    background-color: var(--card-bg);
    border-radius: 16px;
    animation: pulse-skeleton 1.5s infinite ease-in-out;
}

@keyframes pulse-skeleton {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

@media (max-width: 768px) {
    .review-card {
        flex: 0 0 300px;
        padding: 2rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Compact Mobile Header */
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-container {
        padding: 0 1rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
        /* Smaller font to fit one line */
        white-space: nowrap;
        /* Prevent wrapping */
    }

    .menu-toggle {
        font-size: 1.2rem;
    }

    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--navbar-bg);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .navbar-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .section-content {
        flex-direction: column;
        gap: 2rem;
    }

    .section-image {
        order: -1;
    }

    /* Mobile Gallery - Clean Vertical Design */
    #photos {
        height: auto;
        /* Remove sticky scroll height on mobile */
        padding: 2rem 0 4rem 0;
    }

    .gallery-container {
        position: relative;
        /* Remove sticky positioning */
        height: auto;
        flex-direction: column;
        overflow: visible;
        gap: 2.5rem;
        padding: 0 1rem;
    }

    .gallery-text-col {
        display: none;
        /* Hide the separate text column on mobile */
    }

    .gallery-images-col {
        width: 100%;
        height: auto;
        position: relative;
        overflow: visible;
        padding: 0;
        background-color: transparent;
    }

    .gallery-image-wrapper {
        position: relative;
        height: auto;
        overflow: visible;
        background-color: transparent;
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
    }

    .gallery-image {
        position: relative;
        /* Change from absolute to relative */
        width: 100%;
        height: auto;
        min-height: 250px;
        max-height: 400px;
        object-fit: cover;
        object-position: center;
        visibility: visible;
        /* Always visible */
        border-radius: 12px;
        box-shadow: var(--shadow-soft);
        background-color: var(--card-bg);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .gallery-image:active {
        transform: scale(0.98);
    }

    /* Mobile gallery captions */
    .mobile-gallery-caption {
        background-color: var(--card-bg);
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: var(--shadow-soft);
        margin-top: -1rem;
        margin-bottom: 1rem;
    }

    .mobile-gallery-caption h3 {
        font-size: 1.3rem;
        color: var(--accent-color);
        margin: 0 0 0.5rem 0;
        font-family: 'Playfair Display', serif;
    }

    .mobile-gallery-caption p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin: 0;
        color: var(--text-color);
    }

    /* Mobile gallery captions */
    .mobile-gallery-caption {
        background-color: var(--card-bg);
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: var(--shadow-soft);
        margin-top: -1rem;
        margin-bottom: 1rem;
    }

    .mobile-gallery-caption h3 {
        font-size: 1.3rem;
        color: var(--accent-color);
        margin: 0 0 0.5rem 0;
        font-family: 'Playfair Display', serif;
    }

    .mobile-gallery-caption p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin: 0;
        color: var(--text-color);
    }

    .floating-book-btn span {
        display: true;
    }

    .floating-book-btn {
        padding: 1rem;
        border-radius: 50px;
        bottom: 1.5rem;
        right: 1.5rem;
        /* Ensure button is visible and doesn't get cut off */
    }

    .footer {
        padding-bottom: 8rem;
        /* Add extra space at bottom for floating button and browser toolbar clearing */
    }
}

/* Wide Screen Optimization */
@media (min-width: 1920px) {

    .section-container,
    .navbar-container,
    .footer-container,
    .faq-content {
        max-width: 1600px;
    }

    .gallery-container {
        max-width: 1800px;
        margin: 0 auto;
    }

    .hero-content {
        max-width: 1000px;
    }
}

body {
    max-width: 2200px;
    margin: 0 auto;
}