/* ==========================================================================
   autobahnstar.de · Theme "Abfahrt" – base: fonts, tokens, reset, typography,
   layout helpers, buttons, reveal.
   ========================================================================== */

@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/BarlowCondensed-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/BarlowCondensed-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/BarlowCondensed-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/BarlowCondensed-800.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/IBMPlexMono-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/IBMPlexMono-700.woff2') format('woff2'); }

:root {
  /* station hall */
  --bg: #0b0c0f;
  --bg-2: #101217;
  --panel: #15181e;
  --panel-2: #1b1f26;
  --panel-3: #232831;
  --line: rgba(241, 233, 216, 0.09);
  --line-2: rgba(241, 233, 216, 0.16);

  /* ink */
  --ink: #f2ead9;
  --ink-dim: #c3bba9;
  --muted: #968f81;

  /* warm signal accents */
  --amber: #ffb627;
  --amber-soft: rgba(255, 182, 39, 0.14);
  --amber-glow: rgba(255, 182, 39, 0.35);
  --orange: #ff8c2a;
  --green: #7fe0a3;
  --coral: #ff8466;

  /* ticket paper */
  --paper: #f4ecda;
  --paper-2: #e9dfc8;
  --paper-ink: #1e1b16;
  --paper-muted: #5f574a;
  --stamp: #3346c4;

  /* flap tiles */
  --tile-top: #262a32;
  --tile-bot: #1d2027;
  --tile-ink: #f6efdf;

  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1200px;
  --gutter: 16px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) { :root { --gutter: 28px; } }
@media (min-width: 1280px) { :root { --gutter: 40px; } }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* faint LED-matrix dot raster over the whole hall */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(241, 233, 216, 0.035) 1px, transparent 1.4px);
  background-size: 6px 6px;
}

main, footer { position: relative; z-index: 1; }
main { overflow-x: clip; }

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

a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffd27a; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h2 { font-size: clamp(32px, 5.4vw, 58px); text-transform: uppercase; }
h3 { font-size: clamp(22px, 2.4vw, 28px); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
strong { color: var(--ink); font-weight: 600; }

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

[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  background: var(--amber);
  color: #15120a;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(72px, 10vw, 132px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section--panel { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* section heading block: platform sign */
.sec-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p { color: var(--ink-dim); font-size: clamp(17px, 1.6vw, 19px); }
.sec-head h2 { color: var(--ink); }
.sec-head h2 .accent, .accent { color: var(--amber); }

.platform {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.platform b {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--amber);
  color: #17130a;
  font-weight: 700;
  letter-spacing: 0;
  font-size: 14px;
}

.lead { font-size: clamp(18px, 1.9vw, 21px); color: var(--ink-dim); line-height: 1.55; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.demo-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--line-2);
  border-radius: 4px;
  padding: 2px 7px;
}

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--panel-2);
  --b-ink: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--b-bg);
  color: var(--b-ink);
  font: 600 16px/1.1 var(--font-body);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { color: var(--b-ink); transform: translateY(-2px); border-color: var(--amber); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--amber {
  --b-bg: var(--amber);
  --b-ink: #16120a;
  border-color: transparent;
  box-shadow: 0 10px 30px -10px var(--amber-glow), inset 0 -2px 0 rgba(0,0,0,.18);
}
.btn--amber:hover { background: #ffc54f; box-shadow: 0 16px 40px -12px var(--amber-glow), inset 0 -2px 0 rgba(0,0,0,.18); border-color: transparent; }
.btn--ghost { --b-bg: transparent; }
.btn--paper { --b-bg: var(--paper-ink); --b-ink: var(--paper); border-color: transparent; }
.btn--paper:hover { --b-ink: var(--amber); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- reveal (only hidden when JS runs and motion is allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal[data-delay="1"] { transition-delay: .08s; }
  .js .reveal[data-delay="2"] { transition-delay: .16s; }
  .js .reveal[data-delay="3"] { transition-delay: .24s; }
  .js .reveal[data-delay="4"] { transition-delay: .32s; }
}

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

/* ---------- small grid helpers ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
