/* stylesheet_index.css - Modernized */
:root {
    /* Harmonious Color Palette */
    --primary-color: #A67341;
    /* Warm saddle brown */
    --primary-hover: #8B5A2B;
    --text-main: #2C3E50;
    /* Slate gray for main text */
    --text-light: #F8F9FA;
    /* Off-white */
    --bg-color: #FDFBF7;
    /* Premium soft off-white replacement for blanchedalmond */
    --nav-glass: rgba(253, 251, 247, 0.85);
    /* Glassmorphism background */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body.body_index {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* -----------------------------
   Navigation Module
----------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--nav-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.img_logo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.img_logo:hover {
    transform: rotate(5deg) scale(1.05);
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.navi_link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

/* Animated hover underline */
.navi_link:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

.navi_link:not(.btn-primary):focus::after,
.navi_link:not(.btn-primary):hover::after {
    width: 100%;
}

.navi_link:not(.btn-primary):hover {
    color: var(--primary-color);
}

/* Call to Action Navigation Button */
.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.7rem 1.4rem;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(166, 115, 65, 0.3);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(166, 115, 65, 0.4);
}

/* -----------------------------
   Dropdown Submenu
----------------------------- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown>.navi_link {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Kleiner Pfeil nach unten */
.nav-dropdown>.navi_link::before {
    content: '';
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-top-color: var(--text-main);
    transition: var(--transition);
}

.nav-dropdown:hover>.navi_link::before {
    border-top-color: var(--primary-color);
    transform: translateY(-25%) rotate(0deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 200px;
    background: var(--nav-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 10px 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1100;
}

/* Brücke damit das Dropdown nicht zuklappt beim Übergang */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 0;
    width: 100%;
    height: 18px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 22px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
    border-radius: 8px;
    margin: 2px 6px;
}

.dropdown-menu a:hover {
    background: rgba(166, 115, 65, 0.1);
    color: var(--primary-color);
    padding-left: 28px;
}

/* Mobile: Dropdown immer sichtbar, eingerückt */
@media (max-width: 768px) {
    .nav-dropdown>.navi_link::before {
        display: none;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        pointer-events: all;
        box-shadow: none;
        border: none;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        min-width: unset;
        width: 100%;
        border-radius: 0;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-menu a {
        background: rgba(255, 255, 255, 0.25);
        text-align: center;
        margin: 2px 0;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    .dropdown-menu a:hover {
        padding-left: 22px;
    }
}

/* -----------------------------
   Hero Module
----------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('Ranch_luftaufnahme3.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    padding-top: 140px;
    /* Added spacing to prevent overlap with the fixed navbar */
    padding-bottom: 80px;
    /* Added padding for spacing at the bottom */
}

/* Dark gradient overlay for text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(44, 62, 80, 0.45) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    color: var(--text-light);
}

.h1_title {
    font-size: 4rem;
    /* Modern large typography */
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 45px;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 35px;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background-color: white;
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* -----------------------------
   Micro-Animations
----------------------------- */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

/* -----------------------------
   Responsive Breakpoints
----------------------------- */
@media (max-width: 900px) {
    .h1_title {
        font-size: 3rem;
    }

    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
        position: absolute;
    }

    .nav-links {
        margin-top: 1rem;
        gap: 0.5rem;
        flex-direction: column;
        width: 100%;
    }

    .navi_link {
        width: 100%;
        text-align: center;
        padding: 0.8rem 0;
        background: rgba(255, 255, 255, 0.4);
        border-radius: 8px;
    }

    .navi_link:hover::after {
        display: none;
        /* Disable underline on mobile buttons */
    }

    .hero {
        background-attachment: scroll;
        min-height: 100vh;
        padding-top: 180px;
        /* Offset for stacked absolute nav */
        padding-bottom: 60px;
        /* Added spacing at the bottom on mobile */
    }

    .h1_title {
        font-size: 2.2rem;
    }

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

    .page-header {
        padding: 220px 15px 50px !important;
        /* Larger top padding because stacked nav is taller */
    }

    .section-title {
        font-size: 2rem;
    }
}

/* -----------------------------
   Subpages Styles (Über uns)
----------------------------- */
.content-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.owner-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    background: white;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.owner-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.owner-image-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.2rem;
}

.owner-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.owner-content p {
    margin-bottom: 20px;
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.8;
}

@media (max-width: 900px) {
    .owner-section {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}

/* -----------------------------
   Pferdepension / Services Cards
----------------------------- */
.pension-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.pension-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pension-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.card-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(166, 115, 65, 0.1);
    /* Primary color with opacity */
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.pension-card:hover .card-icon {
    background-color: var(--primary-color);
    color: white;
}

.pension-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.pension-card p {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.7;
}

.pension-card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.pension-card:hover .pension-card-img {
    transform: scale(1.02);
}

/* -----------------------------
   Dienstleistungen Cards
----------------------------- */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 40px;
    margin-top: 40px;
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.service-card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-card-img {
    transform: scale(1.02);
}

.service-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-card-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card-description {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-card-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    flex: 1;
}

.service-card-features li {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: auto;
}

/* -----------------------------
   Feature Lists (Pferdepension)
----------------------------- */
.feature-list {
    list-style: none;
    margin-bottom: 2rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.6;
}

.feature-icon {
    flex-shrink: 0;
    color: var(--primary-color);
    margin-top: 4px;
}

.feature-list strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* -----------------------------
   Wide Card & Slideshow
----------------------------- */
.wide-card {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 40px;
    text-align: left;
}

.wide-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wide-card-slider {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeSlide 35s infinite forwards;
}

.slide-1 {
    background-image: url('Außenbereich1.jpg');
    animation-delay: 0s;
}

.slide-2 {
    background-image: url('Reithalle_alt.jpg');
    animation-delay: 5s;
}

.slide-3 {
    background-image: url('Reithalle_neu.jpg');
    animation-delay: 10s;
}

.slide-4 {
    background-image: url('Heuraufe_XXL.jpg');
    animation-delay: 15s;
}

.slide-5 {
    background-image: url('Stall1.jpg');
    animation-delay: 20s;
}

.slide-6 {
    background-image: url('Weide1.jpg');
    animation-delay: 25s;
}

.slide-7 {
    background-image: url('Weide2.jpg');
    animation-delay: 30s;
}

@keyframes fadeSlide {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    20% {
        opacity: 1;
    }

    25% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* -----------------------------
   Page Header (Subpages)
----------------------------- */
.page-header {
    background-position: center;
    background-size: cover;
    padding: 160px 20px 80px;
    text-align: center;
    color: var(--text-light);
}

@media (max-width: 900px) {
    .pension-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .services-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .pension-card,
    .service-card {
        padding: 25px;
    }

    .wide-card {
        flex-direction: column;
    }

    .wide-card-slider {
        width: 100%;
        min-height: 250px;
    }

    .content-section {
        padding: 40px 5%;
    }
}

/* -----------------------------
   News Card Module (Homepage)
   ----------------------------- */
.news-card {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 30px 40px;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.news-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 15px;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(166, 115, 65, 0.3);
}

.news-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: white;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.news-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    gap: 8px;
    transition: var(--transition);
}

.news-link:hover {
    color: #e6b88a;
}

.news-link svg {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.news-link:hover svg {
    transform: translateX(6px);
}

.delay-3 {
    animation-delay: 0.6s;
}

@media (max-width: 768px) {
    .news-card {
        padding: 20px 25px;
        margin-top: 30px;
        max-width: 100%;
    }

    .news-title {
        font-size: 1.35rem;
    }

    .news-text {
        font-size: 0.95rem;
    }
}

/* -----------------------------
   Slideshow / Gallery Module
----------------------------- */
.slideshow-container {
    max-width: 900px;
    position: relative;
    margin: 50px auto 0 auto;
}

.gallery-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background: #cbd5e1;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 2;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slideshow Prev / Next buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    padding: 0;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s ease;
    border-radius: 50%;
    user-select: none;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

/* Slideshow dot indicators */
.dot-container {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    background-color: #cbd5e1;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.4s ease, transform 0.2s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* -----------------------------
   Ausstattung / Amenities Grid
----------------------------- */
.amenities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.amenity-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid rgba(166, 115, 65, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

.amenity-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(166, 115, 65, 0.15);
    border-color: var(--primary-color);
}

.amenity-icon {
    font-size: 1.25rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.section-title-small {
    font-size: 1.25rem;
    font-family: inherit;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

/* -----------------------------
   Ausstattung / Amenities Grid
----------------------------- */
.amenities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.amenity-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid rgba(166, 115, 65, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

.amenity-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(166, 115, 65, 0.15);
    border-color: var(--primary-color);
}

.amenity-icon {
    font-size: 1.25rem;
    color: var(--primary-color);
    flex-shrink: 0;
}