/* =========================================================
   Zielschulen - Schüler bearbeiten
========================================================= */

.ziel-schueler-bearbeiten-breit {
    width: calc(100% - 70px) !important;
    max-width: 1500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.ziel-bearbeiten-kopf {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 18px 20px !important;
    margin-bottom: 20px !important;
    background: linear-gradient(135deg, #f8fafc, #eef6ff) !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 16px !important;
}

    .ziel-bearbeiten-kopf h2 {
        margin: 0 0 5px 0 !important;
        color: #111827 !important;
        font-size: 25px !important;
        font-weight: 800 !important;
    }

    .ziel-bearbeiten-kopf p {
        margin: 2px 0 !important;
        color: #64748b !important;
    }

.ziel-bearbeiten-formular {
    display: block !important;
    width: 100% !important;
}

.ziel-bearbeiten-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

.ziel-bearbeiten-card {
    padding: 20px !important;
    background: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}

.ziel-bearbeiten-card-gesamte-breite {
    grid-column: 1 / -1 !important;
}

.ziel-bearbeiten-card-kopf {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 18px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.ziel-bearbeiten-card-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    background: #eef2ff !important;
    color: #1d4ed8 !important;
    border-radius: 12px !important;
    font-size: 21px !important;
}

.ziel-bearbeiten-card-kopf h2 {
    margin: 0 !important;
    color: #111827 !important;
    font-size: 21px !important;
    font-weight: 800 !important;
}

.ziel-bearbeiten-card-kopf p {
    margin: 3px 0 0 0 !important;
    color: #64748b !important;
    font-size: 13px !important;
}

.ziel-form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.ziel-form-feld {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
}

.ziel-form-feld-breit {
    grid-column: 1 / -1 !important;
}

.ziel-form-feld label {
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

.ziel-form-feld input,
.ziel-form-feld select,
.ziel-form-feld textarea {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 12px !important;
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 9px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
}

    .ziel-form-feld input:focus,
    .ziel-form-feld select:focus,
    .ziel-form-feld textarea:focus {
        outline: none !important;
        border-color: #2563eb !important;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14) !important;
    }

.ziel-form-feld textarea {
    min-height: 130px !important;
    resize: vertical !important;
}

.ziel-feld-fehler {
    min-height: 17px !important;
    color: #b91c1c !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.ziel-validierungsfehler {
    margin-bottom: 16px !important;
    color: #991b1b !important;
    font-weight: 700 !important;
}

    .ziel-validierungsfehler:empty {
        display: none !important;
    }

    .ziel-validierungsfehler ul {
        margin: 0 !important;
        padding-left: 20px !important;
    }

.ziel-nur-lesbar {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin-top: 16px !important;
    padding: 13px 15px !important;
    background: #f8fafc !important;
    border-left: 5px solid #64748b !important;
    border-radius: 9px !important;
}

    .ziel-nur-lesbar span {
        color: #64748b !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
    }

    .ziel-nur-lesbar strong {
        color: #111827 !important;
        font-size: 15px !important;
    }

    .ziel-nur-lesbar small {
        color: #64748b !important;
        font-size: 12px !important;
    }

.ziel-bearbeiten-aktionen {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-top: 20px !important;
    padding: 16px 0 0 0 !important;
    border-top: 1px solid #dbe3ee !important;
}

    .ziel-bearbeiten-aktionen .bd-button-primaer,
    .ziel-bearbeiten-aktionen .bd-button-sekundaer {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 42px !important;
        padding: 10px 17px !important;
        border-radius: 10px !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        text-decoration: none !important;
    }

    .ziel-bearbeiten-aktionen .bd-button-primaer {
        background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
        color: #ffffff !important;
        border: none !important;
        cursor: pointer !important;
    }

        .ziel-bearbeiten-aktionen .bd-button-primaer:hover {
            background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
        }

    .ziel-bearbeiten-aktionen .bd-button-sekundaer {
        background: #ffffff !important;
        color: #1d4ed8 !important;
        border: 1px solid #93c5fd !important;
    }

        .ziel-bearbeiten-aktionen .bd-button-sekundaer:hover {
            background: #dbeafe !important;
        }

@media (max-width: 950px) {
    .ziel-bearbeiten-grid {
        grid-template-columns: 1fr !important;
    }

    .ziel-bearbeiten-card-gesamte-breite {
        grid-column: auto !important;
    }
}

@media (max-width: 650px) {
    .ziel-schueler-bearbeiten-breit {
        width: calc(100% - 24px) !important;
    }

    .ziel-form-grid {
        grid-template-columns: 1fr !important;
    }

    .ziel-form-feld-breit {
        grid-column: auto !important;
    }

    .ziel-bearbeiten-aktionen {
        align-items: stretch !important;
        flex-direction: column !important;
    }

        .ziel-bearbeiten-aktionen .bd-button-primaer,
        .ziel-bearbeiten-aktionen .bd-button-sekundaer {
            width: 100% !important;
        }
}

/* =========================================================
   Zielschulen - Noten prüfen
========================================================= */

.ziel-noten-breit {
    width: calc(100% - 70px) !important;
    max-width: 1500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.ziel-noten-schuelerkopf {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 18px 20px !important;
    margin-bottom: 18px !important;
    background: linear-gradient(135deg, #f8fafc, #eef6ff) !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 16px !important;
}

.ziel-noten-schuelerinfo {
    flex: 1 1 auto !important;
}

    .ziel-noten-schuelerinfo h2 {
        margin: 0 0 8px 0 !important;
        color: #111827 !important;
        font-size: 26px !important;
        font-weight: 800 !important;
    }

.ziel-noten-meta {
    display: flex !important;
    align-items: center !important;
    gap: 8px 18px !important;
    flex-wrap: wrap !important;
}

    .ziel-noten-meta span {
        color: #64748b !important;
        font-size: 13px !important;
    }

    .ziel-noten-meta strong {
        color: #111827 !important;
    }

.ziel-noten-pruefstatus {
    flex: 0 0 auto !important;
}

.ziel-noten-status {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 12px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

.ziel-noten-status-geprueft {
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #86efac !important;
}

.ziel-noten-status-offen {
    background: #fff7ed !important;
    color: #c2410c !important;
    border: 1px solid #fdba74 !important;
}

.ziel-noten-hinweis {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 15px 17px !important;
    margin-bottom: 18px !important;
    background: #fff7ed !important;
    border: 1px solid #fed7aa !important;
    border-left: 6px solid #f97316 !important;
    border-radius: 12px !important;
}

.ziel-noten-hinweis-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    background: #ffedd5 !important;
    color: #c2410c !important;
    border-radius: 10px !important;
    font-size: 20px !important;
    font-weight: 900 !important;
}

.ziel-noten-hinweis h2 {
    margin: 0 0 4px 0 !important;
    color: #9a3412 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
}

.ziel-noten-hinweis p {
    margin: 0 !important;
    color: #7c2d12 !important;
    font-size: 14px !important;
}

.ziel-noten-formular {
    display: block !important;
    width: 100% !important;
}

.ziel-noten-card {
    padding: 20px !important;
    margin-bottom: 18px !important;
    background: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}

.ziel-noten-card-kopf {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding-bottom: 14px !important;
    margin-bottom: 17px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.ziel-noten-card-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 42px !important;
    min-width: 48px !important;
    padding: 0 5px !important;
    background: #eef2ff !important;
    color: #1d4ed8 !important;
    border-radius: 11px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

.ziel-noten-card-kopf h2 {
    margin: 0 !important;
    color: #111827 !important;
    font-size: 21px !important;
    font-weight: 800 !important;
}

.ziel-noten-card-kopf p {
    margin: 3px 0 0 0 !important;
    color: #64748b !important;
    font-size: 13px !important;
}

.ziel-noten-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.ziel-noten-grid-acht {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.ziel-noten-grid-drei {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.ziel-noten-zusatz-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

    .ziel-noten-zusatz-grid .ziel-noten-card {
        margin-bottom: 18px !important;
    }

.ziel-noten-abschluss-card {
    background: linear-gradient(135deg, #f8fafc, #f5f3ff) !important;
}

.ziel-noten-abschluss-grid {
    display: grid !important;
    grid-template-columns: minmax(180px, 280px) minmax(300px, 1fr) !important;
    align-items: end !important;
    gap: 20px !important;
}

.ziel-noten-valid-checkbox {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 62px !important;
    padding: 12px 15px !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 11px !important;
    cursor: pointer !important;
}

    .ziel-noten-valid-checkbox > input {
        position: absolute !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

.ziel-noten-checkbox-anzeige {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    background: #ffffff !important;
    color: transparent !important;
    border: 2px solid #94a3b8 !important;
    border-radius: 7px !important;
    font-weight: 900 !important;
}

.ziel-noten-valid-checkbox > input:checked + .ziel-noten-checkbox-anzeige {
    background: #22c55e !important;
    color: #ffffff !important;
    border-color: #16a34a !important;
}

.ziel-noten-valid-checkbox strong {
    display: block !important;
    color: #111827 !important;
    font-size: 14px !important;
}

.ziel-noten-valid-checkbox small {
    display: block !important;
    margin-top: 3px !important;
    color: #64748b !important;
    font-size: 12px !important;
}

.ziel-noten-aktionen {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    padding-top: 17px !important;
    border-top: 1px solid #dbe3ee !important;
}

    .ziel-noten-aktionen .bd-button-primaer,
    .ziel-noten-aktionen .bd-button-sekundaer {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 42px !important;
        padding: 10px 17px !important;
        border-radius: 10px !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        text-decoration: none !important;
    }

    .ziel-noten-aktionen .bd-button-primaer {
        background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
        color: #ffffff !important;
        border: none !important;
        cursor: pointer !important;
    }

        .ziel-noten-aktionen .bd-button-primaer:hover {
            background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
        }

    .ziel-noten-aktionen .bd-button-sekundaer {
        background: #ffffff !important;
        color: #1d4ed8 !important;
        border: 1px solid #93c5fd !important;
    }

        .ziel-noten-aktionen .bd-button-sekundaer:hover {
            background: #dbeafe !important;
        }

@media (max-width: 1050px) {
    .ziel-noten-grid-acht {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .ziel-noten-zusatz-grid {
        grid-template-columns: 1fr !important;
    }

    .ziel-noten-grid-drei {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 700px) {
    .ziel-noten-breit {
        width: calc(100% - 24px) !important;
    }

    .ziel-noten-schuelerkopf {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    .ziel-noten-pruefstatus {
        width: 100% !important;
    }

    .ziel-noten-status {
        width: 100% !important;
    }

    .ziel-noten-grid,
    .ziel-noten-grid-acht {
        grid-template-columns: 1fr !important;
    }

    .ziel-noten-abschluss-grid {
        grid-template-columns: 1fr !important;
    }

    .ziel-noten-aktionen {
        align-items: stretch !important;
        flex-direction: column !important;
    }

        .ziel-noten-aktionen .bd-button-primaer,
        .ziel-noten-aktionen .bd-button-sekundaer {
            width: 100% !important;
        }
}

/* =========================================================
   Zielschulen - Buchungsliste
========================================================= */

.ziel-buchungen-breit {
    width: calc(100% - 70px) !important;
    max-width: 1550px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.ziel-buchungen-tabellen-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    background: #ffffff !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 12px !important;
}

.ziel-buchungen-tabelle {
    width: 100% !important;
    min-width: 1450px !important;
    margin: 0 !important;
    table-layout: fixed !important;
    background: #ffffff !important;
}

    .ziel-buchungen-tabelle th,
    .ziel-buchungen-tabelle td {
        padding: 9px 8px !important;
        vertical-align: middle !important;
    }

    .ziel-buchungen-tabelle th {
        color: #111827 !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        text-align: left !important;
        white-space: normal !important;
        line-height: 1.25 !important;
    }

    .ziel-buchungen-tabelle td {
        color: #111827 !important;
        font-size: 13px !important;
    }

        .ziel-buchungen-tabelle th:nth-child(1),
        .ziel-buchungen-tabelle td:nth-child(1) {
            width: 52px !important;
            text-align: center !important;
        }

        .ziel-buchungen-tabelle th:nth-child(2),
        .ziel-buchungen-tabelle td:nth-child(2) {
            width: 200px !important;
        }

        .ziel-buchungen-tabelle th:nth-child(3),
        .ziel-buchungen-tabelle td:nth-child(3) {
            width: 230px !important;
        }

        .ziel-buchungen-tabelle th:nth-child(4),
        .ziel-buchungen-tabelle td:nth-child(4) {
            width: 110px !important;
        }

        .ziel-buchungen-tabelle th:nth-child(5),
        .ziel-buchungen-tabelle td:nth-child(5) {
            width: 75px !important;
            text-align: center !important;
        }

        .ziel-buchungen-tabelle th:nth-child(6),
        .ziel-buchungen-tabelle td:nth-child(6),
        .ziel-buchungen-tabelle th:nth-child(7),
        .ziel-buchungen-tabelle td:nth-child(7),
        .ziel-buchungen-tabelle th:nth-child(8),
        .ziel-buchungen-tabelle td:nth-child(8),
        .ziel-buchungen-tabelle th:nth-child(9),
        .ziel-buchungen-tabelle td:nth-child(9),
        .ziel-buchungen-tabelle th:nth-child(10),
        .ziel-buchungen-tabelle td:nth-child(10) {
            width: 92px !important;
            text-align: center !important;
        }

        .ziel-buchungen-tabelle th:nth-child(11),
        .ziel-buchungen-tabelle td:nth-child(11) {
            width: 135px !important;
            text-align: center !important;
        }

        .ziel-buchungen-tabelle th:nth-child(12),
        .ziel-buchungen-tabelle td:nth-child(12) {
            width: 80px !important;
            text-align: center !important;
        }

.ziel-buchungen-wunsch {
    font-size: 18px !important;
    color: #1d4ed8 !important;
    text-align: center !important;
}

.ziel-buchungen-aktionszelle,
.ziel-buchungen-statusaktion {
    text-align: center !important;
}

    .ziel-buchungen-statusaktion form {
        display: inline-flex !important;
        margin: 0 !important;
        padding: 0 !important;
    }

.ziel-buchungen-symbol,
.ziel-buchungen-statusbutton {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #1d4ed8 !important;
    border: 2px solid #93c5fd !important;
    border-radius: 10px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

    .ziel-buchungen-symbol:hover {
        background: #dbeafe !important;
        color: #1e40af !important;
        border-color: #2563eb !important;
        text-decoration: none !important;
    }

.ziel-buchungen-button-offen {
    background: #fffbeb !important;
    color: #92400e !important;
    border-color: #fcd34d !important;
}

    .ziel-buchungen-button-offen:hover:not(:disabled) {
        background: #fef3c7 !important;
        border-color: #f59e0b !important;
    }

.ziel-buchungen-button-aufgenommen {
    background: #ecfdf5 !important;
    color: #15803d !important;
    border-color: #86efac !important;
}

    .ziel-buchungen-button-aufgenommen:hover:not(:disabled) {
        background: #dcfce7 !important;
        border-color: #22c55e !important;
    }

.ziel-buchungen-button-abgewiesen {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border-color: #fca5a5 !important;
}

    .ziel-buchungen-button-abgewiesen:hover:not(:disabled) {
        background: #fee2e2 !important;
        border-color: #ef4444 !important;
    }

.ziel-buchungen-statusbutton.aktiv,
.ziel-buchungen-statusbutton:disabled {
    opacity: 1 !important;
    cursor: default !important;
    box-shadow: inset 0 0 0 2px currentColor !important;
}

.ziel-buchungen-punkte strong {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    padding: 6px 9px !important;
    background: #eef2ff !important;
    color: #1d4ed8 !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

@media (max-width: 700px) {
    .ziel-buchungen-breit {
        width: calc(100% - 24px) !important;
    }
}

/* =========================================================
   Zielschulen - Zeugnisdaten und Fächertabelle
========================================================= */

.ziel-zeugnis-tabelle-container {
    width: 100% !important;
    overflow-x: auto !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 12px !important;
    background: #ffffff !important;
}

.ziel-zeugnis-tabelle {
    width: 100% !important;
    min-width: 780px !important;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
}

    .ziel-zeugnis-tabelle th,
    .ziel-zeugnis-tabelle td {
        padding: 12px 14px !important;
        border-right: 1px solid #dbe3ee !important;
        border-bottom: 1px solid #dbe3ee !important;
        vertical-align: middle !important;
    }

        .ziel-zeugnis-tabelle th:last-child,
        .ziel-zeugnis-tabelle td:last-child {
            border-right: none !important;
        }

    .ziel-zeugnis-tabelle tbody tr:last-child td {
        border-bottom: none !important;
    }

    .ziel-zeugnis-tabelle thead th {
        background: #eef2f7 !important;
        color: #111827 !important;
        font-size: 13px !important;
        font-weight: 900 !important;
        text-align: left !important;
    }

    .ziel-zeugnis-tabelle tbody tr:nth-child(even) td {
        background: #f8fafc !important;
    }

    .ziel-zeugnis-tabelle tbody tr:hover td {
        background: #eff6ff !important;
    }

    .ziel-zeugnis-tabelle th:nth-child(1),
    .ziel-zeugnis-tabelle td:nth-child(1) {
        width: 42% !important;
    }

    .ziel-zeugnis-tabelle th:nth-child(2),
    .ziel-zeugnis-tabelle td:nth-child(2) {
        width: 25% !important;
    }

    .ziel-zeugnis-tabelle th:nth-child(3),
    .ziel-zeugnis-tabelle td:nth-child(3) {
        width: 33% !important;
    }

    .ziel-zeugnis-tabelle td > strong {
        display: block !important;
        color: #111827 !important;
        font-size: 14px !important;
        font-weight: 850 !important;
    }

    .ziel-zeugnis-tabelle td > small {
        display: block !important;
        margin-top: 4px !important;
        color: #64748b !important;
        font-size: 11px !important;
    }

    .ziel-zeugnis-tabelle select {
        display: block !important;
        width: 100% !important;
        min-height: 42px !important;
        padding: 8px 10px !important;
        background: #ffffff !important;
        color: #111827 !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 9px !important;
        font-family: Arial, Helvetica, sans-serif !important;
        font-size: 14px !important;
    }

        .ziel-zeugnis-tabelle select:focus {
            outline: none !important;
            border-color: #2563eb !important;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14) !important;
        }

.ziel-zeugnis-nicht-erforderlich {
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 9px !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.ziel-noten-punkte-hinweis {
    display: block !important;
    margin-top: 4px !important;
    color: #64748b !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
}

@media (max-width: 700px) {
    .ziel-zeugnis-tabelle {
        min-width: 680px !important;
    }
}

/* =========================================================
   Zielschulen - Buchungsliste
========================================================= */

.ziel-buchungen-breit {
    width: calc(100% - 70px) !important;
    max-width: 1600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.ziel-buchungen-tabellen-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    background: #ffffff !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 12px !important;
}

.ziel-buchungen-tabelle {
    width: 100% !important;
    min-width: 1450px !important;
    margin: 0 !important;
    table-layout: fixed !important;
    background: #ffffff !important;
}

    .ziel-buchungen-tabelle th,
    .ziel-buchungen-tabelle td {
        padding: 9px 8px !important;
        vertical-align: middle !important;
        box-sizing: border-box !important;
    }

    .ziel-buchungen-tabelle th {
        color: #111827 !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        line-height: 1.25 !important;
        text-align: left !important;
        white-space: normal !important;
    }

    .ziel-buchungen-tabelle td {
        color: #111827 !important;
        font-size: 13px !important;
    }

        .ziel-buchungen-tabelle th:nth-child(1),
        .ziel-buchungen-tabelle td:nth-child(1) {
            width: 52px !important;
            text-align: center !important;
        }

        .ziel-buchungen-tabelle th:nth-child(2),
        .ziel-buchungen-tabelle td:nth-child(2) {
            width: 200px !important;
        }

        .ziel-buchungen-tabelle th:nth-child(3),
        .ziel-buchungen-tabelle td:nth-child(3) {
            width: 225px !important;
        }

        .ziel-buchungen-tabelle th:nth-child(4),
        .ziel-buchungen-tabelle td:nth-child(4) {
            width: 105px !important;
            text-align: center !important;
        }

        .ziel-buchungen-tabelle th:nth-child(5),
        .ziel-buchungen-tabelle td:nth-child(5) {
            width: 70px !important;
            text-align: center !important;
        }

        .ziel-buchungen-tabelle th:nth-child(6),
        .ziel-buchungen-tabelle td:nth-child(6),
        .ziel-buchungen-tabelle th:nth-child(7),
        .ziel-buchungen-tabelle td:nth-child(7),
        .ziel-buchungen-tabelle th:nth-child(8),
        .ziel-buchungen-tabelle td:nth-child(8),
        .ziel-buchungen-tabelle th:nth-child(9),
        .ziel-buchungen-tabelle td:nth-child(9),
        .ziel-buchungen-tabelle th:nth-child(10),
        .ziel-buchungen-tabelle td:nth-child(10) {
            width: 94px !important;
            text-align: center !important;
        }

        .ziel-buchungen-tabelle th:nth-child(11),
        .ziel-buchungen-tabelle td:nth-child(11) {
            width: 135px !important;
            text-align: center !important;
        }

        .ziel-buchungen-tabelle th:nth-child(12),
        .ziel-buchungen-tabelle td:nth-child(12) {
            width: 80px !important;
            text-align: center !important;
        }

.ziel-buchungen-wunsch {
    color: #1d4ed8 !important;
    font-size: 19px !important;
    font-weight: 900 !important;
    text-align: center !important;
}

.ziel-buchungen-aktionszelle,
.ziel-buchungen-statusaktion {
    text-align: center !important;
}

    .ziel-buchungen-statusaktion form {
        display: inline-flex !important;
        margin: 0 !important;
        padding: 0 !important;
    }

.ziel-buchungen-symbol,
.ziel-buchungen-statusbutton {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #1d4ed8 !important;
    border: 2px solid #93c5fd !important;
    border-radius: 10px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

    .ziel-buchungen-symbol:hover {
        background: #dbeafe !important;
        color: #1e40af !important;
        border-color: #2563eb !important;
        text-decoration: none !important;
    }

.ziel-buchungen-button-offen {
    background: #fffbeb !important;
    color: #92400e !important;
    border-color: #fcd34d !important;
}

    .ziel-buchungen-button-offen:hover:not(:disabled) {
        background: #fef3c7 !important;
        border-color: #f59e0b !important;
    }

.ziel-buchungen-button-aufgenommen {
    background: #ecfdf5 !important;
    color: #15803d !important;
    border-color: #86efac !important;
}

    .ziel-buchungen-button-aufgenommen:hover:not(:disabled) {
        background: #dcfce7 !important;
        border-color: #22c55e !important;
    }

.ziel-buchungen-button-abgewiesen {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border-color: #fca5a5 !important;
}

    .ziel-buchungen-button-abgewiesen:hover:not(:disabled) {
        background: #fee2e2 !important;
        border-color: #ef4444 !important;
    }

.ziel-buchungen-statusbutton.aktiv,
.ziel-buchungen-statusbutton:disabled {
    opacity: 1 !important;
    cursor: default !important;
    box-shadow: inset 0 0 0 2px currentColor !important;
}

.ziel-buchungen-punkte strong {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    padding: 6px 9px !important;
    background: #eef2ff !important;
    color: #1d4ed8 !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

@media (max-width: 700px) {
    .ziel-buchungen-breit {
        width: calc(100% - 24px) !important;
    }
}

/* =======================================================
   Zielschulen - Buchungen Feinschliff
======================================================= */

.ziel-buchungen-breit {
    width: calc(100% - 50px) !important;
    max-width: 1700px !important;
    margin: 0 auto !important;
}

.ziel-buchungen-tabellen-container {
    overflow-x: auto !important;
}

.ziel-buchungen-tabelle {
    min-width: 1550px !important;
}

    .ziel-buchungen-tabelle tbody tr:hover {
        background: #f8fbff !important;
    }

.ziel-buchungen-name strong {
    font-size: 15px !important;
    color: #0f172a !important;
}

.ziel-tabellen-zusatz {
    margin-top: 4px !important;
    font-size: 12px !important;
    color: #64748b !important;
}

.ziel-buchungen-herkunft strong {
    color: #1e293b !important;
}

.ziel-mini-info {
    display: inline-block !important;
    margin-top: 5px !important;
    padding: 3px 8px !important;
    border-radius: 7px !important;
    background: #dbeafe !important;
    color: #1d4ed8 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

    .ziel-mini-info.anderer-weg {
        background: #ede9fe !important;
        color: #7c3aed !important;
    }

.ziel-buchungen-symbol,
.ziel-buchungen-statusbutton {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    border-radius: 12px !important;
    transition: all .15s ease !important;
}

    .ziel-buchungen-symbol:hover {
        transform: translateY(-2px);
    }

    .ziel-buchungen-statusbutton:hover:not(:disabled) {
        transform: translateY(-2px);
    }

.ziel-buchungen-button-offen.aktiv,
.ziel-buchungen-button-offen:disabled {
    background: #fef3c7 !important;
    color: #92400e !important;
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245,158,11,.15) !important;
}

.ziel-buchungen-button-aufgenommen.aktiv,
.ziel-buchungen-button-aufgenommen:disabled {
    background: #dcfce7 !important;
    color: #15803d !important;
    border-color: #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34,197,94,.15) !important;
}

.ziel-buchungen-button-abgewiesen.aktiv,
.ziel-buchungen-button-abgewiesen:disabled {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,.12) !important;
}

.ziel-buchungen-status {
    text-align: center !important;
}

    .ziel-buchungen-status .ziel-status {
        min-width: 120px !important;
        justify-content: center !important;
        font-weight: 800 !important;
    }

.ziel-buchungen-punkte {
    text-align: center !important;
}

    .ziel-buchungen-punkte strong {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 44px !important;
        height: 32px !important;
        padding: 0 10px !important;
        border-radius: 999px !important;
        background: #eef2ff !important;
        color: #1d4ed8 !important;
        font-size: 15px !important;
        font-weight: 900 !important;
    }

.ziel-punkte-geprueft {
    margin-left: 6px !important;
    color: #16a34a !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}

.ziel-punkte-offen {
    margin-left: 6px !important;
    color: #ea580c !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}

.ziel-buchungen-nummer {
    font-weight: 700 !important;
    color: #475569 !important;
}

/* =========================================================
   Zielschulen Buchungen - Feinschliff
========================================================= */

.ziel-buchungen-tabellen-container {
    overflow-x: auto !important;
}

.ziel-buchungen-tabelle {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

    /* Sticky Header */

    .ziel-buchungen-tabelle thead th {
        position: sticky !important;
        top: 0 !important;
        z-index: 5 !important;
        background: #f8fafc !important;
        box-shadow: inset 0 -1px 0 #dbe3ee !important;
    }

    /* Hover */

    .ziel-buchungen-tabelle tbody tr {
        transition: background-color .15s ease !important;
    }

        .ziel-buchungen-tabelle tbody tr:hover {
            background: #f8fbff !important;
        }

/* Name */

.ziel-buchungen-name strong {
    font-size: 15px !important;
    color: #0f172a !important;
}

/* Herkunft */

.ziel-tabellen-zusatz {
    margin-top: 4px !important;
    color: #64748b !important;
    font-size: 12px !important;
}

.ziel-buchungen-herkunft strong {
    color: #1e293b !important;
}

/* Buttons */

.ziel-buchungen-symbol,
.ziel-buchungen-statusbutton {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 12px !important;
    transition: all .15s ease !important;
}

    .ziel-buchungen-symbol:hover {
        transform: translateY(-2px);
    }

    .ziel-buchungen-statusbutton:hover:not(:disabled) {
        transform: translateY(-2px);
    }

/* Offen aktiv */

.ziel-buchungen-button-offen.aktiv,
.ziel-buchungen-button-offen:disabled {
    background: #fef3c7 !important;
    border-color: #f59e0b !important;
    color: #92400e !important;
    box-shadow: 0 0 0 3px rgba(245,158,11,.18) !important;
}

/* Aufgenommen aktiv */

.ziel-buchungen-button-aufgenommen.aktiv,
.ziel-buchungen-button-aufgenommen:disabled {
    background: #dcfce7 !important;
    border-color: #22c55e !important;
    color: #15803d !important;
    box-shadow: 0 0 0 3px rgba(34,197,94,.18) !important;
}

/* Abgewiesen aktiv */

.ziel-buchungen-button-abgewiesen.aktiv,
.ziel-buchungen-button-abgewiesen:disabled {
    background: #fee2e2 !important;
    border-color: #ef4444 !important;
    color: #b91c1c !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,.15) !important;
}

/* Punkte */

.ziel-buchungen-punkte {
    text-align: center !important;
}

    .ziel-buchungen-punkte strong {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 44px !important;
        height: 32px !important;
        padding: 0 10px !important;
        border-radius: 999px !important;
        font-weight: 900 !important;
    }

    /* Punkte hoch */

    .ziel-buchungen-punkte strong {
        background: #eef2ff !important;
        color: #1d4ed8 !important;
    }

/* Noten geprüft */

.ziel-punkte-geprueft {
    margin-left: 6px !important;
    color: #16a34a !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}

/* Prüfung offen */

.ziel-punkte-offen {
    margin-left: 6px !important;
    color: #ea580c !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}

/* =========================================================
   Notenprüfung - verständliche Feldbezeichnungen
========================================================= */

.ziel-noten-feld-hilfe {
    display: block !important;
    min-height: 16px !important;
    margin-top: -2px !important;
    color: #94a3b8 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

.ziel-noten-berechnet-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc) !important;
}

    .ziel-noten-berechnet-card .ziel-noten-card-icon {
        background: #f1f5f9 !important;
        color: #475569 !important;
    }

.ziel-noten-punkte-bereich {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
}

.ziel-noten-punkte-bezeichnung {
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

.ziel-noten-punkte-eingabe {
    display: flex !important;
    align-items: center !important;
}

    .ziel-noten-punkte-eingabe input {
        width: 150px !important;
        min-height: 58px !important;
        padding: 8px 14px !important;
        background: #eef2ff !important;
        color: #1d4ed8 !important;
        border: 2px solid #a5b4fc !important;
        border-radius: 14px !important;
        font-size: 24px !important;
        font-weight: 900 !important;
        text-align: center !important;
    }

        .ziel-noten-punkte-eingabe input:focus {
            outline: none !important;
            border-color: #2563eb !important;
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14) !important;
        }

/* =========================================================
   FINAL - Zielschulen Noten prüfen
   Einheitliche Ausrichtung der Fachbezeichnungen und Felder
========================================================= */

/*
   Die acht Zeugnisfächer bleiben in vier Spalten.
   Jede Fachzeile erhält für die Beschriftung dieselbe Höhe.
*/
.ziel-noten-grid.ziel-noten-grid-acht {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    column-gap: 14px !important;
    row-gap: 28px !important;
    align-items: stretch !important;
}

    /*
   Jeder einzelne Fachblock besteht aus:
   1. Fachbezeichnung
   2. Eingabefeld
*/
    .ziel-noten-grid.ziel-noten-grid-acht > .ziel-form-feld {
        display: grid !important;
        grid-template-rows: 58px 44px !important;
        align-items: end !important;
        gap: 6px !important;
        min-width: 0 !important;
    }

        /*
   Alle Fachbezeichnungen erhalten exakt dieselbe Fläche.
   Dadurch beginnen sämtliche Eingabefelder auf gleicher Höhe.
*/
        .ziel-noten-grid.ziel-noten-grid-acht > .ziel-form-feld > label {
            display: flex !important;
            align-items: flex-end !important;
            width: 100% !important;
            min-height: 58px !important;
            height: 58px !important;
            margin: 0 !important;
            padding: 0 !important;
            color: #111827 !important;
            font-size: 14px !important;
            font-weight: 800 !important;
            line-height: 1.35 !important;
            overflow-wrap: normal !important;
            word-break: normal !important;
            hyphens: none !important;
        }

        /*
   Sämtliche Notenfelder erhalten dieselbe Höhe.
*/
        .ziel-noten-grid.ziel-noten-grid-acht > .ziel-form-feld > input,
        .ziel-noten-grid.ziel-noten-grid-acht > .ziel-form-feld > select {
            display: block !important;
            width: 100% !important;
            height: 44px !important;
            min-height: 44px !important;
            margin: 0 !important;
            box-sizing: border-box !important;
        }

/*
   Tablet: zwei Fächer pro Zeile.
*/
@media (max-width: 1050px) {
    .ziel-noten-grid.ziel-noten-grid-acht {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/*
   Mobil: ein Fach pro Zeile.
   Hier wird keine reservierte dreizeilige Beschriftung benötigt.
*/
@media (max-width: 700px) {
    .ziel-noten-grid.ziel-noten-grid-acht {
        grid-template-columns: 1fr !important;
        row-gap: 16px !important;
    }

        .ziel-noten-grid.ziel-noten-grid-acht > .ziel-form-feld {
            grid-template-rows: auto 44px !important;
        }

            .ziel-noten-grid.ziel-noten-grid-acht > .ziel-form-feld > label {
                align-items: flex-start !important;
                min-height: auto !important;
                height: auto !important;
            }
}

/* =========================================================
   Chancenrechner AHS
   Herkunftsschule und Leistungsniveaus
========================================================= */

.chancen-auswahl-zeile {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.chancen-auswahl-option {
    cursor: pointer !important;
}

    .chancen-auswahl-option input {
        position: absolute !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .chancen-auswahl-option span {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 42px !important;
        padding: 9px 16px !important;
        background: #ffffff !important;
        color: #1f2937 !important;
        border: 2px solid #cbd5e1 !important;
        border-radius: 999px !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        transition: all 0.15s ease !important;
    }

        .chancen-auswahl-option span:hover {
            background: #eff6ff !important;
            border-color: #93c5fd !important;
        }

    .chancen-auswahl-option input:checked + span {
        background: #2563eb !important;
        color: #ffffff !important;
        border-color: #2563eb !important;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    }

.chancen-hauptfaecher-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin-bottom: 26px !important;
}

.chancen-hauptfach-card {
    padding: 17px !important;
    background: #ffffff !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

    .chancen-hauptfach-card h3 {
        margin: 0 0 13px 0 !important;
        color: #111827 !important;
        font-size: 17px !important;
        font-weight: 850 !important;
    }

.chancen-leistungsniveau {
    display: flex;
    flex-direction: column !important;
    gap: 7px !important;
    margin-top: 16px !important;
    padding-top: 14px !important;
    border-top: 1px solid #e2e8f0 !important;
}

    .chancen-leistungsniveau label {
        width: auto !important;
        color: #111827 !important;
        font-size: 13px !important;
        font-weight: 800 !important;
    }

    .chancen-leistungsniveau select {
        display: block !important;
        width: 100% !important;
        min-height: 42px !important;
        padding: 8px 10px !important;
        background: #ffffff !important;
        color: #111827 !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 9px !important;
        font-family: Arial, Helvetica, sans-serif !important;
        font-size: 14px !important;
    }

        .chancen-leistungsniveau select:focus {
            outline: none !important;
            border-color: #2563eb !important;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14) !important;
        }

@media (max-width: 950px) {
    .chancen-hauptfaecher-grid {
        grid-template-columns: 1fr !important;
    }
}