@font-face { font-family: "Big Shoulders Display"; src: url("fonts/big-shoulders-display-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #f2ebdf; --paper-2: #e7dccb; --ink: #1a1613; --muted: #6b5f55;
  --leather: #4f3220; --leather-hi: #8a5c3b; --line: #d6c8b3; --white: #fbf8f3;
  --ok: #2f5d3a; --bad: #8f2d22;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --sans: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --r: 3px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); }
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
.wrap.wide { max-width: 1180px; }
h1, h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .02em; line-height: 1; margin: 0; }
h1 { font-size: clamp(40px, 8vw, 64px); font-weight: 800; }
h2 { font-size: 26px; font-weight: 700; margin: 36px 0 12px; }
h2 .n { color: var(--leather-hi); margin-right: 8px; }
p { margin: 8px 0; }
.muted { color: var(--muted); font-size: 14px; }
.test { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 4px 8px; border-radius: var(--r); margin-bottom: 14px; }
header.top { border-bottom: 2px solid var(--ink); padding-bottom: 18px; margin-bottom: 8px; }
header.top .addr { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* Leistungen */
.group { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.svc { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; margin: 0 0 6px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); font: inherit; color: inherit; cursor: pointer; min-height: 48px; }
.svc:hover { border-color: var(--leather-hi); }
.svc[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.svc .meta { color: var(--muted); font-size: 14px; white-space: nowrap; }
.svc .price { font-weight: 700; color: var(--ink); margin-left: 10px; }

/* Tage + Zeiten */
.days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.day { flex: 0 0 auto; width: 64px; padding: 8px 0; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); font: inherit; color: inherit; cursor: pointer; }
.day b { display: block; font-family: var(--display); font-size: 24px; line-height: 1.1; }
.day small { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.day[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.day[aria-pressed="true"] small { color: var(--paper-2); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.time { padding: 10px 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); font: inherit; font-variant-numeric: tabular-nums; color: inherit; cursor: pointer; min-height: 44px; }
.time:hover { border-color: var(--leather-hi); }
.time[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.empty { padding: 14px; background: var(--paper-2); border-radius: var(--r); color: var(--muted); }

/* Formular */
label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 4px; }
input, select, textarea { width: 100%; padding: 11px 12px; font: inherit; color: inherit; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); min-height: 46px; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--leather-hi); outline-offset: 1px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; min-height: 48px; background: var(--ink); color: var(--paper); border: 0; border-radius: var(--r); font: 700 14px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--leather); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.small { padding: 8px 12px; min-height: 36px; font-size: 12px; }
.summary { margin-top: 22px; padding: 14px 16px; background: var(--white); border-left: 3px solid var(--ink); }
.msg { margin-top: 12px; padding: 12px 14px; border-radius: var(--r); }
.msg.err { background: #f3dcd6; color: var(--bad); }
.msg.ok { background: #dce8dc; color: var(--ok); }
.done { margin-top: 28px; padding: 22px; background: var(--white); border: 2px solid var(--ink); }
.done h2 { margin-top: 0; }
.hidden, [hidden] { display: none !important; }

/* Admin */
.bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 18px 0; }
.bar.flush { margin: 0; }
.pick { width: auto; min-height: 36px; padding: 6px 8px; }
.bar .nav { display: flex; gap: 6px; align-items: center; }
.bar .date { font-family: var(--display); font-size: 28px; text-transform: uppercase; min-width: 230px; text-align: center; }
.cols { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 12px; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } }
.col h3 { font: 700 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.appt { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: var(--r); padding: 10px 12px; margin-bottom: 8px; }
.appt.online { border-left-color: var(--leather-hi); }
.appt.blocker { border-left-color: var(--muted); background: var(--paper-2); }
.appt.cancelled { opacity: .55; }
.appt.cancelled .who, .appt.cancelled .when { text-decoration: line-through; }
.appt .when { font-weight: 700; font-variant-numeric: tabular-nums; }
.appt .what { font-size: 14px; }
.appt .who { font-size: 14px; color: var(--muted); }
.appt .who a { color: inherit; }
.appt .tags { display: flex; gap: 6px; align-items: center; justify-content: space-between; margin-top: 6px; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-top: 24px; }
.panel h2 { margin-top: 0; font-size: 22px; }
.login { max-width: 380px; margin: 12vh auto 0; }

/* Eingebettet in die Webseite: Überschrift kommt von der Webseite */
.embedded header.top h1, .embedded header.top .addr { display: none; }
.embedded header.top { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.embedded .wrap { padding-top: 16px; padding-bottom: 24px; }
