@import url("../../components/globals/base.css");
@import url("../../components/navbar/navbar.css");
@import url("../../components/globals/content.css");
@import url("../../components/footer/footer.css");
@import url("../../components/cookie/cookie.css");


:root {
    --trust-marquee-duration: 22s;
    --trust-marquee-distance: 50%;
}

.trust-marquee {
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    margin-top: 20px;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.trust-marquee__track {
    display: inline-flex;
    flex-wrap: nowrap;
    will-change: transform;
    animation: trust-marquee-move var(--trust-marquee-duration, 22s) linear infinite;
}

.trust-marquee__group {
    display: flex;
    gap: 10px;
    margin-right: 10px;
    flex-wrap: nowrap;
}

.trust-pill {
    flex: 0 0 auto;
    white-space: nowrap;
}

@keyframes trust-marquee-move {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(calc(-1 * var(--trust-marquee-distance, 50%)), 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .trust-marquee {
        overflow: visible;
    }

    .trust-marquee__track {
        animation: none;
        transform: none;
        display: flex;
    }

    .trust-marquee__group {
        flex-wrap: wrap;
    }

    .trust-marquee__group .trust-pill:nth-child(n + 4) {
        display: none;
    }
}

/* -- ↓ ↓ ↓ Custom styles for Zertifikate Section ↓ ↓ ↓ -- */
.leistungen-cert .cert-grid {
    text-align: left !important;
}

.leistungen-cert .cert-left p {
    margin-left: 0 !important;
    max-width: none !important;
}

.leistungen-cert .cert-tiles {
    margin-left: 0 !important;
    max-width: none !important;
    justify-content: start !important;
}

    .leistungen-cert .cert-tile {
    max-width: 200px !important;
}

/* -- Weitere Leistungen Karten-Grid (further-services-grid) -- */
.further-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 18px;
}

@media (min-width: 768px) {
    .further-services-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .further-services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Spalten nebeneinander auf Mobile */
        gap: 10px;
    }

    .further-services-grid .card {
        padding: 12px;
        min-height: 180px; /* Einheitliche Mindesthöhe für Ausgewogenheit */
        display: flex;
        flex-direction: column;
    }

    .further-services-grid .card h3 {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .further-services-grid .card p {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .further-services-grid .card .list {
        display: none; /* Listen auf Mobile ausblenden, um Platz zu sparen */
    }

    /* Zertifikat-Kacheln auf Mobile in 2er-Reihen */
    .leistungen-cert .cert-tiles {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .leistungen-cert .cert-tile {
        max-width: 100% !important; /* In Grid-Zelle füllen */
    }
}

@media (min-width: 980px) {
    .leistungen-cert .cert-grid > div:first-child {
        margin: 0 !important;
        max-width: 100% !important;
    }
}
