/* ==========================================================================
   LED Code — Public Frontend
   Refactor 2026-05-31: Multi-Page · weniger Cyan · mehr Whitespace · sachlich
   ========================================================================== */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Farben — dunkel, ruhig */
  --bg:          #020617;            /* dark navy (Single-Source) */
  --bg-soft:     #0b1224;            /* dezent abgesetzte Section */
  --bg-card:     #0f172a;            /* Cards */
  --bg-card-hover: #131c33;
  --accent:      #00d4ff;            /* Cyan — nur Akzent */
  --accent-strong: #00b8e0;
  --accent-soft: rgba(0, 212, 255, 0.10);
  --accent-line: rgba(0, 212, 255, 0.30);
  --text:        #E2E8F0;            /* off-white */
  --text-muted:  #94a3b8;            /* slate-400 */
  --text-dim:    #64748b;            /* slate-500 */
  --border:      rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.12);

  /* Typo */
  --font-main:   'Open Sans', system-ui, -apple-system, sans-serif;
  --font-head:   'Montserrat', system-ui, sans-serif;
  --font-mono:   'Space Mono', ui-monospace, Menlo, Consolas, monospace;

  /* Maße */
  --radius:      4px;
  --radius-lg:   6px;
  --transition:  0.2s ease;
  --max-width:   1180px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-strong); }

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

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

/* ===== UTILITIES ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 112px 0; }
.section-dark { background: var(--bg-soft); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header-left {
  text-align: left;
  margin-bottom: 48px;
}
.section-label {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-header h2,
.section h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: #fff;
  margin-bottom: 16px;
}
.section-desc {
  color: var(--text-muted);
  max-width: 65ch;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
}
.section-cta {
  margin-top: 48px;
  text-align: center;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 1px solid transparent;
  text-align: center;
  min-height: 48px;
}
.btn-primary {
  background: var(--accent);
  color: #001018;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #001018;
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #001018;
}
.btn-outline-light {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline-light:hover {
  border-color: var(--text);
  color: #fff;
}
.btn-full { width: 100%; }

.btn-nav {
  display: inline-flex;
  align-items: center;
  background: var(--accent) !important;
  color: #001018 !important;
  padding: 9px 18px !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
  font-size: 0.86rem !important;
  border: 1px solid var(--accent) !important;
  transition: background var(--transition), border-color var(--transition);
}
.btn-nav:hover {
  background: var(--accent-strong) !important;
  border-color: var(--accent-strong) !important;
  color: #001018 !important;
}

/* ===== HEADER ===== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}
#header.is-scrolled {
  background: rgba(2, 6, 23, 0.96);
  border-bottom-color: var(--border-strong);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  color: #fff;
}
.logo:hover { color: #fff; }
.logo-light { color: var(--accent); }
.logo-dark  { color: #fff; }

#main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
#main-nav ul li a {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}
#main-nav ul li a:hover { color: #fff; }
#main-nav ul li a.is-active {
  color: #fff;
}
#main-nav ul li a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
}
#main-nav ul li a.btn-nav.is-active::after { display: none; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all var(--transition);
}

/* ===== HERO — kompakter, ruhiger ===== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  background-color: #020617;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(2,6,23,0.92) 35%, rgba(2,6,23,0.62) 80%, rgba(2,6,23,0.45) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 20px;
  max-width: 18ch;
}
.glow {
  color: var(--accent);
}
.hero-desc {
  max-width: 56ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-compact { min-height: 70vh; padding: 130px 0 90px; }

/* ===== PAGE HEADER (Sub-Seiten) ===== */
.page-header {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 132px 0 64px;
}
.page-header .container { text-align: left; }
.page-header h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
  max-width: 22ch;
}
.page-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 65ch;
}
.doc-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== STORY (O-NAMA) ===== */
.story-block {
  max-width: 65ch;
  margin: 0 auto;
}
.story-block p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.story-block p:last-child { margin-bottom: 0; }

/* ===== STATS ===== */
.section-stats { padding: 80px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-cell {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--border);
}
.stat-cell:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== PRODUCT CARDS (home overview) ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.product-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-line);
}
.product-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 20px;
}
.product-icon svg { width: 100%; height: 100%; }
.product-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}
.product-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===== PRODUCT DETAIL BLOCKS (proizvodi-Seite) ===== */
.section-products-detail { padding-top: 80px; padding-bottom: 80px; }
.product-detail {
  border-top: 1px solid var(--border);
  padding: 56px 0;
  scroll-margin-top: 90px;
}
.product-detail:last-child { border-bottom: 1px solid var(--border); }
.product-detail h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}
.product-detail p {
  color: var(--text-muted);
  max-width: 65ch;
  margin-bottom: 28px;
  line-height: 1.6;
}
.spec-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px 32px;
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 24px;
  max-width: 760px;
}
.spec-grid dt {
  font-weight: 600;
  color: var(--text);
  font-size: 0.92rem;
}
.spec-grid dd {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ===== ADVANTAGES (Werte/Vorteile, nur /o-nama) ===== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.advantage-item {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: border-color var(--transition);
}
.advantage-item:hover { border-color: var(--accent-line); }
.adv-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 18px;
}
.adv-icon svg { width: 100%; height: 100%; }
.advantage-item h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}
.advantage-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ===== REFERENCE HIGHLIGHT (auf Home) ===== */
.reference-highlight {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  aspect-ratio: 16 / 9;
  max-width: 1100px;
  margin: 0 auto;
}
.reference-highlight img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.reference-highlight:hover img { transform: scale(1.02); }
.reference-highlight figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 32px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.reference-highlight-type {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
.reference-highlight-meta {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}

/* ===== CTA BLOCK ===== */
.section-cta-block { padding: 80px 0; }
.cta-block {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.cta-block h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}
.cta-block p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1rem;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

/* ===== PORTFOLIO (Reference-Seite, dunkel) ===== */
.section-portfolio {
  padding: 80px 0 96px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  cursor: zoom-in;
  transition: transform var(--transition);
}
.portfolio-item.portfolio-large {
  grid-column: span 2;
  grid-row: span 2;
}
.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.portfolio-item:hover img { transform: scale(1.04); }
.portfolio-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 22px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.portfolio-type {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}
.portfolio-meta {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}
.portfolio-note {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
  margin-top: 4px;
}
.portfolio-item.portfolio-large .portfolio-type { font-size: 1.1rem; }
.portfolio-item.portfolio-large .portfolio-note { font-size: 0.92rem; }

.reference-cta {
  margin-top: 56px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.reference-cta p {
  color: var(--text-muted);
  font-size: 0.98rem;
  flex: 1 1 320px;
  max-width: 50ch;
}
.reference-cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== KONTAKT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  min-height: 46px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}
.form-group select option { background: var(--bg-card); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 4px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.contact-block h3 {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.contact-block p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }
.contact-block a { color: var(--text); border-bottom: 1px solid var(--border-strong); }
.contact-block a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ===== UPLOAD-WIDGET ===== */
.upload-zone {
  position: relative;
  display: block;
  padding: 28px 20px;
  border: 1px dashed var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-soft);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.upload-zone:hover,
.upload-zone:focus-visible {
  border-color: var(--accent);
  outline: none;
}
.upload-zone.dragover {
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.14);
}
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload-zone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  color: var(--accent);
}
.upload-text {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 0.95rem;
}
.upload-link { color: var(--accent); text-decoration: underline; }
.upload-hint {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.file-list {
  list-style: none;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.file-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
}
.file-name {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-size {
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
}
.file-remove {
  background: transparent;
  color: var(--text-dim);
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color var(--transition);
}
.file-remove:hover { color: #ef4444; }

.form-consent { margin-top: 4px; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.checkbox-label a { color: var(--accent); }

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

.form-feedback {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius);
  color: #fca5a5;
  font-size: 0.88rem;
}

.form-success {
  text-align: center;
  padding: 48px 28px;
  background: var(--bg-card);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  color: var(--accent);
}
.form-success svg { color: var(--accent); margin: 0 auto 16px; }
.form-success h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin: 0 0 8px;
  color: #fff;
}
.form-success p {
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 auto;
}

/* ===== PROCESS-STEPS (Saradnja, 4 Schritte) ===== */
.process-section { background: var(--bg); }
.process-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.process-step {
  flex: 1;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.3rem;
  padding: 0 8px;
  flex-shrink: 0;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
}
.process-step h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.process-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== DOCS — TOC + Content ===== */
.doc-section-wrap { padding: 80px 0; }
.doc-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}
.doc-toc {
  position: sticky;
  top: 96px;
}
.doc-toc-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.doc-toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--border-strong);
  padding-left: 16px;
}
.doc-toc ol li a {
  display: block;
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.doc-toc ol li a:hover { color: var(--accent); }

.doc-content { max-width: 75ch; }
.doc-block {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 96px;
}
.doc-block:last-child { border-bottom: none; margin-bottom: 0; }
.doc-block h2 {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.doc-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.doc-block h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin: 36px 0 14px;
}
.doc-block p {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.doc-block p strong { color: #fff; }

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 8px;
  font-size: 0.92rem;
}
.doc-table th,
.doc-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.doc-table th {
  background: var(--bg-card);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.doc-table td:first-child {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.doc-table tbody tr:hover { background: var(--bg-card); }

.doc-spec {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 10px 24px;
  border-left: 2px solid var(--accent);
  padding: 6px 0 6px 20px;
  margin: 12px 0;
}
.doc-spec dt { font-weight: 600; color: var(--text); font-size: 0.92rem; }
.doc-spec dd { color: var(--text-muted); font-size: 0.92rem; }

.doc-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.doc-list li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.6;
}
.doc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 12px;
  height: 1px;
  background: var(--accent);
}

.doc-callout {
  margin: 24px 0;
  padding: 18px 22px;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.65;
}
.doc-callout strong { color: #fff; }
.doc-callout a { display: inline-block; margin-top: 8px; color: var(--accent); font-weight: 600; }

/* ===== CE-DOC (formal) — auf dunklem Theme weiter formell, lesbar ===== */
.ce-doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 64px;
  background: #fff;
  color: #111;
  font-family: var(--font-main);
  line-height: 1.55;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.ce-head {
  text-align: center;
  border-bottom: 2px solid #111;
  padding-bottom: 18px;
  margin-bottom: 28px;
}
.ce-brand {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 28px;
  margin: 0;
  color: #111;
}
.ce-accent { color: #00abc8; }
.ce-doc-meta {
  margin-top: 6px;
  font-size: 12px;
  color: #555;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ce-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  margin: 18px 0 6px;
  color: #111;
}
.ce-subtitle {
  text-align: center;
  font-size: 14px;
  color: #555;
  margin: 0 0 32px;
}
.ce-section { margin: 24px 0; }
.ce-section h3 {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00abc8;
  margin: 0 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e2e2e2;
  font-weight: 600;
}
.ce-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8px 24px;
  font-size: 14px;
}
.ce-grid dt { font-weight: 600; color: #333; }
.ce-grid dd { margin: 0; color: #111; }
.ce-todo {
  background: #FEF3C7;
  border-left: 2px solid #F59E0B;
  padding: 1px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #92400E;
}
.ce-standards {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 10px 0;
}
.ce-standards th,
.ce-standards td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #e2e2e2;
  vertical-align: top;
}
.ce-standards th {
  background: #f7f7f4;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ce-standards td:first-child {
  white-space: nowrap;
  font-family: var(--font-mono);
  color: #00abc8;
  font-weight: 600;
}
.ce-declaration-box {
  background: #f7f7f4;
  border-left: 3px solid #00abc8;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.65;
  color: #111;
}
.ce-sign-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e2e2e2;
}
.ce-sign-line {
  border-bottom: 1px solid #111;
  height: 48px;
  margin-bottom: 6px;
}
.ce-sign-label { font-size: 12px; color: #555; letter-spacing: 0.05em; }
.ce-foot-note { font-size: 12px; color: #555; margin-top: 8px; }
.ce-footer-doc {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #e2e2e2;
  font-size: 11px;
  color: #777;
  text-align: center;
}

@media print {
  body { background: #fff !important; color: #111 !important; }
  #header, #footer, .doc-actions, .page-header, .section-cta-block { display: none !important; }
  .ce-doc { box-shadow: none; padding: 0; }
  a { color: #111 !important; }
}

/* ===== FOOTER ===== */
#footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 38ch;
}
.footer-contact-line { margin-top: 8px; }
.footer-contact-line a { color: var(--text); }
.footer-contact-line a:hover { color: var(--accent); }

.footer-links h4 {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links ul li a:hover { color: var(--accent); }
.lc-cookie-reopen-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
}
.lc-cookie-reopen-link:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom p {
  color: var(--text-dim);
  font-size: 0.82rem;
  text-align: center;
}
.web-by a { color: var(--text-dim); }
.web-by a:hover { color: var(--accent); }

/* ===== SCROLL-REVEAL (via JS-Klasse) ===== */
.product-card,
.advantage-item,
.process-step,
.stat-cell,
.portfolio-item,
.product-detail,
.doc-block {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.product-card.is-visible,
.advantage-item.is-visible,
.process-step.is-visible,
.stat-cell.is-visible,
.portfolio-item.is-visible,
.product-detail.is-visible,
.doc-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .product-card, .advantage-item, .process-step, .stat-cell,
  .portfolio-item, .product-detail, .doc-block {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--border); }
  .doc-layout { grid-template-columns: 1fr; gap: 32px; }
  .doc-toc { position: static; }
  .doc-toc ol { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; border-left: none; padding-left: 0; }
  .spec-grid { grid-template-columns: 180px 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-stats { padding: 56px 0; }
  .container { padding: 0 18px; }
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: clamp(1.5rem, 5.5vw, 2rem); }
  .section-desc { font-size: 0.95rem; }

  #header { backdrop-filter: blur(10px); }
  .header-inner { height: 60px; }
  .logo { font-size: 1.3rem; }
  #main-nav {
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(2,6,23,0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-strong);
    padding: 20px 18px 28px;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  #main-nav.open { transform: translateY(0); }
  #main-nav ul {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
  }
  #main-nav ul li { width: 100%; }
  #main-nav ul li a {
    display: block;
    padding: 14px 8px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    min-height: 44px;
  }
  #main-nav ul li a.is-active::after { display: none; }
  #main-nav ul li a.is-active { color: var(--accent); }
  #main-nav .btn-nav {
    display: block;
    margin-top: 12px;
    text-align: center;
    padding: 14px 22px !important;
    border-radius: var(--radius);
  }
  .burger { display: flex; }

  .hero { padding: 110px 0 80px; min-height: auto; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero-desc { font-size: 0.98rem; }
  .hero-cta .btn { flex: 1 1 100%; }

  .page-header { padding: 110px 0 48px; }
  .page-header h1 { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .page-lead { font-size: 0.98rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-cell { padding: 24px 18px; }
  .stat-num { font-size: 1.4rem; }
  .stat-label { font-size: 0.7rem; }

  .products-grid { grid-template-columns: 1fr; }
  .product-card { padding: 28px 24px; }
  .product-icon { width: 36px; height: 36px; }

  .advantages-grid { grid-template-columns: 1fr; }
  .advantage-item { padding: 24px 22px; }

  .product-detail { padding: 40px 0; }
  .spec-grid {
    grid-template-columns: 1fr;
    gap: 4px 0;
    padding-left: 16px;
  }
  .spec-grid dt { margin-top: 10px; color: var(--text); }
  .spec-grid dd { color: var(--text-muted); padding-bottom: 6px; }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .portfolio-item.portfolio-large { grid-column: auto; grid-row: auto; }

  .reference-cta { flex-direction: column; align-items: stretch; padding: 24px; }
  .reference-cta-buttons { width: 100%; }
  .reference-cta-buttons .btn { flex: 1 1 100%; }

  .process-steps { flex-direction: column; }
  .process-arrow { transform: rotate(90deg); padding: 4px 0; }

  .form-row { grid-template-columns: 1fr; }
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; }

  .contact-info { padding: 24px; }

  .doc-block { padding-bottom: 40px; margin-bottom: 40px; }
  .doc-spec { grid-template-columns: 1fr; padding-left: 16px; }
  .doc-spec dt { margin-top: 8px; color: var(--text); }
  .doc-spec dd { color: var(--text-muted); padding-bottom: 4px; }
  .doc-table { font-size: 0.85rem; }
  .doc-table th, .doc-table td { padding: 8px 10px; }

  .ce-doc { padding: 32px 24px; }
  .ce-grid { grid-template-columns: 1fr; gap: 4px; }
  .ce-grid dt { margin-top: 8px; }
  .ce-sign-block { grid-template-columns: 1fr; gap: 32px; }

  .section-cta-block { padding: 56px 0; }
  .cta-block { padding: 36px 24px; }

  #footer { padding-top: 48px; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 36px;
  }
  .footer-links ul li a {
    display: inline-block;
    padding: 8px 0;
    min-height: 36px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-cell { padding: 20px 14px; }
}

/* iOS safe-area */
@supports (padding: max(0px)) {
  @media (max-width: 768px) {
    .container,
    .hero-content,
    .footer-inner {
      padding-left: max(16px, env(safe-area-inset-left));
      padding-right: max(16px, env(safe-area-inset-right));
    }
  }
}

/* Touch (no hover) */
@media (hover: none) {
  .product-card:hover { background: var(--bg-card); border-color: var(--border); }
  .portfolio-item:hover img { transform: none; }
  .reference-highlight:hover img { transform: none; }
}

/* ==========================================================================
   HIVE-BOOT — Resident-Evil-Stil-Scroll-Animation
   (nur auf /proces gerendert; CSS bleibt erhalten)
   ========================================================================== */
.section-hive {
  position: relative;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
}
.hive-stage {
  position: relative;
  min-height: 100vh;
}
.hive-skip {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
}
.hive-skip:focus, .hive-skip:focus-visible {
  opacity: 1;
  pointer-events: auto;
  outline: none;
}

.hive-bg-grid,
.hive-bg-scan,
.hive-bg-particles,
.hive-bg-vignette,
.hive-bg-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hive-bg-grid {
  background-image:
    linear-gradient(to right, rgba(0,212,255,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,212,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: hive-grid-pulse 4s ease-in-out infinite;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 90%);
}
@keyframes hive-grid-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
.hive-bg-scan {
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(0,212,255,0.25) 49%,
    rgba(0,212,255,0.55) 50%,
    rgba(0,212,255,0.25) 51%,
    transparent 100%);
  background-size: 100% 6px;
  background-repeat: no-repeat;
  background-position: 0 -10px;
  mix-blend-mode: screen;
  animation: hive-scan-line 3.6s linear infinite;
}
@keyframes hive-scan-line {
  0%   { background-position: 0 -10px; opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { background-position: 0 calc(100% + 10px); opacity: 0; }
}
.hive-bg-particles span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
  opacity: 0;
  bottom: -10px;
  animation: hive-particle-drift linear infinite;
}
.hive-bg-particles span:nth-child(1)  { left: 8%;  animation-duration: 13s; animation-delay: 0s; }
.hive-bg-particles span:nth-child(2)  { left: 16%; animation-duration: 17s; animation-delay: 2s; }
.hive-bg-particles span:nth-child(3)  { left: 24%; animation-duration: 11s; animation-delay: 5s; }
.hive-bg-particles span:nth-child(4)  { left: 33%; animation-duration: 19s; animation-delay: 1s; }
.hive-bg-particles span:nth-child(5)  { left: 41%; animation-duration: 14s; animation-delay: 6s; }
.hive-bg-particles span:nth-child(6)  { left: 49%; animation-duration: 16s; animation-delay: 3s; }
.hive-bg-particles span:nth-child(7)  { left: 57%; animation-duration: 12s; animation-delay: 0s; }
.hive-bg-particles span:nth-child(8)  { left: 65%; animation-duration: 18s; animation-delay: 4s; }
.hive-bg-particles span:nth-child(9)  { left: 72%; animation-duration: 13s; animation-delay: 7s; }
.hive-bg-particles span:nth-child(10) { left: 79%; animation-duration: 15s; animation-delay: 2s; }
.hive-bg-particles span:nth-child(11) { left: 86%; animation-duration: 11s; animation-delay: 5s; }
.hive-bg-particles span:nth-child(12) { left: 92%; animation-duration: 17s; animation-delay: 1s; }
.hive-bg-particles span:nth-child(13) { left: 12%; animation-duration: 21s; animation-delay: 8s; }
.hive-bg-particles span:nth-child(14) { left: 38%; animation-duration: 19s; animation-delay: 4s; }
.hive-bg-particles span:nth-child(15) { left: 68%; animation-duration: 22s; animation-delay: 9s; }
@keyframes hive-particle-drift {
  0%   { transform: translateY(0) scale(0.8); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { transform: translateY(-110vh) scale(1.2); opacity: 0; }
}
.hive-bg-vignette {
  background: radial-gradient(ellipse at center,
    transparent 30%,
    rgba(2,6,23,0.55) 70%,
    rgba(2,6,23,0.95) 100%);
}
.hive-bg-flash {
  background: #fff;
  opacity: 0;
  z-index: 30;
}
.hive-intro {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 80px 24px 40px;
}
.hive-label {
  font-family: var(--font-mono) !important;
  letter-spacing: 0.08em !important;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0,212,255,0.55);
}
.hive-h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #fff;
  margin-bottom: 14px;
}
.hive-h2 .glow {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0,212,255,0.85), 0 0 24px rgba(0,212,255,0.5);
}
.section-hive .section-desc {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.hive-frame {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  z-index: 3;
  overflow: hidden;
}
.hive-hud-top {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  z-index: 10;
  flex-wrap: wrap;
}
.hive-hud-text {
  padding: 4px 10px;
  border: 1px solid rgba(0,212,255,0.18);
  background: rgba(0,212,255,0.04);
  text-shadow: 0 0 8px rgba(0,212,255,0.5);
  white-space: nowrap;
}
.hive-hud-text[data-hud="status"]::before {
  content: "●";
  display: inline-block;
  margin-right: 6px;
  animation: hive-blink 1.4s steps(1) infinite;
}
@keyframes hive-blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0.15; }
}
.hive-city {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 12px rgba(0,212,255,0.15));
}
.hive-city .city-lights .blink { animation: hive-window-blink 3s ease-in-out infinite; }
.hive-city .city-lights .b2 { animation-delay: 0.4s; }
.hive-city .city-lights .b3 { animation-delay: 0.9s; }
.hive-city .city-lights .b4 { animation-delay: 1.6s; }
.hive-city .city-lights .b5 { animation-delay: 2.2s; }
@keyframes hive-window-blink {
  0%, 60%, 100% { opacity: var(--win-op, 0.8); }
  62%, 66%      { opacity: 0.1; }
  68%, 72%      { opacity: 0.8; }
  74%           { opacity: 0.2; }
}
.hive-city .city-sign text { filter: drop-shadow(0 0 6px rgba(0,212,255,0.95)); }
.hive-letter {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  transform-origin: 50% 50%;
  opacity: 0;
  pointer-events: none;
}
.hive-letter .letter-part { transform-box: fill-box; transform-origin: 50% 50%; }
.hive-labels {
  position: absolute;
  inset: 0;
  z-index: 8;
  list-style: none;
  margin: 0; padding: 0;
  pointer-events: none;
}
.hive-labels .lbl {
  position: absolute;
  font-family: var(--font-mono);
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  padding: 8px 12px;
  border: 1px solid rgba(0,212,255,0.18);
  background: rgba(2,6,23,0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  min-width: 200px;
  opacity: 0;
  transform: translateY(6px);
  transition: none;
  box-shadow: 0 0 16px rgba(0,212,255,0.08), inset 0 0 1px rgba(0,212,255,0.4);
}
.hive-labels .lbl-tag {
  display: block;
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 0 6px rgba(0,212,255,0.6);
  margin-bottom: 2px;
}
.hive-labels .lbl-desc {
  display: block;
  color: var(--text-muted);
  font-family: var(--font-main);
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}
.hive-labels .lbl-tr { top: 12%; right: 6%; }
.hive-labels .lbl-tl { top: 12%; left: 6%; }
.hive-labels .lbl-mr { top: 50%; right: 6%; transform: translateY(-50%); }
.hive-labels .lbl-br { bottom: 18%; right: 6%; }
.hive-labels .lbl-bl { bottom: 22%; left: 6%; }
.hive-labels .lbl::before,
.hive-labels .lbl::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--accent);
}
.hive-labels .lbl::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.hive-labels .lbl::after  { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.hive-hud-bottom {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 10;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.hive-progress {
  flex: 1;
  position: relative;
  height: 22px;
  border: 1px solid rgba(0,212,255,0.18);
  background: rgba(0,212,255,0.04);
  padding: 0 10px;
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: 60%;
}
.hive-progress-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,212,255,0.18) 0%, rgba(0,212,255,0.4) 100%);
  width: 0%;
  transition: none;
  box-shadow: inset 0 0 12px rgba(0,212,255,0.3);
}
.hive-progress-text {
  position: relative;
  z-index: 1;
  text-shadow: 0 0 6px rgba(0,0,0,0.8);
}
.hive-reset {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,212,255,0.06);
  border: 1px solid var(--accent);
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  position: relative;
}
.hive-reset:hover {
  background: rgba(0,212,255,0.2);
  box-shadow: 0 0 18px rgba(0,212,255,0.4);
}
.hive-reset::before,
.hive-reset::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  border: 1px solid var(--accent);
}
.hive-reset::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.hive-reset::after  { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.hive-banner {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.8rem);
  letter-spacing: 0.12em;
  color: var(--accent);
  text-shadow: 0 0 14px rgba(0,212,255,0.85);
  opacity: 0;
  z-index: 9;
  white-space: nowrap;
  pointer-events: none;
}
.banner-cursor {
  display: inline-block;
  margin-left: 4px;
  animation: hive-cursor-blink 0.8s steps(1) infinite;
}
@keyframes hive-cursor-blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.hive-cta {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #001018;
  background: var(--accent);
  padding: 14px 28px;
  border: 1px solid var(--accent);
  z-index: 12;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  transition: box-shadow 0.25s, background 0.25s;
}
.hive-cta:hover {
  background: #fff;
  color: var(--bg);
}
.hive-frame[data-hive-glitch="1"] .hive-city,
.hive-frame[data-hive-glitch="1"] .hive-letter {
  animation: hive-rgb-split 0.18s steps(2) 1;
}
@keyframes hive-rgb-split {
  0%   { filter: drop-shadow(2px 0 0 #ff0070) drop-shadow(-2px 0 0 #00d4ff); transform: translate3d(2px, 0, 0); }
  50%  { filter: drop-shadow(-3px 0 0 #ff0070) drop-shadow(3px 0 0 #00d4ff); transform: translate3d(-2px, 1px, 0); }
  100% { filter: none; transform: none; }
}
.hive-mobile {
  display: none;
  list-style: none;
  padding: 24px;
  margin: 0;
  gap: 16px;
  flex-direction: column;
  position: relative;
  z-index: 5;
}
.hive-mobile .hmc {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(0,212,255,0.18);
  background: rgba(0,212,255,0.03);
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.5s, transform 0.5s, box-shadow 0.5s;
}
.hive-mobile .hmc.is-visible {
  opacity: 1;
  transform: none;
  box-shadow: 0 0 24px rgba(0,212,255,0.18), inset 0 0 1px rgba(0,212,255,0.6);
}
.hive-mobile .hmc::before,
.hive-mobile .hmc::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--accent);
}
.hive-mobile .hmc::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.hive-mobile .hmc::after  { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.hive-mobile .hmc-svg svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(0,212,255,0.4));
}
.hive-mobile .hmc-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-shadow: 0 0 6px rgba(0,212,255,0.55);
  margin-bottom: 4px;
}
.hive-mobile .hmc-body h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  color: #fff;
  margin: 0 0 4px;
}
.hive-mobile .hmc-body p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 980px) {
  .hive-labels .lbl { min-width: 170px; font-size: 10px; }
  .hive-labels .lbl-desc { font-size: 11px; }
  .hive-h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
}
@media (max-width: 768px) {
  .hive-intro { padding: 56px 18px 20px; }
  .hive-h2 { font-size: clamp(1.5rem, 6.5vw, 2rem); }
  .section-hive .section-desc { font-size: 0.8rem; }
  .hive-frame { display: none; }
  .hive-mobile { display: flex; padding: 0 18px 24px; }
  .hive-hud-top, .hive-hud-bottom, .hive-banner, .hive-cta { display: none !important; }
  .section-hive { padding-bottom: 40px; }
  .hive-bg-grid { background-size: 28px 28px; }
}
@media (max-width: 480px) {
  .hive-mobile .hmc { grid-template-columns: 80px 1fr; padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hive-bg-grid,
  .hive-bg-scan,
  .hive-bg-particles span,
  .hive-city .city-lights .blink,
  .banner-cursor,
  .hive-hud-text[data-hud="status"]::before {
    animation: none !important;
  }
  .hive-bg-scan { opacity: 0; }
  .hive-letter { opacity: 1 !important; }
  .hive-letter .letter-part { opacity: 1 !important; }
  .hive-labels .lbl { opacity: 1 !important; transform: none !important; }
  .hive-cta { opacity: 1 !important; }
}

/* ==========================================================================
   MASTER-VIDEO PROZESS (auf dunklem Theme, nicht mehr Magazin-Weiß)
   ========================================================================== */
.section-process {
  background: var(--bg);
  color: var(--text);
  padding: 96px 0 64px;
}
.process-intro {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
  padding: 0 24px;
}
.section-process .process-intro .section-label {
  display: block;
  margin-bottom: 14px;
}
.section-process .process-intro h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  color: #fff;
  margin-bottom: 14px;
}
.section-process .process-intro .section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 56ch;
  margin: 0 auto;
}
.process-hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  border: 1px solid var(--border-strong);
}
.process-hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
.process-hero-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 36px 72px;
  background: linear-gradient(to top,
    rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  color: #fff;
  pointer-events: none;
}
.process-step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}
.process-step-title {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 8px;
  color: #fff;
}
.process-step-title.is-changing { animation: stepFade 380ms ease-out; }
@keyframes stepFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.process-step-desc {
  font-family: var(--font-main);
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  max-width: 700px;
  margin: 0;
}
.process-hero-controls {
  position: absolute;
  bottom: 16px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
}
.process-replay {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-family: var(--font-main);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.process-replay:hover { background: rgba(255,255,255,0.22); }
.process-progress {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.2);
  overflow: hidden;
  border-radius: 1px;
}
.process-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.25s linear;
}
@media (max-width: 960px) {
  .section-process { padding: 72px 0 56px; }
  .process-intro   { margin-bottom: 40px; }
  .process-hero    { margin: 0 24px; }
  .process-hero-overlay { padding: 28px 22px 60px; }
}
@media (max-width: 768px) {
  .section-process { padding: 56px 0 48px; }
  .process-intro   { margin-bottom: 32px; padding: 0 20px; }
  .process-hero    { margin: 0 16px; }
  .process-hero-overlay { padding: 18px 16px 56px; }
  .process-step-title { font-size: 1.05rem; }
  .process-step-desc { font-size: 0.88rem; line-height: 1.5; }
  .process-hero-controls { left: 12px; right: 12px; bottom: 10px; }
}
@media (max-width: 480px) {
  .process-step-desc { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .process-step-title.is-changing { animation: none !important; }
  .process-progress-fill { transition: none !important; }
}
