/* === Grundlayout mit Footer am unteren Rand === */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* === Footer Styling (nicht fixiert!) === */
footer {
    background-color: #f8f9fa;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    text-align: center;
    font-size: 0.875rem;
}

/* === Buttons === */
.btn {
    transition: all 0.3s ease;
}

.btn-outline-secondary {
    transition: all 0.3s ease;
}
.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

.btn-outline-primary {
    transition: all 0.3s ease;
}
.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
}

.btn-outline-info {
    transition: all 0.3s ease;
}
.btn-outline-info:hover {
    background-color: #0dcaf0;
    color: white;
}

.btn-outline-dark {
    transition: all 0.3s ease;
}
.btn-outline-dark:hover {
    background-color: #212529;
    color: white;
}

/* === Karten & Icons === */
.card-body i {
    transition: transform 0.2s ease;
}
.card-body:hover i {
    transform: scale(1.1);
}
.card, .navbar, .btn {
    border-radius: 0.5rem;
}

/* === Navbar Hover === */
.navbar-brand:hover {
    opacity: 0.9;
    transition: opacity 0.2s;
}

/* === Tabellen & Avatare === */
.table-danger {
    background-color: #f8d7da !important;
}

.bi {
    vertical-align: middle;
}

.avatar-circle {
    background-color: #6c757d;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === Modals === */
.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
}

/* Footer bei offenem Modal ausblenden */
body.modal-open footer {
    opacity: 0;
    pointer-events: none;
}

/* === Dropdowns === */
.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* === Mobile Optimierung === */
@media (max-width: 768px) {
    .btn-group > .btn {
        flex: 1 1 auto;
    }
}

/* === Druckansicht === */
@media print {
    body *:not(.card, .card *):not(.table):not(.table *) {
        display: none !important;
    }
    .card {
        border: none;
    }
}
