@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/SourceSans3-400.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/SourceSans3-600.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/SourceSans3-700.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  color-scheme: dark;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color: #fff;
  background: #326f72;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  background: #326f72;
}

a {
  font: inherit;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  isolation: isolate;
  background: #326f72;
}

.video-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0d1f22;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__video--source {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.scene-overlays {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.scene-overlay {
  position: absolute;
  bottom: clamp(5rem, 14vh, 9rem);
  left: clamp(1.5rem, 4vw, 3.5rem);
  width: min(38ch, calc(100vw - 3rem));
  max-width: 38ch;
  margin: 0;
  opacity: var(--overlay-opacity, 0);
  transform: translateY(var(--overlay-y, 0.75rem));
  color: #fff;
  text-shadow: 0 2px 16px rgb(0 20 24 / 42%);
  visibility: hidden;
  will-change: opacity, transform;
}

.scene-overlay--chapter {
  bottom: clamp(4.5rem, 12vh, 7.5rem);
  left: clamp(1.5rem, 4vw, 3.5rem);
  width: min(56rem, calc(100vw - 3rem));
  max-width: none;
  transform: none;
  will-change: opacity;
}

.scene-overlay--wordpair-chapter {
  opacity: var(--p, 0);
}

.scene-overlay.is-visible {
  visibility: visible;
}

.scene-overlay__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.92;
}

.scene-overlay__eyebrow::before {
  width: 52px;
  height: 1px;
  flex: 0 0 52px;
  background: currentColor;
  content: "";
}

.scene-overlay h2 {
  margin: 0.55rem 0 0;
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.scene-overlay--chapter h2 {
  margin-top: 0.55rem;
  font-size: clamp(44px, 7.6vw, 112px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 44px rgb(0 25 28 / 50%);
}

.scene-overlay__body {
  max-width: 52ch;
  margin: 0;
  margin-top: 18px;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.45;
  opacity: 0.94;
  text-shadow: 0 2px 22px rgb(0 25 28 / 55%);
  text-wrap: pretty;
}

.scene-overlay__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 1.6vw, 1.6rem);
  margin: 0;
  margin-top: clamp(1.5rem, 3vh, 2.5rem);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 22px rgb(0 25 28 / 55%);
}

.scene-overlay__keywords span:not(:last-child)::after {
  margin-left: clamp(0.7rem, 1.1vw, 1.1rem);
  content: " /";
  opacity: 0.45;
}

.scene-overlay--wordpair {
  --p: 0;

  top: 46%;
  right: 0;
  bottom: auto;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 0.28em;
  width: auto;
  max-width: none;
  font-size: clamp(46px, 8vw, 118px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: visible;
  transform: translateY(-50%);
  text-shadow: 0 4px 44px rgb(0 25 28 / 50%);
  will-change: opacity;
}

.scene-overlay--wordpair .w1,
.scene-overlay--wordpair .w2 {
  display: inline-block;
  will-change: transform;
}

.scene-overlay--wordpair .w1 {
  transform: translateX(calc((1 - var(--p)) * -34vw));
}

.scene-overlay--wordpair .w2 {
  transform: translateX(calc((1 - var(--p)) * 34vw));
}

.scene-overlay--dark {
  text-shadow: 0 2px 20px rgb(0 0 0 / 68%);
}

.scene-overlay--kontakt {
  top: 50%;
  bottom: auto;
  left: 50%;
  width: min(42rem, calc(100vw - 3rem));
  max-width: none;
  text-align: center;
  transform: translate(-50%, calc(-50% + var(--overlay-y, 0.75rem)));
}

.scene-overlay--kontakt .scene-overlay__body {
  max-width: none;
}

.scene-overlay__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 1.5rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 999px;
  color: #fff;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  pointer-events: auto;
  transition: color 180ms ease, background-color 180ms ease;
}

.scene-overlay__cta:hover,
.scene-overlay__cta:focus-visible {
  color: #1e6266;
  background: #fff;
}

.scene-overlay__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.scene-overlay--logo {
  --logo-x: 50%;
  --logo-y: 50%;
  --logo-w: 34vw;

  top: var(--logo-y);
  bottom: auto;
  left: var(--logo-x);
  width: var(--logo-w);
  max-width: none;
  margin: 0;
  transform: translate(-50%, -50%);
  text-shadow: none;
  will-change: opacity;
}

.scene-overlay__logo {
  display: block;
  width: 100%;
  height: auto;
}

.scene-overlay__logo--sketch {
  opacity: var(--logo-sketch-opacity, 0);
  filter: grayscale(1) contrast(0.72) blur(1px);
  will-change: opacity;
}

.scene-overlay__logo--final {
  position: absolute;
  inset: 0;
  opacity: var(--logo-final-opacity, 1);
  will-change: opacity;
}

#scroll-spacer {
  width: 1px;
  height: 0;
  pointer-events: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2.125rem) clamp(1.5rem, 4vw, 3.5rem);
  text-shadow: 0 2px 10px rgb(0 45 50 / 28%);
}

.site-logo {
  display: block;
  width: auto;
  height: clamp(64px, 6.2vw, 92px);
  filter: drop-shadow(0 2px 14px rgb(0 30 35 / 45%));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-self: start;
}

.site-nav a,
.site-mail {
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.site-nav a:not(:last-child)::after {
  margin-left: 0.65rem;
  content: "\00b7";
}

.site-mail {
  justify-self: end;
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.hero__copy {
  --copy-y: 0vh;
  --copy-scale: 1;

  position: fixed;
  z-index: 1;
  top: 45%;
  left: 30%;
  width: min(34rem, 42vw);
  opacity: var(--copy-opacity, 1);
  transform: translate(-50%, calc(-50% + var(--copy-y))) scale(var(--copy-scale));
  transform-origin: center;
  text-shadow: 0 2px 18px rgb(0 48 52 / 28%);
  will-change: transform, opacity;
}

.hero__copy h1 {
  margin: 0;
  font-size: clamp(64px, 11vw, 190px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.hero__subline {
  max-width: 26ch;
  margin: clamp(1.25rem, 2.25vh, 1.75rem) 0 0;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 400;
  line-height: 1.45;
  opacity: 0.9;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(1.75rem, 4vh, 3rem);
  opacity: var(--cue-opacity, 1);
}

.scroll-cue__line {
  flex: 0 0 1px;
  width: 1px;
  height: 3rem;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}

.scroll-cue__label {
  max-width: 28ch;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__cta {
  position: fixed;
  right: 50%;
  bottom: clamp(1.25rem, 4vw, 3rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 999px;
  color: #fff;
  background: transparent;
  box-shadow: 0 2px 14px rgb(0 48 52 / 14%);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transform: translateX(50%);
  transition: color 180ms ease, background-color 180ms ease;
}

@media (max-width: 56.25rem) {
  .site-header {
    display: flex;
    justify-content: center;
  }

  .site-nav,
  .site-mail {
    display: none;
  }
}

.hero__cta:hover,
.hero__cta:focus-visible {
  color: #1e6266;
  background: #fff;
}

.hero__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

@media (max-width: 44rem) {
  .hero__copy {
    top: 44%;
    left: 50%;
    width: calc(100% - 2.5rem);
    text-align: center;
  }

  .hero__subline {
    margin-right: auto;
    margin-left: auto;
  }

  .scroll-cue {
    justify-content: center;
    text-align: left;
  }

  .hero__cta {
    right: 50%;
    transform: translateX(50%);
    white-space: nowrap;
  }

  .scene-overlay {
    left: 1.25rem;
    width: calc(100% - 2.5rem);
    max-width: 34ch;
  }

  .scene-overlay--wordpair {
    right: 0;
    left: 0;
    width: auto;
    max-width: none;
  }

  .scene-overlay--logo {
    left: var(--logo-x);
    width: var(--logo-w);
    max-width: none;
  }

  .scene-overlay--kontakt {
    left: 50%;
    width: calc(100% - 2.5rem);
    max-width: 42rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-stage {
    background: #0d1f22 url("assets/hero-poster.jpg") center / cover no-repeat;
  }

  .hero__canvas {
    display: none;
  }

  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
  }

  .hero__copy {
    position: absolute;
    opacity: 1;
    transform: translate(-50%, -50%);
    will-change: auto;
  }

  .scroll-cue__line {
    animation: none;
    opacity: 0.75;
  }

  .hero__cta {
    transition: none;
  }

  .scene-overlays {
    position: relative;
    display: grid;
    gap: 2rem;
    width: min(34rem, calc(100% - 2.5rem));
    margin: 72vh auto 7rem;
  }

  .scene-overlay {
    position: static;
    width: 100%;
    max-width: 34ch;
    opacity: 1;
    transform: none;
    visibility: visible;
    will-change: auto;
  }

  .scene-overlays .scene-overlay--chapter {
    width: min(56rem, 100%);
    max-width: none;
  }

  .scene-overlay--wordpair-chapter {
    --p: 1;
  }

  .scene-overlay--wordpair {
    --p: 1;

    display: flex;
    justify-content: flex-start;
    width: 100%;
    max-width: none;
  }

  .scene-overlay--logo {
    position: relative;
    width: min(34rem, 100%);
    max-width: none;
  }

  .scene-overlay--kontakt {
    width: 100%;
    max-width: 42rem;
    text-align: center;
    transform: none;
  }
}


/* Kontakt-Headline auf die gleiche Größe wie alle Kapitel-Headlines */
.scene-overlay--kontakt h2 {
  font-size: clamp(44px, 7.6vw, 112px);
  line-height: .9;
  letter-spacing: -.02em;
}

/* Finale: nur EIN Button — die durchgehende CTA-Pille tritt zurück */
body.is-finale .hero__cta {
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

/* Kontaktblock breiter, damit die Headline zweizeilig bleibt */
.scene-overlay--kontakt {
  width: min(56rem, calc(100vw - 3rem));
}

/* zentrierte Auszeichnungszeile: Linie beidseitig statt nur links */
.scene-overlay--kontakt .scene-overlay__eyebrow {
  justify-content: center;
}

.scene-overlay--kontakt .scene-overlay__eyebrow::after {
  width: 52px;
  height: 1px;
  flex: 0 0 52px;
  background: currentColor;
  opacity: 0.7;
  content: "";
}

@media (max-width: 900px) {
  body.menu-open {
    overflow: hidden;
  }

  .site-header {
    display: flex;
    justify-content: center;
    padding: max(1rem, env(safe-area-inset-top)) 1.25rem 1rem;
  }

  .site-logo {
    height: clamp(38px, 11vw, 52px);
  }

  .site-nav,
  .site-mail {
    display: none;
  }

  .menu-toggle {
    position: fixed;
    top: max(0.75rem, env(safe-area-inset-top));
    right: 0.75rem;
    z-index: 6;
    display: flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .menu-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
  }

  .mobile-menu:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: max(5rem, env(safe-area-inset-top)) 1.25rem max(3rem, env(safe-area-inset-bottom));
    background: rgba(13, 31, 34, 0.94);
    text-align: center;
  }

  .mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
  }

  .mobile-menu__nav a {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;
    text-decoration: none;
  }

  .mobile-menu__mail {
    margin-top: 2.5rem;
    color: #fff;
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
  }

  .scene-overlays::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(to top, rgba(6, 20, 23, 0.72), transparent 42%);
    pointer-events: none;
    content: "";
  }

  .scene-overlay {
    z-index: 1;
  }

  .scene-overlay--chapter {
    right: 1.25rem;
    bottom: calc(clamp(6.5rem, 20vh, 11rem) + env(safe-area-inset-bottom));
    left: 1.25rem;
    width: auto;
    max-width: none;
  }

  .scene-overlay--chapter h2,
  .scene-overlay--kontakt h2 {
    font-size: clamp(34px, 9vw, 52px);
  }

  .scene-overlay__body {
    max-width: none;
    font-size: clamp(15px, 4.2vw, 17px);
  }

  .scene-overlay__keywords {
    font-size: clamp(17px, 4.6vw, 22px);
  }

  .scene-overlay--wordpair {
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    max-width: none;
    font-size: clamp(34px, 9vw, 52px);
  }

  .scene-overlay--wordpair .w1 {
    transform: translateX(calc((1 - var(--p)) * -44vw));
  }

  .scene-overlay--wordpair .w2 {
    transform: translateX(calc((1 - var(--p)) * 44vw));
  }

  .scene-overlay--logo {
    right: auto;
    bottom: auto;
    left: var(--logo-x);
    width: var(--logo-w);
    max-width: none;
  }

  .scene-overlay--kontakt {
    right: auto;
    bottom: auto;
    left: 50%;
    width: calc(100vw - 2.5rem);
    max-width: none;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .hero__cta {
    bottom: calc(clamp(1.25rem, 4vw, 3rem) + env(safe-area-inset-bottom));
  }
}
