@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Oswald:wght@400;700&family=Special+Elite&display=swap');

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

html {
  scroll-behavior: smooth;
}

:root {
  --red: #c0392b;
  --green: #00ff41;
  --amber: #ffbf00;
  --dark: #0a0a0a;
  --cyan: #00e5ff;
}

body {
  background: var(--dark);
  color: #d0d0d0;
  font-family: 'Share Tech Mono', monospace;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 255, 65, 0.03) 0px, rgba(0, 255, 65, 0.03) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: 9999;
}

/* === NAVIGATION === */
.top-nav {
  background: #0d0d0d;
  border-bottom: 1px solid #1a1a1a;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: 'Oswald', sans-serif;
  color: var(--green);
  font-size: 16px;
  letter-spacing: 4px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span {
  font-size: 20px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: #555;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
}

/* === CLASSIFIED BAR === */
.classified-bar {
  background: var(--red);
  color: white;
  text-align: center;
  padding: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 6px;
  text-transform: uppercase;
  animation: blink 3s infinite;
}

@keyframes blink {
  0%, 90%, 100% { opacity: 1 }
  95% { opacity: .3 }
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0, 255, 65, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(192, 57, 43, 0.05) 0%, transparent 50%),
    var(--dark);
}

.hero-stamp {
  position: absolute;
  top: 40px;
  right: 40px;
  border: 3px solid var(--red);
  color: var(--red);
  padding: 8px 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  letter-spacing: 4px;
  transform: rotate(12deg);
  opacity: 0.7;
  text-decoration: none;
  transition: all 0.3s;
}

.hero-stamp:hover {
  opacity: 1;
  text-shadow: 0 0 10px rgba(192, 57, 43, 0.5);
}

.hero-icon {
  font-size: 120px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 30px rgba(0, 255, 65, 0.4));
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1) }
  50% { transform: scale(1.05) }
}

.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(36px, 6vw, 72px);
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 8px;
  text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
  margin-bottom: 10px;
}

.hero .subtitle {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(16px, 2.5vw, 24px);
  color: var(--amber);
  letter-spacing: 4px;
  margin-bottom: 30px;
}

.hero .tagline {
  max-width: 700px;
  font-size: 14px;
  line-height: 1.8;
  color: #888;
  margin-bottom: 40px;
}

.scroll-indicator {
  animation: bounce 2s infinite;
  color: var(--green);
  font-size: 28px;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) }
  50% { transform: translateY(10px) }
}

/* === SECTIONS === */
section {
  max-width: 920px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-header {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 4px;
  border-left: 4px solid var(--red);
  padding-left: 16px;
  margin-bottom: 30px;
}

.section-header .rid {
  display: block;
  font-size: 12px;
  color: #555;
  margin-top: 4px;
  letter-spacing: 2px;
}

p {
  line-height: 1.9;
  margin-bottom: 20px;
  font-size: 14px;
}

/* === REDACTED TEXT === */
.redacted {
  background: #333;
  color: #333;
  padding: 0 4px;
  border-radius: 2px;
  cursor: pointer;
  transition: all .3s;
  user-select: none;
}

.redacted:hover,
.redacted.revealed {
  background: transparent;
  color: var(--red);
}

/* === EVIDENCE CARD === */
.evidence-card {
  background: linear-gradient(135deg, #111, #1a1a1a);
  border: 1px solid #2a2a2a;
  border-left: 3px solid var(--amber);
  padding: 24px;
  margin: 30px 0;
  position: relative;
}

.evidence-card::before {
  content: 'BEWEISSTÜCK';
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--dark);
  color: var(--amber);
  font-size: 10px;
  letter-spacing: 3px;
  padding: 2px 10px;
  font-family: 'Oswald', sans-serif;
}

.evidence-card h3 {
  font-family: 'Oswald', sans-serif;
  color: var(--amber);
  margin-bottom: 12px;
  font-size: 16px;
  letter-spacing: 2px;
}

/* === TECH CARD === */
.tech-card {
  background: linear-gradient(135deg, #0a1a0a, #111);
  border: 1px solid #1a3a1a;
  border-left: 3px solid var(--cyan);
  padding: 24px;
  margin: 30px 0;
  position: relative;
}

.tech-card::before {
  content: 'TECHNISCHE SPEZIFIKATION';
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--dark);
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 3px;
  padding: 2px 10px;
  font-family: 'Oswald', sans-serif;
}

.tech-card h3 {
  font-family: 'Oswald', sans-serif;
  color: var(--cyan);
  margin-bottom: 12px;
  font-size: 16px;
  letter-spacing: 2px;
}

.tech-card ul {
  list-style: none;
  padding: 0;
}

.tech-card li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 13px;
  color: #aaa;
  line-height: 1.6;
}

.tech-card li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* === MESH DIAGRAM === */
.mesh-diagram {
  background: #0d0d0d;
  border: 1px solid #1a3a1a;
  border-radius: 8px;
  padding: 30px;
  margin: 40px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mesh-diagram::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 255, 65, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 255, 65, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.mesh-diagram canvas {
  display: block;
  margin: 0 auto;
}

/* === FREQUENCY TABLE === */
.freq-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13px;
}

.freq-table th {
  background: #1a1a1a;
  color: var(--green);
  padding: 10px 12px;
  text-align: left;
  letter-spacing: 2px;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  border-bottom: 2px solid var(--green);
}

.freq-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #1a1a1a;
  color: #aaa;
}

.freq-table tr:hover td {
  background: rgba(0, 255, 65, 0.03);
  color: var(--green);
}

/* === TYPEWRITER === */
.typewriter-section {
  background: #0a0a0a;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  padding: 40px 20px;
  text-align: center;
}

.typewriter-text {
  font-family: 'Special Elite', cursive;
  font-size: clamp(18px, 3vw, 28px);
  color: var(--amber);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* === TIMELINE === */
.timeline {
  position: relative;
  padding-left: 40px;
  margin: 30px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green), var(--red));
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.timeline-item .year {
  font-family: 'Oswald', sans-serif;
  color: var(--red);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.timeline-item .event {
  font-size: 13px;
  color: #999;
  line-height: 1.6;
}

/* === SPECIES GRID === */
.species-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 30px 0;
}

.species-card {
  background: #111;
  border: 1px solid #222;
  padding: 20px;
  text-align: center;
  transition: all .3s;
  cursor: default;
}

.species-card:hover {
  border-color: var(--green);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

.species-card .icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.species-card .name {
  font-family: 'Oswald', sans-serif;
  color: var(--green);
  letter-spacing: 2px;
  font-size: 14px;
  margin-bottom: 6px;
}

.species-card .role {
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 1px;
}

.species-card .detail {
  font-size: 11px;
  color: #666;
  margin-top: 8px;
  line-height: 1.5;
}

/* === WARNING BOX === */
.warning-box {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.3);
  padding: 20px;
  margin: 30px 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.warning-box .icon {
  font-size: 24px;
  flex-shrink: 0;
}

.warning-box p {
  margin: 0;
  color: #c0392b;
  font-size: 13px;
  line-height: 1.7;
}

/* === INFO BOX === */
.info-box {
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.15);
  padding: 20px;
  margin: 30px 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.info-box .icon {
  font-size: 24px;
  flex-shrink: 0;
}

.info-box p {
  margin: 0;
  color: var(--cyan);
  font-size: 13px;
  line-height: 1.7;
}

/* === OPERATIONS GRID === */
.ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.ops-card {
  background: #111;
  border: 1px solid #222;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.ops-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at top right, rgba(0, 255, 65, 0.08), transparent 70%);
}

.ops-card .zone {
  font-family: 'Oswald', sans-serif;
  color: var(--green);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.ops-card .codename {
  font-family: 'Oswald', sans-serif;
  color: var(--amber);
  font-size: 11px;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.ops-card .desc {
  font-size: 12px;
  color: #888;
  line-height: 1.7;
}

.ops-card .stat {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #222;
  font-size: 11px;
  color: #555;
}

.ops-card .stat strong {
  color: var(--green);
}

/* === PROTOCOL BOX === */
.protocol-box {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  padding: 20px;
  margin: 20px 0;
  font-size: 12px;
  color: #555;
  line-height: 1.8;
  font-family: 'Share Tech Mono', monospace;
  white-space: pre-line;
}

.protocol-box .cmd { color: var(--green); }
.protocol-box .val { color: var(--amber); }
.protocol-box .err { color: var(--red); }

/* === GLITCH EFFECT === */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0; right: 0;
  overflow: hidden;
}

.glitch::before {
  color: var(--red);
  z-index: -1;
  animation: g1 3s infinite;
}

.glitch::after {
  color: cyan;
  z-index: -2;
  animation: g2 3s infinite;
}

@keyframes g1 {
  0%, 94%, 100% { clip-path: none; transform: none }
  95% { clip-path: inset(20% 0 60% 0); transform: translateX(-4px) }
  96% { clip-path: inset(60% 0 10% 0); transform: translateX(4px) }
}

@keyframes g2 {
  0%, 96%, 100% { clip-path: none; transform: none }
  97% { clip-path: inset(40% 0 30% 0); transform: translateX(4px) }
  98% { clip-path: inset(10% 0 70% 0); transform: translateX(-4px) }
}

/* === SIGNAL BAR === */
.signal-bar {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  margin: 40px 0;
  animation: signal 3s infinite;
}

@keyframes signal {
  0%, 100% { opacity: .3 }
  50% { opacity: 1 }
}

/* === DOKUMENT-LINKS IM TEXT === */
.doc-link {
  color: var(--amber);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  transition: color 0.3s, border-bottom-color 0.3s;
  border-bottom: 1px solid rgba(255, 191, 0, 0.3);
}

.doc-link:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid #1a1a1a;
  color: #444;
  font-size: 11px;
  line-height: 2;
}

footer .satire {
  background: rgba(255, 191, 0, 0.1);
  border: 1px solid rgba(255, 191, 0, 0.2);
  display: inline-block;
  padding: 8px 20px;
  margin-bottom: 20px;
  color: var(--amber);
  font-size: 12px;
  letter-spacing: 2px;
}

/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid rgba(0, 255, 65, 0.3);
  color: var(--green);
  font-size: 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: rgba(0, 255, 65, 0.2);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}

/* === ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all .8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 700px) {
  .top-nav {
    flex-direction: column;
    gap: 10px;
  }
}