:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-2: #f8fafb;
    --text: #18212b;
    --muted: #6b7580;
    --line: #e3e8ed;
    --line-strong: #d5dce3;
    --navy: #172430;
    --navy-2: #213443;
    --accent: #d94b45;
    --accent-dark: #b93833;
    --accent-soft: #fff0ef;
    --green: #1e7b55;
    --green-soft: #eaf7f1;
    --orange: #9b6517;
    --orange-soft: #fff6df;
    --red: #b23b38;
    --red-soft: #fdeeed;
    --blue-soft: #edf4fb;
    --shadow: 0 14px 35px rgba(26, 37, 48, .06);
    --radius: 18px;
    --radius-sm: 11px;
    --sidebar: 256px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
img { max-width: 100%; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar);
    z-index: 30;
    display: flex;
    flex-direction: column;
    padding: 22px 16px 18px;
    background: var(--navy);
    color: #eef4f7;
    overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand strong { display: block; font-size: 14px; line-height: 1.25; letter-spacing: .01em; }
.brand small { display: block; margin-top: 2px; color: #9fb0bc; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 13px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    box-shadow: 0 7px 20px rgba(217,75,69,.24);
}
.brand-mark.large { width: 56px; height: 56px; flex-basis: 56px; border-radius: 17px; font-size: 15px; }
.nav-main { display: grid; gap: 4px; margin-top: 32px; }
.nav-main a {
    position: relative;
    padding: 10px 12px;
    border-radius: 10px;
    color: #bac6ce;
    font-size: 14px;
    font-weight: 650;
    transition: .18s ease;
}
.nav-main a:hover { background: rgba(255,255,255,.055); color: #fff; }
.nav-main a.active { background: rgba(255,255,255,.095); color: #fff; }
.nav-main a.active::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--accent);
}
.nav-section-label { margin: 26px 12px -20px; color: #718391; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.sidebar-footer { margin-top: auto; padding-top: 28px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.user-chip strong { display: block; max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.user-chip small { display: block; color: #8597a4; font-size: 10px; }
.avatar {
    width: 34px; height: 34px; flex: 0 0 34px; display: inline-grid; place-items: center;
    border-radius: 50%; background: #e9eef2; color: #33434f; font-size: 11px; font-weight: 850;
}
.sidebar .avatar { background: #2d4252; color: #dbe5ea; }
.avatar-large { width: 58px; height: 58px; flex-basis: 58px; font-size: 16px; }
.logout-link { display: block; margin: 1px 12px 0; color: #899aa6; font-size: 12px; }
.logout-link:hover { color: #fff; }

.main-column { width: calc(100% - var(--sidebar)); min-height: 100vh; margin-left: var(--sidebar); display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 20;
    height: 64px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 34px; border-bottom: 1px solid rgba(216,223,229,.9); background: rgba(244,246,248,.94); backdrop-filter: blur(12px);
}
.topbar-title { font-size: 13px; font-weight: 750; color: #52606b; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-date { color: var(--muted); font-size: 12px; }
.mobile-menu { display: none !important; }
.content { width: min(1500px, 100%); margin: 0 auto; padding: 36px 36px 48px; flex: 1; }
.app-footer { padding: 22px 36px 30px; color: #89939c; text-align: center; font-size: 11px; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-heading h1 { margin: 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.15; letter-spacing: -.035em; }
.page-heading p { max-width: 760px; margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eyebrow { display: block; margin-bottom: 7px; color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.light { color: #f3aaa6; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.break-word { word-break: break-word; }

.card {
    margin-bottom: 20px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.card-header h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.text-link { color: var(--accent); font-size: 12px; font-weight: 750; }
.text-link:hover { color: var(--accent-dark); }

.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-grid.admin-stats { grid-template-columns: repeat(4, minmax(0,1fr)); }
.stat-grid.compact-stats { grid-template-columns: repeat(2,minmax(0,220px)); }
.stat-card { min-height: 134px; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.stat-label { display: block; color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.stat-card > strong { display: block; margin: 7px 0 0; font-size: 34px; line-height: 1.05; letter-spacing: -.04em; }
.stat-card small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.stat-card a { display: inline-block; margin-top: 8px; color: var(--accent); font-size: 11px; font-weight: 750; }

.dashboard-grid, .detail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; align-items: start; }
.span-2 { grid-column: span 2; }
.quick-actions { display: grid; gap: 9px; }
.quick-actions a { display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }
.quick-actions a:first-child { border-top: 0; padding-top: 0; }
.quick-actions a > span { grid-row: span 2; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); color: var(--accent); font-size: 10px; font-weight: 850; }
.quick-actions strong { font-size: 13px; }
.quick-actions small { color: var(--muted); font-size: 11px; }

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 40px; padding: 9px 15px; border: 1px solid transparent; border-radius: 10px;
    background: #eef1f4; color: var(--text); font-weight: 750; font-size: 12px; line-height: 1.1;
    transition: .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 8px 18px rgba(217,75,69,.16); }
.button-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button-ghost { background: #fff; border-color: var(--line-strong); color: #3c4953; box-shadow: none; }
.button-ghost:hover { background: var(--surface-2); }
.button-danger { background: var(--red-soft); border-color: #f3cfcd; color: var(--red); }
.button-danger:hover { background: #f8dcda; }
.button-small { min-height: 32px; padding: 6px 10px; border-radius: 8px; font-size: 11px; }
.button-large { min-height: 49px; border-radius: 12px; font-size: 13px; }
.button-block { width: 100%; }
.icon-button { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: #43515d; font-size: 16px; }
.icon-button:hover { background: var(--surface-2); }

.alert { margin: 0 0 18px; padding: 13px 15px; border: 1px solid; border-radius: 11px; font-size: 12px; }
.alert a { text-decoration: underline; font-weight: 750; }
.alert-success { border-color: #cbe8db; background: var(--green-soft); color: #176044; }
.alert-warning { border-color: #f0dfac; background: var(--orange-soft); color: #785016; }
.alert-danger { border-color: #efcfcd; background: var(--red-soft); color: #8d322f; }
.alert-neutral { border-color: var(--line); background: var(--surface-2); color: #596671; }
.floating-alert { position: fixed; top: 20px; left: 50%; z-index: 90; transform: translateX(-50%); width: min(520px, calc(100vw - 30px)); box-shadow: var(--shadow); }

.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border-radius: 999px; font-size: 9px; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.badge-success { background: var(--green-soft); color: var(--green); }
.badge-warning { background: var(--orange-soft); color: var(--orange); }
.badge-danger { background: var(--red-soft); color: var(--red); }
.badge-neutral { background: #eef2f4; color: #687580; }

.category-pill { display: inline-flex; align-items: center; min-height: 21px; padding: 3px 7px; border-radius: 6px; background: #eef2f4; color: #52616d; font-size: 8px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.category-wettkampf, .category-vereinsmeisterschaft { background: var(--accent-soft); color: var(--red); }
.category-training, .category-schiessuebung { background: var(--blue-soft); color: #416884; }
.category-obligatorisch, .category-feldschiessen { background: var(--orange-soft); color: var(--orange); }
.category-vereinsanlass { background: var(--green-soft); color: var(--green); }

.event-list { display: grid; }
.event-row { display: flex; align-items: center; gap: 15px; min-width: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.event-row:first-child { border-top: 0; padding-top: 2px; }
.event-row:hover .event-row-main > strong { color: var(--accent); }
.date-tile { width: 52px; height: 55px; flex: 0 0 52px; display: grid; place-content: center; text-align: center; border-radius: 12px; background: var(--surface-2); }
.date-tile strong { font-size: 19px; line-height: 1; }
.date-tile span { margin-top: 4px; color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .1em; }
.event-row-main { min-width: 0; flex: 1; display: grid; gap: 3px; }
.event-row-main > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; transition: .18s ease; }
.event-row-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }
.event-row-top { display: flex; align-items: center; gap: 6px; }
.event-capacity { flex: 0 0 auto; text-align: right; font-size: 13px; font-weight: 800; }
.event-capacity small { display: block; color: var(--muted); font-size: 9px; font-weight: 500; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 10px 12px; border-bottom: 1px solid var(--line-strong); color: #7a858e; text-align: left; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 11px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfcfd; }
.table-subline { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 500; }
.table-block-title { display: block; margin-top: 5px; }
.table-user { display: flex; align-items: center; gap: 9px; min-width: 160px; }
.table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.table-actions form { display: inline-flex; }
.score-cell strong { font-size: 15px; }
.score-cell > small { margin-left: 4px; color: var(--muted); }
.note-row td { padding-top: 0; color: var(--muted); }

.empty-state { min-height: 180px; display: grid; place-content: center; justify-items: center; gap: 7px; padding: 25px; text-align: center; }
.empty-state.compact { min-height: 110px; }
.empty-state strong { font-size: 14px; }
.empty-state span { max-width: 430px; color: var(--muted); font-size: 11px; }
.empty-state .button { margin-top: 9px; }

.form-card { max-width: 1080px; }
.narrow-card { max-width: 780px; }
.form-stack { display: grid; gap: 16px; }
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.form-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { color: #495660; font-size: 10px; font-weight: 750; }
.field > span small { color: #929ba2; font-size: 9px; font-weight: 500; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px;
    background: #fff; color: var(--text); outline: none; transition: .18s ease;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #9aaebd; box-shadow: 0 0 0 3px rgba(44,79,104,.08); }
.field input::placeholder, .field textarea::placeholder { color: #a4adb4; }
.check-field { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.check-field input { margin: 3px 0 0; accent-color: var(--accent); }
.check-field span { display: grid; gap: 2px; }
.check-field strong { font-size: 11px; }
.check-field small { color: var(--muted); font-size: 9px; }
.section-title { margin-top: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: #384650; font-size: 11px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.section-title small { color: var(--muted); font-size: 9px; font-weight: 500; text-transform: none; }
.form-note { padding: 11px 13px; border-left: 3px solid #cfd9e0; background: var(--surface-2); color: var(--muted); font-size: 10px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 82px; }
.password-toggle { position: absolute; right: 5px; top: 5px; bottom: 5px; border: 0; border-radius: 7px; background: #f0f3f5; color: #5e6b75; font-size: 9px; font-weight: 750; }

.filter-card { padding: 16px; }
.filter-form { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.filter-form .field { min-width: 160px; }
.filter-form .search-field { flex: 1; min-width: 260px; }
.toolbar-row, .calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.filter-tabs { display: inline-flex; align-items: center; gap: 3px; margin-bottom: 18px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.filter-tabs a { padding: 7px 11px; border-radius: 8px; color: var(--muted); font-size: 10px; font-weight: 750; }
.filter-tabs a.active { background: var(--navy); color: #fff; }
.inline-filter select { min-height: 36px; padding: 6px 30px 6px 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: #44515b; font-size: 11px; }

.calendar-toolbar { padding: 15px 17px; }
.month-nav { display: flex; align-items: center; gap: 11px; }
.month-nav strong { min-width: 135px; text-align: center; font-size: 13px; }
.calendar { padding: 0; overflow: hidden; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7,1fr); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.calendar-weekdays span { padding: 10px; color: #7d8992; text-align: center; font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); }
.calendar-day { min-height: 132px; min-width: 0; padding: 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.outside { background: #fafbfc; }
.calendar-day.outside .calendar-day-number { color: #c3c9ce; }
.calendar-day.today .calendar-day-number { background: var(--accent); color: #fff; }
.calendar-day-number { width: 25px; height: 25px; display: grid; place-items: center; margin: 0 0 7px auto; border-radius: 50%; color: #65717a; font-size: 10px; font-weight: 750; }
.calendar-day-events { display: grid; gap: 5px; }
.calendar-event { position: relative; min-width: 0; padding: 6px 6px 6px 8px; border-left: 3px solid #8ba0af; border-radius: 5px; background: #f5f8fa; }
.calendar-event:hover { background: #eef3f6; }
.calendar-event span { display: block; color: #71808b; font-size: 7px; }
.calendar-event strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
.calendar-event i { position: absolute; top: 5px; right: 5px; color: var(--green); font-size: 8px; font-style: normal; }
.category-border-wettkampf, .category-border-vereinsmeisterschaft { border-left-color: var(--accent); }
.category-border-training, .category-border-schiessuebung { border-left-color: #5c8eb1; }
.category-border-obligatorisch, .category-border-feldschiessen { border-left-color: #d09b38; }
.category-border-vereinsanlass { border-left-color: #4c9a76; }
.mobile-event-list-card { display: none; }

.event-detail-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; overflow: hidden; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 13px; background: var(--line); }
.event-detail-meta > div { min-height: 92px; padding: 16px; background: var(--surface-2); }
.event-detail-meta span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.event-detail-meta strong { display: block; font-size: 12px; }
.event-detail-meta small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.prose { font-size: 12px; line-height: 1.75; }
.registration-card h2 { margin: 0 0 4px; font-size: 21px; }
.current-registration { margin: 18px 0 13px; }
.registration-card form + .button, .registration-card .button + .button { margin-top: 8px; }
.avatar-list { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.avatar-list > div { display: flex; align-items: center; gap: 8px; }
.avatar-list strong { font-size: 11px; }

.profile-summary { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.profile-summary h3 { margin: 0; font-size: 18px; }
.profile-summary p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.profile-summary .badge { margin-left: auto; }
.info-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.info-grid.compact { grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 8px; }
.info-grid.single { grid-template-columns: 1fr; }
.info-grid > div { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.info-grid span { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.info-grid strong { display: block; margin-top: 4px; font-size: 11px; }
.divider { height: 1px; margin: 23px 0; background: var(--line); }

.mini-user-list { display: grid; }
.mini-user-list a { display: flex; align-items: center; gap: 9px; padding: 11px 0; border-top: 1px solid var(--line); }
.mini-user-list a:first-child { border-top: 0; padding-top: 0; }
.mini-user-list a > span:nth-child(2) { min-width: 0; flex: 1; }
.mini-user-list strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.mini-user-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 9px; }

.location-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.location-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; }
.location-item.disabled { opacity: .52; }
.location-item > div { min-width: 0; }
.location-item strong, .location-item span, .location-item small { display: block; }
.location-item strong { font-size: 11px; }
.location-item span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.location-item small { margin-top: 3px; color: #89949c; font-size: 8px; }

.code-sample { padding: 13px; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: #f6f8fa; color: #53606a; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; white-space: nowrap; }
.password-code { padding: 5px 7px; border-radius: 6px; background: #f1f4f6; font-weight: 750; }
.plain-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 11px; }
.plain-list li + li { margin-top: 5px; }

.login-body { background: #fff; }
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, .95fr) minmax(480px, 1.05fr); }
.login-panel { min-height: 100vh; }
.login-visual { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.login-visual::before { content: ""; position: absolute; inset: auto -15% -20% auto; width: 520px; height: 520px; border: 95px solid rgba(255,255,255,.035); border-radius: 50%; }
.login-visual::after { content: ""; position: absolute; left: -120px; top: 44%; width: 300px; height: 300px; border: 70px solid rgba(217,75,69,.09); border-radius: 50%; }
.login-visual-inner { position: relative; z-index: 1; min-height: 100%; display: flex; flex-direction: column; padding: clamp(30px, 5vw, 66px); }
.brand-on-dark strong { font-size: 15px; }
.login-copy { max-width: 560px; margin: auto 0; padding: 60px 0; }
.login-copy h1 { margin: 0; max-width: 530px; font-size: clamp(38px, 5vw, 65px); line-height: .99; letter-spacing: -.055em; }
.login-copy p { max-width: 440px; margin: 24px 0 0; color: #b7c5ce; font-size: 15px; line-height: 1.7; }
.login-visual-footer { color: #718591; font-size: 10px; letter-spacing: .04em; }
.login-form-panel { display: grid; place-items: center; padding: 40px; background: #fff; }
.login-form-wrap { width: min(430px,100%); }
.login-form-wrap h2 { margin: 0; font-size: 30px; letter-spacing: -.04em; }
.login-form-wrap > p { margin: 9px 0 26px; font-size: 12px; }
.login-form { margin-top: 8px; }
.login-help { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.login-help strong { display: block; margin-bottom: 4px; font-size: 10px; }
.login-help span { display: block; color: var(--muted); font-size: 10px; line-height: 1.6; }
.mobile-login-brand { display: none; }

.install-body { min-height: 100vh; background: var(--navy); }
.install-wrap { min-height: 100vh; display: grid; place-items: center; padding: 34px 20px; }
.install-card { width: min(760px,100%); padding: 38px; border-radius: 22px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.install-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 30px; }
.install-brand strong, .install-brand small { display: block; }
.install-brand strong { font-size: 14px; }
.install-brand small { color: var(--muted); font-size: 10px; }
.install-card h1 { margin: 0 0 10px; font-size: 29px; letter-spacing: -.04em; }
.install-card > p { color: var(--muted); font-size: 12px; }
.setup-success-icon { width: 66px; height: 66px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 28px; font-weight: 900; }

@media (max-width: 1180px) {
    .stat-grid.admin-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dashboard-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dashboard-grid .span-2 { grid-column: span 2; }
    .dashboard-grid > .card:not(.span-2) { grid-column: span 2; }
    .calendar-day { min-height: 112px; padding: 7px; }
    .calendar-event strong { font-size: 7px; }
    .event-detail-meta { grid-template-columns: 1fr; }
    .event-detail-meta > div { min-height: 0; }
}

@media (max-width: 900px) {
    :root { --sidebar: 244px; }
    .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 16px 0 45px rgba(21,31,39,.18); }
    .sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-open::after { content: ""; position: fixed; inset: 0; z-index: 25; background: rgba(16,25,32,.38); }
    .main-column { width: 100%; margin-left: 0; }
    .mobile-menu { display: inline-grid !important; }
    .topbar { padding: 0 20px; }
    .topbar-title { margin-right: auto; margin-left: 10px; }
    .content { padding: 28px 20px 40px; }
    .app-footer { padding-inline: 20px; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-grid .span-2 { grid-column: auto; }
    .calendar { display: none; }
    .mobile-event-list-card { display: block; }
    .login-page { grid-template-columns: 1fr; }
    .login-visual { display: none; }
    .login-panel { min-height: 100vh; }
    .login-form-panel { padding: 28px; }
    .mobile-login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 64px; }
}

@media (max-width: 680px) {
    body { font-size: 14px; }
    .content { padding: 22px 13px 34px; }
    .topbar { height: 58px; padding: 0 13px; }
    .topbar-date { display: none; }
    .topbar-actions .button { display: none; }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 20px; }
    .page-heading h1 { font-size: 27px; }
    .page-actions { width: 100%; }
    .page-actions .button { flex: 1; }
    .card { padding: 17px; border-radius: 14px; }
    .stat-grid, .stat-grid.admin-stats, .stat-grid.compact-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
    .stat-card { min-height: 112px; padding: 15px; border-radius: 14px; }
    .stat-card > strong { font-size: 27px; }
    .dashboard-grid { grid-template-columns: 1fr; gap: 0; }
    .dashboard-grid .span-2, .dashboard-grid > .card:not(.span-2) { grid-column: auto; }
    .event-row { gap: 10px; }
    .event-capacity { display: none; }
    .date-tile { width: 45px; height: 49px; flex-basis: 45px; }
    .date-tile strong { font-size: 17px; }
    .event-row > .badge { display: none; }
    .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
    .info-grid, .info-grid.compact { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .filter-form { align-items: stretch; }
    .filter-form .field, .filter-form .search-field { min-width: 100%; }
    .filter-form .button { flex: 1; }
    .toolbar-row, .calendar-toolbar { align-items: stretch; flex-direction: column; }
    .toolbar-row .filter-tabs { margin-bottom: 0; }
    .inline-filter select { width: 100%; }
    .table-actions { min-width: 140px; }
    .event-detail-meta { margin-bottom: 18px; }
    .profile-summary { flex-wrap: wrap; }
    .profile-summary .badge { margin-left: 0; }
    .location-grid { grid-template-columns: 1fr; }
    .install-card { padding: 25px 18px; }
    .install-card .info-grid.compact { grid-template-columns: 1fr; }
    .login-form-panel { padding: 24px 18px; }
    .mobile-login-brand { margin-bottom: 48px; }
}

@media (max-width: 420px) {
    .stat-grid, .stat-grid.admin-stats, .stat-grid.compact-stats { grid-template-columns: 1fr 1fr; }
    .stat-card { min-height: 104px; }
    .info-grid { grid-template-columns: 1fr; }
    .filter-tabs { max-width: 100%; overflow-x: auto; }
}

/* Terminformular: Datum + kontrollierte Zeitauswahl */
.date-time-control {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(105px, .75fr);
    gap: 8px;
}
.date-time-control input,
.date-time-control select { min-width: 0; }
#schiessanlage-anlegen { scroll-margin-top: 24px; }
#schiessanlage-anlegen h3 { margin: 2px 0 0; font-size: 15px; }

@media (max-width: 620px) {
    .date-time-control { grid-template-columns: 1fr; }
}
