/* SCH Partner-Links – zwei Logo-Buttons (Ligaportal / fan.at) */

.sch-pl-w {
    box-sizing: border-box;
    position: relative;
    width: min(calc(100vw - 40px), 1500px) !important;
    max-width: min(calc(100vw - 40px), 1500px) !important;
    margin-right: max(calc(50% - 750px), calc(50% - 50vw + 20px)) !important;
    margin-left: max(calc(50% - 750px), calc(50% - 50vw + 20px)) !important;
    font-family: "General Sans", system-ui, sans-serif;
}

.sch-pl-w > p:empty {
    display: none !important;
    margin: 0 !important;
}

.sch-pl-w__title {
    font-family: "Anton", system-ui, sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1;
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: var(--wp--preset--color--custom-sch-blue, #00006b);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .02em;
    overflow-wrap: anywhere;
}

.sch-pl-w__sub {
    margin: 0 0 clamp(22px, 3vw, 38px) !important;
    padding: 0 !important;
    text-align: center;
    font-size: clamp(.95rem, 1.1vw, 1.1rem);
    line-height: 1.45;
    color: rgba(0, 0, 107, .72);
}

.sch-pl-w__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 24px);
    align-items: stretch;
}

/* ── Karte ───────────────────────────────────────────────────────────────── */
.sch-pl-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #00006b;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    transition: transform .25s ease, box-shadow .25s ease;
}

a.sch-pl-card:hover,
a.sch-pl-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
    color: #fff;
    text-decoration: none;
}

a.sch-pl-card:focus-visible {
    outline: 3px solid #00006b;
    outline-offset: 3px;
}

/* Logo-Bildfläche – Farbe kommt inline aus den Plugin-Einstellungen */
.sch-pl-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 7;
    background: #fff;
    padding: clamp(22px, 3.4vw, 48px);
    box-sizing: border-box;
    /* Ohne min-height:0 überschreibt die Eigengröße des Logos das aspect-ratio
       und die beiden Karten werden unterschiedlich hoch. */
    min-height: 0;
    overflow: hidden;
}

/* Dunkle Logofläche: sichtbare Kante zur Leiste, sonst verschwimmt beides */
.sch-pl-card__logo.is-dark {
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.sch-pl-card__logo-img {
    display: block;
    width: auto;
    height: auto;
    /* Beide Logos auf dieselbe Breite bringen – das ist bei sehr unterschiedlichen
       Logo-Proportionen (breite Wortmarke vs. kompaktes Signet) der ruhigere Look.
       --sch-pl-logo-max wird bei Pixel-Logos serverseitig gesetzt (1,5× Originalbreite). */
    max-width: min(74%, var(--sch-pl-logo-max, 100%));
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Platzhalter, solange kein Logo hinterlegt ist */
.sch-pl-card__wordmark {
    font-family: "Anton", system-ui, sans-serif;
    font-size: clamp(1.6rem, 4.4vw, 3rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .01em;
    color: #00006b;
    text-align: center;
    overflow-wrap: anywhere;
}

.sch-pl-card__logo.is-dark .sch-pl-card__wordmark {
    color: #fff;
}

/* Beschriftungsleiste */
.sch-pl-card__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: clamp(16px, 1.8vw, 24px) clamp(18px, 2.2vw, 32px);
    background: #00006b;
}

.sch-pl-card__label {
    font-size: clamp(.78rem, .95vw, .9rem);
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: #fff;
    min-width: 0;
}

.sch-pl-card__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: #00006b;
    font-size: 1.05rem;
    line-height: 1;
    transition: transform .18s ease;
}

a.sch-pl-card:hover .sch-pl-card__arrow,
a.sch-pl-card:focus-visible .sch-pl-card__arrow {
    transform: translateX(3px);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .sch-pl-card__logo {
        aspect-ratio: 16 / 7.5;
    }
}

@media (max-width: 700px) {
    .sch-pl-w__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sch-pl-card {
        border-radius: 14px;
    }

    .sch-pl-card__logo {
        aspect-ratio: 16 / 7;
        padding: clamp(20px, 7vw, 40px);
    }

    .sch-pl-card__bar {
        padding: 14px 18px;
    }

    .sch-pl-card__label {
        font-size: .78rem;
        letter-spacing: .08em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sch-pl-card,
    .sch-pl-card__arrow {
        transition: none;
    }

    a.sch-pl-card:hover,
    a.sch-pl-card:focus-visible {
        transform: none;
    }

    a.sch-pl-card:hover .sch-pl-card__arrow,
    a.sch-pl-card:focus-visible .sch-pl-card__arrow {
        transform: none;
    }
}
