
/*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;
  }
  
 

  
  
  /*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*/
  
  #Stand {
      margin-left: 10%;
  }
  
  
  body {
      font-family:sans-serif;
  }
  
  
  table {
    background-color: transparent;
    border-spacing:0;
    width:80%;
    margin-left:10%;
    margin-top:30px;
    /* statt collapse: separate nutzen */
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #ffffff;       /* optional: Rahmen um die ganze Tabelle */
    border-radius: 20px;          /* hier die Rundung */
    overflow: hidden;             /* damit Zellen-Ecken nicht überstehen */
  }

  th, td {
    border: 1px solid white;
  }

  th.header {
    text-align: left;
  }


  th.date {
    width:20%;
    text-align: central;
    white-space: nowrap;
  }

  td.content {
    text-align: center;
    padding:30px;
  }

  
 
  
  tr {
      background-color: rgb(242, 239, 239);
      padding-top:100px;
  }
  
  .Abrlu {
      border-bottom-left-radius:20px;
  }
  
  .Abrru {
      border-bottom-right-radius: 20px;
  }
  
  
  #Abrlo {
    border-top-left-radius: 20px;
  }
  
  #Abrro {
    border-top-right-radius: 20px;
  }
  
  
  #Titel {
    border-radius: 20px;
  }
  
  
  
  #Lücke {
    background-color: transparent;
  }
  
  
  
  #Platzhalter {
      background-color: transparent;
      height:3em;
  }
  
  
  
  
  
  td {
      text-align: center;
  }
  
  

  
  #Zeilezwei{
    background-color:rgb(222, 219, 219)
  }
  
     
    
    /*Mobile Ansicht*/
  
  
  
          
          
      @media (max-width: 800px) {
    table {
      width:100%; 
      margin-left:0%;
      font-size:0.9em;
    }
  }
  
  

  
    
  

    
  
  
  /*DRUCKERANSICHT*/
  
  
  .print-button-container {
    text-align: right;
    margin: 2em 0;
    padding-right: 10%; 
  }
  .print-button {
    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-button:hover {
    background-color: rgba(0, 119, 204, 0.1);
  }
  
  @media (max-width: 800px) {
    .print-button-container {
      padding-right: 0%;
    }
  }
  
  
  
  /*Funktion*/
  
  @page {
    size: A4 portrait;
    margin: 1;               /* kein zusätzlicher Rand vom Drucker */
  }
  
  @media print {
    /* alle Browser-Defaults für body/html entfernen */
    html, body {
      margin: 0;
      padding: 0;
    }
  
    /* alles ausblenden außer print-section */
    body * {
      visibility: hidden;
    }
    .print-section, .print-section * {
      visibility: visible;
    }
  
    /* Button verstecken */
    button, header {
      display: none !important;
    }
  
    .search-container {
      display: none !important;
    }
  
  
    /* print-section oben und horizontal zentriert,
       eigener Seitenrand von 10 mm nur hier */
    .print-section {
      position: relative;
      width: 190mm;           /* 210 mm – 2×10 mm Rand */
      margin: 10mm auto 0;    /* 10 mm oberer Rand, zentriert */
    }
  
    /* Tabellen so formatieren, dass alles passt */
    .print-section table {
      width: 90%;
      margin-left:5%;
      border-collapse: collapse;
      box-sizing: border-box;
    }
    .print-section th,
    .print-section td {
      font-size: 10pt;
    }
  }
  