.fnw-list .partner-list {
    position: relative;
    max-width: 1280px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: grid;
    gap: 20px;
    align-items: start;
    padding: 0 30px;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 820px) {
    .fnw-list .partner-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1100px) {
    .fnw-list .partner-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Grid: Overflow-Schutz */
.fnw-list .partner-list > * { min-width: 0; }

/* Card */
.fnw-list .partner-svg {
    position: relative;
    aspect-ratio: 2 / 1;
    width: 100%;
    max-width: 350px;
    background-color: var(--wp--preset--color--custom-color-5);
    border: 1px solid var(--wp--preset--color--custom-color-4);
    border-radius: 5px;
    overflow: hidden;

    /* Kein Flex hier – wir arbeiten mit einem inneren Fit-Layer */
    display: block;
}

/* Fit-Layer füllt die Karte (Padding hier statt am Parent, damit Prozenthöhen sicher funktionieren) */
.fnw-list .partner-svg .wp-block-outermost-icon-block {
    position: absolute;
    inset: 5px;                 /* ersetzt dein padding:10px am Parent */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;              /* vermeidet zusätzliche Zeilenhöhe */
    width: auto !important;
    height: auto !important;
}

/* Universal: SVG/IMG im Fit-Layer skalieren, Seitenverhältnis erhalten */
.fnw-list .partner-svg svg,
.fnw-list .partner-svg img {
    display: block;
    width: auto !important;      /* überschreibt evtl. Inline width */
    height: auto !important;     /* überschreibt evtl. Inline height */
    max-width: 100%;
    max-height: 100%;
}

/* Sicherheit: SVGs mit Inline-Dimensionen hart neutralisieren */
.fnw-list .partner-svg svg[width],
.fnw-list .partner-svg svg[height] {
    width: auto !important;
    height: auto !important;
}

/* Hover-Effekt auf den Wrapper statt direkt am SVG -> weniger “Springen” */
.fnw-list .partner-svg .wp-block-outermost-icon-block {
    transition: transform 0.25s ease-in-out;
}

.fnw-list .partner-svg:hover .wp-block-outermost-icon-block {
    transform: scale(1.05);

}

/* Optional: wenn du zusätzlich eine eigene Icon-Wrapper-Klasse nutzt */
.fnw-list .icon-container {
    position: absolute;
    inset: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: auto !important;
}
