/* ==============================================
   Verfügbarkeit – LuigiVelo.ch
   Modernes Layout 2025
   ============================================== */

/* Wrapper general */
.verfuegbarkeit-wrap {
  margin-top: var(--top-gap);
  padding: 3.5rem 0 4rem;
}

/* Título y lead */
.verfuegbarkeit-wrap h1 {
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}

.verfuegbarkeit-wrap .lead {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.6;
}

/* GRID de días: layout fluido y responsivo */
.tage-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

/* ==============================================
   Tarjeta de día
   ============================================== */

.tag-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: var(--surface, #ffffff);
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 1.4rem 1.5rem 1.25rem;

  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease, background-color 0.18s ease;
}

.tag-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  border-color: rgba(15, 23, 42, 0.1);
}

/* Línea decorativa superior (subtil) */
.tag-card::before {
  content: "";
  position: absolute;
  inset: 0;
  top: 0;
  height: 3px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, var(--brand-500, #16a34a), #22c55e);
  opacity: 0.6;
}

/* Contenido interno */
.tag-datum {
  font-weight: 800;
  font-size: 1.12rem;
  margin-bottom: 0.35rem;
}

.tag-status {
  margin-bottom: 1.15rem;
  font-size: 0.96rem;
}

/* Estados */
.ausgebucht {
  color: #b20017;
  font-weight: 700;
}

.frei {
  color: var(--brand-700, #15803d);
  font-weight: 700;
}

/* ==============================================
   Botones
   ============================================== */

/* Botón primario "Termin buchen" */
.btn-prim {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 2.7rem;
  padding: 0.85rem 1rem;

  background: linear-gradient(
    135deg,
    var(--brand-600, #16a34a),
    var(--brand-700, #15803d)
  );
  color: #ffffff !important;

  border-radius: 999px;
  border: none;

  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;

  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.35);
  transition: background-position 0.18s ease, transform 0.12s ease,
    box-shadow 0.18s ease;
  background-size: 140% 140%;
}

/* Hover/active */
.btn-prim:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(22, 163, 74, 0.45);
  background-position: 100% 0;
}

.btn-prim:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.35);
}

/* Botón para días Ausgebucht */
.btn-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 2.7rem;
  padding: 0.85rem 1rem;

  background-color: #f8d7da; /* rojo pastel suave */
  color: #721c24 !important; /* texto rojo oscuro */
  border-radius: 999px;
  border: 1px solid #f5c6cb;

  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-align: center;

  opacity: 0.95;
  pointer-events: none;
  box-shadow: none;
}

/* ==============================================
   Adaptaciones responsive
   ============================================== */

@media (max-width: 719px) {
  .verfuegbarkeit-wrap h1 {
    font-size: 1.6rem;
  }

  .tag-card {
    padding: 1.25rem 1.2rem 1.1rem;
  }
}

@media (min-width: 1024px) {
  .verfuegbarkeit-wrap {
    padding-top: 4rem;
  }
}

/* ==============================================
   Kapazitäts-Indikator (0–4 Velos)
   ============================================== */

.tag-capacity {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.55rem;
}

.tag-capacity-icon {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.18;
  transform: translateY(-1px);
}

.tag-capacity-icon.is-booked {
  opacity: 1;
  color: var(--brand-700, #15803d);
}

.tag-capacity-icon.is-free {
  opacity: 0.18;
}
/* ===========================================================
   Colores dinámicos por disponibilidad (0–4)
   =========================================================== */

/* 4 libres → como ahora (neutro) */
.tag-card.frei-4 {
  background: var(--surface);
}

/* 3 libres → verde suave */
.tag-card.frei-3 {
  background: #e9f7ef;
}

/* 2 libres → amarillo suave */
.tag-card.frei-2 {
  background: #fff6d5;
}

/* 1 libre  → naranja suave */
.tag-card.frei-1 {
  background: #ffe4c8;
}

/* 0 libres → rojo suave (ya similar a btn-disabled) */
.tag-card.frei-0 {
  background: #f8d7da;
}

/* Texto en rojo para días con <3 citas */
.tag-card.frei-2 .tag-status span,
.tag-card.frei-1 .tag-status span {
  color: #a30000;
  font-weight: 700;
}
