/* ============================================================
   Evangelische Kirchengemeinde Haldern – Seite „Termine“
   Terminliste mit Hintergrundbild (seiten/termine.html)
   ============================================================ */

/* ── Termine / Kalender ─────────────────────────────────────*/
.termin-liste { list-style: none; }

.termin-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--farbe-karte);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--schatten);
  border-left: 4px solid var(--farbe-akzent);
  transition: transform var(--transition);
}

.termin-item:hover { transform: translateX(4px); }

.termin-datum {
  text-align: center;
  min-width: 56px;
  background: var(--farbe-primaer);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  flex-shrink: 0;
}

.termin-datum .tag  { font-size: 1.5rem; font-weight: 700; line-height: 1; display: block; }
.termin-datum .mon  { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; }

.termin-info h3     { font-size: 1rem; color: var(--farbe-primaer-d); margin-bottom: 0.2rem; }
.termin-info p      { font-size: 0.9rem; color: var(--farbe-text-weich); }

@media (max-width: 480px) {
  .termin-item { flex-direction: column; gap: 0.75rem; }
}

/* ── Terminliste mit Hintergrundbild ────────────────────────*/
.termin-bg-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-image: url('../images/herbst.jpg');   /* Pfad relativ zum Ordner css/ */
  background-attachment: scroll;
  background-size: cover;
  background-position: center top;
  padding: 1.5rem 1.5rem 0.5rem;
  box-shadow: var(--schatten-lg);
}

/* Leichte Abdunkelung damit die Termine gut lesbar bleiben */
.termin-bg-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 0;
}

.termin-bg-wrapper .termin-liste,
.termin-bg-wrapper .termin-foto-credit {
  position: relative;
  z-index: 1;
}

/* Termin-Items auf transparentem Hintergrund anpassen */
.termin-bg-wrapper .termin-item {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.termin-bg-wrapper .termin-datum {
  background: var(--farbe-akzent);
  color: #1a2a1a;
}

.termin-bg-wrapper .termin-info h3,
.termin-bg-wrapper .termin-info p {
  color: #fff;
}

/* Bild liegt als echter Hintergrund hinter allem */
.termin-bg-img {
  position: absolute;
  inset: 0;
  width: 80%;
  height: 80%;
  object-fit: contain;
  object-position: center;
  background-color: #0a1a2a;
  z-index: 0;
}

.termin-foto-credit {
  text-align: right;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  padding: 0.5rem 0.25rem 0.75rem;
  position: relative;
  z-index: 1;
}

.termin-foto-credit a {
  color: var(--farbe-akzent);
}

.termin-foto-credit a:hover {
  color: #fff;
}
