/* ==========================================================================
   pulb.werbung — Fundament: Tokens, Reset, Typografie
   Farbwelt und Massverhaeltnisse aus der Referenz uebernommen,
   Akzentfarbe aus dem pulb-Logo (#0096ce).
   ========================================================================== */

:root {
  /* --- Flaechen ------------------------------------------------------- */
  --bg:          #151519;
  --surface:     #18191f;
  --surface-2:   #26262a;

  /* --- Text ----------------------------------------------------------- */
  --fg:          #ffffff;
  --mark:        #a9abb5;   /* grosse Wortmarken, Display-Typo */
  --muted:       #515258;   /* zurueckgenommene Flaechentypo    */
  --muted-2:     #7c7d86;   /* Fliesstext sekundaer             */

  /* --- Marke ---------------------------------------------------------- */
  --accent:      #0096ce;   /* Cyan aus dem Logo */
  --accent-soft: rgba(0, 150, 206, .22);
  --ink:         #1d1d1b;   /* Logo-Dunkel */

  /* --- Linien --------------------------------------------------------- */
  --line:        rgba(169, 171, 181, .14);
  --line-strong: rgba(169, 171, 181, .28);

  /* --- Schrift -------------------------------------------------------- */
  --ff-display:  'Instrument Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-text:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* --- Bewegung ------------------------------------------------------- */
  --ease-out:    cubic-bezier(.16, 1, .3, 1);       /* Pendant zu GSAP expo.out */
  --ease-io:     cubic-bezier(.65, .05, .36, 1);
  --t-fast:      .28s;
  --t-med:       .55s;
  --t-slow:      .9s;

  /* --- Raster --------------------------------------------------------- */
  --gutter:      3.125vw;
  --header-h:    5.2vw;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;              /* Smooth Scrolling uebernimmt Lenis */
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
  padding: 0;
}

ul[class], ol[class] { list-style: none; }

body {
  background: var(--bg);
  color: var(--mark);
  font-family: var(--ff-text);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

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

::selection {
  background: var(--accent);
  color: #fff;
}

/* Skip-Link — Tastaturnavigation zuerst */
.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 999;
  background: var(--accent);
  color: #fff;
  padding: .75rem 1.5rem;
  font-size: .85rem;
  letter-spacing: .04em;
  transition: transform var(--t-fast) var(--ease-out);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ==========================================================================
   Typografie-Skala
   Grosse Displaygroessen in vw (skalieren wie die Referenz),
   Fliesstext ueber clamp() begrenzt.
   ========================================================================== */

.h1 {
  font-family: var(--ff-display);
  font-size: 7.8vw;
  line-height: .96;
  letter-spacing: -.035em;
  font-weight: 400;
  color: var(--fg);
}

.h2 {
  font-family: var(--ff-display);
  font-size: 5.2vw;
  line-height: 1.02;
  letter-spacing: -.03em;
  font-weight: 400;
  color: var(--fg);
}

.h3 {
  font-family: var(--ff-display);
  font-size: 3.4vw;
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 400;
  color: var(--fg);
}

.h4 {
  font-family: var(--ff-display);
  font-size: 2.1vw;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 400;
  color: var(--fg);
}

.lead {
  font-size: clamp(.95rem, 1.05vw, 1.25rem);
  line-height: 1.62;
  color: var(--mark);
}

.body-s {
  font-size: clamp(.85rem, .92vw, 1.02rem);
  line-height: 1.6;
  color: var(--muted-2);
}

/* Kleines Label mit weiter Laufweite — wiederkehrendes Detail der Referenz */
.label {
  font-family: var(--ff-text);
  font-size: clamp(.62rem, .68vw, .78rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.num {
  font-family: var(--ff-display);
  font-size: clamp(.7rem, .78vw, .9rem);
  letter-spacing: .1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.accent { color: var(--accent); }

/* ==========================================================================
   Layout-Hilfen
   ========================================================================== */

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

.section {
  position: relative;
  padding-block: 12vw;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  width: 100%;
}

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

/* ==========================================================================
   Zustand waehrend des Intros: Seite ist gesperrt, bis die Choreografie laeuft
   ========================================================================== */

body.is-loading {
  height: 100vh;
  overflow: hidden;
}

/* ==========================================================================
   Reduzierte Bewegung — alles Wesentliche bleibt sichtbar und bedienbar
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
