body {
      background-color: #000;
      color: #fff;
}

.outer-container {
  width: 100%;
  max-width: 900px;
  /* margin: 0.1rem auto;
  padding: 0.1rem;*/
  border: 1px solid #444;
  border-radius: 5px; 
  background-color: #000;
}

/* Entferntes inneres Feld; nun ohne Rahmen. */
.calendar-box {
  margin: 0.3rem 0;
  padding: 0.8rem;
}

/* Container für Pfeile (Links und Rechts) */
.arrow-container {
  border: 1px solid #555;
  border-radius: 4px;
  background-color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.arrow-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.calendar-header .month-year {
  font-size: 1.5rem;
  font-weight: bold;
}

.calendar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #333;
}

.calendar {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.calendar thead {
  background-color: #222;
}

.calendar th,
.calendar td {
  height: 3.5rem;
  border: 1px solid #444;
  padding: 0.5rem;
  position: relative;
}

/* Rote Wochentags-Kürzel */
.calendar th {
  color: #f00;
  font-weight: normal;
}


/* Heutiger Tag mit weißem Rand in Dark Mode */
.calendar .today {
  color: #222;
  font-weight: bold;
  border: 2px solid #fff;
  background-color: #ff8c00;
}

/* Kalenderwoche in rot-orange */
.week-number {
  color: #ff8c00;
  font-weight: bold;
  background-color: #222;

}

/* Aktueller Monat weiß, andere Monate grau */
.other-month {
  color: #999;
}

/* Wochenenden sollen denselben Hintergrund haben wie die Kopfzeile */
.weekend {
    background-color: #222;
}

/* Gesetzliche Feiertage in Niedersachsen: roter Hintergrund */
.holiday {
  background-color: #b00;
  color: #fff !important;
}

/* Schulferientage in hellgrün (wenn KEIN Feiertag) */
.ferientag {
    background-color: #7f7;
    color: #000;
  }

/* Überschneidung: wenn ein Tag sowohl ferientag als auch holiday ist,
    soll .holiday Vorrang haben:
    => CSS specificity: wir könnten .holiday.ferientag definieren,
    hier aber farblich trotzdem rot. */
.holiday.ferientag {
background-color: #b00 !important; /* rot hat Vorrang */
color: #fff !important;
}

/* Tooltip-Effekt für Feiertagsnamen (Desktop): */
.holiday:hover::after {
  content: attr(data-holiday);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #000;
  color: #fff;
  padding: 0.3rem;
  border-radius: 5px;
  font-size: 0.8rem;
  white-space: nowrap;
  pointer-events: none;
}


/* Tooltip-Effekt für Ferientage (Desktop) */
.ferientag:hover::after {
    content: attr(data-ferien);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    color: #fff;
    padding: 0.3rem;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    pointer-events: none;
}

/* LIGHT MODE OVERRIDES */
.calendar.light-mode thead,
.calendar.light-mode .weekend {
  background-color: #ddd !important; /* Die gleiche Hintergrundfarbe für Kopfzeile und Wochenende */
}

.calendar.light-mode thead th {
  color: #f00 !important; /* Rot beibehalten */
}

.calendar.light-mode td {
  background-color: #f5f5f5;
  color: #000;
}

.calendar.light-mode .week-number {
  color: #2a6118 !important; /* Dunkelgelb beibehalten */
  background-color:#ddd;
}

/* Ferien im Light Mode => ebenfalls hellgrün */
.calendar.light-mode .ferientag {
    background-color: #7f7 !important;
    color: #000;
}

.calendar.light-mode .holiday {
  background-color: #b00 !important; /* Roter Hintergrund beibehalten */
  color: #fff !important;
}

.calendar.light-mode .other-month {
  color: #bbb !important;
}

/* Heutiger Tag Rand in Light Mode */
.calendar.light-mode .today {
  color: #000 !important;
  border: 2px solid #000;
  background-color: #ff8c00 !important;
}

/*Container Umschalter Hell - Dunkel */
.light-dark-container {
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: left;
}

/* Umschalter Hell - Dunkel */
.light-dark-btn {
  padding: 0.5rem;
  border: 1px solid #555;
  border-radius: 4px;
  background: #444;
  color: #fff;
  font-size: 1rem;
}


/* Ferien-Container */
#ferien-container {
    margin-top: 0.5rem;
    background-color: #222;
    padding: 0.5rem;
    border-top: 1px solid #444;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}
#ferien-container h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

#ferien-list {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.5;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .outer-container {
    padding: 8px;
    border: 1px solid #444;
  }
  .arrow-container {
    background-color: #444;
  }

  .calendar-box {
    margin: 0px;
    padding: 0px;
  }
  .calendar thead {
    font-size: 1rem;
  }
  .calendar td {
    height: 1rem;
    font-size: 1rem;
  }
  .calendar th {
    padding: 0.3rem;
  }
  #ferien-container {
    margin-top: 1.2rem;
    padding: 1rem;
    border: 1px solid #555;
  }
}


