/* ============================================================
   ORION LABS — Technical / HUD Design System
   bg #000 · fg #fff · lines rgba(255,255,255,.2) · mono only
   ============================================================ */

/* JetBrains Mono — lokal gehostet (DSGVO: keine Google-Server-Anfragen) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('fonts/jetbrains-mono-variable.woff2?v=18be452724') format('woff2-variations'),
       url('fonts/jetbrains-mono-variable.woff2?v=18be452724') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 100 800;
  font-display: swap;
  src: url('fonts/jetbrains-mono-italic-variable.woff2?v=82f17477d9') format('woff2-variations'),
       url('fonts/jetbrains-mono-italic-variable.woff2?v=82f17477d9') format('woff2');
}

:root {
  --bg: #000000;
  --accent: #ffc4a0; /* Beteigeuze — nur als kleiner Akzent */
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
  --dim: rgba(255, 255, 255, 0.4);
  /* Für kleine graue TEXTE: 0.4 ergab 3,7:1 (unter WCAG AA 4,5:1) — 0.52 ergibt ~5,6:1.
     --dim bleibt für Linien, Punkte und dekorative Elemente unverändert. */
  --dim-text: rgba(255, 255, 255, 0.52);
  --line: rgba(255, 255, 255, 0.2);
  --line-strong: rgba(255, 255, 255, 0.3);
  --danger: #ffb4a8;
  --font: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  /* fixer Header oben, fixe Statusleiste unten: Fokus und Anker nicht verdecken */
  scroll-padding-top: 5.5rem;
  scroll-padding-bottom: 3.5rem;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 0.9375rem; /* 15px bei Standard — skaliert mit der Schriftgröße des Browsers */
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 2.4rem; /* Platz für die fixe Statusleiste */
}

/* ===== Boot-Sequenz ===== */

#boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease;
}

html.boot #boot {
  display: flex;
  /* Notbremse: blendet sich selbst aus, falls script.js nicht läuft */
  animation: boot-failsafe 0.3s ease 2.4s forwards;
}

@keyframes boot-failsafe { to { opacity: 0; visibility: hidden; } }

#boot.done {
  opacity: 0;
  pointer-events: none;
}

#boot pre {
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 2;
  color: rgba(255, 255, 255, 0.85);
  min-width: 17rem;
  min-height: 10rem;
}

::selection { background: var(--fg); color: var(--bg); }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 3px;
}

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

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.wordmark-main {
  font-weight: 800;
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  transform: skewX(-12deg);
  display: inline-block;
}

.wordmark-sub {
  font-weight: 300;
  font-size: 1.35rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.header-divider {
  width: 1px;
  height: 1rem;
  background: var(--dim);
}

.header-est {
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.15em;
}

.header-nav {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-item { position: relative; display: flex; align-items: center; gap: 0.35rem; }

.nav-link {
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--fg);
  transition: width 0.25s;
}

.nav-link:hover,
.nav-item.is-active > .nav-link,
.nav-link[aria-current="page"] { color: var(--fg); }
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { width: 100%; }

.header-coords {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.header-coords .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--dim);
}

/* ===== Corner frame accents ===== */

.corner {
  position: absolute;
  width: 3rem; height: 3rem;
  z-index: 20;
  pointer-events: none;
}

.corner-tl { top: 0; left: 0; border-top: 2px solid var(--line-strong); border-left: 2px solid var(--line-strong); }
.corner-tr { top: 0; right: 0; border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); }
.corner-bl { bottom: 0; left: 0; border-bottom: 2px solid var(--line-strong); border-left: 2px solid var(--line-strong); }
.corner-br { bottom: 0; right: 0; border-bottom: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); }

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

/* Ecken zwischen Header- und Statusleiste setzen, sonst verdeckt */
.hero > .corner-tl, .hero > .corner-tr { top: 4.5rem; }
.hero > .corner-bl, .hero > .corner-br { bottom: 3.2rem; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

#orion-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 7rem 1.5rem 6rem;
}

.hero-text { max-width: 34rem; }

/* Section marker (line — number — line) */

.section-marker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.6;
  margin-bottom: 1.25rem;
}

.marker-line {
  flex: 1;
  height: 1px;
  background: var(--fg);
  opacity: 0.7;
}

.marker-line.short { flex: 0 0 2rem; }

.marker-num {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  white-space: nowrap;
}

.hero-title {
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  margin-bottom: 1.1rem;
}

.typed-wrap {
  display: block;
  margin-top: 0.4rem;
  min-height: 1.3em;
  white-space: nowrap;
}

#typed { opacity: 0.92; }

.caret {
  animation: blink 1s steps(1) infinite;
  font-weight: 400;
}

@keyframes blink { 50% { opacity: 0; } }

.dot-row {
  height: 3px;
  margin-bottom: 1rem;
  max-width: 14rem;
  background-image: radial-gradient(circle, var(--fg) 0.75px, transparent 0.8px);
  background-size: 7px 3px;
  opacity: 0.4;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  margin-bottom: 2rem;
  max-width: 30rem;
}

/* ===== Buttons ===== */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  position: relative;
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--fg);
  font-family: var(--font);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--fg);
  background: transparent;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.btn:hover {
  background: var(--fg);
  color: var(--bg);
}

.btn-solid {
  background: var(--fg);
  color: var(--bg);
}

.btn-solid:hover {
  background: transparent;
  color: var(--fg);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 0.85rem;
}

.btn-corner {
  position: absolute;
  width: 0.55rem; height: 0.55rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-corner.tl { top: -0.3rem; left: -0.3rem; border-top: 1px solid var(--fg); border-left: 1px solid var(--fg); }
.btn-corner.br { bottom: -0.3rem; right: -0.3rem; border-bottom: 1px solid var(--fg); border-right: 1px solid var(--fg); }

.btn:hover .btn-corner { opacity: 1; }

.hero-notation {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
  opacity: 0.4;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
}

/* ===== Fixe HUD-Statusleiste ===== */

.status-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.status-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.status-label {
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
}

.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.equalizer span {
  width: 3px;
  background: rgba(255, 255, 255, 0.3);
  animation: eq 1.1s ease-in-out infinite alternate;
}

.equalizer span:nth-child(1) { height: 40%; animation-delay: 0s; }
.equalizer span:nth-child(2) { height: 80%; animation-delay: 0.12s; }
.equalizer span:nth-child(3) { height: 55%; animation-delay: 0.24s; }
.equalizer span:nth-child(4) { height: 95%; animation-delay: 0.05s; }
.equalizer span:nth-child(5) { height: 35%; animation-delay: 0.3s; }
.equalizer span:nth-child(6) { height: 70%; animation-delay: 0.18s; }
.equalizer span:nth-child(7) { height: 50%; animation-delay: 0.4s; }
.equalizer span:nth-child(8) { height: 85%; animation-delay: 0.09s; }

@keyframes eq { to { transform: scaleY(0.35); } }

.pulse-dots { display: flex; gap: 4px; }

.pulse-dots span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: pulse 1.4s ease-in-out infinite;
}

.pulse-dots span:nth-child(2) { background: rgba(255, 255, 255, 0.4); animation-delay: 0.2s; }
.pulse-dots span:nth-child(3) { background: rgba(255, 255, 255, 0.2); animation-delay: 0.4s; }

@keyframes pulse { 50% { opacity: 0.2; } }

/* ===== Sections ===== */

.section {
  position: relative;
  padding: 7rem 0;
  border-top: 1px solid var(--line);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section .section-marker { max-width: 22rem; }

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  margin-bottom: 3.5rem;
}

/* ===== Services ===== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

/* 6 Karten → sauberes 3×2-Raster auf breiten Screens */
@media (min-width: 980px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  position: relative;
  background: var(--bg);
  padding: 2.25rem 1.75rem 2.5rem;
  transition: background 0.25s;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0.6rem; height: 0.6rem;
  border-top: 1px solid var(--fg);
  border-left: 1px solid var(--fg);
  opacity: 0;
  transition: opacity 0.25s;
}

.service-card:hover { background: rgba(255, 255, 255, 0.045); }
.service-card:hover::before { opacity: 0.8; }

.card-index {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--dim-text);
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 0.9rem;
}

.service-card p {
  font-size: 0.8rem;
  color: var(--muted);
}

.card-arrow {
  position: absolute;
  right: 1.5rem; bottom: 1.25rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s, transform 0.25s;
}

.service-card:hover .card-arrow {
  opacity: 0.7;
  transform: translateX(0);
}

/* ===== Marquee ===== */

.marquee {
  border-top: 1px solid var(--line);
  overflow: hidden;
  padding: 1.1rem 0;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}

.marquee-track span {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--dim-text);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ===== Process ===== */

.process-list {
  list-style: none;
  max-width: 46rem;
}

.process-step {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.process-step:first-child { border-top: 1px solid var(--line); }

.step-num {
  font-size: 1.6rem;
  font-weight: 800;
  font-style: italic;
  color: var(--dim);
  transform: skewX(-8deg);
  line-height: 1.2;
  flex: 0 0 3.5rem;
  transition: color 0.25s;
}

.process-step:hover .step-num { color: var(--fg); }

.step-body h3 {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.step-body p {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 34rem;
}

/* ===== Kontakt ===== */

.section-contact {
  text-align: center;
  padding: 9rem 0;
  overflow: hidden;
}

/* Schmale Screens: eigener Bereich für die Jäger-Figur unter dem Formular */
@media (max-width: 1099px) {
  .section-contact { padding-bottom: 30rem; }
}

#hunter-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.section-contact .container {
  position: relative;
  z-index: 1;
}

.section-contact .section-marker {
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.contact-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.contact-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.section-contact .hero-actions { justify-content: center; }

.contact-mail {
  margin-top: 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--dim-text);
}

/* ===== Kontaktformular ===== */

.contact-form {
  max-width: 34rem;
  margin: 0 auto;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field { margin-bottom: 1.1rem; }

.form-field label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--fg);
  font-family: var(--font);
  font-size: 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0;
  transition: border-color 0.2s, background 0.2s;
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.6)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  cursor: pointer;
}

.form-field select option {
  background: #000;
  color: #fff;
}

.form-field textarea { resize: vertical; min-height: 8rem; }

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: rgba(255, 255, 255, 0.75);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--fg);
  background: rgba(255, 255, 255, 0.03);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0.4rem 0 1.4rem;
  cursor: pointer;
}

.form-consent input {
  accent-color: #ffffff;
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.15rem;
  flex: none;
}

.form-consent a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-consent a:hover { color: var(--fg); }

.form-error {
  font-size: 0.72rem;
  color: var(--danger);
  margin-bottom: 1rem;
}

.contact-form .btn { width: 100%; }

.form-hint {
  margin-top: 0.9rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--dim-text);
  text-align: center;
}

/* ===== Rechtsseiten ===== */

.legal {
  padding: 8.5rem 0 5rem;
  min-height: 70vh;
}

.legal .container { max-width: 52rem; }

.legal-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  margin-bottom: 2.5rem;
}

.legal-body h2 {
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  margin: 2.5rem 0 0.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.legal-body h3 {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  margin: 1.6rem 0 0.6rem;
  color: rgba(255, 255, 255, 0.85);
}

.legal-body p,
.legal-body li,
.legal-body address {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: normal;
}

.legal-body p { margin-bottom: 0.9rem; }

.legal-body ul,
.legal-body ol {
  margin: 0 0 1rem 1.2rem;
}

.legal-body li { margin-bottom: 0.35rem; }

.legal-body a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body strong { color: rgba(255, 255, 255, 0.9); }

.legal-back {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.legal-back:hover {
  color: var(--fg);
  border-color: var(--fg);
}

/* ===== Service-Unterseiten ===== */

a.service-card { color: inherit; }

.svc-page { padding: 8.5rem 0 5rem; }

.svc-page .container { max-width: 62rem; }

.svc-lead {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 38rem;
  margin-bottom: 3.5rem;
}

.svc-h2 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin: 3.5rem 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.svc-h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.deliverable {
  background: var(--bg);
  padding: 1.4rem 1.5rem;
}

.deliverable h3 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.5rem;
}

.deliverable h3::before {
  content: '+ ';
  color: var(--dim);
}

.deliverable p {
  font-size: 0.78rem;
  color: var(--muted);
}

.usecase-list { list-style: none; }

.usecase {
  display: flex;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.usecase:first-child { border-top: 1px solid var(--line); }

.usecase-num {
  font-size: 1.1rem;
  font-weight: 800;
  font-style: italic;
  color: var(--dim);
  transform: skewX(-8deg);
  flex: 0 0 2.2rem;
}

.usecase h3 {
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.35rem;
}

.usecase p {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 40rem;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.stack-tag {
  border: 1px solid var(--line-strong);
  padding: 0.35rem 0.8rem;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.faq-item {
  border: 1px solid var(--line);
  margin-bottom: 0.6rem;
  background: var(--bg);
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  color: var(--dim);
  font-weight: 400;
  flex: none;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item summary:hover { background: rgba(255, 255, 255, 0.04); }

.faq-item p {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.svc-cta {
  position: relative;
  border: 1px solid var(--line-strong);
  padding: 2.5rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.svc-cta .corner { width: 1.5rem; height: 1.5rem; }

.svc-cta p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.svc-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
}

.svc-nav a {
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.svc-nav a:hover { color: var(--fg); border-color: var(--fg); }

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--fg); }

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

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Scroll reveal ===== */

html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.in,
html.reveal-fail .reveal {
  opacity: 1;
  transform: none;
}

.services-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.services-grid .reveal:nth-child(6) { transition-delay: 0.4s; }

.process-list .reveal:nth-child(2) { transition-delay: 0.08s; }
.process-list .reveal:nth-child(3) { transition-delay: 0.16s; }
.process-list .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ===== Responsive ===== */

.coords-sep { opacity: 0.5; }

@media (max-width: 1180px) {
  .coords-geo, .coords-sep { display: none; }
}

@media (max-width: 900px) {
  .header-coords { display: none; }
}

@media (max-width: 640px) {
  .header-nav { display: none; }
  .wordmark-main, .wordmark-sub { font-size: 1.1rem; }

  .hero-content { padding: 6rem 1.25rem 5rem; }
  .hero-title { letter-spacing: 0.06em; }
  .typed-wrap { white-space: normal; }

  .corner { width: 2rem; height: 2rem; }

  .wide-only { display: none; }

  .section { padding: 4.5rem 0; }
  .section-contact { padding: 6rem 0 28rem; }

  .process-step { gap: 1.25rem; }
  .step-num { flex: 0 0 2.5rem; font-size: 1.3rem; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { flex-direction: column; gap: 0.6rem; }
}

/* ===== Reduced motion ===== */

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

  .caret,
  .equalizer span,
  .pulse-dots span,
  .marquee-track {
    animation: none;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   ERWEITERUNG v2 (Oktober 2026) — Development × Marketing
   Neue Bausteine im bestehenden HUD-Vokabular. Keine Änderung
   an Farben, Schrift, Linien oder Animationen des Bestands.
   ============================================================ */

/* ===== Barrierefreiheit: Skip-Link, Screenreader-Text ===== */

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 300;
  background: var(--fg);
  color: var(--bg);
  padding: 0.6rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  transition: top 0.15s;
}
.skip-link:focus { top: 0.75rem; }

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

/* Lange deutsche Komposita in Überschriften dürfen umbrechen (Mobil) */
.legal-title, .section-title, .contact-title, .hero-title, .service-card h3, .deliverable h3, .pillar h3 {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ===== Navigation: Untermenü-Pfeil und Dropdown ===== */

.sub-toggle {
  width: 1.1rem; height: 1.1rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--muted);
}
.sub-toggle::before {
  content: '';
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.2s;
}
.has-sub.open > .sub-toggle::before { transform: rotate(180deg); }
.sub-toggle:hover, .has-sub.open > .sub-toggle { color: var(--fg); }

/* unsichtbare Brücke, damit der Hover beim Weg ins Menü nicht abreißt */
.has-sub::after {
  content: '';
  position: absolute;
  left: -1rem; right: -1rem; top: 100%;
  height: 1.3rem;
}

.subnav {
  position: absolute;
  top: calc(100% + 1.15rem);
  left: -1.25rem;
  min-width: 21rem;
  padding: 1.1rem 1.25rem 1rem;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s, visibility 0s linear 0.18s;
  z-index: 55;
}
.subnav::before, .subnav::after {
  content: '';
  position: absolute;
  width: 0.7rem; height: 0.7rem;
}
.subnav::before { top: -1px; left: -1px; border-top: 1px solid var(--fg); border-left: 1px solid var(--fg); }
.subnav::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--fg); border-right: 1px solid var(--fg); }

.has-sub.open > .subnav {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity 0.18s, transform 0.18s, visibility 0s;
}
@media (hover: hover) and (pointer: fine) {
  .has-sub:hover > .subnav {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity 0.18s, transform 0.18s, visibility 0s;
  }
}

.has-sub.wide > .subnav { min-width: 34rem; }
.has-sub.wide .subnav-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
.nav-item:nth-last-child(-n+3) > .subnav { left: auto; right: -1.25rem; }

.subnav-head {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  padding-bottom: 0.8rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
}

.subnav-code {
  display: inline-block;
  min-width: 4.4rem;
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  color: var(--dim-text);
}
.subnav-head .subnav-code { min-width: 0; margin-right: 0.8rem; color: var(--fg); }

.subnav-list { list-style: none; }
.subnav-list a {
  display: flex; align-items: baseline;
  padding: 0.5rem 0;
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  transition: color 0.15s;
}
.subnav-list a:hover, .subnav-list a[aria-current="page"] { color: var(--fg); }
.subnav-list a:hover .subnav-code { color: var(--fg); }

.subnav-all {
  display: block;
  margin-top: 0.6rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--fg);
}
.subnav-all:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ===== Mobilmenü ===== */

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  font-family: var(--font);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}
.menu-icon { display: inline-flex; flex-direction: column; gap: 4px; width: 14px; }
.menu-icon span { height: 1px; background: currentColor; transition: transform 0.2s; }
.menu-toggle[aria-expanded="true"] .menu-icon span:first-child { transform: translateY(2.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:last-child { transform: translateY(-2.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 3.45rem; left: 0; right: 0; bottom: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.97);
  border-top: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.5rem 1.5rem 3rem;
}
.mobile-menu[hidden] { display: none; }
html.menu-open { overflow: hidden; }

.mobile-nav { max-width: 40rem; margin: 0 auto; }
.mobile-home, .mobile-link, .mobile-group-head {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
}
.mobile-group { padding-bottom: 0.4rem; }
.mobile-group-head { border-bottom: 0; padding-bottom: 0.5rem; }
.mobile-group ul { list-style: none; border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; }
.mobile-group li a {
  display: flex; align-items: baseline;
  padding: 0.55rem 0;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.mobile-menu a[aria-current="page"] { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.mobile-meta {
  margin-top: 1.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--dim-text);
  text-align: center;
}

@media (min-width: 600px) {
  .mobile-group ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
}

@media (max-width: 1320px) {
  .coords-geo, .coords-sep { display: none; }
}
@media (max-width: 1120px) {
  .header-coords { display: none; }
}
@media (max-width: 1023px) {
  .header-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ===== Hero: Kicker ===== */

.hero-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

/* ===== Startseite: Einführung + Datenblatt ===== */

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 4rem;
  align-items: start;
}

.intro-text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  max-width: 38rem;
}

.spec-sheet {
  border: 1px solid var(--line);
  position: relative;
}
.spec {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.spec:last-child { border-bottom: 0; }
.spec dt {
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  color: var(--dim-text);
  padding-top: 0.2rem;
}
.spec dd { font-size: 0.8rem; color: rgba(255, 255, 255, 0.85); }
.spec dd a { text-decoration: underline; text-underline-offset: 3px; }

.section-lead {
  max-width: 44rem;
  color: var(--muted);
  font-size: 0.88rem;
  margin: -2rem 0 3rem;
}

/* ===== Startseite: zwei Disziplinen ===== */

.pillars {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.5rem minmax(0, 1fr);
  align-items: stretch;
}

.pillar {
  position: relative;
  border: 1px solid var(--line);
  padding: 2.5rem 2.1rem 2.25rem;
  transition: background 0.25s;
}
.pillar .corner { width: 1.2rem; height: 1.2rem; opacity: 0; transition: opacity 0.25s; }
.pillar:hover { background: rgba(255, 255, 255, 0.035); }
.pillar:hover .corner { opacity: 1; }
.pillar h3 {
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  line-height: 1.35;
  margin-bottom: 1rem;
}
.pillar > p { color: var(--muted); font-size: 0.84rem; margin-bottom: 1.4rem; }
.pillar-list { list-style: none; margin-bottom: 1.8rem; }
.pillar-list li {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
}
.pillar-list li::before { content: '+ '; color: var(--dim); }

.pillar-link {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--fg);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  margin-right: 1.25rem;
  transition: border-color 0.2s;
}
.pillar-link:hover { border-color: var(--fg); }

.pillar-x {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--dim);
}

/* ===== Leistungs-Gruppen ===== */

.group-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  margin: 3rem 0 1rem;
}
.section-title + .group-head { margin-top: 0; }
.group-head .subnav-code { min-width: 0; color: var(--fg); border: 1px solid var(--line-strong); padding: 0.15rem 0.4rem; }
.group-head a {
  margin-left: auto;
  font-weight: 400;
  font-size: 0.6rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
}
.group-head a:hover { color: var(--fg); }

.services-grid .reveal:nth-child(7) { transition-delay: 0.48s; }
.services-grid .reveal:nth-child(8) { transition-delay: 0.56s; }
.services-grid .reveal:nth-child(9) { transition-delay: 0.64s; }
.process-list .reveal:nth-child(5) { transition-delay: 0.32s; }

/* ===== Development × Marketing ===== */

.dxm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 980px) {
  .dxm-grid { grid-template-columns: repeat(3, 1fr); }
}
.dxm-card { background: var(--bg); padding: 2rem 1.75rem 2.2rem; transition: background 0.25s; }
.dxm-card:hover { background: rgba(255, 255, 255, 0.04); }
.dxm-codes {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--dim-text);
  margin-bottom: 1.1rem;
}
.dxm-codes a { border: 1px solid var(--line); padding: 0.15rem 0.4rem; transition: color 0.2s, border-color 0.2s; }
.dxm-codes a:hover { color: var(--fg); border-color: var(--fg); }
.dxm-codes span { color: var(--fg); font-size: 0.8rem; }
.dxm-card h3 { font-size: 0.88rem; letter-spacing: 0.16em; margin-bottom: 0.7rem; }
.dxm-card p { font-size: 0.78rem; color: var(--muted); }
.dxm-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.dxm-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.dxm-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.dxm-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.dxm-grid .reveal:nth-child(6) { transition-delay: 0.4s; }

/* ===== Projekte ===== */

.project-teasers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.project-teaser {
  position: relative;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: background 0.25s;
}
.project-teaser:hover { background: rgba(255, 255, 255, 0.03); }
.project-teaser-body { padding: 1.75rem 1.75rem 2rem; display: flex; flex-direction: column; flex: 1; }
.project-teaser h3 { font-size: 1.15rem; letter-spacing: 0.16em; margin-bottom: 0.8rem; }
.project-teaser p { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.5rem; }
.project-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: auto; }

.project-shot {
  position: relative;
  margin: 0;
  background: #050505;
  border-bottom: 1px solid var(--line);
}
.project-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}
.project-shot .corner { width: 1rem; height: 1rem; z-index: 2; }
.project-shot figcaption {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--dim-text);
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--line);
}

.project-page .project-shot { border: 1px solid var(--line); margin: 0 0 2rem; }

.ext-link {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--fg);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}
.ext-link:hover { border-color: var(--fg); }

.prose p { color: var(--muted); font-size: 0.85rem; max-width: 46rem; margin-bottom: 0.9rem; }

/* ===== Unterseiten: Kicker, Brotkrumen, Hinweisbox ===== */

.svc-kicker {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--dim-text);
  margin-bottom: 0.8rem;
}

.section-marker.crumbs { max-width: none; }
.crumbs .marker-num { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; white-space: normal; }
.crumbs li + li::before { content: '/'; margin-right: 0.6rem; opacity: 0.7; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs .marker-line { min-width: 2rem; }

.svc-note {
  position: relative;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--fg);
  padding: 1.4rem 1.6rem;
  margin-top: 3rem;
}
.svc-note-title { font-size: 0.7rem; letter-spacing: 0.24em; margin-bottom: 0.6rem; }
.svc-note p { color: var(--muted); font-size: 0.8rem; max-width: 46rem; }
.svc-note p + p { margin-top: 0.9rem; }

.related-grid { margin-bottom: 0.5rem; }
.usecase .pillar-link { margin-top: 0.6rem; }
.pillar-page .services-grid { margin-bottom: 0.5rem; }
.faq-wrap { max-width: 56rem; }

/* ===== Kontakt: Formular-Erweiterungen ===== */

.form-field label .req { margin-left: 0.25rem; color: var(--fg); }
.form-field label .opt {
  margin-left: 0.5rem;
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  color: var(--dim-text);
  border: 1px solid var(--line);
  padding: 0 0.3rem;
}
.field-error { font-size: 0.68rem; color: var(--danger); margin-top: 0.35rem; }
.field-hint { font-size: 0.62rem; color: var(--dim-text); margin-top: 0.35rem; }
.form-field [aria-invalid="true"] { border-color: var(--danger); }

.hp-field {
  position: absolute !important;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-privacy { font-size: 0.66rem; color: var(--muted); margin: 0.3rem 0 1.2rem; }
.form-privacy a, .form-hint a { text-decoration: underline; text-underline-offset: 3px; }
.form-privacy a:hover, .form-hint a:hover { color: var(--fg); }

.form-status {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border: 1px solid var(--line-strong);
  padding: 1rem 1.1rem;
  margin-bottom: 1.1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
}
.form-status[hidden] { display: none; }
.form-status strong { font-size: 0.6rem; letter-spacing: 0.26em; }
.form-status.is-ok { border-color: var(--fg); }
.form-status.is-error { border-color: var(--danger); }
.form-status.is-error strong { color: var(--danger); }
.contact-form .form-status .btn { width: auto; align-self: flex-start; }
.contact-form button[disabled] { opacity: 0.6; cursor: progress; }
.form-error-list { list-style: none; margin: 0 auto 2rem; max-width: 34rem; color: var(--danger); font-size: 0.78rem; }

.contact-page-head { padding-top: 5.5rem; }
.contact-page-head .crumbs { margin-bottom: 0; }
.contact-page-head + .section-contact { border-top: 0; padding-top: 3.5rem; }

/* ===== 404 / Ergebnis-Seite ===== */

.notfound { text-align: center; }
.notfound .section-marker { max-width: 22rem; margin-left: auto; margin-right: auto; }
.notfound .hero-actions { justify-content: center; }
.notfound .contact-mail { margin-top: 3rem; }

/* ===== Footer: Sitemap-Spalten ===== */

.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}
.footer-brand .wordmark { display: inline-flex; gap: 0.6rem; }
.footer-brand .wordmark-main, .footer-brand .wordmark-sub { font-size: 1.1rem; }
.footer-claim { font-size: 0.58rem; letter-spacing: 0.24em; color: var(--dim-text); margin: 0.9rem 0 1.2rem; }
.footer-brand address { font-style: normal; font-size: 0.72rem; line-height: 1.85; color: var(--muted); }
.footer-brand address strong { color: var(--fg); font-weight: 700; }
.footer-brand address a { text-decoration: underline; text-underline-offset: 3px; }
.footer-h { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.26em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col li a { font-size: 0.7rem; color: var(--muted); transition: color 0.2s; }
.footer-col li a:hover { color: var(--fg); }
.site-footer .footer-inner { border-top: 1px solid var(--line); }

/* ===== Responsive Ergänzungen ===== */

@media (max-width: 979px) {
  .intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .pillars { grid-template-columns: 1fr; }
  .pillar-x { height: 3.5rem; }
  .project-teasers { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section-lead { margin-top: -1.5rem; }
  .pillar { padding: 2rem 1.4rem 1.8rem; }
  .spec { grid-template-columns: 1fr; gap: 0.3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.5rem; }
  .typed-wrap { overflow-wrap: anywhere; }
  .group-head a { margin-left: 0; }
  .svc-nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .subnav, .menu-icon span, .skip-link { transition: none; }
}

/* ===== Versalien per CSS (Text im HTML in normaler Schreibweise: besser für
   Suchmaschinen-Snippets und Screenreader; optisch identisch zum Bestand) ===== */

.nav-link, .subnav-head, .subnav-list a, .subnav-all, .menu-toggle,
.mobile-home, .mobile-link, .mobile-group-head, .mobile-group li a, .mobile-meta,
.hero-kicker, .hero-title, .section-title, .contact-title, .legal-title,
.marker-num, .card-index, .service-card h3, .group-head, .pillar h3, .pillar-link, .pillar-list li,
.dxm-card h3, .dxm-codes, .step-body h3, .marquee-track span, .btn, .contact-mail .addr,
.svc-kicker, .svc-h2, .deliverable h3, .usecase h3, .stack-tag, .svc-note-title,
.project-teaser h3, .project-shot figcaption, .ext-link, .svc-nav a, .legal-back,
.spec dt, .footer-claim, .footer-h, .footer-nav a, .footer-inner, .status-label,
.form-field label, .form-status strong, .skip-link {
  text-transform: uppercase;
}

/* ===== Schalter "Animation pausieren" in der Statusleiste ===== */

.motion-toggle {
  background: transparent;
  border: 0;
  padding: 0.2rem 0.1rem;
  font-family: var(--font);
  cursor: pointer;
  transition: color 0.2s;
}
.motion-toggle:hover, .motion-toggle[aria-pressed="true"] { color: var(--fg); }
.motion-toggle:disabled { cursor: default; opacity: 0.7; }

/* Pausiert (Schalter) — gleiche Wirkung wie "Bewegung reduzieren" */
html.still .caret,
html.still .equalizer span,
html.still .pulse-dots span,
html.still .marquee-track { animation: none; }
html.still .reveal { opacity: 1; transform: none; transition: none; }
html.still #boot { display: none; }

/* Laufband hält an, solange man darauf zeigt */
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ===== Tastatur bekommt dasselbe Design-Feedback wie die Maus ===== */

.nav-link:focus-visible::after { width: 100%; }
.btn:focus-visible .btn-corner { opacity: 1; }
.service-card:focus-visible { background: rgba(255, 255, 255, 0.045); }
.service-card:focus-visible::before { opacity: 0.8; }
.service-card:focus-visible .card-arrow { opacity: 0.7; transform: translateX(0); }
.pillar:focus-within { background: rgba(255, 255, 255, 0.035); }
.pillar:focus-within .corner { opacity: 1; }
.process-step:focus-within .step-num { color: var(--fg); }

/* Mobil: Höhe für zwei Zeilen reservieren, damit der Hero beim Tippen nicht springt */
@media (max-width: 640px) {
  .typed-wrap { min-height: 2.5em; }
}

/* ===== Rasterlinien ohne graue Leerzellen =====
   Bisher entstanden die 1px-Linien aus der Hintergrundfarbe des Rasters — bei
   unvollständigen Zeilen (z. B. 5 Bausteine) wurde die leere Zelle grau.
   Jetzt zeichnet jede Zelle ihren eigenen Rahmen; leere Zellen bleiben schwarz.
   Optik vollständiger Raster identisch zum Bestand. */
.services-grid, .deliverables-grid, .dxm-grid {
  background: transparent;
  border: 0;
  padding: 1px 0 0 1px;
}
.services-grid > *, .deliverables-grid > *, .dxm-grid > * {
  box-shadow: 0 0 0 1px var(--line);
}

/* Breiteres Marketing-Untermenü, damit lange Namen einzeilig bleiben */
.has-sub.wide > .subnav { min-width: 40rem; }

/* ===== Mobil-Feinschliff Header, Menü, Statusleiste ===== */
.status-label { white-space: nowrap; }
.mobile-menu { background: var(--bg); }

@media (max-width: 640px) {
  .hero-kicker { font-size: 0.6rem; letter-spacing: 0.22em; }
  .status-inner { padding: 0.6rem 1rem; }
  .status-group { gap: 0.8rem; }
  /* Schalter mobil nur als Symbol — Beschriftung bleibt für Screenreader erhalten */
  .motion-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; margin: -1px;
  }
  .motion-icon { font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .site-header .header-divider, .site-header .header-est { display: none; }
}

@media (max-width: 360px) {
  .status-bar .status-group:first-child .status-label:first-child { display: none; }
}

/* Markenname mit fester Schreibweise (carFINNe) auch in Versal-Überschriften */
.kc { text-transform: none; }

/* ===== Creative & Print (dritter Bereich) ===== */

/* Startseite: drei gleichwertige Bereiche */
.pillars.pillars-3 { grid-template-columns: minmax(0, 1fr) 2.5rem minmax(0, 1fr) 2.5rem minmax(0, 1fr); }
.pillars-3 .pillar { padding: 2.25rem 1.7rem 2rem; }
.pillars-3 .pillar-x { font-size: 1.4rem; }
@media (max-width: 1199px) {
  .pillars.pillars-3 { grid-template-columns: 1fr; }
  .pillars-3 .pillar-x { height: 3rem; }
}

/* Linienzeichnungen (klar als Darstellung gekennzeichnet) */
.svc-visual {
  position: relative;
  margin: 0 0 3.5rem;
  max-width: 52rem;
  border: 1px solid var(--line);
}
.svc-visual img { display: block; width: 100%; height: auto; }
.svc-visual figcaption {
  border-top: 1px solid var(--line);
  padding: 0.7rem 1rem;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim-text);
}
.svc-visual .corner { width: 1rem; height: 1rem; }
.svc-visual-wide { max-width: none; }

/* Kombinierbare Pakete */
.svc-lead-sm { margin-top: -1rem; margin-bottom: 2rem; }
.packages-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-bottom: 4rem;
}
.package {
  padding: 1.8rem 1.4rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}
.package:hover { background: rgba(255, 255, 255, 0.03); }
.package h3 { font-size: 0.86rem; letter-spacing: 0.16em; text-transform: uppercase; margin: 0.9rem 0 1rem; }
.package .pillar-list { margin-bottom: 1.2rem; }
.package-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.package-links a {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  border: 1px solid var(--line-strong);
  padding: 0.2rem 0.45rem;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.package-links a:hover, .package-links a:focus-visible { color: var(--fg); border-color: var(--fg); }
@media (max-width: 1099px) { .packages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .packages-grid { grid-template-columns: 1fr; } }

/* Formular: Angaben zur Produktion */
.form-production {
  border: 1px dashed var(--line-strong);
  padding: 1.1rem 1.1rem 0.2rem;
  margin: 0.2rem 0 1.3rem;
  min-width: 0;
}
.form-production[hidden] { display: none; }
.form-production legend {
  padding: 0 0.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg);
}
.form-production legend .opt { margin-left: 0.4rem; }
.form-production > .field-hint { margin: 0 0 0.9rem; }
.form-grid-prod { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
.form-grid-prod .form-field:last-child { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid-prod { grid-template-columns: 1fr; } }

/* Footer mit drei Leistungsspalten */
.footer-grid { grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 1199px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 979px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

/* Kopfzeile: Platz für drei Bereiche */
@media (max-width: 1600px) { .coords-geo, .coords-sep { display: none; } }
@media (max-width: 1320px) { .header-coords { display: none; } }
.nav-link { white-space: nowrap; }
.nav-creative > .subnav { min-width: 27rem; }
.form-production legend .opt {
  font-size: 0.5rem; letter-spacing: 0.2em; color: var(--dim-text);
  border: 1px solid var(--line); padding: 0 0.3rem; vertical-align: middle;
}
@media (max-width: 1180px) { .site-header .header-divider, .site-header .header-est { display: none; } }

/* ===== Sternenhimmel hinter der ganzen Website ===== */
#sky-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
/* Der Hero hat sein eigenes Sternbild — dort keinen zweiten Himmel durchscheinen lassen */
.hero { background: var(--bg); }

/* Sternenhimmel nur in freien Flächen: alle Kästen, Tabellen und Listen sind blickdicht */
.pillar, .package, .spec-sheet, .spec, .svc-note, .svc-cta, .svc-visual, .form-production, .form-status,
.usecase-list, .usecase, .process-list, .process-step, .stack-tag, .project-teaser, .project-shot,
.deliverables-grid, .services-grid, .dxm-grid, .packages-grid, .faq-item, .marquee, .svc-nav a,
.form-field input, .form-field select, .form-field textarea, .site-footer, .legal-body {
  background-color: var(--bg);
}
/* Hover-Aufhellung blickdicht (entspricht dem bisherigen hellen Schleier auf Schwarz) */
.service-card:hover, .service-card:focus-visible { background: #0b0b0b; }
.pillar:hover, .pillar:focus-within, .dxm-card:hover, .faq-item summary:hover { background: #0a0a0a; }
.project-teaser:hover, .package:hover { background: #080808; }
.form-field input:hover, .form-field select:hover, .form-field textarea:hover,
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { background-color: #080808; }

/* ===== Design v3: Plotter-Zeichnungen, Kassiopeia-Ablauf, Beteigeuze-Akzent ===== */

/* Akzent: nur aktive Navigation, Sterne der Zeichnungen, aktueller Ablauf-Schritt */
.nav-link[aria-current="page"]::after, .nav-item.is-active > .nav-link::after { background: var(--accent); }
.nav-item.is-active > .nav-link::after { width: 100%; }

/* Leistungskarten: Linienzeichnung oben, wird beim Einblenden geplottet und beim Überfahren neu gezeichnet */
.card-glyph { display: block; width: 7.5rem; height: 4rem; margin: -0.4rem 0 1.3rem -0.2rem; overflow: visible; }
.card-glyph .g { fill: none; stroke: rgba(255, 255, 255, 0.62); stroke-width: 1; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0; }
.card-glyph .d { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.card-glyph .s { fill: var(--accent); }
html.js .reveal:not(.in) .card-glyph .g { stroke-dashoffset: 1; }
html.js .reveal:not(.in) .card-glyph .d, html.js .reveal:not(.in) .card-glyph .s { opacity: 0; }
.reveal.in .card-glyph .g { transition: stroke-dashoffset 1.3s cubic-bezier(0.6, 0, 0.2, 1) 0.25s; }
.reveal.in .card-glyph .d, .reveal.in .card-glyph .s { transition: opacity 0.5s ease 1.1s; }
.card-glyph .g:nth-of-type(2) { transition-delay: 0.4s; } .card-glyph .g:nth-of-type(3) { transition-delay: 0.55s; }
.card-glyph .g:nth-of-type(4) { transition-delay: 0.7s; } .card-glyph .g:nth-of-type(5) { transition-delay: 0.85s; }
@keyframes replot { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.service-card:hover .card-glyph .g, .service-card:focus-visible .card-glyph .g { animation: replot 0.9s cubic-bezier(0.6, 0, 0.2, 1); stroke: rgba(255, 255, 255, 0.85); }
.service-card:hover .card-index { color: var(--accent); }

/* Ablauf: Liste links, Sternbild rechts (mitlaufend) */
.process-wrap { display: grid; grid-template-columns: minmax(0, 46rem) minmax(0, 1fr); gap: 3rem; align-items: start; }
.process-sky { position: sticky; top: 24vh; padding-top: 1rem; }
.process-sky svg { display: block; width: 100%; height: auto; max-width: 30rem; overflow: visible; }
.ps-grid path { stroke: rgba(255, 255, 255, 0.08); stroke-dasharray: 2 6; fill: none; }
.ps-line { fill: none; stroke: rgba(255, 255, 255, 0.45); stroke-width: 0.9; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ps-dot { fill: #fff; }
.ps-ring { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0; vector-effect: non-scaling-stroke; }
.ps-num { font-family: var(--font); font-size: 9px; letter-spacing: 2px; fill: rgba(255, 255, 255, 0.85); }
.ps-name { font-family: var(--font); font-size: 8px; letter-spacing: 1.5px; fill: rgba(255, 255, 255, 0.4); }
.ps-caption { margin-top: 1.4rem; font-size: 0.58rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--dim-text); }
/* animierter Modus (nur mit JS und erlaubter Bewegung) */
.process-sky.animated .ps-line { stroke-dashoffset: 1; transition: stroke-dashoffset 0.9s cubic-bezier(0.6, 0, 0.2, 1); }
.process-sky.animated .ps-line.on { stroke-dashoffset: 0; }
.process-sky.animated .ps-star { opacity: 0.28; transition: opacity 0.5s; }
.process-sky.animated .ps-star.on, .process-sky .ps-star.hover { opacity: 1; }
.process-sky .ps-star.cur .ps-ring, .process-sky .ps-star.hover .ps-ring { opacity: 1; }
.process-sky .ps-star.cur .ps-dot { fill: var(--accent); }
.process-step.is-current .step-num { color: var(--accent); }
@media (max-width: 1099px) { .process-wrap { grid-template-columns: 1fr; } .process-sky { display: none; } }
