/* Werkstatt-Toolkit · öffentliche Terminbuchung (immer hell) */
:root {
  --bg: #f4f1ec; --surface: #fff; --surface-2: #f8f6f2; --surface-3: #eee9e1; --text: #1f1c18; --muted: #6b645a; --faint: #9a9287;
  --border: #e2dbd0; --border-strong: #cbc2b4; --accent: #b0612a; --accent-strong: #8f4c1f; --accent-soft: #f5e6da; --accent-ink: #fff;
  --info: #2d6a8f; --good: #2f7d4f; --good-soft: #e3f1e8; --bad: #b3372c; --bad-soft: #f8e3e0;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); }
a { color: var(--accent); }
.bk { max-width: 560px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom)); }
.bk-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.bk-logo { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.bk-ws { font-size: .82rem; color: var(--muted); letter-spacing: .02em; }
.bk-appbar { display: block; margin: 0 0 14px; padding: 9px 14px; border-radius: 10px; background: #1f1c18; color: #fff; text-decoration: none; font-size: .9rem; font-weight: 600; }
.bk-home { color: inherit; text-decoration: none; display: block; }
a.bk-home:hover { text-decoration: underline; }
.bk-head > .bk-home { flex: none; }
.bk-foot { margin: 34px 0 6px; padding-top: 14px; border-top: 1px solid var(--border); text-align: center; font-size: .8rem; }
.bk-foot a { color: var(--muted); text-decoration: none; }
.bk-foot a:hover { text-decoration: underline; }
h1 { font-size: 1.45rem; margin: 0; line-height: 1.2; }
h2 { font-size: 1.15rem; margin: 6px 0 12px; }
.bk-dur { font-size: .8rem; font-weight: 500; color: var(--muted); }
.bk-intro { font-size: 1.02rem; margin: 0 0 16px; }
.bk-muted { color: var(--muted); }
.bk-types { display: grid; gap: 12px; }
.bk-type { text-align: left; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--border-strong); border-radius: 12px; padding: 16px 18px; cursor: pointer; display: grid; gap: 3px; }
.bk-type:hover, .bk-type:focus-visible { border-color: var(--accent); outline: none; }
.bk-type b { font-size: 1.08rem; }
.bk-type span { color: var(--muted); font-size: .94rem; }
.bk-type small { color: var(--faint); font-size: .8rem; }
.k-repair { border-left-color: var(--accent) !important; }
.k-pickup { border-left-color: var(--info) !important; }
.k-combo { border-left-color: transparent !important; background: linear-gradient(to bottom, var(--info) 0 50%, var(--accent) 50% 100%) 0 0 / 4px 100% no-repeat border-box, var(--surface) !important; }
.bk-back { font: inherit; font-size: .9rem; background: none; border: 0; color: var(--accent); padding: 4px 0; margin-bottom: 6px; cursor: pointer; }
.bk-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; margin: 16px 0 8px; }
.bk-days { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bk-month { flex-basis: 100%; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.bk-day { font: inherit; width: 54px; padding: 6px 0; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: grid; line-height: 1.2; }
.bk-day small { font-size: .74rem; color: var(--muted); }
.bk-day.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.bk-day.on small { color: var(--accent-ink); opacity: .85; }
.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.bk-time { font: inherit; font-weight: 600; padding: 11px 0; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; font-variant-numeric: tabular-nums; }
.bk-time:hover, .bk-time:focus-visible { border-color: var(--accent); color: var(--accent-strong); outline: none; }
.bk-summary { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--border-strong); border-radius: 12px; padding: 12px 16px; display: grid; gap: 2px; margin-bottom: 16px; }
.bk-summary span { color: var(--muted); font-size: .92rem; }
.bk-summary em { font-style: normal; font-size: .92rem; margin-top: 4px; white-space: pre-line; }
.bk-summary.off { opacity: .6; text-decoration: line-through; }
.bk-form { display: grid; gap: 14px; }
.bk-form label { display: block; font-size: .9rem; font-weight: 600; }
.bk-form label > input, .bk-form label > textarea { margin-top: 5px; display: block; }
.bk-form label > small { display: block; margin-top: 4px; }
.bk-flabel { display: block; font-size: .9rem; font-weight: 600; margin: 10px 0 6px; }
.bk-flabel em { font-weight: 400; color: var(--faint); font-style: normal; }
.bk-pick { display: inline-block !important; border: 1px dashed var(--accent); color: var(--accent); border-radius: 10px; padding: 9px 14px; cursor: pointer; font-weight: 600; margin: 0 0 8px !important; }
.bk-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bk-form label em { font-weight: 400; color: var(--faint); font-style: normal; }
.bk-form small { font-weight: 400; color: var(--faint); font-size: .8rem; }
input, textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; padding: 11px 12px; width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
textarea { resize: vertical; }
input[type=file] { padding: 8px; font-size: .9rem; }
.bk-more { background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 12px; padding: 4px 14px; }
.bk-more[open] { padding-bottom: 14px; }
.bk-more summary { cursor: pointer; padding: 10px 0; font-weight: 600; color: var(--accent); list-style: none; }
.bk-more summary::-webkit-details-marker { display: none; }
.bk-more summary::before { content: '+ '; }
.bk-more[open] summary::before { content: '– '; }
.bk-more label { margin-top: 10px; }
.bk-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.bk-thumbs span { position: relative; }
.bk-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; display: block; }
.bk-thumbs button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--text); color: var(--bg); cursor: pointer; line-height: 1; }
.bk-check { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px !important; font-weight: 400 !important; }
.bk-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-go, .bk-btn { font: inherit; font-weight: 700; font-size: 1rem; border: 0; border-radius: 12px; padding: 14px 18px; background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
.bk-go { width: 100%; }
.bk-go:disabled { opacity: .6; }
.bk-btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.bk-btn.danger { background: var(--bad); color: #fff; }
.bk-actions, .bk-sure { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.bk-sure p { flex-basis: 100%; margin: 8px 0 0; font-weight: 600; }
.bk-err { background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 10px 12px; margin: 0; }
.bk-ok { background: var(--good-soft); color: var(--good); border-radius: 10px; padding: 10px 12px; }
.bk-fine { font-size: .84rem; color: var(--muted); margin: 14px 0 0; }
.bk-done { text-align: center; padding: 20px 0; }
.bk-check-big { width: 64px; height: 64px; border-radius: 50%; background: var(--good-soft); color: var(--good); font-size: 34px; line-height: 64px; margin: 0 auto 10px; }
.bk-adr { white-space: pre-line; }
.bk-nl { align-items: flex-start !important; }
.bk-nl input { margin-top: 2px; flex: none; }
.bk-where { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: .9rem; margin: 0 0 16px; padding: 4px 10px 4px 6px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); }
.bk-where svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.bk-where:hover { color: var(--accent-strong); border-color: var(--accent); }
/* Instrumente / Geräte */
.bk-h3 { font-size: 1.05rem; margin: 10px 0 -4px; }
.bk-items { display: grid; gap: 12px; }
.bk-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px 4px; display: grid; gap: 10px; }
.bk-item-h { display: flex; justify-content: space-between; align-items: center; font-size: .92rem; }
.bk-x { font: inherit; font-size: .85rem; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 4px 0; }
.bk-kinds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bk-kind { font: inherit; font-size: .92rem; font-weight: 600; padding: 10px 4px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.bk-kind.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.bk-item .bk-flabel { margin-top: 0; }
.bk-add { font: inherit; font-weight: 600; color: var(--accent); background: var(--surface); border: 1px dashed var(--accent); border-radius: 12px; padding: 12px; cursor: pointer; }
@media (max-width: 380px) { .bk-kinds { grid-template-columns: repeat(2, 1fr); } }
