/* Hytovia Tools — Buchungsseite. Lädt nach main.css (nutzt dessen Tokens). */

.bk-body { min-height: 100vh; min-height: 100dvh; }
[hidden] { display: none !important; }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav-back { font-size: 13.5px; font-weight: 500; color: var(--text-mute); }
.nav-back:hover { color: var(--text-bright); }

.bk-main { position: relative; z-index: 2; padding: 40px 0 80px; }
@media (min-width: 768px) { .bk-main { padding: 64px 0 100px; } }

.bk-shell {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Intro */
.bk-intro { text-align: center; margin-bottom: 30px; }
.bk-intro .eyebrow { margin: 0 auto 18px; }
.bk-intro h1 {
  font-size: clamp(32px, 6vw, 50px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text-bright);
  margin-bottom: 14px;
}
.bk-intro p {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-mute);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* Step-Rail — Kreise mittig, Linien zwischen den Kreismitten, Labels darunter */
.bk-steps {
  display: flex;
  list-style: none;
  margin: 0 auto 28px;
  max-width: 400px;
  padding: 0;
}
.bk-step {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.bk-step::before {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(-50% + 17px);
  width: calc(100% - 34px);
  height: 2px;
  background: var(--border-strong);
  transition: background 0.35s var(--ease);
}
.bk-step:first-child::before { display: none; }
.bk-step.is-on::before, .bk-step.is-done::before { background: var(--accent-violet); }
.bk-step b {
  position: relative;
  z-index: 1;
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1.5px solid var(--border-strong);
  font-size: 13px; font-weight: 700; color: var(--text-mute);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.bk-step.is-done b { border-color: var(--accent-violet); background: var(--accent-violet); color: #fff; }
.bk-step.is-on b { border-color: var(--accent-violet); background: var(--accent-violet); color: #fff; box-shadow: 0 0 0 5px rgba(139,92,246,.16); }
.bk-step span { font-size: 12.5px; font-weight: 500; color: var(--text-dim); transition: color 0.3s var(--ease); white-space: nowrap; }
.bk-step.is-done span { color: var(--text); }
.bk-step.is-on span { color: var(--text-bright); }

/* Card + Panels */
.bk-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 38px);
  position: relative;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.7);
}
.bk-panel { display: none; }
.bk-panel.is-active { display: block; animation: bkIn 0.5s var(--ease-out) both; }
@keyframes bkIn { from { opacity: 0; transform: translateY(12px); } }

.bk-h { font-size: clamp(20px, 3vw, 26px); font-weight: 700; letter-spacing: -0.02em; color: var(--text-bright); margin-bottom: 6px; }
.bk-sub { font-size: 14px; color: var(--text-mute); margin-bottom: 22px; }
.bk-back {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 13px; color: var(--text-mute); padding: 0; margin-bottom: 16px;
  transition: color 0.2s var(--ease);
}
.bk-back:hover { color: var(--text-bright); }

/* Step 1 — Typen */
.bk-types { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .bk-types { grid-template-columns: 1fr 1fr; } }
.bk-type {
  text-align: left; cursor: pointer; font-family: inherit;
  background: var(--bg-soft); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 22px 20px;
  display: flex; flex-direction: column; gap: 4px; position: relative;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.bk-type:hover { border-color: var(--accent-violet); transform: translateY(-3px); box-shadow: 0 16px 40px -20px rgba(139,92,246,.6); }
.bk-type.is-sel { border-color: var(--accent-violet); background: rgba(139,92,246,.08); }
.bk-type-ic {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(139,92,246,.2), rgba(6,182,212,.15));
  color: var(--accent-violet-bright);
}
.bk-type-t { font-size: 16px; font-weight: 600; color: var(--text-bright); }
.bk-type-d { font-size: 13px; color: var(--text-mute); line-height: 1.45; }
.bk-type-go { position: absolute; top: 22px; right: 20px; color: var(--text-dim); transition: transform 0.2s var(--ease), color 0.2s var(--ease); }
.bk-type:hover .bk-type-go { color: var(--accent-violet-bright); transform: translateX(4px); }

/* Step 2 — Tage + Slots */
.bk-state { font-size: 14px; color: var(--text-mute); padding: 18px 0; }
.bk-empty a { color: var(--accent-violet-bright); border-bottom: 1px solid var(--border-hover); }
.bk-days {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.bk-days::-webkit-scrollbar { height: 6px; }
.bk-days::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
.bk-day {
  flex: 0 0 auto; cursor: pointer; font-family: inherit; text-align: center;
  background: var(--bg-soft); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 9px 14px; min-width: 78px;
  display: flex; flex-direction: column; gap: 2px;
  transition: all 0.15s var(--ease);
}
.bk-day:hover { border-color: var(--border-hover); }
.bk-day.is-sel { border-color: var(--accent-violet); background: rgba(139,92,246,.1); }
.bk-day-lbl { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }
.bk-day.is-sel .bk-day-lbl { color: var(--text-bright); }
.bk-day-n { font-size: 10.5px; color: var(--text-dim); font-family: var(--mono); }

.bk-slots {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 8px; margin-top: 6px;
}
.bk-slot {
  cursor: pointer; font-family: var(--mono); font-size: 13.5px;
  background: var(--bg-soft); border: 1px solid var(--border-strong);
  border-radius: 9px; padding: 11px 6px; color: var(--text);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), transform 0.1s var(--ease), color 0.15s var(--ease);
  animation: bkPop 0.4s var(--ease-out) both;
}
.bk-slot:hover { border-color: var(--accent-violet); color: var(--text-bright); background: rgba(139,92,246,.1); transform: translateY(-1px); }
@keyframes bkPop { from { opacity: 0; transform: translateY(8px) scale(0.96); } }

/* Step 3 — Summary + Form */
.bk-summary {
  display: flex; align-items: center; gap: 14px;
  background: rgba(139,92,246,.08); border: 1px solid rgba(139,92,246,.3);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 22px;
}
.bk-sum-ic {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
  color: #fff; font-size: 15px;
}
.bk-sum-txt { display: flex; flex-direction: column; font-size: 14.5px; color: var(--text); line-height: 1.4; }
.bk-sum-txt strong { color: var(--text-bright); font-weight: 600; }
.bk-sum-type { font-size: 12px; color: var(--accent-violet-bright); margin-top: 2px; }
.bk-sum-edit {
  margin-left: auto; background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 12.5px; color: var(--text-mute); text-decoration: underline; text-underline-offset: 2px;
}
.bk-sum-edit:hover { color: var(--text-bright); }

.bk-form { display: flex; flex-direction: column; gap: 14px; }
.bk-grid2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .bk-grid2 { grid-template-columns: 1fr 1fr; } }
.bk-field { display: flex; flex-direction: column; gap: 6px; }
.bk-field label { font-size: 13px; font-weight: 500; color: var(--text); }
.bk-opt { color: var(--text-dim); font-weight: 400; }
.bk-field input, .bk-field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--text-bright);
  background: var(--bg-soft); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 12px 13px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.bk-field textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
.bk-field input::placeholder, .bk-field textarea::placeholder { color: var(--text-dim); }
.bk-field input:focus, .bk-field textarea:focus {
  outline: none; border-color: var(--accent-violet); box-shadow: 0 0 0 3px rgba(139,92,246,.15);
}
.bk-field.has-err input, .bk-field.has-err textarea { border-color: #f87171; }
.bk-err { font-size: 12px; color: #f87171; min-height: 0; }
.bk-field.has-err .bk-err { min-height: 14px; }

.bk-submit { width: 100%; margin-top: 6px; }
.bk-submit.is-loading { opacity: 0.7; cursor: progress; }
.bk-submit-arrow { transition: transform 0.2s var(--ease); }
.bk-submit:hover .bk-submit-arrow { transform: translateX(4px); }
.bk-formnote { font-size: 12.5px; color: var(--text-dim); line-height: 1.55; text-align: center; margin: 2px 0 0; }
.bk-formerr { color: #f87171; text-align: center; padding: 6px 0 0; font-size: 13.5px; }

/* Success */
.bk-done { text-align: center; padding: 14px 0 8px; }
.bk-check {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
  box-shadow: 0 16px 44px -12px rgba(139,92,246,.7);
  animation: bkCheck 0.55s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes bkCheck { from { opacity: 0; transform: scale(0.4); } }
.bk-done-text { font-size: 15px; color: var(--text-mute); line-height: 1.6; max-width: 440px; margin: 0 auto 24px; }

.bk-foot { text-align: center; font-size: 12px; color: var(--text-dim); margin-top: 26px; }
.bk-foot a { color: var(--text-mute); }
.bk-foot a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .bk-panel.is-active, .bk-slot, .bk-check { animation: none; }
}

/* ════ v8 — extra Politur ════ */
.bk-type-ic { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.bk-type:hover .bk-type-ic { transform: translateY(-4px) scale(1.07); box-shadow: 0 12px 26px -10px rgba(139,92,246,.7); }
.bk-card { box-shadow: 0 30px 80px -40px rgba(0,0,0,.7), 0 0 70px -34px rgba(139,92,246,.28); }
.bk-day { transition: border-color .15s var(--ease), background .15s var(--ease), transform .15s var(--ease); }
.bk-day:hover { transform: translateY(-2px); }
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.6) 50%, transparent 80%);
  transform: translateX(-130%) skewX(-16deg); transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(130%) skewX(-16deg); }
@media (prefers-reduced-motion: no-preference) {
  .bk-step.is-on b { box-shadow: 0 0 0 5px rgba(139,92,246,.16), 0 0 20px -2px rgba(139,92,246,.65); }
  .bk-intro .eyebrow .dot { box-shadow: 0 0 12px rgba(74,222,128,.8); }
}
