/* Booking page and admin of samuelnagler.com: same fonts and colours as the site (Assistant / Arapey, black on white, square buttons). */
@font-face { font-family: Assistant; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/raw/8f7d1f17c2ac3abcef5a7d4fd0521e3af21111470a7727763b9780999edeb716.woff2") format("woff2"); }
@font-face { font-family: Assistant; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/raw/8544167430ed9aae627b4b8d6f5ac6fc7f260fced7cd4fda9675704f855cf350.woff2") format("woff2"); }
@font-face { font-family: Arapey; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/raw/76490f6d75439621bd2cd8057285fa67f7e934be1b980879bf51aff84286c708.woff2") format("woff2"); }

:root {
  --fg: #121212; --muted: rgba(18, 18, 18, .62); --line: rgba(18, 18, 18, .14); --soft: #f6f6f4; --bg: #fff;
  --ok: #2f6b3a; --warn: #8a5a00; --bad: #9b2c2c; --info: #2f4f7a;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.6 Assistant, system-ui, sans-serif; letter-spacing: .02em; }
h1, h2, h3 { font-family: Arapey, Georgia, serif; font-weight: 400; letter-spacing: .03em; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-head { display: flex; align-items: center; justify-content: center; position: relative; padding: 18px 16px; border-bottom: 1px solid var(--line); }
.site-head img { width: 90px; height: auto; display: block; }
.site-head .back { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: .9rem; color: var(--muted); text-decoration: none; }
.site-head .back:hover { color: var(--fg); }
main { max-width: 760px; margin: 0 auto; padding: 32px 16px 80px; }
.lead { color: var(--muted); margin: 0 0 28px; }
.site-foot { border-top: 1px solid var(--line); padding: 24px 16px; text-align: center; font-size: .85rem; color: var(--muted); }
.site-foot a { margin: 0 .6em; }

.steps { display: flex; gap: 6px; margin: 0 0 28px; padding: 0; list-style: none; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.steps li { flex: 1; border-top: 2px solid var(--line); padding-top: 6px; }
.steps li[aria-current="step"], .steps li.done { border-color: var(--fg); color: var(--fg); }
.step[hidden] { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 28px; border: 1px solid var(--fg); background: var(--fg); color: #fff; cursor: pointer; text-decoration: none; font-size: 1rem; letter-spacing: .08em; }
.btn:hover { box-shadow: 0 0 0 1px var(--fg); }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--fg); }
.btn--small { min-height: 36px; padding: 0 14px; font-size: .9rem; letter-spacing: .04em; }
.btn--danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.linkbtn { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; color: var(--muted); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.spread { justify-content: space-between; }

.cards { display: grid; gap: 12px; }
.card { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--bg); padding: 18px 20px; cursor: pointer; }
.card:hover, .card[aria-pressed="true"] { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.card h3 { margin: 0 0 4px; }
.card p { margin: 0; color: var(--muted); }
.card .meta { margin-top: 8px; font-size: .9rem; color: var(--fg); }

.summary { background: var(--soft); padding: 14px 18px; margin: 0 0 24px; display: grid; gap: 2px; font-size: .95rem; }
.summary b { font-weight: 700; }

.cal { border: 1px solid var(--line); padding: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head h3 { margin: 0; font-size: 1.2rem; }
.cal-nav { width: 44px; height: 44px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-size: 1.2rem; }
.cal-nav[disabled] { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .dow { font-size: .75rem; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.day { aspect-ratio: 1; min-height: 40px; border: 1px solid transparent; background: none; cursor: pointer; font-weight: 700; position: relative; }
.day::after { content: ""; position: absolute; left: 50%; bottom: 18%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--fg); }
.day:hover { border-color: var(--fg); }
.day[aria-pressed="true"] { background: var(--fg); color: #fff; }
.day[aria-pressed="true"]::after { background: #fff; }
.day[disabled] { font-weight: 400; color: rgba(18, 18, 18, .3); cursor: default; border-color: transparent; }
.day[disabled]::after { display: none; }
.day.today { text-decoration: underline; }
.day.blocked { text-decoration: line-through; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; margin-top: 16px; }
.time { min-height: 44px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.time:hover { border-color: var(--fg); }
.time[aria-pressed="true"] { background: var(--fg); color: #fff; border-color: var(--fg); }
.note { color: var(--muted); font-size: .92rem; }

.field { display: grid; gap: 6px; margin: 0 0 18px; }
.field label, .field legend { font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid rgba(18, 18, 18, .55); border-radius: 0; background: var(--bg);
}
textarea { min-height: 110px; resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.error { color: var(--bad); font-size: .9rem; }
.grid2 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); cursor: pointer; margin-bottom: 8px; }
.choice input { margin-top: .35em; width: 18px; height: 18px; accent-color: var(--fg); }
.choice:has(input:checked) { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { margin-top: .3em; width: 18px; height: 18px; accent-color: var(--fg); flex: none; }
.terms { max-height: 220px; overflow: auto; background: var(--soft); padding: 12px 14px; white-space: pre-wrap; font-size: .9rem; margin-bottom: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border: 1px solid var(--bad); color: var(--bad); padding: 12px 14px; margin: 0 0 18px; }
.alert--info { border-color: var(--line); color: var(--fg); background: var(--soft); }

.done-box { border: 1px solid var(--fg); padding: 22px 20px; }
.done-box h2 { margin-bottom: .3em; }
.code { font: 700 1.4rem/1.2 ui-monospace, Menlo, monospace; letter-spacing: .08em; }
.pay { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.pay dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 10px; align-items: center; }
.pay dt { color: var(--muted); font-size: .9rem; }
.pay dd { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; word-break: break-all; }
.copy { border: 1px solid var(--line); background: var(--bg); padding: 2px 10px; min-height: 32px; cursor: pointer; font-size: .85rem; }
.copy.ok { border-color: var(--ok); color: var(--ok); }
.badge { display: inline-block; padding: 1px 8px; font-size: .78rem; letter-spacing: .06em; border: 1px solid currentColor; white-space: nowrap; }
.s-AWAITING_DEPOSIT { color: var(--warn); } .s-PAYMENT_REPORTED { color: var(--info); } .s-CONFIRMED { color: var(--ok); }
.s-EXPIRED, .s-CANCELLED { color: var(--muted); } .s-COMPLETED { color: var(--fg); } .s-NO_SHOW { color: var(--bad); }
.spinner { opacity: .6; }
@media (max-width: 520px) { .pay dl { grid-template-columns: 1fr; gap: 2px; } .pay dt { margin-top: 10px; } }
.badge--ok { background: var(--ok); border-color: var(--ok); color: #fff; }
dialog.ask { border: 1px solid var(--fg); padding: 22px 20px; width: min(420px, calc(100vw - 32px)); background: var(--bg); color: var(--fg); }
dialog.ask::backdrop { background: rgba(0, 0, 0, .4); }
dialog.ask h3 { margin-bottom: .4em; }
dialog.ask .row { margin-top: 16px; }
.site-head .lang { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: .9rem; letter-spacing: .12em; color: var(--muted); text-decoration: none; }
.site-head .lang:hover { color: var(--fg); }
.infowrap { white-space: normal; }
.info { display: inline-flex; align-items: center; justify-content: center; width: 1.2em; height: 1.2em; margin: 0 .2em; padding: 0; border: 1px solid rgba(18, 18, 18, .3); border-radius: 50%; background: none; color: rgba(18, 18, 18, .55); font: italic 400 .72em Georgia, serif; line-height: 1; cursor: pointer; vertical-align: .08em; }
.info:hover, .info:focus-visible { color: var(--fg); border-color: rgba(18, 18, 18, .6); }
.tip { display: block; margin: 6px 0; padding: 8px 12px; border: 1px solid var(--line); background: var(--soft); font-size: .88rem; }
.tip--terms { white-space: pre-wrap; max-height: 260px; overflow: auto; }
.tip[hidden] { display: none; }

/* ---- site header (same look as the rest of the site) ---- */
.shead-wrap { position: sticky; top: 0; z-index: 30; background: var(--bg); }
.shead-wrap.is-hidden { transform: translateY(-101%); }
.shead-wrap.is-revealing { transition: transform .15s ease-out; }
.shead { position: relative; display: flex; align-items: center; justify-content: center; height: 80px; padding: 10px 30px; border-bottom: 1px solid rgba(18, 18, 18, .08); background: var(--bg); }
.shead__burger { position: absolute; left: 19px; top: 50%; width: 44px; height: 44px; margin-top: -22px; border: 0; background: none; cursor: pointer; padding: 0; }
.shead__burger span, .shead__burger span::before, .shead__burger span::after { position: absolute; left: 11px; width: 22px; height: 1px; background: var(--fg); content: ""; }
.shead__burger span { top: 21px; } .shead__burger span::before { top: -8px; left: 0; } .shead__burger span::after { top: 8px; left: 0; }
.shead__burger[aria-expanded="true"] span { background: transparent; }
.shead__burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); width: 26px; left: -2px; }
.shead__burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); width: 26px; left: -2px; }
.shead__logo { display: block; line-height: 0; }
.shead__logo img { width: 90px; height: auto; display: block; }
.shead__nav, .shead__lang { display: none; }
.shead__drawer { position: absolute; left: 0; right: 0; top: 100%; height: calc(100vh - 80px); height: calc(100dvh - 80px); background: var(--bg); overflow: auto; }
.shead__drawer[hidden] { display: none; }
.shead__drawer .sprachwahl { display: flex; align-items: center; gap: .4rem; padding: 40px 26px 6px; font-size: 13px; letter-spacing: .14em; }
.shead__drawer .sprachwahl a { padding: 8px 4px; color: rgba(18, 18, 18, .5); text-decoration: none; }
.shead__drawer .sprachwahl a[aria-current] { color: var(--fg); }
.shead__drawer .sprachwahl span { opacity: .35; }
.shead__item { display: block; padding: 11px 30px; font-size: 18px; line-height: 1.3; color: var(--fg); text-decoration: none; }
.shead__item.is-current { background: #f5f5f5; }
.shead__item:hover, .shead__item:focus-visible { background: #f5f5f5; }
/* lock scrolling on <html> only: overflow on <body> would make it the scroll container and the sticky header would jump out of view */
.shead-lock { overflow: hidden; }
@media (min-width: 990px) {
  .shead { justify-content: flex-start; height: 100px; padding: 20px 90px; }
  .shead__burger { display: none; }
  .shead__nav { display: flex; gap: 24px; margin-left: 40px; }
  .shead__link { font-size: 14px; letter-spacing: .06em; color: rgba(18, 18, 18, .7); text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
  .shead__link:hover, .shead__link.is-current { color: var(--fg); border-bottom-color: var(--fg); }
  .shead__lang { display: block; margin-left: auto; font-size: 14px; color: var(--fg); text-decoration: none; }
  .shead__drawer { display: none !important; }
}

.prep { list-style: none; margin: 0 0 28px; padding: 0; }
.prep li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.prep li:last-child { border-bottom: 1px solid var(--line); }
.prep b { font-weight: 700; }
.ask-extra { margin: 10px 0 0; }
.ask-extra a { color: var(--fg); text-decoration: underline; }
dialog.ask .lines { margin: 8px 0 0; padding: 0; list-style: none; font-size: .95rem; }
dialog.ask .lines li { padding: 2px 0; }
dialog.ask p { margin: 0 0 6px; }
