.bf-section {
  width: min(1040px, 92%);
  margin: 0 auto;
  padding: 4.5rem 0 5rem;
}

.bf-intro h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  color: var(--color-text-main);
}

.bf-intro .gb-tag {
  margin-bottom: 0.7rem;
}

.bf-intro .sp-intro {
  max-width: 760px;
}

.bf-intro .sp-intro + .sp-intro {
  margin-top: -1rem;
}

.bf-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

[data-booking-form-root] {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bf-calendar-heading h2 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.bf-calendar-heading .bf-hint {
  margin: 0;
}

.bf-field-group {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  background: rgba(251, 248, 242, 0.72);
  border: 1px solid rgba(85, 100, 82, 0.22);
  border-radius: 10px;
  padding: clamp(1.1rem, 3vw, 1.75rem);
  box-shadow: 0 8px 24px rgba(47, 42, 38, 0.035);
}

.bf-form-heading {
  padding-bottom: 0.2rem;
}

.bf-form-heading h2 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--color-text-main);
}

.bf-form-heading p {
  max-width: 38rem;
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.bf-form-kicker {
  display: block;
  color: var(--color-accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bf-contact-mini {
  margin-top: 0.5rem;
  border-color: rgba(112, 79, 59, 0.3);
  background: rgba(255, 252, 247, 0.94);
  box-shadow: 0 12px 28px rgba(47, 42, 38, 0.06);
}

.bf-contact-mini .bf-form-heading {
  border-bottom: 1px solid rgba(112, 79, 59, 0.16);
  padding-bottom: 1rem;
}

.bf-contact-full {
  border-color: rgba(85, 100, 82, 0.3);
}

.bf-contact-full .bf-form-heading {
  border-bottom: 1px solid rgba(85, 100, 82, 0.16);
  padding-bottom: 1rem;
}

.bf-booking-choice {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.1rem, 3vw, 1.75rem);
  border: 1px solid rgba(85, 100, 82, 0.36);
  border-radius: 12px;
  background: rgba(246, 248, 242, 0.96);
  box-shadow: 0 14px 34px rgba(47, 42, 38, 0.06);
}

.bf-booking-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.1rem, 3vw, 1.75rem);
  border: 1px solid rgba(85, 100, 82, 0.36);
  border-radius: 12px;
  background: rgba(246, 248, 242, 0.96);
  box-shadow: 0 14px 34px rgba(47, 42, 38, 0.08);
}

.bf-booking-heading {
  padding-bottom: 0.1rem;
}

.bf-booking-box .bf-field--service {
  max-width: none;
}

.bf-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .bf-field-row {
    grid-template-columns: 1fr;
  }
}

.bf-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bf-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-main);
}

.bf-field--service {
  max-width: 720px;
}

.bf-field--service label {
  font-size: 1rem;
}

.bf-field input,
.bf-field select,
.bf-field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(112, 79, 59, 0.38);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-text-main);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.bf-consents {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.bf-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.bf-consent input {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
}

.bf-consent a {
  color: var(--color-accent);
}

.bf-field input:focus,
.bf-field select:focus,
.bf-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(85, 100, 82, 0.14);
  background: #fff;
}

.bf-hint {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 0.25rem 0 0;
}

/* Kalender */

.bf-calendar {
  background: rgba(251, 248, 242, 0.82);
  border: 1px solid rgba(85, 100, 82, 0.22);
  border-radius: 10px;
  padding: clamp(1rem, 3vw, 1.75rem);
  box-shadow: 0 8px 24px rgba(47, 42, 38, 0.035);
}

.bf-month-head,
.bf-week-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.bf-month-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.bf-nav-btn {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(112, 79, 59, 0.32);
  border-radius: 6px;
  width: 2rem;
  height: 2rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-main);
  transition: background-color 160ms ease, border-color 160ms ease;
}

.bf-nav-btn:hover {
  background: #fff;
  border-color: var(--color-accent);
}

.bf-month-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.bf-month-grid {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bf-week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-radius: 8px;
  padding: 0.3rem 0;
  transition: background-color 0.15s ease;
  cursor: default;
}

.bf-week-row--clickable {
  cursor: pointer;
}

.bf-week-row--hover,
.bf-week-row--clickable:hover {
  background: rgba(184, 169, 153, 0.32);
}

.bf-week-row--disabled {
  opacity: 0.55;
}

.bf-day {
  text-align: center;
  padding: 0.45rem 0;
  border-radius: 6px;
  font-size: 0.9rem;
}

.bf-day--muted {
  color: var(--color-text-muted);
  opacity: 0.55;
}

.bf-day--available {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  background: rgba(85, 100, 82, 0.06);
  box-shadow: inset 0 0 0 1px rgba(85, 100, 82, 0.14);
}

/* Wochenansicht */

.bf-week-range {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.bf-back-link {
  background: none;
  border: none;
  color: var(--color-accent);
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
}

.bf-week-grid {
  display: grid;
  grid-template-columns: 4.25rem repeat(7, minmax(5.3rem, 1fr));
  gap: 2px;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.bf-week-day-head {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  padding: 0.25rem 0;
}

.bf-week-time-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.4rem;
}

.bf-slot {
  min-height: 1.8rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.bf-slot--empty {
  background: transparent;
}

.bf-slot--free {
  background: rgba(184, 169, 153, 0.5);
  color: var(--color-text-main);
  cursor: pointer;
}

.bf-slot--free:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.bf-slot--compact {
  min-height: 0;
  font-size: 0.6rem;
  line-height: 1;
  padding: 0.1rem;
}

.bf-slot--selected {
  background: var(--color-accent);
  color: #fff;
}

.bf-week-grid--quarter-hour .bf-slot {
  min-height: 0;
  border-radius: 4px;
  font-size: 0.62rem;
  line-height: 1;
  padding: 0.05rem;
}

/* Zusammengeklappter Slot */

.bf-slot-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  text-align: left;
  background: rgba(251, 248, 242, 0.82);
  border: 1px solid var(--color-accent);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.bf-slot-summary:hover {
  background: #fff;
  box-shadow: 0 5px 16px rgba(47, 42, 38, 0.08);
}

.bf-slot-summary-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.bf-slot-summary-date {
  font-size: 1.1rem;
  font-weight: 600;
}

.bf-slot-summary-change {
  font-size: 0.85rem;
  color: var(--color-accent);
  text-decoration: underline;
}

/* Submit */

.bf-submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.bf-submit-row .gb-button {
  border: 0;
  border-radius: 7px;
  padding: 0.75rem 1.25rem;
  background: var(--color-accent);
  color: #fff;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.bf-submit-row .gb-button:hover {
  background: #435241;
  transform: translateY(-1px);
}

.bf-submit-row .gb-button:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.bf-status {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.bf-status--success {
  background: #e4ede1;
  color: #33502f;
}

.bf-status--error {
  background: #f3ddd9;
  color: #7a2f22;
}

.bf-thanks {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3rem);
  border: 1px solid rgba(85, 100, 82, 0.3);
  border-radius: 10px;
  background: rgba(251, 248, 242, 0.82);
  box-shadow: 0 8px 24px rgba(47, 42, 38, 0.05);
  text-align: center;
}

.bf-thanks-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.5rem;
}

.bf-thanks h2 {
  margin: 0 0 0.75rem;
  color: var(--color-text-main);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.bf-thanks p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (max-width: 640px) {
  .bf-section {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }

  .bf-form,
  [data-booking-form-root] {
    gap: 1rem;
  }

  .bf-week-grid {
    margin-right: -1rem;
    padding-right: 1rem;
  }

  .bf-submit-row {
    justify-content: stretch;
  }

  .bf-submit-row .gb-button {
    width: 100%;
  }
}
