html, body {
  margin: 0;
  padding: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  background-color: #f7f7f7;
  color: #2b2b2b;
  font-family: Avenir, Montserrat, Corbel, 'URW Gothic', 'Inter', sans-serif;
}

/* Container max 90rem */
.container {
  max-width: 90rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  background-color: #fafafa;
  box-shadow: 0 0 2px rgba(0,0,0,0.15);
}

/* Headings */
h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 0;
  color: #222;
  text-align: center;
}
h2 {
  margin-top: 4rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
}
h3 {
  margin-top: 3rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #444;
}
p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Filter Container */
#filter-container {
  margin-bottom: 1.5rem;
}

/* Table Wrapper */
.checklist-table-wrapper {
  width: 100%;
  overflow-x: auto; /* horizontales Scrollen */
  margin-bottom: 2rem;
}
.checklist-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.checklist-table thead {
  background-color: #f5f5f5;
}
.checklist-table thead tr th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #555;
  border-bottom: 2px solid #ddd;
  vertical-align: middle;
  font-size: 1rem;
}
.checklist-table tbody tr td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  text-align: left;
  font-size: 1rem;
}
.checklist-table tbody tr:last-child td {
  border-bottom: none;
}
/* Ecken abrunden */
.checklist-table thead tr:first-child th:first-child {
  border-top-left-radius: 6px;
}
.checklist-table thead tr:first-child th:last-child {
  border-top-right-radius: 6px;
}
.checklist-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 6px;
}
.checklist-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 6px;
}

/* Notiz-Feld */
.task-note {
  width: 100%;
  box-sizing: border-box;
  padding: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Toggle-Beschreibung */
.desc-toggle {
  cursor: pointer;
  color: #0077cc;
  margin-left: 0.5rem;
  font-size: 0.85rem;
  text-decoration: underline;
}
.hiddenDescription {
  display: none;
  margin-top: 0.5rem;
  color: #666;
  font-size: 0.85rem;
}

/* --- Hier nun GANZE ZEILE färben (statt Balken) --- */
/* Wir machen: .status-offen { background-color: #fff9d6; }, etc. 
   => am <tr> class="status-offen" 
*/
.status-offen {
  background-color: #fff9d6; /* Hellgelb */
}
.status-bearbeitung {
  background-color: #eaf4ff; /* Helles Pastellblau */
}
.status-erledigt {
  background-color: #e5ffe5; /* Hellgrün */
}
.status-na {
  background-color: #f3f3f3; /* Grauton */
}

/* Responsive ab 768px */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  h1 {
    font-size: 1.6rem;
  }
  .checklist-table thead tr th,
  .checklist-table tbody tr td {
    padding: 0.5rem 0.75rem;
  }
}

/* sehr eng < 500px */
@media (max-width: 500px) {
  body {
    font-size: 15px;
  }
}


/* Strukturierte Darstellung der Filter */
#filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

#filter-container label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 0.95rem;
  color: #444;
  min-width: 200px;
}

#filter-container select {
  margin-top: 0.4rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fdfdfd;
  font-family: inherit;
  transition: border-color 0.2s;
}

#filter-container select:focus {
  outline: none;
  border-color: #0077cc;
  background-color: #fff;
}
