/* =========================================================
   01 - Hintergrund und Grundlayout
========================================================= */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    color: #222;
}

    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-image: url("/bilder/1.jpg");
        background-size: cover;
        background-position: center;
        filter: blur(2px);
        transform: scale(1.1);
        z-index: -1;
    }

/* =========================================================
   02 - Schrift und Logo
========================================================= */

@font-face {
    font-family: 'FreestyleScript';
    src: url('/fonts/FreestyleScript.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* =========================================================
   03 - Kopfbereich und Menü
========================================================= */

.kopfbereich {
    background-color: #000000;
    padding: 20px 0;
    text-align: center;
}

.kopf-logo {
    font-family: 'FreestyleScript', cursive;
    font-size: 60px;
    font-style: italic;
    letter-spacing: 1px;
    display: inline-block;
}

.logo-rot {
    color: #044bf5;
    font-weight: normal;
}

.logo-punkte {
    color: #ffffff;
    margin: 0 6px;
}

.logo-weiss {
    color: #ffffff;
}

.logo-text {
    color: #ffffff;
    margin-left: 10px;
    font-size: 60px;
}

.menuleiste {
    background-color: #111111;
    border-bottom: 2px solid #333;
}

.menu {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    max-width: 1280px;
}

    .menu li {
        margin-right: 15px;
    }

        .menu li.rechts {
            margin-left: auto;
        }

    .menu a {
        display: block;
        padding: 10px 0;
        color: #ffffff;
        text-decoration: none;
        font-size: 14px;
    }

        .menu a:hover {
            color: #1c8ae8;
            text-decoration: underline;
        }

        .menu a.aktiv {
            color: #4d8dc6;
            font-weight: bold;
        }

/* =========================================================
   04 - Allgemeine Inhaltsbereiche
========================================================= */

.hauptinhalt {
    max-width: 1100px;
    margin: 40px auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 10px;
    backdrop-filter: blur(2px);
}

.content-box {
    max-width: 1100px;
    margin: 40px auto;
    background-color: rgba(255, 255, 255, 0.95);
    color: #222;
    padding: 25px;
    border-radius: 10px;
    backdrop-filter: blur(2px);
}

/* =========================================================
   05 - Moderne kompakte Startseite / Anmeldung
========================================================= */

.start-kompakt {
    max-width: 980px;
    margin: 0 auto;
}

.start-kompakt-hero {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(238, 246, 255, 0.96));
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    text-align: center;
}

.start-kompakt-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
}

.start-kompakt-hero h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.15;
    color: #111827;
    font-weight: 800;
}

.start-kompakt-einleitung {
    max-width: 820px;
    margin: 12px auto 0 auto;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.55;
}

.start-kompakt-aktionen {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 18px;
}

.start-kompakt-button-primary,
.start-kompakt-button-secondary {
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    line-height: 1.2;
}

.start-kompakt-button-primary {
    background: #2563eb;
    color: white;
    border: 1px solid #2563eb;
}

    .start-kompakt-button-primary:hover {
        background: #1d4ed8;
        border-color: #1d4ed8;
        color: white;
    }

.start-kompakt-button-secondary {
    background: white;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

    .start-kompakt-button-secondary:hover {
        background: #eff6ff;
        color: #1d4ed8;
        border-color: #93c5fd;
    }

.start-kompakt-hinweise {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}

    .start-kompakt-hinweise h2 {
        margin: 0 0 14px 0;
        color: #111827;
        font-size: 24px;
    }

.start-hinweis-liste {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.start-hinweis {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
}

    .start-hinweis:first-child {
        border-top: none;
        padding-top: 0;
    }

.start-hinweis-symbol {
    width: 30px;
    height: 30px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 13px;
    flex-shrink: 0;
}

.start-hinweis h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    color: #111827;
}

.start-hinweis p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.45;
}

.start-hinweis strong {
    display: block;
    margin-top: 5px;
    color: #1d4ed8;
    font-size: 14px;
}

.start-kompakt-links {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
    text-align: center;
}

    .start-kompakt-links h2 {
        margin: 0 0 18px 0;
        color: #111827;
        font-size: 24px;
        text-align: center;
    }

.start-link-kompakt-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
}

.start-link-kompakt-card {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    gap: 10px;
    align-items: center;
    width: 260px;
    min-height: 74px;
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
    text-align: left;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
}

    .start-link-kompakt-card:hover {
        background: #eff6ff;
        border-color: #2563eb;
        color: inherit;
    }

    .start-link-kompakt-card span {
        width: 36px;
        height: 36px;
        background: #eef2ff;
        color: #1d4ed8;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 900;
        font-size: 14px;
        flex-shrink: 0;
    }

    .start-link-kompakt-card h3 {
        margin: 0;
        font-size: 16px;
        color: #111827;
        font-weight: 700;
    }

    .start-link-kompakt-card p {
        margin: 2px 0 0 0;
        font-size: 13px;
        line-height: 1.35;
        color: #64748b;
    }

/* =========================================================
   06 - Tabellen
========================================================= */

.anmeldungstabelle {
    width: 100%;
    border-collapse: collapse;
}

    .anmeldungstabelle th {
        background-color: #e6e6e6;
        border: 1px solid #999;
        padding: 8px;
        text-align: left;
    }

    .anmeldungstabelle td {
        border: 1px solid #ccc;
        padding: 8px;
    }

    .anmeldungstabelle tr:nth-child(even) {
        background-color: #f5f5f5;
    }

/* =========================================================
   07 - Buttons und Formulare allgemein
========================================================= */

.btn-akzent {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

    .btn-akzent:hover {
        background: #1d4ed8;
        color: white;
    }

.button-absenden {
    background-color: orange;
    border: none;
    padding: 10px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
}

    .button-absenden:hover {
        background-color: darkorange;
    }

.formular-zeile {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

    .formular-zeile label {
        font-weight: bold;
        margin-bottom: 4px;
    }

    .formular-zeile input {
        padding: 6px;
        font-size: 0.95rem;
    }

.pflicht-hinweis {
    font-size: 0.85rem;
    color: #555;
    margin-top: 10px;
}

.fehlertext {
    color: red;
    margin-top: 10px;
}

div > label {
    display: inline-block;
    width: 140px;
}

/* =========================================================
   08 - Info-Boxen und Zielschulen
========================================================= */

.info-box {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.zielschulen-box {
    border: 1px solid #ccc;
    padding: 20px;
    max-width: 450px;
    background-color: #ffffff;
}

.aktionen-liste {
    list-style: none;
    padding: 0;
}

    .aktionen-liste li {
        margin-bottom: 12px;
    }

    .aktionen-liste a {
        display: block;
        padding: 10px;
        background-color: #f2f2f2;
        border-left: 5px solid #0056b3;
        text-decoration: none;
        font-weight: bold;
        color: #000;
    }

        .aktionen-liste a:hover {
            background-color: #e6f0ff;
        }

/* =========================================================
   09 - Alte Bildbereiche, falls noch genutzt
========================================================= */

bild-slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 350px;
    margin: 20px 0 20px auto;
    overflow: hidden;
}

.slider-bild {
    background-color: #000;
    position: absolute;
    width: 20%;
    height: 20%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .slider-bild.aktiv {
        opacity: 1;
    }

.inhalt-zeile {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.text-links {
    flex: 1;
}

.bild-rechts {
    float: right;
    margin-left: 20px;
    margin-top: 5px;
    max-width: 220px;
}

.bild-slider {
    position: relative;
    height: 300px;
}

.ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

/* =========================================================
   10 - Chancenrechner Grundlayout
========================================================= */

.chancen-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 22px;
}

    .chancen-header h1 {
        margin: 0 0 6px 0;
        font-size: 34px;
        color: #111827;
    }

    .chancen-header p {
        margin: 0;
        color: #4b5563;
        font-size: 15px;
        line-height: 1.5;
    }

.btn-zurueck {
    display: inline-block;
    background: #eef2ff;
    color: #1d4ed8;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

    .btn-zurueck:hover {
        background: #dbeafe;
        color: #1d4ed8;
    }

.rechner-card {
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    padding: 26px;
    margin-bottom: 24px;
}

.schritt-box {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.schritt-nummer {
    width: 42px;
    height: 42px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
}

.schritt-box h2 {
    margin: 0;
    font-size: 24px;
    color: #111827;
}

.schritt-box p {
    margin: 4px 0 0 0;
    color: #64748b;
    font-size: 14px;
}

.hinweistext {
    color: #64748b;
    margin-bottom: 22px;
}

/* =========================================================
   11 - Chancenrechner Startseite
========================================================= */

.chancen-startseite {
    max-width: 1050px;
    margin: 0 auto;
}

.chancen-start-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.chancen-start-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
    flex-shrink: 0;
}

.chancen-start-header h1 {
    margin: 0 0 6px 0;
    font-size: 42px;
    color: #111827;
}

.chancen-start-header p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.5;
}

.schultyp-auswahl-box {
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    padding: 28px;
}

    .schultyp-auswahl-box h2 {
        margin: 0 0 6px 0;
        font-size: 28px;
        color: #111827;
    }

.schultyp-button-liste {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
    margin-bottom: 26px;
}

.schultyp-button {
    cursor: pointer;
    width: 100%;
    display: block;
}

    .schultyp-button input {
        display: none;
    }

    .schultyp-button span {
        display: grid;
        grid-template-columns: 110px 1fr auto;
        align-items: center;
        gap: 20px;
        width: 100%;
        background: white;
        border: 2px solid #d4dde8;
        border-radius: 14px;
        padding: 20px 24px;
        min-height: 88px;
        transition: all 0.18s ease;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    }

    .schultyp-button strong {
        font-size: 34px;
        color: #111827;
        line-height: 1;
    }

    .schultyp-button small {
        color: #4b5563;
        font-size: 17px;
        line-height: 1.4;
    }

    .schultyp-button em {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 130px;
        padding: 9px 14px;
        border-radius: 999px;
        background: #eef2ff;
        color: #1d4ed8;
        font-style: normal;
        font-weight: 800;
        font-size: 15px;
        white-space: nowrap;
    }

    .schultyp-button span:hover {
        border-color: #2563eb;
        background: #f0f6ff;
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
    }

    .schultyp-button input:checked + span {
        border-color: #2563eb;
        background: #e8f0ff;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
    }

.schultyp-weiter-button {
    margin-top: 4px;
}

.chancen-fehlerbox {
    background: #fef2f2;
    border-left: 6px solid #dc2626;
    color: #991b1b;
    border-radius: 10px;
    padding: 14px 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* =========================================================
   12 - Chancenrechner Notenauswahl
========================================================= */

.noten-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}

.noten-fach-modern {
    background: white;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

    .noten-fach-modern h4 {
        margin: 0 0 10px 0;
        font-size: 16px;
        color: #1f2937;
    }

.noten-row {
    display: grid;
    grid-template-columns: repeat(5, 42px);
    gap: 8px;
    justify-content: start;
}

.noten-chip {
    cursor: pointer;
}

    .noten-chip input {
        display: none;
    }

    .noten-chip span {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid #cbd5e1;
        background: #f8fafc;
        color: #1f2937;
        font-weight: 700;
        transition: all 0.15s ease;
    }

        .noten-chip span:hover {
            border-color: #2563eb;
            background: #eff6ff;
        }

    .noten-chip input:checked + span {
        background: #2563eb;
        color: white;
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    }

/* =========================================================
   13 - Chancenrechner Schulform-Auswahl
========================================================= */

.schulform-select-modern {
    width: 100%;
    max-width: 850px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 2px solid #cbd5e1;
    background: white;
    font-size: 16px;
    color: #111827;
    margin-bottom: 20px;
}

    .schulform-select-modern:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    }

/* =========================================================
   99 - Chancenrechner Ergebnis Popup FINAL
   Stellt sicher, dass das Ergebnis wieder als Fenster erscheint
========================================================= */

.ergebnis-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.55) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    padding: 20px !important;
}

.ergebnis-modal {
    background: white !important;
    width: 100% !important;
    max-width: 560px !important;
    border-radius: 18px !important;
    padding: 34px !important;
    text-align: center !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25) !important;
    animation: ergebnisPop 0.18s ease-out !important;
}

.ergebnis-modal-icon {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    background: #16a34a !important;
    color: white !important;
    font-size: 34px !important;
    font-weight: 900 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 18px auto !important;
}

.ergebnis-modal h2 {
    margin: 0 0 18px 0 !important;
    font-size: 30px !important;
    color: #111827 !important;
}

.ergebnis-modal-punkte {
    background: #ecfdf5 !important;
    border: 1px solid #86efac !important;
    border-radius: 14px !important;
    padding: 18px !important;
    margin: 18px auto !important;
}

    .ergebnis-modal-punkte span {
        display: block !important;
        color: #166534 !important;
        font-weight: 700 !important;
        margin-bottom: 6px !important;
    }

    .ergebnis-modal-punkte strong {
        display: block !important;
        color: #15803d !important;
        font-size: 46px !important;
        line-height: 1 !important;
    }

.ergebnis-modal-text {
    background: #f8fafc !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 20px !important;
    color: #1f2937 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    text-align: center !important;
    margin: 20px 0 !important;
}

@keyframes ergebnisPop {
    from {
        transform: scale(0.96);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================================================
   99b - Chancenrechner Ergebnis Ampel FINAL
========================================================= */

.ergebnis-modal.ergebnis-gut {
    border-top: 10px solid #16a34a !important;
}

    .ergebnis-modal.ergebnis-gut .ergebnis-modal-icon {
        background: #16a34a !important;
    }

    .ergebnis-modal.ergebnis-gut .ergebnis-modal-punkte {
        background: #ecfdf5 !important;
        border-color: #86efac !important;
    }

        .ergebnis-modal.ergebnis-gut .ergebnis-modal-punkte span,
        .ergebnis-modal.ergebnis-gut .ergebnis-modal-punkte strong {
            color: #15803d !important;
        }

    .ergebnis-modal.ergebnis-gut .ergebnis-modal-text {
        border-left-color: #16a34a !important;
        color: #14532d !important;
    }

.ergebnis-modal.ergebnis-mittel {
    border-top: 10px solid #f59e0b !important;
}

    .ergebnis-modal.ergebnis-mittel .ergebnis-modal-icon {
        background: #f59e0b !important;
    }

    .ergebnis-modal.ergebnis-mittel .ergebnis-modal-punkte {
        background: #fffbeb !important;
        border-color: #fcd34d !important;
    }

        .ergebnis-modal.ergebnis-mittel .ergebnis-modal-punkte span,
        .ergebnis-modal.ergebnis-mittel .ergebnis-modal-punkte strong {
            color: #b45309 !important;
        }

    .ergebnis-modal.ergebnis-mittel .ergebnis-modal-text {
        border-left-color: #f59e0b !important;
        color: #92400e !important;
    }

.ergebnis-modal.ergebnis-schlecht {
    border-top: 10px solid #dc2626 !important;
}

    .ergebnis-modal.ergebnis-schlecht .ergebnis-modal-icon {
        background: #dc2626 !important;
    }

    .ergebnis-modal.ergebnis-schlecht .ergebnis-modal-punkte {
        background: #fef2f2 !important;
        border-color: #fca5a5 !important;
    }

        .ergebnis-modal.ergebnis-schlecht .ergebnis-modal-punkte span,
        .ergebnis-modal.ergebnis-schlecht .ergebnis-modal-punkte strong {
            color: #b91c1c !important;
        }

    .ergebnis-modal.ergebnis-schlecht .ergebnis-modal-text {
        border-left-color: #dc2626 !important;
        color: #7f1d1d !important;
    }

.ergebnis-modal.ergebnis-hinweis {
    border-top: 10px solid #2563eb !important;
}

    .ergebnis-modal.ergebnis-hinweis .ergebnis-modal-icon {
        background: #2563eb !important;
    }

    .ergebnis-modal.ergebnis-hinweis .ergebnis-modal-punkte {
        background: #eff6ff !important;
        border-color: #93c5fd !important;
    }

    .ergebnis-modal.ergebnis-hinweis .ergebnis-modal-text {
        border-left-color: #2563eb !important;
        color: #1e3a8a !important;
    }

/* =========================================================
   99c - Button im Ergebnis Popup
========================================================= */

.ergebnis-modal .btn-chance {
    background: #2563eb !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 13px 22px !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

    .ergebnis-modal .btn-chance:hover {
        background: #1d4ed8 !important;
        color: white !important;
    }
/* =========================================================
   99d - Ergebnislisten im Chancenrechner
========================================================= */

.ergebnis-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 18px 0 14px 0;
}

.ergebnis-tab-button {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1f2937;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
}

    .ergebnis-tab-button:hover {
        background: #eff6ff;
        border-color: #2563eb;
        color: #1d4ed8;
    }

    .ergebnis-tab-button.aktiv {
        background: #2563eb;
        border-color: #2563eb;
        color: white;
    }

.ergebnis-listen {
    margin: 12px 0 18px 0;
}

.ergebnis-liste {
    display: none;
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    padding: 14px;
    text-align: left;
    max-height: 260px;
    overflow-y: auto;
}

    .ergebnis-liste.sichtbar {
        display: block;
    }

    .ergebnis-liste h3 {
        margin: 0 0 8px 0;
        color: #111827;
        font-size: 17px;
    }

    .ergebnis-liste p {
        margin: 0 0 10px 0;
        color: #4b5563;
        font-size: 14px;
        line-height: 1.45;
    }

    .ergebnis-liste ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .ergebnis-liste li {
        border-top: 1px solid #e5e7eb;
        padding: 9px 0;
    }

        .ergebnis-liste li:first-child {
            border-top: none;
            padding-top: 0;
        }

        .ergebnis-liste li strong {
            display: block;
            color: #111827;
            font-size: 14px;
        }

        .ergebnis-liste li span {
            display: block;
            color: #64748b;
            font-size: 13px;
            margin-top: 2px;
        }
/* =========================================================
   100 - Chancenrechner Ergebnis Popup breiter
   Schulen und Grenzwerte einzeilig anzeigen
========================================================= */

.ergebnis-modal {
    max-width: 950px !important;
    width: calc(100% - 80px) !important;
}

.ergebnis-modal-punkte {
    max-width: 700px !important;
}

.ergebnis-modal-text {
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.ergebnis-tabs {
    max-width: 820px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.ergebnis-listen {
    max-width: 820px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.ergebnis-liste {
    max-height: 300px !important;
    overflow-y: auto !important;
}

    .ergebnis-liste li {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 18px !important;
        border-top: 1px solid #e5e7eb !important;
        padding: 10px 0 !important;
    }

        .ergebnis-liste li:first-child {
            border-top: none !important;
        }

        .ergebnis-liste li strong {
            display: block !important;
            color: #111827 !important;
            font-size: 14px !important;
            font-weight: 800 !important;
            flex: 1 !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
        }

        .ergebnis-liste li span {
            display: block !important;
            color: #64748b !important;
            font-size: 13px !important;
            margin-top: 0 !important;
            white-space: nowrap !important;
            flex-shrink: 0 !important;
        }

@media (max-width: 900px) {
    .ergebnis-modal {
        width: calc(100% - 32px) !important;
        max-width: none !important;
    }

    .ergebnis-liste li {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 4px !important;
    }

        .ergebnis-liste li strong {
            white-space: normal !important;
            overflow: visible !important;
            text-overflow: clip !important;
        }

        .ergebnis-liste li span {
            white-space: normal !important;
        }
}

/* =========================================================
   101 - Chancenrechner Schultyp Direktauswahl
========================================================= */

.schultyp-direkt-button {
    d *splay: grid;
    grid-template-col *mns: 110px 1fr auto;
    align-ite *s: center;
    gap: 20px;
    widt *: 100%;
    background: white;
    *border: 2px solid #d4dde8;
    bor *er-radius: 14px;
    padding: 20px*24px;
    min-height: 88px;
    tr *nsition: all 0.18s ease;
    box-s *adow: 0 2px 8px rgba(15, 23, 42, 0*04);
    text-decoration: none;
    * color: inherit;
    margin-bottom * 14px;
}

    .schultyp-direkt-button:*over {
        border-color: #2563eb;
        *   background: #f0f6ff;
        transf *rm: translateY(-1px);
        box-shad *w: 0 8px 18px rgba(37, 99, 235, 0.*2);
        color: inherit;
        text-d *coration: none;
    }

.schultyp-kuerzel {
    font-size: 34px;
    color: #111827;
    line-height: 1;
    font-weight: 800;
}

.schultyp-beschreibung {
    color: #4b5563;
    font-size: 17px;
    line-height: 1.4;
}

.schultyp-anzahl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    padding: 9px 14px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1d4ed8;
    font-style: normal;
    font-weight: 800;
    font-size: 15px;
    white-space: nowrap;
}

/* =========================================================
   102 - Chancenrechner Button Modern
========================================================= */

.rechner-card .button-zeile {
    *  margin-top: 18px;
    display: f*ex;
    justify-content: flex-star*;
}

.rechner-card .btn-chance {
    *  appearance: none !important;
    *-webkit-appearance: none !importan*;
    display: inline-flex !import*nt;
    align-items: center !impor*ant;
    justify-content: center !*mportant;
    gap: 8px !important;
    *    min-width: 210px !important;
    *  padding: 14px 24px !important;
    *  border: none !important;
    bor *er-radius: 14px !important;
    ba *kground: linear-gradient(135deg, #*563eb, #1d4ed8) !important;
    co *or: white !important;
    font-fam *ly: Arial, Helvetica, sans-serif !*mportant;
    font-size: 16px !imp*rtant;
    font-weight: 800 !impor*ant;
    line-height: 1.2 !importa*t;
    cursor: pointer !important;
    *    text-decoration: none !importa*t;
    box-shadow: 0 8px 18px rgba*37, 99, 235, 0.24) !important;
    *transition: all 0.18s ease !import*nt;
}

    .rechner-card .btn-chance:h*ver {
        background: linear-gradi*nt(135deg, #1d4ed8, #1e40af) !impo*tant;
        color: white !important;
        *    transform: translateY(-1px) !important;
        box-shadow: 0 10px 22px rgba(37, 99, 235, 0.30) !important;
    }

    .rechner-card .btn-chance:active {
        transform: translateY(0) !important;
        box-shadow: 0 5px 12px rgba(37, 99, 235, 0.24) !important;
    }

    .rechner-card .btn-chance:focus {
        outline: none !important;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18), 0 8px 18px rgba(37, 99, 235, 0.24) !important;
    }

    .rechner-card .btn-chance::after {
        content: "→";
        font-size: 17px;
        font-weight: 900;
    }

/* =========================================================
   103 - Ergebnisfenster Button stabil halten
========================================================= */

.ergebnis-modal .btn-chance {
    min-width: auto !important;
    padding: 13px 22px !important;
    border-radius: 10px !important;
    background: #2563eb !important;
    color: white !important;
    box-shadow: none !important;
}

    .ergebnis-modal .btn-chance:hover {
        background: #1d4ed8 !important;
        color: white !important;
        transform: none !important;
    }

    .ergebnis-modal .btn-chance::after {
        content: "";
    }

/* =========================================================
   104 - Responsive Anpassung Schultyp Direktauswahl
========================================================= */

@media (max-width: 800px) {
    * .schultyp-direkt-button {
        * grid-template-columns: 1fr;
        *  gap: 8px;
    }

    .schultyp-a*zahl {
        width: fit-content;
        *
    }
}
