/* === Minimal-Reset gegen Kubio/Astra-Overrides (nur Form-Elemente im Wrapper) === */
#buchungsWrapper select,
#buchungsWrapper input,
#buchungsWrapper textarea,
#buchungsWrapper button,
#buchungsWrapper label,
#buchungsWrapper a {
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
  filter: none;
  backdrop-filter: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* === Wrapper im KFM-Look === */
#buchungsWrapper {
  position: relative;
  z-index: 2147483647 !important;
  pointer-events: auto !important;
  max-width: 800px;
  margin: 0rem auto;
  font-family: inherit;
  color: white;
}

/* === Überschriften === */
#buchungsWrapper .buchung-step h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #b2db18;
}

/* === Labels (nur im Buchungsbereich) === */
#buchungsWrapper .buchung-step label {
  display: block;
  margin: 0.5rem 0;
  color: white;
  text-align: left;
}

/* === Radio Buttons === */
#buchungsWrapper form input[type="radio"] {
  vertical-align: middle;
  margin-right: 6px;
  accent-color: #b2db18;
  transform: scale(1.2);
}

/* === Eingabefelder === */
#buchungsWrapper .buchung-step input[type="text"],
#buchungsWrapper .buchung-step input[type="email"],
#buchungsWrapper .buchung-step input[type="tel"],
#buchungsWrapper .buchung-step input[type="number"],
#buchungsWrapper .buchung-step textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.6rem 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.5) !important;
  color: white !important;
  border: 2px solid #b2db18 !important;
  font-size: 1rem;
  box-sizing: border-box;
  outline: none;
  box-shadow: none;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* === Native Selects (konsolidiert) === */
#buchungsWrapper select#kategorieSelect,
#buchungsWrapper select#dienstleistungSelect,
#buchungsWrapper select#mitarbeiterSelect {
  display: block;
  width: 100% !important;
  height: 48px !important;
  line-height: 48px;
  padding: 0 1rem !important;
  margin: 0.5rem 0 1rem !important;
  background: rgba(0, 0, 0, 0.5) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 2px solid #b2db18 !important;
  border-radius: 2px !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  box-sizing: border-box !important;
  cursor: pointer;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18"><polyline points="4,6 9,11 14,6" fill="none" stroke="%23b2db18" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') !important;
  background-repeat: no-repeat !important;
  background-position: right .8rem center !important;
  background-size: 1rem !important;
  transition: box-shadow .25s ease, border-color .25s ease !important;
}

/* Safari/Chromium: Text im geschlossenen Select sichtbar halten */
#buchungsWrapper .buchung-step select:not(#wunschdatum) {
  -webkit-text-fill-color: #fff !important;
}

#buchungsWrapper select#kategorieSelect:hover,
#buchungsWrapper select#dienstleistungSelect:hover,
#buchungsWrapper select#mitarbeiterSelect:hover,
#buchungsWrapper select#kategorieSelect:focus,
#buchungsWrapper select#dienstleistungSelect:focus,
#buchungsWrapper select#mitarbeiterSelect:focus {
  border-color: #b2db18 !important;
  box-shadow: 0 0 20px #b2db18 !important;
  outline: none !important;
}

#buchungsWrapper select#kategorieSelect option,
#buchungsWrapper select#dienstleistungSelect option,
#buchungsWrapper select#mitarbeiterSelect option,
#buchungsWrapper .buchung-step select:not(#wunschdatum) option {
  background: #111 !important;
  color: #fff !important;
}

#buchungsWrapper select#kategorieSelect:invalid,
#buchungsWrapper select#dienstleistungSelect:invalid,
#buchungsWrapper select#mitarbeiterSelect:invalid {
  color: rgba(255, 255, 255, 0.5) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.5) !important;
}

/* === Fokus-Glow allgemeine Inputs === */
#buchungsWrapper .buchung-step input:focus,
#buchungsWrapper .buchung-step textarea:focus {
  box-shadow: 0 0 8px #b2db18 !important;
  border-color: #b2db18 !important;
}

/* === Placeholder Farbe === */
#buchungsWrapper .buchung-step input::placeholder,
#buchungsWrapper .buchung-step textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* === Wunschdatum wie Kontakt === */
#buchungsWrapper input[type="date"]#wunschdatum {
  width: 100%;
  max-width: 100%;
  padding: 0.6rem 1rem;
  margin: 0.5rem 0 1rem;
  background: rgba(0, 0, 0, 0.5) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 2px solid #b2db18 !important;
  font-size: 1rem;
  box-sizing: border-box;
  transition: box-shadow .3s ease, border-color .3s ease;
}

#buchungsWrapper input[type="date"]#wunschdatum:focus {
  box-shadow: 0 0 8px #b2db18 !important;
  border-color: #b2db18 !important;
}

#buchungsWrapper input[type="date"]#wunschdatum::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: .9;
  cursor: pointer;
}

#buchungsWrapper input[type="date"]#wunschdatum::-webkit-datetime-edit,
#buchungsWrapper input[type="date"]#wunschdatum::-webkit-datetime-edit-fields-wrapper,
#buchungsWrapper input[type="date"]#wunschdatum::-webkit-datetime-edit-text,
#buchungsWrapper input[type="date"]#wunschdatum::-webkit-datetime-edit-month-field,
#buchungsWrapper input[type="date"]#wunschdatum::-webkit-datetime-edit-day-field,
#buchungsWrapper input[type="date"]#wunschdatum::-webkit-datetime-edit-year-field {
  color: #fff;
}

/* === Hauptbuttons / Navigation === */
#buchungsWrapper .buchung-step > button:not(.ib-service-dropdown-toggle):not(.ib-toggle-button) {
  display: inline-block;
  width: 100% !important;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  box-sizing: border-box;
  border: 2px solid #b2db18 !important;
  background: transparent !important;
  color: #fff !important;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

#buchungsWrapper .buchung-step > button:not(.ib-service-dropdown-toggle):not(.ib-toggle-button):hover,
#buchungsWrapper .buchung-step > button:not(.ib-service-dropdown-toggle):not(.ib-toggle-button):focus {
  box-shadow: 0 0 20px #b2db18;
  transform: translateY(-4px);
}

#step-1 > button,
#step-2 > button,
#step-3 > button,
#step-code > button {
  margin-top: 0.75rem;
}

#buchungsWrapper #wenigerTermine,
#buchungsWrapper #mehrTermine {
  width: auto !important;
  min-width: 48px;
  padding: 0.45rem 0.75rem;
  display: inline-block;
  margin-top: 0;
}

/* === Termin-Vorschläge Grid === */
#buchungsWrapper #terminVorschlaege {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

#buchungsWrapper #terminVorschlaege label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.8rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #b2db18;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  color: white;
  width: 100%;
  box-sizing: border-box;
}

#buchungsWrapper #terminVorschlaege label:hover {
  box-shadow: 0 0 15px #b2db18;
  transform: translateY(-4px);
}

#buchungsWrapper #terminVorschlaege input[type="radio"] {
  width: auto;
  margin: 0;
}

#buchungsWrapper #terminVorschlaege .time-slot {
  font-size: 1.1rem;
  font-weight: bold;
}

#buchungsWrapper #terminVorschlaege .time-meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

#buchungsWrapper #terminVorschlaege input[type="radio"][name="termin"]:checked + label {
  background: rgba(178, 219, 24, 0.15);
  box-shadow: 0 0 15px rgba(178, 219, 24, 0.6);
  border-color: #b2db18;
}

/* === Termin-Hinweis === */
#buchungsWrapper .termin-hinweis {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,.5);
}

/* === Progressbar im KFM-Stil === */
#progressbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 24px 0;
}

#progressbar .step {
  text-align: center;
  padding: 10px 12px;
  border: 2px solid rgba(178, 219, 24, 0.45);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255,255,255,.75);
  font-size: .95rem;
  line-height: 1.25;
  box-sizing: border-box;
}

#progressbar .step.aktiv {
  border-color: #b2db18;
  color: #fff;
  box-shadow: 0 0 14px rgba(178, 219, 24, 0.35);
  background: rgba(178, 219, 24, 0.08);
}

@media (max-width: 780px) {
  #progressbar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  #buchungsWrapper #terminVorschlaege {
    grid-template-columns: 1fr;
  }
}

/* ==== SELECT2 (falls aktiv) ==== */
#buchungsWrapper .select2-container .select2-selection--single {
  background: rgba(0,0,0,0.5) !important;
  border: 2px solid #b2db18 !important;
  border-radius: 2px !important;
  height: 48px !important;
}

#buchungsWrapper .select2-selection__rendered {
  color: #fff !important;
  line-height: 46px !important;
  padding: 0 2rem 0 1rem !important;
}

#buchungsWrapper .select2-selection__arrow b {
  border-color: #b2db18 transparent transparent transparent !important;
}

#buchungsWrapper .select2-container--open .select2-selection--single {
  box-shadow: 0 0 20px #b2db18 !important;
}

#buchungsWrapper .select2-dropdown {
  background: #111 !important;
  border: 2px solid #b2db18 !important;
}

#buchungsWrapper .select2-results__option {
  color: #fff !important;
}

/* ==== CHOICES.JS (falls aktiv) ==== */
#buchungsWrapper .choices__inner {
  background: rgba(0,0,0,0.5) !important;
  color: #fff !important;
  border: 2px solid #b2db18 !important;
  border-radius: 2px !important;
  min-height: 48px !important;
}

#buchungsWrapper .choices__list--dropdown,
#buchungsWrapper .choices__list--dropdown .choices__item {
  background: #111 !important;
  color: #fff !important;
  border-color: #b2db18 !important;
}

#buchungsWrapper .choices__inner:focus,
#buchungsWrapper .choices__inner:hover {
  box-shadow: 0 0 20px #b2db18 !important;
  border-color: #b2db18 !important;
}

/* Nur in Step 3, nur unsere Checkbox */
#step-3 .agb-row input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  display: inline-block !important;
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  clip: auto !important;
  width: 1.1em;
  height: 1.1em;
  margin-right: .5rem;
  vertical-align: -2px;
}

#step-3 .agb-row label {
  display: inline;
}

/* Nur Step 3, nur unsere Links */
#step-3 .agb-row .agb-link {
  color: #2ecc71 !important;
  text-decoration: underline;
  cursor: pointer;
}

#step-3 .agb-row .agb-link:hover {
  text-decoration: none;
}

/* Popup (Modal) — gekapselt */
.agb-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.6);
  z-index: 9999;
}

.agb-modal {
  background: #fff;
  color: #b2db18;
  width: min(800px, 90vw);
  max-height: 80vh;
  overflow: auto;
  padding: 16px 20px;
  border-radius: 8px;
}

.agb-modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.agb-modal .close {
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

html.agb-modal-open {
  overflow: hidden;
}

/* === IB Storno-Popup === */
.ib-popup {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.ib-popup.is-visible {
  display: block;
}

.ib-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.ib-popup-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 420px;
  width: 90%;
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.ib-popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.ib-popup-content {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* Hinweistext unter den Buttons in Step 2 */
.buchung-step .ib-hinweis {
  color: #ffffff;
  text-align: left;
  margin-top: 10px;
  font-size: 0.9em;
}

/* Links im Hinweis auch weiß, aber erkennbar */
.buchung-step .ib-hinweis a {
  color: #ffffff;
  text-decoration: underline;
}

.buchung-step .ib-hinweis a:hover,
.buchung-step .ib-hinweis a:focus {
  text-decoration: none;
  opacity: 0.9;
}

/* === Step 2: Checkbox sichtbar machen + Eigentümer-Toggle stylen === */
#step-2 .ib-legal-consent label,
#step-2 .ib-toggle-row {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  color: #fff;
}

#step-2 #ib-agree-legal {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  -moz-appearance: checkbox !important;
  display: inline-block !important;
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  clip: auto !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  margin: 3px 0 0 0 !important;
  accent-color: #b2db18;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#step-2 .ib-legal-consent {
  margin: 14px 0 18px 0;
}

#step-2 .ib-legal-consent a {
  color: #00b7ff !important;
  text-decoration: underline;
}

#step-2 .ib-legal-consent a:hover,
#step-2 .ib-legal-consent a:focus {
  text-decoration: none;
}

#step-2 .ib-toggle-button {
  display: inline-block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #b2db18 !important;
  color: #fff !important;
  background: rgba(0, 0, 0, 0.5) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-sizing: border-box;
}

#step-2 .ib-toggle-row:hover .ib-toggle-button,
#step-2 .ib-toggle-button:hover,
#step-2 .ib-toggle-button:focus {
  box-shadow: 0 0 20px #b2db18;
  transform: translateY(-2px);
}

#step-2 #eigentuemerToggle.active {
  background: rgba(178, 219, 24, 0.14) !important;
  box-shadow: 0 0 14px rgba(178, 219, 24, 0.45);
}

#step-2 #eigentuemerFields {
  margin-top: 12px !important;
}

/* === Multi-Booking Dropdown Slim (konsolidiert) === */
#buchungsWrapper .ib-service-dropdown {
  position: relative;
  width: 100%;
}

#buchungsWrapper .ib-service-dropdown-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid #b2db18 !important;
  background: rgba(0,0,0,.5) !important;
  color: #fff !important;
  box-shadow: 0 0 10px rgba(178,219,24,.18);
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

#buchungsWrapper .ib-service-dropdown-toggle:hover,
#buchungsWrapper .ib-service-dropdown-toggle:focus,
#buchungsWrapper .ib-service-dropdown.is-open .ib-service-dropdown-toggle {
  box-shadow: 0 0 20px #b2db18;
}

#buchungsWrapper .ib-service-dropdown-label {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

#buchungsWrapper .ib-service-dropdown-arrow {
  flex: none;
  color: #b2db18;
  font-size: 18px;
  line-height: 1;
  transition: transform .2s ease;
}

#buchungsWrapper .ib-service-dropdown.is-open .ib-service-dropdown-arrow {
  transform: rotate(180deg);
}

#buchungsWrapper .ib-service-dropdown-panel {
  margin-top: 10px;
}

#buchungsWrapper .ib-service-multi-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0 16px;
}

#buchungsWrapper .ib-service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  min-height: auto;
  margin: 0;
  border: 2px solid #b2db18;
  background: rgba(0,0,0,.5);
  color: #fff;
  box-sizing: border-box;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

#buchungsWrapper .ib-service-row:hover {
  box-shadow: 0 0 12px rgba(178,219,24,.28);
  transform: translateY(-1px);
}

#buchungsWrapper .ib-service-row:has(.ib-service-checkbox:checked) {
  background: rgba(178,219,24,0.10);
  box-shadow: 0 0 16px rgba(178,219,24,.30);
}

#buchungsWrapper .ib-service-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

#buchungsWrapper .ib-service-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #fff;
  font-weight: 600;
  line-height: 1.35;
}

#buchungsWrapper .ib-service-check > span:last-child {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  word-break: break-word;
}

#buchungsWrapper input.ib-service-checkbox {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  -moz-appearance: checkbox !important;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  accent-color: #b2db18;
  cursor: pointer;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#buchungsWrapper .ib-service-meta {
  font-size: .92rem;
  color: #b2db18;
}

#buchungsWrapper .ib-service-qty-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: none;
  gap: 8px;
  color: #fff;
  font-size: .95rem;
  white-space: nowrap;
}

#buchungsWrapper .ib-service-qty-wrap input.ib-service-qty {
  width: 72px;
  min-width: 72px;
  margin: 0;
  padding: .45rem .65rem;
  text-align: center;
  background: rgba(0,0,0,.5) !important;
  color: #fff !important;
  border: 2px solid #b2db18 !important;
}

#buchungsWrapper .ib-service-qty-wrap input.ib-service-qty:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none !important;
}

#buchungsWrapper .ib-duration-summary {
  display: none !important;
}

@media (max-width: 767px) {
  #buchungsWrapper .ib-service-dropdown-label {
    white-space: normal;
  }

  #buchungsWrapper .ib-service-row {
    align-items: flex-start;
    flex-direction: column;
  }

  #buchungsWrapper .ib-service-qty-wrap {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
  }
}

/* === Multibooking: harte Kanten statt rounded === */
.ib-services-dropdown,
.ib-services-dropdown-header,
.ib-service-card,
.ib-service-item,
.ib-service-card input,
.ib-service-item input,
.ib-services-wrapper,
.ib-services-container {
  border-radius: 0 !important;
}

#step-2 .ib-hinweis-objektadresse {
  color: #ffffff;
  opacity: 0.85;
  line-height: 1.4;
}
#buchungsWrapper {
  position: relative;
  z-index: 2147483647 !important;
  pointer-events: auto !important;
  max-width: 800px;
  margin: 0 auto;
  font-family: inherit;
  color: white;

  overflow: hidden;
}

/* === Dark Glass Layer === */
#buchungsWrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  /* Schwarzes Glas */
  background: linear-gradient(
    180deg,
    rgba(10, 12, 16, 0.65) 0%,
    rgba(10, 12, 16, 0.45) 100%
  );

  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 12px 40px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -1px 0 rgba(255,255,255,0.04);

  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* Content bleibt scharf */
#buchungsWrapper > * {
  position: relative;
  z-index: 1;
}

#buchungsWrapper {
  padding: 1.5rem;
}