﻿/* =========================================================
   VARIABLES / THEME
   ========================================================= */
:root {
    --dropdown-bg: #07a9e6;
    --dropdown-hover: #47c7ff;
    --mobile-header-h: 52px;
    --sticky-left-pad: 56px;
    --mobile-menu-bg: #253944;
}


/* =========================================================
   HEADER / NAV: GRUNDLAGEN
   ========================================================= */
.header .header-nav .header-nav-wrapper .container {
    position: relative;
}

.nav-logo-compact {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    opacity: 0;
    z-index: 5;
    transition: opacity .2s ease;
}

    .nav-logo-compact img {
        height: 50px;
        width: auto;
    }

#top-brand {
    transition: opacity .25s, height .25s, margin .25s;
}


/* =========================================================
   DESKTOP (≥992px)
   ========================================================= */
@media (min-width: 992px) {

    .body--header-stuck #top-brand {
        opacity: 0;
        height: 0;
        margin: 0;
        overflow: hidden;
    }

    .body--header-stuck .nav-logo-compact {
        display: block;
        opacity: 1;
    }

    .body--header-stuck #menuzord {
        padding-left: var(--sticky-left-pad) !important;
    }

    .body--header-stuck .header-nav-wrapper {
        padding: 6px 0;
    }
}


/* =========================================================
   MOBILE (≤991px)
   ========================================================= */
@media (max-width: 991px) {

    .nav-logo-compact {
        display: none !important;
        opacity: 0 !important;
    }

    .body--header-stuck .nav-logo-compact {
        display: block !important;
        opacity: 1 !important;
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5;
    }

    .header-nav .header-nav-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 3000;
        min-height: var(--mobile-header-h);
    }

    body.has-mobile-fixed-header {
        padding-top: var(--mobile-header-h);
    }

    #menuzord {
        padding-left: 0 !important;
    }

        #menuzord .showhide {
            float: right;
        }

    .menuzord-responsive .menuzord-menu {
        position: fixed !important;
        top: var(--mobile-header-h);
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - var(--mobile-header-h));
        overflow-y: auto;
        z-index: 2000;
        background-color: var(--mobile-menu-bg) !important;
        color: #fff;
    }

        .menuzord-responsive .menuzord-menu > li > a {
            padding: 12px 16px;
            color: #fff !important;
            border-bottom: 1px solid rgba(255,255,255,.08);
        }

        .menuzord-responsive .menuzord-menu ul.dropdown {
            display: none;
            background: transparent !important;
            box-shadow: none !important;
        }
}


/* =========================================================
   DROPDOWN (DESKTOP)
   ========================================================= */
@media (min-width: 992px) {

    .menuzord-menu > li {
        position: relative;
    }

    .menuzord-menu ul.dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--dropdown-bg) !important;
        border-radius: 14px;
        padding: 8px 0;
        min-width: 180px;
        box-shadow: 0 12px 30px rgba(0,0,0,.25);
        z-index: 9999;
    }

        .menuzord-menu ul.dropdown > li > a {
            padding: 10px 18px;
            margin: 2px 8px;
            color: #fff !important;
            border-radius: 999px;
            transition: background .12s ease;
        }

            .menuzord-menu ul.dropdown > li > a:hover {
                background: var(--dropdown-hover) !important;
            }
}


/* =========================================================
   NEWS
   ========================================================= */
.news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-text {
    max-height: 120px;
    overflow: hidden;
}

.news-readmore {
    margin-top: auto;
}


/* =========================================================
   HORSEMANSHIP IMAGES
   ========================================================= */
.hs-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}


/* =========================================================
   GALLERY
   ========================================================= */
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}


/* =========================================================
   HERO CAROUSEL (BOOTSTRAP)
   ========================================================= */

/* Feste Höhe für Carousel & Slides */
#heroCarousel,
#heroCarousel .carousel-inner,
#heroCarousel .item.hero-slide {
    height: 65vh;
    min-height: 420px;
}

@media (max-width: 991px) {
    #heroCarousel,
    #heroCarousel .carousel-inner,
    #heroCarousel .item.hero-slide {
        height: 75vh;
    }
}

/* Slides übereinander legen (Fix gegen "untereinander") */
#heroCarousel .carousel-inner {
    position: relative;
}

    #heroCarousel .carousel-inner > .item {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    #heroCarousel .carousel-inner > .active {
        position: relative;
    }

/* Bild füllt den festen Rahmen */
.hero-carousel .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}


/* =========================================================
   HERO TEXT
   ========================================================= */
.hero-caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0,0,0,.45);
    max-width: 560px;
    padding: 0 20px;
}

.hero-right {
    right: 30px;
    text-align: right;
}

.hero-center {
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.hero-line1 {
    font-size: 42px;
    font-weight: 600;
    text-transform: uppercase;
}

.hero-line2 {
    font-size: 72px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-line3 {
    font-size: 18px;
    line-height: 1.7;
}

@media (max-width: 991px) {
    .hero-line1 {
        font-size: 26px;
    }

    .hero-line2 {
        font-size: 40px;
    }

    .hero-line3 {
        font-size: 15px;
    }
}

.hero-icon {
    font-size: 72px;
    margin-bottom: 10px;
}
