/* ==========================================
   SPONSOREN LAYOUT
========================================== */

.section-150-sponsoren>.wp-block-group {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Abstand zwischen Gold/Silber/Bronze */
.sponsor-section {
    margin-bottom: clamp(4rem, 8vw, 6rem);
}

/* Überschriften */
.sponsor-heading {
    text-align: center;
    margin-bottom: 2.5rem;
    font-family: var(--wp--preset--font-family--oswald);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grid */
.sponsor-grid {
    display: grid;
    gap: 3rem;
    align-items: stretch;
    justify-items: center;
}

/* Visuelle Abstufung */
.sponsor-gold {
    /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
    grid-template-columns: repeat(2, 1fr);
}

.sponsor-silber {
    /*grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));*/
    grid-template-columns: repeat(3, 1fr);
}

.sponsor-bronze {
    /*grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));*/
    grid-template-columns: repeat(4, 1fr);
}

/* Einheitliche Logo-Höhe */
.sponsor-item {
    width: 100%;
}

.sponsor-item img {
    width: 100%;
    object-fit: contain;
    filter: none;
    transition: transform 0.3s ease;
    border-radius: 25px;
}

.sponsor-gold .sponsor-item img {
    height: clamp(140px, 16vw, 260px);
    max-height: clamp(140px, 16vw, 260px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.sponsor-silber .sponsor-item img {
    height: clamp(115px, 14vw, 215px);
    max-height: clamp(115px, 14vw, 215px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
}

.sponsor-bronze .sponsor-item img {
    height: clamp(90px, 11vw, 170px);
    max-height: clamp(90px, 11vw, 170px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {

    /* Visuelle Abstufung */
    .sponsor-gold {
        /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
        grid-template-columns: repeat(1, 1fr);
    }

    .sponsor-silber {
        /*grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));*/
        grid-template-columns: repeat(2, 1fr);
    }

    .sponsor-bronze {
        /*grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));*/
        grid-template-columns: repeat(2, 1fr);
    }

    .sponsor-gold .sponsor-item img {
        height: clamp(175px, 20vw, 325px);
        max-height: clamp(175px, 20vw, 325px);
    }

    .sponsor-silber .sponsor-item img {
        height: clamp(144px, 17.5vw, 269px);
        max-height: clamp(144px, 17.5vw, 269px);
    }

    .sponsor-bronze .sponsor-item img {
        height: clamp(113px, 13.75vw, 213px);
        max-height: clamp(113px, 13.75vw, 213px);
    }
}

.sponsor-item:hover img {
    transform: scale(1.05);
}

.sponsor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.sponsor-title {
    margin: 0;
    text-align: center;
    font-family: var(--wp--preset--font-family--oswald);
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--wp--preset--color--contrast);
}

.sponsor-item.visible {
    opacity: 1;
    transform: translateY(0);
}