/* Allgemeine Stile */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #2c3e50;
    font-weight: 700;
}

/* Layout */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.full-width {
    grid-column: 1 / -1;
}

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
}

/* Karten-Stile */
.card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 25px;
}
.card h2 {
    margin-top: 0;
    color: #34495e;
    border-bottom: 2px solid #eef2f5;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.form-card {
    border: 1px solid #eef2f5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.form-card:last-child { margin-bottom: 0; }
.form-card h3 { margin-top: 0; font-size: 1.1em; }

/* Formularelemente */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 5px; color: #555; font-size: 0.9em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; align-items: end; }

input[type="text"], input[type="date"], input[type="password"], select {
    width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; transition: all 0.2s ease-in-out;
}
input[type="text"]:focus, input[type="date"]:focus, input[type="password"]:focus, select:focus {
    border-color: #3498db; outline: none; box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

button, .button, .clear-button, .edit-button, .logout-button, .delete-button {
    background-color: #3498db; color: white; padding: 12px 20px; border: none; border-radius: 6px; cursor: pointer; font-size: 1em; font-weight: 500;
    transition: background-color 0.3s; width: 100%; text-align: center; display: inline-block; text-decoration: none;
}
button:hover, .button:hover { background-color: #2980b9; }

.clear-button { background-color: #95a5a6; margin-top: 10px; }
.clear-button:hover { background-color: #7f8c8d; }

.edit-button { background-color: #1abc9c; padding: 8px 12px; font-size: 0.9em; }
.edit-button:hover { background-color: #16a085; }

.delete-button { background-color: #e74c3c; padding: 8px 12px; font-size: 0.9em; }
.delete-button:hover { background-color: #c0392b; }

.logout-button { background-color: #f39c12; color: white; padding: 8px 15px; font-size: 0.9em; text-decoration: none; width: auto; }
.logout-button:hover { background-color: #e67e22; }

/* Tabellen */
table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 0.9em; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; vertical-align: middle; }
thead th { background-color: #f2f2f2; font-weight: 600; color: #34495e; }
tbody tr:hover { background-color: #f1f1f1; }

/* Status & Aktionen */
.status-ausgebucht { color: #c0392b; font-weight: bold; background-color: #f8d7da; padding: 3px 8px; border-radius: 4px; display: inline-block; }
.ausbuchen-form .form-group-inline { display: flex; gap: 5px; align-items: center; }
.ausbuchen-form input[type="text"] { flex-grow: 1; padding: 8px; font-size: 0.9em; min-width: 100px; }
.ausbuchen-form button { padding: 8px 12px; width: auto; font-size: 0.9em; background-color: #e67e22; }
.ausbuchen-form button:hover { background-color: #d35400; }
td.action-cell { min-width: 250px; }

/* Benachrichtigungen */
.message { padding: 15px; margin-bottom: 20px; border-radius: 6px; border: 1px solid transparent; }
.message.success { background-color: #d4edda; color: #155724; border-color: #c3e6cb; }
.message.error { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; }

/* Login Seite */
.login-wrapper { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login-container { width: 100%; max-width: 400px; padding: 30px; background: white; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); border-radius: 12px; }
.login-container h2 { text-align: center; margin-bottom: 20px; }
.invalid-feedback { color: #e74c3c; font-size: 0.8em; }
.is-invalid { border-color: #e74c3c !important; }

/* Navigation */
nav {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border-radius: 8px;
    padding: 0 20px;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}
.nav-brand { font-size: 1.5em; font-weight: bold; color: #2c3e50; }
.nav-links a { color: #34495e; text-decoration: none; padding: 0 15px; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: #3498db; }
.nav-user { display: flex; align-items: center; gap: 20px; }

/* User Management */
.inline-form { display: flex; gap: 5px; align-items: center; }
.inline-form input { flex-grow: 1; }
.inline-form button { width: auto; }

/* Back Button Container */
.back-button-container {
    text-align: center;
    margin-bottom: 25px;
}
.back-button-container .button {
    width: auto;
    padding-left: 30px;
    padding-right: 30px;
}

/* Profile Page Layout */
.profile-layout {
    max-width: 700px;
    margin: 0 auto;
}

