/* ==========================================================================
   Anmeldung Tag der offenen Tür – Gestaltung
   Petrol (aus der bisherigen Anmeldung) als Akzent, dezentes Ocker als Hintergrund
   ========================================================================== */

:root {
    --petrol-950: #002b33;
    --petrol-800: #003e53;
    --petrol-650: #165566;
    --petrol-100: #e1edef;
    --petrol-50: #f0f6f7;
    --ocker-50: #fbf7ee;
    --ocker-100: #f5ecd8;
    --ocker-200: #ebdcb9;
    --ocker-400: #d8b46c;
    --ocker-500: #c9962f;
    --ocker-700: #855f15;
    --brick-600: #a8402a;
    --brick-50: #fbebe6;
    --green-600: #2c7a4b;
    --green-50: #e5f3ea;
    --ink: #1d2b2f;
    --muted: #5a696e;
    --line: #e4d7ba;
    --white: #ffffff;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(0, 43, 51, .06), 0 10px 28px rgba(0, 43, 51, .08);
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --nav-h: 64px;
    --banner-h: min(340px, 42vh);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--ocker-100);
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--petrol-800); }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 700; }
h2 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--petrol-800); text-underline-offset: 2px; }
a:hover { color: var(--petrol-650); }
code { font-family: Consolas, "SF Mono", Menlo, monospace; font-size: .9em; background: var(--ocker-100); padding: 1px 5px; border-radius: 5px; }
small { font-size: .85em; }
img { max-width: 100%; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.icon-inline { width: 1em; height: 1em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; font-family: Consolas, Menlo, monospace; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .65em 1.15em; border: 1.5px solid var(--petrol-800); border-radius: var(--radius-sm);
    background: var(--petrol-800); color: var(--white); font: inherit; font-weight: 600; line-height: 1.2;
    text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--petrol-950); border-color: var(--petrol-950); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .icon-btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--ocker-400); outline-offset: 2px; }
.btn-lg { padding: .85em 1.6em; font-size: 1.07rem; }
.btn-small { padding: .4em .8em; font-size: .88rem; }
.btn-ghost { background: transparent; color: var(--petrol-800); }
.btn-ghost:hover { background: var(--petrol-100); color: var(--petrol-950); }
.btn-danger { background: var(--brick-600); border-color: var(--brick-600); }
.btn-danger:hover { background: #8a3220; border-color: #8a3220; }
.btn-danger-ghost { background: transparent; color: var(--brick-600); border-color: var(--brick-600); }
.btn-danger-ghost:hover { background: var(--brick-50); color: var(--brick-600); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn[disabled]:active { transform: none; }

/* ---------- Karten & Hinweise ---------- */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 28px); margin-bottom: 20px; }
.card-center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.card-head h2 { margin: 0; }
h2 .icon { color: var(--ocker-500); }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; border-left: 4px solid; background: var(--petrol-50); border-color: var(--petrol-800); }
.notice > .icon { margin-top: .15em; }
.notice ul { margin: .3em 0 0; padding-left: 1.2em; }
.notice-success { background: var(--green-50); border-color: var(--green-600); }
.notice-success > .icon { color: var(--green-600); }
.notice-warning { background: #fdf4df; border-color: var(--ocker-500); }
.notice-warning > .icon { color: var(--ocker-700); }
.notice-error { background: var(--brick-50); border-color: var(--brick-600); }
.notice-error > .icon { color: var(--brick-600); }
.notice-info > .icon { color: var(--petrol-800); }

/* ---------- Formulare ---------- */
.stack > * + * { margin-top: 16px; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
legend { font-weight: 700; color: var(--petrol-800); font-size: 1.1rem; padding: 0; margin-bottom: 12px; }
legend::after { content: ""; display: block; width: 36px; height: 3px; border-radius: 2px; background: var(--ocker-500); margin-top: 6px; }
.field-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px 18px; }
.field-grid > * { grid-column: span 12; }
.field-grid > .half { grid-column: span 6; }
.field-grid > .third { grid-column: span 4; }
.field-grid > .quarter { grid-column: span 3; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field label { font-weight: 600; font-size: .95rem; }
.field label small { font-weight: 400; color: var(--muted); }
.hint { color: var(--muted); font-size: .85rem; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date],
input[type=time], input[type=datetime-local], input[type=search], input:not([type]), select, textarea {
    width: 100%; padding: .7em .85em; font: inherit; color: var(--ink); background: var(--white);
    border: 1.5px solid #d6c8a6; border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.5; }
textarea.code { font-family: Consolas, Menlo, monospace; font-size: .85rem; background: var(--ocker-50); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--petrol-800); box-shadow: 0 0 0 4px rgba(0, 62, 83, .14); }
.has-error input, .has-error select { border-color: var(--brick-600); background: #fffaf8; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 6px 0; }
.check input { width: 20px; height: 20px; margin: .15em 0 0; accent-color: var(--petrol-800); flex: none; }
.check small { display: block; color: var(--muted); }
.check.has-error span { color: var(--brick-600); }
.checks { display: flex; flex-direction: column; gap: 4px; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.inline-form input { width: auto; flex: 1 1 220px; }
.inline-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Öffentliche Seiten
   ========================================================================== */
.banner-medium { --banner-h: min(240px, 34vh); }
.banner-small { --banner-h: min(170px, 26vh); }

.site-nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50; background: rgba(0, 43, 51, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.site-nav-inner { max-width: 1080px; height: 100%; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site-logo img { display: block; height: 44px; width: auto; }
.site-title { color: var(--white); text-decoration: none; font-size: 1.15rem; font-weight: 400; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-title:hover { color: var(--ocker-200); }
.site-help { color: var(--white); display: flex; padding: 8px; border-radius: 50%; }
.site-help .icon { width: 26px; height: 26px; }
.site-help:hover { color: var(--ocker-200); background: rgba(255, 255, 255, .08); }

.banner {
    position: fixed; inset: 0 0 auto 0; height: var(--banner-h); z-index: 0;
    background: var(--petrol-800) url("../img/gymrobanner.jpg") center / cover no-repeat;
    will-change: transform;
}
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 43, 51, .35) 0%, rgba(0, 43, 51, 0) 45%, rgba(0, 43, 51, .25) 100%); }

.page { position: relative; z-index: 1; margin-top: var(--banner-h); background: var(--ocker-100); border-radius: 28px 28px 0 0; padding: 32px 16px 72px; min-height: calc(100vh - var(--banner-h)); box-shadow: 0 -10px 30px rgba(0, 43, 51, .12); }
.container { max-width: 1080px; margin: 0 auto; }

.hero { text-align: center; margin-top: -84px; position: relative; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--ocker-700); margin-bottom: .6em; }
.hero h1 { margin-bottom: .45em; }
.hero h1 .accent { color: var(--ocker-700); font-weight: 600; }
.date-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--petrol-800); color: var(--white); padding: .45em 1em; border-radius: 999px; font-weight: 600; margin-bottom: 1.1em; }
.date-chip .icon { color: var(--ocker-200); }
.lead { font-size: 1.08rem; max-width: 680px; margin-left: auto; margin-right: auto; }

.status { display: flex; gap: 16px; align-items: flex-start; border-radius: var(--radius); padding: 18px 22px; margin-bottom: 22px; background: var(--white); box-shadow: var(--shadow); border-left: 6px solid var(--petrol-800); }
.status p { margin: 0; font-size: 1.05rem; }
.status-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--petrol-100); color: var(--petrol-800); }
.status-icon .icon { width: 24px; height: 24px; }
.status-upcoming { border-color: var(--ocker-500); background: var(--ocker-50); }
.status-upcoming .status-icon { background: var(--ocker-200); color: var(--ocker-700); }
.status-closed, .status-full { background: var(--petrol-800); color: var(--white); border-color: var(--ocker-500); }
.status-closed .status-icon, .status-full .status-icon { background: rgba(255, 255, 255, .12); color: var(--ocker-200); }
.countdown { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.countdown span { background: var(--white); border: 1px solid var(--ocker-200); border-radius: 12px; padding: 8px 12px; min-width: 72px; text-align: center; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.countdown b { display: block; font-size: 1.7rem; color: var(--petrol-800); letter-spacing: 0; font-variant-numeric: tabular-nums; line-height: 1.2; }

.section-title { text-align: center; margin: 30px 0 18px; font-size: 1.35rem; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.slot {
    display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--radius);
    background: var(--white); box-shadow: var(--shadow); border: 2px solid transparent;
    color: var(--ink); text-decoration: none; transition: transform .18s, border-color .18s, box-shadow .18s;
}
a.slot:hover { transform: translateY(-3px); border-color: var(--petrol-800); color: var(--ink); box-shadow: 0 14px 30px rgba(0, 43, 51, .14); }
.slot-time { font-size: 1.7rem; font-weight: 700; color: var(--petrol-800); line-height: 1.1; }
.slot-meta { font-size: .92rem; color: var(--muted); }
.slot-bar { height: 6px; border-radius: 3px; background: var(--ocker-100); overflow: hidden; margin-top: 4px; }
.slot-bar > span { display: block; height: 100%; border-radius: 3px; background: var(--petrol-650); }
.slot.is-few .slot-meta { color: var(--ocker-700); font-weight: 600; }
.slot.is-few .slot-bar > span { background: var(--ocker-500); }
.slot.is-full { background: #f1ebdd; box-shadow: none; }
.slot.is-full .slot-time { color: #8d9a9d; text-decoration: line-through; text-decoration-thickness: 2px; }
.slot.is-full .slot-meta { color: var(--brick-600); font-weight: 600; }
.slot.is-full .slot-bar > span { background: var(--brick-600); opacity: .6; }
.slot.is-disabled:not(.is-full) { opacity: .75; }

.back-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; }
.form-card { max-width: 860px; margin: 0 auto; }
.form-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.form-head h1 { margin: 0; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); }
.form-head .eyebrow { margin-bottom: .3em; }
.time-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--petrol-800); color: var(--white); border-radius: 14px; padding: 10px 18px; font-size: 1.5rem; font-weight: 700; }
.time-badge .icon { color: var(--ocker-200); }
.form-actions { margin-top: 18px; display: flex; justify-content: flex-end; }

.big-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--green-50); color: var(--green-600); }
.big-icon .icon { width: 40px; height: 40px; stroke-width: 2.5; }
.big-icon-warn { background: #fdf0d6; color: var(--ocker-700); }
.summary { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 22px 0; }
.summary > div { background: var(--ocker-50); border: 1px solid var(--line); border-radius: 12px; padding: 10px 18px; min-width: 150px; }
.summary dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; color: var(--petrol-800); font-size: 1.1rem; }
.important { border: 2px dashed var(--ocker-400); background: var(--ocker-50); border-radius: var(--radius); padding: 20px; margin: 10px 0 20px; }
.important-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ocker-700); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }

.site-footer { background: var(--petrol-950); color: rgba(255, 255, 255, .85); position: relative; z-index: 1; }
.site-footer-inner { max-width: 1080px; margin: 0 auto; padding: 18px 16px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; font-size: .92rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--ocker-200); text-decoration: underline; }
.site-footer .footer-admin { opacity: .55; }

/* ==========================================================================
   Verwaltung
   ========================================================================== */
body.admin { background: #f6efdf; }
.admin-bar { background: var(--petrol-950); color: var(--white); position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 12px rgba(0, 0, 0, .15); }
.admin-bar-inner { max-width: 1320px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 18px; min-height: 64px; }
.admin-brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; flex: none; }
.admin-brand img { height: 38px; }
.admin-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.admin-brand small { color: var(--ocker-200); font-size: .78rem; }
.admin-brand:hover { color: var(--white); }
.admin-nav { display: flex; gap: 2px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.admin-nav a { display: flex; align-items: center; gap: 7px; padding: 21px 12px 18px; color: rgba(255, 255, 255, .78); text-decoration: none; font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; font-size: .95rem; }
.admin-nav a:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.admin-nav a.active { color: var(--white); border-bottom-color: var(--ocker-500); }
.admin-nav a.active .icon { color: var(--ocker-400); }
.admin-tools { display: flex; align-items: center; gap: 4px; flex: none; }
.admin-tools form { margin: 0; }
.admin-tool { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: rgba(255, 255, 255, .8); font: inherit; font-size: .9rem; padding: 8px 10px; border-radius: 8px; cursor: pointer; text-decoration: none; }
.admin-tool:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.admin-main { max-width: 1320px; margin: 0 auto; padding: 26px 16px 80px; }
.admin-title { font-size: 1.7rem; margin-bottom: 18px; }

.grid { display: grid; gap: 20px; margin-bottom: 20px; }
.grid > .card { margin-bottom: 0; }
.grid-main { grid-template-columns: 1.35fr 1fr; }
.grid-2 { grid-template-columns: 1fr 1fr; }

.status-card { border-top: 5px solid var(--petrol-800); }
.status-card-head { display: flex; gap: 14px; align-items: flex-start; }
.status-card-head h2 { font-size: 1.35rem; margin-bottom: 2px; display: flex; gap: 8px; align-items: center; }
.state-dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 8px; flex: none; background: var(--petrol-800); }
.state-open { border-top-color: var(--green-600); }
.state-open .state-dot { background: var(--green-600); box-shadow: 0 0 0 5px var(--green-50); animation: pulse 2s infinite; }
.state-upcoming, .state-full { border-top-color: var(--ocker-500); }
.state-upcoming .state-dot, .state-full .state-dot { background: var(--ocker-500); box-shadow: 0 0 0 5px #fbefd5; }
.state-closed { border-top-color: var(--brick-600); }
.state-closed .state-dot { background: var(--brick-600); box-shadow: 0 0 0 5px var(--brick-50); }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(44, 122, 75, .08); } }
.status-preview { background: var(--ocker-50); border-radius: 10px; padding: 10px 14px; margin: 14px 0; border: 1px solid var(--line); }
.mode-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 10px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; border-bottom: 4px solid var(--ocker-200); }
.stat-value { font-size: 2.1rem; font-weight: 750; color: var(--petrol-800); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: .9rem; }

.occupancy, .recent { list-style: none; margin: 0; padding: 0; }
.occupancy li { display: grid; grid-template-columns: minmax(70px, auto) 1fr 64px; gap: 12px; align-items: center; padding: 6px 0; }
.occ-time { font-weight: 650; text-decoration: none; font-variant-numeric: tabular-nums; }
.occ-bar { height: 10px; background: var(--ocker-100); border-radius: 5px; overflow: hidden; }
.occ-bar > span { display: block; height: 100%; background: var(--petrol-650); border-radius: 5px; }
.occ-bar.is-full > span { background: var(--ocker-500); }
.occ-num { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .92rem; }
.recent li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f0e8d6; }
.recent li > span:first-child { flex: 1; min-width: 0; }
.recent li small { display: block; color: var(--muted); }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.pill { display: inline-block; background: var(--petrol-100); color: var(--petrol-800); border-radius: 999px; padding: 2px 10px; font-weight: 650; font-size: .85rem; white-space: nowrap; }

.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1 1 520px; }
.filter select { width: auto; min-width: 170px; }
.search { position: relative; flex: 1 1 240px; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 38px; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.add-card > summary { cursor: pointer; font-weight: 650; color: var(--petrol-800); display: flex; align-items: center; gap: 8px; list-style: none; }
.add-card > summary::-webkit-details-marker { display: none; }
.add-card[open] > summary { margin-bottom: 16px; }

.table-card { padding-bottom: 8px; }
.table-wrap { overflow-x: auto; margin: 0 calc(-1 * clamp(18px, 3vw, 28px)); padding: 0 clamp(18px, 3vw, 28px); }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 650; padding: 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid #f0e8d6; vertical-align: top; }
.table td small { display: block; color: var(--muted); }
.table tbody tr:hover { background: var(--ocker-50); }
.table .col-check { width: 32px; }
.table .col-check input { width: 18px; height: 18px; accent-color: var(--petrol-800); }
.table .col-actions { text-align: right; white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 30px 0; }

.row-actions { display: inline-flex; gap: 4px; align-items: center; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 0; background: transparent; color: var(--petrol-800); cursor: pointer; list-style: none; }
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn:hover { background: var(--petrol-100); }
.icon-btn-danger { color: var(--brick-600); }
.icon-btn-danger:hover { background: var(--brick-50); }
.icon-btn.is-disabled { color: #b5bcbd; cursor: not-allowed; }
.icon-btn.is-disabled:hover { background: none; }
.row-menu { position: relative; }
.row-menu[open] > summary { background: var(--petrol-100); }
.row-menu-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--white); border-radius: 12px; box-shadow: 0 12px 34px rgba(0, 43, 51, .22); padding: 14px; width: 250px; display: flex; flex-direction: column; gap: 8px; text-align: left; white-space: normal; }
.row-menu-panel label { font-size: .85rem; font-weight: 600; display: flex; flex-direction: column; gap: 4px; }
.row-menu-panel select { padding: .45em .6em; }

.danger-zone { border: 1.5px solid #e9c2b6; background: #fffaf7; }
.danger-zone h2 { color: var(--brick-600); display: flex; gap: 8px; align-items: center; }
.danger-zone h2 .icon { color: var(--brick-600); }
.danger-zone input { max-width: 200px; }

.slot-table input { padding: .5em .7em; }
.slot-table td:nth-child(1) { min-width: 180px; }
.slot-table td:nth-child(2) { width: 130px; }
.slot-table td:nth-child(3) { width: 110px; color: var(--muted); padding-top: 18px; }
.slot-table tr.is-new { background: #fdf7e8; }
.generator { margin-top: 10px; background: var(--ocker-50); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.generator summary { cursor: pointer; font-weight: 650; color: var(--petrol-800); }
.generator[open] summary { margin-bottom: 14px; }

.mode-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.mode-card { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.mode-card input { width: 20px; height: 20px; accent-color: var(--petrol-800); margin-top: 2px; flex: none; }
.mode-card small { display: block; color: var(--muted); }
.mode-card:hover { border-color: var(--ocker-400); }
.mode-card:has(input:checked) { border-color: var(--petrol-800); background: var(--petrol-50); }
[data-schedule].is-muted { opacity: .55; }

.save-bar { position: sticky; bottom: 0; z-index: 10; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 14px 0; background: linear-gradient(180deg, rgba(246, 239, 223, 0) 0%, rgba(246, 239, 223, .95) 30%); }

.placeholders { margin-top: 10px; font-size: .9rem; }
.placeholders summary { cursor: pointer; color: var(--petrol-800); font-weight: 600; }
.placeholders dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 10px 0 0; background: var(--ocker-50); padding: 12px 16px; border-radius: 10px; }
.placeholders dt, .placeholders dd { margin: 0; }
.format-help { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .9rem; color: var(--muted); margin-top: 8px; }

.sysinfo { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0; }
.sysinfo dt { color: var(--muted); }
.sysinfo dd { margin: 0; word-break: break-all; }

/* Anmeldung / Einrichtung */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(circle at 20% 10%, var(--petrol-650), var(--petrol-950) 70%); }
.login-card { width: 100%; max-width: 420px; text-align: center; margin: 0; }
.login-card form { text-align: left; }
.login-card .btn { width: 100%; }
.install-card { max-width: 720px; text-align: left; }
.install-card h1, .install-card .login-logo { text-align: center; }
.install-card .btn { width: auto; }
.login-logo img { height: 72px; margin-bottom: 8px; }

/* Teilnehmerliste (Druck) */
body.print-page { background: #eee; }
.print-toolbar { max-width: 210mm; margin: 16px auto; display: flex; gap: 14px; align-items: center; }
.print-sheet { background: var(--white); width: 210mm; min-height: 280mm; margin: 0 auto 16px; padding: 16mm 14mm; box-shadow: var(--shadow); }
.print-sheet header { display: flex; justify-content: space-between; gap: 20px; border-bottom: 3px solid var(--petrol-800); padding-bottom: 10px; margin-bottom: 14px; }
.print-sheet h1 { font-size: 1.6rem; margin: 0 0 4px; }
.print-sheet header p { margin: 0; }
.print-sheet .sign { align-self: flex-end; white-space: nowrap; color: var(--muted); }
.print-sheet .sign span { display: inline-block; width: 50mm; border-bottom: 1px solid var(--ink); margin-left: 6px; }
.print-table { width: 100%; border-collapse: collapse; font-size: 10.5pt; }
.print-table th { text-align: left; font-size: 8.5pt; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 2px solid var(--ink); padding: 6px; }
.print-table td { border-bottom: 1px solid #bbb; padding: 7px 6px; }
.print-table .tick { text-align: center; width: 22mm; }
.print-table .box { display: inline-block; width: 14px; height: 14px; border: 1.5px solid var(--ink); border-radius: 3px; }

@media print {
    body.print-page { background: none; }
    .no-print { display: none !important; }
    .print-sheet { box-shadow: none; margin: 0; width: auto; min-height: 0; padding: 0; page-break-after: always; break-after: page; }
    .print-sheet:last-of-type { page-break-after: auto; break-after: auto; }
    @page { size: A4; margin: 14mm; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 1000px) {
    .grid-main, .grid-2 { grid-template-columns: 1fr; }
    .admin-tool span { display: none; }
    .admin-nav a span { display: none; }
    .admin-nav a { padding: 20px 14px 17px; }
    .admin-nav a.active span { display: inline; }
}
@media (max-width: 720px) {
    .field-grid > .half, .field-grid > .third, .field-grid > .quarter { grid-column: span 12; }
    .mode-cards { grid-template-columns: 1fr; }
    .admin-brand span { display: none; }
    .admin-bar-inner { gap: 8px; }
    .site-title .long { display: none; }
    .hero { margin-top: -60px; }
    .form-actions .btn { width: 100%; }
    .time-badge { font-size: 1.2rem; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat-value { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
