@font-face {
  font-family: "Playfair Display";
  src: url(fonts/playfair-display.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url(fonts/source-sans-3.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* Farben nach Vorgabe LiLa Momente:
   helle Flächen #F9ECE5 · aktive Flächen #6C10B9 · Akzent/Hover #8915E8 */
:root {
  --accent: #8915e8;
  --active: #6c10b9;
  --plum: #5c2787;
  --ink: #1f0062;
  --light: #f9ece5;
  --light-2: #f1dccf;
  --white: #fff;
  --muted: #6b5a86;
  --line: #eedcd2;
  --ok: #2e8b57;
  --err: #b3261e;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(31, 0, 98, .06), 0 12px 32px -12px rgba(108, 16, 185, .28);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.5 var(--sans);
  color: var(--ink);
  background: var(--light);
}
body.transparent { background: transparent; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--active); }
[hidden] { display: none !important; }

.booking { max-width: 1040px; margin: 0 auto; padding: 32px 16px 48px; }

/* ---------- Kopf ---------- */
.bk-head { text-align: center; margin-bottom: 20px; }
.bk-head h1 { font: 500 clamp(30px, 5vw, 44px)/1.15 var(--serif); margin: 6px 0 6px; color: var(--active); }
.bk-head p { margin: 0; color: var(--muted); }
.heart { width: 30px; height: 30px; fill: var(--accent); }
.heart.big { width: 64px; height: 64px; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(1); } }

/* ---------- Schritte ---------- */
.steps { display: flex; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.steps li {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  font-size: 15px; color: var(--muted); background: rgba(255, 255, 255, .6);
}
.steps span {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--light-2); font-weight: 700; font-size: 14px;
}
.steps li.on { color: var(--white); background: var(--active); }
.steps li.on span { background: var(--white); color: var(--active); }
.steps li.done span { background: var(--active); color: var(--white); }

/* ---------- Karten / Layout ---------- */
.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
h2, h3 { margin: 0; }
h2 { font: 500 24px/1.2 var(--serif); }
h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); margin-bottom: 10px; }
h3 small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 4px; }
.muted { color: var(--muted); margin: 0; font-size: 15px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--light); color: var(--active); font-size: 22px; line-height: 1;
  display: grid; place-items: center; transition: background .15s, transform .1s;
}
.icon-btn:hover:not(:disabled) { background: var(--light-2); }
.icon-btn:active:not(:disabled) { transform: scale(.94); }
.icon-btn:disabled { opacity: .35; cursor: default; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Kalender ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-head h2 { font-size: 22px; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal-dow { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.day {
  aspect-ratio: 1; border: 0; border-radius: 14px; background: transparent;
  font-size: 16px; color: #b9aecb; cursor: default; position: relative;
}
.day.free { color: var(--ink); background: var(--light); cursor: pointer; font-weight: 600; transition: background .15s, transform .1s; }
.day.free:hover { background: var(--light-2); }
.day.free:active { transform: scale(.95); }
.day.today::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px;
  margin-left: -2px; border-radius: 50%; background: currentColor;
}
.day.sel, .day.sel:hover { background: var(--active); color: var(--white); box-shadow: 0 6px 16px -6px var(--active); }
.cal-grid.loading { opacity: .5; }
.cal-legend { display: flex; align-items: center; gap: 6px; margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--light); }
.dot.sel { background: var(--active); margin-left: 12px; }

/* ---------- Optionen ---------- */
.opts { display: flex; flex-direction: column; gap: 22px; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper output { font: 600 28px/1 var(--serif); min-width: 28px; text-align: center; color: var(--active); }
.stepper-note { font-size: 14px; color: var(--muted); margin-left: 4px; }

.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chip, .slot {
  border: 2px solid var(--line); background: var(--white); border-radius: 14px;
  padding: 8px 6px; cursor: pointer; text-align: center; transition: border-color .15s, background .15s, color .15s;
}
.chip b { display: block; font-size: 17px; }
.chip span { font-size: 13px; color: var(--muted); }
.chip:hover, .slot:hover { border-color: var(--light-2); background: #fdf7f3; }
.chip[aria-checked="true"], .slot[aria-pressed="true"] { border-color: var(--active); background: var(--active); color: var(--white); }
.chip[aria-checked="true"] span { color: rgba(255, 255, 255, .85); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; max-height: 236px; overflow-y: auto; padding: 2px; }
.slots .muted { grid-column: 1 / -1; }
.slot { font-weight: 600; font-variant-numeric: tabular-nums; padding: 8px 4px; }

.sum {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0 -24px -24px; padding: 18px 24px; border-radius: 0 0 var(--radius) var(--radius);
  background: var(--light);
}
.price { font: 600 34px/1 var(--serif); color: var(--active); font-variant-numeric: tabular-nums; }

.btn {
  border: 0; border-radius: 999px; padding: 13px 28px; cursor: pointer; font-weight: 700; white-space: nowrap;
  background: var(--active); color: var(--white); box-shadow: 0 8px 20px -8px var(--active);
  transition: background .15s, transform .1s, opacity .15s;
}
.btn:hover:not(:disabled) { background: var(--accent); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: default; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--active); box-shadow: inset 0 0 0 2px var(--light-2); }
.btn.ghost:hover { background: var(--light); }

/* ---------- Preisübersicht ---------- */
.matrix { margin-top: 20px; padding: 0; }
.matrix summary { padding: 18px 24px; cursor: pointer; font: 500 20px var(--serif); color: var(--active); list-style: none; }
.matrix summary::-webkit-details-marker { display: none; }
.matrix summary::after { content: "+"; float: right; font-family: var(--sans); color: var(--accent); }
.matrix[open] summary::after { content: "−"; }
.table-scroll { overflow-x: auto; padding: 0 24px 20px; }
.matrix table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: 15px; }
.matrix th, .matrix td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.matrix th:first-child { text-align: left; }
.matrix thead th { color: var(--plum); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.matrix td.hit { background: var(--active); color: var(--white); font-weight: 700; border-radius: 8px; }

/* ---------- Formular ---------- */
.form-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.recap h2 { margin-bottom: 14px; }
.recap dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.recap dt { color: var(--muted); }
.recap dd { margin: 0; font-weight: 600; }
.recap .total { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--light-2); display: flex; justify-content: space-between; align-items: baseline; }
.recap .total b { font: 600 30px var(--serif); color: var(--active); }

.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 15px; font-weight: 600; color: var(--plum); }
.form input:not([type=checkbox]), .form textarea, .admin input, .admin textarea {
  border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--white);
  font-weight: 400; color: var(--ink); transition: border-color .15s;
}
.form input:focus, .form textarea:focus, .admin input:focus { outline: none; border-color: var(--accent); }
.form textarea { resize: vertical; }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--ink); }
.form .check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--active); flex: none; }
.form .invalid { border-color: var(--err) !important; }
.hp { position: absolute !important; left: -9999px; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }

.msg { margin: 0; padding: 10px 14px; border-radius: 12px; background: #e8f5ee; color: var(--ok); }
.msg.err { background: #fbeaea; color: var(--err); }

/* ---------- Fertig ---------- */
.done { text-align: center; padding: 48px 24px; }
.done h2 { font-size: 34px; margin: 10px 0; color: var(--active); }
.done p { max-width: 520px; margin: 0 auto 24px; color: var(--muted); }

/* ---------- Ergänzungen Formular / Zahlung ---------- */
a.btn { display: inline-block; text-decoration: none; }
#step1 > .msg { margin-bottom: 16px; }
.form .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; }
.form .two.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.form label .hint { font-weight: 400; color: var(--muted); font-size: 14px; line-height: 1.4; }

.form .pay-info { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--light); font-size: 15px; }
.form .pay-info b { color: var(--plum); }
.form .pay-info span { color: var(--muted); }

.done-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.bk-foot { text-align: center; margin-top: 28px; font-size: 14px; color: var(--muted); }
.bk-foot a { color: var(--muted); }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .booking { padding-top: 20px; }
  .grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 18px; }
  .sum { margin: 0 -18px -18px; padding: 16px 18px; }
  .table-scroll { padding: 0 18px 18px; }
  .steps li { padding-right: 10px; font-size: 14px; }
  .day { border-radius: 10px; font-size: 15px; }
  .sum .btn { padding: 12px 20px; }
  .price { font-size: 30px; }
}

/* ---------- Admin ---------- */
.admin { background: var(--light); }
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 32px 16px; }
.admin h1 { font: 500 34px var(--serif); color: var(--active); margin: 0 0 16px; }
.admin h2 { margin: 32px 0 6px; color: var(--active); }
.admin .top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.admin nav { display: flex; gap: 6px; }
.admin nav a { padding: 6px 14px; border-radius: 999px; text-decoration: none; background: var(--white); }
.admin nav a.on { background: var(--active); color: var(--white); }
.admin .msg { margin-bottom: 16px; }
.admin .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.admin button { border: 0; border-radius: 999px; padding: 10px 20px; background: var(--active); color: var(--white); font-weight: 700; cursor: pointer; }
.admin button.ghost { background: var(--light); color: var(--active); padding: 6px 14px; font-size: 14px; }
.admin .table { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.admin table { border-collapse: collapse; width: 100%; font-size: 15px; }
.admin th, .admin td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.admin th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--plum); }
.admin tr.off td { opacity: .45; text-decoration: line-through; }
.admin tr.off td:last-child { text-decoration: none; opacity: 1; }
.admin td.note { max-width: 260px; color: var(--muted); }
.admin .tag { font-size: 13px; padding: 2px 10px; border-radius: 999px; background: #fbeaea; color: var(--err); }
.admin .empty { color: var(--muted); text-align: center; padding: 24px; }
.admin .hint { color: var(--muted); margin: 0; }
.admin .panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; margin-bottom: 8px; }
.admin .panel h2 { margin-top: 0; }
.admin .open-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 14px; }
.admin .open-form > label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; color: var(--plum); }
.admin .wd { border: 0; padding: 0; margin: 0; display: flex; gap: 6px; align-items: flex-end; }
.admin .wd legend { font-size: 14px; font-weight: 600; color: var(--plum); padding: 0; margin-bottom: 4px; }
.admin .wd label { cursor: pointer; }
.admin .wd input { position: absolute; opacity: 0; }
.admin .wd span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--light); font-weight: 600; }
.admin .wd input:checked + span { background: var(--active); color: var(--white); }
.admin .wd input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.admin .actions { display: flex; gap: 8px; }
.admin .wins { display: flex; flex-wrap: wrap; gap: 6px; }
.admin .win { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--light); font-variant-numeric: tabular-nums; font-weight: 600; }
.admin .win button { width: 26px; height: 26px; padding: 0; border-radius: 50%; background: var(--white); color: var(--active); font-size: 16px; line-height: 1; }
.admin .win button:hover { background: var(--active); color: var(--white); }
.admin .acts form + form { margin-top: 6px; }
.admin .tag.ok { background: #e8f5ee; color: var(--ok); }
.admin .tag.wait { background: var(--light); color: var(--active); }
.admin form.inline { display: inline; margin: 0; }
.admin button.link { background: var(--white); color: var(--ink); font-weight: 400; padding: 6px 14px; }
.admin .blocks { list-style: none; padding: 0; margin: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.admin .blocks li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.admin .blocks li:last-child { border-bottom: 0; }
.admin pre { background: var(--white); padding: 14px; border-radius: 12px; overflow-x: auto; }
