/* ==================================================
   BOOKING-WIDGET.CSS
   Widget 
   ================================================== */

/* ==================================================
   WIDGET-BASIS
   ================================================== */

#booking-widget {
  display: block;
  box-sizing: border-box;
  font-family: 'Georgia', serif;
  color: #333;
  line-height: 1.5;
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: #f8f6f3;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}


#booking-widget *,
#booking-widget *::before,
#booking-widget *::after {
  box-sizing: border-box;
}

#booking-widget h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  letter-spacing: -0.01em;
}

#booking-widget .bw-subtitle {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: #6b7a8a;
}

/* Lade-Zustand */
#booking-widget .bw-loading {
  text-align: center;
  padding: 2rem;
  color: #6b7a8a;
  font-style: italic;
}

#booking-widget .bw-loading::after {
  content: "";
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  margin-left: 0.5rem;
  border: 2px solid #cbd5e0;
  border-top-color: #5a7a9a;
  border-radius: 50%;
  animation: bw-spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes bw-spin {
  to { transform: rotate(360deg); }
}

/* Fehler */

/* Leer-Zustand */
#booking-widget .bw-empty {
  text-align: center;
  padding: 2rem;
  color: #6b7a8a;
  font-size: 0.95rem;
}

/* ==================================================
   STEP-INDICATOR
   ================================================== */

.bw-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.bw-step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #a0aebc;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  background: #f0f2f5;
  transition: all 0.2s ease;
}

.bw-step.is-active {
  color: #2c3e50;
  background: #dce6f0;
  font-weight: 600;
}

.bw-step.is-done {
  color: #2d7d46;
  background: #e6f4ea;
}

.bw-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d0d8e0;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.bw-step.is-active .bw-step-number {
  background: #5a7a9a;
}

.bw-step.is-done .bw-step-number {
  background: #2d7d46;
}

/* ==================================================
   4 EINSTIEGSWEGE (Large Cards/Tiles)
   ================================================== */

.bw-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .bw-tiles {
    grid-template-columns: 1fr;
  }
}

.bw-tile {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bw-tile:hover {
  border-color: #a0bbd4;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.bw-tile.is-selected {
  border-color: #5a7a9a;
  background: #eaf1f9;
  box-shadow: 0 0 0 2px rgba(90, 122, 154, 0.2);
  transform: translateY(-2px);
}

/* Dauer-Badge – ganz oben, sehr prominent */
.bw-tile-duration {
  display: inline-block;
  background: #5a7a9a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}

.bw-tile-title {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
}

.bw-tile-desc {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  color: #6b7a8a;
  line-height: 1.4;
}

.bw-tile-price {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #5a7a9a;
}

/*.bw-tile-price-free {
  color: #2d7d46;
}*/

.bw-tile-icon {
  display: inline-block;
  width: 2em;
  height: 2em;
  margin-bottom: 1em;
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/*  ICONS  */

/* 2. Spezifische Klassen für deine 4 Keys */

.bw-tile-icon.erstgespraech {
 
 --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg fill='black'%3E%3Cpath fill-rule='evenodd' d='M42.356 29.901L39.38 32.88l-2.29 2.29a2.954 2.954 0 1 1-4.138-4.216l6.806-6.555q.165-.158.34-.299a8 8 0 0 1 2.26 5.802m15.37 21.518l-1.36 1.855A7.9 7.9 0 0 1 50 56.5l-1.113 1.113a6.44 6.44 0 0 1-8.678.394L39 57l-.702.702a7.846 7.846 0 0 1-11.096 0l-7.53-7.53A4 4 0 0 0 16.843 49H4V27h12.343a4 4 0 0 0 2.829-1.172l3.485-3.485A8 8 0 0 1 28.314 20h4.372c.877 0 1.739.144 2.554.419l-6.45 6.212A8.954 8.954 0 1 0 41.33 39.41l.418-.417l15.91 12.374l.067.051' clip-rule='evenodd'/%3E%3Cpath d='M63.657 27H76v22H59.5l-18-14l-2.29 2.29a5.954 5.954 0 1 1-8.34-8.498l6.806-6.555A8 8 0 0 1 43.226 20h8.46a8 8 0 0 1 5.657 2.343l3.485 3.485A4 4 0 0 0 63.657 27'/%3E%3C/g%3E%3C/svg%3E");

}

.bw-tile-icon.einzelsitzung {

 
 --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='black' d='M16 4C9.373 4 4 9.373 4 16c0 2.165.572 4.193 1.573 5.945a1 1 0 0 1 .094.77l-1.439 5.059l5.061-1.44a1 1 0 0 1 .77.094A11.94 11.94 0 0 0 16 28c6.628 0 12-5.373 12-12S22.628 4 16 4M2 16C2 8.268 8.268 2 16 2s14 6.268 14 14s-6.268 14-14 14c-2.368 0-4.602-.589-6.56-1.629l-5.528 1.572A1.5 1.5 0 0 1 2.06 28.09l1.572-5.527A13.94 13.94 0 0 1 2 16m8-3a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H11a1 1 0 0 1-1-1m1 5a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2z'/%3E%3C/svg%3E");
}
.bw-tile-icon.paket_kauf {
   --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cpath fill='black' d='m32.43 8.35l-13-6.21a1 1 0 0 0-.87 0l-15 7.24a1 1 0 0 0-.57.9v16.55a1 1 0 0 0 .6.92l13 6.19a1 1 0 0 0 .87 0l15-7.24a1 1 0 0 0 .57-.9V9.25a1 1 0 0 0-.6-.9M19 4.15l10.93 5.22l-5.05 2.44l-10.67-5.35Zm-2 11.49L6 10.41l5.9-2.85l10.7 5.35ZM5 12.13l11 5.27v14.06L5 26.2Zm13 19.32V17.36l13-6.29v14.1Z' class='clr-i-outline clr-i-outline-path-1'/%3E%3Cpath fill='none' d='M0 0h36v36H0z'/%3E%3C/svg%3E");
}

.bw-tile-icon.paket_einloesen {
    --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-linejoin='round' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' d='M11 20h-.5c-3.759 0-5.638 0-6.893-.99a4.4 4.4 0 0 1-.554-.523C2 17.307 2 15.537 2 12s0-5.306 1.053-6.487q.253-.284.554-.522C4.862 4 6.741 4 10.5 4h3c3.759 0 5.638 0 6.892.99q.302.24.555.523C21.896 6.577 21.99 8.118 22 11'/%3E%3Cpath d='M2 9h20'/%3E%3Cpath stroke-linecap='round' d='M14 18s1 0 2 2c0 0 3.177-5 6-6'/%3E%3C/g%3E%3C/svg%3E");
  
}

/* ==================================================
   TOKEN-EINGABE (Fast-Lane: Option 4)
   ================================================== */

.bw-token-section {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  max-width: 420px;
  margin: 0 auto 1.5rem;
}

.bw-token-section h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
}

.bw-token-section p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #6b7a8a;
}

.bw-token-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.bw-token-input-group input {
  flex: 1;
  max-width: 260px;
  padding: 0.7rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  transition: border-color 0.2s ease;
}

.bw-token-input-group input:focus {
  outline: none;
  border-color: #5a7a9a;
  box-shadow: 0 0 0 3px rgba(90, 122, 154, 0.15);
}

.bw-token-input-group button {
  padding: 0.7rem 1.2rem;
  background: #5a7a9a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.bw-token-input-group button:hover {
  background: #4a6a8a;
}

.bw-token-input-group button:disabled {
  background: #cbd5e0;
  cursor: not-allowed;
}

.bw-token-input-group button.is-valid {
  background: #2d7d46;
}

.bw-token-msg {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  min-height: 1.3em;
}

.bw-token-msg.is-valid {
  color: #2d7d46;
  font-weight: 600;
}

.bw-token-msg.is-invalid {
  color: #c0392b;
}

.bw-token-msg.is-checking {
  color: #6b7a8a;
  font-style: italic;
}

/* ==================================================
   ZURÜCK-BUTTON
   ================================================== */

.bw-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid #d0d8e0;
  border-radius: 8px;
  color: #5a7a8a;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
}

.bw-back-btn:hover {
  border-color: #5a7a9a;
  color: #2c3e50;
}

/* ==================================================
   KALENDER (Termin-Auswahl)
   ================================================== */

#booking-widget .bw-calendar {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

#booking-widget .bw-cal-col {
  flex: 0 0 auto;
  min-width: 140px;
  max-width: 160px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

#booking-widget .bw-cal-header {
  background: #f0f4f8;
  padding: 0.75rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

#booking-widget .bw-cal-weekday {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

#booking-widget .bw-cal-date {
  display: block;
  font-size: 0.8rem;
  color: #6b7a8a;
  margin-top: 0.15rem;
}

#booking-widget .bw-cal-slots {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

#booking-widget .bw-slot-btn {
  display: block;
  width: 100%;
  padding: 0.5rem 0.4rem;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  color: #333;
  text-align: center;
}

#booking-widget .bw-slot-btn:hover {
  border-color: #a0bbd4;
  background: #f0f5fa;
}

#booking-widget .bw-slot-btn.is-selected {
  border-color: #5a7a9a;
  background: #eaf1f9;
  box-shadow: 0 0 0 2px rgba(90, 122, 154, 0.2);
}

/* ==================================================
   FORMULAR
   ================================================== */

#booking-widget .bw-form {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

#booking-widget .bw-form h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #2c3e50;
}

#booking-widget .bw-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 540px) {
  #booking-widget .bw-form-row {
    grid-template-columns: 1fr;
  }
}

#booking-widget .bw-field {
  display: flex;
  flex-direction: column;
}

#booking-widget .bw-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 0.3rem;
}

#booking-widget .bw-field input {
  padding: 0.65rem 0.85rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #333;
  transition: border-color 0.2s ease;
  background: #fff;
}

#booking-widget .bw-field input:focus {
  outline: none;
  border-color: #5a7a9a;
  box-shadow: 0 0 0 3px rgba(90, 122, 154, 0.15);
}

#booking-widget .bw-field input::placeholder {
  color: #a0aebc;
}

#booking-widget .bw-full {
  grid-column: 1 / -1;
}

/* Zusammenfassung unter dem Formular */
#booking-widget .bw-summary {
  background: #eaf1f9;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}

#booking-widget .bw-summary h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
}

#booking-widget .bw-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

#booking-widget .bw-summary-table td {
  padding: 0.25rem 0;
  color: #444;
}

#booking-widget .bw-summary-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: #2c3e50;
}

/* Submit-Button */
#booking-widget .bw-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  background: #5a7a9a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 0.5rem;
}

#booking-widget .bw-submit:hover {
  background: #4a6a8a;
}

#booking-widget .bw-submit:focus-visible {
  outline: 2px solid #5a7a9a;
  outline-offset: 2px;
}

#booking-widget .bw-submit:disabled {
  background: #cbd5e0;
  cursor: not-allowed;
}

/* ==================================================
   TOKEN-FEEDBACK (Paket-Code)
   ================================================== */

/* ==================================================
   ERFOLGSMELDUNG
   ================================================== */

