/* ===================================================================
   Buchungs-Widget + persistente Conversion-CTAs
   (wird von append_css.py an styles.css angehaengt - Marker: BOOKING-CSS)
   =================================================================== */

/* ---------------------------------------------- Sticky Mobile CTA-Leiste */
.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  display: none;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(253, 249, 247, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--nude-200);
  box-shadow: 0 -6px 24px rgba(36, 28, 27, 0.1);
}
.sticky-cta .btn {
  flex: 1 1 0;
  justify-content: center;
  white-space: nowrap;
  padding-inline: 0.6rem;
}
@media (max-width: 900px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 4.6rem; }
}
@media print { .sticky-cta { display: none; } }

.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--rose-600);
  text-decoration: underline;
  cursor: pointer;
}

/* ---------------------------------------------- Buchungs-Widget */
.booking {
  background: var(--white);
  border: 1px solid var(--nude-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
}

.booking__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  font-size: var(--step--1);
  color: var(--ink-300);
  counter-reset: bstep;
}
.booking__steps li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  counter-increment: bstep;
}
.booking__steps li::before {
  content: counter(bstep);
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--nude-100);
  color: var(--ink-500);
  font-weight: 600;
}
.booking__steps li.is-active { color: var(--ink-900); font-weight: 600; }
.booking__steps li.is-active::before { background: var(--rose-500); color: var(--white); }
.booking__steps li.is-done::before { content: "\2713"; background: var(--nude-200); color: var(--rose-600); }

.booking__status { min-height: 1.5rem; margin: 0 0 var(--space-sm); font-size: var(--step--1); }
.booking__status.is-error {
  color: var(--rose-600);
  background: var(--nude-100);
  border-left: 3px solid var(--rose-400);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
}

.booking__group { border: 0; margin: 0 0 var(--space-md); padding: 0; }
.booking__group legend {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink-900);
  padding: 0;
  margin-bottom: 0.6rem;
}

.booking__service { display: block; margin-bottom: 0.5rem; cursor: pointer; }
.booking__service input { position: absolute; opacity: 0; width: 0; height: 0; }
.booking__service-body {
  display: block;
  border: 1px solid var(--nude-200);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.05rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.booking__service:hover .booking__service-body { border-color: var(--rose-300); background: var(--nude-50); }
.booking__service input:focus-visible + .booking__service-body { outline: 3px solid var(--rose-400); outline-offset: 2px; }
.booking__service input:checked + .booking__service-body {
  border-color: var(--rose-500);
  background: var(--nude-100);
}
.booking__service-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  justify-content: space-between;
  align-items: baseline;
  color: var(--ink-900);
}
.booking__price { color: var(--rose-600); font-weight: 600; white-space: nowrap; }
.booking__meta { display: block; font-size: var(--step--1); color: var(--ink-500); margin-top: 0.15rem; }

.booking__calendar-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.booking__calendar-head { font-weight: 600; color: var(--ink-900); }
.booking__nav { display: flex; gap: 0.4rem; }
.booking__nav button {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--nude-200);
  background: var(--white);
  color: var(--ink-700);
  font-size: 1.1rem;
  cursor: pointer;
}
.booking__nav button:hover { border-color: var(--rose-400); color: var(--rose-600); }

.booking__days {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr));
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}
.booking__day {
  display: grid;
  gap: 0.1rem;
  padding: 0.6rem 0.35rem;
  border: 1px solid var(--nude-200);
  border-radius: var(--radius-md);
  background: var(--white);
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.booking__day:hover { border-color: var(--rose-300); }
.booking__day[aria-pressed="true"] { border-color: var(--rose-500); background: var(--nude-100); }
.booking__day-name { font-size: var(--step--1); color: var(--ink-300); text-transform: uppercase; letter-spacing: 0.06em; }
.booking__day-num { font-family: var(--font-display); font-size: var(--step-2); color: var(--ink-900); }
.booking__day-mon { font-size: var(--step--1); color: var(--ink-500); }
.booking__day-free { font-size: 0.72rem; color: var(--rose-600); }

.booking__times h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.booking__slots { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.booking__slot {
  border: 1px solid var(--nude-200);
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: var(--step--1);
  color: var(--ink-700);
  cursor: pointer;
}
.booking__slot:hover { border-color: var(--rose-400); color: var(--rose-600); }
.booking__slot[aria-pressed="true"] { background: var(--rose-500); border-color: var(--rose-500); color: var(--white); }
.booking__empty { color: var(--ink-500); }

.booking__summary dl { display: grid; gap: 0.35rem; margin: 0 0 var(--space-md); }
.booking__summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed var(--nude-200);
  padding-bottom: 0.35rem;
}
.booking__summary dt { color: var(--ink-500); font-size: var(--step--1); }
.booking__summary dd { margin: 0; color: var(--ink-900); font-weight: 500; text-align: right; }

.booking__fields { display: grid; gap: var(--space-sm); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.booking__field--wide { grid-column: 1 / -1; }
.booking__field label { display: block; font-size: var(--step--1); color: var(--ink-500); margin-bottom: 0.25rem; }
.booking__field input,
.booking__field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink-900);
  background: var(--nude-50);
  border: 1px solid var(--nude-200);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
}
.booking__field input:focus,
.booking__field textarea:focus { outline: 3px solid var(--rose-400); outline-offset: 1px; }
.booking__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-md); }
.booking__actions .btn[disabled] { opacity: 0.45; pointer-events: none; }
.booking__legal { font-size: var(--step--1); color: var(--ink-500); margin-top: var(--space-sm); }

.booking__done { text-align: center; padding-block: var(--space-md); }
.booking__done-icon {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto var(--space-sm);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rose-500);
  color: var(--white);
  font-size: 1.8rem;
}
.booking__done .booking__actions { justify-content: center; }
.booking__code { font-size: var(--step--1); color: var(--ink-500); }
.booking__code code { background: var(--nude-100); padding: 0.1rem 0.4rem; border-radius: 4px; }

.booking[data-offline="true"] .booking__step,
.booking[data-offline="true"] .booking__steps { display: none; }

.booking-fallback {
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--nude-100);
}
.booking-fallback p:last-child { margin-bottom: 0; }

/* ---------------------------------------------- Header-CTA-Gruppe */
.header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  white-space: nowrap;
}
.header-cta .btn { padding: 0.7rem 1.25rem; }
.btn--call { gap: 0.5rem; }
.btn__label-short { display: none; }
@media (max-width: 1240px) {
  .btn--call .btn__phone { display: none; }
  .btn--call { padding-inline: 0.85rem; }
}
@media (max-width: 1080px) {
  .btn__label-long { display: none; }
  .btn__label-short { display: inline; }
}
@media (max-width: 900px) {
  .header-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .header-cta .btn { width: 100%; }
  .btn--call .btn__phone { display: inline; }
  .btn__label-long { display: inline; }
  .btn__label-short { display: none; }
}

/* ---------------------------------------------- Conversion-Bloecke */
.hero__hint {
  margin-top: var(--space-sm);
  font-size: var(--step--1);
  color: var(--ink-500);
  max-width: 46ch;
}
.center-actions,
.page-hero__actions,
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--space-md);
}
.center-actions { justify-content: center; }
.panel-actions { margin-bottom: var(--space-md); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cta-band__actions .btn { flex: 0 0 auto; }
.section-head--center .eyebrow { justify-content: center; }
nav.breadcrumb { font-size: var(--step--1); }
