/* =========================================================
   MSV – öffentliche Praxisfall-Wacht
   Ergänzt die bestehende styles.css
   ========================================================= */

.nav-current {
  color: var(--orange) !important;
}

.watch-page-hero {
  background:
    linear-gradient(
      120deg,
      rgba(16, 47, 56, 1) 0%,
      rgba(23, 75, 85, 0.98) 64%,
      rgba(16, 47, 56, 1) 100%
    );
  color: var(--white);
}

.watch-page-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 38px 62px;
}

.watch-page-kicker,
.watch-section-kicker {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.watch-page-hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.03;
}

.watch-page-intro {
  max-width: 850px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  line-height: 1.6;
}

.watch-page-principle {
  display: inline-block;
  margin-top: 26px;
  padding: 12px 16px;
  border-left: 4px solid var(--orange);
  background: rgba(255, 255, 255, 0.08);
  color: var(--orange-light);
  font-size: 0.92rem;
  font-weight: 700;
}

.watch-page-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 50px;
}

.watch-page-main section {
  margin: 0;
  padding: 34px 38px;
  border-radius: 0;
}

.watch-status-section,
.watch-results-section {
  background: var(--white);
}

.watch-filter-section,
.watch-source-section {
  background: var(--blue-light);
}

.watch-section-heading,
.watch-results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.watch-section-heading h2,
.watch-results-head h2 {
  margin: 0;
}

.watch-live-status,
.watch-result-count,
.watch-source-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
}

.watch-live-status.is-live {
  color: var(--petrol);
  font-weight: 700;
}

.watch-live-status.is-error {
  color: #8f3b32;
  font-weight: 700;
}


/* KPIs */

.watch-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.watch-kpi {
  padding: 18px 20px;
  background: var(--background);
  border-top: 4px solid var(--turquoise);
}

.watch-kpi-value {
  display: block;
  margin-bottom: 5px;
  color: var(--petrol);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.watch-kpi-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}


/* Filter */

.watch-filter-heading {
  align-items: center;
}

.watch-search-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.watch-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.watch-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.watch-field > span {
  color: var(--petrol);
  font-size: 0.78rem;
  font-weight: 700;
}

.watch-field input,
.watch-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(16, 47, 56, 0.18);
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  border-radius: 2px;
}

.watch-field input:focus,
.watch-field select:focus {
  outline: 3px solid rgba(95, 169, 170, 0.22);
  border-color: var(--turquoise);
}

.watch-reset-button,
.watch-primary-button,
.watch-secondary-button {
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
}

.watch-reset-button {
  background: transparent;
  border: 1px solid var(--petrol);
  color: var(--petrol);
}

.watch-reset-button:hover {
  background: var(--white);
}


/* Cards */

.watch-public-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.public-case-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  background: var(--background);
  border-top: 4px solid var(--turquoise);
}

.public-case-card:hover {
  border-top-color: var(--orange);
}

.case-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.case-id {
  color: var(--orange);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.case-source-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 28px;
  padding: 4px 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
}

.case-company {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.public-case-card h3 {
  margin: 0 0 12px;
  color: var(--petrol);
  font-size: 1.2rem;
  line-height: 1.25;
}

.case-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}

.case-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  background: var(--blue-light);
  color: var(--petrol);
  font-size: 0.72rem;
  font-weight: 700;
}

.case-chip.is-orange {
  background: var(--orange-light);
}

.case-description {
  margin: 0 0 16px;
  font-size: 0.91rem;
  line-height: 1.55;
}

.case-question {
  margin: auto 0 16px;
  padding: 12px 0 12px 14px;
  border-left: 3px solid var(--orange);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
}

.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 11px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}

.case-link:hover {
  background: var(--petrol);
  color: var(--orange-light);
}

.case-link.secondary {
  background: var(--white);
  border: 1px solid rgba(16, 47, 56, 0.22);
  color: var(--petrol);
}

.case-link.secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
}


/* Load actions / states */

.watch-load-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.watch-primary-button {
  background: var(--navy);
  color: var(--white);
}

.watch-primary-button:hover {
  background: var(--petrol);
}

.watch-secondary-button {
  background: var(--orange-light);
  color: var(--navy);
}

.watch-secondary-button:hover {
  background: var(--orange);
}

.watch-error,
.watch-empty {
  margin: 18px 0;
  padding: 20px;
  border-left: 4px solid var(--orange);
  background: var(--orange-light);
}

.watch-error p,
.watch-empty p {
  margin-bottom: 0;
}


/* Quellenlegende */

.watch-source-legend {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.watch-source-item {
  padding: 16px;
  background: var(--white);
}

.watch-source-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.source-a {
  background: var(--navy);
  color: var(--white);
}

.source-b {
  background: var(--petrol);
  color: var(--white);
}

.source-c {
  background: var(--orange);
  color: var(--navy);
}

.source-d {
  background: var(--turquoise);
  color: var(--navy);
}

.source-e {
  background: var(--muted);
  color: var(--white);
}

.watch-source-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--petrol);
  font-size: 0.88rem;
}

.watch-source-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.45;
}

.watch-method-note {
  margin-top: 18px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.55;
}


/* Responsive */

@media (max-width: 950px) {
  .watch-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .watch-source-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .watch-page-hero-inner {
    padding: 48px 20px 42px;
  }

  .watch-page-main {
    padding: 0 14px 36px;
  }

  .watch-page-main section {
    padding: 26px 20px;
  }

  .watch-section-heading,
  .watch-results-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .watch-live-status,
  .watch-result-count,
  .watch-source-note {
    text-align: left;
  }

  .watch-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .watch-search-row,
  .watch-filter-grid,
  .watch-public-grid,
  .watch-source-legend {
    grid-template-columns: 1fr;
  }

  .watch-filter-heading {
    align-items: stretch;
  }

  .watch-reset-button {
    width: 100%;
  }

  .watch-load-actions {
    flex-direction: column;
  }

  .watch-primary-button,
  .watch-secondary-button {
    width: 100%;
  }
}
