/* Reset & Basics */
* {
  margin: 0; padding: 0; box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  color: #222;
}

body {
  background: #f5f7fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

header {
  background: #1e2a38;
  padding: 15px 30px;
  color: white;
  box-shadow: 0 3px 8px rgb(0 0 0 / 0.2);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  color: white;
}

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

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #54a0ff;
}

nav ul li a.logout {
  color: white; /* Weißer Text */
  background-color: #ff6b6b; /* Rot */
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

nav ul li a.logout:hover {
  background-color: #e74c3c;
  color: white;
}
main {
  flex: 1;
  max-width: 2050px;
  margin: 30px auto;
  padding: 0 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.1);
  min-height: 70vh;
}

footer {
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  color: #666;
  background: #fafafa;
  border-top: 1px solid #eee;
}

/* Buttons */
button, input[type="submit"] {
  background: #54a0ff;
  border: none;
  padding: 10px 18px;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}

button:hover, input[type="submit"]:hover {
  background: #2e86de;
}

/* Form */
form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 15px;
  color: #333;
}

form input[type="text"],
form input[type="email"],
form input[type="date"],
form select,
form textarea {
  width: 100%;
  padding: 8px 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="date"]:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: #54a0ff;
}

form textarea {
  min-height: 100px;
  resize: vertical;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.95rem;
}

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

th {
  background: #f0f4f8;
  font-weight: 700;
  color: #222;
}

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

/* Flash messages */
.flash-messages {
  margin-bottom: 15px;
}

.flash {
  padding: 12px 18px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.flash.success {
  background-color: #d4edda;
  color: #155724;
}

.flash.error {
  background-color: #f8d7da;
  color: #721c24;
}

/* Responsive */
@media (max-width: 600px) {
  nav ul {
    gap: 15px;
  }

  main {
    margin: 15px;
    padding: 15px;
  }

  th, td {
    padding: 8px 10px;
  }
}
