/* Dashboard der Premium-Tiefenprüfung, ergänzt style.css */

/* hidden muss auch gegen eigene display-Regeln gewinnen */
.dash [hidden] {
  display: none !important;
}

.dash {
  padding-top: 8px;
}

.dash-title {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  overflow-wrap: anywhere;
  margin-bottom: 0.25em;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Knöpfe (.button, .secondary) kommen aus style.css */
button.secondary {
  margin-top: 12px;
}

/* Fortschritt */
.progress-bar.indeterminate {
  position: relative;
}

.progress-bar.indeterminate div {
  position: absolute;
  inset: 0 auto 0 0;
  width: 35%;
  background: linear-gradient(90deg, var(--accent), var(--glow));
  animation: slide 1.6s ease-in-out infinite;
}

@keyframes slide {
  from {
    left: -35%;
  }
  to {
    left: 100%;
  }
}

.steps {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
}

.steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 5px 0;
  animation: fade-in 0.3s ease both;
}

.steps li .dot {
  margin-top: 4px;
}

.steps li.done {
  color: var(--muted);
}

.steps li.current {
  font-weight: 600;
}

.dot.crit {
  background: #7f1d1d;
}


/* Kopf */
.dash-head {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
}

.facts strong {
  font-size: 1.15rem;
}

.head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

#notes .note {
  margin-top: 16px;
}

/* Prognose */
.forecast {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
}

.forecast > p {
  flex: 1 1 280px;
  margin: 0;
}

.forecast-grades {
  display: flex;
  align-items: center;
  gap: 14px;
}

.forecast .arrow {
  font-size: 2rem;
  color: var(--accent);
}

.grade.small-grade {
  width: 104px;
  height: 104px;
  border-width: 6px;
}

.grade.small-grade .grade-value {
  font-size: 1.9rem;
}

/* Befunde weitergeben */
.share-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  max-width: 640px;
}

.share-form p {
  margin: 0 0 10px;
}

.share-form .field-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-row input {
  flex: 1 1 240px;
  min-width: 0;
  font: inherit;
  color: var(--text);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

/* Beispielbericht: Einleitung und Abschluss */
.beispiel-intro p {
  max-width: 78ch;
}

.beispiel-intro .buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  margin: 18px 0 0;
}

/* Verlauf: Vergleich mit dem letzten Lauf */
.history-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px 28px;
  margin-top: 20px;
}

.history-group h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.history-group ul {
  margin: 0;
  padding-left: 20px;
}

.history-group li {
  margin: 2px 0;
  overflow-wrap: anywhere;
}

#history > .muted {
  margin: 14px 0 0;
}

.history-runs {
  margin-top: 20px;
}

.history-runs summary {
  cursor: pointer;
  font-weight: 600;
}

.history-runs table {
  margin-top: 10px;
  border-collapse: collapse;
}

.history-runs th,
.history-runs td {
  padding: 4px 18px 4px 0;
  text-align: left;
}

.history-runs th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Befunde und Abschnitte */
.findings {
  list-style: none;
  padding: 0;
  margin: 0;
}

.findings .empty {
  color: var(--muted);
}

.check-row > div {
  min-width: 0;
}

.status-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.pkg-hint {
  font-size: 0.9rem;
  color: var(--accent-strong) !important;
}

.evidence {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.section {
  border-top: 1px solid var(--line);
}

.section:first-child {
  border-top: 0;
}

.section summary {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
}

.section summary::-webkit-details-marker {
  display: none;
}

.section summary::before {
  content: '▸';
  color: var(--muted);
  transition: transform 0.2s;
}

.section[open] summary::before {
  transform: rotate(90deg);
}

.section-title {
  font-weight: 700;
  flex: 1;
  min-width: 0;
}

.counts {
  display: flex;
  gap: 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

.count {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.count .dot {
  width: 10px;
  height: 10px;
}

#hacker .section {
  margin-top: 12px;
}

/* Unterseiten */
.toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 4px 0 8px;
  font-size: 0.95rem;
}

.pages {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pages li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.page-url {
  min-width: 0;
}

.page-url strong {
  display: block;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.page-url small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-content: flex-start;
}

.tag {
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag.good {
  background: var(--ok-soft);
}

.tag.bad {
  background: var(--fail-soft);
}

@media (max-width: 720px) {
  .pages li {
    grid-template-columns: minmax(0, 1fr);
  }

  .tags {
    justify-content: flex-start;
  }
}

/* Hacker-Sicht */
.locked {
  border-left: 6px solid var(--accent);
  background: var(--bg);
  border-radius: 8px;
  padding: 16px;
}

.locked p {
  margin: 6px 0 14px;
}

.ok-note {
  background: var(--ok-soft);
}

/* Pakete */
.packages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  margin-top: 12px;
}

.package {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.package h3 {
  font-size: 1.05rem;
}

.package .price {
  margin: 0 0 8px;
}

.package .price strong {
  font-size: 1.25rem;
}

.package ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.package li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 2px 0;
}

.package li .dot {
  width: 10px;
  height: 10px;
  transform: translateY(1px);
}

.package-actions {
  margin-top: auto;
}

.packages-total {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: baseline;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--bg);
}

.packages-total strong {
  font-size: 1.2rem;
}

@media (max-width: 560px) {
  .dash-head {
    gap: 16px;
  }

  .grade.small-grade {
    width: 88px;
    height: 88px;
  }

  .grade.small-grade .grade-value {
    font-size: 1.5rem;
  }

  .forecast .arrow {
    font-size: 1.5rem;
  }

  .shots {
    flex-direction: column;
    align-items: stretch;
  }

  .shot-mobile {
    flex-basis: auto;
    max-width: 60%;
    margin: 0 auto;
  }
}

/* Paketbilder und Illustration während der Prüfung */
.package .pkg-icon {
  width: 72px;
  margin-bottom: 8px;
}

.progress-illustration {
  width: 160px;
  float: right;
  margin: 0 0 8px 16px;
}

@media (max-width: 640px) {
  .progress-illustration {
    float: none;
    margin: 0 auto 8px;
  }
}
