/* Sticky CTA (Desktop) */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 15px;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.sticky-cta a.btn {
    font-size: 0.9rem;
}

/* Mobile CTA */
.mobile-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.mobile-cta:hover {
    background-color: var(--dark-color);
}

/* Progress Bar */
#progressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background-color: var(--accent-color);
    width: 0%;
    z-index: 9999;
    transition: none !important;
}

/* Ensure CTA, navbar toggler and progress bar never get 3D transforms */
.mobile-cta,
.navbar-toggler-icon,
#progressBar {
    transform: none !important;
    transition: none !important;
}

/* Winter mode background */
#winter.winter-mode,
#jahreszeiten.winter-mode {
    background-color: #f0f4f7;
    transition: background-color 0.5s ease-in-out;
}

:root {
    --primary-color: #7a9d54;
    --secondary-color: #c6d8af;
    --accent-color: #e9b384;
    --dark-color: #4c4c47;
    --light-color: #f8f7f3;
    --white: #ffffff;
    --transition: all 0.3s ease-in-out;
}

body {
    max-width: 100vw;
    overflow-x: hidden;
    font-family: 'Quicksand', sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}


.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('/img/sommer/pferde-weide-sonnenuntergang-schermbeck.webp') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    backdrop-filter: brightness(0.8) blur(2px);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1.2s;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: subtitleFadeIn 0.6s ease-out forwards;
    animation-delay: 0.1s;
}

@keyframes subtitleFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-bg {
    background-color: var(--white);
}

/* Über uns */
.about-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content {
    padding: 0 20px;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Leistungen */
.service-card {
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    background-color: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-title {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Gallery */
.gallery-container {
    position: relative;
    overflow: hidden;
}

.gallery-item {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    transition: var(--transition);
}

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

.gallery-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.gallery-control {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--dark-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-control:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* FAQ */
.accordion-item {
    margin-bottom: 1rem;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background-color: var(--white);
    color: var(--dark-color);
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    padding: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    background-color: var(--white);
}

/* Contact */
.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
}

.contact-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 15px;
    min-width: 40px;
}

.form-control {
    padding: 12px 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--secondary-color);
}

/* Map */
.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Reviews */
.review-card {
    padding: 30px;
    border-radius: 10px;
    background-color: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    height: 100%;
}

.review-stars {
    color: #FFD700;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
}

.review-author {
    font-weight: 600;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-text {
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-links h4 {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-links h4:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

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

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

/* Swiper */
.swiper {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    /* verhindert Überlauf der Slides */
}

.swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    aspect-ratio: 4 / 3;
}

@media (max-width: 768px) {
    #seasonTabs .nav-link {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .swiper-slide img {
        height: auto;
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 576px) {}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.7rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    section {
        padding: 80px 0;
    }
}

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    section {
        padding: 60px 0;
    }

    .about-img {
        margin-bottom: 30px;
    }

    .navbar-collapse {
        background-color: var(--white);
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    right: 15px;
    bottom: 15px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    bottom: 25px;
}

.back-to-top:hover {
    background-color: var(--dark-color);
    color: var(--white);
    transform: translateY(-3px);
}

.fade-in-on-scroll {
    opacity: 0;
    visibility: hidden;
}

.fade-in-on-scroll.animate__animated.animate__fadeInUp {
    opacity: 1;
    visibility: visible;
    animation-delay: var(--delay-order, 0) * 100ms;
}

#seasonTabs .nav-link {
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
}

#seasonTabs .nav-link.active {
    background-color: var(--primary-color);
    color: var(--white);
    position: relative;
}

/* 
#summer-tab.active::after {
    content: "☀️";
    position: absolute;
    top: -10px;
    right: -15px;
    font-size: 1.5rem;
    animation: sunRise 0.8s ease-out;
}

#winter-tab.active::after {
    content: "❄️";
    position: absolute;
    top: -10px;
    right: -15px;
    font-size: 1.5rem;
    animation: snowDrop 0.8s ease-out;
}

@keyframes sunRise {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes snowDrop {
    from {
        transform: scale(0.5) translateY(-10px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
} */

/* Navbar shrink effect */
.navbar.shrink {
    padding: 5px 0;
    transition: var(--transition);
}

.navbar .navbar-brand img {
    transition: var(--transition);
}

.navbar.shrink .navbar-brand img {
    height: 50px !important;
}

html,
body {
    height: 100%;
}

#jahreszeiten {
    display: flex;
    align-items: center;
}

.tab-pane {
    transition: background-color 0.6s ease;
}

.tab-pane#winter {
    background-color: rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    #jahreszeiten {
        height: auto;
    }
}


button,
.btn {
    min-height: 48px;
    padding: 0.75rem 1rem;
}

/* Galerie-Bilder gleichmäßig anzeigen */
.gallery-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    /* Oder 1 / 1, je nach gewünschtem Verhältnis */
    overflow: hidden;
    border-radius: 10px;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}