/* NURCAN – Online-Terminbuchung (Grundlage: Buchungssystem Ma Jolie, angepasst an Nurcans Farben und Schriften).
   Lädt nach ../assets/css/style.css und nutzt dessen Farben (--cream, --ink, --taupe …). */
:root {
  --paper: var(--white);
  --ivory: var(--cream);
  --sand: var(--beige);
  --gutter: 20px;
}
body.bk-seite { min-height: 100vh; display: flex; flex-direction: column; }
.bk-seite main { flex: 1; min-height: 100vh; min-height: 100svh; }  /* Fuß erst nach dem Scrollen, kein dunkler Streifen über der Leiste */

/* ---------- schlanker Kopf und Fuß ---------- */
.bk-kopf { border-bottom: 1px solid var(--line); background: rgba(247, 242, 236, 0.92); position: sticky; top: 0; z-index: 30; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bk-kopf-innen { max-width: 1240px; margin: 0 auto; padding: 14px var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.bk-kopf .logo { grid-column: 2; }
.bk-zurueck { grid-column: 1; justify-self: start; font-size: 0.85rem; color: var(--taupe-dark); }
.bk-zurueck:hover { color: var(--ink); }
.bk-kontakt { grid-column: 3; justify-self: end; font-size: 0.85rem; color: var(--taupe-dark); }
.bk-fuss { border-top: 1px solid var(--line); padding: 22px var(--gutter); font-size: 0.82rem; color: var(--muted); text-align: center; }
.bk-fuss nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: 6px; }
.bk-fuss a:hover { color: var(--ink); }

/* ---------- Grundaufbau ---------- */
.booking { padding: clamp(34px, 6vw, 70px) 0 170px; }
.booking-wrap { max-width: 980px; margin: 0 auto; padding: 0 var(--gutter); }
.booking-head { text-align: center; margin-bottom: clamp(26px, 4vw, 40px); scroll-margin-top: 110px; }
.booking-head .h2 { margin: 10px 0 26px; }
.booking-steps { list-style: none; padding: 0; margin: 0 auto; display: flex; justify-content: center; gap: clamp(14px, 4vw, 44px); }
.booking-steps li { display: flex; align-items: center; gap: 10px; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.booking-steps span { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 0.8rem; letter-spacing: 0; background: var(--white); }
.booking-steps li.is-active { color: var(--ink); }
.booking-steps li.is-active span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.booking-steps li.is-done span { background: var(--beige); border-color: var(--beige); color: var(--ink); }
.booking-step { display: none; }
.booking-step.is-active { display: block; animation: bkRein 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes bkRein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .booking-step.is-active { animation: none; } }
.booking-hint { text-align: center; color: var(--muted); margin: 0 0 18px; }
.booking-error { background: #f6e4df; border: 1px solid #e7c3b8; color: #7a2e1f; padding: 14px 18px; margin: 0 0 22px; text-align: center; border-radius: var(--r-sm); }
.bk-loading { color: var(--muted); text-align: center; padding: 20px 0; margin: 0; }

/* ---------- Schritt 1: Suche und Kategorien ---------- */
.bk-suche { position: relative; max-width: 560px; margin: 0 auto 22px; }
.bk-suche input {
  width: 100%; min-height: 54px; padding: 0 20px 0 50px; border: 1px solid var(--beige-2); border-radius: var(--pill);
  background: var(--white); font: inherit; font-size: 1rem; color: var(--ink); outline: none;
}
.bk-suche input:focus { border-color: var(--ink); }
.bk-suche svg { position: absolute; left: 19px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--taupe); pointer-events: none; }
.bk-leistungen { display: grid; gap: 12px; }
.bk-haupt { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 6px; }
.bk-haupt-knopf {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 84px; padding: 14px 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; font: inherit; color: var(--ink);
  text-align: center; transition: border-color 0.2s, background-color 0.2s, transform 0.15s;
}
.bk-haupt-knopf strong { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.1; }
.bk-haupt-knopf small { font-size: 0.75rem; color: var(--muted); }
.bk-haupt-knopf:hover { border-color: var(--taupe); }
.bk-haupt-knopf:active { transform: scale(0.97); }
.bk-haupt-knopf.is-aktiv { background: var(--btn-bg, #dccbb7); border-color: var(--btn-bg, #dccbb7); color: var(--btn-text, #3a2a1f); }
.bk-haupt-knopf.is-aktiv small { color: inherit; opacity: 0.8; }
.bk-haupt-knopf.hat-auswahl small { color: var(--ink); font-weight: 500; }
.bk-haupt-knopf:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bk-haupt-hinweis { margin: 4px 0 0; text-align: center; color: var(--muted); font-size: 0.9rem; }
.bk-haupt-hinweis[hidden], .bk-haupt-inhalt[hidden] { display: none; }
.bk-haupt-inhalt { display: grid; gap: 12px; }
@media (max-width: 720px) {
  .bk-haupt { grid-template-columns: repeat(6, 1fr); }
  .bk-haupt-knopf { grid-column: span 2; min-height: 74px; }
  .bk-haupt-knopf:nth-child(4), .bk-haupt-knopf:nth-child(5) { grid-column: span 3; }
  .bk-haupt-knopf strong { font-size: 1.15rem; }
}
.bk-group { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.bk-group-kopf {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px;
  background: none; border: 0; cursor: pointer; font: inherit; color: var(--ink); text-align: left;
}
.bk-group-kopf strong { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.15; }
.bk-group-kopf small { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.bk-group-kopf .bk-zahl { margin-left: auto; padding: 3px 10px; border-radius: var(--pill); background: var(--ink); color: var(--cream); font-size: 0.75rem; }
.bk-group-kopf .bk-zahl[hidden] { display: none; }
.bk-pfeil { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform 0.25s, background 0.2s; }
.bk-pfeil svg { width: 14px; height: 14px; }
.bk-group.is-offen .bk-pfeil { transform: rotate(180deg); background: var(--cream); }
.bk-group-inhalt { display: none; padding: 0 14px 14px; }
.bk-group.is-offen .bk-group-inhalt { display: block; }
.bk-group[hidden] { display: none; }

.bk-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; margin-bottom: 8px; transition: border-color 0.2s, background 0.2s;
}
.bk-item[hidden] { display: none; }
.bk-item:hover { border-color: var(--taupe); }
.bk-item:has(input:checked) { border-color: var(--ink); background: var(--cream); }
.bk-item input, .bk-consent input {
  appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 1px solid var(--taupe); border-radius: 6px; background: var(--white);
  display: grid; place-items: center; cursor: pointer;
}
.bk-item input::after, .bk-consent input::after { content: ""; width: 10px; height: 5px; border: solid #fff; border-width: 0 0 1.8px 1.8px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.bk-item input:checked, .bk-consent input:checked { background: var(--ink); border-color: var(--ink); }
.bk-item input:checked::after, .bk-consent input:checked::after { opacity: 1; }
.bk-item input:focus-visible, .bk-consent input:focus-visible { outline: 2px solid var(--taupe); outline-offset: 2px; }
.bk-item-main strong { display: block; font-weight: 500; font-size: 1.02rem; line-height: 1.3; }
.bk-item-main small { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.bk-item-meta { text-align: right; white-space: nowrap; }
.bk-item-meta b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1.2; }
.bk-item-meta small { color: var(--muted); font-size: 0.8rem; }

/* Behandlung mit Auswahl (z. B. ohne / inkl. Farbe): Möglichkeiten immer sichtbar */
.bk-karte { margin-bottom: 8px; }
.bk-karte[hidden] { display: none; }
.bk-karte > .bk-item { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.bk-optionen { background: var(--white); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-sm) var(--r-sm); padding: 2px 18px 6px 56px; transition: border-color 0.2s, background 0.2s; }
.bk-karte:hover > .bk-item, .bk-karte:hover > .bk-optionen { border-color: var(--taupe); }
.bk-karte:has(.bk-item input:checked) > .bk-item, .bk-karte:has(.bk-item input:checked) > .bk-optionen { border-color: var(--ink); background: var(--cream); }
.bk-option { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.bk-option:first-child { border-top: 1px dashed var(--line); }
.bk-option input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border: 1px solid var(--taupe); border-radius: 50%; background: var(--white); cursor: pointer; }
.bk-option input:checked { border: 6px solid var(--ink); }
.bk-option strong { display: block; font-weight: 500; font-size: 0.98rem; }
.bk-option span small { display: block; color: var(--muted); font-size: 0.82rem; }
.bk-option em { font-style: normal; text-align: right; font-family: var(--serif); font-weight: 500; font-size: 1.2rem; white-space: nowrap; }
.bk-option em small { display: block; font-family: var(--sans); font-size: 0.78rem; color: var(--muted); }
.bk-leer { text-align: center; color: var(--muted); padding: 24px 0; }

/* ---------- Schritt 2: Kalender und Uhrzeiten ---------- */
.booking-step[data-step="2"].is-active { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(22px, 4vw, 44px); align-items: start; }
.bk-cal { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bk-cal-head strong { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; }
.bk-cal-nav { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer; font-size: 1.4rem; line-height: 1; color: var(--ink); }
.bk-cal-nav:hover:not(:disabled) { border-color: var(--ink); }
.bk-cal-nav:disabled { opacity: 0.3; cursor: default; }
.bk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.bk-cal-wd span { text-align: center; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; }
.bk-cal-loading { grid-column: 1 / -1; }
.bk-day { aspect-ratio: 1; border: 1px solid transparent; border-radius: 12px; background: none; font: inherit; font-size: 1rem; color: #bcb0a5; cursor: default; }
.bk-day.is-frei { background: var(--cream); color: var(--ink); cursor: pointer; border-color: var(--line); font-weight: 500; }
.bk-day.is-frei:hover { border-color: var(--ink); }
.bk-day.is-selected { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.bk-day.is-ausgebucht, .bk-day.is-geschlossen { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, 0.15); }
.bk-cal-legend { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 0.8rem; color: var(--muted); }
.bk-cal-legend i { width: 14px; height: 14px; display: inline-block; border: 1px solid var(--line); border-radius: 4px; }
.bk-cal-legend .lg-frei { background: var(--cream); } .bk-cal-legend .lg-voll { margin-left: 12px; }
.bk-slots-title { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 6px 0 16px; }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; scroll-margin-top: 110px; }
.bk-slot { min-height: 50px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--white); font: inherit; font-size: 1rem; cursor: pointer; color: var(--ink); }
.bk-slot:hover { border-color: var(--ink); }
.bk-slot.is-selected { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ---------- Schritt 3: Daten ---------- */
.bk-form { max-width: 640px; margin: 0 auto; }
.bk-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.bk-form-grid label { display: grid; gap: 7px; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--taupe-dark); }
.bk-form-grid label small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.bk-form-grid .full { grid-column: 1 / -1; }
.bk-form-grid input, .bk-form-grid textarea {
  font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--ink);
  background: var(--white); border: 1px solid var(--beige-2); border-radius: var(--r-sm); padding: 13px 16px; min-height: 52px; outline: none; width: 100%;
}
.bk-form-grid input:focus, .bk-form-grid textarea:focus { border-color: var(--ink); }
.bk-hp { position: absolute !important; left: -9999px; }
.bk-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; cursor: pointer; font-size: 0.92rem; line-height: 1.55; color: var(--ink); }
.bk-consent input { margin-top: 1px; }
.bk-consent a, .bk-legal a { color: var(--ink); text-decoration: underline; }
.bk-legal { font-size: 0.85rem; color: var(--muted); margin: 16px 0 0; line-height: 1.6; }

/* ---------- Leiste unten ---------- */
.bk-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(var(--gutter), calc((100vw - 980px) / 2 + var(--gutter)));
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.bk-bar[hidden], .bk-bar [hidden] { display: none !important; }
.bk-bar-info { font-size: 0.92rem; color: var(--muted); line-height: 1.5; }
.bk-bar-info strong { color: var(--ink); font-weight: 500; }
.bk-bar-info span { color: var(--ink); }
.bk-bar-actions { display: flex; gap: 10px; flex: none; }

/* Knöpfe: Hauptknopf im beigen Stil der Webseite (style.css: „kein Schwarz mehr“),
   „Zurück“ weiß mit Rand, damit sofort klar ist, welcher Knopf weiterführt */
.bk-seite .btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; border-radius: var(--pill);
  font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; white-space: nowrap;
}
.bk-seite .btn.ghost { background: var(--white) !important; border: 1px solid var(--beige-2) !important; box-shadow: none; }
.bk-seite .btn.ghost:hover { border-color: var(--ink) !important; }
.bk-seite .btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

/* ---------- Fertig ---------- */
.bk-done { text-align: center; max-width: 560px; margin: 0 auto; }
.bk-done-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--ink); color: var(--cream); display: inline-grid; place-items: center; margin-bottom: 20px; }
.bk-done-icon svg { width: 30px; height: 30px; }
.bk-done .h2 { margin-bottom: 24px; }
.bk-done p { color: var(--muted); margin: 0 0 28px; }
.bk-summary, .storno-card { background: var(--white); border-radius: var(--r); padding: 8px 22px; margin: 0 0 24px; text-align: left; box-shadow: var(--shadow-sm); }
.bk-summary div, .storno-card div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bk-summary div:last-child, .storno-card div:last-child { border-bottom: 0; }
.bk-summary span, .storno-card span { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--taupe-dark); padding-top: 3px; }
.bk-summary strong, .storno-card strong { font-weight: 500; color: var(--ink); }

/* ---------- Absagen / früherer Termin ---------- */
.storno { padding: clamp(40px, 7vw, 80px) 0 80px; }
.storno-wrap { max-width: 640px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.storno .h2 { margin: 10px 0 28px; }
.storno-text { color: var(--muted); margin: 0 0 24px; }
.storno-text a { color: var(--ink); text-decoration: underline; }
.storno-fehler { color: #7a2e1f; }
.wl-box { margin-top: 30px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); text-align: center; }
.wl-box p { color: var(--muted); margin: 0 0 16px; }
.wl-box strong { color: var(--ink); font-weight: 500; }
.umb-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin: 0 0 22px; }

/* ---------- Handy ---------- */
@media (max-width: 900px) {
  .booking-step[data-step="2"].is-active { grid-template-columns: 1fr; }
  .booking-steps li { font-size: 0; gap: 0; }
  .booking-steps li span { font-size: 0.8rem; }
  .booking-steps li.is-active { font-size: 0.6875rem; gap: 8px; }
}
@media (max-width: 600px) {
  .bk-kopf-innen { grid-template-columns: auto 1fr; }
  .bk-kopf .logo { grid-column: 1; justify-self: start; align-items: flex-start; text-align: left; }
  .bk-zurueck { display: none; }
  .bk-kontakt { grid-column: 2; }
  .bk-group-kopf { padding: 16px; }
  .bk-group-inhalt { padding: 0 10px 10px; }
  .bk-item { grid-template-columns: auto 1fr; padding: 14px; }
  .bk-item-meta { grid-column: 2; text-align: left; display: flex; gap: 12px; align-items: baseline; }
  .bk-optionen { padding: 2px 14px 6px; }
  .bk-form-grid { grid-template-columns: 1fr; }
  .bk-cal { padding: 14px; }
  .bk-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .bk-bar-info { text-align: center; }
  .bk-bar-actions .btn { flex: 1; }
  .bk-summary div, .storno-card div { grid-template-columns: 1fr; gap: 2px; }
}
