/* ------------------------------------------------------------------
   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;
  --ticker-offset: 0px; /* Höhe der Hinweisleiste, falls sie angezeigt wird (siehe .ticker ~ main) */
  --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: 2.25rem; width: auto; }

.site-header__contact {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
}
.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)
------------------------------------------------------------------ */
/* Startbildschirm füllt immer genau den ersten Bildschirm – mit Hinweisleiste darüber um deren Höhe kürzer */
.ticker ~ main { --ticker-offset: var(--ticker-h); }
.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-offset));
  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__eyebrow {
  margin-bottom: 1.25rem;
  color: var(--akzent);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* Unterseiten: niedrigerer Startbildschirm, damit der Inhalt früher beginnt */
.hero--page { min-height: min(calc(100svh - var(--ticker-offset)), 42rem); }
/* nur Text, ohne Lichtband – für Seiten, deren Inhalt sofort sichtbar sein soll */
.hero--compact { min-height: 0; }
.hero--compact .hero__inner { padding-block: 2.5rem clamp(3rem, 6vw, 4.5rem); }
.hero--compact .hero__copy { grid-column: 1 / -1; max-width: 46rem; }

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

/* Pfeil nach unten: springt und führt zum nächsten Abschnitt */
.hero__scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(1rem, 3svh, 2rem);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-left: -1.5rem;
  border-radius: 50%;
  color: var(--on-dark-muted);
  transition: color 0.18s ease;
}
.hero__scroll:hover { color: var(--akzent); }
.hero__scroll svg { width: 1.75rem; height: 1.75rem; animation: hero-bounce 1.8s infinite; }
@keyframes hero-bounce {
  /* fällt beschleunigt nach unten und federt abgebremst zurück */
  0%, 100% { transform: translateY(0); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: translateY(0.625rem); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

/* 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;
  /* alle Leistungen in einer Reihe, egal wie viele */
  grid-auto-flow: column;
  grid-auto-columns: 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;
}
/* Größe kommt als width/height vom Server (lib/logos.js), damit alle Logos optisch gleich groß wirken */
.marquee__logo {
  filter: grayscale(1);
  opacity: 0.65;
}
.marquee__logo:not([height]) { height: 1.75rem; width: auto; }
/* helle Logos für dunklen Grund: Helligkeit umkehren, damit sie auf Weiß lesbar sind */
.marquee__logo--invert { filter: grayscale(1) invert(1) contrast(1.4); opacity: 0.75; }

@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;
}
.cta__note {
  margin-top: 1.75rem;
  color: var(--ink-muted);
  font-size: var(--step--1);
}
.cta__note a { color: inherit; text-underline-offset: 0.2em; }
.cta__note a:hover { color: var(--ink); }

/* ------------------------------------------------------------------
   Karriere
------------------------------------------------------------------ */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section + .section { border-top: 1px solid var(--line); }
.section__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 1.75rem;
}
.section__title {
  grid-column: span 3;
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.35;
}
.section__body { grid-column: span 9; }

.perks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem var(--gutter);
}

/* Stellen: aufklappbar, ohne JavaScript */
.jobs { border-top: 1px solid var(--line); }
.job { border-bottom: 1px solid var(--line); }
.job__summary {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1.5rem;
  padding: 1.375rem 3rem 1.375rem 0;
  cursor: pointer;
  list-style: none;
}
.job__summary::-webkit-details-marker { display: none; }
/* Plus, das beim Öffnen zum Minus wird */
.job__summary::before,
.job__summary::after {
  content: '';
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 0.875rem;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease;
}
.job__summary::after { transform: rotate(90deg); }
.job__details[open] .job__summary::after { transform: rotate(0deg); }
.job__title {
  font-size: var(--step-1);
  font-weight: 600;
  transition: color 0.18s ease;
}
.job__summary:hover .job__title { color: var(--primary); }
.job__meta { color: var(--ink-muted); font-size: 0.9375rem; }

.job__body { padding-bottom: 2.25rem; }
.job__intro { max-width: 60ch; color: var(--ink-muted); text-wrap: pretty; }
.job__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem var(--gutter);
  margin-top: 1.75rem;
}
.job__label { margin-bottom: 0.5rem; font-size: 0.9375rem; font-weight: 600; }
.job__list li {
  position: relative;
  padding-left: 1.125rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}
.job__list li + li { margin-top: 0.375rem; }
.job__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 1px;
  background: var(--primary);
}
.job__apply { margin-top: 2rem; }
.jobs__empty { max-width: 48ch; color: var(--ink-muted); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.25rem var(--gutter);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Nummer im Stil der Wortmarke */
.steps__num {
  display: grid;
  place-items: center;
  width: 1.875rem;
  height: 1.875rem;
  margin-bottom: 1rem;
  border-radius: 0.3125rem;
  background: var(--akzent);
  color: var(--secondary);
  font-size: 0.8125rem;
  font-weight: 700;
}

/* ------------------------------------------------------------------
   Erstgespräch (Kalender von Cal.com)
------------------------------------------------------------------ */
.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 1.75rem;
  font-size: 0.9375rem;
}
.hero__points li { position: relative; padding-left: 1.125rem; }
.hero__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 1px;
  background: var(--akzent);
}

/* oben wenig Abstand: der Kalender bringt eigenen Innenabstand mit */
.booking { padding-block: 1rem var(--space); }
/* Platz reservieren, damit die Seite beim Laden des Kalenders nicht springt */
.booking__embed { width: 100%; min-height: 40rem; overflow: auto; }
.booking__email { margin-top: 2rem; text-align: center; }
.booking__email a { color: var(--primary); font-weight: 500; text-underline-offset: 0.2em; }
.booking__email a:hover { color: var(--ink); }
.booking__note {
  margin-top: 1.5rem;
  color: var(--ink-muted);
  font-size: var(--step--1);
  text-align: center; /* wie der Kalender mittig */
}
.booking__note a { color: inherit; text-underline-offset: 0.2em; }
.booking__note a:hover { color: var(--ink); }

/* ------------------------------------------------------------------
   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; }
.legal .legal__stand { margin-top: 3rem; color: var(--ink-muted); font-size: var(--step--1); }

/* ------------------------------------------------------------------
   Responsiv
------------------------------------------------------------------ */
@media (max-width: 1100px) {
  /* Leistungen: zwei Spalten statt einer engen Reihe */
  .focus__grid { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.25rem; }
}

@media (max-width: 960px) {
  .hero--page { min-height: 0; }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'visual' 'copy';
    align-content: center; /* bei voller Höhe Bild und Text gemeinsam mittig */
    padding-top: 0.5rem;
  }
  /* höchstens 45 % der Bildschirmhöhe, damit quer gehaltene Handys noch die Überschrift zeigen */
  .hero__visual { min-height: 0; height: min(clamp(15rem, 62vw, 24rem), 45svh); margin-bottom: 1.5rem; }

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

  .section__title,
  .section__body { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

@media (max-width: 420px) {
  /* Kopfzeile einzeilig halten: Logo allein, der Link trägt den Namen per aria-label */
  .brand__word { display: none; }
}

@media (max-width: 600px) {
  .focus__grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .perks,
  .steps,
  .job__cols { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__item,
  .job__summary::after { transition: none; }
  .hero__scroll svg { animation: 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; }
}
