/* css/custom.css */

/* --- KONTRASTREICHERE CARDS & BOXEN --- */
.card {
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.125) !important; /* Etwas prägnantere Kante im Hell-Modus */
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.06) !important;
}

/* Anpassungen speziell für den Dark Mode */
[data-bs-theme="dark"] .card {
    border-color: rgba(255, 255, 255, 0.15) !important; /* Soft-weiße Kante für klaren Kontrast im Dunkeln */
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="dark"] .card-header {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .bg-light,
[data-bs-theme="dark"] .bg-body-tertiary {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .table-light {
    --bs-table-bg: rgba(255, 255, 255, 0.05);
    --bs-table-color: var(--bs-body-color);
}

/* Sanfter Hintergrund für Seiten */
body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

/* css/custom.css */

/* --- GENERAL CARDS & SHADOWS --- */
.card {
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.125) !important;
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.05) !important;
}

/* --- DARK MODE ANPASSUNGEN --- */
[data-bs-theme="dark"] {
    --bs-body-color: #e2e8f0;
    --bs-body-color-rgb: 226, 232, 240;
}

[data-bs-theme="dark"] .card {
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.3) !important;
}

[data-bs-theme="dark"] .card-header {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .text-dark,
[data-bs-theme="dark"] .text-muted,
[data-bs-theme="dark"] .text-secondary {
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .bg-light,
[data-bs-theme="dark"] .bg-body-tertiary,
[data-bs-theme="dark"] .bg-info-subtle {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .text-info-emphasis {
    color: #38bdf8 !important; 
}

footer,
footer.bg-white {
    background-color: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important;
    border-top: 1px solid rgba(128, 128, 128, 0.2) !important;
}

[data-bs-theme="dark"] footer .text-muted,
[data-bs-theme="dark"] footer .text-secondary {
    color: #94a3b8 !important;
}