/* Gemeinsames Stylesheet: Besucherseite und Admin */
:root { --navy: #0b1d3a; --navy-2: #12264a; --gold: #ffd166; --bg: #f4f6fb; --card: #fff; --text: #1a1f2b; --muted: #667085; --line: #e3e7ef; --ok: #1e8e4e; --warn: #c97d0a; --err: #b3261e; }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 1.25rem; padding-bottom: 2rem; }
a { color: #1d4ed8; }
h1 { font-size: 1.7rem; margin: .2rem 0 .8rem; } h2 { font-size: 1.2rem; margin: 1.2rem 0 .6rem; } h3 { font-size: 1.05rem; margin: 1rem 0 .5rem; }
.site-header { background: var(--navy); color: #fff; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; min-height: 56px; }
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; padding: .6rem 0; }
.brand-mark { color: var(--gold); }
.nav { display: flex; flex-wrap: wrap; gap: .2rem .9rem; align-items: center; font-size: .95rem; }
.nav a { color: #cfe0ff; text-decoration: none; padding: .3rem 0; } .nav a.active { color: #fff; border-bottom: 2px solid var(--gold); }
.site-footer { background: #e9edf5; color: var(--muted); font-size: .9rem; padding: 1rem 0; }
.site-footer a { color: var(--muted); }
.hero { padding: .5rem 0 1rem; } .lead { font-size: 1.1rem; color: #344054; margin: .3rem 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; margin-bottom: 1rem; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.card.center { text-align: center; } .card.narrow { max-width: 420px; margin: 2rem auto; }
.prose p { margin: .6rem 0; }
.alert { padding: .8rem 1rem; border-radius: 10px; background: #fff7e6; border: 1px solid #ffd48a; margin-bottom: 1rem; }
.alert-error { background: #fdecea; border-color: #f5b5b0; color: #7a1a14; } .alert-ok { background: #e8f7ee; border-color: #a9dfc0; color: #0f5a30; }
.hint, .muted { color: var(--muted); font-size: .92rem; }
.form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .95rem; margin-bottom: .9rem; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea { font: inherit; padding: .65rem .75rem; border: 1px solid #cbd2e0; border-radius: 10px; background: #fff; width: 100%; }
.form input.short, input.short { width: 7rem; }
.form .check { flex-direction: row; align-items: flex-start; gap: .6rem; font-weight: 400; }
.form .check input { margin-top: .3rem; width: 1.2rem; height: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 1rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: flex-end; } .inline-form label { margin-bottom: .5rem; min-width: 150px; }
.inline { display: inline; }
.honeypot { position: absolute; left: -9999px; }
.btn { display: inline-block; font: inherit; font-weight: 600; padding: .6rem 1rem; border-radius: 10px; border: 1px solid #cbd2e0; background: #fff; color: var(--text); text-decoration: none; cursor: pointer; }
.btn:hover { background: #f1f4f9; } .btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; } .btn-primary:hover { background: var(--navy-2); }
.btn-danger { background: var(--err); border-color: var(--err); color: #fff; } .btn-lg { font-size: 1.1rem; padding: .85rem 1.4rem; } .btn-sm { padding: .3rem .6rem; font-size: .85rem; }
.linklike { background: none; border: none; color: #cfe0ff; cursor: pointer; font: inherit; padding: 0; }
/* Zeitfenster-Auswahl */
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
fieldset.day { border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem .8rem; margin: 0; }
fieldset.day legend { font-weight: 700; padding: 0 .4rem; }
.form label.slot, .slot { display: grid; margin-bottom: .4rem; grid-template-columns: auto 1fr auto; grid-template-areas: "radio time free" "radio bar bar"; gap: .15rem .6rem; align-items: center; padding: .55rem .6rem; margin: .4rem 0; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 400; }
.slot:has(input:checked) { border-color: var(--navy); background: #eef3ff; }
.slot.full { opacity: .55; cursor: not-allowed; }
.slot input { grid-area: radio; width: 1.2rem; height: 1.2rem; } .slot-time { grid-area: time; font-weight: 600; } .slot-free { grid-area: free; font-size: .85rem; color: var(--muted); }
.bar { grid-area: bar; display: block; height: 6px; background: #e3e7ef; border-radius: 4px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--ok); } .bar.big { height: 12px; width: 100%; min-width: 120px; display: inline-block; vertical-align: middle; }
.bar.warn > span { background: var(--warn); } .bar.full > span { background: var(--err); }
.qr { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.code { font-family: ui-monospace, monospace; color: var(--muted); }
/* Admin */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.tile { background: var(--navy); color: #fff; border-radius: 14px; padding: 1rem; display: flex; flex-direction: column; }
.tile-label { font-size: .85rem; opacity: .85; } .tile-value { font-size: 2.2rem; font-weight: 800; line-height: 1.15; } .tile-sub { font-size: .8rem; opacity: .75; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: .55rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; } .table .wide { min-width: 160px; } .table tr.muted td { color: var(--muted); }
.table .actions { white-space: nowrap; } .table .actions form { display: inline; }
.pct { font-size: .85rem; color: var(--muted); margin-left: .4rem; }
.badge { display: inline-block; font-size: .75rem; padding: .1rem .5rem; border-radius: 999px; background: #e9edf5; color: #475467; }
.badge.ok { background: #e8f7ee; color: #0f5a30; } .badge.err { background: #fdecea; color: #7a1a14; }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 160px; overflow-x: auto; padding-bottom: 1.4rem; position: relative; }
.chart .col { flex: 0 0 34px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.chart .col span { display: block; background: var(--navy); border-radius: 4px 4px 0 0; min-height: 2px; }
.chart .col label { position: absolute; bottom: -1.3rem; left: 0; font-size: .7rem; color: var(--muted); }
@media (max-width: 640px) { .table { font-size: .85rem; } .table th, .table td { padding: .4rem .3rem; } h1 { font-size: 1.4rem; } }
