/* Galerie der Vorlagen (/vorlagen, /vorlagen/<name>), erzeugt von tools/vorlagen/seiten.ts. Baut auf stil.css und
   seiten.css auf und nutzt nur deren Farben und Abstände. */

.vorlagen {
  padding: 0 var(--pad) calc(var(--abstand) * 0.6);
}

.vorlagen-raster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vorlage-karte {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.vorlage-bild {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--ton);
}

.vorlage-bild img,
.vorlage-seite-bild img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Solange kein Rendering da ist: eine ruhige Fläche in der Körperfarbe statt eines kaputten Bildes */
.vorlage-ohne-bild {
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: color-mix(in srgb, var(--farbe, var(--accent)) 22%, var(--ton));
}

.vorlage-text {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px 22px 26px;
}

.vorlage-text h2 {
  font-size: var(--step-lead);
  line-height: 1.1;
}

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

.vorlage-text h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.vorlage-text .knopf {
  justify-self: start;
  margin-top: 6px;
}

.vorlage-masse {
  color: var(--muted);
  font-size: var(--step-small);
  font-variant-numeric: tabular-nums;
}

.vorlage-seite {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 24px;
  align-items: center;
  padding: 148px var(--pad) 64px;
  background: var(--ton);
}

.vorlage-seite-bild {
  grid-column: 1 / 7;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.vorlage-seite-text {
  grid-column: 8 / -1;
  display: grid;
  gap: 18px;
  justify-items: start;
}

.vorlage-seite-text .tutorial-marke a {
  color: inherit;
}

.vorlage-details .tabelle code {
  font-size: var(--step-small);
}

@media (max-width: 1100px) {
  .vorlagen-raster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vorlage-seite-bild,
  .vorlage-seite-text {
    grid-column: 1 / -1;
  }

  .vorlage-seite-text {
    margin-top: 40px;
  }
}

@media (max-width: 760px) {
  .vorlagen-raster {
    grid-template-columns: 1fr;
  }

  .vorlage-seite {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 112px var(--pad) 48px;
  }
}
