/* check.hs-anhalt.de — Landing ohne Sidebar */

.nw-check-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page, #f2f5f7);
}

.nw-check-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height, 56px);
  padding: 0 1rem;
  background: var(--bg-header, #fff);
  border-bottom: 1px solid var(--border, #d9dee3);
  box-shadow: var(--shadow, 0 1px 3px rgba(0, 0, 0, 0.08));
}

.nw-check-topbar__logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.nw-check-topbar__logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nw-check-topbar__title {
  flex: 1 1 auto;
  margin: 0;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text, #1a1a1a);
}

.nw-check-topbar__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nw-check-topbar__hint {
  font-size: 0.85rem;
  color: var(--text-muted, #5c5c5c);
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nw-check-source-ip {
  margin: 0 0 0.35rem;
  padding: 0.75rem 1rem;
  background: var(--kpi-bg-1, #e8f4f8);
  border: 1px solid var(--kpi-border, #c5dde6);
  border-radius: var(--radius, 6px);
  font-size: 1rem;
  color: var(--text, #1a1a1a);
}

.nw-check-source-ip-meta {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted, #5c5c5c);
}

.nw-check-snat-warn {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius, 6px);
  border: 1px solid #e0a800;
  background: #fff8e1;
  color: #5c4a00;
  font-size: 0.9rem;
  line-height: 1.4;
}

html[data-theme="dark"] .nw-check-snat-warn {
  background: #3a3218;
  border-color: #8a7420;
  color: #f0e6b0;
}

.nw-check-hostname {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--text, #1a1a1a);
}

.nw-check-hostname #nw-check-hostname-value {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nw-check-local-ips {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-muted, #5c5c5c);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.nw-check-source-ip #nw-check-source-ip-value {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 600;
  letter-spacing: 0.02em;
}

html[data-theme="dark"] .nw-check-source-ip {
  background: var(--kpi-bg-1, #1a3338);
  border-color: var(--kpi-border, #2a4a52);
}

.nw-check-main {
  flex: 1;
  padding: 1.25rem 1rem 2rem;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.nw-check-lead {
  margin: 0 0 1rem;
  color: var(--text-muted, #5c5c5c);
  font-size: 0.95rem;
}

.nw-check-status {
  margin: 0 0 0.75rem;
  color: var(--danger, #c0392b);
  font-size: 0.9rem;
}

.nw-check-summary {
  margin: 0 0 0.75rem;
  max-height: none;
  font-size: 0.88rem;
  line-height: 1.5;
}

.nw-check-pre {
  margin: 0;
  padding: 1rem;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #d9dee3);
  border-radius: var(--radius, 6px);
  font-size: 0.8rem;
  line-height: 1.45;
  overflow: auto;
  max-height: min(70vh, 720px);
  white-space: pre-wrap;
  word-break: break-word;
}

html[data-theme="dark"] .nw-check-pre {
  background: var(--bg-card, #1e1e1e);
}

.nw-check-agent {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border, #d9dee3);
}

.nw-check-agent__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.nw-check-agent__lead {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted, #5c5c5c);
  line-height: 1.45;
}

.nw-check-agent__lead code {
  font-size: 0.82em;
}

.nw-check-agent-status {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.nw-check-agent-status--ok {
  color: #1b7a3d;
}

.nw-check-agent-status--warn {
  color: #8a6d00;
}

.nw-check-agent-status--err {
  color: var(--danger, #c0392b);
}

.nw-check-agent-status--wait {
  color: var(--text-muted, #5c5c5c);
}

.nw-check-agent__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-end;
  margin-bottom: 0.75rem;
}

.nw-check-agent__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted, #5c5c5c);
  min-width: 5rem;
}

.nw-check-agent__field--grow {
  flex: 1 1 12rem;
}

.nw-check-agent__field input {
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border, #d9dee3);
  border-radius: var(--radius, 6px);
  background: var(--bg-card, #fff);
  color: var(--text, #1a1a1a);
  font-size: 0.9rem;
}

.nw-check-agent__check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  margin-right: auto;
}

.nw-check-trace {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border, #d9dee3);
  background: linear-gradient(165deg, #f8fafb 0%, #eef2f6 100%);
}

html[data-theme="dark"] .nw-check-trace {
  background: linear-gradient(165deg, #1c2228 0%, #151a1f 100%);
  border-color: #2a333c;
}

.nw-check-trace__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.65rem;
}

.nw-check-trace__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #5c5c5c);
}

.nw-check-trace__target {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.nw-check-trace__meta {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-muted, #5c5c5c);
}

.nw-check-trace__hops {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 220px;
  overflow: auto;
}

.nw-check-trace__hop {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

html[data-theme="dark"] .nw-check-trace__hop {
  background: rgba(255, 255, 255, 0.04);
}

.nw-check-trace__hop-n {
  font-weight: 700;
  color: var(--text-muted, #5c5c5c);
}

.nw-check-trace__hop-ip {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84rem;
}

.nw-check-trace__hop-rtt {
  color: var(--text-muted, #5c5c5c);
  font-size: 0.8rem;
}

.nw-check-trace__hop--timeout .nw-check-trace__hop-ip {
  opacity: 0.55;
  font-style: italic;
}

.nw-check-trace__hop--dest {
  box-shadow: inset 3px 0 0 #0d9488;
}

.nw-check-trace--run .nw-check-trace__meta {
  animation: nw-check-gauge-pulse 1.1s ease-in-out infinite;
}

.nw-check-speed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.5rem 0 1rem;
}

@media (max-width: 640px) {
  .nw-check-speed {
    grid-template-columns: 1fr;
  }
}

.nw-check-speed__card {
  position: relative;
  padding: 1rem 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border, #d9dee3);
  background: linear-gradient(160deg, #f7fafc 0%, #eef3f7 55%, #e8eef4 100%);
  text-align: center;
  overflow: hidden;
}

html[data-theme="dark"] .nw-check-speed__card {
  background: linear-gradient(160deg, #1c2228 0%, #151a1f 100%);
  border-color: #2a333c;
}

.nw-check-speed__card--down {
  box-shadow: inset 0 -3px 0 #0d9488;
}

.nw-check-speed__card--up {
  box-shadow: inset 0 -3px 0 #0369a1;
}

.nw-check-speed__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #5c5c5c);
}

.nw-check-speed__dir {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  font-size: 1.4rem;
  opacity: 0.35;
  font-weight: 700;
}

.nw-check-speed__gauge {
  width: min(100%, 200px);
  height: auto;
  margin: 0.35rem auto 0;
  display: block;
}

.nw-check-speed__track {
  stroke: rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .nw-check-speed__track {
  stroke: rgba(255, 255, 255, 0.1);
}

.nw-check-speed__arc {
  transition: stroke-dasharray 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.nw-check-speed__arc--down {
  stroke: #0d9488;
}

.nw-check-speed__arc--up {
  stroke: #0284c7;
}

.nw-check-speed__arc--run {
  animation: nw-check-gauge-pulse 1.1s ease-in-out infinite;
}

@keyframes nw-check-gauge-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.nw-check-speed__value {
  margin-top: -0.35rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.nw-check-speed__value > span:first-child {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text, #1a1a1a);
}

.nw-check-speed__num--pulse {
  animation: nw-check-gauge-pulse 1.1s ease-in-out infinite;
}

.nw-check-speed__unit {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted, #5c5c5c);
}

.nw-check-speed__meta {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-muted, #5c5c5c);
  min-height: 1.2em;
}

.nw-check-iperf-details {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted, #5c5c5c);
}

.nw-check-iperf-details summary {
  cursor: pointer;
  user-select: none;
  margin-bottom: 0.5rem;
}

.nw-check-iperf-out {
  max-height: min(40vh, 360px);
  margin-top: 0.25rem;
}
