/* ==========================================================================
   HOST ROBOTIK B.ENG. – SPATIAL 3D INDUSTRIAL DESIGN SYSTEM
   Modernes High-Tech-Engineering-Look & Feel (kein flacher 2D-Retro-Look)
   ========================================================================== */

:root,
html[data-theme="dark"] {
  --bg-base: #070b12;
  --bg-surface-grad: linear-gradient(165deg, rgba(22, 32, 54, 0.86) 0%, rgba(11, 17, 30, 0.92) 100%);
  --bg-elevated: rgba(14, 21, 37, 0.84);
  --bg-chip: rgba(30, 44, 72, 0.58);
  --bg-chip-hover: rgba(42, 60, 98, 0.78);
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-rim-top: rgba(255, 255, 255, 0.16);
  --border-strong: rgba(255, 98, 36, 0.55);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-soft: #cbd5e1;
  --accent-primary: #ff5a1f;
  --accent-host: #e31b23;
  --accent-cyan: #00d8ff;
  --accent-emerald: #10b981;
  --floor-grid: rgba(56, 189, 248, 0.12);
  --shadow-3d:
    0 28px 60px -15px rgba(0, 0, 0, 0.72),
    0 8px 20px -6px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 var(--border-rim-top);
  --hud-bg: rgba(7, 11, 18, 0.78);
}

html[data-theme="light"] {
  --bg-base: #eef3f9;
  --bg-surface-grad: linear-gradient(165deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 246, 253, 0.96) 100%);
  --bg-elevated: rgba(255, 255, 255, 0.88);
  --bg-chip: rgba(226, 234, 246, 0.75);
  --bg-chip-hover: rgba(212, 224, 242, 0.95);
  --border-subtle: rgba(15, 23, 42, 0.1);
  --border-rim-top: rgba(255, 255, 255, 0.95);
  --border-strong: rgba(224, 72, 9, 0.45);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-soft: #334155;
  --accent-primary: #e04809;
  --accent-host: #cc141c;
  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --floor-grid: rgba(15, 23, 42, 0.08);
  --shadow-3d:
    0 24px 48px -14px rgba(15, 23, 42, 0.14),
    0 6px 16px -4px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 var(--border-rim-top);
  --hud-bg: rgba(238, 243, 249, 0.84);
}

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

html {
  font-family: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-base);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* Lenis Smooth Scroll Empfehlungen */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--bg-base);
  color: var(--text-main);
  transition: background-color 0.35s ease, color 0.35s ease;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  padding: 0.6rem 1rem;
  background: var(--accent-primary);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus {
  left: 12px;
}

/* --- Räumlicher 3D-Perspektiv-Hallenboden & Volumetrisches Licht --- */
.factory-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.28;
}
.ambient-glow-orange {
  width: 52vw;
  height: 52vw;
  top: -14vw;
  left: -12vw;
  background: radial-gradient(circle, var(--accent-primary), transparent 70%);
}
.ambient-glow-cyan {
  width: 48vw;
  height: 48vw;
  bottom: -16vw;
  right: -10vw;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
}

.perspective-floor-wrap {
  position: absolute;
  inset: 0;
  perspective: 680px;
}

.perspective-floor-grid {
  position: absolute;
  left: -35%;
  right: -35%;
  bottom: -28%;
  height: 82%;
  transform: rotateX(66deg);
  transform-origin: center bottom;
  background-image:
    linear-gradient(to right, var(--floor-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--floor-grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 10%, transparent 92%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 10%, transparent 92%);
}

/* --- 3D-AGV Hintergrund-Ebene (hinter dem Content, frei sichtbar im AGV-Dock!) --- */
.agv-3d-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 4;
  pointer-events: none;
}

/* --- Echte Three.js 3D-Roboterarm-Bühne (immer scharf sichtbar, auch mobil!) --- */
.factory-3d-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 15;
  pointer-events: none;
}

/* --- Vorgeschalteter Datenschutz- & Wiederkehrer-Consent-Banner --- */
.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(920px, calc(100vw - 24px));
  z-index: 65;
  background: var(--bg-surface-grad);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 1.15rem 1.4rem;
  box-shadow: var(--shadow-3d);
}
.consent-banner.hidden {
  display: none;
}
.consent-banner-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
}
.consent-text-col {
  flex: 1 1 520px;
}
.consent-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.15rem;
}
.consent-text-col strong {
  font-size: 0.98rem;
}
.consent-text-col p {
  margin: 0.3rem 0 0;
  font-size: 0.83rem;
  color: var(--text-soft);
  line-height: 1.48;
}
.consent-text-col a {
  color: var(--accent-primary);
  font-weight: 600;
}
.consent-actions-col {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* --- Oberes Factory-HUD --- */
.factory-hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.4rem;
  background: var(--hud-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.hud-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.hud-logo {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}
html[data-theme="dark"] .hud-logo-light {
  display: none;
}
html[data-theme="light"] .hud-logo-dark {
  display: none;
}
.hud-brand-sep {
  width: 1px;
  height: 28px;
  background: var(--border-subtle);
}
.hud-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 12px var(--accent-emerald);
}
.hud-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.hud-brand-text strong {
  font-size: 0.86rem;
  letter-spacing: 0.03em;
}
.hud-brand-text span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.hud-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}
.hud-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s;
}
.hud-nav a:hover {
  color: var(--accent-primary);
}
.hud-nav .hud-nav-cta {
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-host));
  color: #fff;
  box-shadow: 0 6px 16px -4px rgba(255, 90, 31, 0.55);
}

.hud-controls {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.hud-progress {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 118px;
}
.hud-progress-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.hud-progress-bar {
  height: 5px;
  border-radius: 999px;
  background: var(--border-subtle);
  overflow: hidden;
}
.hud-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-cyan));
}

.theme-switcher {
  display: inline-flex;
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 2px;
}
.theme-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.3rem 0.56rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.theme-btn.active {
  background: var(--accent-primary);
  color: #fff;
}

@media (max-width: 920px) {
  .hud-nav,
  .hud-progress {
    display: none;
  }
}

/* --- Wiederkehrer-Toast --- */
.returning-banner {
  position: fixed;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 44;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  background: var(--bg-surface-grad);
  border: 1px solid var(--accent-cyan);
  box-shadow: var(--shadow-3d);
  font-size: 0.82rem;
}
.returning-banner.hidden {
  display: none;
}
.returning-jump {
  color: var(--accent-primary);
  font-weight: 700;
  text-decoration: none;
}

/* --- Layout-Kanäle für 3D-Roboterarme (Desktop & Mobile!) --- */
/* WICHTIG: Kein perspective/transform/filter auf main, da sonst position:fixed beim ScrollTrigger-Pinning bricht! */
main {
  position: relative;
  z-index: 10;
}

.station {
  padding: 6.2rem 1.25rem;
  position: relative;
}
.station-hero {
  min-height: 94vh;
  display: flex;
  align-items: center;
  padding-top: 6.8rem;
}

/* Auf Desktop lassen wir bewusst links & rechts freie Montage-Gassen,
   damit die massiven 3D-Roboterarme voll im Raum sichtbar arbeiten! */
.station-inner {
  max-width: 850px;
  width: calc(100% - 210px);
  margin: 0 auto;
}

@media (max-width: 1120px) and (min-width: 860px) {
  .station-inner {
    width: calc(100% - 160px);
  }
}

/* Auf Smartphones (< 860px) arbeitet oben der sichtbare 3D-Deckenportal-Roboter
   und unten fährt das 3D-AGV: Wir schaffen oben & unten sauberen Sichtraum! */
@media (max-width: 859px) {
  .station-inner {
    width: 100%;
    max-width: 100%;
  }
  .station-hero {
    padding-top: 9.2rem;
  }
  .station {
    padding: 4.8rem 0.9rem;
  }
  .factory-footer {
    padding-bottom: 5.8rem;
  }
}

/* --- Moderne 3D-Spatial-Werkstückkarten --- */
.tech-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  padding: 0.22rem 0.62rem;
  border-radius: 6px;
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
}

.eyebrow {
  margin: 0.55rem 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.section-header {
  max-width: 760px;
  margin-bottom: 2.4rem;
}
.section-header h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0.25rem 0 0.95rem;
}
.section-lead {
  color: var(--text-soft);
  font-size: 1.05rem;
}

.workpiece-card {
  position: relative;
  background: var(--bg-surface-grad);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-3d);
  backdrop-filter: blur(16px);
  transform-style: preserve-3d;
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}
.workpiece-card.is-clamped-card {
  border-color: var(--border-strong);
}

/* 3D-gefräste Metall-Aufnahmen für die Roboter-Greiferbacken */
.grip-bracket {
  position: absolute;
  border-radius: 5px;
  background: linear-gradient(180deg, var(--accent-primary), #9a3412);
  box-shadow: 0 0 12px rgba(255, 90, 31, 0.35);
}
.grip-bracket-left {
  left: -5px;
  top: 48%;
  width: 7px;
  height: 44px;
  margin-top: -22px;
}
.grip-bracket-right {
  right: -5px;
  top: 48%;
  width: 7px;
  height: 44px;
  margin-top: -22px;
}
.grip-bracket-top {
  display: none;
}
@media (max-width: 859px) {
  .grip-bracket-left,
  .grip-bracket-right {
    display: none;
  }
  .grip-bracket-top {
    display: block;
    top: -5px;
    left: 50%;
    width: 52px;
    height: 7px;
    margin-left: -26px;
  }
}

/* --- Hero --- */
.hero-card {
  border-color: var(--border-strong);
}
.card-top-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.status-pill {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.28rem 0.78rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.hero-title {
  font-size: clamp(2rem, 4.4vw, 3.45rem);
  line-height: 1.07;
  margin: 0 0 1.15rem;
  letter-spacing: -0.025em;
}
.hero-title-accent {
  display: block;
  margin-top: 0.22rem;
  background: linear-gradient(95deg, var(--accent-primary) 0%, #ff8c42 45%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-prose {
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 720px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.7rem 0 1.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.82rem 1.4rem;
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s;
}
.btn-sm {
  padding: 0.62rem 1.05rem;
  font-size: 0.84rem;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-host));
  color: #fff;
  box-shadow:
    0 12px 26px -8px rgba(255, 90, 31, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-secondary {
  background: var(--bg-chip);
  color: var(--text-main);
  border-color: var(--border-subtle);
}
.btn-secondary:hover {
  background: var(--bg-chip-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-subtle);
}

.hero-quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 0.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-subtle);
}
.quick-fact strong {
  display: block;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  color: var(--accent-primary);
}
.quick-fact span {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.scroll-conveyor-prompt {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.scroll-mouse-indicator {
  width: 22px;
  height: 34px;
  border-radius: 12px;
  border: 2px solid var(--accent-cyan);
  display: inline-flex;
  justify-content: center;
  padding-top: 5px;
}
.scroll-mouse-indicator span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--accent-cyan);
  animation: wheelDrop 1.6s infinite;
}
@keyframes wheelDrop {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* --- Station 01: Gepinnte Karriere-Missions-Bühne (Überschrift + MOD + AGV zentriert!) --- */
.station-traum {
  padding: 0;
}
.traum-pin-stage {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 66px 1.25rem 18px;
}
@media (max-width: 859px) {
  .traum-pin-stage {
    padding: 118px 0.9rem 58px;
  }
}
.traum-compact-header {
  margin-bottom: 1rem;
  max-width: 820px;
}
.traum-kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.35rem;
}
.traum-eyebrow-inline {
  margin: 0;
}
.traum-compact-header h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  line-height: 1.14;
  margin: 0.15rem 0 0.45rem;
}
.traum-compact-header .section-lead {
  font-size: 0.95rem;
  line-height: 1.48;
}
.traum-compact-header .section-lead p {
  margin: 0;
}

.agv-showcase {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.inspection-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}
.mission-pin-progress {
  height: 4px;
  width: 100%;
  border-radius: 999px;
  background: var(--border-subtle);
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.mission-pin-progress-fill {
  height: 100%;
  width: 25%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-cyan));
  transition: width 0.12s ease-out;
}
.mission-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.mission-tab {
  background: var(--bg-chip);
  color: var(--text-soft);
  border: 1px solid var(--border-subtle);
  padding: 0.38rem 0.78rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.mission-tab.active {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-host));
  color: #fff;
  border-color: transparent;
}
.mission-cards-deck {
  min-height: 222px;
}
.mission-card {
  display: none;
  padding: 1.35rem 1.7rem;
}
.mission-card.from-left {
  animation: cardEnterFromLeft 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.mission-card.from-right {
  animation: cardEnterFromRight 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.mission-card.is-active {
  display: block;
  border-color: var(--border-strong);
}
@keyframes cardEnterFromRight {
  from {
    opacity: 0;
    transform: perspective(900px) rotateY(-5deg) translateX(26px);
  }
  to {
    opacity: 1;
    transform: perspective(900px) rotateY(0deg) translateX(0);
  }
}
@keyframes cardEnterFromLeft {
  from {
    opacity: 0;
    transform: perspective(900px) rotateY(5deg) translateX(-26px);
  }
  to {
    opacity: 1;
    transform: perspective(900px) rotateY(0deg) translateX(0);
  }
}
@keyframes card3DEnter {
  from {
    opacity: 0;
    transform: perspective(900px) rotateY(-5deg) translateX(22px);
  }
  to {
    opacity: 1;
    transform: perspective(900px) rotateY(0deg) translateX(0);
  }
}
.mission-tag {
  font-size: 0.74rem;
  color: var(--accent-primary);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mission-card h3 {
  font-size: clamp(1.22rem, 2vw, 1.48rem);
  margin: 0.22rem 0 0.55rem;
}
.inception-quote {
  margin: 0 0 0.65rem;
  padding: 0.65rem 1rem;
  border-left: 3px solid var(--accent-cyan);
  background: var(--bg-chip);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 0.96rem;
  line-height: 1.45;
}
.mission-card p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.5;
}
.mission-footer-meta {
  margin-top: 0.8rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--accent-emerald);
  font-weight: 700;
}

/* 3D-AGV-Bühnen-Dock (transparentes Sichtfenster auf die AGV-3D-Ebene!) */
.agv-3d-dock {
  position: relative;
  height: 122px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.04) 0%, rgba(0, 216, 255, 0.06) 100%);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 -18px 36px rgba(0, 216, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.65rem 1.15rem;
}
.agv-3d-guideline {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 62%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-primary), transparent);
  box-shadow: 0 0 14px var(--accent-cyan);
}
.agv-3d-dock-labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
@media (max-width: 859px) {
  .agv-3d-dock {
    height: 82px;
  }
}

/* --- Station 02: 3 Säulen & Interaktiver 3D-Digital-Twin --- */
.pillars-assembly-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 1.6rem;
  align-items: start;
}
@media (max-width: 880px) {
  .pillars-assembly-layout {
    grid-template-columns: 1fr;
  }
}
.blueprint-core-panel {
  position: sticky;
  top: 86px;
  padding: 1.2rem;
}
@media (max-width: 880px) {
  .blueprint-core-panel {
    position: relative;
    top: 0;
  }
}
.blueprint-hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.vision-readout {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}
.twin-canvas-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 260px;
  cursor: grab;
}
.twin-canvas-wrap:active {
  cursor: grabbing;
}
.twin-3d-canvas {
  display: block;
  max-width: 100%;
}
.blueprint-status-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 0.5rem;
}
.bp-bar {
  padding: 0.36rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 8px;
  background: var(--bg-chip);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s;
}
.bp-bar.active {
  background: var(--accent-primary);
  color: #fff;
}

.pillars-cards-column {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.pillar-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.pillar-step {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--accent-primary);
}
.pillar-card h3 {
  margin: 0.35rem 0 0.15rem;
  font-size: 1.42rem;
}
.pillar-sub {
  margin: 0 0 0.65rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 0.92rem;
}
.tool-chips {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tool-chips li {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
}

/* --- Station 03: 7-Semester-Taktstraße & Wahlmodul-Greifer --- */
.semester-line-container {
  position: relative;
  padding-left: 54px;
}
@media (max-width: 600px) {
  .semester-line-container {
    padding-left: 38px;
  }
}
.agv-vertical-track {
  position: absolute;
  left: 16px;
  top: 12px;
  bottom: 12px;
  width: 6px;
  border-radius: 999px;
  background: var(--border-subtle);
}
@media (max-width: 600px) {
  .agv-vertical-track {
    left: 10px;
  }
}
.agv-vertical-fill {
  width: 100%;
  height: 0%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-cyan));
}
.agv-vertical-shuttle {
  position: absolute;
  left: -19px;
  top: 0%;
  width: 44px;
  height: 56px;
  border-radius: 12px;
  background: var(--bg-surface-grad);
  border: 2px solid var(--accent-primary);
  box-shadow: var(--shadow-3d);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.shuttle-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}
.shuttle-code {
  font-size: 0.62rem;
  font-weight: 800;
}

.semester-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.semester-card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.sem-badge-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sem-number {
  padding: 0.25rem 0.72rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-host));
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
}
.sem-phase {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan);
}
.sem-ects {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.semester-card h3 {
  margin: 0.55rem 0 0.35rem;
  font-size: 1.28rem;
}
.sem-highlight {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: var(--accent-emerald);
  font-size: 0.92rem;
}
.sem-summary {
  margin: 0 0 0.85rem;
  color: var(--text-soft);
}
.sem-modules-toggle summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent-primary);
  user-select: none;
}
.sem-module-list {
  list-style: none;
  padding: 0.8rem 0 0;
  margin: 0.6rem 0 0;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  gap: 0.45rem;
}
.sem-module-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.86rem;
  padding: 0.4rem 0.7rem;
  border-radius: 9px;
  background: var(--bg-chip);
}
.mod-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.claw-machine-box {
  margin-top: 2.4rem;
  border-color: rgba(0, 216, 255, 0.38);
}
.claw-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}
.claw-header h3 {
  margin: 0.4rem 0;
}
.claw-header p {
  margin: 0;
  max-width: 500px;
  color: var(--text-soft);
  font-size: 0.93rem;
}
.claw-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.45rem;
}
.claw-slot {
  padding: 0.42rem 0.78rem;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  background: var(--bg-chip);
}
.claw-slot.filled {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}
.electives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 0.7rem;
}
.elective-chip {
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  transition: all 0.2s ease;
}
.elective-chip:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-chip-hover);
  transform: translateY(-2px);
}
.elective-chip.is-picked {
  background: rgba(16, 185, 129, 0.16);
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 1px var(--accent-emerald);
}
.el-cluster {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  font-weight: 700;
}
.el-name {
  font-size: 0.9rem;
}
.el-exam {
  font-size: 0.74rem;
  color: var(--text-muted);
}
.joker-callout {
  margin: 1.2rem 0 0;
  padding: 0.8rem 1.05rem;
  border-radius: 12px;
  background: var(--bg-chip);
  font-size: 0.86rem;
  color: var(--text-soft);
}

/* --- Station 04: Labore & Campus-Teams --- */
.labs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}
.lab-card h3 {
  margin: 0.45rem 0 0.45rem;
}
.teams-conveyor-panel {
  margin-bottom: 1.4rem;
}
.teams-panel-head h3 {
  margin: 0.45rem 0 0.5rem;
}
.teams-panel-sub {
  margin: 0 0 1.25rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 0.9rem;
}
.team-badge-card {
  padding: 1rem;
  border-radius: 14px;
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
}
a.team-badge-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
a.team-badge-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
  background: var(--bg-chip-hover);
}
.team-vehicle {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-primary);
}
.team-badge-card strong {
  display: block;
  font-size: 1.06rem;
  margin: 0.2rem 0 0.35rem;
}
.team-badge-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}
.modes-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
}
.mode-item {
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: var(--bg-surface-grad);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-3d);
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}
.mode-item strong {
  color: var(--accent-emerald);
}
.mode-item span {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* --- Station 05: Boarding-Terminal --- */
.boarding-terminal {
  border-color: var(--border-strong);
  margin-bottom: 2rem;
}
.terminal-progress-bar {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.terminal-step-dot {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-chip);
  color: var(--text-muted);
  font-weight: 800;
  cursor: pointer;
}
.terminal-step-dot.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}
.terminal-step-dot.done {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}
.terminal-step-pane {
  display: none;
}
.terminal-step-pane.is-visible {
  display: block;
  animation: card3DEnter 0.3s ease;
}
.terminal-step-pane h3 {
  margin: 0.5rem 0 1.2rem;
  font-size: 1.4rem;
}
.terminal-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 0.8rem;
}
.terminal-option-btn {
  text-align: left;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: var(--bg-chip);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: all 0.2s ease;
}
.terminal-option-btn:hover,
.terminal-option-btn.selected {
  border-color: var(--accent-primary);
  background: var(--bg-chip-hover);
  transform: translateY(-2px);
}
.terminal-option-btn span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.terminal-result-pane {
  display: none;
}
.terminal-result-pane.is-visible {
  display: block;
  animation: card3DEnter 0.35s ease;
}
.boarding-pass-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}
.boarding-pass-header h3 {
  margin: 0.35rem 0 0;
  color: var(--accent-emerald);
}
.stamp-seal {
  padding: 0.42rem 0.9rem;
  border: 2px solid var(--accent-emerald);
  color: var(--accent-emerald);
  border-radius: 10px;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}
.boarding-pass-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1rem;
  margin: 1.35rem 0;
}
.pass-block {
  padding: 1.05rem;
  border-radius: 14px;
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
}
.pass-label {
  display: block;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  font-weight: 800;
  margin-bottom: 0.35rem;
}
.pass-block p {
  margin: 0;
  font-size: 0.91rem;
}
.inline-info-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--accent-primary);
}
.inline-info-link.hidden {
  display: none;
}
.boarding-pass-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* FAQ-Panel */
.faq-panel {
  margin-bottom: 1.8rem;
}
.faq-panel h3 {
  margin: 0.45rem 0 1.1rem;
  font-size: 1.4rem;
}
.faq-list {
  display: grid;
  gap: 0.65rem;
}
.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  background: var(--bg-chip);
  padding: 0.85rem 1.05rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  list-style-position: outside;
}
.faq-item p {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.contacts-and-deadlines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.3rem;
}
.contact-person {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  font-size: 0.9rem;
}
.contact-person a {
  color: var(--accent-primary);
  text-decoration: none;
}
.subtle-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 1rem 0;
}
.deadlines-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: grid;
  gap: 0.85rem;
}
.deadlines-list li {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}
.deadlines-list span {
  color: var(--text-soft);
  font-size: 0.84rem;
}
.official-link {
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

/* --- Footer & Diagnose-Drawer --- */
.factory-footer {
  padding: 2.4rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  position: relative;
  z-index: 20;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}
.footer-inner p {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.95rem;
}
.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--accent-primary);
}
.telemetry-toggle-btn {
  background: var(--bg-chip);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 0.38rem 0.72rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.telemetry-drawer {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 350px;
  max-width: calc(100vw - 32px);
  z-index: 60;
  background: var(--bg-surface-grad);
  backdrop-filter: blur(18px);
  border: 1px solid var(--accent-cyan);
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: var(--shadow-3d);
  font-size: 0.82rem;
}
.telemetry-drawer.hidden {
  display: none;
}
.telemetry-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}
.telemetry-drawer-head button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
}
.telemetry-live-box {
  padding: 0.7rem;
  border-radius: 12px;
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
}
.telemetry-stats-summary {
  margin-bottom: 0.35rem;
  font-weight: 700;
  color: var(--accent-emerald);
}
.telemetry-event-log {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 130px;
  overflow-y: auto;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.telemetry-event-log li {
  padding: 2px 0;
  border-bottom: 1px solid var(--border-subtle);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
