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

/* -----------------------------------------
   Responsive Anpassungen für Buttons
----------------------------------------- */
@media (max-width: 600px) {
  .dashboard-buttons, .dashboard-container {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .btn-main,
  .dashboard-button {
    width: 100%;
    margin: 0.5rem 0;
    min-width: unset;
    max-width: unset;
    display: block;
  }
}

/* -----------------------------------------
   Grundlayout
----------------------------------------- */
body {
  font-family: system-ui, sans-serif;
  background-color: #f9f9f9;
  color: #222;
  padding: 1rem;
  line-height: 1.6;
}

/* Header/Navigationsleiste */
header {
  background-color: #005a87;
  color: #fff;
  padding: 1rem;
  text-align: center;
}
header h1 {
  font-size: 1.5rem;
}

nav {
  margin-top: 0.5rem;
}
nav a {
  color: #fff;
  margin: 0 0.5rem;
  text-decoration: none;
  font-weight: bold;
}
nav a:hover {
  text-decoration: underline;
}

main {
  margin-top: 2rem;
}

/* Footer */
footer {
  margin-top: 3rem;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

/* -----------------------------------------
   Formulare & Buttons
----------------------------------------- */
form {
  max-width: 400px;
  margin: auto;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
input, select, button {
  display: block;
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}
button {
  background-color: #005a87;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
button:hover {
  background-color: #003f5e;
}

/* -----------------------------------------
   Dashboard-Layout & Buttons
----------------------------------------- */
.dashboard-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
  text-align: center;
}
.dashboard-container h2 {
  margin-bottom: 0.5rem;
}
.dashboard-container p {
  margin-bottom: 2rem;
}

/* Neue zentrale Buttongruppe für das Dashboard */
.dashboard-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 400px;
  margin: 2.5rem auto 0 auto;
}

/* Zentrale Haupt-Button-Klasse */
.btn-main {
  display: block;
  width: 100%;
  max-width: 320px;
  padding: 0.85rem 0;
  text-align: center;
  font-size: 1.13rem;
  border-radius: 7px;
  background: #005a87;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 0.2rem;
  transition: background 0.18s;
  box-shadow: 0 0 7px rgba(0,0,0,0.06);
}
.btn-main:hover { background: #003f5e; }

/* Farbliche Varianten für bestimmte Buttons */
.btn-green  { background: #1ea600; }
.btn-green:hover { background: #117200; }
.btn-yellow { background: #f5ce47; color:#715c01; }
.btn-yellow:hover { background: #d4b122; color:#fff; }
.btn-red    { background: #eb4747; }
.btn-red:hover { background: #c82626; }

/* -----------------------------------------
   Klassische Dashboard-Button-Unterstützung (legacy, falls noch irgendwo verwendet)
----------------------------------------- */
.dashboard-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  background-color: #007BFF;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}
.dashboard-button:hover {
  background-color: #0056b3;
}
.dashboard-button.logout {
  background-color: #dc3545;
}
.dashboard-button.logout:hover {
  background-color: #b02a37;
}

/* -----------------------------------------
   Loginbox für Startseite
----------------------------------------- */
.login-box {
  max-width: 350px;
  margin: 3rem auto 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 12px #eee;
}

/* -----------------------------------------
   Tabellenübersicht (z.B. Userliste)
----------------------------------------- */
.table-main {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin: 2rem auto 1rem auto;
  box-shadow: 0 0 5px rgba(0,0,0,0.08);
}
.table-main th, .table-main td {
  border: 1px solid #e5e5e5;
  padding: 0.75rem 1rem;
  text-align: left;
}
.table-main th {
  background: #005a87;
  color: #fff;
}
.table-main tr:nth-child(even) {
  background: #f6fafd;
}
.table-main tr:hover {
  background: #e8f3fa;
}

/* -----------------------------------------
   Utility/Fehlermeldungen/Sonstiges
----------------------------------------- */
.alert-success {
  color: #106c24;
  background: #d0ffd8;
  border: 1px solid #90ebad;
  padding: 0.8rem 1rem;
  margin-bottom: 1.1rem;
  border-radius: 5px;
  text-align: center;
}
.alert-error {
  color: #bb2424;
  background: #ffeaea;
  border: 1px solid #ef8d8d;
  padding: 0.8rem 1rem;
  margin-bottom: 1.1rem;
  border-radius: 5px;
  text-align: center;
}