/* Schnellzugriff */
.quicklinks-container {
    --quicklinks-accent-color: var(--main-headline-accent-color, #E67200);
    --quicklinks-text-color: #666666;

    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.quicklinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    grid-auto-rows: auto;
    margin-top: 25px;
}

.quicklink-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3; /* Icon, H3 und P */
    row-gap: 6px; /* Kontrolliert den Abstand zwischen Icon, H3 und P */

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #333333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Hover-Effekt für Interaktivität */
.quicklink-card:hover,
.quicklink-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--quicklinks-accent-color);
}

.quicklink-card .card-icon {
    font-size: 1rem;
    align-self: center;
    justify-self: center;
}

.quicklink-card .card-icon svg {
    display: block;
    width: 48px;
    height: 48px;
    margin-bottom: 5px;
    /* Füllfarbe entsprechend der Textfarbe setzen */
    color: var(--quicklinks-text-color);
}

.quicklink-card h3 {
    margin: 0 0 8px 0;
    color: var(--quicklinks-accent-color);
    font-size: 2.2rem;
    /* Richtet die Überschriften oben an der Zeile aus */
    align-self: start;
}

.quicklink-card p {
    margin: 0;
    font-size: 1.5rem;
    color: var(--quicklinks-text-color);
    line-height: 1.4;
    /* Richtet die Beschreibungstexte oben an der Zeile aus */
    align-self: start;
}

/* Responsive Anpassung für Mobilgeräte */
@media (width <= 73.45rem) {
    .quicklink-card h3 {
        /* Angabe von main h3 für schmale Viewports überschreiben */
        margin-top: 0px;
        /* Angabe von main h3 für schmale Viewports überschreiben */
        margin-bottom: 12px;
    }
    .quicklink-card p {
        /* Angabe von main p für schmale Viewports überschreiben */
        margin-top: 0px;
        /* Angabe von main p für schmale Viewports überschreiben */
        margin-bottom: 20px;
    }
}
@media (width <= 55rem) {
    .quicklinks-grid {
        grid-template-columns: 1fr;
    }
    .quicklink-card {
        /* Auf Handys ist kein Subgrid nötig, da untereinander */
        display: block;
        /* Ersatz für row-gap, das ohne Grid nicht wirkt */
        margin-bottom: 15px;
    }
}

@media (prefers-color-scheme: dark) {
    .quicklink-card {
        --quicklinks-text-color: hsl(0, 0%, 90%);

        background: hsl(220, 11%, 17%);
        border-color: #373737;
    }
}