* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f6fa;
    color: #222;
}

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

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.brand a {
    text-decoration: none;
    color: #111827;
    font-size: 22px;
    font-weight: bold;
}

.main-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    background: #f3f4f6;
    padding: 10px 14px;
    border-radius: 8px;
    transition: 0.2s ease;
}

.nav-link:hover {
    background: #e5e7eb;
}

.nav-link.active {
    background: #007bff;
    color: #fff;
}

.page-content {
    padding-top: 30px;
    padding-bottom: 30px;
}

.page-title {
    margin-top: 0;
    margin-bottom: 25px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.stat-card h2 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #666;
}

.stat-card .value {
    font-size: 32px;
    font-weight: bold;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.panel {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

th {
    color: #666;
    font-size: 14px;
}

.btn {
    display: inline-block;
    text-decoration: none;
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    cursor: pointer;
}

.btn-primary {
    background: #198754;
    color: #fff;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.alert-success {
    background: #d1e7dd;
    color: #0f5132;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background: #f8d7da;
    color: #842029;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 14px;
    display: inline-block;
}

.status-aktiv { background: #d4edda; }
.status-werkstatt { background: #fff3cd; }
.status-abgemeldet { background: #f8d7da; }
.status-verkauft { background: #d1ecf1; }
.status-reserviert { background: #e2e3e5; }

@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
}

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

.field label {
    font-weight: bold;
    margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.actions {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.alert-error ul {
    margin: 10px 0 0 20px;
}

@media (max-width: 800px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}