
/*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;
}





/*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*/





/* Auswahl der Wochen und Suche */

.search-container {
  text-align: center;
  margin: 20px 0;
}

#searchInput {
  width: 50%;
  padding: 10px;
  font-size: 16px;
  border-radius: 20px;
  border: 1px solid #ccc;
}


.treffer-info {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  background-color: #f0f8ff;
  border: 1px solid #cce;
  border-radius: 8px;
  padding: 12px 20px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  color: #003366;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin: 30px 0 10px 0;
}




.nav-buttons {
  position: relative;
  height: 60px; /* oder je nach Buttonhöhe */
  margin-top: 20px;
  margin-bottom: 10px;
}

#prevWeek, #nextWeek {
  position: absolute;
  top: 0;
  padding: 12px 20px;
  border-radius: 30px;
  background-color: transparent;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  border: solid #004080 1px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#prevWeek {
  left: 10%;
}

#nextWeek {
  right: 10%;
}

#prevWeek:hover,
#nextWeek:hover {
  background-color: rgb(242, 239, 239);
  border: solid black 2px;
}


#Übersicht {
  text-align:center;
  padding-bottom:10px;
}

.suche-aktiv .week-wrapper table td {
  border-radius: 5px !important;
}


/*Auswahl der wochen Ende*/

#Stand {
	margin-left: 10%;
}


body {
	font-family:sans-serif;
}



table a {
	text-decoration: underline;
	font-weight: bold;
	color:black;
}






table {
	background-color:transparent;
	width:80%;
	margin-left:10%;
}

tr {
    background-color: rgb(242, 239, 239);
    padding-top:100px;
}

#Abrlu {
    border-bottom-left-radius:20px;
}

#Abrru {
    border-bottom-right-radius: 20px;
}


#Min_abr {
  table-layout: fixed;
	width:5%;
    border-top-left-radius: 20px;
}


#Name_abr {
  table-layout: fixed;
	width: 20%;
    border-top-right-radius: 20px;
}





#linksize {
    width:90%
}


#Lücke {
  background-color: transparent;
}



#Platzhalter {
    background-color: transparent;
    height:3em;
}

#Datum {
    font-family: 'Poppins', sans-serif;
	background-color: rgb(242, 239, 239);
	text-align:center;
	padding:0.1em;
    border: solid black 2px;
    border-radius: 20px;
}





.Min {
  table-layout: fixed;
	width:5%;
}


.Name {
  table-layout: fixed;
	width: 20%;
}



td {
	text-align: center;
}

#Schätze {
  font-family: 'Poppins', sans-serif;
	background:linear-gradient(135deg, #365b98, #4f77b2, #7fa3d6);
	font-size:0.5em;
    border-radius:20px;
}

#Verbessern {
  font-family: 'Poppins', sans-serif;
	background: linear-gradient(135deg, #cc9123, #e2aa4a, #f5c979);
  font-size:0.5em;
    border-radius:20px;
}

#Christleben {
  font-family: 'Poppins', sans-serif;
	background: linear-gradient(135deg, #a81305, #c7381f, #e75d3a);
  font-size:0.5em;
    border-radius:20px;
}	

#Thema {
	text-align:left;
}



.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%;
  }
}
   
  
  /*Mobile Ansicht*/



        
        
	@media (max-width: 800px) {
  table {
	width:100%; 
	margin-left:0%;
	font-size:0.9em;
  }
}


  

  

    @media (max-width: 800px) {
 #Stand {
	 margin-left:2%;
   font-size:12px;
  }
}


@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) {
  #prevWeek, #nextWeek {
    position: absolute;
    top: 0;
    padding: 6px 10px;
    border-radius: 30px;
    background-color: transparent;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12px;
    color:black;
    border: solid #004080 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
 }

 @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*/


@page {
  size: A4 portrait;
  margin: 5mm;
}



@media print {
  /* 1) Nur .week-wrapper drucken */
  body > *:not(.week-wrapper) {
    display: none !important;
  }
  html, body {
    margin: 0;
    padding: 0;
  }

  /* 2) Wrapper oben zentriert und skaliert */
  .week-wrapper {
    max-width: calc(100% - 10mm) !important;
    margin: 5mm auto 0 !important;        /* oben 5 mm, horizontal auto */
    box-sizing: border-box;
    transform-origin: top center;
    transform: scale(0. ninety) !important; /* feinjustieren: z.B. 0.92–0.96 */
    page-break-inside: avoid;
  }

  .week-wrapper a {
    color: inherit !important;           /* gleiche Farbe wie der umgebende Text */
    text-decoration: none !important;    /* keine Unterstreichung */
    font-weight: inherit !important;     /* gleiche Schriftstärke */
    cursor: default !important;          /* kein Hand-Cursor */
  }

  /* 3) Tabelle zentrieren und vorhandenes margin-left entfernen */
  .wochentabelle {
    width: 100% !important;
    margin: 0 auto !important;            /* überschreibt margin-left */
    border-collapse: collapse !important;
  }

  /* 4) Ränder entfernen, Puffer beibehalten */
  .wochentabelle th,
  .wochentabelle td {
    border: none !important;
    padding: 8px !important;
  }

  /* 5) Schriftgröße anpassen */
  .week-wrapper {
    font-size: 9pt !important;
    line-height: 1.2 !important;
  }
}

