html, body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%; /* Nötig, um die Seite voll auszufüllen */
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
}

.logo-container {
    text-align: center;
    margin-top: 60px;
}

.logo-container .logo {
    max-width: 120px;
    margin-bottom: 10px;
}

.logo-container h1 {
    font-size: 1.8rem;
    color: #333;
    margin: 0;
}

.container {
 width: 100%;
 max-width: 600px;
 min-width: 450px; /* Mindestbreite von 450px */
 background: #fff;
 padding: 20px;
 border-radius: 5px;
 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
 margin: 25px auto; /* Zentriert den Container horizontal */
 box-sizing: border-box;
 height: auto; /* Passt sich dynamisch an den Inhalt an */
 max-height: none; /* Entfernt Einschränkungen der Höhe */
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px; /* Größere Schrift */
    line-height: 1.5; /* Zeilenhöhe für bessere Lesbarkeit */
    margin-bottom: 20px; /* Abstand nach unten vergrößern */
}

.form-group .password-container {
    position: relative;
}

.form-group .password-container input {
    padding-right: 40px;
}

.form-group .password-container .toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #555;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.form-footer a {
    color: #007BFF;
    text-decoration: none;
}

.login-button {
    background: red;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.login-button:hover {
    background: darkred;
}

.error-message {
    color: #ff0000;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 10px;
}

footer {
    position: fixed; /* Footer bleibt immer im sichtbaren Bereich */
    bottom: 0; /* Am unteren Rand des Viewports */
    left: 0; /* Links ausgerichtet */
    width: 100%; /* Über die gesamte Breite */
    background-color: #e3e3e3; /* Hellgrauer Hintergrund */
    color: #1e90ff; /* Dunkelblaue Schriftfarbe */
    padding: 15px 50px; /* Innenabstand */
    box-sizing: border-box; /* Padding wird in die Breite/Höhe einbezogen */
    z-index: 1000; /* Sicherstellen, dass der Footer über anderen Elementen liegt */
    display: none; /* Footer wird standardmäßig ausgeblendet */
}

.footer-content {
  display: flex;
  justify-content: space-between; /* Verteilt die Elemente mit Abstand */
  align-items: center; /* Vertikal zentrieren */
}

footer_k {
    position: fixed; /* Footer bleibt immer im sichtbaren Bereich */
    bottom: 0; /* Am unteren Rand des Viewports */
    left: 0; /* Links ausgerichtet */
    width: 100%; /* Über die gesamte Breite */
    background-color: #e3e3e3; /* Hellgrauer Hintergrund */
    color: #1e90ff; /* Dunkelblaue Schriftfarbe */
    padding: 15px 50px; /* Innenabstand */
    box-sizing: border-box; /* Padding wird in die Breite/Höhe einbezogen */
    z-index: 1000; /* Sicherstellen, dass der Footer über anderen Elementen liegt */
}

.footer-content_k {
  display: flex;
  justify-content: space-between; /* Verteilt die Elemente mit Abstand */
  align-items: center; /* Vertikal zentrieren */
}

.left-text {
    text-align: left; /* Text links ausrichten */
    color: black; /* Schwarze Schriftfarbe für den linken Text */
}

.right-text {
    text-align: right; /* Text rechts ausrichten */
}

footer a {
    color: #1e90ff; /* Linkfarbe */
    text-decoration: none; /* Entfernt die Unterstreichung */
    margin-left: 15px; /* Abstand zwischen Links */
}

footer a:hover {
    text-decoration: underline; /* Unterstreicht Link bei Hover */
}

.content-container {
            display: flex;
            align-items: center; /* Vertikale Ausrichtung */
            gap: 20px; /* Abstand zwischen Icon und Text/Buttons */
        }
        .content-container img {
            width: 150px; /* Breite des Icons */
            height: 150px; /* Höhe des Icons */
        }
        .text-and-buttons {
            display: flex;
            flex-direction: column;
            gap: 20px; /* Abstand zwischen Text und Buttons */
        }
        .button-container {
            display: flex;
            align-items: center;
            justify-content: flex-start; /* Links ausrichten */
            gap: 15px; /* Abstand zwischen den Buttons */
        }
        button {
            padding: 10px 30px;
            font-size: 16px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }
        .btn-yes {
            background-color: green;
            color: white;
        }
        .btn-no {
            background-color: red;
            color: white;
        }

        /* Optional: Anpassung für größere Schrift in Prozent */
        .larger-text-percentage {
            font-size: 120%; /* Schriftgröße relativ zur Standardgröße */
        }

        .large-text {
           font-size: 20px; /* Schriftgröße in Pixeln */
       }

       .image-container {
         text-align: left; /* Links ausrichten */
         display: inline-block; /* Verhindert, dass die Grafik die gesamte Breite einnimmt */
         margin: 10px 0; /* Abstand zur Umgebung */
        }

    .image {
       width: 300px; /* Breite der Grafik anpassen */
       height: auto; /* Proportionen der Grafik beibehalten */
       display: block; /* Blockdarstellung für sauberes Layout */
     }

     .image_block {
        width: 150px; /* Breite der Grafik anpassen */
        height: auto; /* Proportionen der Grafik beibehalten */
        display: block; /* Blockdarstellung für sauberes Layout */
      }

    .caption {
       font-size: 14px; /* Schriftgröße für die Unterschrift */
       color: #555; /* Dezente Farbe für die Unterschrift */
       margin-top: 5px; /* Abstand zwischen Grafik und Unterschrift */
       margin-bottom: 5px; /* Abstand zwischen Grafik und Unterschrift */
       text-align: left; /* Links ausrichten */
    }

    .caption_top {
       font-size: 16px; /* Schriftgröße für die Unterschrift */
       color: #555; /* Dezente Farbe für die Unterschrift */
       margin-top: 5px; /* Abstand zwischen Grafik und Unterschrift */
       margin-bottom: 5px; /* Abstand zwischen Grafik und Unterschrift */
       text-align: left; /* Links ausrichten */
    }

    .caption_top_block {
       font-size: 12px; /* Schriftgröße für die Unterschrift */
       color: #555; /* Dezente Farbe für die Unterschrift */
       margin-top: 5px; /* Abstand zwischen Grafik und Unterschrift */
       margin-bottom: 5px; /* Abstand zwischen Grafik und Unterschrift */
       text-align: left; /* Links ausrichten */
    }

  .block_position_text {
    text-align: right;       /* Text rechtsbündig ausrichten */
    font-size: 14px;         /* Schriftgröße auf 14px setzen */
    font-family: Arial, sans-serif; /* Optional: Schriftart festlegen */
    max-width: 600px;        /* Maximale Breite auf 600px begrenzen */
    width: 100%;             /* Breite auf 100% des Containers setzen */
    margin: 0 auto;          /* Zentriert das div innerhalb des übergeordneten Containers */
    box-sizing: border-box;  /* Sorgt dafür, dass Padding und Border zur Breite zählen */
}

.container_nav {
            width: 90%;
            max-width: 450px;
            margin: 20px auto;
            padding: 20px;
            background-color: #fffff;
            border-radius: 5px;
            display: flex;
            justify-content: space-between;
            align-items: center;

        }

        .button_nav {
            padding: 10px 20px;
            background-color: #007bff;
            color: #fff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s ease;
        }

        .button_nav:hover {
            background-color: #0056b3;
        }

        .container_right {
            width: 100%;
            max-width: 400px;
            margin: 20px auto;
            padding: 20px;
            background-color: #fffff;
            border-radius: 5px;
            display: flex;
            justify-content: flex-end; /* Positioniert den Button rechts */
            align-items: center;

        }

        .button_right {
            padding: 10px 20px;
            background-color: #007bff;
            color: #fff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s ease;
        }

        .button_right:hover {
            background-color: #0056b3;
        }


        .collapsible-container {
              border: 1px solid #ccc;
              margin-bottom: 15px;
              overflow: hidden;
              width: 100%; /* Passt sich der Bildschirmbreite an */
              min-width: 450x;
              max-width: 600px; /* Maximale Breite für größere Bildschirme */
              transition: all 0.3s ease;
              box-sizing: border-box;
            }

            .collapsible-header {
              display: flex;
              align-items: center;
              justify-content: space-between;
              padding: 10px;
              background-color: #f4f4f4;
              font-weight: bold;
            }

            .collapsible-header:hover {
              background-color: #e0e0e0;
            }

            .collapsible-title {
              flex-grow: 1;
              text-align: left;
              padding-left: 10px;
              font-size: 14px; /* Für mobile Geräte kleinere Schriftgröße */
            }

            .collapsible-checkbox {
              margin-left: 10px;
              transform: scale(1.5);  /* Größere Checkbox */
              margin-right: 10px;
            }

            .collapsible-arrow {
              font-size: 18px; /* Größeres Pfeilsymbol auf mobilen Geräten */
              cursor: pointer;
              transform: rotate(0deg);
              transition: transform 0.3s ease;
            }

            .collapsible-arrow.open {
              transform: rotate(180deg);
            }

            .collapsible-content {
              display: none;
              padding: 10px;
              background-color: #fff;
              border-top: 1px solid #ccc;
            }

            .collapsible-content p {
              margin: 0;
              font-size: 14px; /* Etwas kleinere Schrift für mobile Geräte */
              line-height: 1.6;
            }

            .collapsible-container.selected {
              border-color: #28a745;
              background-color: #e6f7e6;
            }

            /* Media Query für kleinere Bildschirme */
            @media screen and (max-width: 600px) {
              .collapsible-title {
                font-size: 14px;  /* Noch kleinere Schrift für sehr kleine Bildschirme */
              }

              .collapsible-arrow {
                font-size: 16px; /* Kleinere Pfeile auf sehr kleinen Bildschirmen */
              }

              .collapsible-checkbox {
                transform: scale(1.3); /* Etwas kleinere Checkboxen auf sehr kleinen Geräten */
              }
            }

  .image-text-container {
  display: flex; /* Flexbox für Layout */
  align-items: center; /* Vertikale Ausrichtung der Elemente */
  gap: 10px; /* Abstand zwischen Bild und Text */
  max-width: 500px; /* Optional: Begrenzung der Breite */
}

.image_Ampel {
  width: 10%; /* Bild auf 50% seiner ursprünglichen Breite skalieren */
  height: auto; /* Höhe proportional zur Breite */
}

.text {
  font-size: 16px; /* Textgröße */
  line-height: 1.5; /* Zeilenhöhe */
  max-width: 300px; /* Optionale Begrenzung der Textbreite */
}

/* Hintergrund des modalen Fensters */
.modal {
  display: none; /* Modal ist zunächst unsichtbar */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 50;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Abgedunkelter Hintergrund */
}

/* Inhalt des modalen Fensters */
.modal-content {
  background-color: #ffcaca; /* Heller roter Hintergrund */
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 100%;
  max-width: 400px; /* Maximale Breite auf 500px setzen */
  text-align: left;
}

/* "Okay"-Button unterhalb des Textes und links ausgerichtet */
#okButton {
  margin-top: 40px;
  text-align: left;
  padding: 10px 20px;
  background-color: #ff6666;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.button {
  margin-top: 10px;
  cursor: pointer;
}

#loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Halbtransparenter Hintergrund */
    display: flex;
    flex-direction: column; /* Stapelt das Symbol und den Text */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Stellt sicher, dass es über dem Inhalt liegt */
    font-size: 16px;
    font-weight: bold;
    color: #555;
}

#loader img {
    width: 50px; /* Größe des Ladezeichens */
    height: 50px;
    margin-bottom: 10px; /* Abstand zwischen dem GIF und dem Text */
}

/* Container für die zentrale Platzierung */
        .image-container_final {
            display: flex; /* Aktiviert Flexbox */
            justify-content: center; /* Zentriert horizontal */
            align-items: center; /* Zentriert vertikal */
            height: 150px; /* Höhe des Containers: 100% der Viewport-Höhe */
        }

        /* Bild-Style */
        img {
            width: 30%; /* Bildbreite: 80% des Elterncontainers */
            max-width: 300px; /* Optionale maximale Breite */
            height: auto; /* Beibehaltung des Seitenverhältnisses */
            border-radius: 10px; /* Optionale Abrundung */
        }
