/* ========== ALLGEMEINE STYLES ========== */
/* Grundlegende Body-Styles für alle Seiten */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 20px;
}

/* Alternative Body-Definitionen (werden durch Spezifität/Kaskade überschrieben) */
body {
  background-color: #f5f5f5;
  text-align: center;
  min-height: 100vh;
  box-sizing: border-box;
}

/* ========== LAYOUT-KOMPONENTEN ========== */
/* Container für Hauptinhalte */
.container {
  background-color: white;
  max-width: 800px;
  margin: auto;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Spezieller Container für Login-Bereich */
.container {
  background-color: rgb(208, 152, 60);
  max-width: 350px;
  width: 90%;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Dashboard-Layout */
.dashboard {
  display: flex;
  height: calc(100vh - 80px);
}

/* ========== NAVIGATION & HEADER ========== */
/* Header-Bereich */
header {
  background-color: rgb(208, 152, 60);
  color: white;
  padding: 20px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
}

/* Zurück-Button */
.zurueck-btn {
  background-color: rgb(208, 152, 60);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

/* ========== FORMULARE & EINGABEN ========== */
/* Allgemeine Formular-Styles */
form {
  margin-top: 40px;
}

/* Eingabefelder */
input[type="text"],
input[type="password"],
input[type="date"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

/* Submit-Buttons */
input[type="submit"] {
  background-color: rgb(172,198,73);
  color: black;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

/* ========== AUFGABEN & TASKS ========== */
/* Task-Komponenten */
.task {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  transition: background-color 0.2s;
}

/* Status-Knöpfe */
.btn-offen {
  background-color: rgb(172,198,73);
  color: black;
}

.btn-erledigt {
  background-color: rgb(255, 89, 56);
  color: white;
}

/* ========== SPEZIALELEMENTE ========== */
/* Popup-Nachrichten */
.popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: rgb(172,198,73);
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  z-index: 1000;
}

.Mitteilung_rot {
	color: rgb(255, 89, 56);
	font-weight: bold;
	font-size: 18px;
	margin: 15px 0;
	display: block;
	word-break: break-word;
}

/* Tabellen */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ========== DARK MODE ========== */
.dark-mode {
  background-color: #1e1e1e;
  color: #f4f4f4;
}

.dark-mode .left,
.dark-mode .right,
.dark-mode .box {
  background-color: #2a2a2a;
}

/* ========== MOBILE STYLES ========== */
@media (max-width: 768px) {
  /* Responsive Layout-Anpassungen */
  .dashboard {
    flex-direction: column;
    height: auto;
  }
  
  /* Container-Anpassungen */
  .container {
    width: calc(100% - 40px);
    margin: 20px auto;
    padding: 20px;
  }
  
  /* Formular-Elemente */
  input[type="text"],
  textarea {
    width: calc(100% - 20px);
  }
  
  /* Header-Anpassungen */
  header {
    padding: 25px 20px;
    min-height: 60px;
    flex-direction: column;
  }
  
  /* Buttons */
  .btn-offen,
  .btn-erledigt {
    width: 100%;
  }
}