/* Allgemeine Styling für die Seminare */
.seminare {
    justify-content: center; /* Zentriert alle Inhalte */
    align-items: center; /* Zentriert vertikal, falls nötig */
    flex-direction: column; /* Stellt sicher, dass die Kacheln untereinander gestapelt werden, falls Platz nicht ausreicht */
    padding: 50px 0; /* Zusätzlicher Abstand oben und unten */
}


.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.tab-buttons {
    display: flex;
    justify-content: center; /* Zentriert die Kacheln horizontal */
    gap: 20px; /* Abstand zwischen den Kacheln */
    flex-wrap: wrap; /* Kacheln in die nächste Zeile umbrechen */
    max-width: 1000px; /* Begrenzung der maximalen Breite */
    margin: 0 auto; /* Zentriert den Container innerhalb seines Eltern-Elements */
    padding: 0 15px; /* Fügt einen kleinen Innenabstand für kleinere Bildschirme hinzu */
}


.tab-kachel {
    position: relative;
    flex: 1 1 45%; /* Breitere Kacheln bei flexibler Anpassung */
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    height: 450px; /* Erhöhte Höhe */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tab-kachel::before {
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 10px; /* Abgerundete Ecken nur für das Bild */
    z-index: -1; /* Hinter den Inhalt der Kachel setzen */
}

.tab-kachel.training::before {
    background-image: url('https://shop-rib.com/storage/app/media/RIB%20Shop%202024/Startseite/training.png');
}

.tab-kachel.academy::before {
    background-image: url('https://shop-rib.com/storage/app/media/RIB%20Shop%202024/Startseite/pexels-christina-morillo-1181345.jpg');
}

.tab-kachel.consulting::before {
    background-image: url('https://www.shop-rib.com/storage/app/media/RIB%20Shop%202024/Consulting%20Plus/consultion_plus.jpeg');
}

.tab-kachel.customizing::before {
    background-image: url('https://www.shop-rib.com/storage/app/media/customizing/computer-1.png');
}

.tab-kachel.site::before {
    background-image: url('https://www.shop-rib.com/storage/app/media/RIB%20Shop%202024/Startseite/Unbenannt%20-%202025-12-08T115723.880.png');
}

.tab-kachel.elearning::before {
    background-image: url('https://shop-rib.com/storage/app/media/RIB%20Shop%202024/Startseite/Rectangle-4654.webp');
}

.tab-kachel:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Anpassungen */
@media (max-width: 1024px) {
    .tab-kachel {
        flex: 1 1 60%; /* Kleinere Kacheln auf mittelgroßen Bildschirmen */
        height: 400px;
    }
}

@media (max-width: 768px) {
    .tab-kachel {
        flex: 1 1 100%; /* Volle Breite auf kleinen Bildschirmen */
        height: 350px;
    }
}

@media (max-width: 480px) {
    .tab-kachel {
        flex: 1 1 100%;
        height: 300px;
    }
}


/* Content innerhalb der Kachel */
.tab-content {
    background-color: #fff !important;
    color: #0056A3; /* RIB Blau */
    padding: 15px;
    text-align: center;
    width: 100%;
    border-radius: 0 0 10px 10px;
}

.tab-content h5 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.tab-content {
    display: inline-block;
    margin-top: 5px;
    font-size: 14px;
    color: #0056A3;
    text-decoration: none;
    font-weight: bold;
}

.course-info {
    padding: 15px 15px 0px 15px;
    text-align: center;
    height: 91px;
}

.course-infob {
    padding: 0px 15px 0px 15px;
    text-align: center;
    height: 240px;
}


.course-info h5 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #007BFF;
}

.course-info p {
    font-size: 16px;
    color: #666;
}

.mehr-dazu {
    color: #0067b1 !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    justify-content: center !important;
}

.mehr-dazu:hover {
    color: var(--leadership-green) !important;
}


.arrow {
    font-weight: 400;
    font-size: 11px;
    color: var(--rib-blue);
    text-transform: none;
    line-height: 1;
    width: 32px;
    flex: 0 0 32px;
    vertical-align: middle;
    position: relative;
}

/* Popup Styling */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: block;
    opacity: 1;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 1200px;
    max-height: 80%;
    padding: 20px;
    text-align: center;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.popup-content h2 {
    font-size: 24px;
    font-weight: bold;
    color: #0056A3;
    margin-bottom: 15px;
}

.courses-popup {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-items: center;
}

.courses-popup .course {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 230px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.courses-popup .course:hover {
    transform: scale(1.05);
}

.courses-popup .course img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.courses-popup .course-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    text-align: center;
}

.courses-popup .course-info h5 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #007BFF;
}

.courses-popup .course-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.courses-popup .mehr-dazu {
    margin-top: auto;
    color: #0067b1;
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    text-decoration: none;
    justify-content: center;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    background: #f5f5f5;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-popup:hover {
    background: #ff4d4d;
    color: white;
}

/* Responsive Design */


@media (max-width: 768px) {
    .courses-popup {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .courses-popup {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        padding: 15px;
    }

    .courses-popup {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .courses-popup {
        grid-template-columns: 1fr;
    }

    .popup-content h2 {
        font-size: 20px;
    }

    .courses-popup .course-info h5 {
        font-size: 16px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tab-kachel {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }

    .tab-kachel {
        width: 80%;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .tab-kachel {
        width: 90%;
        height: 200px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tab-kachel {
        max-width: 30%; /* Reduziert die Breite der Kacheln */
        height: 300px; /* Passt die Höhe an */
    }
}

@media (max-width: 768px) {
    .tab-buttons {
        flex-direction: column; /* Kacheln untereinander anordnen */
        align-items: center;
    }

    .tab-kachel {
        max-width: 80%; /* Breitere Kacheln für kleine Bildschirme */
        height: 250px; /* Kleinere Höhe */
    }
}

@media (max-width: 480px) {
    .tab-kachel {
        max-width: 90%; /* Fast volle Breite des Displays */
        height: 200px; /* Reduzierte Höhe */
    }
}