.body {
    font-family: 'Poppins', sans-serif; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-size: 1.5rem;
    background-size: cover;
    background-position: center;
    background-color:#222222;
    margin: 0;
    padding: 0;
}

h1 {
    text-align: center;
    color: white;
    margin-top: 20px;
}

h2 {
    text-align: left;
    color: white;
}

h3 {
    text-align: center;
    color: white;
}

.form-container {
    text-align: center;
    margin-top: 50px; /* Platzierung des Formulars nach oben */
}
.form-container input {
    margin: 10px 0; /* Abstand zwischen den Eingabefeldern */
}

/* Eintrags-Kachel-Stil */
.eintrag-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
}

.eintrag-kachel {
    flex-basis: auto;
    margin: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.eintrag-kachel:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.eintrag-details {
    margin-top: 20px;
}

.eintrag-details hr {
    border: 0;
    height: 1px;
    background-color: black; /* macht die Linie schwarz */
    margin: 5px 0; /* fügt oben und unten einen Abstand von 10px hinzu */
}

/* Login-Formular */
.login-container {
    text-align: center; /* Zentriert den Inhalt des Containers */
}

.login-title {
    color: white;
    margin: 20px 0; /* Fügt oben und unten einen Abstand hinzu */
}

.login-form {
    display: inline-block; /* Erlaubt es, Textausrichtung vom Elternelement zu erben */
    margin-top: 20px; /* Fügt einen Abstand zum Titel hinzu */
    background-color: #222222;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="submit"] {
    display: block;
    margin: 10px auto;
    width: 200px; /* Stellt die Breite aller Eingabeelemente ein */
    padding: 5px;
}

/* Flash message */
.flash-messages {
    margin-bottom: 20px;
    text-align: center;
}

.error {
    color: #FF0000; /* Rote Farbe für Fehlermeldungen */
}

.success {
    color: #008000; /* Grüne Farbe für Erfolgsmeldungen */
}

.bold {
    font-weight: bold;
}

.bold-guthaben {
    font-weight: bold;
}

/* Media Query für responsive Gestaltung */
@media screen and (max-width: 480px) {
    .eintrag-kachel {
        flex-basis: calc(100% - 40px);
    }
}

@media screen and (max-width: 768px) {
    .eintrag-kachel {
        flex-basis: calc(33.333% - 40px);
    }
}

@media screen and (max-width: 1024px) {
    .eintrag-kachel {
        flex-basis: calc(50% - 40px);
    }
}


/* Abstand zwischen Löschen- und Aktualisieren-Button */
.buttons-container {
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: center;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}

.buttons-container button {
    background-color: #04AA6D;
    border: none;
    color: white;
    padding: 30px 50px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px; /* Fügt abgerundete Ecken hinzu, wenn gewünscht */
}

.buttons-container button:hover {
    background-color: #218c5e; /* Ändert die Hintergrundfarbe beim Hovern */
}

.buttons-container input[type="submit"] {
    margin-right: 5px;
    margin-bottom: 5px;
    background-color: #04AA6D;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}

.input-with-buttons {
    display: flex;
    align-items: center; /* Zentriert die Buttons vertikal */
}

/* Stil für Labels neben den Eingabefeldern */
label {
    display: inline-block;
    width: 100px; /* Ändere die Breite nach Bedarf */
    text-align: right;
    margin-right: 10px;
}


.form__group {
  position: relative;
  padding: 15px 0 0;
  margin-top: 10px;
  width: 150%;
}

.form__field {
  font-family: inherit;
  width: 100%;
  border: 0;
  border-bottom: 4px solid #9b9b9b;
  outline: 0;
  font-size: 200%;
  color: white;
  padding: 7px 0;
  background: transparent;
  transition: border-color 0.2s;

  &::placeholder {
    color: transparent;
  }

  &:placeholder-shown ~ .form__label {
    font-size: 1.3rem;
    cursor: text;
    top: 20px;
  }
}

.form__label {
  position: absolute;
  top: 0;
  display: block;
  transition: 0.2s;
  font-size: 150%;
  color: #9b9b9b;
}

.form__field:focus {
  ~ .form__label {
    position: absolute;
    top: 0;
    display: block;
    transition: 0.2s;
    font-size: 1rem;
    color: #11998e;
    font-weight:700;    
  }
  padding-bottom: 6px;  
  font-weight: 700;
  border-width: 3px;
  border-image: linear-gradient(to right, #11998e, #38ef7d);
  border-image-slice: 1;
}
/* reset input */
.form__field{
  &:required,&:invalid { box-shadow:none; }
}

/* QR Code */
.qr-code-container {
    text-align: center;
    margin-top: 20px;
}

.qr-code-image {
    width: 400px;
    height: auto;
}

.qr-code-link {
    color: #00BFFF;
    margin-bottom: 10px;
    display: block;
}

.qr-code-link:hover {
    color: #1010ac;
}

.search-bar {
    width: 50%;
    padding: 12px 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: gainsboro;
}
