/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #e0f7fa, #e8f5e9);
  color: #333;
}

.logo {
      max-width: 160px;
      margin-top: 5px;
    }

    .user-info {
      margin-top: 10px;
      font-size: 1.1rem;
    }

.login-links {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  }

.login-links a {
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  color: #4db6ac;
}

.login-links .button-secondary {
  background-color: #e0f2f1;
  border: 1px solid #4db6ac;
  padding: 10px;
  border-radius: 5px;
  color: #00796b;
  transition: background-color 0.3s;
}

.login-links .button-secondary:hover {
  background-color: #b2dfdb;
}

.changelog-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: #333;
}
.changelog-footer a {
  color: #00897b;
  text-decoration: underline;
}


.install-banner {
  background-color: #e0f2f1;
  border: 1px solid #4db6ac;
  padding: 15px;
  margin: 20px auto;
  border-radius: 12px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-family: sans-serif;
}

#install-button {
  background-color: #4db6ac;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 10px;
}

#install-button:hover {
  background-color: #00897b;
}

/* Container für zentrierte Inhalte */
.container {
  max-width: 500px;
  margin: 40px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Hauptinhalt */
main {
  padding: 20px;
}

h2 {
  margin-bottom: 15px;
  font-size: 1.4em;
}

/* Formulare */
form {
  margin-bottom: 20px;
}

form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

form input[type="text"],
form input[type="date"],
form input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
  font-size: 1em;
}

form button {
  width: 100%;
  padding: 10px;
  background-color: #4db6ac;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #00897b;
}

/* Button-Styles für Edit und Löschen */
.button-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  margin: 0 4px;
  background-color: #4db6ac;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button-link:hover {
  background-color: #00897b;
}

/* Button-Gruppe (nebeneinander) */
.button-group {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

/* SVG-Icons in Buttons */
.button-link svg {
  margin-right: 4px;
}

/* Listen */
ul {
  list-style: none;
}

ul li {
  background-color: #f1f1f1;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 5px;
  border-left: 4px solid #4db6ac;
}


#toast {
  text-align: center;
  visibility: hidden;
  position: fixed;
  top: 150px; /* oder unter deinem Header */
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  z-index: 9999;
  font-size: 0.95em;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0.4s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90vw; /* oder z.B. 320px – auf Mobil wichtig */
}

#toast.show {
  visibility: visible;
  opacity: 1;
}


/* Fixierte Fußnavigation */
.footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #4db6ac;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.footer-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
}

.footer-nav a svg {
  margin-bottom: 4px;
}

/* Spezifisch für den Login */
.login-container {
  width: 80%;
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}


/* Modal Styles (unverändert aus vorherigen Anpassungen) */
.modal {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  border-radius: 10px;
  text-align: center;
}

.modal-content .close {
  float: right;
  font-size: 1.2em;
  cursor: pointer;
}

.modal-actions {
  margin-top: 20px;
}

.modal-actions button {
  margin: 0 10px;
}
