@import url("fonts.css");

/* ==========================================================================
   Design tokens — extracted from Figma (lector-website-neu)
   ========================================================================== */
:root {
  --blue-main: #2c7bff;
  --blue-medium: #9fc3ff;
  --blue-light: #e2f4ff;
  --blue-very-light: #f6fcff;
  --blue-dark: #0e3c69;
  --blue-dark-2: #00173e;
  --plum-main: #ba00c4;
  --plum-medium: #d988de;
  --plum-light: #f2bdf5;
  --gray-1: #ededed;
  --black: #000000;
  --white: #ffffff;
  --text-body: #2b2b2b;
  --text-muted: #343434;

  --font-head: "Cabin", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;

  /* horizontal page gutter — 80px in the 1440px Figma frame */
  --gutter: 80px;
  --page-max: 1440px;
  --nav-h: 80px;

  /* Width of the strip on each side of the 1440px design frame that section
     backgrounds bleed into. Overridden per section below; 0 up to 1440px and
     on browsers without container queries. */
  --bleed: 0px;
}

@media (max-width: 1100px) {
  :root { --gutter: 40px; }
}
@media (max-width: 700px) {
  :root { --gutter: 20px; --nav-h: 64px; }
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* `clip` (not `hidden`) so the body does not become a scroll container */
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
/* keep the aspect ratio when only the width is constrained (the width/height
   attributes would otherwise pin the height) */
img { height: auto; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid var(--blue-main); outline-offset: 2px; }
/* wins over component `display` declarations */
[hidden] { display: none !important; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.page {
  max-width: var(--page-max);
  margin: 0 auto;
  position: relative;
  /* clip sideways only — the glows have to be free to bleed past the top
     and bottom of their section, and `visible` is the one value allowed to
     pair with `clip` on the other axis. */
  overflow-x: clip;
  overflow-y: visible;
}

/* --------------------------------------------------------------------------
   Full-bleed section backgrounds

   Every section spans the whole viewport, while its *content* stays inside the
   1440px design frame. The trick: the page is no longer width-capped, and each
   section gets transparent side borders that soak up the extra width. A border
   sits outside the padding box, so

     • the background paints across the full border box → full-width colours,
       gradients and grids;
     • the padding box — i.e. the containing block of every absolutely
       positioned child — stays exactly 1440px wide and centred, so all the
       pixel/percentage positions taken from Figma keep working untouched.

   Sections that crop their decoration swap `overflow: hidden` for
   `clip-path: inset(0)` (see the page stylesheets): overflow clips at the
   padding box, clip-path at the border box. Sections that host a `.glow` carry
   neither — the blob is layered behind the section backgrounds instead of
   being cut off at the section edge (see `.glow`).
   -------------------------------------------------------------------------- */
@supports (container-type: inline-size) {
  .page { max-width: none; container-type: inline-size; }
  .page > section {
    --bleed: max(0px, (100cqw - var(--page-max)) / 2);
    border-inline: var(--bleed) solid transparent;
  }
}

.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
  width: 100%;
}
.section { position: relative; }
.section--dark { background: var(--blue-dark-2); color: var(--white); }

/* Decorative background: faint blueprint grid + soft colour glow */
.bg-grid {
  position: absolute;
  /* spans the full section width, not just the 1440px frame */
  inset: 0 calc(-1 * var(--bleed));
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
/* 48px blueprint grid at 4% black — matches the exported Figma background.
   The bleed offset keeps the line phase locked to the 1440px frame, so the
   grid does not jump when the viewport crosses that width. */
.bg-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: calc(48.5px + var(--bleed)) 0, var(--bleed) 48.5px;
}
.section > .container { position: relative; z-index: 1; }

/* Blurred colour blob exported from Figma; positioned by its centre point.

   The blobs are bigger than the sections that host them, so they are pulled
   *behind* every section background (z-index: -1) instead of being clipped to
   their own section. White sections are transparent (the body already paints
   the white), which lets a blob bleed across section borders without the hard
   straight edge a `clip-path` would leave. Dark sections stay opaque and hide
   whatever passes behind them — there the edge is the colour change, not a cut.

   Placement is expressed as tokens rather than a literal `transform`, so the
   wobble keyframes below can append their own motion without overwriting the
   per-blob rotation/mirroring. Parallax uses the separate `translate` property
   (see below), so it composes with this instead of fighting it.

   `--glow-scale` is the fit knob: where a blob sits in a light strip too short
   for it, shrinking it until the falloff dies out inside the strip is what
   keeps the dark neighbour from slicing it off mid-gradient. */
.glow {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  max-width: none;
  transform-origin: center;
  --glow-base: translate(-50%, -50%) rotate(var(--glow-rot, 0deg))
               scale(var(--glow-flip-x, 1), var(--glow-flip-y, 1))
               scale(var(--glow-scale, 1));
  transform: var(--glow-base);
  animation: glow-wabern var(--glow-dur, 26s) ease-in-out var(--glow-delay, 0s) infinite;
}

/* Slow, irregular undulation: the steps are deliberately off-grid (uneven
   spacing, no repeating value) so the loop never reads as a cycle. Offsets are
   percentages of the blob itself, so they stay proportional at every size.
   0% and 100% match, which makes the loop seamless without `alternate`. */
@keyframes glow-wabern {
  0%   { transform: var(--glow-base) translate(0, 0)            scale(1, 1)       rotate(0deg); }
  11%  { transform: var(--glow-base) translate(1.4%, -1.9%)     scale(1.05, .975) rotate(1.6deg); }
  23%  { transform: var(--glow-base) translate(2.6%, .8%)       scale(1.02, 1.06) rotate(-.7deg); }
  36%  { transform: var(--glow-base) translate(.4%, 2.4%)       scale(.955, 1.03) rotate(-2.2deg); }
  48%  { transform: var(--glow-base) translate(-1.8%, 1.3%)     scale(1.03, .98)  rotate(-.9deg); }
  61%  { transform: var(--glow-base) translate(-2.5%, -1.1%)    scale(1.06, 1.02) rotate(1.1deg); }
  74%  { transform: var(--glow-base) translate(-.9%, -2.5%)     scale(.97, 1.05)  rotate(2.3deg); }
  88%  { transform: var(--glow-base) translate(1.1%, -.7%)      scale(1.01, .965) rotate(.8deg); }
  100% { transform: var(--glow-base) translate(0, 0)            scale(1, 1)       rotate(0deg); }
}

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

/* ==========================================================================
   Typography
   ========================================================================== */
.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  line-height: normal;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--plum-main);
}
.eyebrow--light { color: var(--white); }

.h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(40px, 5.55vw, 80px);
  line-height: 1;
  letter-spacing: 0;
}
.h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(32px, 3.75vw, 54px);
  line-height: normal;
}
.h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(20px, 1.67vw, 24px);
  line-height: normal;
  text-transform: uppercase;
}
/* Intro-Texte unter den Überschriften: eine Stufe über dem Fließtext (16px). */
.lead {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.45;
  color: var(--text-body);
}
.lead--light { color: var(--white); }
.body-p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: normal;
}
.body-s {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  line-height: normal;
}

/* Gradient headline fill */
.grad-blue {
  background-image: linear-gradient(95.38deg, var(--blue-main) 0.57%, var(--blue-medium) 133.1%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-blue-2 {
  background-image: linear-gradient(108.2deg, var(--blue-main) 45.32%, var(--blue-medium) 163.06%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* .h1 has line-height: 1, so descenders (g, p, y) hang below the background box
   — and background-clip: text can only paint inside it, which clips them off.
   Pad the box back out and take the same amount off the margin, so nothing moves. */
.h1.grad-blue,
.h1.grad-blue-2 { padding-bottom: .14em; margin-bottom: -.14em; }
.t-plum { color: var(--plum-medium); }
.t-white { color: var(--white); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-width: 200px;
  padding-inline: 40px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: normal;
  text-align: center;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue-main); color: var(--white); }
.btn--primary:hover { background: #1866e8; }
.btn--secondary {
  background: var(--white);
  color: var(--blue-main);
  border: 1px solid var(--blue-main);
  padding-block: 1px;
}
.btn--secondary:hover { background: var(--blue-very-light); }
.btn--sm {
  height: 40px;
  min-width: 0;
  padding-inline: 24px;
  font-weight: 400;
}

/* Schmale Bildschirme: lange Beschriftungen („Demo für Behörden & Verwaltung
   anfragen") brechen um, statt links und rechts abgeschnitten zu werden.
   Einzeilige Knöpfe bleiben bei 48px. */
@media (max-width: 560px) {
  .btn { white-space: normal; max-width: 100%; }
  .btn:not(.btn--sm) { height: auto; min-height: 48px; padding: 10px 28px; line-height: 1.3; }
}
.btn--wide { width: 302px; max-width: 100%; }

@media (max-width: 560px) {
  .btn { width: 100%; min-width: 0; padding-inline: 24px; }
  .btn--wide { width: 100%; }
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--white);
  /* Figma strokes do not add to the frame size — use an inset shadow, not a border */
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
  border-radius: 16px;
  filter: drop-shadow(0 4px 2px rgba(0, 0, 0, .25));
}
.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 1000px;
  background: rgba(217, 136, 222, .1);
  box-shadow: 0 4px 4px rgba(0, 0, 0, .25);
}
.icon-badge img { width: 24px; height: 24px; object-fit: contain; }
.icon-badge--40 { width: 40px; height: 40px; }

.ico { width: 24px; height: 24px; flex: none; object-fit: contain; }
.ico--32 { width: 32px; height: 32px; }

/* ==========================================================================
   Navbar
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--white);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.nav__logo { width: 128px; height: 32px; flex: none; }
.nav__logo img { width: 100%; height: 100%; }
.nav__right { display: flex; align-items: center; gap: 40px; }
.nav__links { display: flex; align-items: center; gap: 55px; }
.nav__link {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 16px;
  line-height: normal;
  color: var(--black);
  white-space: nowrap;
  transition: color .15s ease;
}
.nav__link:hover { color: var(--blue-main); }
.nav__link.is-active { font-weight: 700; color: var(--plum-main); }

/* Login: bewusst leise — Textlink rechts neben dem Test-Button, nicht als Button */
.nav__login {
  font-family: var(--font-head);
  font-size: 16px;
  line-height: normal;
  color: var(--black);
  opacity: .7;
  white-space: nowrap;
  margin-left: -12px;
  transition: color .15s ease, opacity .15s ease;
}
.nav__login:hover { color: var(--blue-main); opacity: 1; }

.nav__lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 85px;
  flex: none;
}
.nav__lang a {
  font-family: var(--font-head);
  font-size: 16px;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--black);
}
.nav__lang a.is-active { font-weight: 700; }
.nav__lang .sep { width: 1px; height: 16px; background: var(--black); }

.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex: none;
}
.nav__burger span {
  display: block;
  position: relative;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: background .2s ease;
}
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: transform .25s ease, top .25s ease;
}
.nav__burger span::before { top: -7px; }
.nav__burger span::after { top: 7px; }
body.nav-open .nav__burger span { background: transparent; }
body.nav-open .nav__burger span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav__burger span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1340px) {
  .nav__links { gap: 28px; }
  .nav__right { gap: 24px; }
}

/* Unter 1140 px passt die volle Navigation nicht mehr in eine Zeile. */
@media (max-width: 1140px) {
  .nav__burger { display: flex; }
  .nav__right {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-1);
    padding: 8px var(--gutter) 32px;
    box-shadow: 0 24px 40px rgba(0, 0, 0, .12);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  body.nav-open .nav__right { opacity: 1; visibility: visible; transform: none; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-1);
    font-size: 18px;
  }
  /* Im Menü bleibt Login bei den Links, der Button darunter */
  .nav__login { order: 1; padding: 16px 0; border-bottom: 1px solid var(--gray-1); font-size: 18px; opacity: 1; margin-left: 0; }
  .nav__right .btn { order: 2; margin-top: 24px; width: 100%; }
  .nav__lang { order: 3; width: 85px; margin-top: 20px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--blue-dark-2);
  color: var(--white);
  padding: 48px 0;
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.footer__brand { display: flex; flex-direction: column; gap: 8px; width: 253px; }
.footer__brand .logo { width: 96.3px; height: 24px; }
.footer__addr {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: normal;
}
.footer__contact { display: flex; flex-direction: column; gap: 4px; width: 200px; }
.footer__contact a, .footer__contact span { display: flex; align-items: center; gap: 8px; }
.footer__contact p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
}
.footer__col { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.footer__col h4 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  text-align: center;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col li a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: normal;
  white-space: nowrap;
  transition: opacity .15s ease;
}
.footer__col li a:hover { opacity: .7; }

@media (max-width: 940px) {
  .footer__inner { flex-wrap: wrap; gap: 40px 32px; }
  .footer__brand { width: 100%; }
  .footer__col { align-items: flex-start; flex: 1 1 160px; }
  .footer__col h4 { text-align: left; }
}
@media (max-width: 560px) {
  .footer__inner { flex-direction: column; }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.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;
}
.stack { display: flex; flex-direction: column; }
.g8 { gap: 8px; } .g12 { gap: 12px; } .g16 { gap: 16px; } .g24 { gap: 24px; } .g32 { gap: 32px; }

/* ==========================================================================
   Scroll animations

   [data-reveal] elements start slightly offset and transparent, then settle
   once they scroll into view (js/app.js adds .is-revealed). Put
   [data-reveal-group] on a wrapper to reveal its children one after another
   without tagging each one — the value is the stagger step in ms.

   [data-parallax] drifts a decorative layer against the scroll direction. It
   uses the standalone `translate` property, so the element keeps whatever
   `transform` its own rule already sets.
   ========================================================================== */
[data-reveal],
[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .65s cubic-bezier(.22, .61, .36, 1),
    transform .65s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="zoom"]  { transform: scale(.96); }
[data-reveal="fade"]  { transform: none; }

[data-reveal].is-revealed,
[data-reveal-group] > .is-revealed { opacity: 1; transform: none; }

[data-parallax] { translate: 0 var(--parallax-y, 0px); }

/* Without JS nothing ever adds .is-revealed — show everything right away. */
@media (scripting: none) {
  [data-reveal],
  [data-reveal-group] > * { opacity: 1; transform: none; transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-group] > * { opacity: 1; transform: none; transition: none; }
  [data-parallax] { translate: none; }
}

/* Sprungmarke: liegt außerhalb des Sichtbereichs und rutscht erst herein,
   wenn sie den Tastaturfokus bekommt (BITV/WCAG 2.4.1). */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--blue-main);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transform: translateY(calc(-100% - 16px));
  transition: transform .15s ease;
}
.skip-link:focus-visible { transform: none; outline: 2px solid var(--white); outline-offset: -6px; }
main:focus { outline: none; }

/* Fußzeile, letzte Zeile: Verweis auf llms.txt. Bewusst zurückhaltend —
   sichtbar für alle, die danach suchen, ohne die Navigation zu belasten. */
.footer__meta {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  text-align: right;
}
.footer__meta a {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: .4px;
  color: rgba(255, 255, 255, .35);
  transition: color .15s ease;
}
.footer__meta a:hover { color: rgba(255, 255, 255, .75); }
@media (max-width: 940px) { .footer__meta { text-align: left; } }
