
/*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"] .table-info {
    color: white;
  }
  
  
  
  /*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 */
  
  .search-container {
    text-align: center;
    margin: 20px 0;
  }
  
  #searchInput {
    width: 50%;
    padding: 10px;
    font-size: 16px;
    border-radius: 20px;
    border: 1px solid #ccc;
  }
  
  
  
  
  .view-buttons {
    display: flex;
    justify-content: center;
    gap: 1em;
    padding: 1em 2em;
    margin-bottom: 1.5em;
  }
  
  
  .view-buttons button {
    position: relative;
    background: transparent;
    color: #0077cc;
    border: 2px solid #0077cc;
    border-radius: 999px;
    padding: 0.6em 1.4em;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: 
      background-color 0.3s ease, 
      color 0.3s ease,
      transform 0.2s ease;
  }
  
  .view-buttons button:hover {
    background: rgba(0, 119, 204, 0.08);
  }
  
  .view-buttons button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 119, 204, 0.3);
  }
  
  .view-buttons button.active {
    background: #0077cc;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 119, 204, 0.3);
    transform: translateY(-2px);
  }
  
  
  
  .highlight {
    background-color: yellow;
  }
  
  .table-info {
    font-weight: bold;
    margin-bottom: 1em;
    color: #333;
    text-align: center; /* zentriert */
    margin-top:30px;
  }
  
  /*Ende*/
  
  body {
    font-family: 'Poppins', sans-serif;
  }

  .pdf-accordion {
    max-width: 600px;
    margin: 0 auto;
    margin-top:50px;
  }

  /* Entfernt den Standard-Pfeil */
  .pdf-accordion summary::-webkit-details-marker {
    display: none;
  }
  .pdf-accordion summary::marker {
    display: none;
  }

  .pdf-accordion details {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1em;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }

  .pdf-accordion summary {
    cursor: pointer;
    padding: 1em 1.5em;
    position: relative;
    font-size: 1.1em;
    font-weight: 600;
    color: black;
    background: rgb(222, 219, 219);
    transition: background 0.3s;
  }
  .pdf-accordion summary:hover {
    background: rgb(242, 239, 239);
  }

  /* Pfeil nach rechts/ unten */
  .pdf-accordion summary::before {
    content: "►";
    position: absolute;
    left: 1em;
    transition: transform 0.2s;
  }
  .pdf-accordion details[open] summary::before {
    transform: rotate(90deg);
  }

  .pdf-accordion .content {
    padding: 1em 1.5em;
    border-top: 1px solid #eee;
    background: #fafafa;
  }

  .pdf-accordion .content a {
    color: #4e73df;
    text-decoration: none;
    font-weight: 500;
  }
  .pdf-accordion .content a:hover {
    text-decoration: underline;
  }


  .pdf-accordion .content embed {
    display: block;          /* macht es zu einem Block-Element */
    margin: 0 auto 0.5em;    /* zentriert horizontal und gibt unten Abstand */
    width: 50%;              /* nimmt die halbe Breite des Containers ein */
    height: auto;            /* passt die Höhe automatisch an */
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
     
    
    /*Mobile Ansicht*/
  
  
  
          
          
      @media (max-width: 800px) {
    table {
      width:100%; 
      margin-left:0%;
      font-size:0.9em;
    }
  }
  
  
  @media (max-width: 800px) {
    .view-buttons button {
      position: relative;
      background: transparent;
      color: #0077cc;
      border: 2px solid #0077cc;
      border-radius: 999px;
      padding: 0.4em 1.0em;
      font-size: 0.8rem;
      font-weight: 500;
      cursor: pointer;
      transition: 
        background-color 0.3s ease, 
        color 0.3s ease,
        transform 0.2s ease;
    }
  }
    
  
    
  
      @media (max-width: 600px) {
   #Stand {
       margin-left:2%;
     font-size:10px;
    }
  }
  
  
  @media (max-width: 600px) {
    #searchInput {
      width: 95%;
      padding: 10px;
      padding-right:0px;
      font-size: 12px;
      border-radius: 20px;
      border: 1px solid #ccc;
    }
   }
  
  
  
   @media (max-width: 600px) {
   #Übersicht {
    font-size:10px;
    text-align:center;
    padding-bottom:10px;
  }
   }
  
   @media (max-width: 600px) {
    .treffer-info {
      position: relative;
      left: 50%;
      transform: translateX(-50%);
      width: 90%;
    }
   }
    
  
  
  /*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;
    }
  }
  