/* ==========================================================================
   socialthink.ch — Schriften, Reset, Typografie, Grundlayout
   ========================================================================== */

/* ---- Libertinus Serif (SIL OFL, selbst gehostet) -------------------------
   Nicht bei Google Fonts verfuegbar, daher als woff2 im Projekt.            */
@font-face {
  font-family: "Libertinus Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/libertinus-serif-latin-400-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;
}
@font-face {
  font-family: "Libertinus Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/libertinus-serif-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Libertinus Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/libertinus-serif-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Libertinus Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/libertinus-serif-latin-700-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;
}
@font-face {
  font-family: "Libertinus Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/libertinus-serif-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Inter --------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-700-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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Damit Scrollbalken und Formularelemente dem Farbschema folgen. */
  color-scheme: light dark;
  /* Die Buehne der Startseite ist 100vw breit, und 100vw schliesst die
     senkrechte Scrollleiste mit ein — ohne diese Zeile entstuende dadurch
     eine waagrechte Scrollleiste. clip am body allein genuegt nicht, die
     Begrenzung muss an der Wurzel stehen. */
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  /* Die Waschflaechen der Seitenkoepfe laufen bewusst ueber die Textspalte
     hinaus. clip statt hidden: es entsteht kein Scrollcontainer. */
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ff-serif);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

img, svg { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

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

/* ==========================================================================
   Typografie
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  font-weight: 700;
  line-height: var(--lh-tight);
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
  letter-spacing: -0.005em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); margin-top: var(--sp-7); }
h3 { font-size: var(--fs-h3); margin-top: var(--sp-6); }

p { margin: 0 0 var(--sp-4); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { text-decoration-color: var(--area-deep); }

strong { font-weight: 700; }

/* Lead: der erste Absatz eines Bereichs, ruhiger und groesser gesetzt. */
.lead {
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--fg);
  max-width: 28em;
  text-wrap: pretty;
}

/* Alles, was in Inter gesetzt wird: Navigation, Labels, Metadaten. */
.sans, .eyebrow, .meta, .tag, .btn, nav, .site-header, .site-footer {
  font-family: var(--ff-sans);
}

/* Kleines Ueberschriftenlabel ueber einer Ueberschrift. */
.eyebrow {
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--area-deep);
  margin: 0 0 var(--sp-3);
  display: block;
}

.meta {
  font-size: var(--fs-meta);
  line-height: 1.5;
  color: var(--fg-soft);
  font-variant-numeric: tabular-nums;
}

/* Fliesstextkolumne. Die em-basierte Breite haelt das Mass unabhaengig
   vom eingestellten Schriftgrad bei rund 64 Zeichen.                        */
.prose { max-width: var(--w-text); }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.1em; margin: 0 0 var(--sp-4); }
.prose li { margin-bottom: var(--sp-2); }
.prose li::marker { color: var(--area-deep); }

/* ==========================================================================
   Grundlayout
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

main { flex: 1 0 auto; }

.section { padding-block: var(--sp-8); }
.section + .section { padding-top: 0; }

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--sp-7) 0;
}

/* Nur fuer Screenreader, bleibt aber im DOM und damit indexierbar. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -4rem;
  z-index: 100;
  background: var(--fg);
  color: var(--bg);
  padding: var(--sp-2) var(--sp-4);
  font-family: var(--ff-sans);
  font-size: var(--fs-nav);
  text-decoration: none;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

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