
/*Dark oder Lightmode*/


:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    /* …weitere Variablen z.B. --link-color, --header-bg etc. */
  }
  
  [data-theme="dark"] {
    --bg-color: #202124;
    --text-color: #eeeeee;
    /* …Dark-Mode-Anpassungen */
  }
  
  /* System-Voreinstellung anwenden, wenn noch kein LocalStorage-Eintrag da ist */
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
      --bg-color: #121212;
      --text-color: #eeeeee;
    }
  }
  
  /* Override im Dark-Mode */
  [data-theme="dark"] .wochentabelle {
    color: #000 !important;
  }
  
  /* Override im Dark-Mode */
  [data-theme="dark"] #prevWeek, #nextWeek {
    background-color: white !important;
  }
  
  /* Anwenden auf den ganzen Body */
  body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
  }
  
  
  [data-theme="dark"] table {
    color: #000 !important;
  }
  
  [data-theme="dark"] .nav-calendar h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #ffffff;
  }
  
  
  
  /*Headeransicht*/
  
  
      header {
          background: linear-gradient(90deg, #001f3f, #003366, #004080);
          color: white;
          position: relative;
          z-index: 100;
        }
  
    .header-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 20px;
      position: relative;
    }
  
    .logo {
      font-size: 1.5em;
      font-weight: bold;
      font-family: 'Poppins', sans-serif;
    }
  
    nav.desktop-nav {
      display: flex;
      gap: 20px;
      font-family: 'Poppins', sans-serif;
    }
  
    nav a {
      color: white;
      text-decoration: none;
      padding: 8px 12px;
      transition: background 0.3s;
    }
  
    nav a:hover {
      background-color: #0362c2;
      border-radius: 5px;
    }
  
    #themeToggle{
      filter: invert(100%);
    }
  
    #themeToggle:hover{
      filter:none;
      background-color: #0362c2;
      border-radius: 5px;
    }
  
  
    #hierbistdu {
      background-color: #0362c2;
      border-radius: 5px;
    }
  
  
    #themeToggle {
      background: none;
      border: none;
      font-size: 1.5em;
      cursor: pointer;
      padding: 5px;
      margin-left: 20px; /* je nach Layout */
    }
  
  
    .burger {
      display: none;
      position: absolute;
      right: 20px;
      top: 18px;
      width: 30px;
      height: 24px;
      flex-direction: column;
      justify-content: space-between;
      cursor: pointer;
      z-index: 200;
    }
  
    .burger div {
      height: 3px;
      background-color: white;
      transition: all 0.3s ease;
    }
  
    .burger.open div:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }
  
    .burger.open div:nth-child(2) {
      opacity: 0;
    }
  
    .burger.open div:nth-child(3) {
      transform: rotate(-45deg) translate(6px, -6px);
    }
  
    .mobile-nav {
      font-family: 'Poppins', sans-serif;
      position: fixed;
      top: 0;
      right: -100%;
      width: 100%;
      height: 90vh;
      background: linear-gradient(90deg, #001f3f, #003366, #004080);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      transition: right 0.3s ease;
      z-index: 150;
      pointer-events: none;
    }
  
    .mobile-nav.open {
      pointer-events: auto;
      right: 0;
    }
  
    .mobile-nav a {
      position: relative; /* wichtig für das ::before-Element */
      color: white;
      text-decoration: none;
      padding: 25px;
      font-size: 1.2em;
      width: 100%;
      text-align: center;
    }
    
    .mobile-nav a::before {
      content: "";
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 70%;
      height: 0.5px;
      background-color: #f4f6f7;
    }
  
  
   /* Trennlinie */
  .mobile-nav a:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
  }
  
    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      height: 100vh;
      width: 100vw;
      background: rgba(0, 0, 0, 0.5);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease;
      z-index: 140;
    }
  
    .overlay.show {
      opacity: 1;
      visibility: visible;
    }
  
    @media (max-width: 900px) {
      nav.desktop-nav {
        display: none;
      }
  
      .burger {
        display: flex;
      }
    }
  
    @media (min-width: 901px) {
      .mobile-nav,
      .overlay {
        display: none;
      }
    }
  
  
  
  /*Headeransicht Ende*/
  
  
  
  
  
  /* Suche */



  
  

  
  /*Ende*/

  

  .calendar-container {
    width: 80%;
    margin: 50px auto;
    margin-top:20px;
    font-family: 'Montserrat', sans-serif;
  }
  .nav-calendar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
  }
  .nav-calendar button {
    background: #4a90e2;
    border: none;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  .nav-calendar h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #333;
  }
  .week-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 16px;
    overflow: hidden;
  }
  .week-card table {
    width: 100%;
    border-collapse: separate;
    background-color: transparent;
  }
  .week-card th,
  .week-card td {
    border: 1px solid #e0e0e0;
    padding: 8px;
    font-size: 0.9rem;
    text-align: left;
    background: #fff;
    font-family: 'Poppins', sans-serif;
  }
  .week-card th {
    background: #4a90e2;
    color: #fff;
    font-weight: 500;
    text-align: center;
  }
  /* Rundungen */
  .week-card table tr:first-child th:first-child { border-top-left-radius: 10px; }
  .week-card table tr:first-child th:last-child  { border-top-right-radius: 10px; }
  .week-card table tr:last-child td:first-child  { border-bottom-left-radius: 10px; }
  .week-card table tr:last-child td:last-child   { border-bottom-right-radius: 10px; }
  .event-list {
    list-style: none;
    padding-left: 0;
    margin-top: 4px;
  }
  .event-list li {
    font-size: 0.9rem;
    color: black;
  }
  .cleaning-cell {
    font-weight: 600;
    background: #f0f0f0;
    font-family: 'Poppins', sans-serif;
  }

  .week-card td.cleaning-cell {
    background-color: #f0f0f0 !important;
  }
 
  .week-card td:first-child {
    width: 35%;
    white-space: nowrap;
  }

     
    
    /*Mobile Ansicht*/
  
  
  
          
          
      @media (max-width: 800px) {
        .calendar-container {
            width: 100%;
            margin: 0;
            margin-top:20px;
          }
    }
  
  
  

  
    
  

    
  
  
  /*DRUCKERANSICHT*/
  
  
  #print-btn-container {
    text-align: right;
    margin: 2em 0;
    padding-right: 10%; 
  }
 #print-btn {
    padding: 0.4em 0.8em;
    font-size: 0.9rem;
    background: transparent;
    color: #0077cc;
    border: 1px solid #0077cc;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
#print-btn:hover {
    background-color: rgba(0, 119, 204, 0.1);
  }
  
  @media (max-width: 800px) {
    .print-button-container {
      padding-right: 0%;
    }
  }
  
  
  
  /*Funktion*/
  

  @media print {
    /* alles ausblenden */
    body * {
      visibility: hidden !important;
    }
    /* nur den Kalenderbereich sichtbar */
    .calendar-container,
    .calendar-container * {
      visibility: visible !important;
    }
    /* Kalender oben links platzieren */
    .calendar-container {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
    }
    /* Monats-Navigations-Buttons verstecken */
    .calendar-container .nav-calendar button {
      display: none !important;
    }
  }