/* ==================================================
   BENUTZER-KÄRTCHEN
   Hauptstylesheet
   Version 2.01
   © Dakhlaoui 2026
   ================================================== */


/* ==================================================
   GRUNDKONFIGURATION
   ================================================== */

:root {

    --primary: #155b91;

    --primary-dark: #0e426b;

    --primary-light: #eaf4fb;

    --secondary: #16a6a0;

    --secondary-light: #e7f7f6;

    --background: #f3f6f9;

    --surface: #ffffff;

    --border: #dce4ea;

    --text: #243746;

    --text-light: #6b7c8c;

    --success: #198754;

    --warning: #d99000;

    --danger: #c0392b;

    --shadow:
        0 4px 18px rgba(30, 60, 90, 0.08);

    --radius: 12px;

}


/* ==================================================
   RESET
   ================================================== */

* {

    box-sizing: border-box;

}


html {

    min-height: 100%;

}


body {

    margin: 0;

    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--background);

    color: var(--text);

}


/* ==================================================
   HEADER
   ================================================== */

.top-header {

    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        );

    color: white;

}


.header-inner {

    max-width: 1400px;

    margin: 0 auto;

    min-height: 82px;

    padding:
        15px
        25px;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.brand {

    display: flex;

    align-items: center;

    gap: 14px;

}


.brand-icon {

    width: 48px;

    height: 48px;

    border-radius: 12px;

    background: rgba(255,255,255,0.15);

    border:
        1px solid
        rgba(255,255,255,0.25);

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: bold;

    font-size: 18px;

}


.brand-title {

    font-size: 24px;

    font-weight: 700;

    line-height: 1.2;

}


.brand-school {

    margin-top: 3px;

    font-size: 13px;

    opacity: 0.85;

}


.header-version {

    font-size: 13px;

    opacity: 0.8;

}


/* ==================================================
   NAVIGATION
   ================================================== */

.main-navigation {

    background: white;

    border-bottom:
        1px solid
        var(--border);

}


.navigation-inner {

    max-width: 1400px;

    margin: 0 auto;

    min-height: 58px;

    padding:
        0
        20px;

    display: flex;

    align-items: center;

    gap: 5px;

}


.nav-link {

    min-height: 58px;

    padding:
        0
        15px;

    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--text-light);

    text-decoration: none;

    font-size: 14px;

    border-bottom:
        3px solid
        transparent;

    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s;

}


.nav-link:hover {

    background: var(--primary-light);

    color: var(--primary);

}


.nav-link.active {

    color: var(--primary);

    font-weight: 600;

    border-bottom-color:
        var(--secondary);

}


.nav-icon {

    font-size: 16px;

}


.nav-spacer {

    flex: 1;

}


.nav-login {

    color: var(--primary);

}


/* ==================================================
   HAUPTBEREICH
   ================================================== */

.main-content {

    min-height:
        calc(100vh - 200px);

    padding:
        30px
        20px;

}


.content-container {

    max-width: 1400px;

    margin: 0 auto;

}


/* ==================================================
   SEITENKOPF
   ================================================== */

.page-header {

    margin-bottom: 25px;

}


.page-title {

    margin: 0;

    color: var(--primary-dark);

    font-size: 30px;

}


.page-description {

    margin:
        8px
        0
        0;

    color: var(--text-light);

    font-size: 15px;

}


/* ==================================================
   DASHBOARD-KARTEN
   ================================================== */

.dashboard-grid {

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 20px;

    margin-bottom: 25px;

}


.dashboard-card {

    background: var(--surface);

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    padding: 22px;

    box-shadow: var(--shadow);

}


.dashboard-card-title {

    color: var(--text-light);

    font-size: 13px;

    margin-bottom: 10px;

}


.dashboard-card-value {

    color: var(--primary-dark);

    font-size: 30px;

    font-weight: 700;

}


.dashboard-card-info {

    margin-top: 8px;

    color: var(--text-light);

    font-size: 12px;

}


/* ==================================================
   CONTENT-KARTEN
   ================================================== */

.card {

    background: white;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    box-shadow: var(--shadow);

    margin-bottom: 25px;

}


.card-header {

    padding:
        18px
        22px;

    border-bottom:
        1px solid
        var(--border);

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.card-title {

    margin: 0;

    font-size: 18px;

    color: var(--primary-dark);

}


.card-body {

    padding: 22px;

}


/* ==================================================
   BUTTONS
   ================================================== */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding:
        10px
        17px;

    border-radius: 8px;

    border:
        1px solid
        transparent;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.15s,
        box-shadow 0.15s,
        background 0.15s;

}


.btn:hover {

    transform: translateY(-1px);

}


.btn-primary {

    background: var(--primary);

    color: white;

}


.btn-primary:hover {

    background: var(--primary-dark);

}


.btn-secondary {

    background: var(--secondary);

    color: white;

}


.btn-light {

    background: white;

    color: var(--primary);

    border-color:
        var(--border);

}


/* ==================================================
   QUICK ACTIONS
   ================================================== */

.quick-actions {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 15px;

}


.quick-action {

    padding: 20px;

    background: var(--primary-light);

    border:
        1px solid
        #d5e7f5;

    border-radius: 10px;

    text-decoration: none;

    color: var(--primary-dark);

    transition:
        transform 0.2s,
        box-shadow 0.2s;

}


.quick-action:hover {

    transform: translateY(-2px);

    box-shadow:
        0 6px 20px
        rgba(30,60,90,0.10);

}


.quick-action-title {

    font-size: 16px;

    font-weight: 700;

    margin-bottom: 7px;

}


.quick-action-description {

    font-size: 13px;

    color: var(--text-light);

}


/* ==================================================
   INFO-BANNER
   ================================================== */

.info-banner {

    padding: 16px 20px;

    border-radius: 10px;

    background: var(--secondary-light);

    border:
        1px solid
        #c8ebe9;

    color: #126c69;

    margin-bottom: 20px;

}


/* ==================================================
   FORMULARE
   ================================================== */

.form-group {

    margin-bottom: 18px;

}


.form-label {

    display: block;

    margin-bottom: 7px;

    font-size: 14px;

    font-weight: 600;

}


.form-control {

    width: 100%;

    padding:
        11px
        13px;

    border:
        1px solid
        var(--border);

    border-radius: 8px;

    background: white;

    color: var(--text);

    font-size: 14px;

}


.form-control:focus {

    outline: none;

    border-color:
        var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(21,91,145,0.10);

}


/* ==================================================
   TABELLEN
   ================================================== */

.table-wrapper {

    overflow-x: auto;

}


.data-table {

    width: 100%;

    border-collapse: collapse;

}


.data-table th {

    padding:
        13px
        15px;

    background:
        var(--primary-light);

    color:
        var(--primary-dark);

    text-align: left;

    font-size: 13px;

}


.data-table td {

    padding:
        13px
        15px;

    border-bottom:
        1px solid
        var(--border);

    font-size: 14px;

}


.data-table tr:hover td {

    background: #f8fbfd;

}


/* ==================================================
   STATUS
   ================================================== */

.status {

    display: inline-block;

    padding:
        5px
        9px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 600;

}


.status-success {

    background: #e8f6ee;

    color: var(--success);

}


.status-warning {

    background: #fff5df;

    color: var(--warning);

}


/* ==================================================
   LOGIN
   ================================================== */

.login-container {

    max-width: 450px;

    margin:
        50px
        auto;

}


.login-logo {

    text-align: center;

    margin-bottom: 25px;

}


.login-logo-title {

    color: var(--primary-dark);

    font-size: 28px;

    font-weight: 700;

}


.login-logo-school {

    color: var(--text-light);

    margin-top: 5px;

}


/* ==================================================
   FOOTER
   ================================================== */

.footer {

    background:
        #ffffff;

    border-top:
        1px solid
        var(--border);

}


.footer-inner {

    max-width: 1400px;

    min-height: 70px;

    margin: 0 auto;

    padding:
        15px
        25px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    color: var(--text-light);

    font-size: 12px;

}


.footer-separator {

    margin:
        0
        8px;

    color:
        var(--border);

}


/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 1000px) {

    .dashboard-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

    }

    .quick-actions {

        grid-template-columns:
            1fr;

    }

    .navigation-inner {

        overflow-x: auto;

    }

}


@media (max-width: 700px) {

    .header-inner {

        padding:
            12px
            15px;

    }

    .header-version {

        display: none;

    }

    .brand-title {

        font-size: 20px;

    }

    .main-content {

        padding:
            20px
            12px;

    }

    .dashboard-grid {

        grid-template-columns:
            1fr;

    }

    .footer-inner {

        flex-direction: column;

        justify-content: center;

        text-align: center;

    }

}


/* ==================================================
   CSV IMPORT
   ================================================== */

.error-banner {

    padding: 16px 20px;

    margin-bottom: 20px;

    border-radius: 10px;

    background: #fdecea;

    border: 1px solid #f2c5c1;

    color: #9d2d22;

}


.error-banner ul {

    margin-bottom: 0;

}


.warning-banner {

    padding: 16px 20px;

    margin-bottom: 20px;

    border-radius: 10px;

    background: #fff6df;

    border: 1px solid #f0dda4;

    color: #8a6200;

}


code {

    padding: 4px 7px;

    border-radius: 5px;

    background: #f0f3f5;

    color: #243746;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 13px;

}

/* ==================================================
   CSV IMPORT BESTÄTIGUNG
   ================================================== */

.import-confirm-box {
    margin-top: 25px;
    padding: 22px;
    border-radius: 12px;
    background: #eef7ff;
    border: 1px solid #b9d8ef;
}

.import-confirm-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.import-confirm-box p {
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 7px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: #155b91;
    color: white;
}

.btn-primary:hover {
    background: #104a76;
}

.btn-secondary {
    background: #e5e7eb;
    color: #243746;
    margin-left: 8px;
}

.btn-secondary:hover {
    background: #d1d5db;
}

/* ==================================================
   FLASH MELDUNGEN
   ================================================== */

.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    padding: 14px 18px;
    border-radius: 9px;
    margin-bottom: 10px;
}

.flash-success {
    background: #e8f7ed;
    border: 1px solid #b9dfc5;
    color: #216e39;
}

.flash-error {
    background: #fdecea;
    border: 1px solid #f2c5c1;
    color: #9d2d22;
}

.flash-warning {
    background: #fff6df;
    border: 1px solid #f0dda4;
    color: #8a6200;
}

.flash-info {
    background: #eef7ff;
    border: 1px solid #b9d8ef;
    color: #155b91;
}

/* ==================================================
   BENUTZERVERWALTUNG
   ================================================== */

.search-card {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border: 1px solid #dce3e8;
    border-radius: 12px;
}

.search-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 280px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #cbd5dc;
    border-radius: 7px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #155b91;
}

.form-card {
    padding: 25px;
    background: white;
    border: 1px solid #dce3e8;
    border-radius: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 20px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.table-responsive {
    overflow-x: auto;
}

.action-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-small {
    padding: 7px 11px;
    font-size: 12px;
}

.btn-danger {
    background: #b42318;
    color: white;
}

.btn-danger:hover {
    background: #8f1c13;
}

.status-active {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    background: #e8f7ed;
    color: #216e39;
    font-size: 12px;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
}

.empty-state h3 {
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 20px;
}
