/*
  CreaIQ V4 Motion Layer
  Optional ueber creaiq-mvp-v4.css legen.
  Keine externen Animationsbibliotheken.
*/

:root {
  --ciq4-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ciq4-motion-fast: 180ms;
  --ciq4-motion-medium: 620ms;
}

.creaiq-v4 {
  scroll-behavior: smooth;
}

.creaiq-v4-header {
  transition:
    min-height var(--ciq4-motion-fast) var(--ciq4-motion-ease),
    padding var(--ciq4-motion-fast) var(--ciq4-motion-ease),
    background var(--ciq4-motion-fast) var(--ciq4-motion-ease),
    box-shadow var(--ciq4-motion-fast) var(--ciq4-motion-ease);
}

.creaiq-v4-header.ciq4-header-compact {
  min-height: 56px;
  padding-block: 7px;
  background: linear-gradient(180deg, rgba(3, 3, 3, 0.94), rgba(3, 3, 3, 0.76));
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.48), inset 0 0 22px rgba(200, 169, 81, 0.07);
}

.creaiq-v4-header.ciq4-header-compact .creaiq-v4-brand img {
  width: 96px;
}

.creaiq-v4-brand img {
  transition: width var(--ciq4-motion-fast) var(--ciq4-motion-ease), filter var(--ciq4-motion-fast) var(--ciq4-motion-ease);
}

.creaiq-v4-header::before,
.creaiq-v4-header::after,
.creaiq-v4-divider span {
  animation: ciq4-line-breathe 9s ease-in-out infinite;
}

.creaiq-v4-hero::after {
  animation: ciq4-particle-drift 22s linear infinite;
}

.creaiq-v4-orbit-hero {
  animation: ciq4-orbit-breathe 18s ease-in-out infinite;
}

.creaiq-v4-orbit-system {
  animation: ciq4-system-orbit-breathe 20s ease-in-out infinite;
}

.creaiq-v4-hero-logo img {
  animation: ciq4-logo-glow 8s ease-in-out infinite;
}

.creaiq-v4-kicker,
.creaiq-v4-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.creaiq-v4-kicker::before,
.creaiq-v4-eyebrow::before {
  min-width: 34px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200, 169, 81, 0.44);
  color: var(--ciq4-gold-soft);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  background: rgba(3, 3, 3, 0.36);
  box-shadow: inset 0 0 14px rgba(200, 169, 81, 0.08);
}

.creaiq-v4-kicker::before {
  content: "01";
}

.creaiq-v4-interface .creaiq-v4-eyebrow::before {
  content: "02";
}

.creaiq-v4-projects .creaiq-v4-eyebrow::before {
  content: "03";
}

.creaiq-v4-system .creaiq-v4-eyebrow::before {
  content: "04";
}

.creaiq-v4-business .creaiq-v4-eyebrow::before {
  content: "05";
}

.creaiq-v4-visions .creaiq-v4-eyebrow::before {
  content: "06";
}

.creaiq-v4-contact .creaiq-v4-eyebrow::before {
  content: "07";
}

.ciq4-motion-ready .ciq4-reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  will-change: transform, opacity;
  transition:
    opacity var(--ciq4-motion-medium) var(--ciq4-motion-ease),
    transform var(--ciq4-motion-medium) var(--ciq4-motion-ease);
}

.ciq4-motion-ready .ciq4-reveal.ciq4-inview {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.ciq4-motion-ready .creaiq-v4-project-card:nth-child(2),
.ciq4-motion-ready .creaiq-v4-offer-card:nth-child(2),
.ciq4-motion-ready .creaiq-v4-vision-grid article:nth-child(2) {
  transition-delay: 70ms;
}

.ciq4-motion-ready .creaiq-v4-project-card:nth-child(3),
.ciq4-motion-ready .creaiq-v4-offer-card:nth-child(3),
.ciq4-motion-ready .creaiq-v4-vision-grid article:nth-child(3) {
  transition-delay: 140ms;
}

.ciq4-motion-ready .creaiq-v4-project-card:nth-child(4),
.ciq4-motion-ready .creaiq-v4-offer-card:nth-child(4) {
  transition-delay: 210ms;
}

.creaiq-v4-project-card {
  transform-style: preserve-3d;
}

.creaiq-v4-project-card::after,
.creaiq-v4-offer-card::before,
.creaiq-v4-vision-grid article::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-top: 1px solid rgba(242, 217, 141, 0.42);
  border-right: 1px solid rgba(242, 217, 141, 0.34);
  pointer-events: none;
  opacity: 0.78;
  transition: opacity 220ms var(--ciq4-motion-ease), transform 220ms var(--ciq4-motion-ease);
}

.creaiq-v4-project-card:hover {
  transform: translate3d(0, -5px, 0);
}

.creaiq-v4-project-card:hover::after,
.creaiq-v4-offer-card:hover::before,
.creaiq-v4-vision-grid article:hover::before {
  opacity: 1;
  transform: translate3d(-3px, 3px, 0);
}

.creaiq-v4-project-card:hover img {
  transform: translate3d(0, -2px, 0) scale(1.025);
}

.creaiq-v4-project-card img,
.creaiq-v4-offer-card,
.creaiq-v4-value-list div,
.creaiq-v4-vision-grid article {
  transition:
    transform 220ms var(--ciq4-motion-ease),
    box-shadow 220ms var(--ciq4-motion-ease),
    border-color 220ms var(--ciq4-motion-ease),
    filter 220ms var(--ciq4-motion-ease);
}

.creaiq-v4-offer-card:hover {
  transform: translate3d(0, -2px, 0);
  border-color: rgba(31, 111, 235, 0.58);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34), inset 0 0 28px rgba(31, 111, 235, 0.1);
}

.creaiq-v4-business .creaiq-v4-offer-card:hover {
  filter: none;
}

.creaiq-v4-contact-panel {
  overflow: hidden;
}

.creaiq-v4-contact-panel::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(242, 217, 141, 0.16), transparent) 0 0 / 220% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(242, 217, 141, 0.12), transparent) 0 100% / 220% 1px no-repeat;
  animation: ciq4-contact-line 10s ease-in-out infinite;
}

.creaiq-v4-button:focus-visible,
.creaiq-v4-nav a:focus-visible,
.creaiq-v4-project-card a:focus-visible,
.creaiq-v4-interface-links a:focus-visible,
.creaiq-v4-footer a:focus-visible {
  outline: 2px solid var(--ciq4-gold-soft);
  outline-offset: 4px;
}

@keyframes ciq4-orbit-breathe {
  0%, 100% {
    opacity: 0.52;
    transform: translate(-50%, -50%) scale(0.985) rotate(0deg);
  }
  50% {
    opacity: 0.68;
    transform: translate(-50%, -50%) scale(1.012) rotate(1.6deg);
  }
}

@keyframes ciq4-system-orbit-breathe {
  0%, 100% {
    opacity: 0.48;
    transform: translate(-50%, -50%) scale(0.99);
  }
  50% {
    opacity: 0.62;
    transform: translate(-50%, -50%) scale(1.018);
  }
}

@keyframes ciq4-logo-glow {
  0%, 100% {
    filter:
      drop-shadow(0 0 28px rgba(242, 217, 141, 0.52))
      drop-shadow(0 0 88px rgba(200, 169, 81, 0.22))
      drop-shadow(0 12px 30px rgba(0, 0, 0, 0.46));
  }
  50% {
    filter:
      drop-shadow(0 0 36px rgba(242, 217, 141, 0.62))
      drop-shadow(0 0 112px rgba(200, 169, 81, 0.28))
      drop-shadow(0 14px 34px rgba(0, 0, 0, 0.5));
  }
}

@keyframes ciq4-particle-drift {
  0% {
    background-position: 22px 18px, 78px 51px;
  }
  100% {
    background-position: 118px 114px, 235px 208px;
  }
}

@keyframes ciq4-line-breathe {
  0%, 100% {
    opacity: 0.58;
  }
  50% {
    opacity: 1;
  }
}

@keyframes ciq4-contact-line {
  0%, 100% {
    background-position: -90% 0, 110% 100%;
  }
  50% {
    background-position: 110% 0, -90% 100%;
  }
}

@media (max-width: 980px) {
  .creaiq-v4-header.ciq4-header-compact .creaiq-v4-brand img {
    width: 92px;
  }

  .creaiq-v4-hero::after,
  .creaiq-v4-orbit-hero,
  .creaiq-v4-orbit-system,
  .creaiq-v4-hero-logo img {
    animation-duration: 28s;
  }
}

@media (max-width: 640px) {
  .creaiq-v4 {
    scroll-behavior: auto;
  }

  .creaiq-v4-header {
    transition: none;
  }

  .creaiq-v4-header.ciq4-header-compact {
    min-height: auto;
    padding-block: 10px;
  }

  .creaiq-v4-hero::after,
  .creaiq-v4-orbit-hero,
  .creaiq-v4-orbit-system,
  .creaiq-v4-hero-logo img,
  .creaiq-v4-contact-panel::after {
    animation: none;
  }

  .ciq4-motion-ready .ciq4-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .creaiq-v4-project-card:hover,
  .creaiq-v4-offer-card:hover {
    transform: none;
  }
}

/* V4.1 layout fix: stable fixed header, safer anchor offsets, tighter hero. */
.creaiq-v4 {
  --ciq4-fixed-header-offset: 112px;
}

.creaiq-v4-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  max-height: calc(100vh - 24px);
}

.creaiq-v4-header.ciq4-header-compact {
  min-height: 54px;
  padding-block: 6px;
}

#schnittstelle,
#projekte,
#business-teaser,
#kontakt,
#iqkick,
#chatstories,
#creatales,
#creadine,
#business-angebote {
  scroll-margin-top: var(--ciq4-fixed-header-offset);
}

.creaiq-v4-hero {
  min-height: 850px;
  margin-top: 0;
}

.creaiq-v4-hero-stage {
  min-height: 850px;
  padding: 116px 0 72px;
}

.creaiq-v4-hero-logo {
  width: min(430px, 72vw);
  margin-bottom: 4px;
}

.creaiq-v4-hero-brandmark {
  position: relative;
  isolation: isolate;
  width: min(760px, 88vw);
  transform: translateX(-5%);
  margin-bottom: 18px;
}

.creaiq-v4-hero-brandmark::before {
  content: "";
  position: absolute;
  inset: -18% -12% -12%;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(3, 3, 3, 0.46) 0%, rgba(3, 3, 3, 0.26) 42%, rgba(3, 3, 3, 0.08) 64%, transparent 78%),
    radial-gradient(ellipse at center, rgba(200, 169, 81, 0.16), transparent 68%);
}

.creaiq-v4-hero-brandmark img {
  filter:
    drop-shadow(0 0 28px rgba(242, 217, 141, 0.56))
    drop-shadow(0 0 92px rgba(200, 169, 81, 0.24))
    drop-shadow(0 12px 30px rgba(0, 0, 0, 0.48));
}

.creaiq-v4-claim {
  max-width: 900px;
  font-size: clamp(34px, 6.2vw, 68px);
}

.creaiq-v4-subclaim {
  max-width: 730px;
  margin-top: 16px;
  font-size: clamp(16px, 1.8vw, 20px);
}

.creaiq-v4-buttons {
  margin-top: 26px;
}

.creaiq-v4-hero-note {
  margin-top: 20px;
}

@media (max-height: 760px) and (min-width: 768px) {
  .creaiq-v4 {
    --ciq4-fixed-header-offset: 94px;
  }

  .creaiq-v4-header {
    min-height: 84px;
    padding: 9px 28px;
    top: 10px;
  }

  .creaiq-v4-brand img {
    width: 74px;
  }

  .creaiq-v4-brand span {
    font-size: 11px;
    max-width: 250px;
  }

  .creaiq-v4-nav a {
    min-height: 42px;
    padding: 10px 12px;
  }

  .creaiq-v4-hero,
  .creaiq-v4-hero-stage {
    min-height: 720px;
  }

  .creaiq-v4-hero-stage {
    padding: 100px 0 42px;
  }

  .creaiq-v4-hero-logo {
    width: min(330px, 62vw);
  }

  .creaiq-v4-hero-brandmark {
    width: min(560px, 72vw);
  }

  .creaiq-v4-kicker {
    margin-top: 10px;
    margin-bottom: 12px;
  }

  .creaiq-v4-claim {
    max-width: 820px;
    font-size: clamp(34px, 5.8vw, 58px);
  }

  .creaiq-v4-subclaim {
    max-width: 680px;
    margin-top: 12px;
    font-size: 18px;
    line-height: 1.45;
  }

  .creaiq-v4-buttons {
    margin-top: 18px;
  }

  .creaiq-v4-hero-note {
    margin-top: 14px;
  }
}

@media (max-width: 980px) {
  .creaiq-v4 {
    --ciq4-fixed-header-offset: 118px;
  }

  .creaiq-v4-header {
    position: fixed;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    grid-template-columns: minmax(150px, auto) 1fr;
    gap: 10px;
    max-height: calc(100vh - 16px);
  }

  .creaiq-v4-hero {
    min-height: 800px;
    margin-top: 0;
  }

  .creaiq-v4-hero-stage {
    min-height: 800px;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .creaiq-v4-hero-logo {
    width: min(340px, 74vw);
  }

  .creaiq-v4-hero-brandmark {
    width: min(560px, 86vw);
    transform: translateX(-3%);
    margin-bottom: 14px;
  }
}

@media (max-width: 640px) {
  .creaiq-v4 {
    --ciq4-fixed-header-offset: 106px;
  }

  .creaiq-v4-header {
    position: fixed;
    top: 6px;
    left: 50%;
    width: calc(100% - 18px);
    min-height: 82px;
    grid-template-columns: 68px 1fr;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
  }

  .creaiq-v4-header.ciq4-header-compact {
    min-height: 78px;
    padding-block: 7px;
  }

  .creaiq-v4-brand {
    align-items: center;
  }

  .creaiq-v4-brand img,
  .creaiq-v4-header.ciq4-header-compact .creaiq-v4-brand img {
    width: 58px;
  }

  .creaiq-v4-brand span {
    display: none;
  }

  .creaiq-v4-nav {
    justify-content: flex-end;
    gap: 2px 4px;
  }

  .creaiq-v4-nav a {
    min-height: 30px;
    padding: 5px 6px;
    font-size: 11.5px;
  }

  .creaiq-v4-hero {
    min-height: 740px;
    margin-top: 0;
  }

  .creaiq-v4-hero-stage {
    min-height: 740px;
    padding-top: 74px;
    padding-bottom: 36px;
  }

  .creaiq-v4-hero-logo {
    width: min(230px, 68vw);
    margin-bottom: 0;
  }

  .creaiq-v4-hero-brandmark {
    width: min(300px, 78vw);
    transform: none;
    margin-bottom: 12px;
  }

  .creaiq-v4-kicker {
    margin-bottom: 8px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .creaiq-v4-kicker::before,
  .creaiq-v4-eyebrow::before {
    min-width: 30px;
    min-height: 20px;
  }

  .creaiq-v4-claim {
    font-size: clamp(32px, 10vw, 38px);
    line-height: 1.08;
  }

  .creaiq-v4-subclaim {
    margin-top: 12px;
    font-size: 15.5px;
    line-height: 1.48;
  }

  .creaiq-v4-hero .creaiq-v4-buttons {
    flex-direction: row;
    gap: 8px;
    margin-top: 20px;
  }

  .creaiq-v4-hero .creaiq-v4-button {
    width: auto;
    flex: 1 1 0;
    min-height: 44px;
    padding: 11px 8px;
    font-size: 12.5px;
  }

  .creaiq-v4-hero-note {
    margin-top: 16px;
    font-size: 13.5px;
    line-height: 1.48;
  }
}

@media (prefers-reduced-motion: reduce) {
  .creaiq-v4,
  .creaiq-v4 *,
  .creaiq-v4 *::before,
  .creaiq-v4 *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .ciq4-motion-ready .ciq4-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
