/*
 * Grundlagen: Schrift, Überschriften, Links, Abschnitte und Wabenmuster.
 * Setzt auf Bootstrap (Raster, Abstands-Utilities, Modal, Tabs) auf.
 */

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ds-bg);
  color: var(--ds-text);
  font-family: var(--ds-font);
  font-size: 1rem;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--ds-navy);
  font-family: var(--ds-font);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a {
  color: var(--ds-blue);
  text-decoration: none;
}

a:hover {
  color: var(--ds-blue-hover);
}

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

/* Abschnitte */
.ds-section {
  position: relative;
  padding: 104px 0;
  background: var(--ds-bg);
  scroll-margin-top: var(--ds-header-height);
  overflow: clip;
}

.ds-section-soft {
  background: var(--ds-bg-soft);
}

.ds-section > .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .ds-section {
    padding: 72px 0;
  }
}

/* Wabenmuster als Hintergrund, läuft mit Verlauf aus.
   Richtung über --pattern-fade, Breite über --pattern-width. */
.ds-pattern::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: var(--pattern-width, 46%);
  background-image: var(--ds-pattern-dark);
  -webkit-mask-image: linear-gradient(var(--pattern-fade, to left), #000 15%, transparent);
  mask-image: linear-gradient(var(--pattern-fade, to left), #000 15%, transparent);
  pointer-events: none;
  z-index: 0;
}

.ds-pattern-left::before {
  inset: 0 auto 0 0;
  --pattern-fade: to right;
}

.ds-on-dark.ds-pattern::before,
.ds-on-dark .ds-pattern::before {
  background-image: var(--ds-pattern-light);
}
