:root {
  --tron: #39cce0;
  --purple: #200033;
  --white: #ffffff;
  --light: #f6f8fa;
  --gold: #f2b84b;
  --ink: #160024;
  --muted: #6f6678;
  --shadow: 0 24px 60px rgba(32, 0, 51, 0.12);
  --safe-area: clamp(24px, 5.55vw, 80px);
}

* {
  box-sizing: border-box;
}

/* <picture> transparent halten: das <img> bleibt direkter Kind-Knoten,
   damit alle bestehenden Selektoren + Positionierung unveraendert greifen */
picture {
  display: contents;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

body {
  margin: 0;
  color: var(--purple);
  background: var(--white);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  isolation: isolate;
  height: 100vh;
  height: 100svh;
  min-height: 760px;
  overflow: hidden;
  background:
    radial-gradient(circle at 77% 27%, rgba(57, 204, 224, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 78%, #f8fafb 100%);
}

.hero::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  z-index: 2;
  width: 100%;
  height: clamp(116px, 15vh, 164px);
  content: "";
  background: var(--purple);
  clip-path: polygon(0 66%, 100% 26%, 100% 100%, 0 100%);
}

/* Fahrzeug als Hintergrundebene - hinter Text und CAROLINE (z0) */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__vehicle {
  position: absolute;
  top: clamp(30px, 7vh, 116px);
  right: -3%;
  width: min(1320px, 86vw);
  height: auto;
  opacity: 0.95;
  filter: blur(0.8px) saturate(0.98) contrast(1.06) brightness(0.93);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 31%, #000 93%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 78%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 31%, #000 93%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: clamp(28px, 4.4vh, 46px) var(--safe-area) 84px;
  pointer-events: none;
}

.hero__inner > * {
  pointer-events: auto;
}

.hero__topbar,
.hero__grid,
.hero__bottom {
  position: relative;
  z-index: 2;
}

.hero__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: block;
  width: clamp(186px, 17.6vw, 286px);
  line-height: 0;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.top-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(32, 0, 51, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(32, 0, 51, 0.06);
  color: var(--purple);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.top-cta:hover {
  border-color: rgba(57, 204, 224, 0.72);
  box-shadow: 0 16px 38px rgba(57, 204, 224, 0.16);
  transform: translateY(-1px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  width: min(100%, 1280px);
  margin: clamp(12px, 2.1vh, 22px) auto 0;
}

.hero__content {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(32, 0, 51, 0.68);
  font-size: 16px;
  font-weight: 700;
}

.hero__title {
  margin: 0;
  color: var(--purple);
  font-size: clamp(48px, 3.55vw, 64px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.02em;
}

.hero__title span {
  display: block;
}

.hero__title mark {
  color: var(--tron);
  background: transparent;
}

.hero__subline {
  margin: clamp(12px, 1.8vh, 18px) 0 0;
  color: rgba(32, 0, 51, 0.74);
  font-size: 22px;
  line-height: 31px;
}

.hero__subline strong {
  color: var(--purple);
  font-weight: 750;
}

.hero__claim {
  display: grid;
  gap: 1px;
  margin: clamp(10px, 1.6vh, 16px) 0 0;
  color: var(--purple);
}

.hero__claim-intro {
  margin-bottom: 4px;
  font-size: 22px;
  font-weight: 650;
}

.hero__claim span:not(.hero__claim-intro):not(.hero__claim-work) {
  font-size: clamp(31px, 2.45vw, 36px);
  font-weight: 780;
  line-height: 1.02;
}

.hero__claim-work {
  margin-top: 2px;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.14;
}

.hero__actions {
  margin-top: clamp(12px, 1.8vh, 18px);
}

.primary-cta {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 0 36px;
  border-radius: 18px;
  background: var(--tron);
  box-shadow: 0 18px 48px rgba(57, 204, 224, 0.26);
  color: var(--white);
  font-size: 21px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.primary-cta:hover {
  box-shadow: 0 22px 58px rgba(57, 204, 224, 0.36);
  filter: brightness(1.03);
  transform: translateY(-2px);
}

.microcopy {
  margin: 12px 0 0;
  color: rgba(32, 0, 51, 0.42);
  font-size: 16px;
  font-weight: 650;
}

/* CAROLINE-Buehne (Desktop/Tablet) - rechts, beginnt hinter der Diagonale (z1) */
.hero__stage {
  position: absolute;
  right: clamp(8px, 2.6vw, 76px);
  bottom: clamp(-78px, -5.5vh, -30px);
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: min(500px, 36vw);
  height: 100%;
  pointer-events: none;
}

.hero__stage .caroline {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 32px 54px rgba(32, 0, 51, 0.2));
}

/* CAROLINE im Fluss - nur Mobile (per Default aus) */
.hero__visual {
  display: none;
}

.hero__visual .caroline--mobile {
  display: block;
  width: min(330px, 76vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 22px 40px rgba(32, 0, 51, 0.16));
}

.process-lines {
  position: absolute;
  top: clamp(56px, 11vh, 116px);
  right: 0;
  z-index: -1;
  width: min(620px, 50vw);
  height: 340px;
  pointer-events: none;
}

.process-lines span {
  position: absolute;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(57, 204, 224, 0.46), transparent);
  opacity: 0.48;
  transform-origin: right;
  animation: linePulse 4.8s ease-in-out infinite;
}

.process-lines span:nth-child(1) {
  top: 32px;
  width: 76%;
  transform: rotate(-11deg);
}

.process-lines span:nth-child(2) {
  top: 164px;
  width: 92%;
  animation-delay: 0.9s;
}

.process-lines span:nth-child(3) {
  top: 296px;
  width: 68%;
  transform: rotate(10deg);
  animation-delay: 1.8s;
}

/* (CAROLINE wird jetzt ueber .hero__stage .caroline und .caroline--mobile gestylt) */

.hero__bottom {
  position: absolute;
  right: var(--safe-area);
  bottom: 26px;
  left: var(--safe-area);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 650;
}

.hero__bottom p {
  margin: 0;
}

.hero__bottom ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__bottom li {
  position: relative;
}

.hero__bottom li + li::before {
  position: absolute;
  left: -11px;
  color: rgba(57, 204, 224, 0.76);
  content: "·";
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.is-loaded .reveal {
  animation: fadeUp 560ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.is-loaded .reveal--logo {
  animation-name: fadeIn;
  animation-delay: 80ms;
}

.is-loaded .reveal--1 { animation-delay: 170ms; }
.is-loaded .reveal--2 { animation-delay: 250ms; }
.is-loaded .reveal--3 { animation-delay: 340ms; }
.is-loaded .reveal--4 { animation-delay: 430ms; }
.is-loaded .reveal--5 { animation-delay: 590ms; }
.is-loaded .reveal--6 { animation-delay: 740ms; }
.is-loaded .reveal--7 { animation-delay: 900ms; }
.is-loaded .reveal--8 { animation-delay: 1040ms; }

.is-loaded .reveal--visual {
  animation: fadeInRight 620ms cubic-bezier(0.22, 1, 0.36, 1) 720ms forwards;
}

a:focus-visible {
  outline: 3px solid rgba(57, 204, 224, 0.82);
  outline-offset: 4px;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes linePulse {
  0%,
  100% {
    opacity: 0.22;
    filter: drop-shadow(0 0 0 rgba(57, 204, 224, 0));
  }
  50% {
    opacity: 0.58;
    filter: drop-shadow(0 0 12px rgba(57, 204, 224, 0.2));
  }
}

@media (max-width: 1120px) {
  /* Hero waechst mit, damit die gestapelte CAROLINE nicht abgeschnitten wird */
  .hero {
    height: auto;
    min-height: 100svh;
  }

  .hero__inner {
    height: auto;
    min-height: 100svh;
    padding-top: 48px;
    padding-bottom: 150px;
  }

  .hero__grid {
    width: min(100%, 768px);
    margin-top: clamp(28px, 6vh, 56px);
    text-align: left;
  }

  .hero__content {
    max-width: 768px;
  }

  /* Desktop-Buehne aus - CAROLINE wandert in den Inhaltsfluss */
  .hero__stage {
    display: none;
  }

  .hero__vehicle {
    top: clamp(20px, 5vh, 72px);
    right: -10%;
    width: min(940px, 98vw);
    opacity: 0.5;
  }

  .hero__visual {
    display: flex;
    justify-content: center;
    margin: 28px 0 0;
  }

  .hero__visual .caroline--mobile {
    width: min(380px, 54vw);
  }

}

@media (max-width: 720px) {
  .hero {
    height: auto;
    min-height: 860px;
  }

  .hero__inner {
    height: auto;
    min-height: 860px;
    padding: 28px 24px 118px;
  }

  .hero::after {
    height: 132px;
    clip-path: polygon(0 52%, 100% 30%, 100% 100%, 0 100%);
  }

  .brand {
    width: min(154px, 44vw);
  }

  .top-cta {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .hero__grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 46px;
  }

  .hero__content {
    display: contents;
  }

  .eyebrow {
    order: 0;
    margin-bottom: 16px;
    font-size: 14px;
  }

  .hero__title {
    order: 1;
    font-size: clamp(43px, 11.5vw, 48px);
    line-height: 54px;
    letter-spacing: -0.02em;
  }

  .hero__subline {
    order: 4;
    margin-top: 30px;
    font-size: 20px;
    line-height: 29px;
  }

  .hero__claim {
    order: 5;
    margin-top: 30px;
  }

  .hero__claim-intro {
    font-size: 22px;
  }

  .hero__claim span:not(.hero__claim-intro):not(.hero__claim-work) {
    font-size: 34px;
  }

  .hero__claim-work {
    font-size: 25px;
  }

  .hero__actions {
    order: 2;
    margin-top: 32px;
  }

  .primary-cta {
    width: 100%;
    min-height: 62px;
    padding: 0 20px;
    font-size: clamp(17px, 4.8vw, 20px);
    text-align: center;
  }

  .microcopy {
    margin-top: 16px;
    text-align: center;
  }

  .hero__visual {
    order: 3;
    justify-content: center;
    margin: 18px 0 0;
  }

  .hero__visual .caroline--mobile {
    width: min(320px, 74vw);
  }

  .hero__vehicle {
    top: 9vh;
    right: -22%;
    width: 150vw;
    opacity: 0.4;
  }

  .hero__bottom {
    right: 24px;
    bottom: 24px;
    left: 24px;
    display: block;
    font-size: 12px;
  }

  .hero__bottom ul {
    justify-content: flex-start;
    margin-top: 10px;
    gap: 7px 15px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
