/* General Body Styles */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Serif:wght@500&display=swap');
body {
    font-family: 'Roboto Serif', sans-serif;
    background-color: #f7f4f0;
    color: #343a40;
}

/* Container for content */
.container {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Navigation Bar */
.navbar {
    background-color: #ede5dc !important;
    border-bottom: 5px solid #7c7c7c;
    min-height: 100px; /* Mindesthöhe für Logo + etwas Padding */
    padding-top: 5px;
    padding-bottom: 5px;
}

.navbar .container-fluid {
    min-height: 80px; /* Entspricht der Logo-Höhe */
}

.navbar-brand {
    font-weight: bold;
    color: #495057 !important;
    padding: 0;
    margin-right: 1rem;
}

/* Hamburger Button immer sichtbar */
.navbar-toggler {
    display: block !important;
    border: 1px solid #495057;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Menü-Stil für alle Bildschirmgrößen */
#navbarNav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ede5dc;
    border-top: 1px solid #7c7c7c;
    z-index: 1000;
}

.navbar-nav {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 1rem;
}

.nav-link {
    color: #495057 !important;
    padding: 0.5rem 1rem;
    width: 100%;
}

.nav-link:hover {
    color: #DAC9BF !important;
    background-color: rgba(0, 0, 0, 0.05);
}

/* Collapse-Animation */
.collapse:not(.show) {
    display: none;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #343a40;
    margin-bottom: 15px;
}

/* Cards */
.card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: #EDE6DC;
    color: #343a40;
    font-weight: bold;
    border-bottom: 1px solid #EDE6DC;
    border-top-left-radius: calc(0.5rem - 1px);
    border-top-right-radius: calc(0.5rem - 1px);
}

/* Forms */
.form-label {
    font-weight: bold;
    color: #495057;
}

.form-control, .form-select {
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
}

/* Buttons */
.btn-primary {
    background-color: #EDE6DC;
    border-color: #EDE6DC;
    color: #343a40;
}

.btn-primary:hover {
    background-color: #EDE6DC;
    border-color: #EDE6DC;
    color: #343a40;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529; /* Dark text for better contrast */
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
}

.btn-info {
    background-color: #DAC9BF;
    border-color: #EDE6DC;
}

.btn-info:hover {
    background-color: #DAC9BF;
    border-color: #DAC9BF;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

/* Alerts */
.alert {
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

/* Tables */
.table {
    background-color: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden; /* Ensures rounded corners apply to table */
}

.table thead th {
    background-color: #EDE6DC;
    color: #343a40;
    border-bottom: none;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Links */
a {
    color: #DAC9BF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #ede5dc !important;
    border-top: 5px solid #7c7c7c;
    color: #495057;
    text-align: center;
    margin-top: auto;
}

footer p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

footer strong {
    color: #343a40;
}

/* Specific adjustments for layout */
.row.g-3 {
    align-items: flex-end;
}

.navbar-collapse {
    align-items: flex-end;
}
