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

body {
  font-family: Arial, sans-serif;
  background-color: #f4f7f8;
  color: #333;
  line-height: 1.6;
  padding: 10px;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  font-size: 1.8em;
  color: #2c3e50;
  margin-bottom: 10px;
}

.user-info {
  margin-bottom: 20px;
}

.user-info label {
  font-weight: bold;
  margin-right: 5px;
}

.user-info input[type="text"] {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  width: 80%;
}

/* Mainbereich */
main {
  margin-bottom: 160px; /* Platz für Footer */
}

/* Arbeitstag Container */
.workday {
  background: #fff;
  margin-bottom: 15px;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 3px rgba(0,0,0,0.1);
  position: relative;
}

/* Neuer Bereich: Arbeitstag Header */
.workday-header {
  display: flex;
  align-items: center;
  background-color: #f8f9fa;
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
}

/* Toggle-Button im Header */
.toggle-btn {
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  margin-right: 10px;
  color: #333;
}

/* Anzeige des Datums im Header */
.header-date {
  font-weight: bold;
  font-size: 1.1em;
  color: #2c3e50;
}

/* Inhalt des Arbeitstags */
.workday-content {
  padding: 10px;
  /* Optional: sanfte Übergänge beim Ein-/Ausblenden */
  transition: max-height 0.3s ease-in-out;
}

/* Labels und Eingabefelder im Arbeitstag */
.workday label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
}

.workday input[type="text"],
.workday input[type="number"],
.workday input[type="date"] {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

/* Baustellen Einträge */
.baustelle {
  background: #ecf0f1;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 3px;
  position: relative;
}

.baustelle label {
  display: block;
  margin-bottom: 5px;
}

/* Save / Load Bereich */
.save-load {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  align-items: center;
}

/* Action Buttons */
.action-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #27ae60;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  margin-top: 10px;
  text-align: center;
}

.action-btn-red {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  margin-top: 10px;
  text-align: center;
}

.action-btn-grey {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #909090;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  margin-top: 10px;
  text-align: center;
}

.action-btn:hover {
  background-color: #219150;
}

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

.action-btn-grey:hover {
  background-color: #707070;
}

/* Delete Buttons */
.delete-btn {
  background-color: #e74c3c;
  border: none;
  color: #fff;
  padding: 6px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.9em;
  position: absolute;
  top: 10px;
  right: 10px;
}

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

.save-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #27ae60; /* Grüner Hintergrund */
  color: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.save-notification.show {
  opacity: 1;
  transform: scale(1);
}

.clear-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #e74c3c; /* Roter Hintergrund */
  color: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.clear-notification.show {
  opacity: 1;
  transform: scale(1);
}


/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: #fff;
  box-shadow: 0 -2px 3px rgba(0,0,0,0.1);
}

/* Responsive Anpassungen */
@media (min-width: 600px) {
  .action-btn {
    width: auto;
    margin: 10px auto;
    display: block;
  }
}
