/* ==========================================================================
   cigus Hero – Stylesheet
   Statische Gestaltung. Alles, was von Geometrie/Zustand abhängt
   (Positionen, Größen, aktive Zustände), setzt cigus-hero.js inline.
   Alle Klassen sind mit .cgh- präfixiert, um Konflikte im CMS zu vermeiden.
   ========================================================================== */

.cgh, .cgh * { box-sizing: border-box; }
.cgh {
  --cgh-orange: #f59c2b;
  --cgh-orange-hover: #ffae45;
  position: relative;
  width: 100%;
  color: #fff;
  font-family: Calibri, 'Lato', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.cgh a { color: var(--cgh-orange); }
.cgh a:hover { color: #ffb257; }
.cgh button { font-family: inherit; }
.cgh :focus-visible { outline: 2px solid var(--cgh-orange); outline-offset: 3px; }

/* Desktop-Bühne (≥ 1024 px) */
.cgh--desk {
  height: 100vh; min-height: 680px; overflow: hidden;
  background: radial-gradient(125% 105% at 62% 50%, #0d0b08 0%, #090807 40%, #060605 72%, #030302 100%);
  perspective: 1800px; perspective-origin: 62% 50%;
}
/* Mobile/Tablet-Fluss (< 1024 px) */
.cgh--flow {
  min-height: 100svh; overflow-x: hidden;
  background: radial-gradient(140% 70% at 50% 58%, #0d0b08 0%, #090807 42%, #050504 100%);
}

.cgh-fill { position: absolute; inset: 0; }
.cgh-abs0 { position: absolute; left: 0; top: 0; width: 0; height: 0; }

/* ---------- Desktop: Hintergrund ---------- */
.cgh-glow {
  position: absolute; left: 62%; top: 46%;
  width: min(76vw, 1080px); height: min(76vw, 1080px);
  transform: translate(-50%, -50%); z-index: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(245,156,43,0.10) 0%, rgba(245,156,43,0.03) 46%, transparent 72%);
}
.cgh-ring {
  position: absolute; left: 62%; top: 46%;
  width: min(64vw, 920px); height: min(64vw, 920px);
  transform: translate(-50%, -50%); z-index: 2; pointer-events: none; will-change: transform;
}
.cgh-ring svg, .cgh-mring svg { width: 100%; height: 100%; overflow: visible; }
.cgh-spin    { animation: cgh-spin 180s linear infinite; transform-origin: 0 0; }
.cgh-spinrev { animation: cgh-spinRev 240s linear infinite; transform-origin: 0 0; }
.cgh-dim { position: absolute; inset: 0; z-index: 6; pointer-events: none; background: #050403; opacity: 0; transition: opacity .4s ease; }
.cgh-tilt { position: absolute; left: 62%; top: 46%; width: 0; height: 0; z-index: 8; will-change: transform; }

/* Systembild */
.cgh-img {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  object-fit: contain; user-select: none; pointer-events: none;
  -webkit-user-drag: none;
}
.cgh-reflect {
  top: 100%; transform: scaleY(-1); opacity: .12;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 34%);
          mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 34%);
}

/* Lichtakzente / Bauteil-Highlight */
.cgh-pt { position: absolute; width: 0; height: 0; pointer-events: none; }
.cgh-pt-ring {
  position: absolute; left: 50%; top: 50%; border-radius: 50%;
  width: 14px; height: 14px; border: 1.5px solid var(--cgh-orange);
  animation: cgh-accRing 2.2s ease-out infinite;
}
.cgh-acc-ring {
  position: absolute; left: 50%; top: 50%; border-radius: 50%;
  width: 12px; height: 12px; border: 1px solid rgba(245,156,43,0.75);
  animation: cgh-accRing 3.2s ease-out infinite;
}
.cgh-acc-dot, .cgh-pt-dot {
  position: absolute; left: -2.5px; top: -2.5px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--cgh-orange); box-shadow: 0 0 8px rgba(245,156,43,0.9);
}
.cgh-acc-dot { animation: cgh-accBlink 2.4s ease-in-out infinite; }
.cgh-pt-dot  { left: -3px; top: -3px; width: 6px; height: 6px; box-shadow: 0 0 10px rgba(245,156,43,1); }

/* Thumbnails (Systemauswahl im äußeren Orbit) */
.cgh-thumb { position: absolute; left: 0; top: 0; padding: 0; border: none; background: none; cursor: pointer; }
.cgh-thumb img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; display: block; }

/* Kompetenz-Hotspots */
.cgh-node { position: absolute; width: 0; height: 0; }
.cgh-node-btn { position: absolute; left: 0; top: 0; width: 52px; height: 52px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cgh-node-pulse { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(245,156,43,0.45); pointer-events: none; }
.cgh-node-label {
  position: absolute; font-size: 12.5px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase;
  line-height: 1.35; pointer-events: none; text-shadow: 0 1px 10px rgba(0,0,0,0.95); color: var(--cgh-orange);
  transition: color .25s, opacity .25s;
}

/* Detailkarte (Desktop + Mobile) */
.cgh-card {
  position: absolute; width: 304px; padding: 20px 20px 18px; z-index: 30;
  background: rgba(13,11,8,0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(245,156,43,0.32); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.65);
  animation: cgh-cardIn .26s cubic-bezier(.2,.7,.2,1) both;
}
.cgh-card-close {
  position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18); background: transparent; color: rgba(255,255,255,0.7);
  cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
.cgh-card-comp { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cgh-orange); line-height: 1.3; padding-right: 34px; }
.cgh-card-eg { margin-top: 14px; font-size: 11px; letter-spacing: .02em; color: rgba(255,255,255,0.45); line-height: 1.2; }
.cgh-card-topic { margin-top: 3px; font-size: 16px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; line-height: 1.2; }
.cgh-card-list { margin: 12px 0 16px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; }
.cgh-card-list li { display: flex; gap: 10px; align-items: center; font-size: 13.5px; line-height: 1.4; color: rgba(255,255,255,0.86); }
.cgh-card-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--cgh-orange); flex: 0 0 auto; }
.cgh-card-cta { display: inline-block; font-size: 12.5px; font-weight: 700; line-height: 1.4; color: var(--cgh-orange); text-decoration: none; }

/* Mobile-Variante der Karte (im Dokumentfluss) */
.cgh-card--m { position: relative; width: auto; margin-top: 16px; padding: 20px; border-radius: 13px; background: rgba(14,12,9,0.92); box-shadow: 0 16px 40px rgba(0,0,0,0.5); animation-duration: .28s; }
.cgh-card--m .cgh-card-close { width: 44px; height: 44px; }
.cgh-card--m .cgh-card-comp { font-size: 13.5px; padding-right: 52px; }
.cgh-card--m .cgh-card-eg { font-size: 11.5px; }
.cgh-card--m .cgh-card-topic { font-size: 17px; }
.cgh-card--m .cgh-card-list { margin: 12px 0 18px; gap: 4px; }
.cgh-card--m .cgh-card-list li { font-size: 14.5px; color: rgba(255,255,255,0.88); }
.cgh-card--m .cgh-card-cta { padding: 12px 0; font-size: 13.5px; }

/* ---------- Textblock links (Desktop) ---------- */
/* left: 5 % = bündig mit dem Seiten-Logo (Header w-[90%], ungekappt); vorher clamp(28px, 4.5vw, 68px).
   Gleiche Formel in cigus-hero.js → geometry().textRight */
.cgh-text { position: absolute; left: 5%; top: 50%; transform: translateY(-50%); width: clamp(300px, 26vw, 390px); z-index: 40; }
.cgh-h1 { margin: 0; font-size: clamp(2.1rem, 3.2vw, 3.05rem); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; color: #fff; text-wrap: balance; }
.cgh-sub { margin: 22px 0 0; font-size: 15.5px; color: rgba(255,255,255,0.68); line-height: 1.6; text-wrap: pretty; }
.cgh-ctas { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 30px; }
.cgh-btn {
  display: inline-flex; align-items: center; gap: 11px; border-radius: 11px; text-decoration: none;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.cgh .cgh-btn--primary {
  padding: 15px 26px; background: var(--cgh-orange); color: #0a0a0b; box-shadow: 0 10px 30px rgba(245,156,43,0.22);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, background .3s;
}
.cgh .cgh-btn--primary:hover { background: var(--cgh-orange-hover); color: #0a0a0b; transform: translateY(-2px); box-shadow: 0 16px 38px rgba(245,156,43,0.34); }
.cgh .cgh-btn--secondary {
  padding: 15px 22px; border: 1px solid rgba(255,255,255,0.22); color: rgba(255,255,255,0.86);
  transition: border-color .3s, color .3s, transform .3s;
}
.cgh .cgh-btn--secondary:hover { border-color: var(--cgh-orange); color: var(--cgh-orange); transform: translateY(-2px); }
.cgh-career { margin-top: 28px; font-size: 15.5px; line-height: 1.5; }
.cgh-career span { color: rgba(255,255,255,0.5); }
.cgh .cgh-career a { display: inline-block; margin-left: 6px; color: rgba(245,156,43,0.9); text-decoration: none; font-weight: 700; }
.cgh-in1 { animation: cgh-fadeUp .8s cubic-bezier(.2,.7,.2,1) .05s both; }
.cgh-in2 { animation: cgh-fadeUp .8s cubic-bezier(.2,.7,.2,1) .18s both; }
.cgh-in3 { animation: cgh-fadeUp .8s cubic-bezier(.2,.7,.2,1) .30s both; }
.cgh-in4 { animation: cgh-fadeUp .8s cubic-bezier(.2,.7,.2,1) .42s both; }

/* ---------- Modus-Umschalter ---------- */
.cgh-tabs {
  position: absolute; left: 62%; bottom: 24px; transform: translateX(-50%); z-index: 45;
  display: flex; gap: 4px; padding: 5px; border: 1px solid rgba(255,255,255,0.2); border-radius: 13px;
  background: rgba(14,12,9,0.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.cgh-tab { border: none; cursor: pointer; font-size: 13px; font-weight: 700; letter-spacing: .03em; padding: 11px 22px; border-radius: 9px; transition: all .25s; background: transparent; color: rgba(255,255,255,0.7); }
.cgh-tab[aria-selected="true"] { background: var(--cgh-orange); color: #0a0a0b; }

/* ---------- Systemnavigation ---------- */
.cgh-nav { position: absolute; left: 62%; bottom: 86px; transform: translateX(-50%); z-index: 42; transition: opacity .4s ease; display: flex; align-items: center; gap: 18px; }
.cgh-arrow {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(12,11,9,0.5); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .25s; padding: 0;
}
.cgh-arrow:hover { border-color: var(--cgh-orange); color: var(--cgh-orange); }
.cgh-navlabel { display: flex; align-items: baseline; gap: 14px; min-width: 230px; justify-content: center; }
.cgh-navcount { font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .08em; color: var(--cgh-orange); font-weight: 700; }
.cgh-navname { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #fff; font-weight: 700; }

/* ---------- Zusammenarbeitsmodelle (Desktop) ---------- */
.cgh-collab { position: absolute; transform: translateY(-50%); z-index: 12; animation: cgh-quickFade .5s ease both; }
.cgh-kicker { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--cgh-orange); font-weight: 700; }
.cgh-collab-h2 { margin: 12px auto 0; max-width: 520px; font-size: clamp(1.05rem, 1.35vw, 1.3rem); font-weight: 800; line-height: 1.2; color: #fff; text-wrap: balance; }
.cgh-collab-track { position: relative; margin-top: 40px; }
.cgh-collab-line { position: absolute; left: calc(12.5% - 5.25px); right: calc(12.5% - 5.25px); top: 28px; height: 1px; background: linear-gradient(90deg, rgba(245,156,43,0.15), rgba(245,156,43,0.55), rgba(245,156,43,0.15)); }
.cgh-collab-dotlane { position: absolute; left: calc(12.5% - 5.25px); width: calc(75% + 10.5px); top: 25px; height: 7px; pointer-events: none; }
.cgh-collab-dottrack { position: absolute; left: 0; top: 0; width: 100%; height: 7px; will-change: transform; }
.cgh-collab-dot { position: absolute; left: -3.5px; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--cgh-orange); box-shadow: 0 0 10px rgba(245,156,43,0.9); }
.cgh-collab-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cgh-col { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 6px 14px; border-radius: 14px; cursor: pointer; transition: background .3s; }
.cgh-col-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: border-color .45s ease, color .45s ease, background .45s ease, box-shadow .45s ease; }
.cgh-col-title { margin-top: 16px; max-width: 100%; font-size: 15.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; line-height: 1.3; hyphens: auto; overflow-wrap: anywhere; }
.cgh-col-desc { margin: 8px 0 12px; max-width: 100%; font-size: 15.5px; line-height: 1.5; color: rgba(255,255,255,0.68); text-wrap: pretty; }
.cgh-col-cta { display: inline-flex; align-items: center; font-size: 15.5px; font-weight: 700; color: var(--cgh-orange); text-decoration: none; transition: opacity .3s; }

/* ---------- Mobile/Tablet ---------- */
.cgh-flow { margin: 0 auto; display: flex; flex-direction: column; }
.cgh-flow .cgh-h1 { font-size: clamp(30px, 8.4vw, 42px); }
.cgh-flow .cgh-sub { margin-top: 14px; line-height: 1.55; }
.cgh-mtabs { display: flex; gap: 4px; padding: 4px; margin-top: 26px; border: 1px solid rgba(255,255,255,0.16); border-radius: 13px; background: rgba(12,11,9,0.62); }
.cgh-mtab { flex: 1; min-height: 46px; border: none; cursor: pointer; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; padding: 8px; border-radius: 10px; transition: all .25s; background: transparent; color: rgba(255,255,255,0.72); }
.cgh-mtab[aria-selected="true"] { background: var(--cgh-orange); color: #0a0a0b; }
.cgh-mstage { position: relative; width: 100%; margin-top: 20px; overflow: hidden; touch-action: pan-y; }
.cgh-mglow { position: absolute; left: 50%; top: 50%; width: 140%; height: 140%; transform: translate(-50%,-50%); pointer-events: none; background: radial-gradient(closest-side, rgba(245,156,43,0.10) 0%, rgba(245,156,43,0.03) 46%, transparent 72%); }
.cgh-mring { position: absolute; left: 50%; top: 50%; width: 112%; aspect-ratio: 1; transform: translate(-50%,-50%); pointer-events: none; opacity: .55; }
.cgh-mspin { animation: cgh-spin 220s linear infinite; transform-origin: 0 0; }
.cgh-mplate { position: absolute; left: 50%; top: 48%; transform: translate(-50%,-50%); transition: width .45s cubic-bezier(.2,.7,.2,1), height .45s cubic-bezier(.2,.7,.2,1); }
.cgh-mnav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.cgh-mnav .cgh-arrow { width: 48px; height: 48px; }
.cgh-mnavlabel { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; }
.cgh-mnavlabel .cgh-navname { font-size: 13.5px; letter-spacing: .14em; }
.cgh-chips { display: flex; gap: 8px; margin-top: 22px; padding: 2px 0 6px; }
.cgh-chips--scroll {
  overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  margin-right: -24px; padding-right: 24px;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.cgh-chips--scroll::-webkit-scrollbar { display: none; }
.cgh-chips--wrap { flex-wrap: wrap; justify-content: center; }
.cgh-chip {
  flex: 0 0 auto; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 14px;
  border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 700; white-space: nowrap; transition: all .25s;
  border: 1px solid rgba(255,255,255,0.22); background: rgba(14,12,9,0.7); color: rgba(255,255,255,0.9);
}
.cgh-chip[aria-pressed="true"] { border-color: var(--cgh-orange); background: var(--cgh-orange); color: #0a0a0b; }
.cgh-mcollab { margin-top: 32px; animation: cgh-fadeUp .5s cubic-bezier(.2,.7,.2,1) both; }
.cgh-mcollab .cgh-collab-h2 { margin: 12px 0 0; font-size: 19px; line-height: 1.25; max-width: none; }
.cgh-mlist { position: relative; display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.cgh-mlist-line { position: absolute; left: 23.5px; top: 40px; bottom: 64px; width: 1px; background: linear-gradient(180deg, rgba(245,156,43,0.5), rgba(245,156,43,0.15)); }
.cgh-mrow { position: relative; display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 16px; padding: 16px 16px 8px 0; border-radius: 13px; cursor: pointer; }
.cgh-micon { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.32); background: #0d0b08; color: rgba(255,255,255,0.92); }
.cgh-mrow[aria-expanded="true"] .cgh-micon { border: 1.5px solid var(--cgh-orange); background: #1a130a; color: var(--cgh-orange); box-shadow: 0 0 18px rgba(245,156,43,0.35); }
.cgh-mrow-title { font-size: 15.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; line-height: 1.3; }
.cgh-mrow-desc { margin: 8px 0 10px; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.7); }
.cgh-mrow-cta { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 700; color: var(--cgh-orange); text-decoration: none; }
.cgh-mctas { display: flex; gap: 12px; margin-top: 36px; }
.cgh-mctas .cgh-btn { justify-content: center; min-height: 56px; padding: 12px 20px; font-size: 13px; letter-spacing: .08em; }
.cgh-mctas--col { flex-direction: column; }
.cgh-mctas--row { flex-direction: row; flex-wrap: wrap; }
.cgh-mcareer { margin-top: 22px; font-size: 15.5px; line-height: 1.5; }
.cgh-mcareer span { color: rgba(255,255,255,0.5); }
.cgh .cgh-mcareer a { color: rgba(245,156,43,0.9); text-decoration: none; font-weight: 700; }

/* ---------- Keyframes ---------- */
@keyframes cgh-spin      { to { transform: rotate(360deg); } }
@keyframes cgh-spinRev   { to { transform: rotate(-360deg); } }
@keyframes cgh-ringPulse { 0% { transform: scale(.7); opacity: .6; } 70% { opacity: 0; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes cgh-accBlink  { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes cgh-accRing   { 0% { transform: translate(-50%,-50%) scale(.5); opacity: .8; } 80% { opacity: 0; } 100% { transform: translate(-50%,-50%) scale(2.6); opacity: 0; } }
@keyframes cgh-dashFlow  { to { stroke-dashoffset: -28; } }
@keyframes cgh-fadeUp    { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cgh-cardIn    { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cgh-quickFade { from { opacity: 0; } to { opacity: 1; } }
/* Mobile/Tablet-Systemwechsel (seitliches Ein-/Ausgleiten) */
@keyframes cgh-sysInFromR { from { opacity: 0; transform: translateX(70px) scale(.9); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes cgh-sysInFromL { from { opacity: 0; transform: translateX(-70px) scale(.9); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes cgh-sysOutToL  { from { opacity: 1; transform: none; filter: blur(0); } to { opacity: 0; transform: translateX(-70px) scale(.9); filter: blur(8px); } }
@keyframes cgh-sysOutToR  { from { opacity: 1; transform: none; filter: blur(0); } to { opacity: 0; transform: translateX(70px) scale(.9); filter: blur(8px); } }

@media (prefers-reduced-motion: reduce) {
  .cgh *, .cgh *::before, .cgh *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
