/* ===== OSC Kalender ======================================================= */

/* ─── Tabs ────────────────────────────────────────────────────────────────── */

.osc-kal-tabs {
  display: flex; gap: 0.25rem; margin-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
}
.osc-kal-tab {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  text-decoration: none;
  font-size: 0.85rem; font-weight: 600;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
  margin-bottom: -1px;
}
.osc-kal-tab:hover { color: #111827; }
.osc-kal-tab.is-active {
  color: var(--wp--preset--color--eiserne);
  border-bottom-color: var(--wp--preset--color--eiserne);
}

/* ─── Liste — Card-Style angeglichen an News-Cards ───────────────────────── */

.osc-kal-list {
  display: flex; flex-direction: column;
  gap: 0.75rem;
}

.osc-kal-item {
  display: flex; align-items: stretch;
  text-decoration: none; color: inherit;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
  overflow: hidden;
  min-height: 92px;
}
.osc-kal-item:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transform: translateY(-2px);
  border-color: #d1d5db;
}
.osc-kal-item--past { opacity: 0.78; }
.osc-kal-item--past:hover { opacity: 1; }

.osc-kal-item__accent {
  width: 4px; flex-shrink: 0; align-self: stretch;
}

.osc-kal-item__date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 72px; padding: 0.875rem 0.875rem;
  text-align: center; flex-shrink: 0;
  background: #fafafa;
  border-right: 1px solid #f3f4f6;
}
.osc-kal-item__day {
  font-size: 1.7rem; font-weight: 800; line-height: 1;
  letter-spacing: -0.03em; display: block;
  color: #111827;
}
.osc-kal-item__month {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #6b7280; display: block;
  margin-top: 3px;
}
.osc-kal-item__year {
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.05em; color: #9ca3af; display: block;
  margin-top: 1px;
}

/* Thumbnail: feste Größe, nicht über die Zeile hinauswachsend */
.osc-kal-item__thumb {
  flex-shrink: 0;
  width: 130px;
  background-size: cover; background-position: center;
  background-color: #f3f4f6;
}
@media (max-width: 700px) {
  .osc-kal-item__thumb { width: 90px; }
}
@media (max-width: 500px) {
  .osc-kal-item__thumb { display: none; }
}

.osc-kal-item__body {
  flex: 1; padding: 0.875rem 1.125rem; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.osc-kal-item__dept {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em;
}
.osc-kal-item__title {
  font-weight: 700; font-size: 1rem; line-height: 1.3;
  color: #111827;
}
.osc-kal-item__meta {
  font-size: 0.78rem; color: #6b7280;
}
.osc-kal-item__arrow {
  display: flex; align-items: center; padding: 0 1rem;
  color: #d1d5db; font-size: 1.05rem; flex-shrink: 0;
  transition: color 150ms ease, transform 150ms ease;
}
.osc-kal-item:hover .osc-kal-item__arrow {
  color: #6b7280; transform: translateX(3px);
}

.osc-kal-empty {
  color: #9ca3af; font-size: 0.9rem; padding: 1.5rem 0;
  text-align: center;
}

/* ─── News / Aktuelle Beiträge ────────────────────────────────────────────── */

.osc-news {
  margin: 2rem 0;
}
.osc-news__header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}
.osc-news__title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: #111827;
}
.osc-news__more {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}
.osc-news__more:hover { opacity: 0.8; }

.osc-news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 880px) { .osc-news__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .osc-news__grid { grid-template-columns: 1fr; } }

.osc-news__card {
  display: flex; flex-direction: column;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}
.osc-news__card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-3px);
  border-color: #d1d5db;
}
.osc-news__card-img {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: #f3f4f6;
}
.osc-news__card-img--placeholder { opacity: 0.85; }
.osc-news__card-body {
  padding: 1rem 1.125rem 1.25rem;
  flex: 1; display: flex; flex-direction: column; gap: 0.4rem;
}
.osc-news__card-cat {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.osc-news__card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: #111827;
}
.osc-news__card-date {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ─── Termin-Detailansicht (single osc_event) ─────────────────────────────── */

.osc-event-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}
.osc-event-detail__meta {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  padding: 1.25rem 1.5rem;
  background: #f9fafb;
  border-left: 4px solid var(--wp--preset--color--eiserne);
  margin: 1.5rem 0 2rem;
  border-radius: 4px;
}
.osc-event-detail__meta-item { font-size: 0.92rem; }
.osc-event-detail__meta-label {
  display: block;
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #6b7280;
  margin-bottom: 2px;
}
.osc-event-detail__meta-value { font-weight: 600; color: #111827; }
.osc-event-detail__hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

/* ─── Kalenderansicht ────────────────────────────────────────────────────── */

.osc-kal-calendar {
  border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden;
}

.osc-kal-cal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background: #f9fafb; border-bottom: 1px solid #e5e7eb;
}
.osc-kal-cal__title {
  font-size: 0.95rem; font-weight: 700;
}
.osc-kal-cal__nav {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 6px;
  text-decoration: none; color: #374151; font-size: 1.1rem;
  border: 1px solid #e5e7eb; background: white;
  transition: background 150ms ease;
}
.osc-kal-cal__nav:hover { background: #f3f4f6; }

.osc-kal-cal__grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
}
.osc-kal-cal__wd {
  padding: 0.5rem; text-align: center;
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #9ca3af;
  border-bottom: 1px solid #e5e7eb;
}
.osc-kal-cal__cell {
  min-height: 80px; padding: 0.375rem;
  border-right: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
  background: white;
}
.osc-kal-cal__cell--empty { background: #fafafa; }
.osc-kal-cal__cell--today { background: #fef2f2; }
.osc-kal-cal__cell--today .osc-kal-cal__day-num {
  background: var(--wp--preset--color--eiserne); color: white;
  border-radius: 50%; width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
}
.osc-kal-cal__day-num {
  display: block; font-size: 0.8rem; font-weight: 600; color: #374151;
  margin-bottom: 4px;
}
.osc-kal-cal__events { display: flex; flex-direction: column; gap: 2px; }
.osc-kal-cal__event {
  display: block; font-size: 0.65rem; font-weight: 600;
  color: white; padding: 2px 5px; border-radius: 3px;
  text-decoration: none; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis;
  transition: opacity 150ms ease;
}
.osc-kal-cal__event:hover { opacity: .85; color: white; }

/* ─── Responsiv ──────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .osc-kal-cal__cell { min-height: 50px; }
  .osc-kal-cal__event { display: none; }
  .osc-kal-cal__cell--has-events::after {
    content: '•'; display: block;
    text-align: center; font-size: 0.9rem; color: var(--wp--preset--color--eiserne);
  }
  .osc-kal-item__date { min-width: 56px; padding: 0.75rem 0.5rem; }
  .osc-kal-item__day { font-size: 1.35rem; }
  .osc-kal-item__year { display: none; }
}
