/* === globale Basis === */
*, *::before, *::after {
    box-sizing: border-box;
  }
  
  html, body {
    height: 100%;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #f7f9fc;
    display: flex;
    flex-direction: column;
  }
  
  main {
    flex: 1;
    padding: 2em 1em;
  }

  main h1 {
  text-align: center;
  margin-bottom: 2em;
  margin-top: 0;
  max-width: auto; /* Oder wie deine .container */
  margin-left: auto;
  margin-right: auto;
  max-width: 80vw;
  }

  /* === Aufflackern wenn nicht eingeloggt verhindern === */
  body.auth-checking {
    visibility: hidden;
  }
  
  /* === Logo oben rechts === */
  .logo-ecke {
    position: fixed;
    top: 1em;
    right: 1em;
    width: 8vw;
    max-width: 120px;
    height: auto;
    aspect-ratio: 1 / 1;
    background: url("/images/logo1.png") no-repeat center;
    background-size: contain;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
  }
  @media (max-width: 800px) {
    .logo-ecke {
      display: none;
    }
  }
  
  /* === Burger-Menü === */
  #burgerMenu {
    position: fixed;
    top: 0.75em;
    left: 1em;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 1100;
  }
  /* Auf kleinen Bildschirmen: unten rechts */
  @media (max-width: 700px) {
    #burgerMenu {
      left: 10px;
    }
  }
  
  /* === Seiten-Navigation === */
  .sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    background-color: #ffffff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 3em;
  }
  
  .sidenav a {
    display: block;
    padding: 1em 1.5em;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    border-bottom: 1px solid #eee;
  }
  
  .sidenav a:hover {
    background-color: #f0f0f0;
  }
  
  #sideNav a.active {
    background-color: #e0f0ff;
    color: #007bff;
  }
  
  #sideNav.offen {
    width: 250px;
  }
  
  /* === InfoBox Fragezeichen === */
  .info-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ccc;
    padding: 1em;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    z-index: 2000;
    display: none;
  }
  
  .info-box.aktiv {
    display: block;
  }
  
  .info-box img {
    display: block;
    margin: 1em auto;
    max-width: 100%;
    height: auto;
  }
  
  #closeInfo {
    display: block;
    margin: 1em auto 0;
    padding: 0.5em 1em;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  #closeInfo:hover {
    background: #0056b3;
  }
  


  /* === Footer === */
  footer {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    padding: 1em 0;
    background-color: #f0f0f0;
  }
  
  footer a {
    color: #007bff;
    text-decoration: none;
    margin: 0 0.5em;
  }
  
  footer a:hover {
    text-decoration: underline;
  }

    /* === Cookie Banner === */
  #cookieNotice.cookie-popup {
  position: fixed;
  bottom: 2.5em;
  right: 2.5em;
  left: auto;
  top: auto;
  width: auto;
  height: auto;
  background: none;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  z-index: 10000;
  pointer-events: none;
}

.cookie-popup-box {
  background: #fff;
  color: #000000;
  padding: 1.1em 1.5em 1.1em 1.5em;
  border-radius: 2px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.18);
  min-width: 270px;
  max-width: 350px;
  text-align: left;
  font-size: 1em;
  pointer-events: all;
  border: 1px solid #e6e6e6;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: popup-slide-in 0.3s cubic-bezier(.21,.71,.45,1.11);
}

@keyframes popup-slide-in {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cookie-popup-text {
  margin-bottom: 1.2em;
  font-size: 0.98em;
}

.cookie-popup-box button {
  background: #004d8c;
  color: #ffffff;
  border: none;
  font-size: 1em;
  padding: 0.7em 0;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  margin: 0 auto 0.3em auto;
  width: 100%;
  border-top: 1px solid #e6e6e6;
  transition: background 0.15s, color 0.15s;
}

.cookie-popup-box button:hover {
  background: #0062b2;
  color: #ffffff;
}

.cookie-popup-links {
  text-align: center;
  font-size: 0.93em;
  margin-top: 0.6em;
}

.cookie-popup-links a {
  color: #000000;
  text-decoration: none;
  margin: 0 0.2em;
  opacity: 0.85;
  transition: color 0.18s, opacity 0.18s;
}
.cookie-popup-links a:hover {
  color: #007bff;
  opacity: 1;
}

@media (max-width: 600px) {
  #cookieNotice.cookie-popup {
    bottom: 1em;
    right: 1em;
  }
  .cookie-popup-box {
    min-width: 170px;
    max-width: 98vw;
    padding: 1em;
  }
}

/* Unten separierte Links in der Sidenav */
.sidenav {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidenav .nav-bottom-links {
  margin-top: auto;
  padding: 1.2em 1.5em 1.2em 1.5em;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  border-top: 1px solid #eee;
}

.sidenav .nav-bottom-links a {
  padding: 0;
  border: none;
  background: none;
  color: #d9534f; /* Rot für Gefahr, du kannst es anpassen */
  font-weight: normal;
  font-size: 1em;
  text-decoration: underline;
  margin: 0;
  transition: color 0.16s;
}

.sidenav .nav-bottom-links a:hover {
  color: #a82118; /* dunkleres Rot beim Hover */
  background: none;
  text-decoration: underline;
}

/* Passworteingabe Auge sichtbarmachen */
.password-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 0.5em;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px; /* Platz für das Auge */
  box-sizing: border-box;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
  font-size: 1.2em;
  z-index: 2;
}
.password-toggle.active {
  color: #218838;
}

.password-hint {
  background: #f6f7fa;
  color: #1976d2;
  font-size: 0.97em;
  padding: 0.6em 1em;
  border-radius: 8px;
  margin-top: 0.25em;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  max-width: 350px;
  transition: opacity 0.2s;
}

