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

:root {
  --blue: #0057A3;
  --gold: #FDB913;
  --gray-mid: #94a3b8;
  --gray-dark: #334155;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #fff;
  color: var(--gray-dark);
  margin: 0;
  height: 100vh;
  overflow: hidden;
  overflow-x: clip;
  max-width: 100%;
}
html {
  max-width: 100%;
  overflow-x: clip;
}
@supports not (overflow-x: clip) {
  html, body { overflow-x: hidden; }
}

/* ── Ambient background motion ── */

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-keyword {
  position: absolute;
  bottom: -80px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(26, 75, 140, 0.28);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  user-select: none;
  white-space: nowrap;
  animation: keywordFloat linear infinite;
}

.ambient-keyword.k1 { left: 5%;  animation-duration: 27s; animation-delay: -12s; font-size: 24px; }
.ambient-keyword.k2 { left: 16%; animation-duration: 31s; animation-delay: -3s;  }
.ambient-keyword.k3 { left: 29%; animation-duration: 24s; animation-delay: -19s; font-size: 26px; }
.ambient-keyword.k4 { left: 40%; animation-duration: 34s; animation-delay: -8s; }
.ambient-keyword.k5 { left: 53%; animation-duration: 29s; animation-delay: -15s; font-size: 22px; }
.ambient-keyword.k6 { left: 65%; animation-duration: 33s; animation-delay: -5s; }
.ambient-keyword.k7 { left: 75%; animation-duration: 28s; animation-delay: -22s; font-size: 23px; }
.ambient-keyword.k8 { left: 84%; animation-duration: 36s; animation-delay: -10s; font-size: 19px; }
.ambient-keyword.k9 { left: 92%; animation-duration: 26s; animation-delay: -17s; font-size: 21px; }

/* ── Top bar ── */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 32px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 75, 140, 0.08);
}

.topbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 14px;
}

.topbar-logo {
  /* Gleiche Zielgroesse wie Tool-Sidebars (64px sichtbare Glyphe trotz PNG-Weissraum) */
  height: 64px;
  width: auto;
  max-width: min(100%, 320px);
  object-fit: contain;
}

.topbar-slogan {
  display: flex;
  align-items: center;
  gap: 6px;
  border-left: 1px solid rgba(26, 75, 140, 0.15);
  padding-left: 14px;
  overflow: hidden;
}

@keyframes sloganCrash {
  0% {
    opacity: 0;
    transform: translateX(300px) scale(1.4) rotate(3deg);
    filter: blur(8px);
    text-shadow: 0 0 0 transparent;
  }
  35% {
    opacity: 1;
    filter: blur(0);
  }
  45% {
    transform: translateX(-8px) scale(0.96) rotate(-1deg);
    text-shadow: 4px 0 12px rgba(26, 75, 140, 0.3);
  }
  55% {
    transform: translateX(5px) scale(1.03) rotate(0.5deg);
  }
  65% {
    transform: translateX(-3px) scale(0.99);
  }
  75% {
    transform: translateX(2px) scale(1.01);
  }
  85% {
    transform: translateX(-1px) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0deg);
    filter: blur(0);
    text-shadow: none;
  }
}

@keyframes sloganFlash {
  0% { opacity: 0; }
  50% { opacity: 0.6; }
  100% { opacity: 0; }
}

.slogan-word {
  display: inline-block;
  font-size: 16px;
  font-weight: 800;
  color: var(--gray-dark);
  letter-spacing: 0.03em;
  opacity: 0;
  animation: sloganCrash 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  position: relative;
}

.slogan-word::after {
  content: "";
  position: absolute;
  inset: -4px -8px;
  background: radial-gradient(ellipse, rgba(26,75,140,0.15), transparent 70%);
  border-radius: 4px;
  opacity: 0;
  animation: sloganFlash 0.3s ease forwards;
  pointer-events: none;
}

.sw1 { animation-delay: 2.7s; }
.sw1::after { animation-delay: 2.87s; }
.sw2 { animation-delay: 2.93s; color: var(--blue); }
.sw2::after { animation-delay: 3.09s; }
.sw3 { animation-delay: 3.15s; }
.sw3::after { animation-delay: 3.32s; }

.topbar-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-item {
  position: relative;
}

.topbar-link-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.topbar-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 260px;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(26, 75, 140, 0.14);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

.topbar-item:hover .topbar-dropdown,
.topbar-item:focus-within .topbar-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.topbar-dropdown-docs {
  background: #fff;
  padding: 10px;
}

.topbar-dropdown-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  padding: 2px 4px 8px;
}

.topbar-docs-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.topbar-docs-link {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: var(--gray-dark);
  text-decoration: none;
  border-radius: 8px;
  padding: 7px 8px;
}

.topbar-docs-link:hover {
  background: rgba(26, 75, 140, 0.08);
  color: var(--blue);
}

.topbar-docs-link-archiv {
  color: #94a3b8;
  font-size: 11px;
}
.topbar-docs-link-archiv:hover {
  color: #64748b;
}

.topbar-docs-empty {
  font-size: 12px;
  color: var(--gray-mid);
  padding: 6px 8px;
}

.topbar-dropdown-contact {
  min-width: 430px;
  background: #005da8;
  border-color: rgba(255, 255, 255, 0.14);
}

.contact-box {
  padding: 18px 20px;
  color: #fff;
}

.contact-line {
  margin: 0 0 12px 0;
  font-size: 16px;
  line-height: 1.35;
}

.contact-strong {
  font-weight: 700;
}

.contact-box a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.topbar-link {
  text-decoration: none;
  color: var(--gray-dark);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.topbar-link:hover {
  background: rgba(26, 75, 140, 0.06);
  color: var(--blue);
}

.topbar-link-mode-active {
  background: rgba(26, 75, 140, 0.14);
  color: var(--blue);
  font-weight: 700;
}

.topbar-btn {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  margin-left: 4px;
  transition: background 0.2s, transform 0.15s;
}

.topbar-btn:hover {
  background: #163d73;
  transform: translateY(-1px);
}

.topbar-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 28px;
  color: var(--gray-dark);
}

/* ── Mobile Overview (hidden on desktop) ── */

.mobile-overview {
  display: none;
}

.mobile-overview-head h1 {
  font-size: 24px;
  line-height: 1.15;
  color: var(--blue);
  margin-bottom: 8px;
}

.mobile-overview-head p {
  font-size: 13px;
  color: var(--gray-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-tool-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.mobile-tool-card {
  border: 1px solid rgba(26, 75, 140, 0.16);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(26, 75, 140, 0.08);
  opacity: 0;
  transform: translateY(10px);
  animation: mobileCardIn 0.45s ease forwards;
}

.mobile-tool-card:nth-child(1) { animation-delay: 0.05s; }
.mobile-tool-card:nth-child(2) { animation-delay: 0.1s; }
.mobile-tool-card:nth-child(3) { animation-delay: 0.15s; }
.mobile-tool-card:nth-child(4) { animation-delay: 0.2s; }
.mobile-tool-card:nth-child(5) { animation-delay: 0.25s; }

.mobile-tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.mobile-tool-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.mobile-tool-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f172a;
  background: rgba(26, 75, 140, 0.08);
  border: 1px solid rgba(26, 75, 140, 0.16);
  border-radius: 999px;
  padding: 4px 8px;
}

.mobile-tool-card p {
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 12px;
}

.mobile-tool-card-wip {
  opacity: 0.7;
  border-style: dashed;
}

.mobile-tool-wip {
  font-size: 9px;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 999px;
  padding: 2px 8px;
  letter-spacing: 0.02em;
  margin-left: auto;
}

.mobile-tool-actions {
  display: flex;
  gap: 8px;
}

.mobile-tool-actions a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 8px 10px;
}

.mobile-tool-actions a.secondary {
  background: #fff;
  color: var(--blue);
}

.mobile-tool-actions a.mobile-tool-disabled {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
}

.mobile-customer-links {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.mobile-customer-links a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #334155;
  border: 1px dashed rgba(26, 75, 140, 0.32);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.7);
}

/* ── Scene fills entire viewport ── */

.scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

.scene-rotate {
  position: absolute;
  inset: 0;
  transform: none;
  transform-origin: center center;
}

/* ── Connector lines (CSS cross) ── */

.connector {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}

.connector-cat2,
.connector-cat3,
.connector-cat4,
.connector-cat5 {
  top: 50%;
  left: 50%;
  width: 220px;
  height: 0;
  border-top: 3px dashed rgba(26, 75, 140, 0.42);
  transform-origin: left center;
}

.connector-cat2 { transform: rotate(-18deg); }
.connector-cat3 { transform: rotate(54deg); }
.connector-cat4 { transform: rotate(126deg); }
.connector-cat5 { transform: rotate(198deg); }

/* ── Center hub (button) ── */

.hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  outline: none;
  border: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.hub:hover {
  transform: translate(-50%, -50%) scale(1.08);
  filter: drop-shadow(0 0 18px rgba(26, 75, 140, 0.4));
}

.hub:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.hub.hub-active {
  filter: drop-shadow(0 0 22px rgba(26, 75, 140, 0.55));
}

.hub-logo {
  width: 120px;
  height: auto;
  display: block;
  pointer-events: none;
}

/* ── Hub side panel ── */

.hub-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(calc(-100% - 90px), -50%) scale(0.9);
  width: 320px;
  max-height: 420px;
  background: rgba(18, 32, 58, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(95, 168, 255, 0.35);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25), 0 0 24px rgba(26, 75, 140, 0.2);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hub-panel.hub-panel-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(calc(-100% - 90px), -50%) scale(1);
}

.hub-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(95, 168, 255, 0.18);
}

.hub-panel-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #5fa8ff;
  text-shadow: 0 0 10px rgba(95, 168, 255, 0.3);
}

.hub-panel-close {
  background: none;
  border: none;
  color: rgba(210, 225, 245, 0.6);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s;
}

.hub-panel-close:hover {
  color: #fff;
}

.hub-panel-body {
  flex: 1;
  padding: 20px 16px;
  overflow-y: auto;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(210, 225, 245, 0.4);
  font-size: 13px;
}

/* ── Tool nodes ── */

.node {
  position: absolute;
  z-index: 3;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: var(--blue);
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(26, 75, 140, 0.06);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.node-category {
  border-style: solid;
}

.node-tool {
  width: 71px;
  height: 71px;
  border-width: 1.5px;
}

.node-tool::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(26, 75, 140, 0.28);
  animation: nodePulse 2.8s ease-in-out infinite;
}

.node-disabled::after {
  display: none;
}

.node-tool .node-icon {
  width: 24px;
  height: 24px;
}

.node-tool-text {
  gap: 0;
}

.node-tool-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1;
}

.node-tool-longname {
  width: 82px;
  height: 82px;
}

.node-tool-longname .node-tool-name {
  font-size: 9px;
  letter-spacing: 0.03em;
  line-height: 1.25;
  padding: 0 4px;
  hyphens: auto;
}

.node:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 32px rgba(26, 75, 140, 0.2);
  transform: translate(-50%, -50%) scale(1.08);
}

.node-tool-text:hover {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 0 24px rgba(26, 75, 140, 0.35);
}

.node:hover::after {
  border-color: rgba(255, 255, 255, 0.45);
}

.node-icon {
  width: 32px;
  height: 32px;
}

.node-icon svg {
  width: 100%;
  height: 100%;
}

.node-label {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  padding: 0 6px;
}

.node-5.node-category {
  cursor: pointer;
}

/* Positions: place each node relative to viewport center */
/* Using calc(50% +/- offset) so they are always centered around the hub */

.node-2 {
  top: calc(50% - 68px);
  left: calc(50% + 209px);
}

.node-3 {
  top: calc(50% + 178px);
  left: calc(50% + 129px);
}

.node-4 {
  top: calc(50% + 178px);
  left: calc(50% - 129px);
}

.node-5 {
  top: calc(50% - 68px);
  left: calc(50% - 209px);
}

/* ── Reichmann sub-node (Kundeninstanz, Viereck) ── */

.node-reichmann {
  width: 54px;
  height: 54px;
  border-radius: 0;
  top: calc(50% + 372px);
  left: calc(50% + 270px);
  border-width: 1.5px;
  gap: 0;
  display: none;
}

.node-reichmann .node-label {
  font-size: 8px;
}

.connector-reichmann {
  top: calc(50% + 268px);
  left: calc(50% + 230px);
  width: 112px;
  height: 0;
  border-top: 3px dashed rgba(26, 75, 140, 0.42);
  transform-origin: left center;
  transform: rotate(69deg);
  display: none;
}

.node-simulation {
  width: 54px;
  height: 54px;
  border-radius: 0;
  top: calc(50% - 120px);
  left: calc(50% + 430px);
  border-width: 1.5px;
  gap: 0;
  display: none;
}

.node-simulation .node-label {
  font-size: 8px;
}

.connector-simulation {
  top: calc(50% - 44px);
  left: calc(50% + 330px);
  width: 126px;
  height: 0;
  border-top: 3px dashed rgba(26, 75, 140, 0.42);
  transform-origin: left center;
  transform: rotate(-37deg);
  display: none;
}

.connector-kpi {
  top: calc(50% + 178px);
  left: calc(50% - 129px);
  width: 140px;
  height: 0;
  border-top: 3px dashed rgba(26, 75, 140, 0.42);
  transform-origin: left center;
  transform: rotate(126deg);
}

.connector-dash {
  top: calc(50% + 178px);
  left: calc(50% - 129px);
  width: 140px;
  height: 0;
  border-top: 3px dashed rgba(26, 75, 140, 0.42);
  transform-origin: left center;
  transform: rotate(78deg);
}

.connector-wissen {
  top: calc(50% - 68px);
  left: calc(50% - 209px);
  width: 120px;
  height: 0;
  border-top: 3px dashed rgba(26, 75, 140, 0.42);
  transform-origin: left center;
  transform: rotate(198deg);
  display: none;
}

.connector-eino {
  top: calc(50% - 68px);
  left: calc(50% - 209px);
  width: 120px;
  height: 0;
  border-top: 3px dashed rgba(26, 75, 140, 0.42);
  transform-origin: left center;
  transform: rotate(198deg);
}

.connector-wot {
  top: calc(50% - 68px);
  left: calc(50% - 209px);
  width: 135px;
  height: 0;
  border-top: 3px dashed rgba(26, 75, 140, 0.42);
  transform-origin: left center;
  transform: rotate(173deg);
}

.node-kpi {
  top: calc(50% + 291px);
  left: calc(50% - 211px);
}

.node-dash {
  top: calc(50% + 315px);
  left: calc(50% - 100px);
}

.node-done {
  top: calc(50% + 323px);
  left: calc(50% + 197px);
}

.connector-done {
  top: calc(50% + 178px);
  left: calc(50% + 129px);
  width: 160px;
  height: 0;
  border-top: 3px dashed rgba(26, 75, 140, 0.42);
  transform-origin: left center;
  transform: rotate(65deg);
}

.connector-llm {
  top: calc(50% + 178px);
  left: calc(50% - 129px);
  width: 120px;
  height: 0;
  border-top: 3px dashed rgba(26, 75, 140, 0.42);
  transform-origin: left center;
  transform: rotate(198deg);
}

.node-llm {
  top: calc(50% + 141px);
  left: calc(50% - 243px);
}

.node-eino {
  top: calc(50% - 105px);
  left: calc(50% - 323px);
}

.node-wot {
  top: calc(50% - 52px);
  left: calc(50% - 343px);
}

.connector-chat {
  top: calc(50% - 68px);
  left: calc(50% - 209px);
  width: 135px;
  height: 0;
  border-top: 3px dashed rgba(26, 75, 140, 0.42);
  transform-origin: left center;
  transform: rotate(223deg);
}

.connector-fkcal {
  top: calc(50% - 68px);
  left: calc(50% + 209px);
  width: 135px;
  height: 0;
  border-top: 3px dashed rgba(26, 75, 140, 0.42);
  transform-origin: left center;
  transform: rotate(-43deg);
}

.internal-brand-card {
  display: none;
  position: absolute;
  top: calc(50% - 190px);
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 10px 18px;
  border: 1px solid rgba(26, 75, 140, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(26, 75, 140, 0.12);
}

.internal-brand-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.internal-brand-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

.connector-internal-crm {
  display: none;
  top: 50%;
  left: 50%;
  width: 152px;
  height: 0;
  border-top: 3px dashed rgba(26, 75, 140, 0.42);
  transform-origin: left center;
  transform: rotate(24deg);
}

.node-internal-crm {
  display: none;
  top: calc(50% + 65px);
  left: calc(50% + 150px);
}

.connector-internal-pmm {
  display: none;
  top: 50%;
  left: 50%;
  width: 152px;
  height: 0;
  border-top: 3px dashed rgba(26, 75, 140, 0.42);
  transform-origin: left center;
  transform: rotate(-24deg);
}

.node-internal-pmm {
  display: none;
  top: calc(50% - 65px);
  left: calc(50% + 150px);
}

.node-internal-pmm.wip .node-tool-name {
  opacity: 0.6;
}

.connector-internal-lizenz {
  display: none;
  top: 50%;
  left: 50%;
  width: 152px;
  height: 0;
  border-top: 3px dashed rgba(26, 75, 140, 0.42);
  transform-origin: left center;
  transform: rotate(156deg);
}

.node-internal-lizenz {
  display: none;
  top: calc(50% + 65px);
  left: calc(50% - 150px);
}

.node-fkcal {
  top: calc(50% - 160px);
  left: calc(50% + 308px);
}

.connector-fpt {
  top: calc(50% - 68px);
  left: calc(50% + 209px);
  width: 135px;
  height: 0;
  border-top: 3px dashed rgba(26, 75, 140, 0.42);
  transform-origin: left center;
  transform: rotate(7deg);
}

.connector-sft {
  top: calc(50% + 178px);
  left: calc(50% + 129px);
  width: 160px;
  height: 0;
  border-top: 3px dashed rgba(26, 75, 140, 0.42);
  transform-origin: left center;
  transform: rotate(5deg);
}

.node-chat {
  top: calc(50% - 160px);
  left: calc(50% - 308px);
}

.node-fpt {
  top: calc(50% - 52px);
  left: calc(50% + 343px);
}

.node-sft {
  top: calc(50% + 192px);
  left: calc(50% + 289px);
}

.connector-trak {
  top: calc(50% + 178px);
  left: calc(50% + 129px);
  width: 160px;
  height: 0;
  border-top: 3px dashed rgba(26, 75, 140, 0.42);
  transform-origin: left center;
  transform: rotate(35deg);
}

.node-trak {
  top: calc(50% + 270px);
  left: calc(50% + 260px);
}

.connector-omt {
  top: calc(50% + 178px);
  left: calc(50% + 129px);
  width: 160px;
  height: 0;
  border-top: 3px dashed rgba(26, 75, 140, 0.42);
  transform-origin: left center;
  transform: rotate(100deg);
}

.node-omt {
  top: calc(50% + 336px);
  left: calc(50% + 101px);
}

/* ── Handbuch hover-popup on CURE ── */

.node-handbuch {
  position: absolute;
  right: -6px;
  top: -6px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s, color 0.2s;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(26, 75, 140, 0.15);
}

.node-handbuch svg {
  width: 16px;
  height: 16px;
}

.node-tool:hover .node-handbuch {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.node-handbuch:hover {
  background: var(--blue);
  color: #fff;
  transform: scale(1.15);
}

/* Disabled */

.node-disabled {
  border-color: var(--gray-mid);
  color: var(--gray-mid);
  cursor: default;
  opacity: 0.45;
  pointer-events: auto;
}

.node-disabled:hover {
  background: #fff;
  color: var(--gray-mid);
  box-shadow: 0 2px 12px rgba(26, 75, 140, 0.06);
  transform: translate(-50%, -50%);
}

.node-lock {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: var(--gray-mid);
  padding: 3px 10px;
  border-radius: 10px;
  letter-spacing: 0.02em;
}

.node-tool.wip {
  border-color: #c0c8d4;
  background: #f0f2f5;
  opacity: 0.7;
}
.node-tool.wip .node-tool-name {
  color: #8694a6;
}
.node-tool.wip::after {
  content: "In Arbeit";
  position: static;
  inset: auto;
  border-radius: 0;
  border: none;
  animation: none;
  display: block;
  font-size: 7px;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.03em;
  margin-top: 1px;
}
.node-tool.wip:hover {
  opacity: 1;
}

/* ── HUD Hover Panel ── */

@keyframes hudScanline {
  0% { top: -10%; }
  100% { top: 110%; }
}

@keyframes hudGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(26,75,140,0.3), inset 0 0 15px rgba(26,75,140,0.05); }
  50% { box-shadow: 0 0 25px rgba(26,75,140,0.5), inset 0 0 25px rgba(26,75,140,0.08); }
}

@keyframes hudUnfold {
  0% {
    clip-path: circle(5% at 50% 50%);
    opacity: 0;
    filter: brightness(2.5) blur(6px);
  }
  15% {
    clip-path: circle(18% at 50% 50%);
    opacity: 1;
    filter: brightness(2) blur(3px);
  }
  35% {
    clip-path: ellipse(50% 25% at 50% 50%);
    filter: brightness(1.5) blur(1px);
  }
  55% {
    clip-path: ellipse(52% 48% at 50% 50%);
    filter: brightness(1.15) blur(0);
  }
  75% {
    clip-path: inset(1% round 4px);
    transform: translate(-50%, -50%) scale(1.02);
  }
  100% {
    clip-path: inset(0% round 4px);
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1) blur(0);
  }
}

@keyframes hudContentReveal {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes hudBorderTrace {
  0% { stroke-dashoffset: 800; }
  100% { stroke-dashoffset: 0; }
}

.tool-hover-menu {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 240px;
  background: rgba(18, 32, 58, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(95, 168, 255, 0.4);
  border-radius: 4px;
  padding: 18px 16px 14px;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  overflow: hidden;
  clip-path: circle(0% at 50% 50%);
}

.tool-hover-menu::before {
  content: "";
  position: absolute;
  left: 0;
  top: -10%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(95,168,255,0.7), transparent);
  opacity: 0;
}

.tool-hover-menu::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(95, 168, 255, 0.15);
  border-radius: 2px;
  pointer-events: none;
}

.tool-hover-menu.hud-active {
  opacity: 1;
  pointer-events: auto;
  animation: hudUnfold 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             hudGlow 2.5s ease-in-out 0.5s infinite;
}

.tool-hover-menu.hud-active::before {
  opacity: 1;
  animation: hudScanline 1.8s linear 0.4s infinite;
}

.tool-hover-menu.hud-active .tool-hover-title {
  animation: hudContentReveal 0.25s ease 0.2s both;
}

.tool-hover-menu.hud-active .tool-hover-desc {
  animation: hudContentReveal 0.25s ease 0.28s both;
}

.tool-hover-menu.hud-active .tool-hover-actions {
  animation: hudContentReveal 0.25s ease 0.35s both;
}

.tool-hover-title,
.tool-hover-desc,
.tool-hover-actions {
  opacity: 0;
}

.tool-hover-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #5fa8ff;
  margin-bottom: 2px;
  text-shadow: 0 0 12px rgba(95,168,255,0.4);
}

.tool-hover-title::before {
  content: "// ";
  color: rgba(95,168,255,0.35);
  font-size: 12px;
}

.tool-hover-desc {
  font-size: 12px;
  color: rgba(210, 225, 245, 0.9);
  line-height: 1.4;
  margin-bottom: 14px;
  padding-left: 2px;
  border-left: 2px solid rgba(26,75,140,0.35);
  padding-left: 8px;
}

.tool-hover-actions {
  display: flex;
  gap: 6px;
}

.tool-hover-bubble {
  flex: 1;
  text-align: center;
  padding: 9px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1.5px solid #5fa8ff;
  background: rgba(95, 168, 255, 0.12);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  text-shadow: 0 0 6px rgba(95,168,255,0.3);
}

.tool-hover-bubble:hover {
  background: rgba(95,168,255,0.3);
  border-color: #8fc7ff;
  box-shadow: 0 0 18px rgba(95,168,255,0.4);
  transform: translateY(-1px);
}

.tool-hover-bubble-secondary {
  background: #5fa8ff;
  color: #fff;
  border-color: #5fa8ff;
  text-shadow: none;
}

.tool-hover-bubble-secondary:hover {
  background: #8fc7ff;
  border-color: #8fc7ff;
  box-shadow: 0 0 20px rgba(95,168,255,0.5);
}

.tool-hover-bubble-disabled,
.tool-hover-bubble-disabled:hover {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(148, 163, 184, 0.18);
}

.node-tool:hover {
  z-index: 25;
}

/* ── Revolver hover effect ── */

@keyframes toolBounce {
  0%   { transform: translate(-50%, -50%) scale(1); }
  40%  { transform: translate(-50%, -50%) scale(1.18); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes connectorPulse {
  0%   { opacity: 0.85; }
  40%  { opacity: 1; }
  100% { opacity: 0.85; }
}

@keyframes revolverOut {
  0% {
    transform: translate(calc(-50% + var(--rdx)), calc(-50% + var(--rdy))) scale(0) rotate(-360deg);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes connectorRevealIn {
  0%   { opacity: 0; }
  100% { opacity: 0.85; }
}

/* ── Sidebar mode ── */

.sidebar-main {
  position: absolute;
  top: 56px;
  left: 0;
  width: 62%;
  bottom: 0;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 24px 20px;
}

.scene.sidebar-mode .sidebar-main {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* ── Dashboard Concept 2: Clean Corporate ── */

.dash-container {
  width: 100%;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}

.scene.sidebar-mode .dash-container {
  opacity: 1;
  transform: translateY(0);
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-header > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-dark);
}

.dash-title-name {
  color: var(--blue);
}

.dash-date {
  font-size: 12px;
  color: var(--gray-mid);
  font-weight: 500;
}

.dash-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--gold);
  padding: 4px 12px;
  border-radius: 20px;
}

.dash-stats-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: #f3f5f8;
  border: 1px solid rgba(26, 75, 140, 0.12);
  border-radius: 12px;
  padding: 14px 0;
  box-shadow: 0 2px 12px rgba(26, 75, 140, 0.06);
}

.dash-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.dash-stat-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
}

.dash-stat-lbl {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-mid);
  letter-spacing: 0.02em;
}

.dash-stat-div {
  width: 1px;
  height: 32px;
  background: rgba(26, 75, 140, 0.1);
}

.dash-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
}

.dash-col-main, .dash-col-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-card {
  background: #f3f5f8;
  border: 1px solid rgba(26, 75, 140, 0.12);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(26, 75, 140, 0.07);
}

.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dash-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-dark);
}

.dash-card-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
  background: rgba(26, 75, 140, 0.08);
  border: 1px solid rgba(26, 75, 140, 0.14);
  padding: 3px 8px;
  border-radius: 20px;
}

.dash-card-count {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--blue);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-meter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  margin-bottom: 10px;
}

.dash-meter:last-of-type {
  margin-bottom: 12px;
}

.dash-meter-lbl {
  font-size: 12px;
  color: #475569;
  grid-column: 1 / -1;
}

.dash-meter-bar {
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  overflow: hidden;
}

.dash-meter-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--blue);
}

.dash-fill-green { background: #22c55e; }
.dash-fill-amber { background: #f59e0b; }

.dash-meter-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-dark);
  min-width: 32px;
  text-align: right;
}

.dash-kv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  color: #475569;
}

.dash-kv-row strong { color: var(--gray-dark); }
.dash-warn { color: #dc2626; }

.dash-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.dash-alert:last-child { margin-bottom: 0; }

.dash-alert-icon {
  flex-shrink: 0;
  font-size: 12px;
  margin-top: 1px;
}

.dash-alert-warn {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.dash-alert-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.dash-alert-ok {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.dash-tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.dash-tool-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(26, 75, 140, 0.12);
  background: #ebeef3;
}

.dash-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash-chip-green { background: #22c55e; }
.dash-chip-amber { background: #f59e0b; }

.dash-chip-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.04em;
}

.dash-chip-val {
  font-size: 10px;
  color: var(--gray-mid);
  margin-left: auto;
}

.dash-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dash-tl-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.dash-tl-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dash-tl-time {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-mid);
  min-width: 34px;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}

.dash-tl-body {
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
}

.dash-tl-body strong {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ── DAX / Börsen-Ticker ── */

.dash-ticker {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f3f5f8;
  border: 1px solid rgba(26, 75, 140, 0.10);
  border-radius: 12px;
  padding: 10px 16px;
  margin-top: 2px;
}

.dash-ticker-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gray-mid);
  text-transform: uppercase;
  flex-shrink: 0;
}

.dash-ticker-items {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.dash-ticker-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.dash-ticker-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-dark);
  letter-spacing: 0.02em;
}

.dash-ticker-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-dark);
  font-variant-numeric: tabular-nums;
}

.dash-ticker-chg {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

.dash-ticker-up {
  color: #16a34a;
  background: #f0fdf4;
}

.dash-ticker-down {
  color: #dc2626;
  background: #fef2f2;
}

/* ── Camera Feeds ── */

.cam-feeds {
  position: fixed;
  top: 140px;
  left: 59%;
  width: 230px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transform: translateX(40px);
  transition: opacity 0.5s ease 0.2s, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.scene.sidebar-mode .cam-feeds {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.cam-feed {
  background: #f3f5f8;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(26, 75, 140, 0.12);
  box-shadow: 0 2px 10px rgba(26, 75, 140, 0.07);
}

.cam-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
}

.cam-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cam-dot-live {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
  animation: camPulse 2s ease infinite;
}

@keyframes camPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.cam-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-dark);
  letter-spacing: 0.02em;
}

.cam-badge {
  margin-left: auto;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.10);
  padding: 2px 6px;
  border-radius: 4px;
}

.cam-viewport {
  aspect-ratio: 16 / 9;
  background: #1e293b;
  overflow: hidden;
  margin: 0 6px 6px;
  border-radius: 8px;
  position: relative;
}

.cam-viewport img,
.cam-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cam-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.04) 2px,
    rgba(0, 0, 0, 0.04) 4px
  );
}

.scene.sidebar-ready .node {
  transition: all 0.3s ease,
              top 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              left 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.scene.sidebar-ready .hub {
  transition: all 0.25s ease,
              top 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              left 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.scene.sidebar-ready .hub-logo {
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.scene.sidebar-mode .connector {
  opacity: 0 !important;
  animation: none !important;
}

.scene.sidebar-mode .hub {
  top: 12%;
  left: calc(100% - 100px);
  width: 56px;
  height: 56px;
}

.scene.sidebar-mode .hub-logo {
  width: 56px;
}

.scene.sidebar-mode .node-category {
  left: calc(100% - 100px);
  width: 76px;
  height: 76px;
}

.scene.sidebar-mode .node-category .node-icon {
  width: 24px;
  height: 24px;
}

.scene.sidebar-mode .node-category .node-label {
  font-size: 9px;
}

.scene.sidebar-mode .node-2 { top: 30%; }
.scene.sidebar-mode .node-3 { top: 46%; }
.scene.sidebar-mode .node-4 { top: 62%; }
.scene.sidebar-mode .node-5 { top: 78%; }

.scene.sidebar-mode .node-tool {
  width: 52px;
  height: 52px;
}

.scene.sidebar-mode .node-tool .node-tool-name {
  font-size: 11px;
}

.scene.sidebar-mode .node-tool.wip::after {
  font-size: 5px;
}

.scene.sidebar-mode .node-fkcal { top: 37%; left: calc(100% - 200px); }
.scene.sidebar-mode .node-fpt   { top: 37%; left: calc(100% - 280px); }

.scene.sidebar-mode .node-sft   { top: 50%; left: calc(100% - 200px); }
.scene.sidebar-mode .node-trak  { top: 50%; left: calc(100% - 280px); }
.scene.sidebar-mode .node-done  { top: 50%; left: calc(100% - 360px); }
.scene.sidebar-mode .node-omt   { top: 50%; left: calc(100% - 440px); }

.scene.sidebar-mode .node-kpi   { top: 64%; left: calc(100% - 200px); }
.scene.sidebar-mode .node-dash  { top: 64%; left: calc(100% - 280px); }

.scene.sidebar-mode .node-chat  { top: 78%; left: calc(100% - 200px); }
.scene.sidebar-mode .node-wot   { top: 78%; left: calc(100% - 280px); }

/* ── Wissen focus mode (desktop only) ── */
.scene.wissen-focus .node,
.scene.wissen-focus .connector {
  transition: opacity 0.35s ease, transform 0.35s ease, top 0.45s ease, left 0.45s ease;
}

/* Smoother choreography for the 4-tool Wissen cluster */
.scene.wissen-focus .node-chat,
.scene.wissen-focus .node-wot,
.scene.wissen-focus .node-sft,
.scene.wissen-focus .node-dash,
.scene.wissen-focus .connector-chat,
.scene.wissen-focus .connector-wot,
.scene.wissen-focus .connector-sft,
.scene.wissen-focus .connector-dash {
  transition:
    top 0.72s cubic-bezier(0.22, 0.78, 0.2, 1),
    left 0.72s cubic-bezier(0.22, 0.78, 0.2, 1),
    transform 0.52s cubic-bezier(0.22, 0.78, 0.2, 1),
    opacity 0.4s ease;
}

.scene.wissen-focus .node-2,
.scene.wissen-focus .node-4,
.scene.wissen-focus .node-fpt,
.scene.wissen-focus .node-fkcal,
.scene.wissen-focus .node-kpi,
.scene.wissen-focus .connector-fpt,
.scene.wissen-focus .connector-fkcal,
.scene.wissen-focus .connector-kpi {
  opacity: 0 !important;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.75);
}

.scene.wissen-focus .connector-cat2,
.scene.wissen-focus .connector-cat4 {
  opacity: 0 !important;
}

/* Step 1: move CURE close to Wissen */
.scene.wissen-focus .node-sft {
  top: calc(50% - 106px);
  left: calc(50% - 262px);
  z-index: 6;
}

.scene.wissen-focus .connector-sft {
  opacity: 0 !important;
}

.scene.wissen-focus .connector-chat,
.scene.wissen-focus .connector-wot,
.scene.wissen-focus .connector-dash {
  opacity: 0 !important;
}

/* Step 2: hide Operativ family (except moved CURE) */
.scene.wissen-focus-final .node-3,
.scene.wissen-focus-final .node-trak,
.scene.wissen-focus-final .node-done,
.scene.wissen-focus-final .node-omt,
.scene.wissen-focus-final .connector-trak,
.scene.wissen-focus-final .connector-done,
.scene.wissen-focus-final .connector-omt,
.scene.wissen-focus-final .connector-cat3 {
  opacity: 0 !important;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.75);
}

/* Final layout: ALLY above, WISE/CURE/DASH below Wissen */
.scene.wissen-focus-final .node-chat {
  top: calc(50% - 206px);
  left: calc(50% - 209px);
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0.02s;
}

.scene.wissen-focus-final .node-wot,
.scene.wissen-focus-final .node-sft,
.scene.wissen-focus-final .node-dash {
  top: calc(50% + 42px);
  transform: translate(-50%, -50%) scale(1);
}

.scene.wissen-focus-final .node-wot  { left: calc(50% - 289px); }
.scene.wissen-focus-final .node-sft  { left: calc(50% - 209px); }
.scene.wissen-focus-final .node-dash { left: calc(50% - 129px); }

.scene.wissen-focus-final .node-wot  { transition-delay: 0.1s; }
.scene.wissen-focus-final .node-sft  { transition-delay: 0.15s; }
.scene.wissen-focus-final .node-dash { transition-delay: 0.2s; }

/* Focus connectors (same dashed style as main map) */
.scene.wissen-focus-final .connector-chat,
.scene.wissen-focus-final .connector-wot,
.scene.wissen-focus-final .connector-sft,
.scene.wissen-focus-final .connector-dash {
  opacity: 0.85 !important;
  border-top: 3px dashed rgba(26, 75, 140, 0.42);
  border-left: 0;
  height: 0;
  z-index: 2;
}

/* Wissen -> ALLY (vertical up) */
.scene.wissen-focus-final .connector-chat {
  top: calc(50% - 68px);
  left: calc(50% - 209px);
  width: 138px;
  transform-origin: left center;
  transform: rotate(-90deg);
  transition-delay: 0.06s;
}

/* Wissen -> WISE (down-left) */
.scene.wissen-focus-final .connector-wot {
  top: calc(50% - 68px);
  left: calc(50% - 209px);
  width: 136px;
  transform-origin: left center;
  transform: rotate(126deg);
  transition-delay: 0.14s;
}

/* Wissen -> CURE (vertical down) */
.scene.wissen-focus-final .connector-sft {
  top: calc(50% - 68px);
  left: calc(50% - 209px);
  width: 110px;
  transform-origin: left center;
  transform: rotate(90deg);
  transition-delay: 0.19s;
}

/* Wissen -> DASH (down-right) */
.scene.wissen-focus-final .connector-dash {
  top: calc(50% - 68px);
  left: calc(50% - 209px);
  width: 136px;
  transform-origin: left center;
  transform: rotate(54deg);
  transition-delay: 0.24s;
}

body.internal-mode .sidebar-main,
body.internal-mode .cam-feeds,
body.internal-mode .cta-bubble {
  display: none !important;
}

body.internal-mode .node,
body.internal-mode .connector {
  display: none !important;
}

body.internal-mode .hub {
  animation: none;
}

body.internal-mode .internal-brand-card,
body.internal-mode .connector-internal-crm,
body.internal-mode .node-internal-crm,
body.internal-mode .connector-internal-pmm,
body.internal-mode .node-internal-pmm,
body.internal-mode .connector-internal-lizenz,
body.internal-mode .node-internal-lizenz {
  display: flex !important;
  opacity: 1 !important;
}

body.internal-mode .connector-internal-crm,
body.internal-mode .connector-internal-pmm,
body.internal-mode .connector-internal-lizenz {
  display: block !important;
}

/* ── Footer ── */

.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 12px;
  font-size: 11px;
  color: var(--gray-mid);
  z-index: 5;
}

/* ── Animations ── */

@keyframes keywordFloat {
  0% {
    transform: translateY(0) translateX(0) rotate(-2deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  55% { transform: translateY(-54vh) translateX(20px) rotate(3deg); }
  100% {
    transform: translateY(-118vh) translateX(-18px) rotate(-3deg);
    opacity: 0;
  }
}

@keyframes lineFlow {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.42; }
}

@keyframes nodePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.09);
    opacity: 0.08;
  }
}

@keyframes mobileCardIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hub: spin in from nothing */
@keyframes hubEntry {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(-180deg);
    filter: blur(12px);
  }
  60% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15) rotate(15deg);
    filter: blur(0);
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

/* Category nodes: fly in from far out with rotation */
@keyframes catEntry {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(-120deg);
    filter: blur(8px);
  }
  50% {
    opacity: 1;
    filter: blur(0);
  }
  75% {
    transform: translate(-50%, -50%) scale(1.08) rotate(8deg);
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

/* Tool nodes: burst out from center with glow */
@keyframes toolEntry {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(90deg);
    filter: blur(6px);
    box-shadow: 0 0 0 rgba(26, 75, 140, 0);
  }
  40% {
    opacity: 1;
    filter: blur(0);
  }
  70% {
    transform: translate(-50%, -50%) scale(1.12) rotate(-5deg);
    box-shadow: 0 0 30px rgba(26, 75, 140, 0.35);
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    box-shadow: 0 2px 12px rgba(26, 75, 140, 0.06);
  }
}

/* Connectors: draw in with glow */
@keyframes connectorDraw {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  60% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
  80% {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(26, 75, 140, 0.4));
  }
  100% {
    opacity: 0.85;
    filter: none;
  }
}

.hub {
  animation: hubEntry 0.68s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.connector {
  animation: connectorDraw 0.45s ease both, lineFlow 5.6s linear 1.2s infinite;
}
.connector-cat2 { animation-delay: 0.41s, 1.61s; }
.connector-cat3 { animation-delay: 0.45s, 1.65s; }
.connector-cat4 { animation-delay: 0.49s, 1.69s; }
.connector-cat5 { animation-delay: 0.53s, 1.73s; }

.node-2 { animation: catEntry 0.53s cubic-bezier(0.16, 1, 0.3, 1) 0.53s both; }
.node-3 { animation: catEntry 0.53s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both; }
.node-4 { animation: catEntry 0.53s cubic-bezier(0.16, 1, 0.3, 1) 0.68s both; }
.node-5 { animation: catEntry 0.53s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both; }

.connector-chat  { animation-delay: 0.86s, 2.06s; }
.connector-wot   { animation-delay: 0.89s, 2.09s; }
.connector-fpt   { animation-delay: 0.9s, 2.1s; }
.connector-sft   { animation-delay: 0.94s, 2.14s; }
.connector-trak  { animation-delay: 0.96s, 2.16s; }
.connector-omt   { animation-delay: 1.0s, 2.2s; }
.connector-kpi   { animation-delay: 1.03s, 2.23s; }
.connector-dash  { animation-delay: 1.07s, 2.27s; }
.connector-done  { animation-delay: 0.98s, 2.18s; }
.connector-fkcal { animation-delay: 0.92s, 2.12s; }

.node-chat       { animation: toolEntry 0.49s cubic-bezier(0.16, 1, 0.3, 1) 0.98s both; }
.node-wot        { animation: toolEntry 0.49s cubic-bezier(0.16, 1, 0.3, 1) 1.03s both; }
.node-fpt        { animation: toolEntry 0.49s cubic-bezier(0.16, 1, 0.3, 1) 1.05s both; }
.node-fkcal      { animation: toolEntry 0.49s cubic-bezier(0.16, 1, 0.3, 1) 1.09s both; }
.node-sft        { animation: toolEntry 0.49s cubic-bezier(0.16, 1, 0.3, 1) 1.13s both; }
.node-trak       { animation: toolEntry 0.49s cubic-bezier(0.16, 1, 0.3, 1) 1.17s both; }
.node-omt        { animation: toolEntry 0.49s cubic-bezier(0.16, 1, 0.3, 1) 1.24s both; }
.node-kpi        { animation: toolEntry 0.49s cubic-bezier(0.16, 1, 0.3, 1) 1.28s both; }
.node-dash       { animation: toolEntry 0.49s cubic-bezier(0.16, 1, 0.3, 1) 1.31s both; }
.node-done       { animation: toolEntry 0.49s cubic-bezier(0.16, 1, 0.3, 1) 1.24s both; }
.node-reichmann  { animation: toolEntry 0.49s cubic-bezier(0.16, 1, 0.3, 1) 1.39s both; }
.node-simulation { animation: toolEntry 0.49s cubic-bezier(0.16, 1, 0.3, 1) 1.39s both; }

/* ── CTA Bubble ── */

.cta-bubble {
  position: fixed;
  bottom: 48px;
  left: 32px;
  z-index: 50;
  max-width: 340px;
  background: #fff;
  border: 1px solid rgba(26, 75, 140, 0.12);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 8px 32px rgba(26, 75, 140, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cta-bubble.cta-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cta-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 28px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-right: 1px solid rgba(26, 75, 140, 0.12);
  border-bottom: 1px solid rgba(26, 75, 140, 0.12);
  transform: rotate(45deg);
}

.cta-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--gray-mid);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.15s;
}

.cta-close:hover {
  color: var(--gray-dark);
}

.cta-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-dark);
  margin-bottom: 12px;
}

.cta-text strong {
  font-size: 16px;
  color: var(--blue);
}

.cta-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.cta-link:hover {
  background: #163d73;
  transform: translateY(-1px);
}

/* ── Responsive ── */

@media (max-width: 900px) {
  body {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .topbar {
    position: sticky;
    padding: 0 14px;
    height: 76px;
    z-index: 50;
  }
  .topbar-logo { height: 56px; max-width: min(100%, 280px); }
  .topbar-menu { display: none; }
  .topbar-burger { display: block; }
  .topbar-dropdown { display: none; }
  .topbar-slogan { display: none; }

  .mobile-overview {
    display: block;
    position: relative;
    z-index: 2;
    padding: 14px 12px 34px;
  }

  .scene {
    display: none;
  }

  .footer {
    position: static;
    padding: 12px 8px 18px;
  }
}

/* ── Mobile Slide Menu ── */
.mobile-slide-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 90;
}
.mobile-slide-overlay.open { display: block; }

.mobile-slide-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: #fff;
  z-index: 100;
  transform: translateX(100%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
}
.mobile-slide-menu.open { transform: translateX(0); }

.mobile-slide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #e2e8f0;
}
.mobile-slide-title {
  font-weight: 600;
  font-size: 15px;
  color: #1e293b;
}
.mobile-slide-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.mobile-slide-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.mobile-slide-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  background: none;
  border: none;
  cursor: pointer;
  transition: background .12s;
  text-decoration: none;
}
.mobile-slide-link:hover { background: #f1f5f9; color: #1a5276; }

.mobile-slide-sub {
  padding: 0 18px 8px 28px;
}
.mobile-slide-sub-empty {
  font-size: 12px;
  color: #94a3b8;
}
.mobile-slide-contact {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}
.mobile-slide-contact a {
  color: #1a5276;
  text-decoration: none;
}
.mobile-slide-contact p { margin: 4px 0; }

.mobile-slide-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid #e2e8f0;
}

@media (min-width: 901px) {
  .mobile-slide-overlay,
  .mobile-slide-menu { display: none !important; }
}

@media (max-width: 600px) {

  .hub-logo { width: 80px; }

  .node {
    width: 90px;
    height: 90px;
  }

  .node-icon { width: 24px; height: 24px; }
  .node-label { font-size: 9px; }
  .node-lock { font-size: 8px; bottom: -22px; padding: 2px 8px; }
  .node-tool.wip::after { font-size: 6px; }

  .node-2 { top: calc(50% - 46px); left: calc(50% + 143px); }
  .node-3 { top: calc(50% + 121px); left: calc(50% + 88px); }
  .node-4 { top: calc(50% + 121px); left: calc(50% - 88px); }
  .node-5 { top: calc(50% - 46px); left: calc(50% - 143px); }
  .node-chat { top: calc(50% - 112px); left: calc(50% - 210px); width: 55px; height: 55px; }
  .node-fkcal { top: calc(50% - 112px); left: calc(50% + 210px); width: 55px; height: 55px; }
  .node-fpt { top: calc(50% - 36px); left: calc(50% + 234px); width: 55px; height: 55px; }
  .node-sft { top: calc(50% + 135px); left: calc(50% + 195px); width: 55px; height: 55px; }
  .node-trak { top: calc(50% + 190px); left: calc(50% + 170px); width: 55px; height: 55px; }
  .node-omt { top: calc(50% + 240px); left: calc(50% + 68px); width: 55px; height: 55px; }
  .node-reichmann { top: calc(50% + 271px); left: calc(50% + 197px); width: 42px; height: 42px; border-radius: 0; }
  .node-reichmann .node-label { font-size: 7px; }
  .node-simulation { top: calc(50% - 60px); left: calc(50% + 310px); width: 42px; height: 42px; border-radius: 0; }
  .node-simulation .node-label { font-size: 7px; }
  .node-kpi { top: calc(50% + 213px); left: calc(50% - 122px); width: 55px; height: 55px; }
  .node-dash { top: calc(50% + 217px); left: calc(50% - 68px); width: 55px; height: 55px; }
  .node-done { top: calc(50% + 225px); left: calc(50% + 130px); width: 55px; height: 55px; }
  .node-llm { top: calc(50% + 103px); left: calc(50% - 143px); width: 55px; height: 55px; }
  .node-eino { top: calc(50% - 72px); left: calc(50% - 224px); width: 55px; height: 55px; }
  .node-wot { top: calc(50% - 36px); left: calc(50% - 234px); width: 55px; height: 55px; }

  .connector { display: none; }
  .ambient-keyword { opacity: 0.5; font-size: 15px !important; }
  .node-handbuch { width: 28px; height: 28px; right: -4px; top: -4px; }
  .node-handbuch svg { width: 13px; height: 13px; }

  .cta-bubble {
    left: 16px;
    right: auto;
    bottom: 40px;
    max-width: none;
  }
}

/* ── Auth badge & button ── */

.auth-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  margin-right: 8px;
}

.auth-badge-demo {
  background: #FDB913;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.auth-badge-admin {
  background: rgba(26, 75, 140, 0.12);
  color: var(--blue);
}

.topbar-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ── Login / Passwort-Modal ── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.modal-box {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 100%;
  padding: 24px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--gray-mid);
  cursor: pointer;
  padding: 0 4px;
}

.modal-close:hover {
  color: var(--gray-dark);
}

.form-error {
  color: #b91c1c;
  font-size: 13px;
  margin-bottom: 12px;
}

.form-hint {
  font-size: 13px;
  color: var(--gray-mid);
  margin-bottom: 16px;
}

.modal-box label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-dark);
  margin-bottom: 4px;
}

.modal-box input[type="text"],
.modal-box input[type="password"],
.modal-box input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 14px;
  box-sizing: border-box;
}

.modal-box button[type="submit"] {
  width: 100%;
  margin-top: 8px;
}

.onboarding-cancel-btn {
  width: 100%;
  margin-top: 10px;
}

/* ── Admin Panel ── */

.admin-modal-box {
  max-width: 620px;
  max-height: 85vh;
  overflow-y: auto;
}

.admin-user-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.admin-loading {
  font-size: 13px;
  color: var(--gray-mid);
  padding: 16px 0;
  text-align: center;
}

.admin-user-card {
  border: 1px solid rgba(26, 75, 140, 0.12);
  border-radius: 10px;
  padding: 14px 16px;
  background: #fafbfc;
}

.admin-user-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-user-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-dark);
}

.admin-user-role {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}

.admin-role-admin {
  background: rgba(26, 75, 140, 0.1);
  color: var(--blue);
}

.admin-role-user {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
}

.admin-pw-hint {
  font-size: 10px;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fbbf24;
  padding: 2px 8px;
  border-radius: 999px;
}

.admin-user-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-user-email {
  font-size: 12px;
  color: var(--gray-mid);
}

.admin-user-tools {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.admin-tool-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(26, 75, 140, 0.08);
  color: var(--blue);
  border: 1px solid rgba(26, 75, 140, 0.14);
}

.admin-edit-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: transparent;
  border: 1px solid var(--blue);
  border-radius: 6px;
  padding: 5px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.admin-edit-btn:hover {
  background: var(--blue);
  color: #fff;
}

.admin-section-divider {
  height: 1px;
  background: rgba(26, 75, 140, 0.1);
  margin: 18px 0;
}

.admin-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 14px;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 2px;
}

.admin-form-field {
  margin-bottom: 12px;
}

.admin-form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 4px;
}

.admin-form-field input,
.admin-form-field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
}

.admin-form-field select {
  background: #fff;
  cursor: pointer;
}

.admin-tools-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.admin-tool-check {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-dark);
  cursor: pointer;
  user-select: none;
}

.admin-tool-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}

.admin-create-btn {
  margin-top: 6px;
}

.form-success {
  color: #15803d;
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.45;
}

.admin-temp-pw {
  display: inline-block;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 4px;
  padding: 2px 8px;
  font-family: monospace;
  font-size: 14px;
  color: #166534;
  letter-spacing: 0.06em;
  user-select: all;
}

.admin-danger-zone {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-btn-outline {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: transparent;
  border: 1px solid var(--blue);
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.admin-btn-outline:hover {
  background: var(--blue);
  color: #fff;
}

.admin-btn-danger {
  font-size: 12px;
  font-weight: 600;
  color: #b91c1c;
  background: transparent;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.admin-btn-danger:hover {
  background: #b91c1c;
  color: #fff;
}

@media (max-width: 600px) {
  .admin-modal-box {
    max-width: 100%;
    max-height: 90vh;
  }
  .admin-form-row {
    grid-template-columns: 1fr;
  }
  .admin-danger-zone {
    flex-direction: column;
  }
}

/* Mobile-Hardening: kein horizontaler Scroll, mehr App-Feeling */
@media (max-width: 900px) {
  .topbar,
  .mobile-slide-menu,
  .mobile-overview,
  .scene-wrap,
  .tool-strip {
    max-width: 100vw;
  }
  .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }
  .topbar-btn,
  .mobile-slide-link {
    min-height: 44px;
  }
  .mobile-overview,
  .mobile-overview * {
    min-width: 0;
  }
  .mobile-overview {
    overflow-x: hidden;
  }
  .mobile-tool-actions {
    flex-wrap: wrap;
  }
  .mobile-tool-actions a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-slide-sub,
  .mobile-slide-contact {
    overflow-wrap: anywhere;
  }
}
