/* =========================================================
   Chancenrechner - Schultyp-Auswahl
========================================================= */

.schultyp-direkt-button {
    display: grid !important;
    grid-template-columns: 230px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 20px !important;
    width: 100% !important;
    background: white !important;
    border: 2px solid #d4dde8 !important;
    border-radius: 14px !important;
    padding: 20px 24px !important;
    min-height: 88px !important;
    transition: all 0.18s ease !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    text-decoration: none !important;
    color: inherit !important;
    margin-bottom: 14px !important;
}

    .schultyp-direkt-button:hover {
        border-color: #2563eb !important;
        background: #f0f6ff !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12) !important;
        color: inherit !important;
        text-decoration: none !important;
    }

.schultyp-kuerzel {
    font-size: 34px !important;
    color: #111827 !important;
    line-height: 1.05 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

/*
   Für längere Schultyp-Bezeichnungen wie
   PTS / BMS / EWF.
*/
.schultyp-kuerzel-lang {
    font-size: 1.35rem !important;
    white-space: nowrap !important;
    letter-spacing: -0.025em !important;
    line-height: 1.1 !important;
}

.schultyp-beschreibung {
    min-width: 0 !important;
    color: #4b5563 !important;
    font-size: 17px !important;
    line-height: 1.4 !important;
}

.schultyp-anzahl {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 130px !important;
    padding: 9px 14px !important;
    border-radius: 999px !important;
    background: #eef2ff !important;
    color: #1d4ed8 !important;
    font-style: normal !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    white-space: nowrap !important;
}


/* =========================================================
   Chancenrechner - Leistungsniveau
========================================================= */

.leistungsniveau-row {
    display: flex;
    gap: 14px;
    margin-top: 12px;
    flex-wrap: wrap;
}

    .leistungsniveau-row label {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        font-size: 13px;
    }


/* =========================================================
   Chancenrechner MS / PTS / BMS / EWF - Leistungsniveau
========================================================= */

.leistungsniveau-auswahl {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.leistungsniveau-titel {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.leistungsniveau-optionen {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.leistungsniveau-chip {
    display: inline-flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
}

    .leistungsniveau-chip input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .leistungsniveau-chip span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        padding: 7px 12px;
        background: #ffffff;
        color: #475569;
        border: 1px solid #cbd5e1;
        border-radius: 999px;
        font-size: 13px;
        font-weight: 800;
        transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    }

    .leistungsniveau-chip:hover span {
        background: #f8fafc;
        border-color: #93c5fd;
        color: #1d4ed8;
    }

    .leistungsniveau-chip input:checked + span {
        background: #dbeafe;
        border-color: #2563eb;
        color: #1d4ed8;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    }

    .leistungsniveau-chip input:focus-visible + span {
        outline: 2px solid #2563eb;
        outline-offset: 2px;
    }


/* =========================================================
   Responsive Darstellung
========================================================= */

/*
   Auf mittelgroßen Bildschirmen reduzieren wir die
   reservierte Breite etwas, ohne dass PTS / BMS / EWF
   in die Beschreibung hineinragt.
*/
@media (max-width: 1050px) {

    .schultyp-direkt-button {
        grid-template-columns: 200px minmax(0, 1fr) auto !important;
        gap: 16px !important;
    }

    .schultyp-kuerzel-lang {
        font-size: 1.2rem !important;
    }

    .schultyp-beschreibung {
        font-size: 16px !important;
    }

    .schultyp-anzahl {
        min-width: 120px !important;
        font-size: 14px !important;
    }
}


/*
   Auf kleinen Bildschirmen werden die drei Bereiche
   untereinander dargestellt.
*/
@media (max-width: 800px) {

    .schultyp-direkt-button {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 18px 20px !important;
    }

    .schultyp-kuerzel {
        font-size: 30px !important;
        white-space: normal !important;
    }

    .schultyp-kuerzel-lang {
        font-size: 1.3rem !important;
        white-space: normal !important;
        letter-spacing: -0.015em !important;
    }

    .schultyp-beschreibung {
        font-size: 16px !important;
    }

    .schultyp-anzahl {
        justify-self: start !important;
        min-width: 0 !important;
    }
}


/*
   Sehr kleine Smartphones
*/
@media (max-width: 480px) {

    .schultyp-direkt-button {
        padding: 16px !important;
    }

    .schultyp-kuerzel {
        font-size: 27px !important;
    }

    .schultyp-kuerzel-lang {
        font-size: 1.15rem !important;
    }

    .schultyp-beschreibung {
        font-size: 15px !important;
    }

    .schultyp-anzahl {
        font-size: 13px !important;
        padding: 7px 11px !important;
    }
}
