.partner-panel{
    max-width: 1200px;
    margin: 20px auto;
    overflow: visible;
    position: relative;
}

/* Body: KEINE feste Mindesthöhe */
.partner-panel-body{
    background: #202a2a;
    padding: 18px 12px 18px;   /* oben Platz für Titel */
    /* min-height: 90px;  <-- raus! */
}

/* Head ohne Hintergrund, leicht runter */
.partner-panel--noheadbg .partner-panel-head{
    background: transparent;
    color: #fff;
    font-size: 22px;
    font-family: 'Asimovian', sans-serif;
    letter-spacing: 3px;
    padding: 0 12px;
    margin-bottom: -8px;
    position: relative;
    top: 8px;
    z-index: 2;
}

/* Grid */
.affiliates-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, max-content));
    gap: 6px;                 /* kleinerer Abstand */
    justify-content: start;   /* Grid nicht auseinanderziehen */
    align-items: center;
margin-top: 5px;
}

/* Button-Look + Overlay-Container */
.affiliates-grid a{
    display: inline-block;
    width: fit-content;
    background: #324040;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    padding: 3px;
    transition: transform .15s ease, opacity .15s ease;

    position: relative;   /* WICHTIG für Overlay */
    overflow: hidden;     /* Overlay bleibt innerhalb */
}

/* leichtes Overlay, das das Bild verblasst */
.affiliates-grid a::after{
    content: "";
    position: absolute;
    inset: 0;                 /* füllt den ganzen Button */
    background: rgba(0,0,0,0.30);  /* Stärke des Verblassens */
    opacity: 1;
    transition: opacity .2s ease;
    pointer-events: none;     /* Hover bleibt auf dem Link */
}

/* beim Hover verschwindet das Overlay */
.affiliates-grid a:hover::after{
    opacity: 0;
}

.affiliates-grid img{
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
}

/* Hover */
.affiliates-grid a:hover{
    transform: translateY(-2px);
    opacity: .9;
}
