:root {
  --accent: #b4532a;
  --accent-ink: #fff;
  --bg: #f7f4ef;
  --card: #ffffff;
  --ink: #1f1b16;
  --muted: #6d655b;
  --line: #e6dfd4;
  --soft: #f1ebe2;
  --ok: #2f7d4f;
  --err: #b3261e;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #171512; --card: #211e1a; --ink: #f3eee7; --muted: #a79e92; --line: #38322b; --soft: #2b2722; }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
/* Mobile-Grundausstattung: sofortiges Tippen, kein Text-Markieren auf Knöpfen, Druck-Feedback */
button, a, .chip, .day, .slot { touch-action: manipulation; }
button, .chip, .day, .slot, .btn { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.chip, .day, .slot, .btn { transition: transform 110ms ease-out, background-color 110ms ease-out; }
.chip:active, .day:active, .slot:active, .btn:active:not(:disabled) { transform: scale(.97); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 1ms !important; } }
body {
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
body.embed { background: transparent; }
#page { max-width: 560px; margin: 0 auto; padding: 0 16px 40px; }
#hero { position: relative; padding: 28px 0 18px; }
body.embed #hero { padding-top: 12px; }
#hero h1 { margin: 0; font-size: 1.6rem; letter-spacing: -.01em; }
#hero p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.lang { position: absolute; top: 24px; right: 0; background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 4px 10px; font-size: .8rem; cursor: pointer; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.step-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-width: 46px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.day {
  flex: 0 0 62px; scroll-snap-align: start; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 12px; padding: 8px 0; text-align: center; cursor: pointer; font: inherit;
}
.day small { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; }
.day b { display: block; font-size: 1.2rem; }
.day i { display: block; font-style: normal; font-size: .68rem; color: var(--muted); }
.day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.day[aria-pressed="true"] small, .day[aria-pressed="true"] i { color: var(--accent-ink); }
.day.closed, .day.full, .day.unavailable { opacity: .45; }
.shift { margin-top: 14px; }
.shift h3 { font-size: .9rem; margin: 0 0 8px; color: var(--muted); font-weight: 600; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot { height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.slot:disabled { opacity: .3; cursor: not-allowed; }
.note { background: var(--soft); border-radius: 10px; padding: 10px 12px; color: var(--muted); font-size: .9rem; }
.empty { color: var(--muted); padding: 8px 0; }
label { display: block; font-size: .85rem; font-weight: 600; margin: 12px 0 4px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 12px;
}
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { min-height: 80px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .88rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; border: 0; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; font-size: 1.02rem; cursor: pointer; margin-top: 16px;
  text-decoration: none;
}
.btn.secondary { background: var(--soft); color: var(--ink); }
.btn:disabled { opacity: .5; }
.summary { display: flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 600; }
.summary span { white-space: nowrap; }
.link { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 8px 0; min-height: 36px; text-decoration: underline; }
.error { color: var(--err); margin-top: 10px; font-size: .92rem; }
.success { text-align: center; }
.success .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 6px auto 12px; font-size: 2rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#foot { color: var(--muted); font-size: .78rem; text-align: center; margin-top: 18px; }
#foot a { color: inherit; }
.loading { text-align: center; padding: 40px; color: var(--muted); }
