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

.section-150-sponsoren>.wp-block-group {
    max-width: 1200px;
    margin-left: auto;
    margin-right: 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;
}

.sponsor-grid>* {
    min-width: 0;
}

/* 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);
}

.sponsor-gold .sponsor-title {
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    font-weight: 600;
}

.sponsor-silber .sponsor-title {
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    font-weight: 500;
}

.sponsor-bronze .sponsor-title {
    font-size: clamp(0.8rem, 1vw, 0.95rem);
    font-weight: 400;
    opacity: 0.85;
    letter-spacing: 0.02em;
}

.sponsor-item {
    width: 100%;
}

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

.sponsor-gold .sponsor-item img {
    /*height: clamp(140px, 16vw, 260px);
    max-height: clamp(140px, 16vw, 260px);
    */
    height: clamp(180px, 18vw, 300px);
    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);
    */
    height: clamp(110px, 12vw, 180px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
}

.sponsor-bronze .sponsor-item img {
    /*height: clamp(60px, 11vw, 140px);
    max-height: clamp(60px, 11vw, 140px);
    */
    height: clamp(60px, 8vw, 110px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {

    .sponsor-grid {
        display: grid;
        gap: 1.5rem;
        align-items: stretch;
        justify-items: center;
    }

    /* 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-title {
        font-size: clamp(1rem, 4vw, 1.3rem);
    }

    .sponsor-silber .sponsor-title {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    }

    .sponsor-bronze .sponsor-title {
        font-size: clamp(0.75rem, 3vw, 0.95rem);
    }

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

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

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

.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);
    word-break: break-word;
    overflow-wrap: anywhere;
}

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