/* ============================================================
   zusatz_symptome.css – Zusatz-Symptom-Katalog
   Passend zu notfall_v2.css (gleiche Tokens + Stil)
   ============================================================ */

/* -- Trigger-Button -- */
.zs-button-wrapper {
  display: flex;
  justify-content: center;
  margin: 10px 0 2px;
}

.zs-trigger-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md, 6px);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
  line-height: 1.2;
  white-space: nowrap;
  background: var(--v2-panel-bg, #fff);
  border: 1px solid var(--gray-300, #d1d5db);
  color: var(--v2-text, #1f2937);
  transition: background 0.15s ease, transform 0.06s ease,
              box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: none;
}

.zs-trigger-btn:hover {
  background: var(--gray-100, #f3f4f6);
  border-color: var(--brand-light, #6b9fd4);
  color: var(--brand, #1a3a5c);
  transform: translateY(-1px);
}

.zs-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--brand, #1a3a5c);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* -- Overlay -- */
.zs-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.zs-overlay.zs-visible {
  opacity: 1;
  pointer-events: auto;
}

/* -- Modal -- */
.zs-modal {
  background: var(--v2-panel-bg, #fff);
  border: 1px solid var(--gray-300, #d1d5db);
  border-radius: var(--radius-lg, 12px);
  width: 96%;
  max-width: 780px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-2, 0 8px 32px rgba(0,0,0,0.15));
  transform: translateY(16px);
  transition: transform 0.2s ease;
  overflow: hidden;
}

.zs-overlay.zs-visible .zs-modal {
  transform: translateY(0);
}

/* -- Header (wie panel-header--blue) -- */
.zs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.2rem;
  background: var(--brand, #1a3a5c);
  color: #fff;
  border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0;
}

.zs-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
}

.zs-close-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  line-height: 1;
  padding: 2px 6px;
  border-radius: var(--radius-sm, 4px);
  transition: color 0.15s;
}

.zs-close-btn:hover {
  color: #fff;
}

/* -- Body -- */
.zs-body {
  padding: 0.9rem 1.2rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* -- Kategorien (wie .notruf-block / section-card im v2) -- */
.zs-kategorie {
  background: var(--v2-card-bg, #F8FAFC);
  border: 1px solid var(--v2-card-border, #E5E9EF);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
}

.zs-kat-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--v2-label-color, var(--brand-light, #6b9fd4));
  margin: 0 0 0.4rem 0;
  padding: 0;
}

/* -- Checkbox-Grid (3 Spalten bei breitem Modal) -- */
.zs-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px 10px;
}

.zs-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  padding: 0.3rem 0.35rem;
  border-radius: var(--radius-sm, 4px);
  cursor: pointer;
  color: var(--v2-text, #1f2937);
  line-height: 1.35;
  transition: background 0.1s ease;
  user-select: none;
}

.zs-checkbox-label:hover {
  background: rgba(0,0,0,0.03);
}

.zs-checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--brand, #1a3a5c);
}

/* -- Hinweise pro Kategorie -- */
.zs-kat-hinweise:empty {
  display: none;
}

.zs-kat-hinweise {
  margin-top: 0.4rem;
}

.zs-hinweis {
  padding: 0.45rem 0.7rem;
  border-radius: 0 var(--radius-md, 6px) var(--radius-md, 6px) 0;
  font-size: 0.88rem;
  margin-bottom: 5px;
  line-height: 1.35;
  color: var(--v2-text, #1f2937);
}

.zs-hinweis:last-child {
  margin-bottom: 0;
}

/* Info = wie .hint-item */
.zs-hinweis-info {
  background: #fff;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-left: 3px solid var(--brand, #1a3a5c);
}

/* Warnung = wie .warn-group */
.zs-hinweis-warnung {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-left: 3px solid #D97706;
}

/* -- Footer -- */
.zs-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1.2rem;
  border-top: 1px solid var(--v2-card-border, #E5E9EF);
  gap: 10px;
  background: var(--v2-card-bg, #F8FAFC);
}

/* Zuruecksetzen = btn-blass Stil */
.zs-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md, 6px);
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 36px;
  cursor: pointer;
  background: var(--v2-panel-bg, #fff);
  border: 1px solid var(--gray-300, #d1d5db);
  color: var(--v2-text, #1f2937);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.zs-reset-btn:hover {
  background: var(--gray-100, #f3f4f6);
  border-color: var(--brand-light, #6b9fd4);
  color: var(--brand, #1a3a5c);
}

/* Uebernehmen = btn-schnell Stil */
.zs-ok-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-md, 6px);
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 36px;
  cursor: pointer;
  background: var(--brand, #1a3a5c);
  border: 1px solid var(--brand, #1a3a5c);
  color: #fff;
  transition: background 0.15s ease, transform 0.06s ease, box-shadow 0.15s ease;
}

.zs-ok-btn:hover {
  background: var(--brand-dark, #15304d);
  border-color: var(--brand-dark, #15304d);
  transform: translateY(-1px);
  box-shadow: var(--shadow-1, 0 2px 6px rgba(0,0,0,0.12));
}

/* -- Responsive -- */
@media (max-width: 700px) {
  .zs-checkbox-grid {
    grid-template-columns: 1fr 1fr;
  }

  .zs-modal {
    max-width: 96%;
  }
}

@media (max-width: 480px) {
  .zs-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .zs-modal {
    width: 99%;
    max-height: 94vh;
  }

  .zs-body {
    padding: 0.7rem 0.85rem;
  }

  .zs-header, .zs-footer {
    padding: 0.55rem 0.85rem;
  }
}
