/* Holzart-Extensions: Lagerbilder-Galerie, Vergleichstabelle, Alternativen, HowTo */

/* === No. 07 — Lagerbilder-Galerie === */
.holzart-galerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
@media (max-width: 900px) { .holzart-galerie { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .holzart-galerie { grid-template-columns: 1fr; } }

.holzart-galerie__item {
  border-radius: var(--r-3);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--paper-dim);
  cursor: zoom-in;
  position: relative;
  aspect-ratio: 4/3;
}
.holzart-galerie__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.holzart-galerie__item:hover img { transform: scale(1.04); }
.holzart-galerie__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--s-2) var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: white;
}

/* Lightbox via <dialog> */
.holzart-lightbox {
  border: none;
  padding: 0;
  background: rgba(0,0,0,0.92);
  width: 90vw;
  max-width: 1200px;
  max-height: 92vh;
}
.holzart-lightbox::backdrop { background: rgba(0,0,0,0.75); }
.holzart-lightbox img { width: 100%; height: auto; max-height: 92vh; object-fit: contain; display: block; }

/* === No. 04 — Vergleichstabelle === */
.holzart-vergleich {
  overflow-x: auto;
}
.holzart-vergleich table {
  min-width: 640px;
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.holzart-vergleich th, .holzart-vergleich td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.holzart-vergleich th {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: normal;
}
.holzart-vergleich tbody td:first-child {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: var(--tr-label);
}
.holzart-vergleich .col--self { background: var(--paper-dim); font-weight: 500; }

/* === No. 05 — Alternativen === */
.holzart-alternativen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-3);
}
.holzart-alternativen__card {
  display: block;
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}
.holzart-alternativen__card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.holzart-alternativen__name {
  font-size: var(--fs-lg);
  margin-bottom: var(--s-2);
  font-weight: 500;
}
.holzart-alternativen__meta {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tr-label);
}

/* === No. 06 — HowTo === */
.holzart-howto__list {
  counter-reset: howto-step;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.holzart-howto__step {
  counter-increment: howto-step;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--s-4);
  align-items: start;
}
.holzart-howto__step::before {
  content: counter(howto-step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  color: var(--accent);
  line-height: 1;
}
.holzart-howto__step-name {
  font-weight: 500;
  margin-bottom: var(--s-2);
}
.holzart-howto__tools {
  margin-top: var(--s-5);
  padding: var(--s-4);
  background: var(--paper-dim);
  border-radius: var(--r-2);
  font-size: var(--fs-sm);
}
.holzart-howto__tools-label {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: var(--tr-label);
  color: var(--text-muted);
  margin-bottom: var(--s-2);
}

/* ── Marketing-Bild-Strip (Hero-Trio) ─────────────────────────────────── */
.holzart-strip__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.holzart-strip__img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-3);
  border: 1px solid var(--border);
}
.holzart-strip__img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.holzart-strip__credit {
  font-size: var(--fs-2xs);
  line-height: 1.35;
  color: var(--text-muted);
  margin-top: var(--s-2);
  padding: 0 2px;
}
.holzart-strip__credit a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
}
.holzart-strip__credit a:hover {
  text-decoration-color: currentColor;
}
