:root {
    --primary-color: #245b41;
    --accent-color: #e18623;
    --hover-color: #346166;
    --background-gradient: linear-gradient(to bottom, white, #e8f5e9);
    --font-heading: 'Impact', sans-serif;
    --font-body: 'Comfortaa', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    min-height: 100vh;
    background: var(--background-gradient);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    height: 70px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    position: relative;
}

.logo-container {
    position: absolute;
    left: 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo {
    width: 211px;
    height: auto;
    display: block;
    opacity: 1;
    visibility: visible;
    margin: 0;
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-logo {
    width: 176px;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 20px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
    letter-spacing: 1px;
}

.navbar.scrolled .nav-link {
    color: var(--primary-color);
}

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

.social-links {
    position: absolute;
    right: 20px;
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 24px;
    height: 24px;
}

.social-icon path {
    fill: #e98435;
}

/* Hero Section & Slider */
.hero-section {
    position: relative;
    height: 100vh;
    margin-bottom: 0;
}

.welcome-text {
    position: absolute;
    bottom: 100px;
    right: 0;
    z-index: 2;
    text-align: right;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px 40px 20px 40px;
    border-radius: 8px 0 0 8px;
}

.welcome-text h1 {
    font-size: 3.5rem;
    margin: 0;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slider {
    height: 100%;
}

.slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.first-slide {
    background-position: center bottom;
}

.slide-3 {
    background-position: center top;
}

.slide-5 {
    background-position: center bottom;
}

/* Slick Customization */
.slick-dotted.slick-slider {
    margin-bottom: 0 !important;
}

.slick-list,
.slick-track {
    height: 100%;
}

.slick-prev,
.slick-next {
    width: 60px !important;
    height: 60px !important;
    background: none !important;
    z-index: 2;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.slick-prev:before {
    content: '' !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E") !important;
    width: 40px !important;
    height: 40px !important;
    display: block !important;
}

.slick-next:before {
    content: '' !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E") !important;
    width: 40px !important;
    height: 40px !important;
    display: block !important;
}

.slick-prev {
    left: 20px !important;
}

.slick-next {
    right: 20px !important;
}

.slick-prev:hover,
.slick-next:hover {
    background: none !important;
}

.slick-dots {
    bottom: 25px !important;
    z-index: 2;
    margin-bottom: 0 !important;
}

.slick-dots li {
    margin: 0 3px !important;
}

.slick-dots li button:before {
    font-size: 8px !important;
    color: white !important;
    opacity: 0.5 !important;
}

.slick-dots li.slick-active button:before {
    opacity: 1 !important;
    color: white !important;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    justify-items: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-list {
    list-style: none;
    text-align: center;
}

.services-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.check-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e98435' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}

/* Contact Section */
#contact {
    margin-top: 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-top: 40px;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

.contact-logo {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.contact-info p {
    margin: 5px 0;
    color: var(--primary-color);
}

.contact-links {
    margin-top: 20px;
}

.contact-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-links a:hover {
    color: var(--accent-color);
}

/* Footer */
.footer {
    background-color: #e98435;
    color: white;
    padding: 20px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}

/* Scroll Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.scroll-top-btn.visible {
    display: flex;
}

.scroll-top-btn svg {
    width: 24px;
    height: 24px;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
}

h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    text-align: left;
}

@media (max-width: 768px) {
    h2 {
        font-size: 2.2rem;
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 500px;
    }

    .slide {
        height: 500px;
    }

    .welcome-text {
        bottom: 60px;
        padding: 15px 30px 15px 30px;
    }

    .welcome-text h1 {
        font-size: 2.2rem;
    }

    .logo-overlay {
        display: none;
    }

    .nav-logo {
        width: 90px;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }

    .navbar.scrolled .nav-logo {
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        display: none !important;
    }

    .social-links {
        display: flex !important;
        position: absolute;
        right: 20px;
        gap: 15px;
    }

    .mobile-menu-btn {
        display: none;
    }

    .navbar {
        top: 0;
        height: 80px;
        transition: all 0.3s ease;
    }

    .navbar.scrolled {
        height: 50px;
    }

    .nav-logo {
        width: 150px;
        transition: all 0.3s ease;
    }

    .navbar.scrolled .nav-logo {
        width: 90px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-info {
        order: 2;
        align-items: center;
        text-align: center;
    }

    .map-container {
        order: 1;
        height: 300px;
    }

    .contact-logo {
        margin: 0 auto 25px;
    }

    .contact-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .contact-links a {
        text-align: center;
    }

    .glightbox-container .ginner-container {
        width: 100vw;
        height: 100vh;
    }

    .glightbox-container .gslide-description {
        display: none;
    }

    .glightbox-container .gbtn {
        width: 40px !important;
        height: 40px !important;
        background: rgba(0, 0, 0, 0.3) !important;
        border-radius: 50% !important;
    }

    .glightbox-container .gbtn.gnext {
        right: 10px;
    }

    .glightbox-container .gbtn.gprev {
        left: 10px;
    }

    /* Größere Touch-Fläche für die Pfeile */
    .glightbox-container .gbtn.gnext,
    .glightbox-container .gbtn.gprev {
        padding: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    html {
        scroll-padding-top: 80px;
    }

    section[id],
    #impressum h1 {
        scroll-margin-top: 80px;
    }

    .navbar.scrolled+main section[id],
    .navbar.scrolled+main #impressum h1 {
        scroll-margin-top: 50px;
    }

    .slick-dots {
        margin-bottom: 0 !important;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 20px;
    }

    .services-list {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        text-align: left;
        padding: 0 20px;
    }

    .services-list li {
        display: flex;
        align-items: flex-start;
        margin-bottom: 15px;
        text-align: left;
        width: 100%;
        padding-left: 0;
        margin-left: 0;
    }

    .check-icon {
        flex: 0 0 auto;
        width: 24px;
        height: 24px;
        margin-right: 10px;
        display: inline-block;
        background-size: contain;
    }

    .services-list li span {
        padding-top: 2px;
    }

    .services-list li:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 1024px) {
    .logo-overlay img {
        max-width: 400px;
    }
}

/* Rooms Section */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.room-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.room-card:hover {
    transform: translateY(-5px);
}

.room-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.room-content {
    padding: 20px;
}

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

.room-features li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: inherit;
    font-size: 1em;
}

.room-features .check-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e98435' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}

/* Gallery Section */
.gallery-section {
    margin-top: 40px;
    position: relative;
    padding: 60px 0;
}

.gallery-section .container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-section h2 {
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Logo Overlay */
.logo-overlay {
    display: none;
}

/* Intro Section */
.intro-section {
    padding: 100px 0;
    background-color: white;
    margin-bottom: 40px;
}

.intro-section h1 {
    text-align: center;
    margin-bottom: 30px;
}

.intro-section .intro-text {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Map Logo */
.logo-marker {
    background: white;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.logo-marker img {
    border-radius: 50%;
    background: white;
}

.room-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0;
}

.room-images img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0;
    cursor: pointer;
    transition: opacity 0.3s;
}

.room-images img:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .room-images {
        grid-template-columns: repeat(3, 1fr);
    }

    .room-images img {
        height: 100px;
    }
}

/* Legal Section */
.legal-section {
    margin-top: 60px;
    /* Abstand nach oben */
    margin-bottom: 40px;
}

.legal-section p {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Impressum Section */
#impressum h3 {
    margin-top: 40px;
    /* Abstand vor jeder Überschrift */
}

#impressum h1 {
    margin-top: 120px;
    scroll-margin-top: 90px;
    /* Auch für das Impressum */
}

#impressum p {
    margin-bottom: 15px;
    /* Konsistenter Abstand nach Paragraphen */
}

/* Scroll Behavior */
html {
    scroll-padding-top: 120px;
    scroll-behavior: smooth;
}

/* Anker-Ziele */
section[id] {
    scroll-margin-top: 120px;
}

/* Rooms Section */
.rooms-section {
    margin-top: 60px;
}

.mobile-contact-bar {
    display: none;
    background-color: var(--accent-color);
    padding: 4px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: 30px;
}

.mobile-contact-bar a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.mobile-contact-bar .separator {
    color: white;
    margin: 0 10px;
    font-weight: 300;
}

.mobile-contact-bar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.mobile-contact-bar .contact-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 20px;
}

.mobile-contact-bar .social-links {
    position: static;
    gap: 15px;
    margin-right: auto;
    margin-left: 20px;
}

.mobile-contact-bar .separator {
    color: white;
    margin: 0 10px;
    font-weight: 300;
}

.mobile-contact-bar .social-icon {
    width: 20px;
    height: 20px;
}

.mobile-contact-bar .social-icon path {
    fill: white;
}

@media (max-width: 768px) {
    .mobile-contact-bar {
        display: none;
    }

    .navbar {
        top: 0;
        height: 80px;
        transition: all 0.3s ease;
    }

    .navbar.scrolled {
        height: 50px;
    }

    .nav-logo {
        width: 150px;
        transition: all 0.3s ease;
    }

    .navbar.scrolled .nav-logo {
        width: 90px;
    }

    html {
        scroll-padding-top: 80px;
    }

    section[id],
    #impressum h1 {
        scroll-margin-top: 80px;
    }

    .navbar.scrolled+main section[id],
    .navbar.scrolled+main #impressum h1 {
        scroll-margin-top: 50px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d17820;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) #f1f1f1;
}

.parallax-stripe {
    height: 300px;
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('../images/slider/2.jpg');
    margin: 80px 0;
    width: 99vw;
    left: 50%;
    right: 50%;
    margin-left: -49.5vw;
    margin-right: -49.5vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 20%, 50% 0, 100% 20%, 100% 80%, 50% 100%, 0 80%);
}

.parallax-stripe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 1;
    clip-path: polygon(0 20%, 50% 0, 100% 20%, 100% 80%, 50% 100%, 0 80%);
}

.parallax-stripe::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/slider/2.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
    clip-path: polygon(0 20%, 50% 0, 100% 20%, 100% 80%, 50% 100%, 0 80%);
}

.parallax-logo {
    position: relative;
    z-index: 2;
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@media (max-width: 768px) {
    .parallax-stripe {
        height: 200px;
        margin: 60px auto;
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
        clip-path: polygon(0 15%, 50% 0, 100% 15%, 100% 85%, 50% 100%, 0 85%);
    }

    .parallax-stripe::before,
    .parallax-stripe::after {
        clip-path: polygon(0 15%, 50% 0, 100% 15%, 100% 85%, 50% 100%, 0 85%);
    }

    .parallax-logo {
        max-width: 120px;
        margin: 0 auto;
        display: block;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .logo-container {
        left: 30px;
    }

    .nav-links {
        left: 60%;
        transform: translateX(-50%);
    }

    .nav-logo {
        width: 180px;
    }

    .navbar.scrolled .nav-logo {
        width: 150px;
    }
}