/* Agentum Landingpage – Stylesheet
   CI-Farben laut Brand-Vorgabe, Agentum-Schrift FK Grotesk selbst
   gehostet (aus brand/fonts/woff2). Keine externen Ressourcen. */

@font-face {
  font-family: "FK Grotesk";
  src: url("fonts/FKGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FK Grotesk";
  src: url("fonts/FKGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FK Grotesk";
  src: url("fonts/FKGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue:        #092447;
  --pink:        #F92FBE;
  --lime:        #AFE301;
  --white:       #FFFFFF;
  --silver:      #F1F1F1;

  --ink:         #092447;
  --ink-soft:    #43536A;
  --rule-light:  rgba(9, 36, 71, 0.14);
  --on-blue:     rgba(255, 255, 255, 0.80);
  --rule-dark:   rgba(255, 255, 255, 0.16);

  --font: "FK Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --page:    1240px;
  --gutter:  clamp(20px, 5vw, 64px);
  --section: clamp(72px, 9vw, 132px);
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 5vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.85rem); }
h3 { font-size: clamp(1.15rem, 1.5vw, 1.3rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--lime);
  color: var(--blue);
  font-weight: 500;
}
.skip-link:focus { left: 0; }

/* ---------- Grundbausteine ---------- */

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

.section { padding-block: var(--section); }

.section--silver { background: var(--silver); }
.section--compact { padding-block: clamp(60px, 7vw, 96px); }
.section--white  { background: var(--white); }

.section--blue,
.surface-blue {
  background: var(--blue);
  color: var(--white);
}
.section--blue p,
.surface-blue p { color: var(--on-blue); }
.section--blue :focus-visible,
.surface-blue :focus-visible { outline-color: var(--lime); }

.label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
}
.label::before {
  content: "";
  flex: none;
  width: 40px;
  height: 2px;
  background: var(--lime);
}

.lead {
  max-width: 58ch;
  margin-top: 28px;
  font-size: clamp(1.0625rem, 1.25vw, 1.175rem);
}

.button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--lime);
  color: var(--blue);
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.18s ease;
}
.button:hover { background: #c2f320; }

section[id] { scroll-margin-top: 24px; }

/* ---------- Header ---------- */

.site-header {
  padding-block: clamp(22px, 3vw, 34px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__logo { display: block; flex: none; }
.site-header__logo img {
  width: clamp(148px, 17vw, 196px);
  aspect-ratio: 999 / 306.75;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--rule-dark);
  border-radius: 3px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.nav-toggle__bars { display: block; width: 18px; height: 9px; position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: currentColor;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after  { bottom: 0; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.6vw, 38px);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.6vw, 38px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  text-decoration: none;
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.nav__link:hover {
  color: var(--white);
  border-bottom-color: var(--lime);
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(48px, 7vw, 92px);
  padding-bottom: clamp(76px, 10vw, 140px);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(48px, 7vw, 104px);
}

.hero__title { max-width: 16ch; }

.hero__mark {
  justify-self: center;
  width: clamp(270px, 37vw, 480px);
}

/* ---------- Editoriales Zwei-Spalten-Layout ---------- */

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.editorial__title { max-width: 15ch; }

.editorial__body { max-width: 56ch; }
.editorial__body p + p { margin-top: 0; }

/* ---------- Abschnitt: Einsatzmoeglichkeiten ---------- */

.section-head {
  max-width: 24ch;
  margin-bottom: clamp(52px, 6vw, 84px);
}

.modules {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(56px, 8vw, 120px);
  row-gap: clamp(52px, 6vw, 84px);
}

.modules::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--rule-light);
}

.item__number {
  display: block;
  margin-bottom: 18px;
  color: var(--pink);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.item__text {
  margin-top: 14px;
  max-width: 44ch;
  color: var(--ink-soft);
}

/* ---------- Abschnitt: Vorgehen ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(52px, 6vw, 84px);
}

.steps > .item {
  padding-inline: clamp(22px, 2.4vw, 38px);
}

/* Kurze Absaetze umbrechen sonst treppenfoermig. balance gleicht die
   Zeilenlaengen aus, ohne feste Umbrueche in den Text zu setzen. */
.steps .item__text {
  max-width: 38ch;
  text-wrap: balance;
}
.steps > .item:first-child { padding-inline-start: 0; }
.steps > .item:last-child  { padding-inline-end: 0; }
.steps > .item + .item { border-inline-start: 1px solid var(--rule-light); }

/* ---------- Abschnitt: Infrastruktur ---------- */

.infra {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
  gap: clamp(48px, 7vw, 104px);
}

.infra__title { max-width: 18ch; }

/* Die Medienspalte steuert ihre Hoehe nicht selbst: die Figure liegt
   absolut in der Zelle, dadurch ergibt sich die Zeilenhoehe allein aus
   der Textspalte links. Die Karte fuellt darin den Raum ueber den
   Begriffen - oben buendig, Begriffe auf Hoehe der letzten Textzeile. */
.infra__media {
  position: relative;
  min-height: 300px;
}

.infra__figure {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 4vw, 44px);
}

/* flex-basis 0 haelt die Eigenhoehe der Karte aus der Zeilenberechnung
   heraus: die Spaltenhoehe kommt aus der Textspalte links, die Karte
   fuellt den Rest. Dadurch sitzt sie oben buendig und die Begriffe
   liegen auf Hoehe der letzten Textzeile. */
.infra__map {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  max-width: clamp(220px, 30vw, 380px);
  height: auto;
  object-fit: contain;
  object-position: center top;
}

.infra__terms { flex: none; }

.infra__terms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 3.5vw, 44px);
  margin: 0;
  color: var(--pink);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Abschnitt: Kontakt ---------- */

/* CTA innerhalb eines Textblocks - gleiche Klasse .button, also
   identische Proportionen wie Header- und Kontakt-CTA. */
.editorial__body .button { margin-top: clamp(28px, 3.5vw, 40px); }

.contact__title { max-width: 20ch; }
.contact .button { margin-top: clamp(32px, 4vw, 44px); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--blue);
  color: var(--white);
  border-top: 1px solid var(--rule-dark);
  padding-block: clamp(52px, 6vw, 80px);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: start;
  gap: clamp(32px, 5vw, 64px);
}

/* Das Original-SVG bringt seinen Schutzraum mit: die Marke fuellt 57,0 %
   der Boxhoehe und 70,7 % der Breite, oben bleiben 21,5 %, rechts 14,7 %
   frei. Boxhoehe 9,74em ergibt damit exakt 5,55em sichtbare Hoehe - so
   hoch wie der dreizeilige Adressblock (3 x line-height 1,85). Die
   negativen Versaetze holen den Schutzraum heraus, damit die Marke oben
   mit der ersten Textzeile und rechts mit der Inhaltskante abschliesst. */
.site-footer__mark {
  height: 9.74em;
  width: auto;
  margin-top: -2.1em;
  margin-right: -1.44em;
  justify-self: end;
}

.site-footer address {
  font-style: normal;
  color: var(--on-blue);
  line-height: 1.85;
}

.site-footer__name { color: var(--pink); font-weight: 500; }

.site-footer a { color: var(--on-blue); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.85;
}

.footer-links a { display: inline-block; }

/* ---------- Rechtstexte ---------- */

.legal { padding-block: clamp(56px, 7vw, 96px); }

.legal__title { margin-bottom: clamp(32px, 4vw, 48px); }

.legal__body { max-width: 68ch; }

.legal__body h2 {
  margin-top: clamp(38px, 4.5vw, 56px);
  margin-bottom: 14px;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.legal__body p { color: var(--ink-soft); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero__inner,
  .editorial,
  .infra {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__inner { gap: clamp(44px, 9vw, 64px); }
  .hero__title, .editorial__title, .infra__title { max-width: 22ch; }
  .hero__mark { justify-self: start; width: clamp(225px, 59vw, 340px); }

  .modules {
    grid-template-columns: minmax(0, 1fr);
    row-gap: clamp(44px, 9vw, 60px);
  }
  .modules::before { display: none; }

  .steps { grid-template-columns: minmax(0, 1fr); row-gap: clamp(44px, 9vw, 60px); }
  .steps > .item { padding-inline: 0; }
  .steps > .item + .item { border-inline-start: 0; }

  /* einspaltig: Karte wieder mit eigener Groesse, keine Hoehenkopplung */
  .infra__media { position: static; min-height: 0; }
  .infra__figure { position: static; align-items: flex-start; }
  .infra__map {
    flex: none;
    width: clamp(220px, 45vw, 340px);
    max-width: 100%;
    object-fit: fill;
  }
  .infra__terms { justify-content: flex-start; }

  .item__text, .lead, .editorial__body { max-width: none; }
  .steps .item__text { max-width: none; }

  /* Footer: die Bereiche untereinander */
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 5vw, 40px);
  }
  .site-footer__mark {
    height: 7.9em;
    margin-top: -1.7em;
    margin-right: 0;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .has-js .nav-toggle { display: inline-flex; }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    order: 3;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--rule-dark);
  }
  .has-js .nav { display: none; }
  .has-js .nav[data-open="true"] { display: flex; }

  .site-header__inner { flex-wrap: wrap; }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    margin-bottom: 22px;
  }
  .nav__list li { width: 100%; }
  .nav__link {
    display: block;
    width: 100%;
    padding-block: 12px;
    font-size: 1.0625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
