/* TerminApp – gemeinsames Stylesheet für Admin- und Buchungsseiten */
:root {
  --brand: #0069ff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f6f7f9;
  --card: #ffffff;
  --ok: #0f9d58;
  --warn: #b7791f;
  --err: #d93025;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.05);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; margin: 0 0 4px; font-weight: 650; }
h2 { font-size: 18px; margin: 0 0 12px; font-weight: 600; }
h3 { font-size: 15px; margin: 0 0 8px; font-weight: 600; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; } .mt-0 { margin-top: 0; }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--text); font: inherit; font-weight: 550; cursor: pointer;
  text-decoration: none !important; line-height: 1.2; white-space: nowrap;
}
.btn:hover { background: #f3f4f6; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-contrast, #fff); }
.btn-primary:hover { background: var(--brand); filter: brightness(.93); }
.btn-danger { color: var(--err); border-color: #f5c2bf; }
.btn-danger:hover { background: #fdecea; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-link { background: none; border: 0; color: var(--brand); padding: 0; cursor: pointer; font: inherit; }
.inline-form { display: inline; margin: 0; }

/* ---------- Formulare ---------- */
label { display: block; font-weight: 550; margin-bottom: 5px; font-size: 14px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=tel],
input[type=date], input[type=time], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; background: #fff; color: var(--text);
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
input[type=color] { width: 48px; height: 38px; padding: 2px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; }
.form-row { margin-bottom: 16px; }
.help { color: var(--muted); font-size: 13px; margin-top: 4px; }
.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; cursor: pointer; }
.check input { margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.input-group { display: flex; align-items: stretch; }
.input-group .prefix { padding: 9px 10px; background: #f3f4f6; border: 1px solid #d1d5db; border-right: 0; border-radius: 8px 0 0 8px; color: var(--muted); white-space: nowrap; }
.input-group input { border-radius: 0 8px 8px 0; }

/* ---------- Karten / Tabellen / Badges ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.card-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-header h2 { margin: 0; }
.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-header p { margin: 0; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eef2ff; color: #3730a3; }
.badge-ok { background: #e6f4ea; color: #137333; }
.badge-error { background: #fce8e6; color: #c5221f; }
.badge-warn { background: #fef7e0; color: #8d5b00; }
.badge-muted { background: #f1f3f4; color: #5f6368; }
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; border: 1px solid; }
.flash-success { background: #e6f4ea; border-color: #b7dfc3; color: #0d652d; }
.flash-error { background: #fce8e6; border-color: #f6c1bc; color: #a50e0e; }
.flash-info { background: #e8f0fe; border-color: #c3d6fb; color: #174ea6; }
.flash-warning { background: #fef7e0; border-color: #f7df9c; color: #7a4f01; }
.empty { text-align: center; color: var(--muted); padding: 32px 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat b { display: block; font-size: 26px; font-weight: 650; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
code { background: #f3f4f6; padding: 1px 5px; border-radius: 4px; font-size: 13px; word-break: break-all; }
pre { background: #f3f4f6; padding: 12px; border-radius: 8px; overflow-x: auto; font-size: 13px; }
details summary { cursor: pointer; font-weight: 550; }
.steps { padding-left: 20px; margin: 0 0 12px; } .steps li { margin-bottom: 6px; }

/* ---------- Admin-Layout ---------- */
body.admin { display: block; }
.sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 230px; overflow-y: auto; background: #fff; border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; z-index: 20; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--text); padding: 4px 10px 18px; text-decoration: none !important; }
.logo-dot { width: 14px; height: 14px; border-radius: 4px; background: var(--brand); }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #374151; font-weight: 500; text-decoration: none; margin-bottom: 2px; }
.sidebar nav a svg { width: 18px; height: 18px; flex: 0 0 18px; }
.sidebar nav a:hover { background: #f3f4f6; }
.sidebar nav a.active { background: color-mix(in srgb, var(--brand) 10%, white); color: var(--brand); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding: 10px; font-size: 14px; }
.main { margin-left: 230px; padding: 28px 32px 60px; max-width: 1200px; }
.main-full { margin: 0 auto; max-width: 440px; padding-top: 10vh; }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .menu-toggle { display: block; position: fixed; top: 10px; left: 10px; z-index: 30; border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 20px; padding: 4px 10px; }
  .main { margin-left: 0; padding: 56px 16px 40px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Verfügbarkeits-Editor */
.week-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.week-row:last-child { border-bottom: 0; }
.intervals { display: flex; flex-direction: column; gap: 8px; }
.interval { display: flex; align-items: center; gap: 8px; }
.interval input[type=time] { width: 120px; }
.override-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }

/* Terminarten-Liste */
.et-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.et-card { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--c, var(--brand)); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.et-card .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.et-card.inactive { opacity: .6; }

/* ---------- Öffentliche Seiten ---------- */
body.public { min-height: 100vh; }
.pub-wrap { max-width: 1060px; margin: 0 auto; padding: 40px 16px; }
.pub-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 8px rgba(0,0,0,.08); overflow: hidden; }
.pub-footer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }
.pub-footer a { color: var(--muted); margin: 0 6px; }
.profile-head { text-align: center; padding: 36px 24px 24px; border-bottom: 1px solid var(--line); }
.avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.avatar-fallback { width: 84px; height: 84px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: var(--brand-contrast, #fff); font-size: 32px; font-weight: 600; margin-bottom: 10px; }
.type-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0; }
.type-item { display: block; padding: 22px 24px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--text); text-decoration: none !important; position: relative; }
.type-item:hover { background: #fafbfc; }
.type-item h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.type-item .dot { width: 22px; height: 22px; margin: 0; }
.type-item p { color: var(--muted); font-size: 14px; margin: 6px 0 0; }

.booking { display: grid; grid-template-columns: 330px 1fr; min-height: 560px; }
.booking-info { padding: 28px; border-right: 1px solid var(--line); }
.booking-info .host { color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.booking-info h1 { font-size: 26px; margin-bottom: 18px; }
.meta { display: flex; align-items: flex-start; gap: 10px; color: #4b5563; font-weight: 550; margin-bottom: 12px; }
.meta svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; }
.booking-info .desc { margin-top: 18px; color: #374151; white-space: pre-line; }
.booking-main { padding: 28px; position: relative; }
.booking-main h2 { font-size: 20px; }
.picker { display: grid; grid-template-columns: 1fr 220px; gap: 28px; }
.picker.no-day { grid-template-columns: 1fr; max-width: 420px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 14px; }
.cal-head b { font-weight: 600; }
.cal-nav { width: 38px; height: 38px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--brand) 10%, white); color: var(--brand); font-size: 18px; cursor: pointer; }
.cal-nav:disabled { background: transparent; color: #c4c4c4; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal-grid .wd { font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 0; }
.cal-day { aspect-ratio: 1; max-width: 46px; width: 100%; margin: 0 auto; border-radius: 50%; border: 0; background: none; font: inherit; color: #9ca3af; cursor: default; display: flex; align-items: center; justify-content: center; position: relative; }
.cal-day.avail { background: color-mix(in srgb, var(--brand) 10%, white); color: var(--brand); font-weight: 700; cursor: pointer; }
.cal-day.avail:hover { background: color-mix(in srgb, var(--brand) 20%, white); }
.cal-day.sel, .cal-day.sel:hover { background: var(--brand); color: var(--brand-contrast, #fff); }
.cal-day.today::after { content: ''; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.tz-row { margin-top: 20px; }
.tz-row label { font-size: 13px; }
.slots-col h3 { font-weight: 500; margin: 12px 0 14px; }
.slots { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.slot-row { display: flex; gap: 6px; }
.slot { flex: 1; padding: 12px; border: 1px solid color-mix(in srgb, var(--brand) 50%, white); color: var(--brand); background: #fff; border-radius: 8px; font: inherit; font-weight: 650; cursor: pointer; transition: all .12s; }
.slot:hover { border-color: var(--brand); border-width: 1px; box-shadow: inset 0 0 0 1px var(--brand); }
.slot.sel, .slot.sel:hover { background: #374151; border-color: #374151; color: #fff; box-shadow: none; transition: none; }
.slot-next { flex: 1; padding: 12px; border-radius: 8px; border: 0; background: var(--brand); color: var(--brand-contrast, #fff); font: inherit; font-weight: 650; cursor: pointer; }
.loading { color: var(--muted); padding: 30px 0; text-align: center; }
.spinner { display: inline-block; width: 22px; height: 22px; border: 3px solid #e5e7eb; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.back-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brand); font-size: 20px; cursor: pointer; margin-bottom: 12px; }
.booking-form { max-width: 480px; }
.selected-time { display: flex; gap: 10px; color: #4b5563; font-weight: 550; margin-bottom: 18px; }
.selected-time svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.terms { font-size: 13px; color: var(--muted); margin: 14px 0; }

.confirm-box { max-width: 640px; margin: 0 auto; padding: 36px 32px; text-align: center; }
.confirm-icon { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e6f4ea; color: var(--ok); font-size: 30px; margin-bottom: 12px; }
.confirm-icon.cancel { background: #fce8e6; color: var(--err); }
.confirm-details { text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin: 22px 0; }
.confirm-details .meta { font-weight: 500; }
.addcal { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0 6px; }
.addcal .btn { font-size: 14px; }
.join-btn { margin: 6px 0 4px; }
.manage-links { margin-top: 18px; font-size: 14px; }
.manage-links a { margin: 0 8px; }
.confirm-lead { font-size: 17px; margin: 4px 0 0; }
.confirm-h3 { margin: 26px 0 4px; }
.confirm-steps { text-align: left; margin-top: 8px; }
.confirm-steps .confirm-h3 { text-align: center; }
.confirm-steps ol { counter-reset: step; list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.confirm-steps li { counter-increment: step; position: relative; padding: 12px 14px 12px 52px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; line-height: 1.45; }
.confirm-steps li::before { content: counter(step); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--brand-contrast, #fff); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.confirm-steps li .muted { font-size: 14px; }
.confirm-website { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .pub-wrap { padding: 0; }
  .pub-card { border-radius: 0; border-left: 0; border-right: 0; }
  .booking { grid-template-columns: 1fr; }
  .booking-info { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px; }
  .booking-main { padding: 22px; }
  .picker { grid-template-columns: 1fr; }
  .slots { max-height: none; }
  .confirm-box { padding: 28px 18px; }
}
body.embed { background: transparent; }
body.embed .pub-wrap { padding: 0; max-width: none; }

/* ---------- CRM ---------- */
.crm-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .crm-grid { grid-template-columns: 1fr; } }
.tag-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; margin: 0 4px 4px 0; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag-chip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 0 0 2px; opacity: .6; }
.tag-chip button:hover { opacity: 1; }
.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tl-item:last-child { border-bottom: 0; }
.tl-icon { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: #f3f4f6; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.tl-note .tl-icon { background: #fef7e0; }
.tl-body { flex: 1; min-width: 0; }
.tl-meta { color: var(--muted); font-size: 12px; margin-top: 2px; display: flex; gap: 8px; align-items: center; }
.tl-note .tl-meta { margin: 0 0 4px; }

/* ---------- Automationen ---------- */
.wf-flow { max-width: 760px; margin: 0 auto 20px; display: flex; flex-direction: column; }
.wf-flow > .card, .wf-flow #step-list > .card { margin-bottom: 0; position: relative; }
.wf-flow > .card + *, #step-list > .card + .card, #step-list:not(:empty) + .card { margin-top: 26px; }
.wf-flow > .card + *::before, #step-list > .card + .card::before, #step-list:not(:empty) + .card::before { content: ''; position: absolute; top: -27px; left: 50%; width: 2px; height: 26px; background: #cbd5e1; }
#step-list:not(:empty) { margin-top: 26px; }
#step-list > .card:first-child::before { content: ''; position: absolute; top: -27px; left: 50%; width: 2px; height: 26px; background: #cbd5e1; }
.wf-label { font-weight: 700; margin-bottom: 8px; }
.wf-trigger { border-top: 4px solid #f59e0b; }
.wf-step { border-left: 4px solid var(--brand); }
.wf-step.wf-wait { border-left-color: #94a3b8; }
.wf-step.wf-condition { border-left-color: #a855f7; }
.wf-step.wf-sms { border-left-color: #10b981; }
.wf-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.wf-num { width: 24px; height: 24px; border-radius: 50%; background: #f3f4f6; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.wf-tools { margin-left: auto; display: flex; gap: 4px; }
.wf-add { display: flex; gap: 8px; border-style: dashed; box-shadow: none; }
.wf-add select { flex: 1; }
.pick-results { position: absolute; z-index: 10; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); max-height: 260px; overflow-y: auto; }
.pick-results > div { padding: 8px 12px; cursor: pointer; }
.pick-results > div:hover { background: #f3f4f6; }

/* ---------- Branding (öffentliche Seiten) ---------- */
body.public { background: var(--page-bg, var(--bg)); font-family: var(--font-body, inherit); }
body.public h1, body.public h2, body.public h3, body.public .host { font-family: var(--font-head, inherit); }
body.public .btn, body.public .slot, body.public .slot-next { border-radius: var(--btn-radius, 8px); }
body.public input, body.public select, body.public textarea, body.public .btn { font-family: inherit; }
.brand-bar { display: flex; align-items: center; justify-content: center; padding: 0 0 22px; }
.brand-bar img { max-height: 54px; max-width: 260px; }
.host-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.host-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 56px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.host-row .host { margin: 0; }
.host-tagline { color: var(--muted); font-size: 13px; }
.profile-head .avatar { width: 112px; height: 112px; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); }
.tagline { color: var(--muted); font-weight: 500; margin-top: 2px; }
@media (max-width: 860px) { .brand-bar { padding: 16px 0; background: #fff; border-bottom: 1px solid var(--line); } }

/* Branding-Einstellungen */
.brand-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 24px; }
.brand-grid > div, .brand-grid .grid-2 > *, .upload-row > div { min-width: 0; }
.upload-row input[type=file] { max-width: 100%; font-size: 13px; }
@media (max-width: 1000px) { .brand-grid { grid-template-columns: 1fr; } }
.upload-row { display: flex; gap: 12px; align-items: center; }
.upload-thumb { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; flex: 0 0 64px; }
.upload-thumb.round { border-radius: 50%; object-fit: cover; }
.empty-thumb { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.color-row { display: flex; gap: 8px; } .color-row .hex { width: 110px; font-family: ui-monospace, monospace; }
.brand-preview { background: var(--page-bg); border: 1px solid var(--line); border-radius: 12px; padding: 18px; font-family: var(--font-body); }
.bp-logo { text-align: center; min-height: 10px; margin-bottom: 12px; } .bp-logo img { max-height: 40px; max-width: 180px; }
.bp-card { background: #fff; border-radius: 10px; padding: 16px; box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.bp-host { display: flex; gap: 10px; align-items: center; } .bp-host img, .bp-ph { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #e5e7eb; display: inline-block; }
.bp-host b { display: block; font-family: var(--font-head); font-size: 14px; } .bp-host small { color: var(--muted); font-size: 12px; }
.bp-title { font-family: var(--font-head); font-weight: 700; font-size: 20px; margin: 12px 0; }
.bp-days { display: flex; gap: 6px; margin-bottom: 10px; } .bp-days span { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #9ca3af; }
.bp-days .on { background: color-mix(in srgb, var(--brand) 12%, white); color: var(--brand); font-weight: 700; } .bp-days .sel { background: var(--brand); color: var(--brand-contrast); font-weight: 700; }
.bp-slot { border: 1px solid var(--brand); color: var(--brand); text-align: center; padding: 8px; border-radius: var(--btn-radius); font-weight: 700; margin-bottom: 8px; }
.bp-btn { background: var(--brand); color: var(--brand-contrast); text-align: center; padding: 9px; border-radius: var(--btn-radius); font-weight: 600; }

/* ---------- App-Marke (Kalenderl) ---------- */
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }
.wordmark .app-icon { flex: 0 0 auto; display: block; }
.wordmark-text { font-family: var(--font-head, inherit); font-weight: 700; font-size: 19px; letter-spacing: -.01em; line-height: 1; }
.wordmark-accent { color: var(--brand); }
.side-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 4px 10px 20px; margin-bottom: 4px; border-bottom: 1px solid var(--line); text-decoration: none !important; }
.side-logo { max-width: 180px; max-height: 44px; object-fit: contain; display: block; }
.side-product .wordmark { gap: 6px; }
.side-product .wordmark-text { font-size: 14px; color: var(--muted); }
.side-product .wordmark-accent { color: var(--brand); }
.sidebar nav { margin-top: 10px; }
.login-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 18px; }
.login-brand .wordmark-text { font-size: 24px; }

/* Lesbare Akzentfarbe für Text auf hellem Grund (--brand-ink) */
a, .btn-link, .cal-nav, .cal-day.avail, .slot, .sidebar nav a.active, .wordmark-accent-ink { color: var(--brand-ink, var(--brand)); }
.slot { border-color: color-mix(in srgb, var(--brand-ink, var(--brand)) 45%, white); }
.slot:hover { box-shadow: inset 0 0 0 1px var(--brand-ink, var(--brand)); border-color: var(--brand-ink, var(--brand)); }
.cal-day.avail { background: color-mix(in srgb, var(--brand) 16%, white); }
.cal-day.avail:hover { background: color-mix(in srgb, var(--brand) 30%, white); }
.cal-day.sel, .cal-day.sel:hover { color: var(--brand-contrast, #fff); }
.btn-primary, .btn-primary:hover { color: var(--brand-contrast, #fff); }
.pub-footer, .pub-footer a { color: var(--page-fg, var(--muted)); }
.lockup { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
.lockup-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; flex: 0 0 40px; }
.lockup .wordmark-text { font-size: 20px; display: block; }
.lockup .wordmark-accent { color: var(--brand); }
.lockup-sub { display: block; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .02em; margin-top: 3px; }
.lockup-lg .lockup-logo { width: 52px; height: 52px; flex-basis: 52px; border-radius: 12px; }
.lockup-lg .wordmark-text { font-size: 26px; }
.side-brand-img { display: block; border-radius: 12px; padding: 10px 12px; margin: 0 2px 14px; text-align: center; }
.side-brand-img img { display: block; width: 100%; max-width: 190px; height: auto; margin: 0 auto; }
.login-logo { padding: 14px 18px; margin: 0 0 4px; width: 100%; }
.login-logo img { max-width: 240px; }
.nav-group { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9ca3af; padding: 14px 10px 4px; }
.sidebar nav a { padding: 7px 10px; }
