/* Verein Card im Header */
.verein-card {
  display: flex;
  justify-content: center;
  align-items: start;
  background: var(--color-surface);
  border: 2px solid var(--color-border-default);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  min-width: 280px;
  margin-bottom: 0.5rem;
}

/* Moderner Card-basierter Booking Header - Kompakter */
.booking-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-muted) 100%);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  align-items: start;
}

/* Progress Card Wrapper - Kompakter */
.ablauf-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-surface);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--color-border-default);
  min-width: 300px;
}

.ablauf {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.step-item.selected .progressBtn {
  background: var(--color-surface) !important;
  color: var(--color-primary) !important;
  border: 3px solid var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2), 0 4px 12px rgba(76, 175, 80, 0.3) !important;
  transform: scale(1.1) !important;
  font-weight: 700 !important;
}

.step-item.selected .progressLabel {
  font-weight: 700 !important;
  color: var(--color-primary) !important;
  background: rgba(76, 175, 80, 0.1);
}

/* Moderne Progress Steps */
.progressBtn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  color: var(--color-surface);
  border: 3px solid var(--color-surface);
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(76, 175, 80, 0.3);
  position: relative;
  z-index: 2;
}

/* Selected state für Progress Button - Modern Card Style */
.progressBtn.selected,
button.progressBtn.selected,
button#calculation.progressBtn.selected,
button#selectCourt.progressBtn.selected,
button#summary.progressBtn.selected {
  background: var(--color-surface) !important;
  color: var(--color-primary) !important;
  border: 3px solid var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2), 0 4px 12px rgba(76, 175, 80, 0.3) !important;
  transform: scale(1.1) !important;
  font-weight: 700 !important;
}

/* Progress Labels - Kompakter */
.progressLabel {
  text-align: center;
  font-size: 0.85rem;
  white-space: nowrap;
  color: var(--color-primary);
  font-weight: 500;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  background: var(--color-surface);
  backdrop-filter: blur(10px);
  margin-top: 2px;
}

/* Selected state für Progress Label */
.progressLabel.selected {
  font-weight: 700 !important;
  color: var(--color-primary) !important;
  background: rgba(76, 175, 80, 0.1);
}

/* Moderne Progress Line */
.linie {
  position: absolute;
  top: 26px;
  left: 15%;
  right: 15%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-border-default) 0%, var(--color-secondary) 50%, var(--color-border-default) 100%);
  border-radius: 2px;
  z-index: 1;
  opacity: 0.8;
}


/* === BOOKING ACTION CARDS === */
/* Hauptbuchungs-Button als Card - Kompakter */
#writeBooking:active,
#bookSelection:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(76, 175, 80, 0.3);
}

/* goToNextStep Card - Gleiche Höhe wie datumauswahl */
.booking-header-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-surface);
  border: 2px solid var(--color-surface-muted);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  max-height: 110px;
  min-width: 280px;
  gap: 0.5rem;
}

.booking-header-card--calendar {
  align-items: stretch;
  max-height: none;
}

.booking-header-main {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

/* Button in der goToNextStep Card - nutzt bapBtn aus style.css */
.floating-book-btn {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 1000;
    width: min(320px, calc(100vw - 32px));
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* sanftes Ein-/Ausblenden */
.floating-book-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-book-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(12px);
}


/* Info-Bereiche wrap35 und wrap36 innerhalb der goToNextStep Card */
.booking-header-card .wrap35 {
  margin: 0.2rem 0;
  max-width: 250px;
  width: 100%;
  padding: 0.4rem 0.75rem;

  background: var(--color-surface);
  border: 1px solid var(--color-surface-muted);
  border-radius: 6px;
  margin: 0.25rem 0;
  font-weight: 400;
  color: var(--color-text-muted);
  text-align: center;
}

/* Spezielle Farbe für die rote Zahl */
#maxAnzahlBuchungenCount {
  color: var(--color-danger);
  font-weight: 600;
}

/* Container für die gesamten Booking-Aktionen */
.booking-actions-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--color-surface);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--color-surface-muted);
  margin: 1.5rem 0;
}

.kalender {
  min-width: 280px;
  padding: 0.75rem;
  max-height: 70px;
}

.booking-header-weather {
  width: 100px;
  min-width: 70px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  /* gap: 0.35rem; */
  /* padding: 0.35rem 0.45rem; */
  border-radius: 10px;
  /* background: linear-gradient(180deg, rgba(76, 175, 80, 0.12), rgba(76, 175, 80, 0.04)); */
  border: 1px solid rgba(76, 175, 80, 0.22);
  overflow: hidden;
}

.booking-header-weather.hidden {
  display: none;
}

.booking-header-weather-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.booking-header-weather-values {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.12rem;
}

.booking-header-weather-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.booking-header-weather-temp {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
}

.booking-header-weather-range {
  font-size: 0.62rem;
  line-height: 1;
  text-align: left;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.datum {
  font-size: 1rem;
}

#openDatepicker {
  width: 24px;
  height: 24px;
}

#writeBooking,
#bookSelection {
  padding: 0.875rem 1.25rem;
  font-size: 0.95rem;
}

/* Responsive Design für mobile Geräte */
@media (max-width: 1000px) {
  .booking-header {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .ablauf-wrapper {
    order: -1;
    min-width: unset;
    width: 100%;
    padding: 1rem;
  }

  .booking-header>.headerBtn {
    width: 100%;
    justify-self: center;
    max-width: 200px;
  }

  .ablauf {
    gap: 1.5rem;
    max-width: 100%;
  }

  .verein-info {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .progressBtn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .progressLabel {
    font-size: 0.75rem;
  }

  .linie {
    left: 25%;
    right: 25%;
    top: 20px;
  }

  /* === RESPONSIVE DESIGN FÜR BOOKING CARDS === */
  .datumauswahl {
    justify-content: center;
  }

  #writeBooking,
  #bookSelection {
    width: 100%;
    max-width: 300px;
    /* margin: 1rem auto; */
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .booking-header-card {
    padding: 0.75rem;
    gap: 0.5rem;
    max-height: 120px;
  }

  .booking-header-main {
    gap: 0.5rem;
  }

  .booking-header-weather {
    width: 96px;
    min-width: 96px;
  }

  .booking-header-weather-icon {
    width: 30px;
    height: 30px;
  }

  .booking-header-weather-temp {
    font-size: 0.88rem;
  }

  .booking-header-weather-range {
    font-size: 0.58rem;
  }

  .booking-actions-container {
    padding: 1rem;
    margin: 1rem 0;
  }

  .heute,
  .wochenansicht {
    padding: 0.5rem 0.75rem;
    gap: 0.75rem;
    font-size: 0.9rem;
  }
}
.bapadmin-return-link {
    position: fixed;
    top: calc(var(--nav-height, 60px) + env(safe-area-inset-top, 0px) + 10px);
    left: 10px;
    z-index: 1600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 36px;
    padding: 0 0.7rem 0 0.45rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #17345f;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(9, 22, 45, 0.2);
    backdrop-filter: blur(4px);
}

.bapadmin-return-link img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.bapadmin-return-link:hover {
    background: #fff;
    color: #102745;
}
