/* ===== Tabs ===== */
.pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pills-wrap .standort-pill {
  cursor: pointer;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--dark-1);
  color: var(--bright);
  font-size: 14px;
  line-height: 1.4;
  transition: background .2s;
}
.pills-wrap .standort-pill.active {
  background-color: var(--blue);
  color: var(--bright);
}

/* ===== Kalender ===== */
#boxenstopp-calendar {
  width: 100%;
}

/* Kopfzeile */
#boxenstopp-calendar .cal-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
#boxenstopp-calendar .cal-head > div {
  background: #1b1b23;
  color: var(--bright);
  text-align: center;
  padding: 8px 0;
  border-radius: 4px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .05em;
}

/* Body */
#boxenstopp-calendar .cal-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
#boxenstopp-calendar .pad {
  visibility: hidden;
}
#boxenstopp-calendar .day {
  background: var(--dark-1);
  color: var(--bright);
  border-radius: 6px;
  text-align: center;
  padding: 12px 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#boxenstopp-calendar .day .d {
  font-weight: 900;
}
#boxenstopp-calendar .day.available {
  background: var(--green);
  color: var(--bright);
  cursor: pointer;
}
#boxenstopp-calendar .day.available:hover {
  filter: brightness(0.96);
}
#boxenstopp-calendar .day.disabled {
  opacity: .55;
}

/* Box Styling */
.boxenstopp-section .standard-box {
  padding: 20px 30px;
}

/* ===== Responsive ===== */

/* Tablet & Mobile: Kalender bleibt 7-spaltig, wird aber horizontal scrollbar */
@media (max-width: 991px) {
  #boxenstopp-calendar {
    overflow-x: auto;
  }
  #boxenstopp-calendar .cal-head,
  #boxenstopp-calendar .cal-body {
    min-width: 700px; /* Platz für 7 Spalten */
    grid-template-columns: repeat(7, 1fr);
  }
  #boxenstopp-calendar .day,
  #boxenstopp-calendar .cal-head > div {
    min-width: 90px;
  }
}

/* Sanfter Fade-In für den Content */
.boxenstopp-content {
  will-change: opacity;
}

/* Für gestaffeltes Laden */
.boxenstopp-content .standard-box {
  opacity: 0;
  transform: translateY(8px);
}
.boxenstopp-content .standard-box.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease;
}

.boxenstopp-hinweis {
  margin-bottom: 15px;
  margin-top: 20px;
  background: rgba(255,255,255,0.05);
  border-left: 4px solid var(--blue);
  font-size: 0.9em;
}

/* Mobile kleine Screens */
@media (max-width: 480px) {
  .pills-wrap .standort-pill {
    font-size: 13px;
    padding: 5px 12px;
  }
  #boxenstopp-calendar .day {
    min-height: 48px;
    font-size: 13px;
  }
}

@media (max-width: 1400px) {
  .boxenstopp-kalender-correction {
    margin-top: 20px !important;
    float: none;
  }
}