/* =========================================================
   Reset + Base Typography
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Silbentrennung nur, wenn das Wort lang genug ist UND mindestens
     5 Buchstaben vor und 5 Buchstaben nach dem Trenner verbleiben.
     Verhindert hässliche Trennungen wie "NACHHALTIG-KEIT". */
  -webkit-hyphenate-limit-before: 5;
  -webkit-hyphenate-limit-after: 5;
  hyphenate-limit-chars: auto 5 5;
}

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

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.18s var(--ease-out);
}
a:hover { color: var(--swh-blue-dark); }

button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--color-heading);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 var(--space-4);
}

h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-3xl); }
h4 { font-size: var(--fs-2xl); }
h5 { font-size: var(--fs-xl); }

p { margin: 0 0 var(--space-4); max-width: 65ch; }

::selection { background: var(--swh-yellow); color: var(--swh-black); }

/* === Container === */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.container--lg   { max-width: var(--container-lg); }
.container--md   { max-width: var(--container-md); }
.container--text { max-width: var(--container-text); }

/* === Section === */
.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.section--tight { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section--alt   { background: var(--color-bg-alt); }

/* Auf Mobile alle Section-Varianten einheitlich kompakt halten. */
@media (max-width: 720px) {
  .section,
  .section--tight {
    padding-block: clamp(2rem, 7vw, 3rem);
  }
}

/* Eyebrow / kleine Versalien-Headlines im Fließtext — DIN Pro Black 900 */
.eyebrow {
  display: inline-block;
  font-family: var(--font-eyebrow);
  font-size: var(--fs-sm);
  font-weight: var(--fw-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--swh-blue);
  margin-bottom: var(--space-4);
}

/* === Utility === */
.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;
}

.text-magenta { color: var(--swh-magenta); }
.text-blue    { color: var(--swh-blue); }
.text-yellow  { color: var(--swh-yellow); }
