/* Gutscheinshop – kleine Zusatzstyles (nur Layout), basiert auf design-system.css */

/* WordPress-Iframe (?embed=1): weniger Außenabstand */
body.gs-embed .ds-page__inner {
  padding-top: 0.75rem;
}

.gs-section.gs-section--pastel-1 {
  background: #f3f8ff; /* very light blue */
}

.gs-section.gs-section--pastel-2 {
  background: #f6fbf5; /* very light green */
}

.gs-section--pastel-1 > .ds-card__title,
.gs-section--pastel-2 > .ds-card__title {
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* Headline in den Kacheln (Flexibel/Wichtig) */
.gs-section--pastel-1 .card-body h3,
.gs-section--pastel-2 .card-body h3 {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.88);
}

.gs-section.gs-section--pastel-3 {
  background: #fff7f0; /* very light warm */
}

.gs-section .card {
  border-color: rgba(0,0,0,.08);
}

.gs-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ds-space-4);
  align-items: stretch;
}

/* Prevent grid items from overflowing and causing overlap */
.gs-tiles > * {
  min-width: 0;
}

@media (max-width: 1024px) {
  .gs-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gs-tiles {
    grid-template-columns: minmax(0, 1fr);
  }
}

.gs-tile {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3);
  height: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.gs-tile__media {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.gs-tile__img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Kacheln: Bild nutzt volle Breite, Höhe aus dem Motiv */
.gs-tile__media .gs-tile__img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.gs-tile__value {
  display: flex;
  justify-content: center;
}

.gs-tile__value-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  background: rgba(13,110,253,.96);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 .35rem 1rem rgba(13,110,253,.18);
  min-width: 140px;
}

@media (max-width: 640px) {
  .gs-tile__value-badge {
    font-size: 1.05rem;
    padding: 9px 14px;
    min-width: 120px;
  }
}

.gs-tile__title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: rgba(0,0,0,.85);
}

.gs-tile__actions {
  margin-top: auto;
  display: flex;
  gap: var(--ds-space-3);
  flex-wrap: wrap;
}

.gs-tile__actions .ds-btn {
  width: 100%;
}

/* Breite Kachel: Bild + Beschreibung rechts gleiche Gesamthöhe wie Wertliste links (ab md) */
.gs-tile-wide__form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gs-tile-wide__row {
  flex: 1 1 auto;
  min-height: 0;
}

.gs-tile-wide__values-title {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.gs-tile-wide__amount-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gs-tile-wide__amount-label {
  padding: 12px;
  font-weight: 700;
  font-size: 1.15rem;
}

.gs-tile-wide__values-submit-wrap {
  margin-top: 16px;
  width: 100%;
}

.gs-tile-wide__values-submit-wrap .gs-tile-wide__submit {
  width: 100%;
}

.gs-tile-wide__col-detail {
  min-height: 0;
}

.gs-tile-wide__detail-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}

.gs-tile-wide__detail-media {
  position: relative;
  width: 100%;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}

.gs-tile-wide__detail-media .gs-tile__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.gs-tile-wide__product-title {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.gs-tile-wide__product-desc {
  line-height: 1.6;
}

.gs-tile-wide__submit {
  padding: 14px;
  font-size: 1.1rem;
}

@media (max-width: 767.98px) {
  .gs-tile-wide__detail-media {
    margin-bottom: 16px;
  }
}

@media (min-width: 768px) {
  .gs-tile-wide__col-detail {
    height: 100%;
  }

  .gs-tile-wide__detail-inner {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
  }

  .gs-tile-wide__detail-media {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .gs-tile-wide__detail-media .gs-tile__img {
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .gs-tile-wide__detail-body {
    flex: 0 0 auto;
    padding-top: 16px;
  }
}

