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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1,
h2,
h3 {
  margin-bottom: 15px;
  color: #2c3e50;
}

a {
  color: #3498db;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.login-form {
  background-color: white;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.login-form h1 {
  text-align: center;
  margin-bottom: 10px;
}

.login-form h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.5em;
  color: #7f8c8d;
}

.form-group {
  margin-bottom: 15px;
}

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

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.form-group button {
  width: 100%;
  padding: 12px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.form-group button:hover {
  background-color: #2980b9;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  text-align: center;
}

/* Header und Navigation */
header {
  background-color: #2c3e50;
  color: white;
  padding: 15px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
}

nav ul li a:hover {
  text-decoration: underline;
}

.user-info {
  color: #ecf0f1;
  font-size: 0.9em;
}

/* Tabellen */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

th,
td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f2f2f2;
  font-weight: 600;
}

tr:hover {
  background-color: #f5f5f5;
}

/* Rote Markierung für Feiertage */
tr.holiday {
  background-color: #ffebee;
}

tr.holiday:hover {
  background-color: #ffcdd2;
}

/* Graue Markierung für Wochenenden */
tr.weekend {
  background-color: #e0e0e0;
  font-style: italic;
}

tr.weekend:hover {
  background-color: #d5d5d5;
}

/* Zusätzliche Hervorhebung für Wochenenden */
tr.weekend td:first-child {
  font-weight: bold;
  border-left: 3px solid #9e9e9e;
}

/* Formular-Elemente */
input[type="text"],
input[type="number"],
select {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

input[type="number"] {
  width: 80px;
}

button,
.btn {
  padding: 8px 15px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

button:hover,
.btn:hover {
  background-color: #2980b9;
}

.btn-danger {
  background-color: #e74c3c;
}

.btn-danger:hover {
  background-color: #c0392b;
}

.btn-success {
  background-color: #2ecc71;
}

.btn-success:hover {
  background-color: #27ae60;
}

/* Mitarbeiter-Karten */
.employee-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.employee-card {
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.employee-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.employee-card h3 {
  margin-bottom: 10px;
  color: #2c3e50;
}

.employee-card .balance {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 15px;
}

.employee-card .actions {
  display: flex;
  justify-content: space-between;
}

/* Responsive Design */
@media (max-width: 768px) {
  .employee-cards {
    grid-template-columns: 1fr;
  }

  .header-container {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    margin-top: 15px;
    justify-content: center;
  }

  nav ul li {
    margin: 0 10px;
  }

  .user-info {
    margin-top: 10px;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}

/* Tabellen-Formatierung */
table td.grey-bg,
table th.grey-bg {
  background-color: #f0f0f0;
}

tr.total-row td {
  font-weight: bold;
}
