/* =====================================================
   CF7 Datepicker – Stylesheet
   Einbinden per wp_enqueue_style() oder im Theme-CSS
   ===================================================== */

/* Wrapper um das gesamte Widget */
.cf7dp-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 340px;
  font-family: inherit;
}

/* Sichtbares Text-Feld */
.cf7dp-display {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat right 12px center;
  box-sizing: border-box;
  font-size: 0.95rem;
  color: #333;
  transition: border-color 0.2s;
}
.cf7dp-display:focus,
.cf7dp-display:hover {
  border-color: #0073aa;
  outline: none;
}

/* Kalender-Popup */
.cf7dp-popup {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 9999;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 16px;
  min-width: 280px;
  user-select: none;
}

/* Header: Prev / Titel / Next */
.cf7dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cf7dp-header button {
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #444;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
  padding: 0;
}
.cf7dp-header button:hover {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}
.cf7dp-title {
  font-weight: 600;
  font-size: 1rem;
  color: #222;
}

/* Grid: 7 Spalten */
.cf7dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

/* Wochentags-Namen */
.cf7dp-dayname {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #888;
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Leere Zellen */
.cf7dp-empty {
  visibility: hidden;
}

/* Tages-Buttons */
.cf7dp-day {
  width: 100%;
  aspect-ratio: 1;
  border: none;
  border-radius: 6px;
  background: none;
  font-size: 0.88rem;
  cursor: default;
  color: #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}

/* Erlaubte Tage */
.cf7dp-allowed {
  color: #222;
  cursor: pointer;
  background: #f0f7ff;
  font-weight: 600;
}
.cf7dp-allowed:hover {
  background: #0073aa;
  color: #fff;
}

/* Gewählter Tag */
.cf7dp-selected {
  background: #0073aa !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0,115,170,0.35);
}

/* Gesperrte Tage */
.cf7dp-disabled {
  color: #ddd;
  cursor: not-allowed;
  text-decoration: line-through;
}
