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

/* Allgemeine Stile */
body {
  font-family: 'Arial', sans-serif;
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: url('background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #dcdcdc; /* Graue Schrift */
  overflow-y: auto; /* Vertikales Scrollen */
}

/* Login-Container */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
}

.login-box {
  backdrop-filter: blur(9px);
  background: rgba(9, 28, 21, 0.71);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 320px;
}

.input-group {
  margin-bottom: 20px;
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.input-group input {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.753);
  font-size: 14px;
  outline: none;
}

/* Optionen (z. B. "Remember me") */
.options {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 12px;
}

.options a {
  color: #dcdcdc;
  text-decoration: none;
}

.options a:hover {
  text-decoration: underline;
}

/* Login-Button */
button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 20px;
  background: #4b6e42cc;
  color: #dcdcdc;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #666; /* Dunkleres Grau */
}

/* Register-Link */
.login-box p {
  margin-top: 10px;
  font-size: 12px;
}

.login-box a {
  color: #dcdcdc;
  text-decoration: none;
}

.login-box a:hover {
  text-decoration: underline;
}

/* Header */
.header {
  width: 100%;
  background: rgba(0, 0, 0, 0.767);
  padding: 5px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 0;
  z-index: 10;
}

.header-content {
  display: flex;
  justify-content: space-between; /* Verteilt den Inhalt: links Uhrzeit, rechts Benutzerinfo */
  align-items: center; /* Zentriert die Elemente vertikal */
  width: 100%;
}

.userinfo-logout {
  display: flex; /* Benutzername und Logout-Button nebeneinander */
  align-items: center; /* Vertikal ausgerichtet */
  gap: 10px; /* Abstand zwischen Benutzername und Logout-Button */
}

#userinfo {
  font-size: 14px;
  color: #dcdcdc; /* Farbe für den Benutzernamen */
}

.logout-button {
  margin-left: 0; /* Entferne die automatische Ausrichtung */
  background: #d9534f; /* Rote Hintergrundfarbe */
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 20px;
  transition: background 0.3s ease;
}

.logout-button:hover {
  background: #c9302c;
}
.header-content #datetime {
  font-size: 18px;
  margin-right: 20px;
}

/* Dashboard */
.dashboard {
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* Gleiche Höhe der Blöcke */
  height: 100%; /* Höhe abzüglich des Headers */
  gap: 20px;
  padding: 55px 20px; /* Abstand, um Platz für den Header zu lassen */
  width: 80%;
  max-width: 95%;
}

/* Linker Block */
.left-block {
  display: flex;
  flex-direction: column;
  width: 40%; /* Nimmt 50% des Platzes ein */
  gap: 10px;
}

/* Rechter Block */
.system-checks-box {
  flex: 1; /* Nimmt den gesamten verfügbaren Platz ein */
  backdrop-filter: blur(9px);
  background: rgba(9, 28, 21, 0.71);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: #dcdcdc;
  overflow-y: auto;
}

/* Trigger-Box */
.trigger-box {
  backdrop-filter: blur(9px);
  background: rgba(9, 28, 21, 0.71);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: #dcdcdc;
  flex: 0 0 auto; /* Feste Größe */
  height: 200px; /* Fest definierte Höhe */
}

/* Dateien-Box */
.files-box {
  flex: 1; /* Füllt den restlichen Platz */
  backdrop-filter: blur(9px);
  background: rgba(9, 28, 21, 0.71);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: #dcdcdc;
  overflow-y: auto; /* Scrollbar bei großen Inhalten */
}

/* Stil für die Datei-Links */
.download-link {
  color: #4b6e42cc; /* Grüne Hintergrundfarbe der Buttons */
  text-decoration: none; /* Keine Unterstreichung */
  font-weight: bold; /* Optional: Text fett machen für bessere Sichtbarkeit */
}

.download-link:visited {
  color: #4b6e42cc; /* Gleichbleibende Farbe, auch nach dem Klicken */
}

.download-link:hover {
  color: #3f5c38; /* Etwas dunkleres Grün beim Hover für Interaktivität */
  text-decoration: underline; /* Optional: Unterstreichung beim Hover */
}


/* Boxen */
.box {
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: #dcdcdc;
}

.box h2 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #dcdcdc;
}

/* Buttons in Boxen */
.box button {
  width: 70%;
  padding: 8px;
  border: none;
  border-radius: 20px;
  background: #4b6e42cc;
  color: #dcdcdc;
  cursor: pointer;
  transition: background 0.3s ease;
  margin: 5px 0;
}

.box button:hover {
  background: #666;
}

.box button.disabled {
  background: #333;
  color: #888;
  cursor: not-allowed;
}

/* Dateien */
.file-table {
  width: 100%;
  border-spacing: 0;
  text-align: left;
  color: #dcdcdc;
}

.file-table th, .file-table td {
  padding: 10px;
}

.file-table thead th {
  font-size: 13px;
  font-weight: bold;
  text-align: left;
  color: #ffffff;
  background: rgba(31, 68, 47, 0.507); /* Hintergrundfarbe für den Header */
}

.file-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Trennlinie */
}

.file-table tbody tr:hover {
  background: rgba(41, 90, 62, 0.507); /* Hover-Effekt */
}

.file-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.file-list li {
  margin: 10px 0;
}

.file-list a {
  text-decoration: none;
  color: #397433;
  font-weight: bold;
  font-size: 10px;
}

.file-list a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-content #userinfo {
    margin-right: 0;
  }
  .dashboard {
    flex-direction: column; /* Blöcke untereinander */
    align-items: stretch;
  }
  .left-block, .system-checks-box {
    width: 100%; /* Beide Blöcke nehmen die volle Breite ein */
  }
}