/* Version 17.0: mobile Checklisten im Hygiene-Hub */
.hygiene-main-tab {
  line-height: 1.12;
}

.hygiene-hub-badges {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hygiene-hub-switch {
  display: grid;
  margin-bottom: 1rem;
  padding: 0.32rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 7px 22px rgba(62, 39, 24, 0.07);
}

.hygiene-hub-switch button {
  display: grid;
  min-width: 0;
  min-height: 60px;
  padding: 0.62rem 0.72rem;
  place-items: center;
  gap: 0.05rem;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.hygiene-hub-switch strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

.hygiene-hub-switch span {
  font-size: 0.72rem;
  line-height: 1.25;
}

.hygiene-hub-switch button.active {
  background: var(--charcoal);
  color: #fff;
  box-shadow: 0 6px 16px rgba(41, 37, 33, 0.2);
}

#hygieneHubHygiene:focus,
#hygieneHubChecklists:focus {
  outline: none;
}

.checklist-hub-badge {
  display: inline-flex;
  min-height: 32px;
  padding: 0.38rem 0.72rem;
  align-items: center;
  border-radius: 999px;
  background: #e5edf3;
  color: #315a76;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.checklist-panel,
.checklist-detail-panel {
  overflow: hidden;
}

.checklist-overview-list {
  display: grid;
  gap: 0.82rem;
}

.checklist-card {
  padding: 1rem;
  border: 1px solid #ddd2c4;
  border-left: 5px solid #426c8f;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(62, 39, 24, 0.06);
}

.checklist-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.checklist-card-heading > div {
  min-width: 0;
}

.checklist-card-kicker {
  color: #426c8f;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.checklist-card h3 {
  margin: 0.12rem 0 0;
  overflow-wrap: anywhere;
  font-size: 1.08rem;
}

.checklist-card-heading p,
.checklist-progress-copy {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.checklist-open-pill {
  display: inline-flex;
  min-height: 30px;
  padding: 0.34rem 0.62rem;
  flex: 0 0 auto;
  align-items: center;
  border-radius: 999px;
  background: #fff0c8;
  color: #74520b;
  font-size: 0.76rem;
  font-weight: 900;
}

.checklist-open-pill.complete {
  background: #e5f3e9;
  color: #17613f;
}

.checklist-progress {
  height: 10px;
  margin-top: 0.82rem;
  overflow: hidden;
  border-radius: 999px;
  background: #ebe5dc;
}

.checklist-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #426c8f, #4d7a54);
  transition: width 180ms ease-out;
}

.checklist-card-actions,
.checklist-detail-actions {
  display: flex;
  margin-top: 0.82rem;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
}

.checklist-card-actions .primary-button,
.checklist-detail-actions .primary-button,
.checklist-detail-actions .secondary-button {
  min-height: 46px;
}

.checklist-card-actions .primary-button {
  margin-right: auto;
}

.checklist-back-button {
  min-height: 44px;
  margin-bottom: 0.7rem;
}

.checklist-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.checklist-detail-heading h2 {
  margin-bottom: 0.12rem;
  overflow-wrap: anywhere;
}

.checklist-detail-event {
  margin: 0;
  color: #426c8f;
  font-size: 0.86rem;
  font-weight: 800;
}

.checklist-detail-event.empty {
  color: var(--muted);
  font-weight: 650;
}

.checklist-progress-card {
  display: grid;
  margin-top: 0.9rem;
  padding: 0.92rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem 0.8rem;
  border: 1px solid #d8e2e9;
  border-radius: 14px;
  background: #f5f9fb;
}

.checklist-progress-card p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 850;
}

.checklist-progress-card b {
  color: #315a76;
  font-size: 1rem;
}

.checklist-progress-card .checklist-progress {
  margin-top: 0.38rem;
  grid-column: 1 / -1;
}

.checklist-detail-actions {
  margin-bottom: 1rem;
  padding-bottom: 0.92rem;
  border-bottom: 1px solid #eee7de;
}

.checklist-detail-actions .danger-outline {
  border-color: #d7a5a0;
  color: #8f2625;
}

.checklist-detail-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.checklist-groups {
  display: grid;
  gap: 1rem;
}

.checklist-group {
  display: grid;
  gap: 0.5rem;
}

.checklist-group-heading {
  display: flex;
  min-height: 32px;
  padding-inline: 0.1rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.checklist-group-heading h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.checklist-group.important .checklist-group-heading h3 {
  color: #8b5e08;
}

.checklist-group-heading span {
  display: inline-grid;
  min-width: 28px;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #eee8df;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.checklist-group.important .checklist-group-heading span {
  background: #fff0c8;
  color: #74520b;
}

.checklist-group-list {
  display: grid;
  gap: 0.58rem;
}

.checklist-item {
  display: grid;
  min-height: 72px;
  padding: 0.72rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid #dfd6cb;
  border-radius: 14px;
  background: #fff;
}

.checklist-item.important {
  border-color: #e3c77f;
  background: #fffaf0;
}

.checklist-item.done {
  background: #f2f5f1;
  opacity: 0.82;
}

.checklist-item-toggle {
  display: grid;
  width: 50px;
  height: 50px;
  padding: 0;
  place-items: center;
  border: 2px solid #b9aa98;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.checklist-item-toggle span {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 950;
}

.checklist-item.done .checklist-item-toggle {
  border-color: #3e744c;
  background: #3e744c;
}

.checklist-item-copy {
  display: grid;
  min-width: 0;
  gap: 0.08rem;
}

.checklist-item-copy strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.checklist-item.done .checklist-item-copy strong {
  color: var(--muted);
  text-decoration: line-through;
}

.checklist-item-copy span {
  color: #426c8f;
  font-size: 0.8rem;
  font-weight: 750;
}

.checklist-item-copy p {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.checklist-star-button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid #d7cbbd;
  border-radius: 12px;
  background: #fff;
  color: #a89c8d;
  font-size: 1.25rem;
  cursor: pointer;
}

.checklist-star-button.active {
  border-color: #d9ad4c;
  background: #fff3cf;
  color: #a56c00;
}

.checklist-item-actions {
  display: flex;
  grid-column: 2 / 4;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.checklist-item-actions button {
  min-height: 44px;
  padding-inline: 0.52rem;
  font-size: 0.8rem;
}

.checklist-empty-state {
  display: flex;
  padding: 1rem;
  align-items: center;
  gap: 0.8rem;
  border: 1px dashed #cdbfaf;
  border-radius: 14px;
  background: #faf7f1;
}

.checklist-empty-state > span {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: #e5edf3;
  color: #315a76;
  font-size: 1.1rem;
  font-weight: 900;
}

.checklist-empty-state strong {
  display: block;
}

.checklist-empty-state p {
  margin: 0.12rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.checklist-event-tools {
  display: flex;
  margin-top: 0.72rem;
  align-items: center;
  gap: 0.65rem;
}

.checklist-event-tools button {
  min-height: 44px;
}

.checklist-event-tools span {
  color: var(--muted);
  font-size: 0.8rem;
}

.checklist-important-check {
  min-height: 48px;
  align-self: end;
}

@media (max-width: 650px) {
  .hygiene-main-tab {
    font-size: 0.65rem !important;
  }

  .checklist-card-heading,
  .checklist-detail-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .checklist-open-pill {
    align-self: flex-start;
  }

  .checklist-card-actions .primary-button,
  .checklist-card-actions .text-button,
  .checklist-detail-actions button {
    flex: 1 1 auto;
  }

  .checklist-card-actions .primary-button {
    width: 100%;
    margin-right: 0;
  }

  .checklist-event-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .checklist-event-tools button {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .hygiene-hub-switch button {
    min-height: 64px;
    padding-inline: 0.36rem;
  }

  .hygiene-hub-switch strong {
    font-size: 0.78rem;
  }

  .hygiene-hub-switch span {
    font-size: 0.66rem;
  }

  .checklist-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-inline: 0.58rem;
    gap: 0.5rem;
  }

  .checklist-item-toggle {
    width: 46px;
    height: 46px;
  }

  .checklist-star-button {
    width: 40px;
    height: 40px;
  }

  .checklist-item-actions {
    grid-column: 1 / -1;
    padding-left: 3.6rem;
  }
}
