/* ProIT Header – transparent über dem Slider */
.container-header {
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: none;
}

/* =========================================
   ProIT Startseiten-Slider
   ========================================= */

/* Gesamter Kopfbereich mit Originalhintergrund */
.container-banner {
    position: relative;
    height: 620px;
    overflow: hidden;

    background-color: #2d72df;
    background-image: url('../images/bg_main.png');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

/* Joomla-Module als einzelne Slides */
.container-banner > .mod-custom {
    display: none;
    position: absolute;
    top: 120px;
    left: 0;
    width: 100%;
    height: 500px;
}

.container-banner > .mod-custom:first-child {
    display: block;
}

/* Sliderfläche */
.proit-slide {
    position: relative;
    width: 100%;
    height: 500px;
}

/* Notebook / Sliderbilder */
.proit-slide-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: auto;
    max-width: 65%;
    max-height: 100%;
    object-fit: contain;
}

/* ProIT Slider – Text am zentrierten Inhaltsbereich ausrichten */
.proit-slide-content {
    position: absolute;
    top: 30%;
    left: max(40px, calc((100% - 1200px) / 2));

    width: auto;
    max-width: 45%;
    padding: 0;
    margin: 0;
}

/* Überschrift */
.proit-slide h2 {
    color: #efefef;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 30px;
    text-shadow: none;
}

/* Button */
.proit-slide-button {
    display: inline-block;
    padding: 12px 28px;

    color: #efefef;
    background: transparent;
    border: 2px solid #efefef;
    border-radius: 30px;

    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
}

.proit-slide-button:hover {
    color: #2e5eba;
    background: #ffffff;
}

/* Mobile Darstellung */
@media (max-width: 767px) {
    .container-banner {
        height: 520px;
    }

    .container-banner > .mod-custom {
        top: 100px;
        height: 420px;
    }

    .proit-slide {
        height: 420px;
    }

    .proit-slide-image {
        top: 35%;
        max-width: 90%;
        max-height: 55%;
    }

    .proit-slide-content {
        top: 60%;
        left: 20px;
        max-width: calc(100% - 40px);
    }

    .proit-slide h2 {
        font-size: 26px;
    }
}

/* ProIT Slider – Navigationspfeile */
.proit-slider-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 25px;
    z-index: 10;
    pointer-events: none;
}

.proit-slider-navigation button {
    pointer-events: auto;
    background: transparent;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.proit-slider-navigation button:hover {
    opacity: 1;
}

/* =========================================
   ProIT Slider – Animationen
   ========================================= */

/* Ausgangszustand */
.proit-slide-image,
.proit-slide-content h2,
.proit-slide-button {
    opacity: 0;
}

/* Bildanimation */
.container-banner > .mod-custom.active .proit-slide-image {
    animation: proitImageIn 0.8s ease-out 1s forwards;
}

/* Textanimation */
.container-banner > .mod-custom.active .proit-slide-content h2 {
    animation: proitTextIn 0.8s ease-out 2s forwards;
}

/* Buttonanimation */
.container-banner > .mod-custom.active .proit-slide-button {
    animation: proitTextIn 0.8s ease-out 2.5s forwards;
}

/* Bild fliegt von links zur Mitte */
@keyframes proitImageIn {
    from {
        opacity: 0;
        transform: translate(calc(-50% - 250px), -50%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Text und Button fliegen von links ein */
@keyframes proitTextIn {
    from {
        opacity: 0;
        transform: translateX(-150px);
    }

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

/* =========================================
   ProIT Support-Bereich
   ========================================= */

.container-banner > .proit-support-module {
    display: block;
    position: absolute;
    top: 120px;
    right: max(30px, calc((100% - 1200px) / 2));
    left: auto;
    width: 300px;
    height: auto;
    z-index: 5;
}

.proit-support {
    background: #c41230;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 14px;
}

.proit-support h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 400;
    margin: 5px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.3);
}

.proit-support-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,.3);
}

.proit-support h4 {
    color: #fff;
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 12px;
}

.proit-support h4 a {
    color: #fff;
    text-decoration: none;
}

.proit-support p {
    color: #fff;
    margin: 8px 0 12px;
}

.proit-support-button {
    display: inline-block;
    background: #a90025;
    color: #fff;
    border-radius: 25px;
    padding: 7px 16px;
    text-decoration: none;
    font-size: 14px;
}

.proit-support-button:hover {
    background: #85001d;
    color: #fff;
}

.proit-support-footer {
    margin: 15px 0 0;
    color: #fff;
}

/* Mobile Darstellung */
@media (max-width: 991px) {

    .container-banner {
        height: auto;
        min-height: 0;
    }

    .container-banner > .mod-custom:not(.proit-support-module) {
        top: 100px;
        height: 420px;
    }

    .container-banner > .proit-support-module {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 100%;
        height: auto;
        margin-top: 450px;
    }

    .proit-support {
        width: 100%;
        box-sizing: border-box;
    }

    .proit-support-remote {
        display: none;
    }
}