/* Globale Styles der CoMo-One-Page – aus dem <helmet> des Designs übernommen.
   Sektions-Styles bleiben inline in den Partials (1:1-Design-Fidelity);
   hier liegen nur Basis, Keyframes, Responsive-Regeln und die .hv-*-Klassen,
   die die style-hover-Attribute des Designformats ersetzen. */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: #28434f;

  font-family:
    "Work Sans",
    system-ui,
    sans-serif;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  font-family: inherit;
  color: inherit;
}

a {
  color: #0066A6;
  text-decoration: none;
}

a:hover {
  color: #054D7F;
}

::selection {
  background: #F28D01;
  color: #fff;
}

/* ---------------------------------------------------------------
   Utility
---------------------------------------------------------------- */

[hidden] {
  display: none !important;
}

[data-hidescroll] {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

[data-hidescroll]::-webkit-scrollbar {
  display: none;
}

[data-marquee]:hover [data-mtrack] {
  animation-play-state: paused;
}

/* ---------------------------------------------------------------
   Motion
---------------------------------------------------------------- */

@keyframes como-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes como-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes como-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes como-marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes como-fade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes como-rotate {
  0%,
  14% {
    transform: translateY(0);
  }

  20%,
  34% {
    transform: translateY(-20%);
  }

  40%,
  54% {
    transform: translateY(-40%);
  }

  60%,
  74% {
    transform: translateY(-60%);
  }

  80%,
  100% {
    transform: translateY(-80%);
  }
}

/* ---------------------------------------------------------------
   Hero motion

   Separate timings intentionally keep the orange stripe and
   floating image label from moving mechanically together.
---------------------------------------------------------------- */

@keyframes como-hero-stripe-float {
  0%,
  100% {
    transform: translateY(10px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes como-hero-label-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-13px);
  }
}

.como-hero-orange-stripe {
  animation:
    como-hero-stripe-float
    6.4s
    ease-in-out
    infinite;

  will-change: transform;
}

.como-hero-floating-label {
  animation:
    como-hero-label-float
    5.2s
    ease-in-out
    infinite;

  will-change: transform;
}

/* ---------------------------------------------------------------
   Hover helpers

   Some !important declarations ARE required here because these
   classes replace style-hover behavior while the design still
   contains inline styles.
---------------------------------------------------------------- */

.hv-orange:hover {
  background: #DA8000 !important;
}

.hv-navy:hover {
  background: #08405f !important;
}

.hv-ghost:hover {
  border-color: #04A0DD !important;
  background: rgba(255,255,255,0.06) !important;
}

.hv-arrow:hover {
  border-color: #054D7F !important;
}

.hv-fill:hover {
  background: #032E4D !important;
  border-color: #032E4D !important;
  color: #fff !important;
}

.hv-social:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: #04A0DD !important;
}

.hv-gap:hover {
  gap: 12px !important;
}

.hv-lift:hover {
  transform: translateY(-6px);

  box-shadow:
    0 30px 50px -32px
    rgba(3,46,77,0.4);
}

.hv-lift-dark:hover {
  transform: translateY(-6px);

  box-shadow:
    0 30px 50px -30px
    rgba(3,46,77,0.7);
}

.hv-zoom:hover {
  transform: scale(1.05);
}

.fc-cta:focus-visible {
  outline: 2px solid #04A0DD;
  outline-offset: 2px;
}

/* ---------------------------------------------------------------
   No JavaScript fallback
---------------------------------------------------------------- */

html:not(.js) [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

html:not(.js) [data-line] {
  stroke-dashoffset: 0 !important;
  animation: none !important;
}

/* ---------------------------------------------------------------
   Tablet / Mobile
---------------------------------------------------------------- */

@media (max-width: 960px) {
  [data-nav-desktop] {
    display: none !important;
  }

  [data-burger] {
    display: inline-flex !important;
  }

  [data-hero-grid] {
    grid-template-columns: 1fr !important;
  }

  [data-solrow] {
    grid-template-columns: 1fr !important;
  }

  [data-solmedia] {
    order: -1 !important;
  }

  [data-cols-3] {
    grid-template-columns: 1fr !important;
  }

  [data-cols-4] {
    grid-template-columns: 1fr 1fr !important;
  }

  [data-cols-2] {
    grid-template-columns: 1fr !important;
  }

  [data-ctaband] {
    grid-template-columns: 1fr !important;
  }

  [data-footcols] {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 600px) {
  [data-cols-4] {
    grid-template-columns: 1fr !important;
  }

  [data-footcols] {
    grid-template-columns: 1fr !important;
  }
}

/* ---------------------------------------------------------------
   Reduced motion

   IMPORTANT:
   Do NOT use:

       * { animation: none !important; }

   That globally murders every animation on the website.

   Instead we explicitly neutralise intentional motion.
---------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* Hero continuous motion */
  .como-hero-orange-stripe,
  .como-hero-floating-label {
    animation: none !important;
    transform: none !important;
    will-change: auto;
  }

  /* Scroll reveal content should simply be visible */
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Decorative SVG drawing */
  [data-line] {
    stroke-dashoffset: 0 !important;
    animation: none !important;
  }

  /* Continuous marquee */
  [data-mtrack] {
    animation: none !important;
    transform: none !important;
  }

  /* Existing inline decorative motion from original designs */
  [style*="animation:como-float"],
  [style*="animation: como-float"],
  [style*="animation:como-spin"],
  [style*="animation: como-spin"],
  [style*="animation:como-marquee"],
  [style*="animation: como-marquee"],
  [style*="animation:como-rotate"],
  [style*="animation: como-rotate"] {
    animation: none !important;
  }
}