/* Styles shared by the German and English homepages. */

.home-video-media {
    height: 620px;
    object-fit: cover;
    object-position: center center;
}

.home-header {
    position: fixed !important;
    top: 0;
    min-height: 112px;
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 8px 30px rgba(24, 29, 36, 0.12);
    backdrop-filter: blur(12px);
}

.home-header .de-flex {
    min-height: 112px;
}

.home-header #mainmenu > li > a {
    padding-top: 34px;
    padding-bottom: 34px;
}

.home-header div#logo > a {
    padding: 0;
    background: transparent !important;
    border-radius: 0;
    box-shadow: none !important;
    height: 112px;
    align-items: center;
}

.home-header div#logo img {
    width: auto;
    height: 68px;
    max-width: 220px;
    max-height: 68px;
    margin: 0;
    background: transparent !important;
    box-shadow: none !important;
    filter: none;
}

.home-header div#logo img.logo-main {
    display: block !important;
}

.home-header div#logo img.logo-scroll,
.home-header div#logo img.logo-mobile {
    display: none !important;
}

.home-header #mainmenu > li > a,
.home-header #mainmenu > li.has-child::after {
    color: var(--heading-font-color);
}

.home-header .home-contact-button,
.home-header .home-contact-button:active,
.home-header .home-contact-button:focus,
.home-header .home-contact-button:visited {
    background: var(--primary-color);
    color: #ffffff;
    border: 0;
}

.home-header .home-contact-button:hover {
    background: #6b7280;
    color: #ffffff;
}

.home-hero {
    min-height: 680px;
    background-position: center center;
    background-size: cover;
}

.home-hero p {
    white-space: normal;
    overflow-wrap: break-word;
}

.home-offer-step {
    white-space: normal;
}

.home-offer-step img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    flex-shrink: 0;
}

.home-offer-step > div {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.home-video-player {
    background: #000;
}

.home-video-play-circle {
    background: var(--primary-color) !important;
    box-shadow: 0 0 0 8px rgba(var(--primary-color-rgb), 0.25);
    width: 120px;
    height: 120px;
    border-radius: 999px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    transform: none !important;
}

.home-video-play-circle span {
    transform: scale(1.15);
}

#home-video-play {
    z-index: 3;
}

@media (max-width: 767.98px) {
    .home-video-media,
    .home-video-player {
        height: 360px;
    }

    .home-hero {
        min-height: 560px;
    }

    .home-hero h1 {
        font-size: 42px;
        line-height: 1.08;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .home-hero p {
        max-width: 100%;
    }
}

.video-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.video-lightbox.is-open {
    display: flex;
}

.video-lightbox-inner {
    width: min(1100px, 96vw);
    max-height: 90vh;
    position: relative;
}

.video-lightbox video {
    width: 100%;
    max-height: 90vh;
    height: auto;
    display: block;
    border-radius: 10px;
    background: #000;
}

.video-lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.home-top-tile {
    height: 465px;
}

.home-top-tile img {
    height: 100%;
    object-fit: cover;
}

.home-cta-card {
    padding-bottom: 2.5rem !important;
}

.home-cta-note {
    position: relative !important;
    max-width: 100%;
    margin-top: 2rem;
    margin-bottom: 0;
}

.home-cta-actions {
    margin-top: 1.25rem;
}

@media (max-width: 991.98px) {
    .home-cta-card {
        padding-bottom: 2rem !important;
    }

    .home-cta-note {
        max-width: 100%;
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }

    .home-cta-actions .btn-main {
        width: 100%;
        text-align: center;
    }
}

/* Keep the English hero heading wrappable at every viewport width. */
.home-hero .home-hero-title {
    white-space: normal;
    overflow-wrap: anywhere;
}
