/* ==========================================================================
   Terminbuchung – Stylesheet
   ========================================================================== */
:root {
  --brand: #4f46e5;
  --brand-ink: #ffffff;
  --brand-soft: color-mix(in srgb, var(--brand) 10%, transparent);
  --brand-soft-2: color-mix(in srgb, var(--brand) 18%, transparent);
  --brand-text: var(--brand);
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #111827;
  --text-2: #4b5563;
  --muted: #6b7280;
  --ok: #059669; --ok-bg: #ecfdf5;
  --warn: #b45309; --warn-bg: #fffbeb;
  --err: #dc2626; --err-bg: #fef2f2;
  --info: #2563eb; --info-bg: #eff6ff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --shadow-lg: 0 12px 32px -8px rgba(16,24,40,.18), 0 4px 8px -4px rgba(16,24,40,.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115; --surface: #171a21; --surface-2: #1d212a; --border: #2a2f3a; --border-strong: #3a4150;
    --text: #f3f4f6; --text-2: #c9ced8; --muted: #9aa3b2;
    --ok-bg: #06281f; --warn-bg: #2b1d06; --err-bg: #2c0f10; --info-bg: #0d1b36;
    --ok: #34d399; --warn: #fbbf24; --err: #f87171; --info: #60a5fa;
    --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 16px 40px -8px rgba(0,0,0,.6);
    --brand-soft: color-mix(in srgb, var(--brand) 22%, transparent);
    --brand-soft-2: color-mix(in srgb, var(--brand) 32%, transparent);
    --brand-text: color-mix(in srgb, var(--brand) 55%, #fff);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115; --surface: #171a21; --surface-2: #1d212a; --border: #2a2f3a; --border-strong: #3a4150;
  --text: #f3f4f6; --text-2: #c9ced8; --muted: #9aa3b2;
  --ok-bg: #06281f; --warn-bg: #2b1d06; --err-bg: #2c0f10; --info-bg: #0d1b36;
  --ok: #34d399; --warn: #fbbf24; --err: #f87171; --info: #60a5fa;
  --brand-soft: color-mix(in srgb, var(--brand) 22%, transparent);
  --brand-soft-2: color-mix(in srgb, var(--brand) 32%, transparent);
  --brand-text: color-mix(in srgb, var(--brand) 55%, #fff);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.ic-lg { width: 22px; height: 22px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: 8px } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px }
.flex { display: flex; gap: 10px; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
code { background: var(--surface-2); border: 1px solid var(--border); padding: 1px 5px; border-radius: 5px; word-break: break-all; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 550; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .slot:focus-visible, .day:focus-visible, .svc:focus-visible { outline: 3px solid var(--brand-soft-2); outline-offset: 1px; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }
.btn-danger { color: var(--err); border-color: color-mix(in srgb, var(--err) 40%, var(--border)); }
.btn-danger:hover { background: var(--err-bg); }
.btn-danger-solid { background: var(--err); color: #fff; border-color: var(--err); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { min-height: 32px; padding: 5px 11px; font-size: .88rem; }
.btn-lg { min-height: 50px; padding: 12px 22px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn-sm.btn-icon { width: 32px; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { margin: 0; font-size: 1rem; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.card + .card { margin-top: 16px; }
.grid > .card + .card, .flex > .card + .card { margin-top: 0; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field > label, .label { display: block; font-weight: 580; font-size: .9rem; margin-bottom: 6px; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=url], input[type=search], input[type=month], select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 90px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft-2); }
input[type=color] { width: 48px; height: 40px; padding: 2px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.input-sm { min-height: 34px !important; padding: 5px 9px !important; font-size: .9rem; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding: 4px 0; user-select: none; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex: none; cursor: pointer; }
.check span small { display: block; color: var(--muted); font-size: .84rem; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { appearance: none; width: 40px; height: 24px; border-radius: 99px; background: var(--border-strong); position: relative; cursor: pointer; transition: background .2s; margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(16px); }
.input-group { display: flex; }
.input-group input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-left: 0; }
.input-prefix { display: flex; align-items: center; }
.input-prefix span { padding: 0 10px; min-height: 42px; display: flex; align-items: center; background: var(--surface-2); border: 1px solid var(--border-strong); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); color: var(--muted); font-size: .9rem; white-space: nowrap; }
.input-prefix input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px 6px; margin: 0 0 18px; }
legend { font-weight: 650; padding: 0 6px; }
.req::after { content: " *"; color: var(--err); }

/* ---------- Badges / Alerts ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.no-dot::before { display: none; }
.st-confirmed, .st-paid, .st-sent { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.st-pending, .st-open, .st-queued, .st-retry, .st-awaiting_payment, .st-sending { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.st-cancelled, .st-failed, .st-no_show { background: var(--err-bg); color: var(--err); border-color: transparent; }
.st-completed { background: var(--info-bg); color: var(--info); border-color: transparent; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid transparent; }
.alert .ic { margin-top: 2px; }
.alert-success { background: var(--ok-bg); color: var(--ok); }
.alert-error { background: var(--err-bg); color: var(--err); }
.alert-info { background: var(--info-bg); color: var(--info); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert p:last-child { margin: 0; }
.alert a { color: inherit; text-decoration: underline; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table .actions { text-align: right; white-space: nowrap; }
.row-link { cursor: pointer; }
@media (max-width: 720px) {
  .table.stack thead { display: none; }
  .table.stack tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--border); }
  .table.stack td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; }
  .table.stack td::before { content: attr(data-label); color: var(--muted); font-size: .82rem; }
  .table.stack td.actions { justify-content: flex-end; padding-top: 8px; }
  .table.stack td.actions::before { display: none; }
}

/* ---------- Empty ---------- */
.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.empty .ic { width: 38px; height: 38px; opacity: .45; margin-bottom: 8px; }
.empty h3 { color: var(--text); }

/* ---------- Toast ---------- */
.toasts { position: fixed; z-index: 1000; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
.toast { background: #111827; color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: .92rem; max-width: 380px; animation: toastIn .2s ease-out; display: flex; gap: 10px; align-items: flex-start; }
.toast.error { background: #991b1b; }
.toast.success { background: #065f46; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } }

/* ---------- Dialog ---------- */
dialog.modal { border: 0; padding: 0; border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); }
dialog.modal.wide { width: min(760px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(15,17,21,.5); backdrop-filter: blur(2px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.modal-head h2 { margin: 0; font-size: 1.1rem; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); position: sticky; bottom: 0; }
@media (max-width: 640px) {
  dialog.modal { width: 100vw; max-width: 100vw; max-height: 94vh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
}

/* ==========================================================================
   Adminbereich
   ========================================================================== */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
@supports (height: 100dvh) { .sidebar { height: 100dvh; } }
.sidebar > nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.sidebar-foot { flex: none; padding-bottom: env(safe-area-inset-bottom, 0); }
.topbar-logout { margin: 0 0 0 auto; }
.topbar-logout .btn { gap: 6px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; font-weight: 700; color: var(--text); text-decoration: none !important; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; flex: none; overflow: hidden; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 12px 6px; font-weight: 600; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 8px; color: var(--text-2); font-weight: 520; text-decoration: none; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--brand-soft); color: var(--brand-text); }
.nav a .count { margin-left: auto; background: var(--warn-bg); color: var(--warn); border-radius: 99px; font-size: .74rem; padding: 0 8px; font-weight: 700; }
.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 650; font-size: .82rem; flex: none; background: var(--brand); }
.avatar-sm { width: 26px; height: 26px; font-size: .7rem; }
.avatar-lg { width: 52px; height: 52px; font-size: 1.05rem; }
.main { min-width: 0; }
.scrim { display: none; }
.topbar { display: none; }
.page { padding: 26px 30px 60px; max-width: 1280px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.impersonate { background: var(--warn-bg); color: var(--warn); padding: 8px 30px; font-size: .9rem; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.impersonate form { margin: 0; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 40; display: none; }
  .sidebar.open + .scrim { display: block; }
  .topbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
  .topbar .brand { padding: 0; }
  .topbar .brand { min-width: 0; overflow: hidden; }
  .topbar .brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .page { padding: 18px 16px 80px; }
  .impersonate { padding: 8px 16px; }
}

/* Kennzahlen */
@media (max-width: 640px) { .grid.stats { grid-template-columns: 1fr 1fr; gap: 10px; } .stat .value { font-size: 1.35rem; } }
.stat { padding: 16px 18px; }
.stat .label { color: var(--muted); font-size: .84rem; font-weight: 550; margin: 0; }
.stat .value { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.stat .sub { font-size: .82rem; color: var(--muted); }

.appt-list { list-style: none; margin: 0; padding: 0; }
.appt-list li { display: flex; gap: 14px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.appt-list li:last-child { border-bottom: 0; }
.appt-time { width: 64px; flex: none; font-weight: 650; font-variant-numeric: tabular-nums; }
.appt-time small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
.appt-bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--brand); flex: none; }
.appt-main { flex: 1; min-width: 0; }
.appt-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appt-main span { color: var(--muted); font-size: .88rem; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.checklist .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; flex: none; }
.checklist .done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.checklist .done a { color: var(--muted); text-decoration: line-through; }

.copy-box { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 8px 8px 8px 12px; }
.copy-box input { border: 0; background: transparent; min-height: 30px; padding: 0; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; box-shadow: none !important; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a { display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; color: var(--muted); font-weight: 560; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--brand-text); border-bottom-color: var(--brand); }
.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.settings-nav { position: sticky; top: 16px; }
.settings-nav a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 8px; color: var(--text-2); font-weight: 520; text-decoration: none; }
.settings-nav a:hover { background: var(--surface); }
.settings-nav a.active { background: var(--surface); color: var(--brand-text); box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .settings-nav a { white-space: nowrap; }
}

/* Matrix */
.matrix th, .matrix td { text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix input { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }
.matrix .disabled { opacity: .35; }

/* Wochenplan */
.sched-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: start; }
.sched-row:last-child { border-bottom: 0; }
.sched-ranges { display: flex; flex-direction: column; gap: 6px; }
.sched-range { display: flex; gap: 6px; align-items: center; }
.sched-range input { width: 118px; }
@media (max-width: 560px) { .sched-row { grid-template-columns: 1fr; } }

.color-choices { display: flex; gap: 8px; flex-wrap: wrap; }
.color-choices label { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; position: relative; border: 2px solid transparent; }
.color-choices input { position: absolute; opacity: 0; }
.color-choices input:checked + span { position: absolute; inset: -5px; border: 2px solid var(--text); border-radius: 50%; }

/* Filterleiste */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filters .field { margin: 0; min-width: 140px; }
.filters .field.grow { flex: 1; min-width: 200px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }

/* ==========================================================================
   Admin-Kalender
   ========================================================================== */
.cal-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.cal-toolbar h2 { margin: 0 8px; font-size: 1.1rem; min-width: 190px; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 8px 13px; font: inherit; font-size: .9rem; font-weight: 550; cursor: pointer; color: var(--text-2); }
.seg button + button { border-left: 1px solid var(--border-strong); }
.seg button.active { background: var(--brand-soft); color: var(--brand-text); }
.cal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cal-scroll { overflow: auto; max-height: calc(100vh - 210px); position: relative; }
.cal-grid { display: grid; min-width: 100%; position: relative; }
.cal-head { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--border); display: grid; }
.cal-head div { padding: 8px 6px; text-align: center; font-size: .84rem; font-weight: 600; color: var(--text-2); border-left: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-head div:first-child { border-left: 0; }
.cal-head .today { color: var(--brand); }
.cal-head .today b { background: var(--brand); color: var(--brand-ink); border-radius: 99px; padding: 1px 7px; }
.cal-times { position: relative; border-right: 1px solid var(--border); }
.cal-times div { position: absolute; right: 6px; font-size: .74rem; color: var(--muted); transform: translateY(-50%); font-variant-numeric: tabular-nums; }
.cal-col { position: relative; border-left: 1px solid var(--border); cursor: crosshair; }
.cal-col:first-of-type { border-left: 0; }
.cal-col .off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 6px, transparent 6px, transparent 12px); pointer-events: none; }
.cal-col .block { position: absolute; left: 2px; right: 2px; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--muted) 18%, transparent), color-mix(in srgb, var(--muted) 18%, transparent) 5px, color-mix(in srgb, var(--muted) 8%, transparent) 5px, color-mix(in srgb, var(--muted) 8%, transparent) 10px); border-radius: 6px; font-size: .74rem; color: var(--text-2); padding: 3px 6px; overflow: hidden; cursor: pointer; z-index: 1; }
.cal-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--border); pointer-events: none; }
.cal-line.half { border-top-style: dashed; opacity: .5; }
.now-line { position: absolute; left: 0; right: 0; border-top: 2px solid var(--err); z-index: 4; pointer-events: none; }
.now-line::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--err); }
.ev { position: absolute; left: 3px; right: 3px; border-radius: 7px; padding: 4px 7px; font-size: .78rem; line-height: 1.25; overflow: hidden; cursor: pointer; z-index: 2; background: color-mix(in srgb, var(--c, var(--brand)) 16%, var(--surface)); border-left: 3px solid var(--c, var(--brand)); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.06); transition: box-shadow .15s; }
.ev:hover { box-shadow: var(--shadow-lg); z-index: 3; }
.ev b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev span { display: block; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.st-pending-ev { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 16%, var(--surface)), color-mix(in srgb, var(--c) 16%, var(--surface)) 6px, color-mix(in srgb, var(--c) 8%, var(--surface)) 6px, color-mix(in srgb, var(--c) 8%, var(--surface)) 12px); }
.ev.st-cancelled-ev { opacity: .45; text-decoration: line-through; }
.ev.st-completed-ev { opacity: .75; }
.ev.st-no_show-ev { border-left-color: var(--err); }
.ev.dragging { opacity: .6; box-shadow: var(--shadow-lg); z-index: 10; }
.ev-ghost { position: absolute; left: 3px; right: 3px; border: 2px dashed var(--brand); border-radius: 7px; background: var(--brand-soft); z-index: 6; pointer-events: none; font-size: .75rem; font-weight: 650; color: var(--brand); padding: 2px 6px; }
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-month .mh { padding: 8px; font-size: .78rem; font-weight: 600; color: var(--muted); text-align: center; border-bottom: 1px solid var(--border); }
.cal-month .md { min-height: 108px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 6px; font-size: .8rem; cursor: pointer; }
.cal-month .md:nth-child(7n) { border-right: 0; }
.cal-month .md.other { background: var(--surface-2); color: var(--muted); }
.cal-month .md .dn { font-weight: 650; margin-bottom: 4px; display: inline-block; }
.cal-month .md.today .dn { background: var(--brand); color: var(--brand-ink); border-radius: 99px; padding: 0 7px; }
.cal-month .mev { display: block; border-radius: 4px; padding: 1px 5px; margin-bottom: 2px; background: color-mix(in srgb, var(--c) 15%, var(--surface)); border-left: 3px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: 10px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.detail-grid { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: .93rem; }
.detail-grid dt { color: var(--muted); }
.detail-grid dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ac-wrap { position: relative; }
.ac-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin-top: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); max-height: 260px; overflow: auto; }
.ac-list button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 12px; font: inherit; cursor: pointer; color: var(--text); }
.ac-list button:hover, .ac-list button.active { background: var(--brand-soft); }
.ac-list small { color: var(--muted); display: block; }
.slot-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.slot-suggest button { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 6px; padding: 3px 8px; font: inherit; font-size: .82rem; cursor: pointer; color: var(--text); }
.slot-suggest button:hover { border-color: var(--brand); color: var(--brand); }
.timeline { list-style: none; padding: 0; margin: 0; font-size: .86rem; }
.timeline li { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); align-items: center; }
.timeline li:last-child { border: 0; }

/* ==========================================================================
   Öffentliche Seiten / Buchung
   ========================================================================== */
.pub { min-height: 100vh; display: flex; flex-direction: column; }
.pub-hero { background: var(--brand); color: var(--brand-ink); padding: 26px 16px 70px; }
.pub-hero-inner { max-width: 980px; margin: 0 auto; display: flex; gap: 16px; align-items: center; }
.pub-hero .logo { width: 60px; height: 60px; border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; color: var(--brand); font-weight: 800; font-size: 1.3rem; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.pub-hero .logo img { width: 100%; height: 100%; object-fit: contain; }
.pub-hero h1 { margin: 0; font-size: 1.55rem; }
.pub-hero p { margin: 3px 0 0; opacity: .9; font-size: .93rem; display: flex; gap: 14px; flex-wrap: wrap; }
.pub-hero p span { display: inline-flex; gap: 6px; align-items: center; }
.pub-hero a { color: inherit; }
.pub-wrap { max-width: 980px; margin: -48px auto 0; padding: 0 16px 40px; width: 100%; flex: 1; }
.pub-wrap.narrow { max-width: 640px; }
.pub-card { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden; }
.pub-foot { text-align: center; font-size: .8rem; color: var(--muted); padding: 18px; }
.pub-foot a { color: var(--muted); }
body.embed .pub-hero { padding: 16px 16px 56px; }
body.embed .pub-foot { display: none; }

/* Stepper */
.stepper { display: flex; padding: 16px 20px; gap: 6px; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 10; }
.stepper .st { flex: 1; display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); font-weight: 560; min-width: 0; }
.stepper .st i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border-strong); font-style: normal; font-size: .8rem; font-weight: 700; flex: none; background: var(--surface); }
.stepper .st span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper .st::after { content: ""; flex: 1; height: 2px; background: var(--border); border-radius: 2px; min-width: 8px; }
.stepper .st:last-child::after { display: none; }
.stepper .st.active { color: var(--text); }
.stepper .st.active i { border-color: var(--brand); color: var(--brand); }
.stepper .st.done i { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.stepper .st.done { cursor: pointer; }
.stepper .st.done::after { background: var(--brand); }
@media (max-width: 600px) { .stepper { padding: 14px 16px; } .stepper .st span { display: none; } .stepper .st.active { flex: 2.4; } .stepper .st.active span { display: inline; overflow: visible; } }

.step { padding: 22px; }
.step-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.step-title h2 { margin: 0; font-size: 1.2rem; }
.back-link { display: inline-flex; gap: 4px; align-items: center; color: var(--muted); font-weight: 550; background: none; border: 0; cursor: pointer; font: inherit; padding: 4px 0; }
.back-link:hover { color: var(--text); }

.search { position: relative; margin-bottom: 16px; }
.search .ic { position: absolute; left: 12px; top: 12px; color: var(--muted); }
.search input { padding-left: 38px; }
.cat-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; margin: 20px 0 10px; }
.cat-title:first-child { margin-top: 0; }
.svc-list { display: grid; gap: 10px; }
.svc { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .1s; text-align: left; width: 100%; font: inherit; color: inherit; }
.svc:hover { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.svc.selected { border-color: var(--brand); background: var(--brand-soft); }
.svc-img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.svc-body { flex: 1; min-width: 0; }
.svc-name { font-weight: 650; font-size: 1rem; }
.svc-desc { color: var(--muted); font-size: .88rem; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-meta { display: flex; gap: 12px; margin-top: 6px; font-size: .86rem; color: var(--text-2); flex-wrap: wrap; }
.svc-meta span { display: inline-flex; gap: 5px; align-items: center; }
.svc-price { font-weight: 700; white-space: nowrap; text-align: right; }
.svc-go { color: var(--muted); }
.svc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.svc-head .svc-name { flex: 1 1 180px; min-width: 0; }
.svc-head .svc-price { margin-left: auto; font-size: 1rem; }
.svc { align-items: flex-start; }
.svc.has-var { cursor: default; }
.svc:hover .variant.single { border-color: var(--brand); background: var(--brand-soft); }
.variants { display: grid; gap: 6px; margin-top: 10px; max-width: 560px; }
.variant { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid var(--border); background: var(--surface-2); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: .92rem; cursor: pointer; color: var(--text); transition: border-color .12s, background .12s; }
.variant:hover, .variant:focus-visible, .variant.selected { border-color: var(--brand); background: var(--brand-soft); outline: none; }
.variant .v-dur { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.variant .v-dur svg { width: 15px; height: 15px; color: var(--muted); }
.variant .v-label { color: var(--muted); font-size: .86rem; min-width: 0; overflow-wrap: anywhere; }
.variant .v-price { margin-left: auto; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.variant .v-go { color: var(--muted); display: inline-flex; }
.variant .v-go svg { width: 16px; height: 16px; }
@media (max-width: 480px) { .svc { padding: 12px; gap: 10px; } .svc-img { width: 52px; height: 52px; } }

.staff-pick { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 8px; scrollbar-width: thin; }
.staff-opt { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: 99px; padding: 5px 14px 5px 5px; background: var(--surface); cursor: pointer; white-space: nowrap; font: inherit; font-size: .9rem; font-weight: 550; color: var(--text); }
.staff-opt.any { padding-left: 14px; }
.staff-opt:hover { border-color: var(--brand); }
.staff-opt.selected { border-color: var(--brand-text); background: var(--brand-soft); color: var(--brand-text); box-shadow: inset 0 0 0 1px var(--brand); }

.picker { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 760px) { .picker { grid-template-columns: 1fr; } }
.month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.month-head strong { font-size: 1rem; }
.month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.month .wd { text-align: center; font-size: .74rem; color: var(--muted); font-weight: 600; padding: 4px 0; }
.day { aspect-ratio: 1; border: 0; border-radius: 10px; background: transparent; font: inherit; font-weight: 550; color: var(--muted); cursor: default; position: relative; font-variant-numeric: tabular-nums; opacity: .5; min-height: 38px; }
.day.avail { background: var(--brand-soft); color: var(--brand-text); cursor: pointer; opacity: 1; font-weight: 650; }
.day.avail:hover { background: var(--brand-soft-2); }
.day.sel { background: var(--brand); color: var(--brand-ink); opacity: 1; }
.day.today::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.month-loading { opacity: .45; pointer-events: none; }
.slots-head { font-weight: 650; margin-bottom: 10px; }
.slot-group { margin-bottom: 14px; }
.slot-group h4 { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 8px; font-weight: 650; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 9px; padding: 9px 0; font: inherit; font-weight: 600; cursor: pointer; color: var(--text); font-variant-numeric: tabular-nums; transition: all .12s; }
.slot:hover { border-color: var(--brand); color: var(--brand); }
.slot.sel { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.hint-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 18px; text-align: center; color: var(--muted); }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }

.summary { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.summary-row { display: flex; gap: 10px; align-items: center; padding: 4px 0; font-size: .93rem; }
.summary-row .ic { color: var(--muted); }
.summary-row strong { font-weight: 620; }
.summary .change { margin-left: auto; font-size: .84rem; }
.pay-opts { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .pay-opts { grid-template-columns: 1fr; } }
.pay-opt { border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; }
.pay-opt input { accent-color: var(--brand); margin-top: 3px; }
.pay-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pay-opt small { display: block; color: var(--muted); }
.notify-opts { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.hp { position: absolute; left: -9999px; }

.success { text-align: center; padding: 34px 22px 26px; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; animation: pop .35s ease-out; }
.success-icon .ic { width: 36px; height: 36px; stroke-width: 2.5; }
.success-icon.pending { background: var(--warn-bg); color: var(--warn); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.success .box { text-align: left; max-width: 440px; margin: 18px auto; }
.success .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: flex; position: sticky; bottom: 0; z-index: 10; background: var(--surface); border-top: 1px solid var(--border); padding: 10px 14px; gap: 10px; align-items: center; box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
  .mobile-bar .grow { font-size: .86rem; line-height: 1.3; }
  .mobile-bar .grow b { display: block; }
  .step { padding: 18px 16px; }
}

/* Verwalten */
.manage-head { padding: 22px; border-bottom: 1px solid var(--border); display: flex; gap: 16px; align-items: flex-start; }
.date-tile { width: 64px; flex: none; text-align: center; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.date-tile .m { background: var(--brand); color: var(--brand-ink); font-size: .74rem; font-weight: 700; text-transform: uppercase; padding: 3px 0; }
.date-tile .d { font-size: 1.6rem; font-weight: 750; line-height: 1.3; }
.date-tile .w { font-size: .74rem; color: var(--muted); padding-bottom: 4px; }
.action-list { display: grid; gap: 10px; }

/* Auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 500px at 10% -10%, var(--brand-soft-2), transparent), var(--bg); }
.auth-card { width: min(420px, 100%); }
.auth-card .card-body { padding: 28px; }
.auth-logo { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 20px; font-weight: 700; font-size: 1.1rem; }

/* Installer */
.install { max-width: 720px; margin: 30px auto; padding: 0 16px; }
.req-list { list-style: none; padding: 0; margin: 0; }
.req-list li { display: flex; gap: 10px; padding: 6px 0; align-items: center; }
.req-list .ok { color: var(--ok); } .req-list .bad { color: var(--err); }

/* Druck */
@media print {
  .sidebar, .topbar, .btn, .filters, .tabs, .toasts, .impersonate { display: none !important; }
  .app { display: block; } .page { padding: 0; } .card { box-shadow: none; }
}

/* WhatsApp-Assistent */
.wa-steps { list-style: none; counter-reset: wa; margin: 0; padding: 0; }
.wa-steps > li { counter-increment: wa; position: relative; padding: 0 0 22px 46px; border-left: 2px solid var(--border); margin-left: 15px; }
.wa-steps > li:last-child { border-left-color: transparent; padding-bottom: 4px; }
.wa-steps > li::before { content: counter(wa); position: absolute; left: -16px; top: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: var(--surface-2); border: 2px solid var(--border); color: var(--text-2); }
.wa-steps > li.done::before { content: '✓'; background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.wa-steps > li.done { border-left-color: var(--ok); }
.wa-steps h3 { margin: 2px 0 6px; font-size: 1rem; }
.wa-steps p, .wa-steps ol, .wa-steps ul { margin: 0 0 10px; }
.wa-steps ol ol, .wa-steps li ol, .wa-steps li ul { padding-left: 18px; }
.wa-steps li li { margin-bottom: 4px; }
.wa-steps .flex.wrap { flex-wrap: wrap; gap: 8px; }
.wa-state { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--ok-bg); }
.wa-state > svg { color: var(--ok); flex: none; margin-top: 2px; }
.wa-assist details > summary { cursor: pointer; }

/* Profilbilder */
.d-block { display: block; }
img.avatar-img { object-fit: cover; background: var(--surface-2); display: block; padding: 0; }
.avatar-xl { width: 104px; height: 104px; font-size: 2rem; }
.avatar-edit { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.avatar-edit .avatar-xl { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--border); }
.avatar-edit .field { margin: 0; flex: 1; min-width: 200px; }
.staff-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; overflow: visible; padding: 2px 2px 12px; }
.staff-pick.hidden { display: none; }
.staff-pick:has(.staff-chosen) { display: block; }
.staff-opt { border-radius: 16px; padding: 8px 12px 8px 8px; gap: 10px; text-align: left; white-space: normal; min-width: 0; }
.staff-opt .staff-txt strong { overflow-wrap: break-word; hyphens: auto; font-size: .9rem; }
.staff-opt.any { padding-left: 8px; }
.staff-opt .avatar { width: 48px; height: 48px; font-size: 1rem; }
.staff-opt .avatar-any { background: var(--surface-2); color: var(--muted); }
.staff-opt .staff-txt { display: flex; flex-direction: column; line-height: 1.25; }
.staff-opt .staff-txt small { font-weight: 450; color: var(--muted); font-size: .78rem; }
.staff-opt.selected .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand); }
.staff-chosen { display: flex; align-items: center; gap: 12px; padding: 4px 2px; }
.staff-chosen .avatar { width: 56px; height: 56px; font-size: 1.1rem; }
.summary-row.staff-row .avatar { width: 40px; height: 40px; font-size: .85rem; }
.pub-staff { display: flex; align-items: center; gap: 12px; }
.pub-staff .avatar { width: 48px; height: 48px; }

/* Adress-Vorschläge */
.ac-wrap { position: relative; }
.ac-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: 0 12px 32px rgba(15, 23, 42, .16); max-height: 300px; overflow-y: auto; }
.ac-list li { padding: 8px 10px; border-radius: 6px; cursor: pointer; line-height: 1.3; }
.ac-list li strong { display: block; font-weight: 600; font-size: .93rem; }
.ac-list li span { display: block; font-size: .8rem; color: var(--muted); }
.ac-list li.active, .ac-list li:hover { background: var(--brand-soft); }
.ac-list li.ac-attr { cursor: default; font-size: .72rem; color: var(--muted); text-align: right; padding: 4px 8px 2px; }
.ac-list li.ac-attr:hover { background: none; }
input.invalid, select.invalid { border-color: var(--err) !important; box-shadow: 0 0 0 3px var(--err-bg); }
.voucher-box { border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 14px; }
.voucher-ok { display: flex; gap: 10px; align-items: center; background: var(--ok-bg); color: var(--ok); border-radius: var(--radius-sm); padding: 10px 12px; font-size: .92rem; }
.voucher-ok .grow { color: var(--text); }
.pub-actions { margin-left: auto; align-self: flex-start; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
button.pub-account-link { border: 0; font: inherit; font-size: .88rem; font-weight: 600; color: inherit; cursor: pointer; }
.pub-account-link { margin-left: 0; align-self: flex-start; color: inherit; text-decoration: none; font-size: .88rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.16); white-space: nowrap; }
.pub-account-link:hover { background: rgba(255,255,255,.26); }
.embed .pub-account-link { display: none; }
.addr-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 150px; gap: 0 12px; }
@media (max-width: 560px) { .addr-row { grid-template-columns: 96px minmax(0, 1fr); } .addr-row > :last-child { grid-column: 1 / -1; } }
.text-err { color: var(--err); }
@media (max-width: 900px) { #vGrid { grid-template-columns: 1fr !important; } }
.voucher-sum { display: flex; gap: 22px; flex-wrap: wrap; padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius-sm); }
.voucher-sum > div { display: flex; flex-direction: column; gap: 2px; }
.voucher-sum strong { font-size: 1.3rem; }

/* Hinweis Anonymisierungsdienst */
.anon-help { border: 1px solid var(--warn, #d97706); background: var(--warn-bg, #fffbeb); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 16px; }
.anon-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.anon-head > svg { flex: none; color: var(--warn, #d97706); margin-top: 2px; }
.anon-help ol { padding-left: 18px; margin: 0 0 8px; }
.anon-help li { margin-bottom: 4px; }
.verify-box { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 12px; margin: -6px 0 14px; background: var(--surface-2); }
.verified-badge { display: inline-flex; gap: 6px; align-items: center; color: var(--ok); font-size: .85rem; font-weight: 600; }

/* Sterne (Bewertungen) */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars .ic { width: 16px; height: 16px; color: #d1d5db; }
.stars .ic.on { color: #f59e0b; fill: #f59e0b; }

@media (max-width: 560px) {
  .pub-hero { padding-top: 16px; }
  .pub-hero-inner { flex-wrap: wrap; gap: 12px; align-items: flex-start; }
  .pub-actions { order: -1; width: 100%; }
  .pub-hero .logo { width: 52px; height: 52px; font-size: 1.1rem; }
  .pub-hero .grow { flex: 1 1 0; min-width: 0; }
  .pub-hero h1 { font-size: 1.3rem; overflow-wrap: anywhere; }
  .pub-hero p { gap: 4px 12px; font-size: .88rem; }
  .hide-xs { display: none; }
}

/* Gutschein-Verkauf ganz oben bei den Leistungen */
.voucher-promo { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; text-decoration: none; color: var(--brand-ink); background: linear-gradient(120deg, var(--brand), color-mix(in srgb, var(--brand) 60%, #db2777)); box-shadow: 0 10px 26px -14px var(--brand); transition: transform .12s, box-shadow .12s; }
.voucher-promo:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -14px var(--brand); color: var(--brand-ink); }
.voucher-promo .vp-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.2); }
.voucher-promo .vp-ic svg { width: 24px; height: 24px; }
.voucher-promo .vp-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.voucher-promo .vp-txt strong { font-size: 1.02rem; }
.voucher-promo .vp-txt small { opacity: .9; font-size: .84rem; }
.voucher-promo .vp-btn { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 99px; background: #fff; color: #111; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.voucher-promo .vp-btn svg { width: 16px; height: 16px; }
@media (max-width: 480px) { .voucher-promo { flex-wrap: wrap; } .voucher-promo .vp-btn { width: 100%; justify-content: center; } }
.notify-info { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: .88rem; color: var(--text-2); margin-bottom: 16px; }
.notify-info .ic { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 1px; }
