/* inter-regular - latin */
@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/inter-v20-latin-regular.woff2") format("woff2");
}

/* inter-700 - latin */
@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/inter-v20-latin-700.woff2") format("woff2");
}

:root {
  /* Schrift */
  --font-family-main: "Inter", Arial, sans-serif;
  --font-size-body: 1rem;
  --font-size-legal-link: 0.92rem;
  --line-height-body: 1.6;
  --line-height-legal-link: 1.08;

  /* Farben */
  --color-black: #000;
  --color-hover: #004655;
  --color-background: #edf2f4;
  --color-intro-background: #fff;
  --color-legal-background: #9cee98;

  /* Animation */
  --intro-video-fade-duration: 2s;
  --intro-navigation-fade-duration: 2s;
  --restart-fade-duration: 1s;
  --return-home-fade-duration: 1.8s;
  --return-home-fade-easing: cubic-bezier(0.4, 0, 0.2, 1);

  /* Desktop-Layout, gemessen am gelieferten Desktop-JPG 1700 × 1080 px */
  --desktop-side-space: 56px;           /* 10 px weiter außen als Version 05 */
  --desktop-logo-top: 42px;             /* 10 px höher als Version 05 */
  --desktop-logo-width: 257px;

  --desktop-actions-center-y: 89px;     /* 10 px höher als Version 05 */
  --desktop-sound-width: 40px;
  --desktop-gap-icon-line: 17px;
  --desktop-gap-line-text: 18px;
  --desktop-divider-width: 2px;
  --desktop-divider-height: 60px;
}

@media (max-width: 1300px) {
  :root {
    /* Stufenlose Verkleinerung von 1300 px bis ca. 500 px Browserbreite. */
    --font-size-legal-link: clamp(0.621rem, calc(0.434125rem + 0.598vw), 0.92rem);
    --desktop-side-space: clamp(28px, calc(10.5px + 3.5vw), 56px);
    --desktop-logo-top: clamp(30px, calc(22.5px + 1.5vw), 42px);
    --desktop-logo-width: clamp(173.7px, calc(121.6375px + 10.4125vw), 257px);

    --desktop-actions-center-y: clamp(61px, calc(43.5px + 3.5vw), 89px);
    --desktop-sound-width: clamp(27px, calc(18.875px + 1.625vw), 40px);
    --desktop-gap-icon-line: clamp(10.8px, calc(6.925px + 0.775vw), 17px);
    --desktop-gap-line-text: clamp(12.6px, calc(9.225px + 0.675vw), 18px);
    --desktop-divider-width: 2px;
    --desktop-divider-height: clamp(40.5px, calc(28.3125px + 2.4375vw), 60px);
  }
}


/* Tablet-Layout: eigene Größen/Positionen für iPad- und Tablet-Ansichten.
   Desktop-Werte oberhalb dieser Breiten bleiben unverändert. */
@media (any-pointer: coarse) and (min-width: 901px) and (max-width: 1180px) and (orientation: landscape) {
  :root {
    --font-size-legal-link: 0.858rem;
    --desktop-side-space: 50px;
    --desktop-logo-top: 41px;
    --desktop-logo-width: 217.8px;

    --desktop-actions-center-y: 75.5px;
    --desktop-sound-width: 38.5px;
    --desktop-gap-icon-line: 15.4px;
    --desktop-gap-line-text: 18.7px;
    --desktop-divider-width: 2.2px;
    --desktop-divider-height: 56.1px;
  }
}

@media (any-pointer: coarse) and (min-width: 700px) and (max-width: 900px) and (orientation: portrait) {
  :root {
    --font-size-legal-link: 0.858rem;
    --desktop-side-space: 50px;
    --desktop-logo-top: 50px;
    --desktop-logo-width: 217.8px;

    --desktop-actions-center-y: 84.5px;
    --desktop-sound-width: 38.5px;
    --desktop-gap-icon-line: 15.4px;
    --desktop-gap-line-text: 18.7px;
    --desktop-divider-width: 2.2px;
    --desktop-divider-height: 57.2px;
  }
}

/* Mobile-Layout: eigene Größen/Positionen für Smartphone-Hoch- und Querformat. */
@media (any-pointer: coarse) and (max-width: 699px) and (orientation: portrait) {
  :root {
    --font-size-legal-link: 0.609rem;
    --desktop-side-space: 20px;
    --desktop-logo-top: 39px;
    --desktop-logo-width: 143.55px;

    --desktop-actions-center-y: 64.62px;
    --desktop-sound-width: 29.58px;
    --desktop-gap-icon-line: 8.7px;
    --desktop-gap-line-text: 13.05px;
    --desktop-divider-width: 1.305px;
    --desktop-divider-height: 45.24px;
  }
}

@media (any-pointer: coarse) and (max-height: 600px) and (orientation: landscape) {
  :root {
    --font-size-legal-link: 0.651rem;
    --desktop-side-space: 23px;
    --desktop-logo-top: 21px;
    --desktop-logo-width: 169.26px;

    --desktop-actions-center-y: 50.145px;
    --desktop-sound-width: 36.27px;
    --desktop-gap-icon-line: 8.37px;
    --desktop-gap-line-text: 12.09px;
    --desktop-divider-width: 1.86px;
    --desktop-divider-height: 49.29px;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-size: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.is-legal-page,
html.is-returning-from-legal {
  background: var(--color-legal-background);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--color-black);
  background: var(--color-background);
  font-family: var(--font-family-main);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
}

.site-home {
  overflow: hidden;
}

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: var(--color-background);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

@supports (height: 100dvh) {
  .hero {
    height: 100dvh;
    min-height: 100dvh;
  }
}

html.is-returning-from-legal body.site-home,
html.is-returning-from-legal .hero {
  background: var(--color-legal-background);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  background: var(--color-intro-background);
  opacity: 0;
  pointer-events: none;
  content: "";
}

.site-home.is-intro-active .hero::before {
  opacity: 1;
}

.is-returning-from-legal .site-home.is-intro-active .hero::before {
  opacity: 0;
}

.site-home.is-intro-active.is-video-visible .hero::before {
  opacity: 0;
  transition: opacity var(--intro-video-fade-duration) ease;
}

.is-returning-from-legal .site-home.is-intro-active .hero__video.is-active {
  opacity: 0;
}

.is-returning-from-legal .site-home.is-intro-active.is-video-visible .hero__video.is-active {
  opacity: 1;
  transition: opacity var(--return-home-fade-duration) var(--return-home-fade-easing);
}

.hero__video {
  position: fixed;
  top: -4px;
  left: -4px;
  display: block;
  width: calc(var(--viewport-width, 100vw) + 8px);
  height: calc(var(--viewport-height, 100vh) + 8px);
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  background: var(--color-background);
  --video-scale: 1;
  --video-y: 0px;
  opacity: 0.001;
  z-index: 0;
  pointer-events: none;
  backface-visibility: hidden;
  transform-origin: var(--pinch-origin-x, 50%) var(--pinch-origin-y, 50%);
  -webkit-transform-origin: var(--pinch-origin-x, 50%) var(--pinch-origin-y, 50%);
  transform: translate3d(0, var(--video-y), 0) scale(var(--video-scale)) scale(var(--pinch-scale, 1));
  -webkit-transform: translate3d(0, var(--video-y), 0) scale(var(--video-scale)) scale(var(--pinch-scale, 1));
  will-change: opacity;
}


.hero__video.is-active {
  opacity: 1;
  z-index: 0;
}

.hero__video--mobile-landscape {
  --video-scale: 1;
  --video-y: 0px;
}

.hero.is-mobile-landscape-media .hero__restart-poster {
  --video-scale: 1;
  --video-y: 0px;
}

@media (any-pointer: coarse) and (max-height: 600px) and (orientation: landscape) {
  .hero__video--mobile-landscape,
  .hero.is-mobile-landscape-media .hero__restart-poster {
    top: 0;
    left: 0;
    width: var(--viewport-width, 100vw);
    height: var(--viewport-height, 100vh);
  }
}

.hero__video--restart {
  opacity: 0;
  z-index: 0;
}

.hero.is-restart-fading .hero__video--restart {
  opacity: 1;
  z-index: 1;
}

.hero.is-restart-fading .hero__video.is-active {
  z-index: 2;
  opacity: 0;
  transition: opacity var(--restart-fade-duration) ease;
}

.hero__restart-poster {
  position: fixed;
  top: -4px;
  left: -4px;
  display: block;
  width: calc(var(--viewport-width, 100vw) + 8px);
  height: calc(var(--viewport-height, 100vh) + 8px);
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  background: var(--color-background);
  --video-scale: 1;
  --video-y: 0px;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  pointer-events: none;
  backface-visibility: hidden;
  transform-origin: var(--pinch-origin-x, 50%) var(--pinch-origin-y, 50%);
  -webkit-transform-origin: var(--pinch-origin-x, 50%) var(--pinch-origin-y, 50%);
  transform: translate3d(0, var(--video-y), 0) scale(var(--video-scale)) scale(var(--pinch-scale, 1));
  -webkit-transform: translate3d(0, var(--video-y), 0) scale(var(--video-scale)) scale(var(--pinch-scale, 1));
  will-change: opacity;
}

.hero.is-tablet-poster-restart .hero__restart-poster {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero.is-tablet-poster-restart .hero__video.is-active {
  z-index: 2;
  opacity: 0;
  transition: opacity var(--restart-fade-duration) ease;
}

.hero.is-tablet-poster-holding .hero__restart-poster {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero.is-tablet-poster-holding .hero__video.is-active {
  z-index: 1;
  opacity: 1;
  transition: none;
}

.hero.is-orientation-changing .hero__video,
.hero.is-orientation-changing .hero__restart-poster {
  transition: none !important;
}

.hero.is-video-pinch-zooming .hero__video,
.hero.is-video-pinch-zooming .hero__restart-poster {
  transition: none !important;
  will-change: transform, opacity;
}

.hero.is-video-pinch-resetting .hero__video,
.hero.is-video-pinch-resetting .hero__restart-poster {
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.site-header {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
}

.site-home.is-intro-active .site-header {
  opacity: 0;
  pointer-events: none;
}

.site-home.is-intro-active.is-navigation-visible .site-header {
  opacity: 1;
  pointer-events: auto;
  transition: opacity var(--intro-navigation-fade-duration) ease;
}

.is-returning-from-legal .site-home.is-intro-active.is-navigation-visible .site-header {
  transition: opacity var(--return-home-fade-duration) var(--return-home-fade-easing);
}

.site-logo {
  position: absolute;
  top: var(--desktop-logo-top);
  left: var(--desktop-side-space);
  display: block;
  width: var(--desktop-logo-width);
  line-height: 0;
}

.site-logo__image {
  display: block;
  width: 100%;
  height: auto;
}

.site-logo__image--hover {
  display: none;
}

.site-logo:hover .site-logo__image--normal {
  display: none;
}

.site-logo:hover .site-logo__image--hover {
  display: block;
}

.header-actions {
  position: absolute;
  top: calc(var(--desktop-actions-center-y) - (var(--desktop-divider-height) / 2));
  right: var(--desktop-side-space);
  display: grid;
  grid-template-columns:
    var(--desktop-sound-width)
    var(--desktop-gap-icon-line)
    var(--desktop-divider-width)
    var(--desktop-gap-line-text)
    max-content;
  align-items: center;
  height: var(--desktop-divider-height);
}

.sound-button {
  grid-column: 1;
  display: block;
  width: var(--desktop-sound-width);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-black);
  cursor: pointer;
  line-height: 0;
}

.sound-button__icon {
  display: none;
  width: 100%;
  height: auto;
}

.sound-button:not(.is-sound-on) .sound-button__icon--normal.sound-button__icon--turn-on,
.sound-button.is-sound-on .sound-button__icon--normal.sound-button__icon--turn-off {
  display: block;
}

.sound-button:hover:not(.is-sound-on) .sound-button__icon--normal.sound-button__icon--turn-on,
.sound-button:hover.is-sound-on .sound-button__icon--normal.sound-button__icon--turn-off {
  display: none;
}

.sound-button:hover:not(.is-sound-on) .sound-button__icon--hover.sound-button__icon--turn-on,
.sound-button:hover.is-sound-on .sound-button__icon--hover.sound-button__icon--turn-off {
  display: block;
}

.header-divider {
  grid-column: 3;
  display: block;
  width: var(--desktop-divider-width);
  height: var(--desktop-divider-height);
  background: var(--color-black);
}


.legal-link {
  grid-column: 5;
  display: block;
  width: max-content;
  color: var(--color-black);
  font-size: var(--font-size-legal-link);
  font-weight: 700;
  line-height: var(--line-height-legal-link);
  text-decoration: none;
  white-space: nowrap;
}

.legal-link:hover {
  color: var(--color-hover);
}

.legal-link__line {
  white-space: nowrap;
}

.sound-button:focus-visible,
.legal-link:focus-visible,
.site-logo:focus-visible {
  outline: 0.125rem solid var(--color-black);
  outline-offset: 0.35rem;
}

/* Kontakt, Impressum und Datenschutz */
@keyframes legal-page-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.site-legal {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--color-legal-background);
  opacity: 0;
  animation: legal-page-fade-in 0.55s ease forwards;
}

.site-legal.is-page-leaving {
  opacity: 0;
  animation: none;
  transition: opacity 0.45s ease;
}

.site-legal .site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 100vh;
  pointer-events: none;
}

.site-legal .site-logo {
  pointer-events: auto;
}

.site-legal .header-actions {
  right: calc(var(--desktop-side-space) - (100vw - 100%));
}

.site-legal .sound-button--static,
.site-legal .legal-link--static {
  cursor: default;
  pointer-events: none;
}

.site-legal .legal-link--static:hover {
  color: var(--color-black);
}

.legal-page {
  width: 100%;
  padding: 232px clamp(56px, 6.18vw, 105px) 150px;
}

.legal-section {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  column-gap: 45px;
  max-width: 1210px;
  padding-top: 17px;
  border-top: 2px solid var(--color-black);
}

.legal-section + .legal-section {
  margin-top: 72px;
}

.legal-section__title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.04;
}

.legal-section__date {
  display: block;
  margin-top: 0.75em;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.22;
}

.legal-section__content {
  max-width: 845px;
  padding-top: 7px;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.22;
}

.legal-section__content p {
  margin: 0 0 1.28em;
}

.legal-section__content p:last-child {
  margin-bottom: 0;
}

.legal-section__content h3 {
  margin: 0 0 1.28em;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.22;
}

.legal-section__content h3:not(:first-child) {
  margin-top: 2.75em;
}

.legal-section__content a {
  color: var(--color-black);
  text-decoration: none;
}

.legal-section__content a:hover {
  color: var(--color-hover);
}

.legal-stand {
  margin-bottom: 2.75em;
}

@media (any-pointer: coarse) and (max-height: 600px) and (orientation: landscape) {
  .legal-section__content {
    font-size: 0.7rem;
  }
}

@media (max-width: 900px) {
  .legal-page {
    padding-top: 190px;
  }

  .legal-section {
    grid-template-columns: 1fr;
    row-gap: 22px;
  }

  .legal-section__content {
    max-width: none;
    padding-top: 0;
  }
}
