/* ============================================================
   MuGeBa Eventkalender – Frontend Styles (Sweet Spot)
   Clean Struktur + Farbe + Bilder + grosse Typografie
   ============================================================ */

:root {
  --mugeba-ink:   #1a1814;
  --mugeba-mid:   #6b6560;
  --mugeba-light: #a09a94;
  --mugeba-rule:  #e2ddd8;
  --mugeba-bg:    #f7f4ef;
}

.mugeba-events-wrap {
  font-family: 'DM Sans', -apple-system, 'Segoe UI', sans-serif;
  color: var(--mugeba-ink);
  max-width: 760px;
  -webkit-font-smoothing: antialiased;
}

.mugeba-events-title {
  font-family: Georgia, serif;
  font-size: 36px; font-weight: 400; font-style: italic;
  color: var(--mugeba-ink);
  margin-bottom: 32px;
}

.mugeba-no-events {
  font-size: 14px; color: var(--mugeba-light); padding: 32px 0;
}

.mugeba-events-list { display: flex; flex-direction: column; }

/* Month divider */
.mugeba-month-divider {
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--mugeba-light);
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--mugeba-rule);
  margin: 48px 0 0;
}
.mugeba-month-divider:first-child { margin-top: 0; }

/* ── Event item ── */
.mugeba-event-item {
  display: grid;
  grid-template-columns: 64px 72px 1fr;
  gap: 0 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--mugeba-rule);
  text-decoration: none;
  color: inherit;
  position: relative;
  cursor: pointer;
}
.mugeba-event-item:last-child { border-bottom: none; }

.mugeba-event-item::before {
  content: '';
  position: absolute;
  inset: 0 -12px;
  border-radius: 10px;
  background: transparent;
  transition: background .15s;
}
.mugeba-event-item:hover::before { background: rgba(0,0,0,.03); }
.mugeba-event-item > * { position: relative; z-index: 1; }

/* Left colour bar – repurposed as date card border accent */
.mugeba-event-bar { display: none; }

/* ── Date card ── */
.mugeba-event-date {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 62px; height: 62px;
  border-radius: 12px;
  background: white;
  border: 1.5px solid var(--mugeba-rule);
  flex-shrink: 0;
}
.mugeba-event-highlight .mugeba-event-date {
  background: var(--mugeba-ink);
  border-color: var(--mugeba-ink);
}

.mugeba-date-day {
  font-family: Georgia, serif;
  font-size: 28px; font-weight: 400; line-height: 1;
  color: var(--mugeba-ink) !important;
  display: block; font-style: italic;
}
.mugeba-event-highlight .mugeba-date-day { color: #F9C623 !important; }

.mugeba-date-month {
  font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--mugeba-light);
  display: block; margin-top: 2px;
}
.mugeba-event-highlight .mugeba-date-month { color: #888; }

.mugeba-date-year { display: none; }

/* ── Thumbnail ── */
.mugeba-event-thumb {
  width: 72px; height: 62px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #ece8e2;
}
.mugeba-event-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ── Content ── */
.mugeba-event-content { flex: 1; min-width: 0; }
.mugeba-event-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.mugeba-event-cats { display: flex; gap: 6px; align-items: center; }

.mugeba-event-cat {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  color: var(--mugeba-light) !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: flex; align-items: center; gap: 6px;
}

/* Colour dot before category – injected via box-shadow trick */
.mugeba-event-cat::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--event-color, var(--mugeba-light));
  flex-shrink: 0;
}

.mugeba-event-star {
  font-size: 10px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  background: #fff8e6; border: 1px solid #fde68a;
  color: #92400e;
  padding: 2px 8px; border-radius: 99px;
}

.mugeba-event-title {
  font-family: Georgia, serif;
  font-size: 21px; font-weight: 400; line-height: 1.25;
  color: var(--mugeba-ink);
  margin: 0 0 6px;
}
.mugeba-event-title a { color: inherit; text-decoration: none; }
.mugeba-event-title a:hover { text-decoration: underline; text-underline-offset: 3px; }

.mugeba-event-excerpt {
  font-size: 13px; color: var(--mugeba-light);
  line-height: 1.55; margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mugeba-event-meta { display: flex; flex-wrap: wrap; }
.mugeba-meta-item {
  font-size: 13px; color: var(--mugeba-light);
  display: inline-flex; align-items: center;
}
.mugeba-meta-item + .mugeba-meta-item::before {
  content: '·'; margin: 0 7px; color: #d5cfc9;
}
.mugeba-meta-item svg { display: none; }
.mugeba-meta-item a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Arrow – hide */
.mugeba-event-arrow { display: none; }

/* ── Responsive ── */
@media (max-width: 580px) {
  .mugeba-event-item { grid-template-columns: 58px 1fr; gap: 0 14px; }
  .mugeba-event-thumb { display: none; }
  .mugeba-event-title { font-size: 17px; }
  .mugeba-date-day { font-size: 24px; }
  .mugeba-event-date { width: 54px; height: 54px; border-radius: 10px; }
}


/* ============================================================
   COUNTDOWN WIDGET
   ============================================================ */

.mugeba-countdown {
  background: #1a1814;
  border-radius: 14px;
  padding: 22px 20px 20px;
  font-family: -apple-system, 'Segoe UI', sans-serif;
}
.mugeba-cd-event-name {
  font-size: 12px; font-weight: 600; color: #666;
  text-align: center; margin-bottom: 14px;
  letter-spacing: .04em; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.mugeba-cd-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 6px; margin-bottom: 12px;
}
.mugeba-cd-unit {
  background: #2a2520; border-radius: 8px;
  padding: 10px 4px; text-align: center;
  border: 1px solid #332e28;
}
.mugeba-cd-num {
  display: block; font-size: 24px; font-weight: 700;
  line-height: 1; color: #fff;
  font-variant-numeric: tabular-nums;
}
.mugeba-cd-label {
  display: block; font-size: 9px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: #555; margin-top: 4px;
}
.mugeba-cd-date {
  text-align: center; font-size: 11px; color: #555;
  margin-bottom: 12px; font-weight: 500;
}
.mugeba-cd-link {
  display: block; text-align: center; padding: 9px;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  color: white; text-decoration: none; transition: opacity .15s;
}
.mugeba-cd-link:hover { opacity: .85; color: white; }


/* ============================================================
   NEXT EVENTS SIDEBAR WIDGET
   ============================================================ */

.mugeba-next-events-list { list-style: none; margin: 0; padding: 0; }
.mugeba-ne-item { border-bottom: 1px solid var(--mugeba-rule, #e2ddd8); }
.mugeba-ne-item:last-child { border-bottom: none; }
.mugeba-ne-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; text-decoration: none; color: inherit;
  transition: opacity .15s;
}
.mugeba-ne-link:hover { opacity: .7; }
.mugeba-ne-date {
  display: flex; flex-direction: column;
  align-items: center; width: 34px; flex-shrink: 0;
}
.mugeba-ne-day {
  font-family: Georgia, serif; font-style: italic;
  font-size: 22px; font-weight: 400; line-height: 1;
  color: var(--mugeba-ink, #1a1814);
}
.mugeba-ne-month {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--mugeba-light, #a09a94);
  margin-top: 1px;
}
.mugeba-ne-info { flex: 1; min-width: 0; }
.mugeba-ne-title {
  font-size: 13px; font-weight: 600;
  color: var(--mugeba-ink, #1a1814);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mugeba-ne-meta {
  font-size: 11px; color: var(--mugeba-light, #a09a94);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mugeba-ne-dot { display: none; }
