.calendar-section {
  animation: fadeIn 0.6s ease;
}

.calendar-wrapper {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 30px;
  border-radius: 20px;
  margin-top: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 0 0 1px rgba(255,255,255,0.5);
  position: relative;
  z-index: 1;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  max-width: 620px;
  margin: 0 auto 30px;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease;
  position: relative;
  z-index: 2;
}

.monthTitle {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: #401d68;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.calendar.show {
  opacity: 1;
  transform: scale(1);
}

.day {
  background: #fff;
  border-radius: 12px;
  position: relative;
  border: 2px solid transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.95em;
  z-index: 1;
  padding: 10px 4px;
}

.day:hover {
  z-index: 100;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.day.today {
  outline: 3px solid #667eea;
  outline-offset: -2px;
  font-weight: 700;
}

.event-day {
  cursor: pointer;
  font-weight: 600;
  border-color: rgba(132, 250, 176, 0.5);
}

.event-day:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Farbliche Markierungen für verschiedene Event-Typen */
.event-day[data-event-type="boardgame"] {
  background: linear-gradient(135deg, #69f387 0%, #5de078 100%);
}

.event-day[data-event-type="rpg"] {
  background: linear-gradient(135deg, #ffba99 0%, #ffa380 100%);
}

.event-day[data-event-type="short-boardgame"] {
  background: linear-gradient(135deg, #ccfba8 0%, #b8f093 100%);
}

.event-day[data-event-type="special"] {
  background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.event-day[data-event-type="lndb"] {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: #fff;
}

.event-day[data-event-type="cubus"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.event-day[data-event-type="multiple"] {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.weekday-header {
  font-weight: 700;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px;
  padding: 10px 5px;
  font-size: 0.85em;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.controls {
  margin: 20px 0;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
}

button {
  padding: 10px 22px;
  font-size: 15px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:hover::before {
  width: 300px;
  height: 300px;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

button:active {
  transform: translateY(-1px) scale(0.98);
}

/* Calendar Legend */
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.6);
  border-radius: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82em;
  color: #555;
  font-weight: 500;
}

.legend-dot {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  flex-shrink: 0;
}

.legend-dot.boardgame { background: linear-gradient(135deg, #69f387, #5de078); }
.legend-dot.rpg { background: linear-gradient(135deg, #ffba99, #ffa380); }
.legend-dot.short-boardgame { background: linear-gradient(135deg, #ccfba8, #b8f093); }
.legend-dot.special { background: linear-gradient(135deg, #84fab0, #8fd3f4); }
.legend-dot.lndb { background: linear-gradient(135deg, #ff6b6b, #ee5a6f); }
.legend-dot.cubus { background: linear-gradient(135deg, #667eea, #764ba2); }
.legend-dot.multiple { background: linear-gradient(135deg, #a8edea, #fed6e3); }

/* Event Detail Modal */
.event-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.event-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.event-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
  position: relative;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.event-modal-overlay.active .event-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.event-modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.event-modal-header-text h3 {
  font-size: 1.3em;
  margin: 0 0 4px;
  color: #1a1a2e;
  font-weight: 700;
}

.event-modal-header-text .modal-date {
  font-size: 0.9em;
  color: #888;
  font-weight: 500;
}

.event-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  color: #666;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: none;
}

.event-modal-close:hover {
  background: #e8e8e8;
  color: #333;
  transform: none;
  box-shadow: none;
}

.event-modal-close::before {
  display: none;
}

.event-modal-body {
  padding: 20px 24px 24px;
}

.modal-event-card {
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 12px;
  border-left: 4px solid;
  transition: transform 0.2s ease;
}

.modal-event-card:last-child {
  margin-bottom: 0;
}

.modal-event-card:hover {
  transform: translateX(4px);
}

.modal-event-card.boardgame {
  background: linear-gradient(135deg, rgba(52,208,88,0.08), rgba(52,208,88,0.02));
  border-left-color: #34d058;
}

.modal-event-card.rpg {
  background: linear-gradient(135deg, rgba(255,140,66,0.08), rgba(255,140,66,0.02));
  border-left-color: #ff8c42;
}

.modal-event-card.short-boardgame {
  background: linear-gradient(135deg, rgba(139,195,74,0.08), rgba(139,195,74,0.02));
  border-left-color: #8bc34a;
}

.modal-event-card.special {
  background: linear-gradient(135deg, rgba(132,250,176,0.1), rgba(143,211,244,0.05));
  border-left-color: #84fab0;
}

.modal-event-card.lndb {
  background: linear-gradient(135deg, rgba(255,107,107,0.08), rgba(238,90,111,0.02));
  border-left-color: #ff6b6b;
}

.modal-event-card.cubus {
  background: linear-gradient(135deg, rgba(102,126,234,0.08), rgba(118,75,162,0.02));
  border-left-color: #667eea;
}

.modal-event-icon {
  font-size: 1.4em;
  margin-bottom: 8px;
}

.modal-event-name {
  font-weight: 700;
  font-size: 1.05em;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.modal-event-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88em;
  color: #666;
  margin-bottom: 4px;
  line-height: 1.5;
}

.modal-event-detail a {
  color: #667eea;
  font-weight: 600;
}

.regular-event {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.event-icon {
  font-size: 2em;
  min-width: 50px;
  text-align: center;
  padding: 10px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.regular-event:hover .event-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

.event-content {
  flex: 1;
}

.event-content h3 {
  margin-top: 5px;
  font-size: 1.15em;
  color: #333;
}

.event-location {
  font-size: 0.9em;
  color: #666;
  margin: 5px 0;
}

.event-description {
  font-size: 0.95em;
  color: #555;
  margin: 10px 0;
  line-height: 1.5;
}

.event-link {
  display: inline-block;
  margin-top: 10px;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
  transition: all 0.3s ease;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(102, 126, 234, 0.1);
}

.event-link:hover {
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Mini Countdown Styles */
.mini-countdown {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 16px;
  margin: 15px 0;
  color: white;
  text-align: center;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}

.mini-countdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.countdown-label-mini {
  font-size: 0.9em;
  margin-bottom: 10px;
  opacity: 0.95;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.countdown-mini-display {
  font-size: 1.5em;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 8px 0;
  font-family: 'Courier New', monospace;
  position: relative;
  z-index: 1;
}

.countdown-mini-display span {
  background: rgba(255, 255, 255, 0.25);
  padding: 6px 10px;
  border-radius: 8px;
  margin: 0 3px;
  display: inline-block;
  min-width: 35px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.countdown-mini-display span:hover {
  transform: scale(1.1);
}

.countdown-date-mini {
  font-size: 0.85em;
  margin-top: 10px;
  opacity: 0.95;
  font-style: italic;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.countdown-item {
  border-left: 4px solid #667eea;
}

.countdown-item:hover {
  border-left-color: #764ba2;
}

.featured-countdown {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
  border-left: 5px solid #667eea;
  margin-bottom: 20px;
  padding: 20px;
}

.featured-countdown:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
  transform: translateY(-3px);
}

.countdown-header {
  font-size: 1.4em;
  margin: 0 0 15px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* LNDB Event Styles */
.lndb-event {
  border-left-color: #ff6b6b;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(238, 90, 111, 0.05) 100%);
}

.lndb-event:hover {
  border-left-color: #ee5a6f;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(238, 90, 111, 0.1) 100%);
}

.lndb-countdown {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.lndb-event h3 {
  color: #ff6b6b;
}

/* Cubus Event Styles */
.cubus-event {
  border-left-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.cubus-event:hover {
  border-left-color: #764ba2;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.cubus-countdown {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cubus-event h3 {
  color: #667eea;
}

/* Other Event Styles */
.other-event {
  border-left-color: #c2a25d;
  background: linear-gradient(135deg, rgba(194, 162, 93, 0.05) 0%, rgba(139, 115, 66, 0.05) 100%);
}

.other-event:hover {
  border-left-color: #a08850;
  background: linear-gradient(135deg, rgba(194, 162, 93, 0.1) 0%, rgba(139, 115, 66, 0.1) 100%);
}

.other-countdown {
  background: linear-gradient(135deg, #c2a25d 0%, #8b7342 100%);
}

.other-event h3 {
  color: #8b7342;
}

.calendar-special-event {
  margin-top: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.6s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  padding: 30px;
}

.calendar-special-event h3 {
  font-size: 2.2em;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 15px;
}

.lndb-event.calendar-special-event .event-time { color: #ff6b6b; }
.cubus-event.calendar-special-event .event-time { color: #667eea; }
.other-event.calendar-special-event .event-time { color: #c2a25d; }

.calendar-special-event .event-time {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 15px;
}

.event-info-text {
  font-size: 1.05em;
  line-height: 1.7;
  color: #444;
  margin: 15px 0 20px 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
  border-left: 4px solid #ccc;
}

.lndb-event .event-info-text { background: rgba(255, 107, 107, 0.05); border-left-color: #ff6b6b; }
.cubus-event .event-info-text { background: rgba(102, 126, 234, 0.05); border-left-color: #667eea; }
.other-event .event-info-text { background: rgba(194, 162, 93, 0.05); border-left-color: #c2a25d; }

.calendar-special-event .lndb-countdown,
.calendar-special-event .cubus-countdown,
.calendar-special-event .other-countdown {
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  border: 2px solid rgba(255,255,255,0.3);
  margin: 25px 0;
}

.calendar-special-event .countdown-mini-display {
  font-size: 2em;
}

.calendar-special-event .event-location {
  font-size: 1.1em;
  font-weight: 600;
  margin: 15px 0;
}

.calendar-special-event .event-description {
  font-size: 1.05em;
  padding: 12px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  margin: 15px 0;
  font-weight: 500;
}

.event-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.highlight-item.animate {
  animation: fadeInUp 0.6s ease forwards;
}

.highlight-item.animate:nth-child(1) { animation-delay: 0.05s; }
.highlight-item.animate:nth-child(2) { animation-delay: 0.12s; }
.highlight-item.animate:nth-child(3) { animation-delay: 0.19s; }
.highlight-item.animate:nth-child(4) { animation-delay: 0.26s; }
.highlight-item.animate:nth-child(5) { animation-delay: 0.33s; }
.highlight-item.animate:nth-child(6) { animation-delay: 0.40s; }
.highlight-item.animate:nth-child(7) { animation-delay: 0.47s; }
.highlight-item.animate:nth-child(8) { animation-delay: 0.54s; }

.highlight-item:hover {
  transform: translateX(5px);
  background: rgba(0, 0, 0, 0.07);
}

.highlight-icon {
  font-size: 1.5em;
}

.highlight-text {
  font-size: 0.95em;
  font-weight: 600;
  color: #555;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .controls {
    gap: 5px;
  }

  button {
    padding: 10px 5px;
    font-size: 13px;
    flex: 1;
    min-width: 0;
  }

  .calendar-wrapper {
    padding: 20px 12px;
  }

  .calendar {
    gap: 5px;
  }

  .day {
    padding: 6px 2px;
    font-size: 0.85em;
    min-height: 44px;
    border-radius: 10px;
  }

  .monthTitle {
    font-size: 22px;
  }

  .weekday-header {
    font-size: 0.75em;
    padding: 8px 2px;
  }

  .calendar-legend {
    gap: 10px;
    padding: 10px 12px;
  }

  .legend-item {
    font-size: 0.75em;
  }

  .event-modal {
    max-width: 100%;
    border-radius: 16px;
  }

  .event-modal-header {
    padding: 20px 16px 14px;
  }

  .event-modal-body {
    padding: 16px;
  }

  .calendar-special-event {
    padding: 20px;
  }

  .calendar-special-event h3 {
    font-size: 1.6em;
  }

  .event-highlights {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .highlight-text {
    font-size: 0.85em;
  }
}

.all-events-btn {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.4px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 107, 107, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

.all-events-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 107, 107, 0.7);
}

.all-events-btn:active {
  transform: translateY(0);
}

.all-events-btn::before { display: none; }

#allEventsModal .event-modal { max-width: 560px; }

.all-events-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.all-events-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border-left: 4px solid #ccc;
  background: #f9f9f9;
  transition: transform 0.2s ease;
}

.all-events-card:hover { transform: translateX(4px); }

.all-events-card.type-lndb  { border-left-color: #ff6b6b; background: linear-gradient(135deg, rgba(255,107,107,0.07), rgba(255,107,107,0.02)); }
.all-events-card.type-cubus { border-left-color: #667eea; background: linear-gradient(135deg, rgba(102,126,234,0.07), rgba(102,126,234,0.02)); }
.all-events-card.type-other { border-left-color: #c2a25d; background: linear-gradient(135deg, rgba(194,162,93,0.07), rgba(194,162,93,0.02)); }

.all-events-icon { font-size: 1.8em; min-width: 40px; text-align: center; }

.all-events-info { flex: 1; }

.all-events-title {
  font-weight: 700;
  font-size: 1em;
  color: #1a1a2e;
  margin-bottom: 3px;
}

.all-events-meta {
  font-size: 0.82em;
  color: #777;
  line-height: 1.5;
}

.all-events-days {
  font-weight: 700;
  font-size: 0.85em;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  color: #fff;
  background: #aaa;
}

.type-lndb  .all-events-days { background: #ff6b6b; }
.type-cubus .all-events-days { background: #667eea; }
.type-other .all-events-days { background: #c2a25d; }
