/* Interaction-only layer: no changes to resting layout, content or hit areas. */
.ct-effects {
  --ct-light-x: 50%;
  --ct-light-y: 35%;
  transition-property: transform,border-color,background-color,box-shadow,filter;
  transition-duration: 240ms;
  transition-timing-function: ease;
}
body .ct-effects.ct-framed:focus-within::before { background: #16cff8; }
body .ct-effects.ct-framed:focus-within::after {
  background: radial-gradient(260px circle at var(--ct-light-x) var(--ct-light-y),rgba(22,207,248,.13),transparent 75%),linear-gradient(135deg,#0b2033,#071421 85%);
}
body .ct-effects:focus-within { filter: drop-shadow(0 0 7px rgba(22,207,248,.26)); }
body .ct-effects:not(.ct-framed):focus-within { border-color: #16cff8; box-shadow: inset 0 0 0 1px rgba(22,207,248,.32); }
/* Short edge trace is purely decorative and never intercepts a link or input. */
.ct-edge-trace {
  position: absolute;
  left: var(--ct-cut,0px); right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg,#16cff8,#7deaff);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: transform 420ms cubic-bezier(.2,.7,.3,1),opacity 220ms ease;
  pointer-events: none;
  z-index: 2;
}
.ct-effects:focus-within > .ct-edge-trace { transform: scaleX(1); opacity: 1; }
body .ct-effects :is(.benefit-icon,.p-mark,.step-num) {
  background-image: linear-gradient(to top,#16cff8 50%,transparent 50%);
  background-size: 100% 200%; background-position: 0 0;
  transition: background-position 280ms ease,color 220ms ease,border-color 220ms ease;
}
body .ct-effects :is(.benefit-icon svg,.modul-symbol) { transition: color 240ms ease,transform 280ms ease; }
body .ct-effects:focus-within :is(.benefit-icon,.p-mark,.step-num) { background-position: 0 100%; color: #062032; border-color: #16cff8; }
body .ct-effects:focus-within .benefit-icon svg { color: #062032; }
@media (hover: hover) and (pointer: fine) {
  body .ct-effects:hover { filter: drop-shadow(0 0 9px rgba(22,207,248,.3)); }
  body .ct-effects.ct-framed:hover::before { background: #16cff8; }
  body .ct-effects.ct-framed:hover::after {
    background: radial-gradient(260px circle at var(--ct-light-x) var(--ct-light-y),rgba(22,207,248,.15),transparent 75%),linear-gradient(135deg,#0b2033,#071421 85%);
  }
  body .ct-effects:not(.ct-framed):hover { border-color: #16cff8; box-shadow: inset 0 0 0 1px rgba(22,207,248,.32); }
  .ct-effects:hover > .ct-edge-trace { transform: scaleX(1); opacity: 1; }
  body .ct-effects:hover :is(.benefit-icon,.p-mark,.step-num) { background-position: 0 100%; color: #062032; border-color: #16cff8; }
  body .ct-effects:hover .benefit-icon svg { color: #062032; }
  body .ct-effects:hover .modul-symbol { color: #79eaff; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-effects,.ct-edge-trace,body .ct-effects :is(.benefit-icon,.p-mark,.step-num,.benefit-icon svg,.modul-symbol) { transition: none !important; }
  body .ct-effects:hover :is(.benefit-icon svg,.modul-symbol) { transform: none; }
}
@media (forced-colors: active) {
  body .ct-effects:hover,body .ct-effects:focus-within { filter: none; outline: 2px solid Highlight; }
  .ct-edge-trace { display: none; }
}
/* Customer faces keep their independent 3D transforms. */
body .projekt-karte:focus-within :is(.pk-vorn,.pk-hinten) { border-color: #16cff8; box-shadow: inset 0 0 0 1px rgba(22,207,248,.25); }
@media (hover: hover) and (pointer: fine) {
  body .projekt-karte:hover :is(.pk-vorn,.pk-hinten) { border-color: #16cff8; box-shadow: inset 0 0 0 1px rgba(22,207,248,.25); }
}

/* Existing icons gain a short draw and lift, never a continuous animation. */
.ct-icon-shell {
  position: relative; display: inline-grid; place-items: center;
  width: var(--ct-icon-width,26px); height: var(--ct-icon-height,26px);
  flex: 0 0 var(--ct-icon-width,26px); isolation: isolate;
}
.ct-icon-shell::before {
  content: ""; position: absolute; inset: -6px; z-index: -1;
  background: radial-gradient(ellipse at 20% 0,rgba(125,234,255,.2),transparent 75%),linear-gradient(145deg,rgba(22,207,248,.14),rgba(22,207,248,.035));
  border: 1px solid rgba(22,207,248,.5);
  box-shadow: inset 0 1px rgba(125,234,255,.22);
  pointer-events: none;
  clip-path: polygon(0 0,calc(100% - 6px) 0,100% 6px,100% 100%,6px 100%,0 calc(100% - 6px));
  opacity: 0; transform: translateY(3px) scale(.92); transform-origin: center;
  transition: opacity 260ms ease,transform 360ms cubic-bezier(.16,1,.3,1);
}
.ct-icon-shell > svg { display: block; width: 100%; height: 100%; }
body .ct-animated-icon { transform-origin: center; transition: color 220ms ease,transform 280ms cubic-bezier(.2,.7,.3,1); }
body .ct-icon-trigger:focus-within .ct-icon-shell::before { opacity: 1; transform: translateY(0) scale(1); }
body .ct-icon-trigger:focus-within .ct-icon-shell > svg { color: #7deaff; }
body .ct-icon-trigger:focus-within .ct-animated-icon { transform: translateY(-1px) scale(1.06); }
body .ct-icon-trigger:focus-within .ct-drawn-icon :is(path,line,polyline,polygon,circle,rect,ellipse):not([stroke-dasharray]) { animation: ct-icon-draw 480ms ease-out 1; }
@media (hover: hover) and (pointer: fine) {
  body .ct-icon-trigger:hover .ct-icon-shell::before { opacity: 1; transform: translateY(0) scale(1); }
  body .ct-icon-trigger:hover .ct-icon-shell > svg { color: #7deaff; }
  body .ct-icon-trigger:hover .ct-animated-icon { transform: translateY(-2px) rotate(-5deg) scale(1.08); }
  body #back-to-top.ct-icon-trigger:hover .ct-animated-icon { transform: translateY(-3px); }
  body .ct-icon-trigger:hover .ct-drawn-icon :is(path,line,polyline,polygon,circle,rect,ellipse):not([stroke-dasharray]) { animation: ct-icon-draw 480ms ease-out 1; }
}
@keyframes ct-icon-draw {
  from { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .5; }
  to { stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body .ct-animated-icon,.ct-icon-shell::before { transition: none !important; }
  body .ct-icon-trigger .ct-animated-icon { transform: none !important; }
  body .ct-icon-trigger .ct-drawn-icon * { animation: none !important; }
}
@media (forced-colors: active) {
  .ct-icon-shell::before { background: Highlight; }
  body .ct-icon-trigger:is(:hover,:focus-within) .ct-icon-shell > svg { color: HighlightText; }
}
