/* Ergänzungen für die statische Version (ersetzt GLightbox- und MediaElement-CSS) */

/* --- Header ---
   Die Kachel (oben.png) hängt am linken Seitenrand. Damit das Burger-Menü bei
   keiner Fensterbreite in die Kacheln rutscht, sitzt es ebenfalls fest links
   statt im zentrierten Container. */
header {
    position: relative;
}

header .container {
    max-width: none;
    padding-left: 24px;
    padding-right: 24px;
}

header .tile {
    transform: translate(-10px, -70px);
}

header .dropdown-menu {
    z-index: 1010;
}

header .logo {
    max-width: 100%;
}

header .burger-icon .btn {
    padding-left: 0;
}

/* --- Tablet und Handy --- */
@media (max-width: 991.98px) {
    /* Fixe Hintergründe zoomen auf Mobilgeräten stark ins Bild */
    .hero {
        background-attachment: scroll !important;
        height: auto;
        min-height: min(66.7vw, 60vh);
    }
}

@media (max-width: 767.98px) {
    header .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .content-container {
        width: 100%;
    }

    .headline-container h1,
    .headline-container h2 {
        font-size: 1.6rem;
        padding: 20px 0;
    }

    /* Leistungen untereinander statt drei schmale Spalten */
    .section-grid .row > .col {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .section-grid .row > .col:last-child {
        margin-bottom: 0;
    }

    .section-grid .image-holder img {
        width: 100%;
        height: auto;
    }

    /* Begriffswolke */
    .section-tag_cloud .tile {
        display: block;
        width: 120px;
        margin: 0 auto 1.5rem;
    }

    .section-tag_cloud .col-lg-8 .row {
        justify-content: center;
        row-gap: 0.25rem;
    }

    .section-tag_cloud .col-lg-8 .col {
        flex: 0 0 auto;
        width: auto;
    }

    .section-tag_cloud .h2 {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }

    .section-tag_cloud .text-end {
        text-align: center !important;
        margin-top: 1rem;
    }

    /* Videos untereinander */
    .grid-videos .row > .col {
        flex: 0 0 100%;
    }

    /* Footer */
    footer .site-info {
        align-self: flex-start !important;
        margin-top: 1.5rem;
    }

    /* Konfigurator: fast bildschirmfüllend */
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-body iframe {
        height: calc(100vh - 120px);
    }
}

.wp-video {
    max-width: 100%;
}

.wp-video video {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.lightbox[hidden] {
    display: none;
}

.lightbox.is-open {
    opacity: 1;
}

.lightbox figure {
    margin: 0;
    max-width: calc(100vw - 140px);
    max-height: 100vh;
    text-align: center;
}

.lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 100px);
    object-fit: contain;
}

.lightbox figcaption {
    margin-top: 0.75rem;
    color: #fff;
}

.lightbox button {
    position: absolute;
    border: 0;
    background: rgba(0, 0, 0, 0.32);
    color: #fff;
    font-size: 2.25rem;
    line-height: 1;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.lightbox button:hover,
.lightbox button:focus-visible {
    background: rgba(0, 0, 0, 0.7);
}

.lightbox button[hidden] {
    display: none;
}

.lightbox-close {
    top: 15px;
    right: 15px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 575.98px) {
    .lightbox figure {
        max-width: 100vw;
    }

    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 20px;
        transform: none;
    }
}
