/* Links hervorheben */
.link {
    color: var(--rib-blue) !important; /* Standardlinkfarbe */
    text-decoration: none;
    transition: color 0.3s ease;
}

.link:hover {
    color: var(--dark-grey) !important; /* Farbe beim Hover */
}

a:focus {
    outline: none;
}

/* Entfernt die Standard-Punkte der Listen */
ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* Kartenstruktur und allgemeine Stile */
.introduction {
    background-color: #fff;
    margin-top: 50px;
}

.cards-wrapper {
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 4rem;
    padding: 4rem;
    padding-top: 0;
    margin: 0 auto;
    width: max-content;
}

/* Kartenstil */
/* Kartenstil */
.card {
    height: 17em;
    width: 15em;
    font-size: 1.5em;
    color: #fff; /* Textfarbe auf Weiß gesetzt */
    border-radius: 13px;
    padding: 1em;
    display: flex;
    align-items: flex-start; /* Ausrichtung oben */
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 10px solid var(--white);
    text-decoration: none;
}


/* Überschriften innerhalb der Karten */
.card h5 {
    font-size: 1.2em; /* Unterschiedliche Größe für <h5> */
    margin-bottom: 2em;
    line-height: 1.3em;
    font-weight: 700 !important;
}

/* Anpassungen für Listenelemente */
.card li {
    font-size: 0.85em;
    margin-top: 1em;
    line-height: 1.5em;
    color: var(--black);
}

/* Tags */
.card .tags .tag {
    font-size: 0.75em;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0.3rem;
    padding: 0 0.5em;
    margin-right: 0.5em;
    line-height: 1.5em;
}

/* Pseudo-Elemente zur Animation */
.card:before,
.card:after {
    content: '';
    transform: scale(0);
    transform-origin: top left;
    border-radius: 50%;
    position: absolute;
    left: -50%;
    top: -50%;
    z-index: -5;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:before {
    background: #ddd;
    width: 250%;
    height: 250%;
}

.card:after {
    background: #3498db5e;
    width: 200%;
    height: 200%;
}

/* Nummerierung */
.card-grid-space .num {
    font-size: 3em;
    margin-bottom: 1.2rem;
    margin-left: 1rem;
}

/* Anpassungen für verschiedene Bildschirmgrößen */
@media screen and (max-width: 1285px) {
    .cards-wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .card {
        width: 12em;
    }
}

@media screen and (max-width: 900px) {
    .cards-wrapper {
        grid-template-columns: 1fr;
    }

    .card-grid-space .num {
        margin-left: 0;
        text-align: center;
    }
}

@media screen and (max-width: 500px) {
    .cards-wrapper {
        padding: 4rem 1rem;
        font-size: 13px;
    }

    .card {
        max-width: calc(100vw - 4rem);
    }
}
