:root {
    --color-bordeaux: #7a1628;
    --color-bordeaux-dark: #5c1020;
    --color-bordeaux-light: #a94257;
    --color-black: #1a1a1a;
    --color-bg: #ffffff;
    --color-bg-soft: #f5f5f5;
    --color-border: #e2e2e2;
    --color-text: #1a1a1a;
    --color-text-muted: #666666;
    --color-success-bg: #e9f7ef;
    --color-success-text: #1e7d40;
    --color-error-bg: #fbe9ec;
    --color-error-text: var(--color-bordeaux-dark);
    --radius: 6px;
    --max-width: 820px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-text);
    background: linear-gradient(180deg, #ffffff 0%, #f9eef0 100%);
    background-attachment: fixed;
    line-height: 1.55;
}

a {
    color: var(--color-bordeaux);
}

.site-header {
    background: var(--color-black);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header .logo {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.site-footer {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    padding: 32px 16px;
}

.page-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.eyebrow {
    color: var(--color-bordeaux);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    margin: 0 0 8px;
}

h1, h2, h3 {
    font-weight: 800;
    color: var(--color-black);
    line-height: 1.2;
}

h1 {
    font-size: 2.1rem;
    margin: 0 0 12px;
}

h2 {
    font-size: 1.4rem;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--color-bordeaux);
    border: none;
    margin: 10px 0 24px;
}

.intro-text {
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.card {
    background: var(--color-bg-soft);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
    border-left: 4px solid var(--color-bordeaux);
}

.card.plain {
    border-left: none;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
}

fieldset {
    border: none;
    padding: 0;
    margin: 0 0 32px;
}

legend {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 6px;
    padding: 0;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.92rem;
}

.field .hint {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    margin-top: 4px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: #ffffff;
    color: var(--color-text);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-bordeaux);
    box-shadow: 0 0 0 3px rgba(122, 22, 40, 0.12);
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 12px 14px;
}

.checkbox-option input {
    margin-top: 3px;
}

.checkbox-option .option-title {
    font-weight: 700;
}

.checkbox-option .option-desc {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 2px;
}

.radio-row {
    display: flex;
    gap: 20px;
}

.radio-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.consent-row input {
    margin-top: 4px;
}

.js-hidden {
    display: none;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.btn {
    display: inline-block;
    background: var(--color-bordeaux);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.9rem;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    background: var(--color-bordeaux-dark);
}

.btn.secondary {
    background: transparent;
    color: var(--color-bordeaux);
    border: 1px solid var(--color-bordeaux);
}

.btn.secondary:hover {
    background: var(--color-bordeaux);
    color: #ffffff;
}

.btn.danger {
    background: #a11f2e;
}

.btn.small {
    padding: 8px 14px;
    font-size: 0.78rem;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 0.92rem;
}

.alert.success {
    background: var(--color-success-bg);
    color: var(--color-success-text);
}

.alert.error {
    background: var(--color-error-bg);
    color: var(--color-error-text);
}

.field-error {
    color: var(--color-error-text);
    font-size: 0.82rem;
    margin-top: 4px;
}

.has-error input,
.has-error select {
    border-color: var(--color-error-text);
}

/* Admin-Bereich */

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-nav {
    width: 220px;
    background: var(--color-black);
    color: #ffffff;
    padding: 24px 0;
    flex-shrink: 0;
}

.admin-nav a {
    display: block;
    color: #d8d8d8;
    text-decoration: none;
    padding: 12px 24px;
    font-size: 0.92rem;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--color-bordeaux);
    color: #ffffff;
}

.admin-nav .nav-title {
    color: #ffffff;
    font-weight: 800;
    padding: 0 24px 20px;
    font-size: 1rem;
}

.admin-content {
    flex: 1;
    padding: 32px 40px;
    max-width: 1200px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-tile {
    background: var(--color-bg-soft);
    border-radius: var(--radius);
    padding: 20px;
    border-left: 4px solid var(--color-bordeaux);
}

.stat-tile .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
}

.stat-tile .stat-label {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

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

table th,
table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
    vertical-align: top;
}

table th {
    background: var(--color-bg-soft);
    font-weight: 700;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge.active {
    background: var(--color-success-bg);
    color: var(--color-success-text);
}

.badge.cancelled {
    background: var(--color-error-bg);
    color: var(--color-error-text);
}

.toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.login-wrap {
    max-width: 380px;
    margin: 80px auto;
    padding: 0 20px;
}

@media (max-width: 720px) {
    .admin-shell {
        flex-direction: column;
    }

    .admin-nav {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding: 12px 0;
    }

    .admin-nav .nav-title {
        display: none;
    }

    .admin-content {
        padding: 20px;
    }

    .radio-row {
        flex-direction: column;
        gap: 8px;
    }
}
