/* Reset & Basis-Typografie */

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

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

body {
  margin: 0;
  background: var(--sg-paper);
  color: var(--sg-ink);
  font-family: var(--sg-font-ui);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(32px, 5vw, 44px);
}

h2 {
  font-size: clamp(26px, 3.6vw, 34px);
}

h3 {
  font-size: 19px;
}

button {
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 16px;
}

.sg-container {
  max-width: var(--sg-container-max);
  margin: 0 auto;
  padding-left: var(--sg-section-pad-x);
  padding-right: var(--sg-section-pad-x);
}

.sg-section {
  padding-top: var(--sg-section-pad-y);
  padding-bottom: var(--sg-section-pad-y);
  scroll-margin-top: 80px;
}

.sg-eyebrow {
  display: inline-block;
  font-size: var(--sg-eyebrow-size);
  font-weight: 700;
  letter-spacing: var(--sg-eyebrow-tracking);
  text-transform: uppercase;
  color: var(--sg-bronze);
  margin-bottom: 14px;
}

.sg-section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.sg-section-head p {
  color: var(--sg-text-muted);
  margin-top: 14px;
  font-size: 16px;
}

.sg-on-dark .sg-section-head p {
  color: var(--sg-text-muted-dark);
}

.sg-text-muted {
  color: var(--sg-text-muted);
}

.sg-on-dark .sg-text-muted {
  color: var(--sg-text-muted-dark);
}

.sg-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sg-skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  background: var(--sg-ink);
  color: var(--sg-paper);
  padding: 12px 18px;
  border-radius: var(--sg-radius);
  z-index: 1000;
  transition: top var(--sg-transition-fast);
}

.sg-skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--sg-bronze);
  outline-offset: 2px;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-bottom: 16px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 22px;
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content a {
  color: var(--sg-bronze-deep);
  text-decoration: underline;
}

img[loading='lazy'] {
  background: rgba(0, 0, 0, 0.04);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  /* Logo-Reveal bleibt als kurzes, dezentes Fade erhalten statt komplett
     wegzufallen — ein sanftes Einblenden ist auch unter reduced-motion ok,
     nur große Bewegungen/Parallax sollten vermieden werden. */
  .sg-logo--animate {
    animation-duration: 400ms !important;
  }

  .sg-logo--animate .sg-icon span {
    transition-duration: 250ms !important;
  }
}
