/* ============================================================
   HuntingThreats — gemeinsame Komponenten (Buttons, Cards, Badges,
   Tabellen, Navigationsreste)

   Hiess bis 25.08.2026 ht-light.css. Der Name stammte aus einer Phase,
   in der die Datei ein helles Theme lieferte und Tokens ueberschrieb.
   Beides trifft nicht mehr zu: sie enthaelt null Variablendefinitionen,
   die Tokens kommen ausschliesslich aus ht-tokens.css.

   In einem Dark-First-Theme war der alte Name aktiv irrefuehrend.

   Geloescht wurde nichts: von 56 Selektoren greifen nachweislich
   mindestens 21, und Pseudo-Regeln wie ::selection oder :focus-visible
   lassen sich per Selektorabfrage gar nicht als genutzt nachweisen.
   Das Ausduennen gehoert in einen eigenen Slice.
   ============================================================ */

/* Shared values now come from ht-tokens.css. This file remains available for
   the incremental light-mode migration in a later design-system slice. */

/* ── Base ──────────────────────────────────────────────── */
body { background: var(--bg-primary); color: var(--text-primary); }
::selection { background: rgba(45,108,246,0.18); color: var(--accent-deep); }
::-webkit-scrollbar-thumb { background: rgba(16,30,54,0.22); box-shadow: none; }
:focus-visible { outline: 2px solid var(--accent); }

/* Grid-/Glow-Hintergrund dezenter, blau statt grün */
.ht-bg-grid::before {
  background-image:linear-gradient(rgba(45,108,246,0.05) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(45,108,246,0.05) 1px,transparent 1px);
}

/* ── Eyebrow / Section-Head ────────────────────────────── */
.ht-eyebrow { color: var(--ht-primary-text); }
.ht-eyebrow .dot { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.ht-link-all { color: var(--ht-primary-text); }

/* ── Header ────────────────────────────────────────────── */
.ht-header { background: rgba(255,255,255,0.85); border-bottom: 1px solid var(--border); }
.ht-logo { color: var(--text-primary); }
.ht-logo__mark { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; box-shadow: 0 4px 12px rgba(45,108,246,0.35); }
.ht-logo em { color: var(--ht-primary-text); }
.ht-nav a { color: var(--text-secondary); }
.ht-nav a:hover { color: var(--text-primary); background: rgba(45,108,246,0.07); }
.ht-nav a.is-active { color: var(--ht-primary-text); }
.ht-nav a.is-active::after { background: var(--accent); box-shadow: none; }
.ht-iconbtn { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); }
.ht-iconbtn:hover { border-color: var(--accent); color: var(--ht-primary-text); }
.ht-mobile-nav { background: var(--bg-secondary); border-top: 1px solid var(--border); }
.ht-mobile-nav a:hover, .ht-mobile-nav a.is-active { color: var(--ht-primary-text); background: rgba(45,108,246,0.07); }

/* ── Buttons ───────────────────────────────────────────── */
.ht-btn--primary { background: var(--ht-primary); color: #fff; box-shadow: var(--ht-shadow-sm); }
.ht-btn--primary:hover { background: var(--ht-primary-hover); box-shadow: var(--ht-shadow-md); }
.ht-btn--ghost,.ht-btn--secondary { color: var(--ht-text-primary); border-color: var(--ht-border-strong); }
.ht-btn--ghost:hover,.ht-btn--secondary:hover { border-color: var(--ht-primary); color: var(--ht-text-primary); background: var(--ht-primary-soft); }
.ht-btn--soft { background: var(--ht-primary-soft); color: var(--ht-primary-hover); border-color: var(--ht-border-strong); }
.ht-btn--soft:hover { background: color-mix(in srgb,var(--ht-primary-soft) 72%,var(--ht-primary)); }
.ht-btn--danger { background:var(--ht-danger); color:#fff; border-color:var(--ht-danger); }

/* ── Cards / KPI ───────────────────────────────────────── */
.ht-card { background: var(--ht-bg-surface); border: 1px solid var(--ht-border-soft); box-shadow: var(--ht-shadow-sm); }
.ht-card--hover:hover, a.ht-card:hover { border-color: var(--border-strong); background: var(--bg-card-hover); box-shadow: var(--shadow-glow); }
.ht-card__icon { background: rgba(45,108,246,0.08); border: 1px solid var(--border); color: var(--ht-primary-text); }
.kpi-card { background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.kpi-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-glow); }

/* ── Badges ────────────────────────────────────────────── */
.ht-badge { background: rgba(45,108,246,0.08); color: var(--ht-primary-text); border: 1px solid rgba(45,108,246,0.22); }
.ht-badge--low { background: rgba(31,157,98,0.12); color: #1F9D62; border-color: rgba(31,157,98,0.3); }
.ht-badge--info { background: rgba(45,108,246,0.1); color: var(--accent-deep); border-color: rgba(45,108,246,0.28); }
.ht-badge--neutral { background: var(--bg-secondary); color: var(--text-secondary); border-color: var(--border); }

/* ── Tabellen ──────────────────────────────────────────── */
.ht-table-wrap { background: var(--bg-card); border: 1px solid var(--border); }
.ht-table th { background: #F1F5FB; color: var(--accent-deep); border-bottom: 1px solid var(--border); }
.ht-table td { border-bottom: 1px solid var(--border-neutral); color: var(--text-secondary); }
.ht-table tbody tr:hover td { background: rgba(45,108,246,0.04); }
.ht-table .mono { color: var(--accent-deep); }

/* ── Panels / Filter / Inputs ──────────────────────────── */
.panel, .filter-bar { background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.panel__head { border-bottom: 1px solid var(--border); }
.ht-input, .ht-select { background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-primary); }
.ht-input:focus, .ht-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,108,246,0.12); }
.quick-filter { background: #EFF3F9; border: 1px solid var(--border); color: var(--text-secondary); }
.quick-filter:hover, .quick-filter.is-active { border-color: var(--accent); color: var(--ht-primary-text); background: rgba(45,108,246,0.08); }
.rank-bar { background: rgba(16,30,54,0.06); }

/* ── Hero / Newsletter ─────────────────────────────────── */
.page-hero { border-bottom: 1px solid var(--border); }
.page-hero__glow { background: radial-gradient(ellipse, rgba(45,108,246,0.14) 0%, transparent 65%); opacity: .6; }
.newsletter-cta { background: linear-gradient(135deg, #EAF1FE, #FFFFFF); border: 1px solid var(--border-strong); }
.newsletter-cta::before { background: radial-gradient(ellipse, rgba(45,108,246,0.16) 0%, transparent 65%); }

/* ── News-Card ─────────────────────────────────────────── */
.news-card { background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.news-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.news-card__img { background: linear-gradient(135deg, #E7EDF6, #DCE6F4); }
.news-card__img img { filter: none; }

/* ── Footer (dunkel als Kontrastfuß) ───────────────────── */
.ht-footer { background: #0E1A2D; border-top: 1px solid #0E1A2D; color: var(--ht-text-secondary); }
.ht-footer__about p { color: var(--ht-text-muted); }
.ht-footer__col h4 { color: var(--ht-text-primary); }
.ht-footer__col a { color: var(--ht-text-muted); }
.ht-footer__col a:hover { color: #7FA8FF; }
.ht-footer .ht-logo { color: #fff; }
.ht-footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); color: var(--ht-text-muted); }
.ht-footer__bottom .live i { background: #1F9D62; box-shadow: 0 0 8px #1F9D62; }
.ht-social-icon { background: rgba(255,255,255,0.07); color: #B8C4D4; }
.ht-social-icon:hover { background: rgba(255,255,255,0.14); color: #fff; }
/* Newsletter sitzt im Footer → wieder hell als Karte */
.ht-footer .newsletter-cta { background: linear-gradient(135deg, #13233A, #0E1A2D); border-color: rgba(127,168,255,0.3); }
.ht-footer .newsletter-cta h3 { color: #fff; }
.ht-footer .newsletter-cta p { color: #A9B6CA; }

/* ── Demo-Note ─────────────────────────────────────────── */
.demo-note { color: #B07A00; background: rgba(224,161,4,0.1); border: 1px solid rgba(224,161,4,0.3); }

/* ── Breadcrumbs (SEO-T05) ────────────────────────────────────────────
   Dezent und klein: der Pfad ist Orientierung, nicht Inhalt. Umbricht
   auf schmalen Viewports in mehrere Zeilen, statt eine eigene Scrollleiste
   zu erzeugen. */
.ht-breadcrumb {
  padding: var(--ht-space-3) var(--ht-space-6) 0;
  font-size: var(--ht-type-caption);
  line-height: var(--ht-leading-snug);
}
.ht-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ht-space-05) var(--ht-gap-inline);
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}
.ht-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: var(--ht-gap-inline);
  color: var(--ht-text-muted);
  min-width: 0;
}
.ht-breadcrumb li + li::before {
  content: "/";
  color: var(--ht-text-disabled);
  speak: never;
}
.ht-breadcrumb a {
  color: var(--ht-text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.ht-breadcrumb a:hover,
.ht-breadcrumb a:focus-visible {
  color: var(--ht-text-secondary);
  border-bottom-color: var(--ht-border-strong);
}
.ht-breadcrumb [aria-current="page"] {
  color: var(--ht-text-secondary);
  /* Der aktuelle Titel kann lang sein — er darf kuerzen, nicht sprengen. */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(52ch, 100%);
}
@media (max-width: 720px) {
  .ht-breadcrumb { padding: var(--ht-space-25) var(--ht-space-4) 0; }
}

/* ── Kontextuelle Weiterfuehrung (SEO-O03) ────────────────────────────
   Steht am Fuss einer Tool-Seite, nicht sitewide. Karten in derselben
   Sprache wie der Rest des Cockpits: gleiche Polsterung, gleicher
   Rasterabstand, gleiche Rollen. */
.ht-related {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--ht-space-6) var(--ht-space-10);
}
.ht-related h2 {
  margin: 0 0 var(--ht-space-4);
  font-size: var(--ht-type-title);
  font-weight: var(--ht-font-weight-bold);
  color: var(--ht-text-primary);
}
.ht-related ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--ht-gap-grid);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ht-related a {
  display: flex;
  flex-direction: column;
  gap: var(--ht-space-15);
  height: 100%;
  padding: var(--ht-pad-card);
  border: 1px solid var(--ht-border-soft);
  border-radius: var(--ht-radius-md);
  background: var(--ht-bg-surface);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.ht-related a:hover,
.ht-related a:focus-visible {
  border-color: var(--ht-border-strong);
  background: var(--ht-bg-elevated);
}
.ht-related__titel {
  font-size: var(--ht-type-body);
  font-weight: var(--ht-font-weight-semibold);
  color: var(--ht-primary-text);
}
.ht-related__text {
  font-size: var(--ht-type-body-sm);
  line-height: var(--ht-leading-snug);
  color: var(--ht-text-secondary);
}
@media (max-width: 720px) {
  .ht-related { padding: 0 var(--ht-space-4) var(--ht-space-8); }
}
