/* wegweiser.studio — base.css
   Design-Tokens, Schrift, Reset, Typografie, Hilfsklassen.
   Reihenfolge der Stylesheets: base.css → components.css → pages.css */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* Helle Flächen */
  --bg: #ffffff;
  --soft: #f3f6f9;
  --line: #dde5ec;
  --line-strong: #c3d0db;
  --ink: #0b1520;        /* Text, 18,4:1 auf Weiß */
  --ink-2: #22313f;
  --muted: #4a5b6b;      /* Nebentext, 7,0:1 auf Weiß */

  /* Akzent */
  --cyan: #29e0ff;       /* nur auf dunklem Grund oder als Fläche, nie als Text auf Weiß (1,6:1) */
  --cyan-soft: #8feeff;
  --cyan-ink: #00667a;   /* Links, Eyebrows auf Hell, 6,6:1 auf Weiß */
  --cyan-tint: #e6f9fd;

  /* Dunkle Klammer: Hero, Kontaktband, Footer */
  --night: #05080d;
  --night-2: #0b1520;
  --night-line: rgba(126, 197, 235, .18);
  --night-text: #e2edf5;
  --night-muted: #9fb3c4;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Consolas, monospace;

  /* Abstände im 4-px-Raster */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem;
  --section: clamp(4.5rem, 9vw, 7.5rem);

  --radius: 14px;
  --radius-sm: 10px;
  --max: 1200px;
  --header-h: 72px;
  --shadow-1: 0 1px 2px rgba(11, 21, 32, .05), 0 8px 24px rgba(11, 21, 32, .06);
  --shadow-2: 0 2px 4px rgba(11, 21, 32, .05), 0 22px 56px rgba(11, 21, 32, .13);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg, picture, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
ul, ol { list-style: none; }
address { font-style: normal; }
::selection { color: #031116; background: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan-ink); outline-offset: 3px; border-radius: 4px; }
.on-night :focus-visible { outline-color: var(--cyan); }

/* Typografie */
h1, h2, h3, h4 { font-weight: 680; line-height: 1.1; letter-spacing: -.022em; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.05; letter-spacing: -.03em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.012em; }
h4 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -.005em; }
p { text-wrap: pretty; }
strong, b { font-weight: 650; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.text-link { color: var(--cyan-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.text-link:hover { text-decoration-thickness: 2px; }
.arrow-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--cyan-ink); font-weight: 650; }
.arrow-link::after { content: "→"; transition: transform .2s ease; }
.arrow-link:hover::after { transform: translateX(4px); }
.on-night .arrow-link, .on-night .text-link { color: var(--cyan-soft); }

.eyebrow {
  display: block;
  margin-bottom: .9rem;
  color: var(--cyan-ink);
  font: 700 .75rem/1.3 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.on-night .eyebrow { color: var(--cyan-soft); }
.accent { color: var(--cyan-ink); }
.on-night .accent {
  color: transparent;
  background: linear-gradient(105deg, var(--cyan), var(--cyan-soft));
  background-clip: text;
  -webkit-background-clip: text;
}

/* Layout */
.wrap { width: min(100% - 3rem, var(--max)); margin-inline: auto; }
.section { padding: var(--section) 0; }
.section.soft { background: var(--soft); }
.section.tight { padding: calc(var(--section) * .62) 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  align-items: end;
  gap: 2rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head h2 { max-width: 20ch; }
.section-head > p { color: var(--muted); max-width: 54ch; }
.section-head.single { display: block; max-width: 760px; }
.section-head.single p { margin-top: 1rem; color: var(--muted); }
.on-night { color: var(--night-text); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 300;
  top: .75rem;
  left: -100vw;
  padding: .7rem 1rem;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-weight: 650;
}
.skip-link:focus { left: .75rem; }

/* Scroll-Einblendung: Elemente werden erst per JS „scharf“ geschaltet.
   Ohne JavaScript bleibt alles sichtbar. */
.reveal-armed { opacity: 0; transform: translateY(18px); }
.reveal-armed.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .wrap { width: min(100% - 2rem, var(--max)); }
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
  h1, h2, h3 { hyphens: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal-armed { opacity: 1; transform: none; }
}

@media print {
  .site-header, .contact-band, .site-footer, .hero-canvas, .skip-link { display: none !important; }
  body { font-size: 11pt; }
}
