/* ======================================================
   VOUCHER PAGE
====================================================== */

.gutschein-page {
 
  padding: 40px 0 80px;
}

.gutschein-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 30px;
  background: #f3dede;
  border-radius: 20px;
}


/* ======================================================
   ITEM LAYOUT
====================================================== */

.gutschein-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 46px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.gutschein-item:last-child {
  border-bottom: none;
}

.gutschein-item__text {
  position: relative;
  max-width: 360px;
  padding-top: 8px;
}

.gutschein-item__text h2 {
  margin: 0 0 14px;
  font-size: clamp(36px, 3vw, 56px);
  line-height: 1.02;
  font-weight: 700;
  color: #111;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

.gutschein-item__tag {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.45;
  color: #111;
}

.gutschein-item__text p {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.6;
  color: #111;
}

.gutschein-item__text a {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid #111;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: #111;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.gutschein-item__text a:hover,
.gutschein-item__text a:focus {
  opacity: 0.75;
  transform: translateY(-1px);
}


/* ======================================================
   GALLERY
====================================================== */

.gutschein-item__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  min-width: 0;
}

.gutschein-item__image {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 24px;
  background: #f4f1ee;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.gutschein-item__image--voucher {
  grid-column: 1 / -1;
}

.gutschein-item__image img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gutschein-item__image:hover img {
  transform: scale(1.03);
}

/* entfernt dekorativen Platzhalter in leeren Boxen */
.gutschein-item__image::before {
  content: none;
}


/* ======================================================
   VOUCHER CARD
====================================================== */

.voucher-card {
  width: 100%;
  min-height: 220px;
  background: #ebe8e4;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  padding: 24px;
}

.voucher-card__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  
  color: rgba(94, 165, 0);
}

.voucher-card__percent {
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
}

.voucher-card__label {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.voucher-card__content h3 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
  color: #111;
}

.voucher-card__content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}

.voucher-card__action {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.voucher-card__button {
  background: rgba(82, 14, 28);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.voucher-card__button:hover,
.voucher-card__button:focus {
  background: #da7a1f;
  transform: translateY(-1px);
}


/* ======================================================
   POPUP
====================================================== */

.voucher-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 22, 35, 0.68);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.voucher-popup-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.voucher-popup {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  padding: 34px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.voucher-popup__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 34px;
  line-height: 1;
  color: #444;
  cursor: pointer;
}

.voucher-popup__logo {
  text-align: center;
  margin-bottom: 20px;
}

.voucher-popup__logo img {
  width: 100%;
  max-width: 160px;
  height: auto;
}

.voucher-popup h3 {
  margin: 0 0 20px;
  font-size: 34px;
  line-height: 1.2;
  text-align: center;
  color: #111;
}

.voucher-popup__hint {
  width: fit-content;
  margin: 0 auto 20px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #eef5fb;
  color: #1b4b72;
  font-size: 14px;
  font-weight: 600;
}

.voucher-popup__cta {
  display: block;
  width: fit-content;
  margin: 0 auto 26px;
  padding: 14px 26px;
  border-radius: 8px;
  background: #f28c28;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.25s ease, transform 0.2s ease;
}

.voucher-popup__cta:hover,
.voucher-popup__cta:focus {
  background: #da7a1f;
  transform: translateY(-1px);
}

.voucher-popup__divider {
  border-top: 1px solid #ddd;
  margin: 0 0 22px;
}

.voucher-popup__conditions h4 {
  margin: 0 0 14px;
  font-size: 24px;
  color: #111;
}

.voucher-popup__conditions ul {
  margin: 0 0 16px 20px;
  padding: 0;
}

.voucher-popup__conditions li {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.5;
  color: #222;
}

.voucher-popup__conditions p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.5;
  color: #444;
}

.voucher-popup__conditions small {
  display: block;
  color: #666;
  font-size: 14px;
}


/* ======================================================
   BADGES
====================================================== */

.gutschein-badge {
  position: absolute;
  top: 14px;
  left: 0;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: clamp(11px, 0.8vw, 13px);
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1;
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge-deal {
  background: #9f1537;
}

.badge-sale {
  background: #e67e22;
}

.badge-code {
  background: #27ae60;
}

.gutschein-item:hover .gutschein-badge {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
}


/* ======================================================
   LARGE DESKTOP
====================================================== */

@media (min-width: 1440px) {
  .gutschein-container {
    max-width: 1500px;
    padding: 0 40px;
  }

  .gutschein-item {
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 64px;
    padding: 54px 0;
  }

  .gutschein-item__gallery {
    gap: 28px;
  }

  .gutschein-item__image img {
    height: 300px;
  }

  .gutschein-badge {
    min-height: 34px;
    padding: 8px 18px;
  }
}


/* ======================================================
   TABLET
====================================================== */

@media (max-width: 1024px) {
  .gutschein-page {
    padding: 32px 0 64px;
  }

  .gutschein-container {
    padding: 0 24px;
  }

  .gutschein-item {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 38px 0;
  }

  .gutschein-item__text {
    max-width: 100%;
    padding-top: 18px;
  }

  .gutschein-item__text h2 {
    font-size: 34px;
  }

  .gutschein-item__tag {
    font-size: 17px;
  }

  .gutschein-item__text p,
  .gutschein-item__text a {
    font-size: 17px;
  }

  .gutschein-item__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .gutschein-item__image--voucher {
    grid-column: 1 / -1;
  }

  .gutschein-item__image {
    border-radius: 24px;
  }

  .gutschein-item__image img {
    height: 240px;
  }

  .voucher-card {
    grid-template-columns: 100px 1fr;
  }

  .voucher-card__percent {
    font-size: 42px;
  }

  .voucher-card__content h3 {
    font-size: 22px;
  }

  .voucher-popup h3 {
    font-size: 28px;
  }

  .gutschein-badge {
    top: 0;
    left: 0;
  }
}


/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 767px) {
  .gutschein-page {
    padding: 20px 0 50px;
  }

  .gutschein-container {
    padding: 0 18px;
  }

  .gutschein-item {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 0 30px;
  }

  .gutschein-item__text {
    max-width: 100%;
    padding-top: 22px;
  }

  .gutschein-badge {
    top: 8px;
    left: 0;
    min-height: 28px;
    padding: 5px 12px;
    font-size: 11px;
  }

  .gutschein-item__text h2 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.08;
  }

  .gutschein-item__tag {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.45;
  }

  .gutschein-item__text p {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.55;
  }

  .gutschein-item__text a {
    font-size: 16px;
  }

  .gutschein-item__gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gutschein-item__image--voucher {
    grid-column: auto;
  }

  .gutschein-item__image {
    border-radius: 22px;
  }

  .gutschein-item__image img {
    height: 220px;
  }

  .voucher-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .voucher-card__left {
    align-items: flex-start;
  }

  .voucher-card__percent {
    font-size: 40px;
  }

  .voucher-card__content h3 {
    font-size: 20px;
  }

  .voucher-popup {
    padding: 28px 20px;
  }

  .voucher-popup h3 {
    font-size: 24px;
  }
}


/* ======================================================
   SMALL MOBILE
====================================================== */

@media (max-width: 430px) {
  .gutschein-page {
    padding: 18px 0 40px;
  }

  .gutschein-container {
    padding: 0 12px;
  }

  .gutschein-item {
    gap: 20px;
    padding: 24px 0 26px;
  }

  .gutschein-item__text {
    padding-top: 24px;
  }

  .gutschein-badge {
    top: 8px;
    left: 0;
    min-height: 26px;
    padding: 5px 10px;
    font-size: 10px;
  }

  .gutschein-item__text h2 {
    font-size: 24px;
    line-height: 1.1;
  }

  .gutschein-item__tag {
    font-size: 15px;
  }

  .gutschein-item__text p,
  .gutschein-item__text a {
    font-size: 15px;
  }

  .gutschein-item__image img {
    height: 200px;
  }

  .voucher-card__percent {
    font-size: 34px;
  }

  .voucher-card__content h3 {
    font-size: 18px;
  }

  .voucher-card__button {
    width: 100%;
    justify-content: center;
  }
}



.voucher-card--small {
  min-height: 220px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px 22px 20px;
}

.voucher-card--small .voucher-card__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
}

.voucher-card--small .voucher-card__percent {
  font-size: 30px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.5px;
}

.voucher-card--small .voucher-card__label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
}

.voucher-card--small .voucher-card__content {
  padding-top: 2px;
}

.voucher-card--small .voucher-card__content h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.2;
  color: #111;
}

.voucher-card--small .voucher-card__content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #333;
}

.voucher-card--small .voucher-card__action {
  grid-column: 1 / -1;
  display: flex;
  justify-content: stretch;
  margin-top: 14px;
}

.voucher-card--small .voucher-card__button {
  width: 100%;
  padding: 13px 18px;
  font-size: 14px;
}