@font-face {
  font-family: 'Natural Mono';
  src: url('fonts/Natural Mono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype-variations'),
       url('fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --page-max: 1440px;
  --color-bg: #FFFFF7;
  --color-ink: #302F35;
  --color-lime: #A5CA56;
  --color-darkblue: #313F94;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--color-bg); }

body {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 80px;
}

.site-header a {
  color: var(--color-ink);
  text-decoration: none;
  text-transform: uppercase;
  font-family: 'Natural Mono', monospace;
  font-size: 20px;
}

.site-header__nav {
  display: contents;
}

.nav-toggle {
  display: none;
}

.banner-scope {
  position: relative;
}

.banner {
  position: sticky;
  top: var(--header-h, 71px);
  z-index: 20;
  height: 35px;
  background: var(--color-lime);
  overflow: hidden;
}

.banner-track {
  display: flex;
  width: max-content;
  animation: banner-move 40s linear infinite;
}

.banner-group {
  display: flex;
  align-items: center;
  gap: 80px;
  padding-right: 80px;
  white-space: nowrap;
}

.banner-group p {
  font-size: 22px;
  line-height: 35px;
  text-transform: uppercase;
  color: var(--color-darkblue);
}

.banner-group .b-strong { font-weight: 700; }

@keyframes banner-move {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .banner-track { animation: none; }
}

.hero {
  position: relative;
  width: 100%;
  max-width: var(--page-max);
  margin: 28px auto 0;
  padding: 0 80px;
  cursor: none;
}

#samba-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

#samba-svg .letter,
.lens-content .letter {
  fill: #000;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill 0.45s ease;
  will-change: transform;
}

.cursor-lens {
  position: absolute;
  top: 0;
  left: 0;
  width: 230px;
  height: 230px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  background: #FFFFF7;
  transition: opacity 0.3s ease;
  will-change: transform;
}

.hero.is-active .cursor-lens { opacity: 1; }

.hero.touch-mode { cursor: auto; }

.hero.touch-mode .cursor-lens {
  pointer-events: auto;
  touch-action: none;
}

.lens-content {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.lens-content svg { display: block; }

.lens-refract {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(circle, transparent 0 58%, black 76% 100%);
  mask-image: radial-gradient(circle, transparent 0 58%, black 76% 100%);
}

.lens-refract svg {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.lens-tint {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  opacity: 0.22;
  transition: background 1s ease;
}

.text-flow {
  position: relative;
  width: min(965px, calc(100% - 96px));
  margin: 140px auto 0;
  font-family: 'Natural Mono', monospace;
  font-size: 16px;
  line-height: normal;
  color: #000;
}

.text-flow p {
  margin-left: var(--tf-left);
  width: var(--tf-width);
  text-wrap: pretty;
}

.text-flow p:nth-child(odd)  { --tf-left: 6%;    --tf-width: 46.8%; }
.text-flow p:nth-child(even) { --tf-left: 19%;   --tf-width: 40.5%; }

.sponsors {
  margin-top: 160px;
  padding-bottom: 240px;
  text-align: center;
}

.sponsors-label {
  font-size: 20px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.sponsors-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.sponsors-row img {
  width: auto;
  object-fit: contain;
}

.sponsors-row .logo-datev          { height: 149px; }
.sponsors-row .logo-wildner        { height: 102px; }
.sponsors-row .logo-spielwarenmesse { height: 134px; }
.sponsors-row .logo-dijk           { height: 110px; }

@media (max-width: 900px) {
  .site-header { padding: 20px 24px; }
  .site-header a { font-size: 16px; }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav-toggle img { width: 100%; height: 100%; display: block; }

  .site-header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 24px 28px;
    background: var(--color-bg);
    border-top: 1px solid rgba(48, 47, 53, 0.12);
    box-shadow: 0 12px 24px rgba(48, 47, 53, 0.08);
  }

  .site-header__nav.is-open { display: flex; }

  .banner-group p { font-size: 16px; }
  .hero { padding: 0 24px; }
  .text-flow { width: calc(100% - 48px); margin-top: 100px; }
  .sponsors { margin-top: 100px; padding-bottom: 100px; padding-left: 24px; padding-right: 24px; }
  .sponsors-row { gap: 32px; }
  .sponsors-row .logo-datev          { height: 100px; }
  .sponsors-row .logo-wildner        { height: 70px; }
  .sponsors-row .logo-spielwarenmesse { height: 90px; }
  .sponsors-row .logo-dijk           { height: 75px; }
}

@media (max-width: 640px) {
  /* Gestapelte SAMBA-Buchstaben: laufen wie im Figma-Entwurf seitlich aus dem Bild.
     Kein overflow:hidden auf .hero, damit rotierende Buchstaben nicht an der Hero-Box
     abgeschnitten werden; seitliches Scrollen unterbindet stattdessen das Clipping
     an der Viewport-Kante (html), wo die Buchstaben ohnehin aus dem Bild laufen. */
  html { overflow-x: hidden; overflow-x: clip; }
  .hero { padding: 0; }
  #samba-svg.samba-mobile { width: 127.62%; margin-left: -13.68%; }

  .text-flow p { margin-left: 0; width: 100%; }
  .text-flow p + p { margin-top: 1em; }

  .sponsors-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    align-items: center;
    row-gap: 32px;
    column-gap: 16px;
  }

  .sponsors-row img {
    width: auto;
    max-width: 100%;
    height: auto;
  }

  .sponsors-row .logo-datev          { max-height: 90px; }
  .sponsors-row .logo-wildner        { max-height: 60px; }
  .sponsors-row .logo-spielwarenmesse { max-height: 70px; }
  .sponsors-row .logo-dijk           { max-height: 65px; }
}
