:root {
  --bg: #0f1012;
  --panel: #17191c;
  --panel2: #1f2226;
  --line: #2a2e33;
  --text: #ececec;
  --muted: #9aa0a6;
  --gold: #d4a24c;
  --gold-dark: #3a2f1a;
  --green: #3fb37f;
  --red: #e05d5d;
  --blue: #5b9bd5;
  --radius: 12px;
  color-scheme: dark;
}
* { 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);
  font-size: 15px;
  line-height: 1.45;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { margin: 0 0 4px; font-size: 24px; }
h2 { font-size: 18px; margin: 24px 0 12px; }
h3 { margin: 0 0 14px; font-size: 15px; }
code { background: var(--panel2); padding: 1px 6px; border-radius: 5px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.gold { color: var(--gold) !important; }
.mt { margin-top: 16px; }
.prewrap { white-space: pre-wrap; }
.icon { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* ---------- Formulare & Buttons ---------- */
input, select, textarea {
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 11px;
  font: inherit;
  min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: -1px; border-color: transparent; }
input.invalid, select.invalid, textarea.invalid, .check.invalid { outline: 2px solid var(--red); outline-offset: -1px; border-radius: 8px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
label > input, label > select, label > textarea { color: var(--text); }
.label { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); }
label.check input { width: 18px; height: 18px; accent-color: var(--gold); flex-shrink: 0; }
label.check span { color: var(--muted); font-size: 13px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--gold); color: #111; border: 1px solid transparent;
  border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none !important; white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--panel2); color: var(--text); border-color: var(--line); }
.btn.danger { background: transparent; color: var(--red); border-color: #5a2a2a; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.big { padding: 13px 18px; font-size: 16px; }
.btn.full-width, .full-width { width: 100%; }
.linklike { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; font: inherit; }
.linklike:hover { color: var(--text); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.form-grid, .card.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }

/* ---------- Meldungen ---------- */
.flash { padding: 11px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.flash-ok { background: #183a2b; color: #9fe3c2; border: 1px solid #23573f; }
.flash-warn { background: #3a2f1a; color: #f0d9a8; border: 1px solid #6b5426; }
.flash-error { background: #3d2222; color: #f3b3b3; border: 1px solid #6a3030; }
.hint { color: var(--muted); font-size: 13px; background: var(--panel); border: 1px dashed var(--line); padding: 10px 14px; border-radius: 10px; }
.notice { background: var(--gold-dark); color: #e9d3a8; padding: 14px; border-radius: 10px; }

/* ---------- App-Layout ---------- */
body.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 230px; flex-shrink: 0; background: var(--panel); border-right: 1px solid var(--line);
  padding: 20px 12px; display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 0; height: 100vh;
}
.brand { font-weight: 800; font-size: 20px; color: var(--text) !important; text-decoration: none !important; padding: 0 10px; }
.brand span { color: var(--gold); }
.brand.big { font-size: 26px; padding: 0; display: inline-block; margin-bottom: 18px; }
.shopname { color: var(--muted); font-size: 12px; padding: 2px 10px 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar > a:not(.brand) {
  display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 10px; border-radius: 8px;
  text-decoration: none; font-size: 14px;
}
.sidebar > a:not(.brand):hover { background: var(--panel2); color: var(--text); }
.sidebar > a.active { background: var(--panel2); color: var(--gold); font-weight: 600; }
.l-short { display: none; }
.sidebar > a.mobile-only { display: none; }
.sidebar-foot { margin-top: auto; padding: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.who { color: var(--text); margin-bottom: 4px; }
.topbar { display: none; }
.main { flex: 1; padding: 28px 32px; max-width: 1100px; min-width: 0; }
.main.wide { max-width: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.sub { color: var(--muted); margin: 0; font-size: 14px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: block; color: inherit; }
a.card:hover { text-decoration: none; border-color: #3a3f45; }
.grid { display: grid; gap: 16px; }
.grid.kpis { grid-template-columns: repeat(4, 1fr); }
.grid.two { grid-template-columns: 1.4fr 1fr; align-items: start; }
.kpi .l { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.kpi .v { font-size: 28px; font-weight: 700; margin-top: 6px; color: var(--text); }
.kpi .d { font-size: 12px; margin-top: 4px; color: var(--muted); }
.more { display: inline-block; margin-top: 12px; font-size: 13px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

.pill { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-booked, .pill-online { background: #1c2c3d; color: var(--blue); }
.pill-completed, .pill-ok { background: #1d3a2d; color: var(--green); }
.pill-cancelled, .pill-overdue { background: #3d2222; color: var(--red); }
.pill-no_show, .pill-due { background: var(--gold-dark); color: var(--gold); }
.pill-new { background: #2a2d31; color: var(--muted); }

.details { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }

/* ---------- Kalender ---------- */
.cal-wrap { overflow-x: auto; padding-bottom: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.cal { display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(170px, 1fr)); min-width: min-content; }
.cal-head {
  height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px;
  border-bottom: 1px solid var(--line); font-weight: 600; position: sticky; top: 0; background: var(--panel); z-index: 3;
}
.cal-head a { font-size: 20px; text-decoration: none; padding: 0 6px; }
.cal-col { border-left: 1px solid var(--line); }
.cal-body { position: relative; }
.cal-hour { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; color: var(--muted); }
.cal-hour:first-child { transform: none; }
.cal-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.cal-closed { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(45deg, transparent 0 8px, #ffffff06 8px 16px); }
.cal-off { display: flex; justify-content: center; padding-top: 40px; background: repeating-linear-gradient(45deg, #ffffff04 0 8px, #ffffff0c 8px 16px); }
.cal-off span { color: var(--muted); font-size: 13px; background: var(--panel); padding: 2px 10px; border-radius: 10px; height: fit-content; }
.pill-off { background: #2a2d31; color: var(--muted); font-weight: 500; }
.cal-now { position: absolute; left: 0; right: 0; border-top: 2px solid var(--red); z-index: 2; }
.cal-now::before { content: ""; position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.appt {
  position: absolute; left: 4px; right: 4px; border-radius: 7px; padding: 4px 8px; overflow: hidden;
  background: #2b2414; border-left: 3px solid var(--gold); color: var(--text); font-size: 12px; line-height: 1.3;
  text-decoration: none !important; z-index: 1;
}
.appt:hover { filter: brightness(1.2); }
.appt span { display: block; color: var(--muted); }
.appt-small span { display: none; }
.appt-completed { background: #17291f; border-left-color: var(--green); }
.free-times { display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; align-items: center; }
.free-times button { background: var(--panel2); border: 1px solid var(--line); color: var(--text); border-radius: 16px; padding: 5px 12px; cursor: pointer; font: inherit; font-size: 13px; }
.free-times button:hover, .free-times button.active { border-color: var(--gold); color: var(--gold); }

/* ---------- Warteschlange ---------- */
.add-walkin { margin-bottom: 18px; }
.add-walkin input[name=name] { flex: 1 1 160px; }
.add-walkin input[name=phone] { flex: 1 1 140px; }
.qitem { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: var(--panel2); flex-wrap: wrap; }
.qitem.serving { border-color: #23573f; }
.qnum { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #111; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.qitem.serving .qnum { background: var(--green); }
.qitem .info { flex: 1 1 180px; min-width: 0; }
.qitem .info small { display: block; color: var(--muted); }
.qitem .actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.qitem select { padding: 5px 8px; font-size: 13px; }
.qr-preview { background: #fff; border-radius: 10px; padding: 8px; width: 200px; margin: 8px 0 12px; }
.qr-preview svg { display: block; width: 100%; height: auto; }
.copyrow { display: flex; gap: 6px; }
.copyrow input { flex: 1; font-size: 13px; }

/* ---------- Einstellungen ---------- */
.edit-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.edit-row input[name=name] { flex: 1 1 200px; }
.edit-row .narrow { width: 90px; }
.edit-table td { padding: 6px 0 0; border: 0; }
.edit-table tr.inactive, .edit-row.inactive { opacity: .55; }
.add-row { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.hours { display: flex; flex-direction: column; gap: 8px; }
.hours-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hours-row label.check { width: 130px; }

/* ---------- Team ---------- */
.team-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.team-card.inactive { opacity: .6; }
.team-card .team-name { font-weight: 600; }
.team-card form { margin-bottom: 8px; }
.days-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.days { display: flex; gap: 4px; }
.day { flex-direction: row; cursor: pointer; }
.day input { position: absolute; opacity: 0; pointer-events: none; }
.day span { display: inline-grid; place-items: center; width: 36px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); color: var(--muted); font-size: 13px; font-weight: 600; }
.day input:checked + span { background: var(--gold); border-color: var(--gold); color: #111; }
.day input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.narrow-card { max-width: 520px; }

/* ---------- Login / öffentliche Seiten ---------- */
body.plain { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 32px 16px; }
body.plain > .flash { width: 100%; max-width: 440px; }
.auth-card, .public-card { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.auth-card h1 { margin-bottom: 14px; }
.auth-card .stack { margin: 18px 0; }
.legal { margin-top: auto; padding-top: 24px; font-size: 12px; color: var(--muted); }
.legal a { color: var(--muted); }
.landing-main { max-width: 900px; width: 100%; text-align: center; padding-top: 40px; }
.landing-main h1 { font-size: 38px; line-height: 1.15; margin: 10px 0 14px; }
.lead { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 26px; }
.center-row { justify-content: center; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; text-align: left; }
.public-head h1 { font-size: 22px; }
.public-head p { margin: 2px 0 0; }
.bigstat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.bigstat > div { background: var(--panel2); border-radius: 12px; padding: 14px; text-align: center; }
.bigstat .label { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.bigstat b { display: block; font-size: 26px; margin-top: 4px; }
.ticket { text-align: center; padding: 20px 0 10px; }
.ticket .label { margin: 0; }
.ticket-num { font-size: 72px; font-weight: 800; line-height: 1.1; color: var(--gold); }
.ticket-wait { background: var(--panel2); border-radius: 12px; padding: 14px; margin: 16px 0; }
.ticket-wait b { display: block; font-size: 24px; margin-top: 4px; }
.ticket-wait small { display: block; color: var(--muted); margin-top: 2px; }
.ticket.done { padding: 30px 0; font-size: 18px; }
.public-card form { margin-top: 10px; }

/* ---------- Nachrichten ---------- */
.msg-list { display: flex; flex-direction: column; gap: 14px; max-height: 900px; overflow-y: auto; padding-right: 4px; }
.msg-item { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.msg-meta { font-size: 13px; margin-bottom: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wa-bubble { background: #005c4b; color: #e9edef; border-radius: 10px 10px 10px 2px; padding: 8px 11px 18px; font-size: 14px; line-height: 1.4; position: relative; max-width: 520px; white-space: pre-wrap; word-break: break-word; }
.wa-time { position: absolute; right: 9px; bottom: 3px; font-size: 10px; color: #ffffff99; }
.msg-foot { margin-top: 4px; }
.toggle-row { align-items: flex-start !important; }
.toggle-row span { font-size: 13px; }
.toggle-row b { color: var(--text); font-size: 14px; }
.more-list { display: flex; flex-direction: column; gap: 8px; }
.more-list a { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); color: var(--text); text-decoration: none; }

/* ---------- KI-Assistent ---------- */
.assistant-grid { grid-template-columns: 320px 1fr; align-items: start; }
.conv-list { max-height: 760px; overflow-y: auto; }
.conv-item { display: block; padding: 10px; border-radius: 10px; border: 1px solid transparent; color: var(--text); text-decoration: none !important; margin-bottom: 4px; }
.conv-item:hover { background: var(--panel2); }
.conv-item.selected { background: var(--panel2); border-color: var(--gold); }
.conv-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.conv-last { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-head { justify-content: space-between; margin-bottom: 10px; }
.conv-head h3 { margin: 0; }
.conv-head p { margin: 2px 0 0; }
.chat { background: #0b141a; border-radius: 12px; padding: 14px; height: 480px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-row { display: flex; flex-direction: column; max-width: 80%; }
.chat-customer { align-self: flex-start; }
.chat-assistant, .chat-staff { align-self: flex-end; align-items: flex-end; }
.chat-bubble { position: relative; padding: 7px 11px 18px; border-radius: 10px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; min-width: 110px; }
.chat-customer .chat-bubble { background: #202c33; color: #e9edef; border-top-left-radius: 2px; }
.chat-assistant .chat-bubble { background: #005c4b; color: #e9edef; border-top-right-radius: 2px; }
.chat-staff .chat-bubble { background: #1c3a5c; color: #e9edef; border-top-right-radius: 2px; }
.chat-who { font-size: 11px; font-weight: 700; color: #ffffffaa; margin-bottom: 2px; }
.chat-actions { margin: 4px 2px 0; padding: 0; list-style: none; font-size: 11px; color: var(--muted); text-align: right; }
.chat-actions li::before { content: "⚙ "; }
.chat-input { display: flex; gap: 8px; margin-top: 10px; }
.chat-input input { flex: 1; }

/* ---------- Online-Buchung ---------- */
.public-card.booking { max-width: 560px; }
.bstep { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.bstep h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 17px; }
.bnum { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #111; display: inline-grid; place-items: center; font-size: 14px; font-weight: 800; flex-shrink: 0; }
.choice-list { display: flex; flex-direction: column; gap: 8px; }
.choice { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); color: var(--text); text-decoration: none !important; }
.choice small { display: block; color: var(--muted); font-size: 12px; }
.choice .price { font-weight: 700; white-space: nowrap; }
.choice:hover, .chip:hover, .daychip:hover, .timechip:hover { border-color: var(--gold); }
.choice.selected, .chip.selected, .daychip.selected, .timechip.selected { border-color: var(--gold); background: var(--gold-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel2); color: var(--text); text-decoration: none !important; font-size: 14px; }
.chip small { color: var(--muted); }
.day-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 6px; scrollbar-width: thin; }
.daychip { flex: 0 0 auto; width: 58px; text-align: center; padding: 7px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); color: var(--text); text-decoration: none !important; }
.daychip small { display: block; color: var(--muted); font-size: 11px; }
.daychip b { font-size: 14px; }
.daychip.full { opacity: .35; cursor: not-allowed; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.timechip { text-align: center; padding: 9px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); color: var(--text); text-decoration: none !important; font-weight: 600; font-size: 14px; }
.summary { background: var(--panel2); border-radius: 10px; padding: 12px 14px; margin: 6px 0 14px; line-height: 1.6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ticket-num.ok { color: var(--green); }

/* ---------- Aushang (Druck) ---------- */
body.poster { background: #fff; color: #111; }
body.poster .legal { display: none; }
.poster-main { text-align: center; max-width: 560px; padding-top: 20px; }
.poster-main h1 { font-size: 40px; margin-bottom: 10px; }
.poster-lead { font-size: 22px; margin: 0 0 24px; }
.poster-qr { width: 340px; max-width: 100%; margin: 0 auto; }
.poster-qr svg { width: 100%; height: auto; display: block; }
.poster-url { font-size: 18px; color: #444; margin: 16px 0 24px; word-break: break-all; }
@media print {
  .no-print { display: none !important; }
  body.poster { padding: 0; }
}

/* ---------- Handy ---------- */
@media (max-width: 860px) {
  body.app { flex-direction: column; }
  .topbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
  .topbar .brand { padding: 0; }
  .topbar .shopname { padding: 0; }
  .sidebar {
    position: fixed; bottom: 0; left: 0; right: 0; top: auto; height: auto; width: auto; z-index: 20;
    flex-direction: row; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line);
  }
  .sidebar > .brand, .sidebar > .shopname, .sidebar-foot { display: none; }
  .sidebar > a:not(.brand) { flex-direction: column; gap: 2px; font-size: 10.5px; padding: 6px 2px; flex: 1; text-align: center; min-width: 0; }
  .l-long { display: none; }
  .sidebar > a.desktop-only { display: none; }
  .sidebar > a.mobile-only { display: flex; }
  .l-short { display: inline; }
  .main { padding: 18px 16px 90px; }
  .grid.kpis { grid-template-columns: repeat(2, 1fr); }
  .grid.two, .form-grid, .card.form-grid, .features, .assistant-grid { grid-template-columns: 1fr; }
  .chat { height: 60vh; }
  .chat-row { max-width: 92%; }
  .kpi .v { font-size: 24px; }
  .details { grid-template-columns: 110px 1fr; }
  .landing-main h1 { font-size: 28px; }
}
.block-link { display: block; text-decoration: none !important; }
.grid > * { min-width: 0; }
code { overflow-wrap: anywhere; }
.chips .inline { max-width: 100%; }
.chips .chip { max-width: 100%; white-space: normal; text-align: left; }

/* Team: Entfernen & ehemalige Barber */
.team-remove { border-top: 1px solid var(--line); padding-top: 12px; }
details.card > summary { cursor: pointer; list-style-position: inside; }
.plain-list { list-style: none; padding: 0; margin: 8px 0 0; }
.plain-list li { padding: 8px 0; border-top: 1px solid var(--line); }
.plain-list form { margin: 0; }
.row.between { justify-content: space-between; }
.kpi .v.small-v { font-size: 20px; }
.show-sm { display: none; }
@media (max-width: 860px) {
  .hide-sm { display: none; }
  .show-sm { display: inline; }
}
.price-card { margin: 32px auto 40px; max-width: 520px; text-align: center; }
.price-card h2 { margin: 0 0 6px; font-size: 30px; color: var(--gold); }
.price-card .btn { margin-top: 10px; }
.shop-info { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.shop-info h3 { font-size: 14px; margin: 0 0 8px; color: var(--muted); font-weight: 600; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0 0 10px; font-size: 14px; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; }
.flash-info { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.demo-bar span { flex: 1 1 260px; }
.cal-body.clickable { cursor: copy; }
.cal-body.clickable:hover { background: rgba(212, 166, 74, 0.03); }
.legal-card { max-width: 720px; }
.legal-card h2 { font-size: 17px; margin: 22px 0 6px; }
.legal-card p, .legal-card li { color: var(--text); line-height: 1.55; font-size: 14px; }
.legal-card ul { padding-left: 20px; }

[hidden] { display: none !important; }
.bigstat .barber-waits { grid-column: 1 / -1; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 13px; color: var(--muted); }
.bigstat .barber-waits b { display: inline; font-size: 13px; margin: 0; color: var(--text); }

/* ---------- Verwaltung (nur Betreiber) ---------- */
body.admin { min-height: 100vh; }
.admin-top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 8px 16px; flex-wrap: wrap; padding: 12px 24px; background: var(--panel); border-bottom: 1px solid var(--line);
}
.admin-top .brand { padding: 0; }
.admin-top .brand small { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 8px; }
.admin-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.admin-nav a, .admin-nav .linklike { padding: 7px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; text-decoration: none; }
.admin-nav a:hover, .admin-nav .linklike:hover { background: var(--panel2); color: var(--text); }
.admin-nav a.active { background: var(--panel2); color: var(--gold); font-weight: 600; }
.admin-main { max-width: 1100px; margin: 0 auto; padding: 24px; }
.admin-main .page-head h1 .pill { vertical-align: middle; font-size: 13px; margin-left: 6px; }
.admin-login { margin: 40px auto; }
.shop-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
a.shop-card { text-decoration: none; }
a.shop-card:hover { border-color: #3a3f45; }
.shop-card.is-demo { opacity: .7; }
.shop-card .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.shop-card h3 { margin: 0 0 2px; font-size: 16px; color: var(--text); }
.shop-card .top .muted { overflow-wrap: anywhere; }
.shop-card .stats { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.shop-card .stats b { color: var(--text); }
.setup-line { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.setup-line .progress { flex: 1; }
.note-line { margin: 10px 0 0; border-top: 1px solid var(--line); padding-top: 8px; overflow-wrap: anywhere; }
.progress { height: 6px; background: var(--panel2); border-radius: 3px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--gold); border-radius: 3px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.checklist li:last-child { border-bottom: 0; }
.checklist .mark { width: 20px; flex: none; text-align: center; color: var(--gold); font-weight: 700; }
.checklist li.done .mark { color: var(--green); }
.checklist small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 22px 0 14px; }
.filter-chips a { padding: 5px 12px; border-radius: 16px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; text-decoration: none; }
.filter-chips a.active { border-color: var(--gold); color: var(--gold); }
.extend-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.admin-strip { background: var(--gold-dark); color: #f0d9a8; border: 1px solid #6b5426; padding: 9px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.credentials-card { border-color: #6b5426; margin-bottom: 16px; }
.credentials-card textarea { width: 100%; font-size: 13px; resize: vertical; }
.big-code { font-size: 16px; letter-spacing: .5px; }
.danger-card { border-color: #5a2a2a; }
.danger-card summary { color: var(--red); }
.danger-card[open] summary { margin-bottom: 10px; }
.guide { display: grid; gap: 16px; margin-top: 16px; }
.guide-step h2 { margin: 0 0 10px; font-size: 17px; }
.guide-list { margin: 0; padding-left: 20px; }
.guide-list li { margin-bottom: 9px; line-height: 1.5; }
.guide-list li:last-child { margin-bottom: 0; }
.faq { margin: 0; }
.faq dt { font-weight: 600; margin-top: 14px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 4px 0 0; color: var(--muted); }
@media (max-width: 860px) {
  .admin-top { padding: 10px 16px; }
  .admin-main { padding: 16px 16px 40px; }
}
@media (max-width: 600px) {
  .admin-top { position: static; padding: 10px 16px 6px; }
  .admin-nav { justify-content: space-between; margin: 0 -8px; width: calc(100% + 16px); }
  .admin-nav a, .admin-nav .linklike { padding: 6px 8px; }
  .shop-list { grid-template-columns: 1fr; }
  .admin-main .details { grid-template-columns: 1fr; gap: 2px 0; }
  .admin-main .details dt { font-size: 13px; }
  .admin-main .details dd { margin-bottom: 8px; }
}
