/* Nur für die Seiten des Designsystems und die Übersicht, nicht Teil der Website: Farbfelder,
   Schriftproben, Farbkreis, Strichformen und die Einstiege der Übersicht. */

.sg-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: var(--wps-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-swatch {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: var(--wps-text-small);
}

.sg-swatch-farbe {
  height: 96px;
  margin-bottom: 12px;
  border: 1px solid rgb(27 27 27 / 8%);
}

.sg-swatch-tier {
  display: grid;
  place-items: end center;
  height: 168px;
  padding-top: 12px;
}

.sg-swatch-tier img {
  height: 150px;
  width: auto;
}

.sg-swatch b {
  font-size: var(--wps-text-body);
}

.sg-swatch code,
.sg-swatch span {
  color: var(--wps-ink-muted);
}

.sg-type {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sg-type-zeile {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
}

.sg-type-zeile > span:first-child {
  font-size: var(--wps-text-caption);
  color: var(--wps-ink-muted);
}

@media (width < 600px) {
  .sg-type-zeile {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

/* Farbkreis auf der Seite „Farbharmonie“ (farbharmonie.html). */
.sg-rad {
  margin: 0;
}

.sg-rad svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  font-family: var(--wps-font-body);
}

/* Die fünf Strichformen des Markers nebeneinander (bausteine.html). */
.sg-marker {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wps-space-3) var(--wps-space-5);
  font-family: var(--wps-font-heading);
  font-size: var(--wps-text-h3-l);
}

/* Übersicht (index.html im Wurzelverzeichnis): zwei große Einstiege, jeder mit Tonfläche und Tier
   wie eine kleine Bühne, darunter Titel und die Seiten als Liste. */
.sg-einstiege {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--wps-space-6) var(--wps-space-5);
  padding: 0;
  list-style: none;
}

@media (width >= 760px) {
  .sg-einstiege {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sg-einstieg-bild {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  place-items: end center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: var(--wps-space-4);
  padding-top: var(--wps-space-4);
  background: var(--wps-ton);
}

.sg-einstieg-bild img {
  height: 92%;
  min-height: 0;
  transition: transform 0.25s ease;
}

.sg-einstieg-bild:hover img {
  transform: translateY(-8px);
}

.sg-einstiege h2 {
  font-size: var(--wps-text-h2-s);
}

.sg-einstiege h2 a {
  color: inherit;
  text-decoration: none;
}

.sg-einstiege h2 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.sg-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 0;
  list-style: none;
}

.sg-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--wps-touch);
  font-weight: 600;
}
