/* Satoshi (Fontshare, ITF Free Font License) liegt lokal in /static/fonts.
   Fehlen die Dateien, greift die System-Schrift. */
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Variable.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --bg: #FAFAFA;
  --text: #262626;
  --brown: #7A3B3B;
  --brown-dark: #5f2d2d;
  --muted: #6b6b6b;
  --line: #e4e0dd;
  --soft: #f3eeeb;
  --radius: 12px;
  font-family: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 17px; }
a { color: var(--brown); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 1.9rem; margin: 0.6em 0 0.4em; }
h2 { font-size: 1.35rem; margin: 1.6em 0 0.4em; }
h3.sub { font-size: 1.05rem; margin: 1.4em 0 0.6em; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-bottom: 48px; min-height: 60vh; }

header.site { border-bottom: 1px solid var(--line); background: var(--bg); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.brand-name { font-weight: 700; font-size: 1.1rem; }
.brand-sub { color: var(--brown); font-size: 0.88rem; }
.nav-link { font-size: 0.95rem; }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer.site .wrap { display: flex; gap: 20px; padding-top: 18px; padding-bottom: 24px; }
footer.site a { color: var(--muted); }

.lead { font-size: 1.1rem; }
.meta { color: var(--muted); margin: 0.3em 0 0.8em; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.note { display: block; font-size: 0.9rem; color: var(--brown); }
.empty { color: var(--muted); font-style: italic; }
.offer { margin-bottom: 2.4em; }

.btn { display: inline-block; background: var(--brown); color: #fff; border: 0; border-radius: 999px; padding: 10px 20px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; min-height: 44px; line-height: 24px; }
.btn:hover { background: var(--brown-dark); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .time:focus-visible { outline: 3px solid rgba(122,59,59,.35); outline-offset: 2px; }
.btn-big { width: 100%; padding: 14px 20px; font-size: 1.05rem; }
.btn-secondary { background: transparent; color: var(--brown); border: 1.5px solid var(--brown); }
.btn-secondary:hover { background: var(--soft); }
.btn-small { padding: 6px 14px; min-height: 36px; font-size: 0.92rem; }
.btn-danger { background: transparent; color: #a12a2a; border: 1.5px solid #a12a2a; }
.btn-danger:hover { background: #fbeeee; }
button.link { background: none; border: 0; color: var(--brown); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

.slots { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.slot { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.slot .when { flex: 1; display: flex; flex-direction: column; }
.slot .free { color: var(--muted); font-size: 0.92rem; white-space: nowrap; }
.slot.full { opacity: 0.6; }

.single-offers { padding-left: 1.1em; }
.single-offers li { margin-bottom: 0.5em; }
.day { padding: 12px 0; border-bottom: 1px solid var(--line); }
.day-label { font-weight: 600; margin-bottom: 8px; font-size: 1rem; }
.times { display: flex; flex-wrap: wrap; gap: 8px; }
.time { display: inline-flex; flex-direction: column; align-items: center; min-width: 84px; min-height: 44px; justify-content: center;
  padding: 8px 14px; border: 1.5px solid var(--brown); border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.time:hover { background: var(--brown); color: #fff; }
.time small { font-weight: 400; font-size: 0.75rem; }

.summary { background: var(--soft); border-radius: var(--radius); padding: 16px 18px; margin: 12px 0 20px; }
.summary-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }

.form { display: flex; flex-direction: column; gap: 16px; margin: 16px 0; }
.form.narrow { max-width: 360px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.form .opt, .hint { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--text); background: #fff; border: 1.5px solid var(--line);
  border-radius: 10px; padding: 11px 12px; width: 100%; }
input[readonly] { background: var(--soft); color: var(--muted); }
textarea { resize: vertical; }
.form label.check, label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; }
label.check input { width: auto; }
fieldset.choice { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
fieldset.choice legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.radio { flex-direction: row !important; align-items: flex-start; gap: 12px !important; font-weight: 400 !important;
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: #fff; cursor: pointer; }
.radio input { width: auto; margin-top: 4px; accent-color: var(--brown); }
.radio:has(input:checked) { border-color: var(--brown); }
.error { color: #a12a2a; font-weight: 400; font-size: 0.92rem; }
.alert { background: #fbeeee; border-left: 4px solid #a12a2a; padding: 12px 14px; border-radius: 6px; }
.flash { background: #eef6ee; border-left: 4px solid #3b7a45; padding: 10px 14px; border-radius: 6px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cancel-form { margin: 24px 0; }
details { margin: 8px 0; }
details summary { cursor: pointer; color: var(--brown); font-weight: 600; padding: 6px 0; }
details.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 16px; margin: 16px 0; background: #fff; }

/* Admin */
.admin-nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 0.95rem; }
.admin-nav form { margin: 0; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-day h2 { font-size: 1rem; margin: 1.4em 0 0.4em; }
.admin-slots { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.admin-slots li { border-bottom: 1px solid var(--line); }
.admin-slots a { display: flex; gap: 12px; padding: 12px 4px; text-decoration: none; color: var(--text); align-items: baseline; flex-wrap: wrap; }
.admin-slots a:hover { background: var(--soft); }
.admin-slots .t { min-width: 120px; color: var(--muted); }
.admin-slots .n { flex: 1; font-weight: 600; }
.admin-slots .c { color: var(--brown); font-weight: 600; }
.admin-slots li.full .c { color: #3b7a45; }
.admin-slots li.cancelled { opacity: 0.55; }
.admin-slots li.cancelled .n { text-decoration: line-through; }
.bookings { list-style: none; padding: 0; margin: 0; }
.bookings li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.bookings form { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.bookings .msg { background: var(--soft); padding: 6px 10px; border-radius: 8px; margin-top: 6px; white-space: pre-wrap; }
.danger { margin-top: 32px; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  .slot { gap: 10px; }
  .slot .free { font-size: 0.85rem; white-space: normal; text-align: right; max-width: 72px; }
  .slot .btn { padding: 8px 16px; }
  .bookings form { align-items: flex-start; }
}
