:root {
    --brand: #f2a900;
    --brand-dark: #d39200;
    --ink: #1f1b16;
    --surface: #ffffff;
    --bg: #f6f3ee;
    --line: #e7e1d6;
    --c-requested: #f2a900;
    --c-confirmed: #b30414;
    --c-rejected: #6c757d;
    --c-free: #2e8b57;
}

.admin-body {
    background: var(--bg);
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.admin-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.btn-brand {
    background: var(--brand);
    border-color: var(--brand);
    color: #1f1b16;
    font-weight: 600;
}
.btn-brand:hover, .btn-brand:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #1f1b16;
}

.nav-pills .nav-link { color: var(--ink); }
.nav-pills .nav-link.active { background: var(--ink); color: #fff; }

/* Kennzahlen */
.stat-tile {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    text-decoration: none;
    color: var(--ink);
    text-align: left;
    transition: transform .15s, box-shadow .15s;
    height: 100%;
}
.stat-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.06); color: var(--ink); }
.stat-value { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.stat-label { font-size: .85rem; color: #6b6358; }
.stat-requested { border-left: 5px solid var(--c-requested); }
.stat-confirmed { border-left: 5px solid var(--c-confirmed); }
.stat-action { background: var(--ink); color: #fff; border-color: var(--ink); }
.stat-action .stat-label { color: #d8d2c8; }
.stat-action:hover { color: #fff; }

/* Status-Badges */
.status-badge {
    display: inline-block;
    padding: .2em .6em;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.3;
}
.status-angefragt { background: #fff1cc; color: #7a5600; }
.status-bestaetigt { background: var(--c-confirmed); color: #fff; }
.status-abgelehnt { background: #e9ecef; color: #495057; }
.status-frei { background: #d6f0e0; color: #1d5e3a; }
.status-unbekannt { background: #eee; color: #333; }

/* Reservationsliste */
.res-list { display: grid; gap: .75rem; }
.res-card {
    display: grid;
    grid-template-columns: 130px 1fr 150px;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-left-width: 5px;
}
.res-card.is-past { opacity: .7; }
.status-border-angefragt { border-left-color: var(--c-requested); }
.status-border-bestaetigt { border-left-color: var(--c-confirmed); }
.status-border-abgelehnt { border-left-color: var(--c-rejected); }
.status-border-frei { border-left-color: var(--c-free); }

.res-main a { color: inherit; text-decoration: none; }
.res-main a:hover { text-decoration: underline; }
.res-note { white-space: normal; max-height: 6.5em; overflow: auto; }
.res-actions { display: flex; flex-direction: column; gap: .4rem; }
.tiny { font-size: .75rem; }
.dropdown-item { padding: .35rem 1rem; }

@media (max-width: 767.98px) {
    .res-card { grid-template-columns: 1fr; gap: .6rem; }
    .res-date { display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; }
    .res-date .mt-1 { margin-top: 0 !important; }
    .res-actions { flex-direction: row; }
    .res-actions > * { flex: 1; }
}

/* Kalender */
.legend { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: .35rem; vertical-align: -1px; }
#adminCalendar .fc-button-primary {
    background: var(--ink);
    border-color: var(--ink);
}
#adminCalendar .fc-button-primary:not(:disabled).fc-button-active,
#adminCalendar .fc-button-primary:hover { background: #3a332b; border-color: #3a332b; }
#adminCalendar .fc-event { cursor: pointer; font-size: .8rem; }
#adminCalendar .fc-daygrid-day-number,
#adminCalendar .fc-col-header-cell-cushion,
#adminCalendar .fc-list-day-text,
#adminCalendar .fc-list-day-side-text { color: var(--ink); text-decoration: none; }
#adminCalendar .fc-daygrid-day { cursor: pointer; }
#adminCalendar .fc-day-today { background: rgba(242,169,0,.12) !important; }
#adminCalendar .fc-toolbar-title { font-size: 1.2rem; }
@media (max-width: 575.98px) {
    #adminCalendar .fc-toolbar { flex-direction: column; gap: .5rem; }
}
