:root {
  --black: #0A0A0F;
  --navy: #1A1A2E;
  --cyan: #00FFF0;
  --magenta: #FF00FF;
  --red: #FF0055;
  --text: #E8EBF3;
  --muted: #9AA3B4;
  --line: rgba(255, 255, 255, 0.11);
  --teal: #00FFF0;
  --pink: #FF00FF;
  --signal-pink: #FF10F0;
  --purple: #9D00FF;
  --bg: #0A0A0F;
  --surface: #1A1A2E;
  --card: #12121F;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #0A0A0F;
  color: #e0fff8;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Scanline overlay (exakt wie k3ma.ch) ─── */
.scanline-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,255,240,0.012) 2px,
    rgba(0,255,240,0.012) 4px
  );
}

.scan-beam {
  position: fixed;
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
  z-index: 50;
  background: linear-gradient(90deg, transparent, rgba(0,255,240,0.15), transparent);
  animation: scan-line 8s linear infinite;
}

@keyframes scan-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

/* Circuit grid background */
.circuit {
  background-image:
    linear-gradient(rgba(0,255,240,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,240,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Ensure content sits above the scanline overlays */
main, nav, footer, section, .boot-glitch,
.cookie-banner {
  position: relative;
  z-index: 2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

.mono, .kicker, .panel-note, .footer-sub, .archive article p {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
}

/* Header-Menü (Fix: zentriert & verlinkt) */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.main-nav .nav-logo {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
}

.main-nav .nav-logo .k3ma-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 255, 240, 0.5));
  animation: k3ma-logo-glitch 3s infinite;
  transition: transform 0.3s ease;
}

.main-nav .nav-logo:hover .k3ma-logo {
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px rgba(0, 255, 240, 0.8));
}

@keyframes k3ma-logo-glitch {
  0%, 90%, 100% {
    filter: drop-shadow(0 0 10px rgba(0, 255, 240, 0.5));
  }
  91% {
    filter:
      drop-shadow(-2px 0 rgba(0, 255, 240, 0.8))
      drop-shadow(2px 0 rgba(255, 0, 255, 0.8));
  }
  93% {
    filter: drop-shadow(0 0 10px rgba(0, 255, 240, 0.5));
  }
  95% {
    filter:
      drop-shadow(2px 0 rgba(0, 255, 240, 0.8))
      drop-shadow(-2px 0 rgba(255, 0, 255, 0.8));
  }
}

.nav-items {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.nav-items a {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
  transition: color .2s ease;
}

.nav-items a:hover {
  color: var(--cyan);
}

.language-toggle {
  flex: 0 0 auto;
  display: flex;
  gap: .25rem;
  border: 1px solid rgba(0,255,240,.25);
  border-radius: 18px;
  padding: 2px;
}

.lang-btn {
  min-width: 36px;
  border-radius: 14px;
  padding: .3rem .55rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,.55);
  background: transparent;
}

.lang-btn.active {
  color: #061015;
  background: var(--cyan);
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 255, 240, 0.35);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: rgba(10, 10, 15, 0.85);
}

.mobile-menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--cyan);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 900px) {
  .main-nav { padding: 1rem; }
  .nav-items { gap: 1rem; }
  .nav-items a { font-size: 10px; }
}

@media (max-width: 700px) {
  .main-nav {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 0.75rem;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    justify-self: center;
  }

  .nav-items {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.9rem 0 0.4rem;
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 0.35rem;
  }

  .nav-items.active {
    display: flex;
  }

  .language-toggle {
    justify-self: end;
  }
}

/* ====
   LOGO GLITCH (exakt wie k3ma.ch)
==== */
.logo-glitch { position: relative; display: inline-block; }
.logo-glitch img { display: block; }
.logo-glitch .logo-base { filter: brightness(0) invert(1); position: relative; z-index: 2; }
.logo-glitch .logo-teal {
  position: absolute; inset: 0;
  filter: brightness(0) invert(1) sepia(1) saturate(50) hue-rotate(140deg);
  opacity: 0.7; z-index: 1;
  animation: logo-g-teal 3s infinite linear alternate-reverse;
}
.logo-glitch .logo-pink {
  position: absolute; inset: 0;
  filter: brightness(0) invert(1) sepia(1) saturate(50) hue-rotate(270deg);
  opacity: 0.7; z-index: 0;
  animation: logo-g-pink 4s infinite linear alternate-reverse;
}

@keyframes logo-g-teal {
  0% { transform: translate(0,0); opacity: .6; }
  25% { transform: translate(-3px,1px); opacity: .8; }
  50% { transform: translate(2px,-2px); opacity: .5; }
  75% { transform: translate(-1px,1px); opacity: .7; }
  100% { transform: translate(0,-1px); opacity: .6; }
}

@keyframes logo-g-pink {
  0% { transform: translate(0,0); opacity: .5; }
  25% { transform: translate(3px,-2px); opacity: .7; }
  50% { transform: translate(-2px,1px); opacity: .4; }
  75% { transform: translate(1px,-1px); opacity: .6; }
  100% { transform: translate(1px,-2px); opacity: .5; }
}

.logo-sm .logo-teal { animation-duration: 5s; }
.logo-sm .logo-pink { animation-duration: 6s; }
.logo-sm:hover .logo-teal { animation-duration: 1.5s; }
.logo-sm:hover .logo-pink { animation-duration: 2s; }

/* ====
   NAVBAR (exakt wie k3ma.ch)
==== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  transition: all .5s;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10,10,15,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

@media (min-width: 640px) {
  .nav-inner { height: 80px; padding: 0 1.5rem; }
}

.nav-logo { position: relative; width: 40px; height: 40px; flex-shrink: 0; }
@media (min-width: 640px) {
  .nav-logo { width: 48px; height: 48px; }
}
.nav-logo img { width: 100%; height: 100%; object-fit: contain; }

.nav-desktop { display: none; }
@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  min-height: 44px;
  transition: all .3s;
}

.nav-btn span {
  font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(255,255,255,.72);
  letter-spacing: .15em;
  text-transform: uppercase;
  transition: color .3s;
}

.nav-btn:hover span { color: rgba(0,255,240,.7); }

/* Mobile Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .hamburger { display: none; }
}

.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: rgba(0,255,240,.6);
  transition: all .3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

.mobile-menu {
  display: none;
  background: rgba(10,10,15,.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.04);
  padding: 1.25rem 1rem;
}

.mobile-menu.open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}

/* ====
   LANGUAGE TOGGLE (exakt wie k3ma.ch)
==== */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  height: 28px;
  border-radius: 14px;
  border: 1px solid rgba(0,255,240,.25);
  position: relative;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .3s;
  flex-shrink: 0;
}
.lang-toggle:hover { border-color: rgba(0,255,240,.5); }
.lang-toggle-bg {
  position: absolute; inset: 0;
  background: rgba(0,255,240,.03);
  transition: background .3s;
}
.lang-toggle:hover .lang-toggle-bg { background: rgba(0,255,240,.06); }
.lang-toggle-label {
  position: relative; z-index: 2;
  padding: 0 10px;
  font-family: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  transition: color .3s, font-weight .3s;
  user-select: none;
  line-height: 28px;
}
.lang-toggle-label.active { color: #0A0A0F; font-weight: 700; }
.lang-toggle-label.inactive { color: rgba(255,255,255,.35); }
.lang-toggle:hover .lang-toggle-label.inactive { color: rgba(255,255,255,.5); }
.lang-toggle-slider {
  position: absolute;
  top: 2px; bottom: 2px;
  width: calc(50% - 2px);
  border-radius: 12px;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(0,255,240,.3);
  transition: left .3s cubic-bezier(.4,0,.2,1), box-shadow .3s;
  z-index: 1;
}
.lang-toggle:hover .lang-toggle-slider { box-shadow: 0 0 12px rgba(0,255,240,.5); }
.lang-toggle[data-lang="de"] .lang-toggle-slider { left: 2px; }
.lang-toggle[data-lang="en"] .lang-toggle-slider { left: calc(50% + 1px); }

main { padding-top: 7rem; }

.section {
  padding: 3.5rem 1.2rem;
  max-width: 1080px;
  margin: 0 auto;
}

h1, h2, h3 {
  margin: 0 0 1rem;
  line-height: 1.08;
}

h1, h2 {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

h1 { font-size: clamp(2.2rem, 8vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 6vw, 3.3rem); }
h3 { font-size: 1.1rem; }

.kicker {
  color: var(--cyan);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

/* ── Section labels – k3ma.ch terminal style ─────────── */
.section-label {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.5;
}

.signal-entry {
  min-height: 92vh;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
}

#noise-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  z-index: -2;
}

.entry-light {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  background: radial-gradient(circle, rgba(0, 255, 240, 0.45), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}

.entry-content { padding: 1.5rem; max-width: 780px; }
.entry-content .mono { margin-bottom: 0.7rem; color: var(--cyan); }

.blink { animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cyan);
  color: var(--text);
  padding: 0.7rem 1.1rem;
  margin-top: 0.8rem;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  background: rgba(0, 255, 240, 0.04);
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--magenta);
  box-shadow: 0 0 18px rgba(255, 0, 255, 0.26);
}

.glitch-hover:hover {
  text-shadow: -1px 0 var(--cyan), 1px 0 var(--magenta);
  animation: jitter 120ms steps(2) 3;
}

@keyframes jitter {
  25% { transform: translateX(1px); }
  50% { transform: translateX(-1px); }
  100% { transform: translateX(0); }
}

.manifest p, .artifact p, .origin p {
  max-width: 720px;
  color: #D6DBE8;
}

.artifact {
  display: grid;
  gap: 1.2rem;
}

.artifact-visual {
  margin: 0;
  border: 1px solid rgba(0, 255, 240, 0.15);
  background: linear-gradient(145deg, rgba(26, 26, 46, 0.9), rgba(10, 10, 15, 0.95));
  padding: 1rem;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transition: border-color .3s ease, box-shadow .3s ease;
}

.artifact-visual:hover {
  border-color: rgba(0, 255, 240, 0.3);
  box-shadow: 0 0 40px rgba(0, 255, 240, 0.08);
}

.artifact-visual img:first-child {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.artifact-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 3px);
  pointer-events: none;
}

.artifact-visual figcaption {
  color: var(--muted);
  font-size: 0.78rem;
  padding-top: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
}

.toggle-wrap { margin-top: 1.2rem; }
.layer-stage {
  margin-top: 0.9rem;
  border: 1px solid var(--line);
  min-height: 300px;
  position: relative;
  overflow: hidden;
  background: #10101d;
}

.layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease;
  display: grid;
  place-items: center;
}

.layer.active { opacity: 1; }

.comic-layer {
  background:
    linear-gradient(20deg, rgba(255, 0, 85, 0.11), transparent 50%),
    radial-gradient(circle at 75% 25%, rgba(255, 0, 255, 0.17), transparent 35%),
    #0f0f1b;
}

.comic-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.2) brightness(0.62);
  opacity: 0.84;
}

.real-layer img {
  width: min(70%, 340px);
  filter: drop-shadow(0 0 30px rgba(0, 255, 240, 0.2));
}

.panel-note {
  position: absolute;
  left: 0.8rem;
  bottom: 0.6rem;
  color: var(--text);
  font-size: 0.75rem;
  padding: 0.2rem 0.4rem;
  background: rgba(10, 10, 15, 0.75);
  border: 1px solid var(--line);
}

.note-grid,
.archive-grid {
  display: grid;
  gap: 0.9rem;
}

.note-grid article,
.archive-grid article {
  border: 1px solid var(--line);
  padding: 1rem;
  background: rgba(26, 26, 46, 0.34);
  transition: border-color .25s ease, transform .25s ease;
}

.note-grid article:hover,
.archive-grid article:hover {
  border-color: rgba(0, 255, 240, 0.44);
  transform: translateY(-2px);
}

.note-grid p, .archive-grid p {
  margin: 0;
  color: var(--muted);
}

.signal-form {
  display: grid;
  gap: 0.75rem;
  max-width: 520px;
}

input[type="email"] {
  background: rgba(26, 26, 46, 0.6);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.82rem;
  width: 100%;
}

input[type="email"]:focus {
  outline: 1px solid var(--cyan);
  border-color: var(--cyan);
}

.site-footer {
  padding: 2.4rem 1.2rem 3rem;
  text-align: center;
}

.footer-content {
  max-width: 980px;
  margin: 0 auto;
}

.footer-main {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.05rem;
}

/* "just a signal" accent in the footer — Signal Pink, matches the hero highlight */
.footer-signal {
  color: var(--signal-pink, #FF10F0);
  text-shadow: 0 0 10px rgba(255, 16, 240, 0.35);
  transition: text-shadow 0.3s ease;
}

.footer-main:hover .footer-signal {
  text-shadow: 0 0 20px rgba(255, 16, 240, 0.65);
}

.footer-sub {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.social-media {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.social-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 255, 240, 0.3);
  border-radius: 50%;
  color: #00FFF0;
  transition: all 0.3s ease;
  position: relative;
  background: transparent;
  animation: subtle-pulse 3s ease-in-out infinite;
}

.social-media a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}

.social-media a:hover {
  animation: icon-glitch 0.3s ease;
  border-color: #00FFF0;
  box-shadow:
    0 0 10px rgba(0, 255, 240, 0.3),
    -2px 0 0 rgba(255, 0, 255, 0.3),
    2px 0 0 rgba(0, 255, 240, 0.3);
  transform: translateY(-2px);
}

@keyframes icon-glitch {
  0%, 100% {
    transform: translateY(-2px);
  }
  20% {
    transform: translate(-1px, -3px);
    filter: hue-rotate(90deg);
  }
  40% {
    transform: translate(1px, -2px);
  }
  60% {
    transform: translate(-1px, -2px);
    filter: hue-rotate(-90deg);
  }
  80% {
    transform: translate(1px, -3px);
  }
}

.social-media a svg {
  width: 16px;
  height: 16px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 2px rgba(0, 255, 240, 0.3));
}

.social-media a:hover svg {
  transform: scale(1.1);
  filter:
    drop-shadow(0 0 4px rgba(0, 255, 240, 0.6))
    drop-shadow(-1px 0 0 rgba(255, 0, 255, 0.5))
    drop-shadow(1px 0 0 rgba(0, 255, 240, 0.5));
}

@keyframes subtle-pulse {
  0%, 100% {
    border-color: rgba(0, 255, 240, 0.3);
  }
  50% {
    border-color: rgba(0, 255, 240, 0.5);
  }
}

.social-media a:nth-child(1):hover {
  border-color: #E1306C;
  box-shadow:
    0 0 10px rgba(225, 48, 108, 0.4),
    -2px 0 0 rgba(255, 0, 255, 0.3),
    2px 0 0 rgba(0, 255, 240, 0.3);
}

.social-media a:nth-child(2):hover {
  border-color: #00f2ea;
  box-shadow:
    0 0 10px rgba(0, 242, 234, 0.4),
    -2px 0 0 rgba(255, 0, 80, 0.3),
    2px 0 0 rgba(0, 242, 234, 0.3);
}

.social-media a:nth-child(3):hover {
  border-color: #FF0000;
  box-shadow:
    0 0 10px rgba(255, 0, 0, 0.4),
    -2px 0 0 rgba(255, 0, 255, 0.3),
    2px 0 0 rgba(0, 255, 240, 0.3);
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.2rem;
}

.footer-links a {
  color: #D7DDEB;
  font-size: 0.86rem;
}

.footer-links a:hover { color: var(--cyan); }

/* Spam-protected e-mail link ("// SEND_SIGNAL" -> reveals address on hover) */
.email-protected {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.email-protected:hover,
.email-protected:focus {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 255, 240, 0.55);
  outline: none;
}

.boot-glitch {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #000;
  display: grid;
  place-items: center;
  transition: opacity .45s ease, visibility .45s ease;
}
.boot-glitch p {
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
}
.boot-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 4px);
  animation: screenShift .22s steps(2) infinite;
  opacity: 0.4;
}

.boot-glitch.hidden {
  opacity: 0;
  visibility: hidden;
}

@keyframes screenShift {
  50% { transform: translateY(1px); }
}

.cursor-signal,
.cursor-trail {
  position: fixed;
  pointer-events: none;
  z-index: 99;
  mix-blend-mode: screen;
}

.cursor-signal {
  width: 10px;
  height: 10px;
  border: 1px solid var(--cyan);
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 2px;
}

.cursor-trail {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 240, 0.4);
  transform: translate(-50%, -50%);
}

/* Custom Cursor NUR auf Desktop/Maus-Geraeten anzeigen.
   Auf Touch-/Mobile-Geraeten ausblenden + Standard-Cursor erzwingen. */
@media (hover: none) and (pointer: coarse), (max-width: 768px) {
  .cursor-signal,
  .cursor-trail {
    display: none !important;
  }
  body,
  a,
  button {
    cursor: auto !important;
  }
}

.signal-particle {
  position: fixed;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cyan);
  pointer-events: none;
  z-index: 40;
  animation: fadeParticle .7s linear forwards;
}

@keyframes fadeParticle {
  to { opacity: 0; transform: translateY(-10px) scale(0.5); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.konami-mode::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(0, 255, 240, 0.12), rgba(255, 0, 255, 0.1), rgba(255, 0, 85, 0.12));
  animation: huePulse 1.2s linear infinite;
  z-index: 20;
}

@keyframes huePulse {
  50% { filter: hue-rotate(40deg); }
}

/* ── Scrollbar (k3ma.ch style) ────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0A0A0F; }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--pink); }

/* ── Float animation (k3ma.ch) ───────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Glitch text effect ─────────────────────────────── */
.glitch-text {
  position: relative;
  display: inline-block;
}
/* Hero-Highlight ("just a signal..") in Magenta/Pink */
.highlight {
  color: #FF00FF;
}

/* ===================================================
   VISION SECTION (vereinfacht – nur 5 Wahrheiten)
   =================================================== */
.vision-section {
  padding: 8rem 2rem;
  background: linear-gradient(180deg, #0A0A0F 0%, #050508 100%);
  position: relative;
}
.vision-intro {
  text-align: center;
  margin: 0 auto 5rem;
  max-width: 700px;
}
.vision-tagline {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(245, 245, 242, 0.7);
  margin: 2rem 0 0;
}

/* Vision Accordion — ein aufklappbares Element */
.vision-accordion {
  max-width: 900px;
  margin: 0 auto;
}
.vision-accordion .accordion-item {
  border: 1px solid rgba(0, 255, 240, 0.2);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.vision-accordion .accordion-item:hover {
  border-color: rgba(0, 255, 240, 0.4);
}
.vision-accordion .accordion-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  cursor: pointer;
  transition: background 0.3s ease;
  outline: none;
}
.vision-accordion .accordion-header:hover,
.vision-accordion .accordion-header:focus-visible {
  background: rgba(0, 255, 240, 0.05);
}
.vision-accordion .accordion-number {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: #00FFF0;
  min-width: 40px;
}
.vision-accordion .accordion-header h3 {
  flex: 1;
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #F5F5F2;
}
.vision-accordion .accordion-icon {
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  color: #FF00FF;
  transition: transform 0.3s ease;
}
.vision-accordion .accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}
.vision-accordion .accordion-item.active .accordion-header {
  border-bottom: 1px solid rgba(0, 255, 240, 0.1);
}
.vision-accordion .accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.vision-accordion .accordion-item.active .accordion-content {
  max-height: 3000px;
}
.truths-wrapper {
  padding: 1rem 2rem 2rem;
}
.truth-item {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0, 255, 240, 0.1);
}
.truth-item:last-child {
  border-bottom: none;
}
.truth-number {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 2.25rem;
  font-weight: 700;
  color: #FF00FF;
  min-width: 60px;
  line-height: 1;
  opacity: 0.4;
}
.truth-content h4 {
  font-size: 1.125rem;
  color: #00FFF0;
  margin: 0 0 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.truth-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(245, 245, 242, 0.7);
  margin: 0;
}

@media (max-width: 768px) {
  .vision-section { padding: 4rem 1.5rem; }
  .vision-intro { margin-bottom: 3rem; }
  .vision-accordion .accordion-header { padding: 1.5rem; gap: 1rem; }
  .vision-accordion .accordion-header h3 { font-size: 1rem; }
  .vision-accordion .accordion-icon { font-size: 1.75rem; }
  .truths-wrapper { padding: 1rem 1.5rem 1.5rem; }
  .truth-item {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem 0;
  }
  .truth-number { font-size: 1.75rem; min-width: auto; }
  .truth-content h4 { font-size: 1rem; }
  .truth-content p { font-size: 0.875rem; }
}
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.glitch-text::before {
  color: var(--cyan);
  z-index: -1;
  animation: glitch-shift-1 3.8s ease-in-out infinite alternate;
}
.glitch-text::after {
  color: var(--magenta);
  z-index: -1;
  animation: glitch-shift-2 2.9s ease-in-out infinite alternate-reverse;
}
@keyframes glitch-shift-1 {
  0%, 85% { clip-path: inset(0 0 0 0); transform: translate(0); }
  88% { clip-path: inset(18% 0 62% 0); transform: translate(-2px, 1px); }
  91% { clip-path: inset(55% 0 20% 0); transform: translate(2px, -1px); }
  94% { clip-path: inset(30% 0 50% 0); transform: translate(-1px, 0); }
  97%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
}
@keyframes glitch-shift-2 {
  0%, 82% { clip-path: inset(0 0 0 0); transform: translate(0); }
  85% { clip-path: inset(45% 0 30% 0); transform: translate(2px, 1px); }
  89% { clip-path: inset(10% 0 75% 0); transform: translate(-2px, -1px); }
  93% { clip-path: inset(65% 0 15% 0); transform: translate(1px, 0); }
  96%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
}

/* ── Manifest (text-only) ──────────────────────────── */
.manifest {
  max-width: 1080px;
}

.manifest-text {
  max-width: 760px;
}


@media (min-width: 760px) {
  .section { padding: 5rem 1.8rem; }
  .artifact {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
  }
  .note-grid, .archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Legal Pages Styling */
.legal-page {
  min-height: calc(100vh - 200px);
  padding: 8rem 2rem 4rem;
  position: relative;
  z-index: 2;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid rgba(0, 255, 240, 0.2);
  padding: 3rem;
  backdrop-filter: blur(10px);
}

.legal-container .section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #00FFF0;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.legal-container h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #F5F5F2;
  margin-bottom: 2rem;
  text-transform: lowercase;
}

.legal-container h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #F5F5F2;
  margin: 2rem 0 1rem;
  text-transform: lowercase;
}

.legal-container h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #00FFF0;
  margin: 1.5rem 0 0.75rem;
}

.legal-container p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(245, 245, 242, 0.9);
  margin-bottom: 1rem;
}

.legal-container ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.legal-container ul li {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(245, 245, 242, 0.8);
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.legal-container ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: #00FFF0;
  font-weight: bold;
}

.legal-container a {
  color: #00FFF0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.legal-container a:hover {
  border-bottom-color: #00FFF0;
}

@media (max-width: 768px) {
  .legal-page {
    padding: 7rem 1rem 3rem;
  }

  .legal-container {
    padding: 2rem;
  }

  .legal-container h1 {
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  .social-media {
    gap: 1.25rem;
  }

  .social-media a {
    width: 30px;
    height: 30px;
  }

  .social-media a svg {
    width: 15px;
    height: 15px;
  }
}

/* ── Cookie Banner (k3ma.ch style) ───────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 255, 240, 0.2);
  padding: 1rem 2rem;
  z-index: 9999;
  animation: cookieSlideUp 0.5s ease;
}

@keyframes cookieSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-content p {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
  margin: 0;
}

.cookie-content a {
  color: var(--cyan);
  text-decoration: underline;
}

.cookie-content a:hover {
  color: #00E5D6;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn-reject,
.cookie-btn-accept {
  padding: 10px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cookie-btn-reject {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(245, 245, 242, 0.3);
}

.cookie-btn-reject:hover {
  background: rgba(245, 245, 242, 0.1);
}

.cookie-btn-accept {
  background: var(--cyan);
  color: var(--black);
}

.cookie-btn-accept:hover {
  background: #00E5D6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 240, 0.3);
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    gap: 1rem;
  }
  .cookie-actions {
    width: 100%;
  }
  .cookie-btn-reject,
  .cookie-btn-accept {
    flex: 1;
  }
}
