/* =========================================================
   WAS Modern Overrides
   Rettungs-CSS für moderne Arbeitsbereiche
========================================================= */

/* =========================================================
   Allgemeine moderne Arbeitsbereiche
   Wird z. B. für Zielschulen Arbeitsbereich verwendet
========================================================= */

.bereich-modern {
    max-width: 1050px !important;
    margin: 0 auto !important;
}

.bereich-modern-header {
    margin-bottom: 18px !important;
}

.bereich-modern-badge {
    display: inline-block !important;
    background: #dbeafe !important;
    color: #1d4ed8 !important;
    padding: 5px 12px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
}

.bereich-modern-header h1 {
    margin: 0 0 10px 0 !important;
    font-size: 40px !important;
    line-height: 1.15 !important;
    color: #111827 !important;
    font-weight: 700 !important;
}

.bereich-modern-header p {
    margin: 0 !important;
    color: #374151 !important;
    font-size: 15px !important;
}

.bereich-modern h2 {
    margin: 18px 0 12px 0 !important;
    font-size: 30px !important;
    color: #111827 !important;
    font-weight: 700 !important;
}

.bereich-modern-liste {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.bereich-modern-aktion {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    background: #f8fafc !important;
    border: 1px solid #dbe3ee !important;
    border-left: 5px solid #2563eb !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.15s ease !important;
}

    .bereich-modern-aktion:hover {
        background: #eff6ff !important;
        border-left-color: #1d4ed8 !important;
        transform: translateX(2px) !important;
        text-decoration: none !important;
        color: inherit !important;
    }

.bereich-modern-icon {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #eef2ff !important;
    color: #1d4ed8 !important;
    border-radius: 10px !important;
    font-size: 17px !important;
}

.bereich-modern-aktion h3 {
    margin: 0 !important;
    color: #111827 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
}

.bereich-modern-aktion p {
    margin: 3px 0 0 0 !important;
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

.bereich-modern-logout {
    border-left-color: #dc2626 !important;
}

    .bereich-modern-logout:hover {
        border-left-color: #b91c1c !important;
        background: #fef2f2 !important;
    }

/* =========================================================
   Bildungsdirektion moderner Aktionsbereich
========================================================= */


.bd-modern-header {
    background: linear-gradient(135deg, #f8fafc, #eef6ff) !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 18px !important;
    padding: 26px !important;
    margin-bottom: 22px !important;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.06) !important;
}

.bd-modern-badge {
    display: inline-block !important;
    background: #dbeafe !important;
    color: #1d4ed8 !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    margin-bottom: 12px !important;
}

.bd-modern-header h1 {
    margin: 0 !important;
    color: #111827 !important;
    font-size: 38px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
}

.bd-modern-header p {
    max-width: 780px !important;
    margin: 12px 0 0 0 !important;
    color: #4b5563 !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
}

.bd-modern-section {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 18px !important;
    padding: 22px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}

.bd-section-title {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
}

    .bd-section-title span {
        width: 42px !important;
        height: 42px !important;
        background: #eef2ff !important;
        color: #1d4ed8 !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 22px !important;
    }

    .bd-section-title h2 {
        margin: 0 !important;
        color: #111827 !important;
        font-size: 25px !important;
        font-weight: 800 !important;
    }

.bd-action-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 14px !important;
}

.bd-action-grid-small {
    grid-template-columns: repeat(auto-fit, minmax(260px, 360px)) !important;
}

.bd-action-card {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 92px !important;
    background: #f8fafc !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 15px !important;
    padding: 16px !important;
    color: inherit !important;
    text-decoration: none !important;
    transition: all 0.18s ease !important;
}

    .bd-action-card:hover {
        background: #eff6ff !important;
        border-color: #2563eb !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12) !important;
        color: inherit !important;
        text-decoration: none !important;
    }

.bd-action-icon {
    width: 44px !important;
    height: 44px !important;
    background: #eef2ff !important;
    color: #1d4ed8 !important;
    border-radius: 13px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    flex-shrink: 0 !important;
}

.bd-action-card h3 {
    margin: 0 !important;
    color: #111827 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
}

.bd-action-card p {
    margin: 4px 0 0 0 !important;
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

.bd-action-card-logout {
    border-color: #fecaca !important;
    background: #fff7f7 !important;
}

    .bd-action-card-logout:hover {
        background: #fef2f2 !important;
        border-color: #dc2626 !important;
    }

    .bd-action-card-logout .bd-action-icon {
        background: #fee2e2 !important;
        color: #b91c1c !important;
    }

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 800px) {
    .bd-modern-header h1,
    .bereich-modern-header h1 {
        font-size: 30px !important;
    }

    .bd-action-grid,
    .bd-action-grid-small {
        grid-template-columns: 1fr !important;
    }

    .bereich-modern h2 {
        font-size: 26px !important;
    }

    .bereich-modern-aktion {
        align-items: flex-start !important;
    }
}

/* =========================================================
   Zielschulen moderner Arbeitsbereich mit Kategorien
========================================================= */

.ziel-modern-bereich {
    max- *idth: 1100px !important;
    margi *: 0 auto !important;
}

.ziel-mode*n-header {
    background: linear-*radient(135deg, #f8fafc, #eef6ff) *important;
    border: 1px solid #*be3ee !important;
    border-radiu *: 18px !important;
    padding: 26*x !important;
    margin-bottom: 2*px !important;
    box-shadow: 0 5*x 16px rgba(15, 23, 42, 0.06) !imp*rtant;
}

.ziel-modern-badge {
    *display: inline-block !important;
    *   background: #dbeafe !important;
    *    color: #1d4ed8 !important;
    *padding: 6px 12px !important;
    *order-radius: 999px !important;
    * font-size: 12px !important;
    f *nt-weight: 900 !important;
    mar *in-bottom: 12px !important;
}

.zi*l-modern-header h1 {
    margin: 0* !important;
    color: #111827 !im*ortant;
    font-size: 38px !impor*ant;
    line-height: 1.15 !import*nt;
    font-weight: 800 !importan*;
}

.ziel-modern-header p {
    m *rgin: 12px 0 0 0 !important;
    c *lor: #374151 !important;
    font- *ize: 15px !important;
}

.ziel-mod*rn-section {
    background: rgba(*55, 255, 255, 0.96) !important;
    * border: 1px solid #dbe3ee !import*nt;
    border-radius: 18px !impor*ant;
    padding: 22px !important;
    *    margin-bottom: 20px !important * box-shadow: 0 4px 14px rgba(1*, 23, 42, 0.05) !important;
}

.zi*l-modern-section-title {
    displ *y: flex !important;
    align-item *: center !important;
    gap: 10px* !important;
    margin-bottom: 18p* !important;
}

.ziel-modern-secti*n-title span {
    width: 42px !im*ortant;
    height: 42px !importan*;
    background: #eef2ff !importa*t;
    color: #1d4ed8 !important;
    *   border-radius: 12px !important;
    *    display: flex !important;
    *lign-items: center !important;
    *justify-content: center !important * font-size: 22px !important;
}

*
.ziel-modern-section-title h2 {
    *  margin: 0 !important;
    color: *#111827 !important;
    font-size: *25px !important;
    font-weight: *00 !important;
}

.ziel-modern-gri* {
    display: grid !important;
    *  grid-template-columns: repeat(au*o-fit, minmax(260px, 1fr)) !import*nt;
    gap: 14px !important;
}

.*iel-modern-card {
    display: fle* !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 92px !important;
    background: #f8fafc !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 15px !important;
    padding: 16px !important;
    color: inherit !important;
    text-decoration: none !important;
    transition: all 0.18s ease !important;
}

.ziel-modern-card:hover {
    background: #eff6ff !important;
    border-color: #2563eb !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12) !important;
    color: inherit !important;
    text-decoration: none !important;
}

.ziel-modern-icon {
    width: 44px !important;
    height: 44px !important;
    background: #eef2ff !important;
    color: #1d4ed8 !important;
    border-radius: 13px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    flex-shrink: 0 !important;
}

.ziel-modern-card h3 {
    margin: 0 !important;
    color: #111827 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
}

.ziel-modern-card p {
    margin: 4px 0 0 0 !important;
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

.ziel-modern-card-logout {
    border-color: #fecaca !important;
    background: #fff7f7 !important;
}

    .ziel-modern-card-logout:hover {
        background: #fef2f2 !important;
        border-color: #dc2626 !important;
    }

    .ziel-modern-card-logout .ziel-modern-icon {
        background: #fee2e2 !important;
        color: #b91c1c !important;
    }

@media (max-width: 800px) {
    .ziel-modern-header h1 {
        font-size: 30px !important;
    }

    .ziel-modern-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   Zielschulen moderne Aktionsübersicht
   Optik wie Bildungsdirektion Übersicht
========================================================= */


.ziel-modern-header {
    background: linear-gradient(135deg, #f8fafc, #eff6ff);
    border: 1px solid #dbe3ee;
    border-radius: 18px;
    padding: 26px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.ziel-modern-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
}

.ziel-modern-header h1 {
    margin: 0 0 12px 0;
    font-size: 40px;
    line-height: 1.15;
    color: #111827;
    font-weight: 900;
}

.ziel-modern-header p {
    margin: 6px 0 0 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.5;
}

.ziel-modern-section {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dbe3ee;
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.07);
}

.ziel-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

    .ziel-section-title span {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: #eef2ff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
    }

    .ziel-section-title h2 {
        margin: 0;
        color: #111827;
        font-size: 28px;
        font-weight: 900;
    }

.ziel-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ziel-action-grid-small {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ziel-action-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 74px;
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    padding: 16px;
    color: inherit;
    text-decoration: none;
    transition: all 0.16s ease;
}

    .ziel-action-card:hover {
        background: #eff6ff;
        border-color: #93c5fd;
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(37, 99, 235, 0.10);
        text-decoration: none;
        color: inherit;
    }

.ziel-action-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: #eef2ff;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.ziel-action-card h3 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.ziel-action-card p {
    margin: 4px 0 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.35;
}

.ziel-action-card-logout {
    background: #fff7f7;
    border-color: #fecaca;
}

    .ziel-action-card-logout .ziel-action-icon {
        background: #fee2e2;
        color: #b91c1c;
    }

    .ziel-action-card-logout:hover {
        background: #fef2f2;
        border-color: #fca5a5;
        box-shadow: 0 8px 18px rgba(220, 38, 38, 0.10);
    }

@media (max-width: 1000px) {
    .ziel-action-grid,
    .ziel-action-grid-small {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .ziel-modern-header h1 {
        font-size: 32px;
    }

    .ziel-action-grid,
    .ziel-action-grid-small {
        grid-template-columns: 1fr;
    }

    .ziel-action-card {
        align-items: flex-start;
    }
}

/* =========================================================
   Bildungsdirektion - Anderer Weg
========================================================= */

.bd-auswertung {
    max-width: 1180px !important;
    margin: 0 auto !important;
}

.bd-seitenkopf {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 24px !important;
    padding: 26px !important;
    margin-bottom: 20px !important;
    background: linear-gradient(135deg, #f8fafc, #eef6ff) !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 18px !important;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.06) !important;
}

    .bd-seitenkopf h1 {
        margin: 0 !important;
        color: #111827 !important;
        font-size: 38px !important;
        line-height: 1.15 !important;
        font-weight: 800 !important;
    }

    .bd-seitenkopf p {
        max-width: 760px !important;
        margin: 10px 0 0 0 !important;
        color: #4b5563 !important;
        font-size: 15px !important;
        line-height: 1.55 !important;
    }

.bd-zurueck-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 14px !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 10px !important;
    background: #eef2ff !important;
    color: #1d4ed8 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

    .bd-zurueck-button:hover {
        background: #dbeafe !important;
        border-color: #93c5fd !important;
        color: #1d4ed8 !important;
        text-decoration: none !important;
    }

.bd-statistik-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
}

.bd-statistik-card {
    padding: 18px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 15px !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05) !important;
}

    .bd-statistik-card span {
        display: block !important;
        margin-bottom: 8px !important;
        color: #64748b !important;
        font-size: 14px !important;
    }

    .bd-statistik-card strong {
        display: block !important;
        color: #111827 !important;
        font-size: 32px !important;
        line-height: 1 !important;
        font-weight: 900 !important;
    }

.bd-statistik-hervorgehoben {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
}

    .bd-statistik-hervorgehoben strong {
        color: #1d4ed8 !important;
    }

.bd-info-card {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 18px !important;
    margin-bottom: 20px !important;
    background: #f5f3ff !important;
    border: 1px solid #ddd6fe !important;
    border-radius: 15px !important;
}

.bd-info-icon {
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    background: #ede9fe !important;
    border-radius: 13px !important;
    font-size: 23px !important;
}

.bd-info-card span {
    display: block !important;
    margin-bottom: 3px !important;
    color: #6b7280 !important;
    font-size: 13px !important;
}

.bd-info-card strong {
    display: block !important;
    color: #111827 !important;
    font-size: 18px !important;
}

.bd-info-card p {
    margin: 3px 0 0 0 !important;
    color: #6d28d9 !important;
    font-size: 13px !important;
}

.bd-inhalt-card {
    padding: 22px !important;
    margin-bottom: 20px !important;
    background: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}

.bd-section-heading {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 20px !important;
    margin-bottom: 18px !important;
}

    .bd-section-heading h2 {
        margin: 0 !important;
        color: #111827 !important;
        font-size: 25px !important;
        font-weight: 850 !important;
    }

    .bd-section-heading p {
        margin: 5px 0 0 0 !important;
        color: #64748b !important;
        font-size: 14px !important;
    }

.bd-schulen-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    max-height: 430px !important;
    padding-right: 4px !important;
    overflow-y: auto !important;
}

.bd-schule-card {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-height: 76px !important;
    padding: 14px !important;
    background: #f8fafc !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 13px !important;
    color: inherit !important;
    text-decoration: none !important;
}

    .bd-schule-card:hover,
    .bd-schule-card.aktiv {
        background: #eff6ff !important;
        border-color: #60a5fa !important;
        color: inherit !important;
        text-decoration: none !important;
    }

    .bd-schule-card strong {
        display: block !important;
        color: #111827 !important;
        font-size: 14px !important;
    }

    .bd-schule-card span {
        display: block !important;
        margin-top: 3px !important;
        color: #64748b !important;
        font-size: 12px !important;
    }

.bd-schule-anzahl {
    min-width: 42px !important;
    padding: 7px 9px !important;
    background: #dbeafe !important;
    border-radius: 999px !important;
    color: #1d4ed8 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    text-align: center !important;
}

.bd-filter-formular {
    display: grid !important;
    grid-template-columns: minmax(250px, 1fr) minmax(280px, 1fr) !important;
    gap: 14px !important;
    padding: 16px !important;
    margin-bottom: 14px !important;
    background: #f8fafc !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 14px !important;
}

.bd-filter-feld {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
}

.bd-filter-feld label {
    color: #111827 !
}
        
/* =========================================================
   Bildungsdirektion - aktiver Schulfilter und Sprungziel
========================================================= */
.bd-schuelerdetails-section

{
    scroll-margin-top: 20px !important;
}

.bd-aktiver-filter {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    border-left: 6px solid #2563eb !important;
    border-radius: 12px !important;
    padding: 13px 15px !important;
    margin: 0 0 16px 0 !important;
}

    .bd-aktiver-filter > div {
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important;
    }

    .bd-aktiver-filter span {
        color: #64748b !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.04em !important;
    }

    .bd-aktiver-filter strong {
        color: #1e3a8a !important;
        font-size: 15px !important;
    }

    .bd-aktiver-filter a {
        display: inline-flex !important;
        align-items: center !important;
        background: #ffffff !important;
        color: #1d4ed8 !important;
        border: 1px solid #93c5fd !important;
        border-radius: 9px !important;
        padding: 8px 11px !important;
        text-decoration: none !important;
        font-size: 13px !important;
        font-weight: 800 !important;
    }

        .bd-aktiver-filter a:hover {
            background: #dbeafe !important;
            color: #1e40af !important;
        }

/* =========================================================
   Bildungsdirektion - Doch kein anderer Weg
========================================================= */

.bd-meldung {
    padding: 14px 16px !important;
    margin-bottom: 18px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

.bd-meldung-erfolg {
    background: #ecfdf5 !important;
    border: 1px solid #86efac !important;
    border-left: 6px solid #16a34a !important;
    color: #14532d !important;
}

.bd-meldung-fehler {
    background: #fef2f2 !important;
    border: 1px solid #fca5a5 !important;
    border-left: 6px solid #dc2626 !important;
    color: #991b1b !important;
}

.bd-ruecksetzen-hinweis {
    padding: 16px !important;
    margin: 4px 0 16px 0 !important;
    background: #fff7ed !important;
    border: 1px solid #fed7aa !important;
    border-left: 6px solid #f59e0b !important;
    border-radius: 12px !important;
}

    .bd-ruecksetzen-hinweis h3 {
        margin: 0 0 7px 0 !important;
        color: #9a3412 !important;
        font-size: 18px !important;
        font-weight: 900 !important;
    }

    .bd-ruecksetzen-hinweis p {
        margin: 0 !important;
        color: #7c2d12 !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

.bd-auswahl-werkzeuge {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
    padding: 14px 16px !important;
    margin-bottom: 12px !important;
    background: #f8fafc !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 12px !important;
}

.bd-alle-auswaehlen {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    margin: 0 !important;
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
}

    .bd-alle-auswaehlen input,
    .doch-kein-anderer-weg-checkbox {
        width: 19px !important;
        height: 19px !important;
        accent-color: #2563eb !important;
        cursor: pointer !important;
    }

.bd-button-speichern {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 10px 18px !important;
    border: none !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    box-shadow: 0 6px 14px rgba(217, 119, 6, 0.20) !important;
    transition: all 0.16s ease !important;
}

    .bd-button-speichern:hover {
        background: linear-gradient(135deg, #d97706, #b45309) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 8px 18px rgba(217, 119, 6, 0.26) !important;
    }

.bd-checkbox-spalte {
    min-width: 150px !important;
    text-align: center !important;
}

.bd-speichern-unten {
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 14px !important;
}

@media (max-width: 700px) {
    .bd-auswahl-werkzeuge {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .bd-button-speichern {
        width: 100% !important;
    }

    .bd-speichern-unten {
        justify-content: stretch !important;
    }

        .bd-speichern-unten .bd-button-speichern {
            width: 100% !important;
        }
}

/* =========================================================
   Bildungsdirektion - Paging
========================================================= */

.bd-filter-formular {
    grid-template-columns: minmax(240px, 1fr) minmax(280px, 1fr) minmax(140px, 180px) !important;
}

.bd-filter-seitengroesse {
    min-width: 140px !important;
}

.bd-listen-infozeile {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
    margin: 14px 0 18px 0 !important;
}

    .bd-listen-infozeile > div {
        color: #475569 !important;
        font-size: 14px !important;
    }

    .bd-listen-infozeile .bd-export-formular {
        margin: 0 !important;
    }

.bd-auswahl-status {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

    .bd-auswahl-status > span {
        display: inline-flex !important;
        align-items: center !important;
        min-height: 38px !important;
        background: #eef2ff !important;
        color: #1d4ed8 !important;
        border-radius: 999px !important;
        padding: 7px 12px !important;
        font-size: 13px !important;
        font-weight: 800 !important;
    }

.bd-button-warnung:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.bd-pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
    background: #f8fafc !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    margin-top: 16px !important;
}

.bd-pagination-info {
    color: #475569 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.bd-pagination-links {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.bd-pagination-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px !important;
    min-height: 38px !important;
    background: #ffffff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 9px !important;
    padding: 7px 10px !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

    .bd-pagination-button:hover {
        background: #dbeafe !important;
        border-color: #60a5fa !important;
        color: #1e40af !important;
        text-decoration: none !important;
    }

    .bd-pagination-button.aktiv {
        background: #2563eb !important;
        border-color: #2563eb !important;
        color: #ffffff !important;
    }

@media (max-width: 900px) {
    .bd-filter-formular {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 700px) {
    .bd-pagination {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    .bd-pagination-links {
        width: 100% !important;
    }

    .bd-pagination-button {
        flex: 1 1 auto !important;
    }

    .bd-auswahl-status {
        align-items: stretch !important;
        flex-direction: column !important;
    }
}

/* =========================================================
   Zielschulen Erstwunsch - Zeilenaktionen
========================================================= */

.ziel-erstwunsch-tabellen-container {
    width: 100% !important;
    overflow-x: auto !important;
}

.ziel-erstwunsch-tabelle {
    min-width: 1180px !important;
}

.ziel-zeilen-aktionen {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
}

.ziel-symbol-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    background: #ffffff !important;
    color: #1d4ed8 !important;
    border: 1px solid #93c5fd !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

    .ziel-symbol-button:hover {
        background: #dbeafe !important;
        border-color: #2563eb !important;
        color: #1e40af !important;
        text-decoration: none !important;
    }

.ziel-symbol-noten {
    background: #fff7ed !important;
    color: #c2410c !important;
    border-color: #fdba74 !important;
}

    .ziel-symbol-noten:hover {
        background: #ffedd5 !important;
        border-color: #f97316 !important;
        color: #9a3412 !important;
    }

.ziel-button-aufnehmen:disabled,
.ziel-button-abweisen:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
}

/* =========================================================
   Zielschulen - Erstwunsch vollständig
========================================================= */

.ziel-tabellen-zusatz {
    margin-top: 3px !important;
    color: #64748b !important;
    font-size: 12px !important;
}


.ziel-entscheidungs-aktionen form {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
}

.ziel-button-aufnehmen,
.ziel-button-abweisen {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 112px !important;
    min-height: 38px !important;
    padding: 8px 11px !important;
    white-space: nowrap !important;
}

.ziel-button-aufnehmen,
.ziel-button-abweisen {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: 8px 12px !important;
    border-radius: 9px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
}

.ziel-button-aufnehmen {
    background: #dcfce7 !important;
    border: 1px solid #86efac !important;
    color: #15803d !important;
}

    .ziel-button-aufnehmen:hover:not(:disabled) {
        background: #bbf7d0 !important;
        border-color: #4ade80 !important;
        transform: translateY(-1px) !important;
    }

.ziel-button-abweisen {
    background: #fee2e2 !important;
    border: 1px solid #fca5a5 !important;
    color: #b91c1c !important;
}

    .ziel-button-abweisen:hover:not(:disabled) {
        background: #fecaca !important;
        border-color: #f87171 !important;
        transform: translateY(-1px) !important;
    }

    .ziel-button-aufnehmen:disabled,
    .ziel-button-abweisen:disabled {
        cursor: not-allowed !important;
        opacity: 0.5 !important;
        transform: none !important;
    }

    .ziel-button-aufnehmen:focus,
    .ziel-button-abweisen:focus {
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    }

.ziel-mini-info {
    display: inline-flex !important;
    align-items: center !important;
    margin-top: 5px !important;
    margin-right: 4px !important;
    padding: 3px 8px !important;
    background: #eef2ff !important;
    border-radius: 999px !important;
    color: #1d4ed8 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

    .ziel-mini-info.anderer-weg {
        background: #ede9fe !important;
        color: #6d28d9 !important;
    }



/* =========================================================
   FINAL - Zielschulen Erstwunsch Legende und Aktionen
========================================================= */

.ziel-legende {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 12px 0 24px 0 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

    .ziel-legende > div {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        min-height: 48px !important;
        padding: 10px 12px !important;
        background: #f8fafc !important;
        border-right: 1px solid #dbe3ee !important;
        border-bottom: 1px solid #dbe3ee !important;
        color: #111827 !important;
        font-size: 13px !important;
        font-weight: 700 !important;
    }

.legende-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border: 1px solid #93c5fd !important;
    border-radius: 7px !important;
    background: #ffffff !important;
    color: #1d4ed8 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

    .legende-icon.hinweis {
        border-color: #fdba74 !important;
        color: #c2410c !important;
        background: #fff7ed !important;
    }

    .legende-icon.aufgenommen {
        border-color: #86efac !important;
        color: #15803d !important;
        background: #ecfdf5 !important;
    }

    .legende-icon.abgewiesen {
        border-color: #fca5a5 !important;
        color: #b91c1c !important;
        background: #fef2f2 !important;
    }

.ziel-erstwunsch-tabellen-container {
    width: 100% !important;
    overflow-x: auto !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 12px !important;
}

.ziel-erstwunsch-tabelle {
    width: 100% !important;
    min-width: 1180px !important;
    margin: 0 !important;
    background: #ffffff !important;
}


.ziel-symbol-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    background: #ffffff !important;
    color: #1d4ed8 !important;
    border: 1px solid #93c5fd !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

    .ziel-symbol-button:hover {
        background: #dbeafe !important;
        border-color: #2563eb !important;
        color: #1e40af !important;
        text-decoration: none !important;
    }

.ziel-symbol-noten {
    background: #fff7ed !important;
    border-color: #fdba74 !important;
    color: #c2410c !important;
}

    .ziel-symbol-noten:hover {
        background: #ffedd5 !important;
        border-color: #f97316 !important;
        color: #9a3412 !important;
    }

.ziel-erstwunsch-tabelle th:nth-child(1) {
    width: 55px !important;
}

.ziel-erstwunsch-tabelle th:nth-child(2) {
    width: 80px !important;
}

.ziel-erstwunsch-tabelle th:nth-child(3) {
    width: 190px !important;
}

.ziel-erstwunsch-tabelle th:nth-child(4) {
    width: 220px !important;
}

.ziel-erstwunsch-tabelle th:nth-child(5) {
    width: 180px !important;
}

.ziel-erstwunsch-tabelle th:nth-child(6) {
    width: 120px !important;
}

.ziel-erstwunsch-tabelle th:nth-child(7) {
    width: 175px !important;
}

.ziel-erstwunsch-tabelle th:nth-child(8) {
    width: 220px !important;
}

/* =========================================================
   FINAL - Zielschulen Erstwunsch Aktionen und Entscheidung
========================================================= */

.ziel-zeilen-aktionen {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    min-width: 200px !important;
}

.ziel-symbol-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #1d4ed8 !important;
    border: 1px solid #93c5fd !important;
    border-radius: 9px !important;
    text-decoration: none !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

    .ziel-symbol-button:hover {
        background: #dbeafe !important;
        border-color: #2563eb !important;
        color: #1e40af !important;
        text-decoration: none !important;
    }

.ziel-symbol-noten {
    background: #fff7ed !important;
    color: #c2410c !important;
    border-color: #fdba74 !important;
}

    .ziel-symbol-noten:hover {
        background: #ffedd5 !important;
        border-color: #f97316 !important;
        color: #9a3412 !important;
    }

.ziel-entscheidungs-aktionen {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    min-width: 250px !important;
}

    .ziel-entscheidungs-aktionen form {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        width: auto !important;
        margin: 0 !important;
    }

.ziel-button-aufnehmen,
.ziel-button-abweisen {
    width: auto !important;
    min-width: 112px !important;
    min-height: 38px !important;
    padding: 8px 11px !important;
    white-space: nowrap !important;
}

/* =========================================================
   Zentrale Seitenbreite
   Nur --was-seitenbreite ändern
========================================================= */

:root {
    --was-seitenbreite: 1600px;
}

/* Bootstrap-Container des Hauptinhalts verbreitern */
body > .container {
    width: 100% !important;
    max-width: var(--was-seitenbreite) !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

/* Alle wichtigen Inhaltsbereiche dürfen die Breite nutzen */
main,
.hauptinhalt,
.zielschulen-altbereich,
.ziel-modern-bereich,
.bd-modern-bereich,
.bd-auswertung,
.bereich-modern {
    width: 100% !important;
    max-width: var(--was-seitenbreite) !important;
}

/* Tabellenbereiche dürfen vollständig breit werden */
.ziel-erstwunsch-tabellen-container,
.bd-tabellen-container {
    width: 100% !important;
    max-width: none !important;
    overflow-x: auto !important;
}

/* Auf kleineren Bildschirmen Seitenabstand reduzieren */
@media (max-width: 800px) {
    body > .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

.ziel-erstwunsch-tabelle th:last-child,
.ziel-erstwunsch-tabelle td:last-child {
    min-width: 245px !important;
}

.ziel-entscheidungs-aktionen {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
}

/* =========================================================
   Zielschulen - Schülerdetails
========================================================= */

.ziel-detail-kopf {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 20px !important;
    margin-bottom: 18px !important;
    background: linear-gradient(135deg, #f8fafc, #eef6ff) !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 16px !important;
}

.ziel-detail-avatar {
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    background: #dbeafe !important;
    border-radius: 50% !important;
    color: #1d4ed8 !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

.ziel-detail-kopf h2 {
    margin: 0 !important;
    color: #111827 !important;
    font-size: 26px !important;
    font-weight: 900 !important;
}

.ziel-detail-kopf p {
    margin: 5px 0 0 0 !important;
    color: #64748b !important;
    font-size: 13px !important;
}

.ziel-detail-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin-bottom: 18px !important;
}

.ziel-detail-card {
    padding: 20px !important;
    background: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 16px !important;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05) !important;
}

    .ziel-detail-card h2 {
        margin: 0 0 16px 0 !important;
        color: #111827 !important;
        font-size: 21px !important;
        font-weight: 900 !important;
    }

.ziel-detail-liste {
    display: grid !important;
    grid-template-columns: minmax(150px, 0.8fr) minmax(180px, 1.2fr) !important;
    margin: 0 !important;
}

    .ziel-detail-liste dt,
    .ziel-detail-liste dd {
        padding: 9px 10px !important;
        margin: 0 !important;
        border-bottom: 1px solid #e2e8f0 !important;
        font-size: 13px !important;
    }

    .ziel-detail-liste dt {
        background: #f8fafc !important;
        color: #64748b !important;
        font-weight: 800 !important;
    }

    .ziel-detail-liste dd {
        color: #111827 !important;
        overflow-wrap: anywhere !important;
    }

        .ziel-detail-liste dt:last-of-type,
        .ziel-detail-liste dd:last-of-type {
            border-bottom: none !important;
        }

    .ziel-detail-liste a {
        color: #1d4ed8 !important;
        font-weight: 700 !important;
    }

.ziel-detail-notiz {
    white-space: pre-wrap !important;
}

.ziel-detail-buchungen {
    margin-bottom: 18px !important;
}

.ziel-aktuelle-buchung td {
    background: #eff6ff !important;
}

.ziel-detail-aktionen {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    padding: 16px !important;
    background: #f8fafc !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 14px !important;
}

.ziel-status.anderer-weg {
    background: #ede9fe !important;
    color: #6d28d9 !important;
}

@media (max-width: 850px) {
    .ziel-detail-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 600px) {
    .ziel-detail-liste {
        grid-template-columns: 1fr !important;
    }

        .ziel-detail-liste dt {
            padding-bottom: 3px !important;
            border-bottom: none !important;
        }

        .ziel-detail-liste dd {
            padding-top: 3px !important;
        }

    .ziel-detail-aktionen {
        align-items: stretch !important;
        flex-direction: column !important;
    }

        .ziel-detail-aktionen a {
            width: 100% !important;
        }
}

