/* ------------------------------------------------------------------
   Schrift: Poppins (lokal ausgeliefert)
------------------------------------------------------------------ */
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins/poppins-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins/poppins-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins/poppins-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins/poppins-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------
   Tokens
------------------------------------------------------------------ */
:root {
  --primary: #256362;
  --secondary: #112b36;
  --akzent: #b4e717;
  --akzent-hover: #c5f03f;
  --white: #ffffff;

  /* Auf hellem Grund */
  --ink: var(--secondary);
  --ink-muted: #4c6169; /* Kontrast auf Weiß 6,4:1 */
  --line: rgba(17, 43, 54, 0.12);

  /* Auf dem Verlauf */
  --on-dark: #f5f2f0;
  --on-dark-muted: #c9dedd;
  --line-dark: rgba(245, 242, 240, 0.22);

  /* Startbildschirm: Secondary → Primary, Akzent als leichter Schimmer hinter der „23“ */
  --stage-gradient:
    radial-gradient(55% 65% at 82% 48%, rgba(180, 231, 23, 0.14), rgba(180, 231, 23, 0) 70%),
    linear-gradient(155deg, var(--secondary) 0%, #1a454b 50%, var(--primary) 100%);

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  --step-3: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem);

  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3rem);
  --max: 1280px;
  --space: clamp(5rem, 10vw, 9rem);
  --ticker-h: 2.25rem;
  --header-h: 5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, canvas { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}
.ticker :focus-visible,
.has-stage .site-header :focus-visible,
.hero :focus-visible { outline-color: var(--akzent); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--akzent);
  color: var(--secondary);
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 0.5rem; }

/* ------------------------------------------------------------------
   Buttons und Textlink
------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0.6875rem 1.375rem;
  border-radius: 999px;
  font: 500 0.9375rem / 1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease;
}
/* Akzent nur auf dem dunklen Verlauf – auf Weiß wäre Hellgrün zu kontrastarm */
.btn--accent { background: var(--akzent); color: var(--secondary); }
.btn--accent:hover { background: var(--akzent-hover); }

.btn--dark { background: var(--secondary); color: var(--white); }
.btn--dark:hover { background: var(--primary); }

.text-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.3em;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}
.text-link:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ------------------------------------------------------------------
   Hinweisleiste
------------------------------------------------------------------ */
.ticker {
  position: relative;
  z-index: 3;
  background: var(--secondary);
  font-size: var(--step--1);
  color: var(--on-dark-muted);
}
.ticker__inner {
  display: flex;
  align-items: center;
  min-height: var(--ticker-h);
}
.ticker__list { position: relative; flex: 1; min-width: 0; min-height: 1.5em; }
.ticker__item {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 1rem;
  align-items: baseline;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.ticker__item.is-active { opacity: 1; pointer-events: auto; }
.ticker__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ticker__link {
  flex: none;
  color: var(--on-dark);
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}
.ticker__link:hover { color: var(--akzent); }

/* ------------------------------------------------------------------
   Kopfzeile
   Auf Seiten mit Startbildschirm liegt sie transparent über dem Verlauf.
------------------------------------------------------------------ */
.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
}
.has-stage .site-header { border-bottom-color: transparent; color: var(--on-dark); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  font-weight: 500;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 0.3125rem;
  background: var(--akzent);
  color: var(--secondary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand__word { font-size: var(--step-0); }
.brand__img { height: 1.875rem; width: auto; }

.site-header__contact {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
}
.site-header__contact:hover { color: var(--ink); }
.has-stage .site-header__contact { color: var(--on-dark-muted); }
.has-stage .site-header__contact:hover { color: var(--on-dark); }

/* ------------------------------------------------------------------
   Startbildschirm (Hero)
------------------------------------------------------------------ */
.hero {
  /* zieht sich unter die Kopfzeile, damit der Verlauf beide abdeckt */
  margin-top: calc(-1 * var(--header-h) - 1px);
  padding-top: calc(var(--header-h) + 1px);
  min-height: calc(100svh - var(--ticker-h));
  display: flex;
  background: var(--secondary);
  background: var(--stage-gradient);
  color: var(--on-dark);
}
.hero__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas: 'copy copy copy copy copy copy copy visual visual visual visual visual';
  align-items: center;
  column-gap: var(--gutter);
  padding-block: 2rem clamp(4rem, 8vw, 7rem);
}
.hero__copy { grid-area: copy; }
.hero__visual {
  grid-area: visual;
  align-self: stretch;
  position: relative;
  min-height: 20rem;
}
.hero__title {
  max-width: 15ch;
  font-size: var(--step-3);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__text {
  max-width: 30rem;
  margin-top: 1.5rem;
  color: var(--on-dark-muted);
  font-size: var(--step-1);
  line-height: 1.6;
  text-wrap: pretty;
}
.hero__cta { margin-top: 2.25rem; }

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Lichtband über den ganzen Startbildschirm, hinter dem Text */
.hero { position: relative; overflow: hidden; }
.hero__inner { position: relative; z-index: 1; }
.ribbon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* weiches Leuchten: kleine Fläche, gestreckt und aufhellend überlagert */
.ribbon--glow { mix-blend-mode: screen; }
.hero__video { object-fit: cover; border-radius: 0.5rem; }

/* ------------------------------------------------------------------
   Leistungen
------------------------------------------------------------------ */
.focus { padding-block: var(--space); }
.focus__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}
.focus__item-title {
  font-size: var(--step-0);
  font-weight: 600;
}
.focus__item-text {
  max-width: 34ch;
  margin-top: 0.375rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

/* ------------------------------------------------------------------
   Kunden
------------------------------------------------------------------ */
.clients { padding-bottom: var(--space); }
.clients__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: center;
}
.clients__title {
  grid-column: span 2;
  font-size: 0.9375rem;
  font-weight: 600;
}
.marquee {
  grid-column: span 10;
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4rem;
  padding-right: 4rem;
  animation: marquee 45s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { flex: none; }
.marquee__name {
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
}
.marquee__logo {
  height: 1.75rem;
  width: auto;
  filter: grayscale(1);
  opacity: 0.65;
}

@keyframes marquee {
  to { transform: translateX(-100%); }
}

/* ------------------------------------------------------------------
   Abschluss
------------------------------------------------------------------ */
.cta {
  padding-block: var(--space);
  border-top: 1px solid var(--line);
}
.cta__title {
  max-width: 20ch;
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}

/* ------------------------------------------------------------------
   Fußzeile
------------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: var(--step--1);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem 3rem;
  padding-block: 2.5rem;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover,
.site-footer__links a[aria-current='page'] { color: var(--ink); }

/* ------------------------------------------------------------------
   Rechtstexte
------------------------------------------------------------------ */
.legal {
  max-width: calc(42rem + 2 * var(--gutter));
  padding-block: clamp(3rem, 8vw, 6rem) var(--space);
}
.legal__title {
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 2.5rem;
}
.legal__note {
  margin-bottom: 2rem;
  padding: 0.75rem 1rem;
  border-left: 2px solid var(--primary);
  font-size: 0.875rem;
}
.legal h2 {
  margin-top: 2rem;
  margin-bottom: 0.375rem;
  font-size: var(--step-0);
  font-weight: 600;
}
.legal p { font-size: 0.9375rem; }
.legal p + p { margin-top: 0.75rem; }
.legal a { color: var(--primary); text-underline-offset: 0.2em; }
.legal__contact { font-weight: 600; }

/* ------------------------------------------------------------------
   Responsiv
------------------------------------------------------------------ */
@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'visual' 'copy';
    padding-top: 0.5rem;
  }
  .hero__visual { min-height: 0; height: clamp(15rem, 62vw, 24rem); margin-bottom: 1.5rem; }

  .focus__grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }

  .clients__title,
  .marquee { grid-column: 1 / -1; }
  .marquee { margin-top: 1.25rem; }

  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__item { transition: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; flex: 1; gap: 1rem 3rem; padding-right: 0; }
  .marquee__track[aria-hidden='true'] { display: none; }
}
