/* ==========================================================================
   LutzCorp.net — Styles „MAINFRAME“
   BEM (lc-block__element--modifier), Mobile-First, Werte aus tokens.css
   Intro-Animation: intro.css (nur Startseite)
   ========================================================================== */

/* Basis
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-l));
  background: var(--lc-bg-black);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-mono);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  color: var(--lc-text);
  background:
    radial-gradient(
      ellipse 80% 50% at 50% -10%,
      rgba(152, 169, 247, 0.08),
      transparent 70%
    ),
    linear-gradient(
      180deg,
      var(--lc-bg-black) 0%,
      var(--lc-bg-deep) 50%,
      var(--lc-bg-black) 100%
    );
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* CRT-Scanlines + Vignette über allem (klickdurchlässig) */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 900;
}

body::before {
  background: radial-gradient(
    ellipse at center,
    transparent 55%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

body::after {
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.18) 0,
    rgba(0, 0, 0, 0.18) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.35;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--line-height-heading);
}

p {
  margin: 0 0 var(--space-m);
}

a {
  color: var(--lc-primary);
  text-decoration-color: var(--lc-border-strong);
  text-underline-offset: 0.2em;
  transition:
    color var(--duration-fast) ease,
    text-decoration-color var(--duration-fast) ease;
}

a:hover {
  color: var(--lc-primary-light);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--lc-success);
  outline-offset: 3px;
}

::selection {
  background: var(--lc-primary);
  color: var(--lc-bg-black);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--lc-primary-light);
}

.lc-nowrap {
  white-space: nowrap;
}

.lc-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lc-skip-link {
  position: absolute;
  top: var(--space-xs);
  left: var(--space-xs);
  z-index: 2000;
  padding: var(--space-xs) var(--space-m);
  font-family: var(--font-display);
  font-size: var(--font-size-label);
  text-transform: uppercase;
  color: var(--lc-bg-black);
  background: var(--lc-success);
  transform: translateY(-200%);
}

.lc-skip-link:focus {
  transform: none;
}

/* Layout
   ========================================================================== */

.lc-container {
  width: 100%;
  max-width: calc(var(--container-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lc-container--narrow {
  max-width: calc(var(--container-narrow) + 2 * var(--gutter));
}

.lc-main {
  display: block;
}

.lc-section {
  position: relative;
  padding-block: var(--space-section);
}

.lc-section + .lc-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(var(--container-width), calc(100% - 2 * var(--gutter)));
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--lc-border),
    transparent
  );
  transform: translateX(-50%);
}

.lc-section__head {
  max-width: 48rem;
  margin-bottom: var(--space-2xl);
}

.lc-section__index {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  margin-bottom: var(--space-m);
  font-family: var(--font-display);
  font-size: var(--font-size-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--lc-text-dim);
}

.lc-section__index::after {
  content: "";
  flex: 0 0 3rem;
  height: 1px;
  background: var(--lc-border-strong);
}

.lc-section__title {
  font-size: var(--font-size-h2);
  color: var(--lc-primary);
  text-shadow: var(--lc-glow-text);
  text-wrap: balance;
}

.lc-section__lead {
  margin-top: var(--space-l);
  font-size: var(--font-size-lead);
  color: var(--lc-text-muted);
}

/* Bausteine
   ========================================================================== */

.lc-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 0.15em;
  vertical-align: -0.12em;
  background: var(--lc-success);
  box-shadow: var(--lc-glow-green);
  animation: lc-blink 1.1s steps(1) infinite;
}

.lc-status {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--font-size-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lc-text-muted);
}

.lc-status__dot {
  flex: none;
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.35em;
  border-radius: 50%;
  background: var(--lc-success);
  box-shadow: var(--lc-glow-green);
  vertical-align: 0.1em;
}

.lc-status__dot--pulse,
.lc-status .lc-status__dot {
  animation: lc-pulse-glow 2.4s ease-in-out infinite;
}

.lc-status__uptime {
  padding-left: var(--space-xs);
  border-left: 1px solid var(--lc-border);
  color: var(--lc-text-dim);
}

.lc-eyebrow {
  margin-bottom: var(--space-l);
  font-family: var(--font-display);
  font-size: var(--font-size-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--lc-primary-light);
}

.lc-eyebrow__dim {
  color: var(--lc-text-dim);
}

.lc-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 1.4em 0.5em;
  font-family: var(--font-display);
  font-size: var(--font-size-label);
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--lc-primary-light);
  background: rgba(120, 231, 245, 0.06);
  border: 1px solid var(--lc-border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    color var(--duration-fast) ease,
    background var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    box-shadow var(--duration-base) ease;
}

.lc-button:hover {
  color: #fff;
  background: rgba(120, 231, 245, 0.14);
  border-color: var(--lc-primary-light);
  box-shadow: var(--lc-glow-cyan);
}

.lc-button:active {
  transform: translateY(1px);
}

.lc-link-arrow {
  font-family: var(--font-display);
  font-size: var(--font-size-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--lc-text-muted);
}

.lc-link-arrow:hover {
  color: var(--lc-primary-light);
}

/* Geschwärzt — Hover zeigt „Zugriff verweigert“ */
.lc-redacted {
  position: relative;
  display: inline-block;
  font-family: var(--font-mono);
  letter-spacing: -0.05em;
  color: var(--lc-primary-dark);
  cursor: not-allowed;
  user-select: none;
}

.lc-redacted::after {
  content: "Zugriff verweigert.";
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  padding: 0.15em 0.6em;
  font-family: var(--font-display);
  font-size: var(--font-size-label);
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--lc-error);
  background: var(--lc-bg-black);
  border: 1px solid rgba(255, 68, 68, 0.5);
  box-shadow: 0 0 14px rgba(255, 68, 68, 0.25);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition:
    opacity var(--duration-fast) ease,
    transform var(--duration-fast) ease;
  z-index: 5;
}

.lc-redacted:hover::after {
  opacity: 1;
  transform: none;
}

.lc-redacted:hover {
  animation: lc-redacted-glitch 0.4s steps(2) 1;
}

/* Logo
   ========================================================================== */

.lc-logo {
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 5px rgba(120, 231, 245, 0.3));
  transition: filter 0.5s ease;
}

.lc-logo__g--1 {
  fill: var(--lc-logo-1);
}
.lc-logo__g--2 {
  fill: var(--lc-logo-2);
}
.lc-logo__g--3 {
  fill: var(--lc-logo-3);
}
.lc-logo__g--4 {
  fill: var(--lc-logo-4);
}
.lc-logo__g--5 {
  fill: var(--lc-logo-5);
}

.lc-logo__wordmark {
  fill: var(--lc-logo-text);
}

.lc-logo__line {
  transform-box: fill-box;
  transform-origin: left center;
}

/* Hover: Power-Struggle (lutzcorp.de) + Signal-Jitter der Datenlinien */
.lc-logo-host:hover .lc-logo,
.lc-logo-host.is-glitching .lc-logo {
  animation: lc-power-struggle 3.2s steps(1) infinite;
}

.lc-logo-host:hover .lc-logo__line,
.lc-logo-host.is-glitching .lc-logo__line {
  animation: lc-jitter 0.9s steps(1) infinite;
  animation-delay: calc(var(--row, 0) * -0.07s);
}

.lc-logo-host.is-glitching .lc-logo {
  animation-duration: 0.6s;
  animation-iteration-count: 1;
}

/* Header
   ========================================================================== */

.lc-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 800;
  border-bottom: 1px solid transparent;
  transition:
    background var(--duration-base) ease,
    border-color var(--duration-base) ease,
    backdrop-filter var(--duration-base) ease;
}

.lc-header--solid,
.lc-page:not(.lc-page--index) .lc-header {
  background: rgba(5, 5, 5, 0.82);
  border-bottom-color: var(--lc-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.lc-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-l);
  max-width: calc(var(--container-width) + 2 * var(--gutter));
  height: var(--header-height);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lc-header__brand {
  flex: none;
  display: block;
  width: 3.75rem;
  transition:
    opacity var(--duration-base) ease,
    transform var(--duration-base) var(--ease-out);
}

/* Startseite: Header-Logo erst, wenn das Hero-Emblem aus dem Bild ist */
.lc-page--index .lc-header:not(.lc-header--solid) .lc-header__brand {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.lc-header__status {
  display: none;
  margin-left: auto;
}

/* Navigation
   ========================================================================== */

.lc-nav {
  margin-left: auto;
}

.lc-nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.35em 0.8em;
  font-family: var(--font-display);
  font-size: var(--font-size-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lc-primary);
  background: transparent;
  border: 1px solid var(--lc-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.lc-nav__toggle-icon,
.lc-nav__toggle-icon::before {
  display: block;
  width: 14px;
  height: 2px;
  background: currentColor;
}

.lc-nav__toggle-icon {
  position: relative;
  margin-top: -6px;
}

.lc-nav__toggle-icon::before {
  content: "";
  position: absolute;
  top: 6px;
}

.lc-nav__list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0;
  padding: var(--space-m) var(--gutter) var(--space-l);
  list-style: none;
  background: rgba(5, 5, 5, 0.96);
  border-bottom: 1px solid var(--lc-border);
}

.lc-nav__list--open {
  display: block;
}

.lc-nav__link {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  padding: var(--space-xs) 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--lc-text-muted);
}

.lc-nav__index {
  font-size: 0.8em;
  color: var(--lc-text-dim);
}

.lc-nav__link:hover,
.lc-nav__link--active,
.lc-nav__link[aria-current="page"] {
  color: var(--lc-primary-light);
  text-shadow: 0 0 6px rgba(120, 231, 245, 0.5);
}

.lc-nav__link--active .lc-nav__index {
  color: var(--lc-success);
}

/* Hero
   ========================================================================== */

.lc-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(var(--header-height) + var(--space-xl)) var(--space-2xl);
  overflow: hidden;
}

/* Atmender Glow hinter dem Emblem */
.lc-hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(90vw, 60rem);
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(120, 231, 245, 0.09) 0%,
    rgba(152, 169, 247, 0.05) 35%,
    transparent 65%
  );
  transform: translate(-50%, -50%);
  animation: lc-breathe 9s ease-in-out infinite;
  pointer-events: none;
}

.lc-hero__inner {
  position: relative;
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.lc-hero__emblem {
  width: min(58vw, 15rem);
}

.lc-hero__title {
  font-size: var(--font-size-h1);
  color: var(--lc-primary);
  text-shadow: 0 0 24px rgba(152, 169, 247, 0.35);
}

.lc-hero__lead {
  max-width: 38rem;
  margin-top: var(--space-l);
  font-size: var(--font-size-lead);
  color: var(--lc-text-muted);
}

.lc-bootlog {
  margin: var(--space-l) 0 var(--space-xl);
  padding: 0;
  list-style: none;
  font-size: var(--font-size-s);
  color: var(--lc-text-dim);
}

.lc-bootlog__prompt {
  color: var(--lc-success);
}

.lc-bootlog__line--ready {
  color: var(--lc-text);
}

.lc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-l) var(--space-xl);
}

/* Panels (01 System)
   ========================================================================== */

.lc-system {
  display: grid;
  gap: var(--space-l);
}

.lc-panel {
  position: relative;
  background: var(--lc-bg-panel);
  border: 1px solid var(--lc-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.lc-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-m);
  padding: var(--space-s) var(--space-l);
  font-family: var(--font-display);
  font-size: var(--font-size-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--lc-text-dim);
  background: var(--lc-tint);
  border-bottom: 1px solid var(--lc-border);
}

.lc-panel__label {
  color: var(--lc-primary);
}

.lc-panel__meta {
  display: inline-flex;
  align-items: center;
}

.lc-panel__body {
  padding: var(--space-l);
  color: var(--lc-text-muted);
}

.lc-panel__title {
  margin-bottom: var(--space-m);
  font-size: var(--font-size-h3);
  color: var(--lc-text);
}

/* Mainframe: langsamer Scan-Balken = „System arbeitet“ */
.lc-panel--mainframe {
  border-color: rgba(120, 231, 245, 0.3);
}

.lc-panel--mainframe::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(120, 231, 245, 0.05),
    transparent
  );
  animation: lc-sweep 7s linear infinite;
  pointer-events: none;
}

.lc-spec {
  margin: var(--space-l) 0 0;
  border-top: 1px dashed var(--lc-border);
}

.lc-spec__row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: var(--space-m);
  padding: var(--space-xs) 0;
  border-bottom: 1px dashed var(--lc-border);
}

.lc-spec dt {
  font-family: var(--font-display);
  font-size: var(--font-size-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lc-text-dim);
}

.lc-spec dd {
  margin: 0;
  color: var(--lc-text);
}

/* Crew-Manifest (01 System)
   ========================================================================== */

.lc-crew {
  margin-top: var(--space-2xl);
}

.lc-crew__head {
  margin-bottom: var(--space-l);
}

.lc-crew__title {
  font-family: var(--font-mono);
  font-size: var(--font-size-s);
  font-weight: 400;
  line-height: var(--line-height-body);
  color: var(--lc-text);
}

.lc-crew__prompt {
  color: var(--lc-success);
}

.lc-crew__note {
  margin: var(--space-2xs) 0 0;
  font-size: var(--font-size-s);
  color: var(--lc-text-dim);
}

.lc-crew__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-s);
  margin: 0;
  padding: 0;
  list-style: none;
}

.lc-crew-card {
  --tone: var(--lc-primary);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-m);
  background: var(--lc-bg-panel);
  border: 1px solid var(--lc-border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-base) ease, box-shadow var(--duration-base) ease;
}

.lc-crew-card:hover {
  border-color: var(--lc-border-strong);
  box-shadow: 0 0 24px rgba(120, 231, 245, 0.08);
}

.lc-crew-card--green { --tone: var(--lc-success); }
.lc-crew-card--primary { --tone: var(--lc-primary); }
.lc-crew-card--cyan { --tone: var(--lc-primary-light); }
.lc-crew-card--mint { --tone: var(--lc-logo-3); }
.lc-crew-card--sky { --tone: var(--lc-logo-5); }
.lc-crew-card--pink { --tone: #f472b6; }
.lc-crew-card--amber { --tone: var(--lc-warning); }
.lc-crew-card--classified { --tone: var(--lc-primary-dark); }

/* Avatar: Pixel-Symbol unter Bildrauschen — „Kein Signal“ beim Hover */
.lc-crew-card__avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 4rem;
  aspect-ratio: 1;
  margin-bottom: var(--space-m);
  overflow: hidden;
  background: var(--lc-bg-black);
  border: 1px solid var(--lc-border);
  border-radius: var(--radius-sm);
}

.lc-crew-card__avatar::before {
  content: "";
  position: absolute;
  inset: -50%;
  background:
    repeating-linear-gradient(0deg, rgba(232, 232, 232, 0.07) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(232, 232, 232, 0.04) 0 2px, transparent 2px 5px);
  animation: lc-static 0.5s steps(4) infinite;
  pointer-events: none;
}

.lc-crew-card__avatar::after {
  content: "Kein Signal";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  color: var(--lc-text);
  background: rgba(5, 5, 5, 0.75);
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}

.lc-crew-card:hover .lc-crew-card__avatar::after {
  opacity: 1;
}

.lc-crew-card__pixels {
  width: 78%;
  fill: var(--tone);
  filter: drop-shadow(0 0 4px var(--tone));
  opacity: 0.85;
}

.lc-crew-card__unknown {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--lc-primary-dark);
  animation: lc-unstable 3s steps(1) infinite;
}

.lc-crew-card__id {
  margin: 0;
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  color: var(--lc-text-dim);
}

.lc-crew-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tone);
}

.lc-crew-card__name--classified {
  font-size: 1.2rem;
}

.lc-crew-card__role {
  margin: 0;
  font-size: var(--font-size-s);
  color: var(--lc-text);
}

.lc-crew-card__line {
  margin: var(--space-2xs) 0 0;
  font-size: var(--font-size-xs);
  color: var(--lc-text-dim);
}

.lc-crew-card__status {
  margin: auto 0 0;
  padding-top: var(--space-s);
}

/* Tooltip „Zugriff verweigert“ innerhalb der Karte halten (sonst ragt er mobil über den Rand) */
.lc-crew-card .lc-redacted {
  position: static;
}

.lc-crew-card .lc-redacted::after {
  top: var(--space-m);
  right: var(--space-m);
  bottom: auto;
  left: var(--space-m);
  white-space: normal;
  text-align: center;
}

.lc-crew-card .lc-badge {
  font-size: 1rem;
}

/* Module (02)
   ========================================================================== */

.lc-modules {
  display: grid;
  gap: var(--space-m);
  margin: 0;
  padding: 0;
  list-style: none;
}

.lc-module {
  position: relative;
  padding: var(--space-l);
  background: linear-gradient(
    180deg,
    rgba(26, 26, 46, 0.5),
    rgba(26, 26, 46, 0.2)
  );
  border: 1px solid var(--lc-border);
  border-radius: var(--radius-md);
  transition:
    border-color var(--duration-base) ease,
    box-shadow var(--duration-base) ease,
    background var(--duration-base) ease;
}

.lc-module:hover {
  background: linear-gradient(
    180deg,
    rgba(37, 37, 66, 0.6),
    rgba(26, 26, 46, 0.3)
  );
  border-color: var(--lc-border-strong);
  box-shadow:
    0 0 0 1px rgba(120, 231, 245, 0.08),
    0 0 30px rgba(120, 231, 245, 0.08);
}

.lc-module__file {
  margin-bottom: var(--space-l);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  color: var(--lc-success);
  opacity: 0.8;
}

.lc-module__file::before {
  content: "▸ ";
  color: var(--lc-text-dim);
}

.lc-module__title {
  margin-bottom: var(--space-s);
  font-size: var(--font-size-h3);
  color: var(--lc-primary);
}

.lc-module__title::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.8em;
  margin-left: 0.2em;
  background: var(--lc-success);
  opacity: 0;
}

.lc-module:hover .lc-module__title::after {
  opacity: 1;
  animation: lc-blink 1.1s steps(1) infinite;
}

.lc-module__text {
  margin: 0;
  font-size: var(--font-size-s);
  color: var(--lc-text-muted);
}

/* Prozesse (03)
   ========================================================================== */

.lc-ps {
  padding: var(--space-l);
  font-size: var(--font-size-s);
  background: rgba(5, 5, 5, 0.6);
  border: 1px solid var(--lc-border);
  border-radius: var(--radius-md);
}

.lc-ps__cmd {
  margin-bottom: var(--space-l);
  color: var(--lc-text);
}

.lc-ps__prompt {
  color: var(--lc-success);
}

.lc-ps__table {
  width: 100%;
  border-collapse: collapse;
}

.lc-ps__table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.lc-ps__table th {
  font-family: var(--font-display);
  font-size: var(--font-size-label);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  color: var(--lc-text-dim);
}

.lc-ps__row {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: var(--space-2xs) var(--space-m);
  padding: var(--space-s) 0;
  border-top: 1px dashed var(--lc-border);
  transition: background var(--duration-fast) ease;
}

.lc-ps__row:hover {
  background: var(--lc-tint);
}

.lc-ps__pid {
  grid-row: span 3;
  color: var(--lc-text-dim);
}

.lc-ps__name {
  color: var(--lc-text);
}

.lc-ps__name a {
  color: var(--lc-text);
}

.lc-ps__name a:hover {
  color: var(--lc-primary-light);
}

.lc-ps__info {
  display: block;
  color: var(--lc-text-dim);
}

.lc-ps__type {
  color: var(--lc-text-muted);
}

.lc-ps__classified {
  color: var(--lc-primary-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lc-ps__summary {
  margin: var(--space-m) 0 0;
  padding-top: var(--space-s);
  border-top: 1px solid var(--lc-border);
  color: var(--lc-text-dim);
}

.lc-badge {
  display: inline-flex;
  line-height: 1.3;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-size: var(--font-size-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--lc-text-muted);
}

.lc-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.lc-badge--online {
  color: var(--lc-success);
}

.lc-badge--dev {
  color: var(--lc-warning);
}

.lc-badge--unstable {
  color: var(--lc-error);
  animation: lc-unstable 4s steps(1) infinite;
}

.lc-badge--classified {
  color: var(--lc-primary-dark);
}

.lc-badge--new {
  color: var(--lc-warning);
}

.lc-badge--new::before {
  animation: lc-pulse-dot 2s ease-in-out infinite;
}

/* Anfrage (04)
   ========================================================================== */

.lc-anfrage {
  display: grid;
  gap: var(--space-xl);
}

.lc-anfrage__head {
  margin-bottom: 0;
}

.lc-anfrage__note {
  margin-top: var(--space-l);
  padding-left: var(--space-m);
  font-size: var(--font-size-s);
  color: var(--lc-text-dim);
  border-left: 2px solid var(--lc-warning);
}

.lc-terminal {
  background: rgba(10, 10, 20, 0.85);
  border: 1px solid var(--lc-border-strong);
  border-radius: var(--radius-md);
  box-shadow:
    0 0 40px rgba(152, 169, 247, 0.08),
    inset 0 0 60px rgba(152, 169, 247, 0.04);
}

.lc-terminal__bar {
  display: flex;
  justify-content: space-between;
  gap: var(--space-m);
  padding: var(--space-xs) var(--space-l);
  font-family: var(--font-display);
  font-size: var(--font-size-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lc-text-dim);
  background: var(--lc-tint);
  border-bottom: 1px solid var(--lc-border);
}

.lc-terminal__state {
  color: var(--lc-success);
}

.lc-terminal__state::before {
  content: "● ";
}

.lc-terminal .lc-notice {
  margin: var(--space-l) var(--space-l) 0;
}

/* Formular
   ========================================================================== */

.lc-form {
  display: grid;
  gap: var(--space-l);
  padding: var(--space-l);
}

.lc-form__grid {
  display: grid;
  gap: var(--space-l);
}

.lc-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lc-form__field {
  display: grid;
  gap: var(--space-2xs);
}

.lc-form__label {
  font-family: var(--font-display);
  font-size: var(--font-size-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lc-primary);
}

.lc-form__label::before {
  content: "> ";
  color: var(--lc-success);
}

.lc-form__optional {
  margin-left: 0.4em;
  font-size: 0.8em;
  color: var(--lc-text-dim);
  text-transform: lowercase;
}

.lc-form__input {
  width: 100%;
  padding: 0.6em 0.75em;
  font: inherit;
  font-size: var(--font-size-base);
  color: var(--lc-text);
  caret-color: var(--lc-success);
  background: rgba(5, 5, 5, 0.6);
  border: 1px solid var(--lc-border);
  border-radius: var(--radius-sm);
  transition:
    border-color var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease;
}

.lc-form__input:hover {
  border-color: var(--lc-border-strong);
}

.lc-form__input:focus {
  outline: none;
  border-color: var(--lc-primary-light);
  box-shadow:
    0 0 0 1px var(--lc-primary-light),
    0 0 18px rgba(120, 231, 245, 0.15);
}

.lc-form__input--select {
  appearance: none;
  padding-right: 2.5em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2398a9f7' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9em center;
}

.lc-form__input--select option {
  color: var(--lc-text);
  background: var(--lc-bg-midnight);
}

.lc-form__input--textarea {
  min-height: 9rem;
  resize: vertical;
}

.lc-form__input[aria-invalid="true"] {
  border-color: var(--lc-error);
}

.lc-form__error {
  margin: 0;
  font-size: var(--font-size-s);
  color: var(--lc-error);
}

.lc-form__error::before {
  content: "[ERR] ";
}

.lc-form__field--checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: var(--space-s);
  font-size: var(--font-size-s);
  color: var(--lc-text-muted);
}

.lc-form__field--checkbox .lc-form__error {
  grid-column: 1 / -1;
}

.lc-form__checkbox {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.3em;
  accent-color: var(--lc-success);
}

.lc-button--submit {
  justify-self: start;
}

.lc-notice {
  margin: 0 0 var(--space-l);
  padding: var(--space-s) var(--space-m);
  font-size: var(--font-size-s);
  border: 1px solid;
  border-radius: var(--radius-sm);
}

.lc-notice--success {
  color: var(--lc-success);
  background: rgba(88, 250, 70, 0.08);
  border-color: rgba(88, 250, 70, 0.45);
}

.lc-notice--error {
  color: var(--lc-error);
  background: rgba(255, 68, 68, 0.08);
  border-color: rgba(255, 68, 68, 0.45);
}

/* Footer
   ========================================================================== */

.lc-footer {
  padding-block: var(--space-xl);
  font-size: var(--font-size-s);
  color: var(--lc-text-dim);
  border-top: 1px solid var(--lc-border);
}

.lc-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-m) var(--space-xl);
}

.lc-footer__copy {
  margin: 0;
}

.lc-footer__sep {
  margin-inline: 0.4em;
  color: var(--lc-border-strong);
}

.lc-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-l);
  margin: 0;
  padding: 0;
  list-style: none;
}

.lc-footer__links a {
  color: var(--lc-text-muted);
  text-decoration: none;
}

.lc-footer__links a:hover,
.lc-footer__links a[aria-current="page"] {
  color: var(--lc-primary-light);
}

.lc-footer__ready {
  margin: 0 0 0 auto;
  font-family: var(--font-display);
  font-size: var(--font-size-label);
  letter-spacing: 0.1em;
  color: var(--lc-text-muted);
}

/* Unterseiten (Impressum, Datenschutz, 404)
   ========================================================================== */

.lc-page:not(.lc-page--index) .lc-main {
  padding-top: var(--header-height);
}

.lc-page:not(.lc-page--index) .lc-section__title {
  margin-bottom: var(--space-xl);
}

.lc-legal h2 {
  margin: var(--space-xl) 0 var(--space-s);
  font-size: var(--font-size-h3);
  color: var(--lc-primary);
}

.lc-legal h3 {
  margin: var(--space-l) 0 var(--space-xs);
  font-family: var(--font-mono);
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--lc-text);
}

.lc-legal p,
.lc-legal li {
  color: var(--lc-text-muted);
}

.lc-legal__record {
  margin-bottom: var(--space-xl);
  font-size: var(--font-size-s);
  color: var(--lc-text-dim);
}

.lc-error {
  min-height: 70vh;
  display: grid;
  align-content: center;
}

.lc-error__code {
  margin-bottom: var(--space-m);
  font-family: var(--font-display);
  font-size: var(--font-size-label);
  letter-spacing: 0.1em;
  color: var(--lc-error);
}

.lc-error__ready {
  margin-top: var(--space-l);
  font-family: var(--font-display);
  font-size: var(--font-size-label);
  color: var(--lc-text-muted);
}

/* Scroll-Reveal (nur mit JS: html.lc-js)
   ========================================================================== */

.lc-js .lc-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
  transition-delay: calc(var(--reveal-index, 0) * 90ms);
}

.lc-js .lc-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Breakpoints
   ========================================================================== */

@media (min-width: 40em) {
  .lc-crew__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lc-modules {
    grid-template-columns: repeat(2, 1fr);
  }

  .lc-form__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lc-ps__table thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .lc-ps__table thead tr,
  .lc-ps__row {
    display: table-row;
  }

  .lc-ps__table th,
  .lc-ps__table td {
    padding: var(--space-s) var(--space-m) var(--space-s) 0;
    vertical-align: top;
  }

  .lc-ps__row td {
    border-top: 1px dashed var(--lc-border);
  }

  .lc-ps__row {
    border-top: 0;
  }

  .lc-ps__info {
    display: inline;
    margin-left: 0.75em;
  }

  .lc-ps__status {
    text-align: right;
  }

  .lc-ps__table th:last-child {
    text-align: right;
  }
}

@media (min-width: 56em) {
  :root {
    --header-height: 5rem;
  }

  .lc-nav__toggle {
    display: none;
  }

  .lc-nav__list {
    position: static;
    display: flex;
    gap: var(--space-xl);
    padding: 0;
    background: none;
    border: 0;
  }

  .lc-nav__link {
    font-size: var(--font-size-label);
  }

  .lc-header__status {
    display: flex;
    margin-left: var(--space-xl);
  }

  .lc-header__brand {
    width: 4.25rem;
  }

  .lc-hero__inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: var(--space-2xl);
  }

  .lc-hero__emblem {
    order: 2;
    width: 100%;
    max-width: 30rem;
    justify-self: end;
  }

  .lc-system {
    grid-template-columns: repeat(2, 1fr);
  }

  .lc-anfrage {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: var(--space-2xl);
    align-items: start;
  }

  .lc-anfrage__head {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
  }
}

@media (min-width: 64em) {
  .lc-crew__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .lc-modules {
    grid-template-columns: repeat(3, 1fr);
  }

  .lc-ps {
    padding: var(--space-xl);
  }
}

/* Keyframes
   ========================================================================== */

@keyframes lc-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes lc-pulse-glow {
  0%,
  100% {
    opacity: 0.6;
    box-shadow: 0 0 2px var(--lc-success);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 9px var(--lc-success);
  }
}

@keyframes lc-breathe {
  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.95);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

@keyframes lc-sweep {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(400%);
  }
}

@keyframes lc-unstable {
  0%,
  100% {
    opacity: 1;
  }
  91% {
    opacity: 1;
  }
  92% {
    opacity: 0.2;
  }
  93% {
    opacity: 1;
  }
  95% {
    opacity: 0.4;
  }
  96% {
    opacity: 1;
  }
}

@keyframes lc-redacted-glitch {
  0% {
    transform: translateX(-2px);
    color: var(--lc-error);
  }
  50% {
    transform: translateX(2px);
  }
  100% {
    transform: none;
  }
}

@keyframes lc-static {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-7px, 3px); }
  50% { transform: translate(4px, -6px); }
  75% { transform: translate(-3px, 5px); }
  100% { transform: translate(0, 0); }
}

@keyframes lc-pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Logo-Hover — beruhigte Fassung von lutzcorp.de „power-struggle“ */
@keyframes lc-power-struggle {
  0% {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(120, 231, 245, 0.5));
  }
  3% {
    opacity: 0.35;
    filter: none;
  }
  5% {
    opacity: 1;
    filter: drop-shadow(0 0 14px rgba(120, 231, 245, 0.9));
  }
  7% {
    opacity: 0.2;
    filter: none;
  }
  9% {
    opacity: 0.85;
  }
  12% {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(120, 231, 245, 0.6));
  }
  30% {
    opacity: 1;
  }
  32% {
    opacity: 0.15;
    filter: none;
  }
  34% {
    opacity: 0.7;
    filter: drop-shadow(0 0 5px rgba(88, 250, 70, 0.55));
  }
  40% {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(120, 231, 245, 0.6));
  }
  70% {
    opacity: 1;
    filter: drop-shadow(0 0 16px rgba(120, 231, 245, 0.95));
  }
  85% {
    opacity: 0.9;
    filter: drop-shadow(0 0 6px rgba(120, 231, 245, 0.5));
  }
}

/* Signal-Jitter: Linien verlieren kurz die Synchronisation */
@keyframes lc-jitter {
  0% {
    transform: none;
  }
  8% {
    transform: translateX(var(--jx, 8px));
  }
  11% {
    transform: none;
  }
  46% {
    transform: translateX(calc(var(--jx, 8px) * -0.6)) scaleX(1.02);
  }
  49% {
    transform: none;
  }
}

/* Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .lc-js .lc-reveal {
    opacity: 1;
    transform: none;
  }
}
