/* Basislayout */
body {
  font-family: Arial, sans-serif;
  background: #f4f6f9;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.container {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  width: 90%;
  max-width: 400px;
  text-align: center;
}

/* Überschrift */
h1 {
  margin-top: 0;
  font-size: 1.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
}

.icon-clock {
  font-size: 1.4em;
}

/* Formulare */
form {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  font-weight: bold;
  text-align: left;
  margin-top: 10px;
}

input[type="text"],
input[type="password"] {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
}

/* Buttons */
button, .btn {
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
  width: 100%;
}

button:hover, .btn:hover {
  opacity: 0.9;
}

/* Farbvarianten */
.btn-kommen { background: #28a745; }   /* Grün */
.btn-gehen { background: #dc3545; }    /* Rot */
.btn-pause { background: #ffc107; color: #000; }  /* Gelb */
.btn-pauseende { background: #17a2b8; } /* Türkis */
.btn-login { background: #007bff; }    /* Blau */

/* Button-Grid für Stempeluhr */
.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Logout-Icon */
.logout-icon {
  font-size: 1.5em;
  text-decoration: none;
  display: inline-block;
  margin-top: 15px;
  color: #333;
}

.logout-icon:hover {
  color: #dc3545;
}

/* Statusanzeige */
#status-text {
  font-weight: bold;
  margin-bottom: 15px;
}

/* Feedback / Meldungen */
.feedback,
.error,
.notice {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 0.95em;
  display: none;
}

.feedback {
  background: #e7f3fe;
  border: 1px solid #90caf9;
  color: #0c5460;
}

.error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  display: block; /* errors sollen direkt angezeigt werden */
}

.notice {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  display: block; /* notice soll direkt sichtbar sein */
}

/* Mobile Optimierung */
@media (max-width: 500px) {
  .button-grid {
    grid-template-columns: 1fr;
  }
}

.btn-update {
  background: #6c757d; /* Grau */
  color: #fff;
}

.btn-update:hover {
  background: #5a6268;
}

.btn-logout {
  background: #343a40; /* Dunkelgrau */
  color: #fff;
  font-size: 1.1em;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

.btn-logout:hover {
  background: #23272b;
}
