/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    font-family: var(--font);
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
    border: 1px solid transparent;
    line-height: 1.4;
    text-decoration: none;
}

.btn i { font-size: 15px; }

.btn-primary {
    background: var(--accent);
    color: var(--accent-text);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    text-decoration: none;
    color: var(--accent-text);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    background: var(--bg-page);
    text-decoration: none;
    color: var(--text-primary);
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    text-decoration: none;
    color: #ffffff;
}

.btn-sm {
    padding: 4px 10px;
    font-size: var(--font-size-xs);
}

/* Icon Buttons */
.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 7px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 17px;
    transition: background var(--transition), color var(--transition);
    line-height: 1;
}

.btn-icon:hover {
    background: var(--bg-page);
    color: var(--text-primary);
}

.btn-icon.danger:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Badges / Status */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: 500;
    white-space: nowrap;
}

.badge-free {
    background: var(--status-free-bg);
    color: var(--status-free-text);
}

.badge-reserved {
    background: var(--status-reserved-bg);
    color: var(--status-reserved-text);
}

.badge-sold {
    background: var(--status-sold-bg);
    color: var(--status-sold-text);
}

.badge-offline {
    background: var(--status-offline-bg);
    color: var(--status-offline-text);
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 15px;
    font-weight: 500;
}

/* Tabellen */
.table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    padding: 10px 16px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    background: var(--bg-page);
}

tbody td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    font-size: var(--font-size-sm);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover td {
    background: #fafafa;
}

.td-actions {
    white-space: nowrap;
    text-align: right;
}

/* Formulare */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-label.required::after {
    content: ' *';
    color: #dc2626;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    font-family: var(--font);
    color: var(--text-primary);
    background: #ffffff;
    transition: border-color var(--transition);
    line-height: 1.5;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control select,
select.form-control {
    cursor: pointer;
}

.form-hint {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-top: 4px;
}

.form-error {
    font-size: var(--font-size-xs);
    color: #dc2626;
    margin-top: 4px;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    background: var(--bg-card);
    padding: 0 4px;
}

.tab {
    padding: 12px 16px;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    text-decoration: none;
    transition: color var(--transition);
}

.tab:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 500;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 100%;
    max-width: 420px;
    margin: 16px;
    border: 1px solid var(--border);
}

.modal-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.modal-body {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Leere Zustände */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
    opacity: 0.4;
}

.empty-state p {
    font-size: var(--font-size-sm);
}
