/* =========================================================
   Kirchenplaner (ax_kirchenplaner) – Card-Design Override
   Nur Optik – Angular-Funktionen des Plugins bleiben unberührt
   Einbindung z. B. via TypoScript:
     page.includeCSS.kirchenplaner = fileadmin/templates/css/kirchenplaner-card-design.css
   ========================================================= */

.tx_axkirchenplaner {
  --kp-blue: #004C7A;
  --kp-blue-light: #e6f0f7;
  --kp-blue-mid: #cce0ee;
  --kp-gold: #d4a843;
  --kp-white: #ffffff;
  --kp-text: #1a2e3b;
  --kp-radius: 10px;
  font-family: 'Roboto Condensed', sans-serif;
  color: var(--kp-text);
}

/* Grid-Container: die Tabellen (= Termine) nebeneinander anordnen */
.tx_axkirchenplaner .result-list > div.ng-scope {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  align-items: start;
}

/* Jede Termin-"Tabelle" wird zur Card */
.tx_axkirchenplaner .result-list table.table {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  background: var(--kp-white);
  border: 1px solid var(--kp-blue-mid);
  border-radius: var(--kp-radius);
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0, 76, 122, 0.09);
  transition: transform .18s ease, box-shadow .18s ease;
  border-collapse: separate;
}
.tx_axkirchenplaner .result-list table.table:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 76, 122, 0.16);
}

/* Datumszeile (thead) -> blaues Banner oben auf der Card */
.tx_axkirchenplaner .result-list table.table thead,
.tx_axkirchenplaner .result-list table.table thead tr,
.tx_axkirchenplaner .result-list table.table thead td {
  display: block;
  width: 100%;
  border: none !important;
}
.tx_axkirchenplaner .result-list table.table thead td {
  background: var(--kp-blue);
  color: var(--kp-white);
  padding: 10px 14px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}
.tx_axkirchenplaner .result-list table.table thead td strong {
  font-weight: 700;
}
.tx_axkirchenplaner .result-list table.table thead td .text-muted {
  display: block;
  color: var(--kp-gold);
  font-weight: 700;
  font-size: 11px;
  opacity: 1;
}

/* Inhaltszeile (tbody) -> weißer Card-Body */
.tx_axkirchenplaner .result-list table.table tbody,
.tx_axkirchenplaner .result-list table.table tbody tr,
.tx_axkirchenplaner .result-list table.table tbody td {
  display: block;
  width: 100%;
  border: none !important;
}
.tx_axkirchenplaner .result-list table.table tbody tr.clickable-row {
  cursor: pointer;
}
.tx_axkirchenplaner .result-list table.table tbody td {
  padding: 10px 12px 14px;
  font-size: 13px;
  line-height: 1.45;
}
.tx_axkirchenplaner .result-list table.table tbody td strong {
  display: inline-block;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--kp-blue);
  margin-top: 2px;
}

/* Uhrzeit als kleines Pill-Badge hervorheben */
.tx_axkirchenplaner .result-list table.table tbody td {
  position: relative;
}

/* Ladeanimation / leerer Zustand etwas aufräumen */
.tx_axkirchenplaner .spinner {
  color: var(--kp-blue);
  text-align: center;
  padding: 24px;
}
.tx_axkirchenplaner .results.empty {
  text-align: center;
  padding: 48px 24px;
  color: #999;
  font-weight: 700;
}

/* Mobile: eine Spalte */
@media (max-width: 600px) {
  .tx_axkirchenplaner .result-list > div.ng-scope {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 380px) {
  .tx_axkirchenplaner .result-list > div.ng-scope {
    grid-template-columns: 1fr;
  }
}
