/* Zero Trust Lab - Forensic Technical Advisory Stylesheet */
:root {
  --bg-primary: #0b0f17;
  --bg-secondary: #111827;
  --bg-card: #161f30;
  --bg-table-alt: #131b2b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #38bdf8;
  --accent-amber: #fbbf24;
  --accent-red: #f87171;
  --accent-green: #34d399;
  --border-color: #1e293b;
  --border-highlight: #334155;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  font-size: 16px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1.5rem;
}

.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.brand-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 4px;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border-highlight);
  border-radius: 6px;
  overflow: hidden;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-btn.active {
  background: var(--accent-blue);
  color: #090d16;
}

.contact-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.container {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  flex: 1;
}

.report-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.tag {
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-highlight);
  color: var(--text-secondary);
}

.tag-warn {
  color: var(--accent-amber);
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

.report-title {
  font-size: 2.1rem;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.report-subtitle {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 880px;
}

.verdict-box {
  background: linear-gradient(180deg, rgba(22, 31, 48, 0.95) 0%, rgba(17, 24, 39, 0.95) 100%);
  border: 1px solid var(--border-highlight);
  border-left: 4px solid var(--accent-amber);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.verdict-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-amber);
  margin-bottom: 0.6rem;
}

.verdict-box p {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.verdict-box p:last-child {
  margin-bottom: 0;
}

.section {
  margin-bottom: 2.75rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.4rem 0 0.6rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

ul, ol {
  margin: 0.5rem 0 1.25rem 1.4rem;
  color: var(--text-primary);
}

li {
  margin-bottom: 0.45rem;
}

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(30, 41, 59, 0.75);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: #e2e8f0;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.1rem 0 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

th {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-highlight);
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

tr:nth-child(even) td {
  background: var(--bg-table-alt);
}

tr:last-child td {
  border-bottom: none;
}

.hit-zero {
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-weight: 600;
}

.hit-pos {
  color: var(--accent-red);
  font-family: var(--font-mono);
  font-weight: 700;
}

.figure-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-highlight);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.figure-card img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  display: block;
  margin: 0 auto 1rem;
}

.figure-caption {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
}

.card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent-blue);
}

.legal-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-highlight);
  border-radius: 8px;
  padding: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.legal-box h3 {
  color: var(--text-primary);
  margin-top: 0;
  font-size: 1rem;
}

.footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

[data-lang="de"] {
  display: none;
}

body.lang-de [data-lang="en"] {
  display: none !important;
}

body.lang-de [data-lang="de"] {
  display: block !important;
}

@media print {
  .topbar, .lang-switch {
    display: none !important;
  }
  body {
    background: #ffffff;
    color: #000000;
  }
}
