/* Startseite – Einstieg in die Gewerke Glaserei, Tischlerei, Metallbau & Schließtechnik
   Nutzt die Variablen aus stuetz-de-*.css (--blue-primary, --yellow, --text, --soft-grey). */

.gw-section {
  background-color: var(--white);
}

.gw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gw-card {
  display: flex;
  flex-direction: column;
  background-color: var(--soft-grey);
  min-width: 0;
}

.gw-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--blue-primary);
}

.gw-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.gw-media:hover .gw-image,
.gw-media:focus-visible .gw-image {
  transform: scale(1.04);
}

.gw-number {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 10px 20px 6px;
  background-color: var(--blue-primary);
  color: var(--yellow);
  font-family: Subset Prompt, Arial, sans-serif;
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
}

.gw-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 24px 20px 20px;
}

.headline.h3.gw-title {
  flex: 0 auto;
  color: var(--blue-primary);
  font-weight: 700;
}

.gw-title a {
  color: inherit;
  text-decoration: none;
}

.gw-title a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gw-claim {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
}

.gw-text {
  flex: 0 auto;
  margin: 0;
  line-height: 1.4;
}

.gw-links {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  border-top: 1px solid var(--combine-library--grey-200);
}

.gw-links li {
  border-bottom: 1px solid var(--combine-library--grey-200);
}

.gw-sublink {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  color: var(--text);
  text-decoration: none;
  transition: color .2s, padding .2s;
}

.gw-sublink:hover,
.gw-sublink:focus-visible {
  color: var(--blue-primary);
  padding-left: 6px;
}

.gw-icon {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--blue-primary);
}

.gw-actions {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gw-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background-color: var(--blue-primary);
  color: var(--white);
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s;
}

.gw-cta .gw-icon {
  color: var(--yellow);
  transition: transform .2s;
}

.gw-cta:hover,
.gw-cta:focus-visible {
  background-color: var(--blue-dark);
}

.gw-cta:hover .gw-icon {
  transform: translateX(3px);
}

.gw-ratgeber {
  align-self: flex-start;
  color: var(--blue-primary);
  font-size: .85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media screen and (max-width: 991px) {
  .gw-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gw-card:last-child {
    grid-column: 1 / -1;
  }
  .gw-card:last-child .gw-media {
    aspect-ratio: 16 / 7;
  }
}

@media screen and (max-width: 767px) {
  .gw-grid {
    grid-template-columns: 1fr;
  }
  .gw-card:last-child .gw-media {
    aspect-ratio: 4 / 3;
  }
}
