/* ==========================================================
   FUZ MICO – CALENDAR TABLE
   ========================================================== */


/* ==========================================================
   Reset: keine Zebra-Stripes, kein TR-hover innerhalb des Kalenders
   ========================================================== */
.fuz-mico-calendar-table,
.fuz-mico-calendar-table thead,
.fuz-mico-calendar-table tbody,
.fuz-mico-calendar-table tr,
.fuz-mico-calendar-table th,
.fuz-mico-calendar-table td {
  background: transparent;
}

.fuz-mico-calendar-table tbody tr:nth-child(even),
.fuz-mico-calendar-table tbody tr:nth-child(odd) {
  background: transparent;
}

table tbody > tr:nth-child(2n+1) > td,
table tbody > tr:nth-child(2n+1) > th {
  background-color: transparent;
}

/* Falls das Theme tr:hover einfärbt */
.fuz-mico-calendar-table tbody tr:hover {
  background: transparent !important;
}

/* ==========================================================
   Zebra Rows – kontrolliert (tbody)
   ========================================================== */

/* Ungerade Zeilen */
.fuz-mico-calendar-table tbody tr:nth-child(odd) td,
.fuz-mico-calendar-table tbody tr:nth-child(odd) th {
  background: rgba(209, 220, 227, 0.33);
}

/* Gerade Zeilen */
.fuz-mico-calendar-table tbody tr:nth-child(even) td,
.fuz-mico-calendar-table tbody tr:nth-child(even) th {
  background: #ffffff;
}



/* Wrapper: erlaubt horizontales Scrollen */
.fuz-mico-calendar {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fuz-mico-calendar table thead:first-child tr:first-child th {
	border-block-start: 0;
}

.fuz-mico-calendar button {
	padding: 0;
}
/* ----------------------------------------------------------
   Tabelle – fixes Grid
   ---------------------------------------------------------- */
.fuz-mico-calendar-table {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 10px;
  width: auto;
  min-width: calc(280px + (19 * 48px)); /* 4–22 Februar = 19 Tage */
}

/* ----------------------------------------------------------
   Kopfzeile
   ---------------------------------------------------------- */
.fuz-mico-calendar-table thead th {
  height: 48px;
  padding: 0;
  vertical-align: middle;
  font-weight: 700;
	border: none;
	border-radius: 10px;
	color: #294754;
}

/* Erste Kopfzelle ("Februar") */
.fuz-mico-head-left {
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  text-align: left;
}

/* Tages-Kopfzellen */
.fuz-mico-head-day {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  text-align: center;
}

/* ----------------------------------------------------------
   Body – Zeilen & Zellen
   ---------------------------------------------------------- */
.fuz-mico-calendar-table tbody th,
.fuz-mico-calendar-table tbody td {
  height: 48px;
  padding: 0;
  vertical-align: middle;
	border: none;
	border-radius: 10px;
}

/* ----------------------------------------------------------
   Erste Spalte – Sportarten
   ---------------------------------------------------------- */
.fuz-mico-sportart-cell {
  width: 280px;
  min-width: 280px;
  max-width: 280px;
}

.fuz-mico-sportart {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  min-width: 0;
}

.fuz-mico-sportart-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 auto;
}

.fuz-mico-sportart-name {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
	color: #294754;
}

/* ----------------------------------------------------------
   Tages-Zellen
   ---------------------------------------------------------- */
.fuz-mico-cell {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
}

/* Zell-Innenleben (Kachel) */
.fuz-mico-cell .table-cell-inner {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ----------------------------------------------------------
   Marker Button
   ---------------------------------------------------------- */
button.fuz-mico-marker-btn {
  all: unset;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
	box-shadow: none;
	border-radius: 10px;
}

button.fuz-mico-marker-btn:focus-visible {
  outline: 2px solid #27404b;
  outline-offset: 3px;
  border-radius: 12px;
	background: #27404b;
}

button.fuz-mico-marker-btn:hover {
	background: #27404b;
}

.fuz-mico-marker {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #27404b;
}

.fuz-mico-marker-btn:focus-visible .fuz-mico-marker,
.fuz-mico-marker-btn:hover .fuz-mico-marker
{
	background: white;
}

/* ----------------------------------------------------------
   Hover Highlight (Zeile + Spalte)
   ---------------------------------------------------------- */
.fuz-mico-cell.is-highlight .table-cell-inner {
  background: #27404b;
	color: white;
}

.fuz-mico-head-day.is-highlight {
  background: #e6ecef; /* gleiche Farbe wie Zellen */
  border-radius: 8px;
}

/* Highlight für Tages-Header */
.fuz-mico-head-day.is-highlight {
  background: #27404b;
  border-radius: 8px;
	color: white;
}

/* Highlight für Sportart-Zelle (erste Spalte) */
.fuz-mico-sportart-cell.is-highlight .fuz-mico-sportart {
  background: #27404b;
  border-radius: 12px;
	color: white;
}

.fuz-mico-sportart-cell.is-highlight .fuz-mico-sportart .fuz-mico-sportart-name {
	color: white;	
}

/*Für Button marker when highlighted*/

.fuz-mico-cell.is-highlight .table-cell-inner .fuz-mico-marker {
	background: white;
}

/* ==========================================================
   FUZ MICO – MODAL
   ========================================================== */

/* Scroll lock */
html.fuz-mico-modal-open,
html.fuz-mico-modal-open body {
  overflow: hidden;
}

/* ----------------------------------------------------------
   Overlay
   ---------------------------------------------------------- */
.fuz-mico-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9998;
  display: none;
}

/* ----------------------------------------------------------
   Modal Wrapper
   ---------------------------------------------------------- */
.fuz-mico-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  padding: 24px;
  overflow-y: auto;
}

/* Modal aktiv */
.fuz-mico-calendar.is-open .fuz-mico-overlay {
  display: block;
}

.fuz-mico-calendar.is-open .fuz-mico-modal {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ----------------------------------------------------------
   Modal Inner
   ---------------------------------------------------------- */
.fuz-mico-modal-inner {
  width: 100%;
  max-width: 1100px;
}

/* ----------------------------------------------------------
   Modal Content
   ---------------------------------------------------------- */
.fuz-mico-modal-content {
  background: #2f4751;
  color: #ffffff;
  border-radius: 36px;
  padding: 32px 32px 36px;
  position: relative;
}

/* ----------------------------------------------------------
   Modal Header
   ---------------------------------------------------------- */
.fuz-mico-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.fuz-mico-modal-pill {
  background: rgba(255, 255, 255, 0.85);
  color: #1f2f36;
  border-radius: 14px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
}

.fuz-mico-modal-sportart-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Close Button */
.fuz-mico-modal-close {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 1.625rem;
  line-height: 1;
  cursor: pointer;
}

.fuz-mico-modal-close:hover {
  opacity: 0.8;
}

/* ----------------------------------------------------------
   Loading / Error
   ---------------------------------------------------------- */
.fuz-mico-modal-loading,
.fuz-mico-modal-error {
  padding: 48px 0;
  text-align: center;
  font-size: 1.125rem;
}

/* ----------------------------------------------------------
   Events
   ---------------------------------------------------------- */
.fuz-mico-event {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.fuz-mico-event:first-child {
  border-top: none;
}

.fuz-mico-event-sub {
  font-size: 0.875rem;
  opacity: 0.9;
}

.fuz-mico-event-title {
  margin: 6px 0 0;
  font-size: 2.375rem;
  line-height: 1.05;
}

/* ----------------------------------------------------------
   Athletes Grid
   ---------------------------------------------------------- */
.fuz-mico-athletes {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 36px;
}

@media (max-width: 768px) {
  .fuz-mico-athletes {
    grid-template-columns: 1fr;
  }

  .fuz-mico-event-title {
    font-size: 1.75rem;
  }
}

/* ----------------------------------------------------------
   Athlete Item
   ---------------------------------------------------------- */
.fuz-mico-athlete {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fuz-mico-athlete-img {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 62px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fuz-mico-athlete-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fuz-mico-athlete-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.fuz-mico-athlete-name {
  font-size: 1.125rem;
  font-weight: 500;
}

.fuz-mico-athlete-note {
  margin-top: 2px;
  font-size: 0.875rem;
  opacity: 0.9;
}

.fuz-mico-star {
  margin-left: 2px;
}


/*Hinweis unter der Athleten liste*/

.fuz-mico-event-note {
  margin-top: 32px;
  font-size: 0.875rem;
  opacity: 0.85;
}
