/* ======================================================
   HOMEPAGE BOX STRUCTURE
====================================================== */

.home-boxes {
  width: 100%;
  max-width: 1520px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(340px, 1fr));
  gap: 34px;
  padding: 0 32px;
  align-items: stretch;
}

.home-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(159, 21, 55, 0.08);
}

.home-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.box-title {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg, #b31644 0%, #9f1537 100%);
  color: #ffffff;
  padding: 24px 26px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  margin: 0;
}

.box-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.box-btn {
  display: block;
  background: #9f1537;
  color: #ffffff;
  text-align: center;
  padding: 18px 20px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  margin-top: auto;
  transition: background 0.2s ease, transform 0.2s ease;
}

.box-btn:hover {
  background: #7c0f2b;
  transform: translateY(-1px);
}

.home-main {
  width: 100%;
  padding: 0 20px;
}

.site-content {
  display: flex;
  justify-content: center;
}

.inside-article {
  width: 100%;
}


/* ======================================================
   COUPON LIST
====================================================== */

.coupon-item {
  color: #7c0f2b;
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 22px;
  padding: 24px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease;
}

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

.coupon-item:hover {
  background: rgba(159, 21, 55, 0.04);
}

.coupon-logo {
  width: 108px;
  height: 72px;
  flex-shrink: 0;
  object-fit: contain;
  justify-self: center;
}

.coupon-icon {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  justify-self: center;
  background-image: url("/wp-content/uploads/2026/03/icon-coupon.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.coupon-text {
  color: #7c0f2b;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.coupon-text a {
  font-weight: 700;
  font-size: 26px;
  color: #9f1537;
  text-decoration: none;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.coupon-text a:hover {
  text-decoration: underline;
}

.coupon-desc {
  font-size: 18px;
  line-height: 1.55;
  color: #333;
  margin-top: 8px;
  overflow-wrap: anywhere;
}


/* ======================================================
   CATEGORY ICON LIST
====================================================== */

.cat-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 22px;
  padding: 24px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease;
}

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

.cat-item:hover {
  background: rgba(159, 21, 55, 0.04);
}

.cat-icon {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  justify-self: center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60px 60px;
}

.cat-beauty .cat-icon {
  background-image: url("/wp-content/uploads/2026/04/beauty_icon.png");
}

.cat-mode .cat-icon {
  background-image: url("/wp-content/uploads/2026/03/shirt-svgrepo-com.png");
}

.cat-haushalt .cat-icon {
  background-image: url("/wp-content/uploads/2026/03/basket-icon.png");
}

.cat-reisen .cat-icon {
  background-image: url("/wp-content/uploads/2026/03/palm-tree-svgrepo-com.png");
}

.cat-elektronik .cat-icon {
  background-image: url("/wp-content/uploads/2026/03/gamepad-controller-svgrepo-com.png");
}

.cat-item a {
  display: block;
  font-weight: 700;
  color: #9f1537;
  text-decoration: none;
  line-height: 1.2;
}

.cat-item a:hover {
  text-decoration: underline;
}

.cat-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cat-text a {
  font-weight: 700;
  font-size: 26px;
  color: #9f1537;
  text-decoration: none;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.cat-count {
  font-size: 16px;
  color: #333;
  margin-top: 8px;
}

.category-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 0;
  padding: 20px 20px 24px;
  box-sizing: border-box;
  opacity: var(--img-opacity, 1);
  transform: translateY(0);
  transition: opacity 0.1s linear, transform 0.6s ease;
}


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

@media (min-width: 1600px) {
  .home-boxes {
    max-width: 1680px;
    grid-template-columns: repeat(3, minmax(380px, 1fr));
    gap: 38px;
    padding: 0 36px;
  }

  .box-title {
    font-size: 32px;
    padding: 26px 28px;
  }

  .coupon-item,
  .cat-item {
    grid-template-columns: 128px 1fr;
    gap: 24px;
    padding: 26px 26px;
  }

  .coupon-logo {
    width: 116px;
    height: 76px;
  }

  .cat-icon {
    width: 106px;
    height: 106px;
    background-size: 64px 64px;
  }

  .coupon-text a,
  .cat-text a,
  .cat-item > a {
    font-size: 28px;
  }

  .coupon-desc,
  .cat-count {
    font-size: 18px;
  }
}


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

@media (max-width: 1200px) {
  .home-boxes {
    max-width: 1320px;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 24px;
    padding: 0 24px;
  }

  .box-title {
    padding: 20px 20px;
    font-size: 24px;
  }

  .box-icon {
    width: 38px;
    height: 38px;
  }

  .coupon-item,
  .cat-item {
    grid-template-columns: 96px 1fr;
    gap: 16px;
    padding: 20px 20px;
  }

  .coupon-logo {
    width: 88px;
    height: 58px;
  }

  .coupon-icon {
    width: 82px;
    height: 82px;
  }

  .cat-icon {
    width: 88px;
    height: 88px;
    background-size: 54px 54px;
  }

  .coupon-text a,
  .cat-text a,
  .cat-item > a {
    font-size: 21px;
    line-height: 1.25;
  }

  .coupon-desc,
  .cat-count {
    font-size: 15px;
  }

  .category-image {
    width: 78%;
    margin: 12px auto 18px;
    padding: 0;
  }
}

@media (max-width: 1024px) {
  .home-boxes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding: 0 20px;
  }

  .box-title {
    padding: 18px 18px;
    font-size: 22px;
  }

  .box-icon {
    width: 36px;
    height: 36px;
  }

  .coupon-item,
  .cat-item {
    grid-template-columns: 90px 1fr;
    gap: 16px;
    padding: 18px 18px;
  }

  .coupon-logo {
    width: 84px;
    height: 56px;
  }

  .coupon-icon {
    width: 80px;
    height: 80px;
  }

  .cat-icon {
    width: 84px;
    height: 84px;
    background-size: 52px 52px;
  }

  .coupon-text a,
  .cat-text a,
  .cat-item > a {
    font-size: 19px;
    line-height: 1.25;
  }

  .coupon-desc,
  .cat-count {
    font-size: 14px;
  }

  .category-image {
    width: 78%;
    margin: 12px auto 18px;
    padding: 0;
  }
}

@media (max-width: 900px) {
  .home-boxes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .home-box {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .home-box:last-child {
    grid-column: 1 / -1;
  }

  .box-title {
    font-size: 24px;
  }

  .coupon-item,
  .cat-item {
    grid-template-columns: 96px 1fr;
    gap: 18px;
    padding: 20px 20px;
  }

  .coupon-logo {
    width: 90px;
    height: 58px;
  }

  .cat-icon {
    width: 88px;
    height: 88px;
    background-size: 54px 54px;
  }

  .coupon-text a,
  .cat-text a,
  .cat-item > a {
    font-size: 21px;
  }

  .coupon-desc,
  .cat-count {
    font-size: 15px;
  }
}


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

@media (max-width: 768px) {
  .home-boxes {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-box,
  .home-box:last-child {
    width: 100%;
    max-width: none;
    grid-column: auto;
    margin-left: auto;
    margin-right: auto;
  }

  .box-title {
    padding: 18px 18px;
    font-size: 24px;
    line-height: 1.2;
  }

  .box-icon {
    width: 34px;
    height: 34px;
  }

  .coupon-item {
    grid-template-columns: 88px 1fr;
    align-items: center;
    gap: 16px;
    padding: 18px 16px;
  }

  .cat-item {
    grid-template-columns: 92px 1fr;
    align-items: center;
    gap: 18px;
    padding: 20px 18px;
  }

  .coupon-logo {
    width: 84px;
    height: 54px;
  }

  .coupon-icon {
    width: 82px;
    height: 82px;
  }

  .cat-icon {
    width: 86px;
    height: 86px;
    background-size: 52px 52px;
    margin: 0 auto;
  }

  .coupon-text,
  .cat-text {
    min-width: 0;
  }

  .coupon-text a {
    font-size: 20px;
    line-height: 1.25;
    word-break: break-word;
  }

  .cat-text a,
  .cat-item > a {
    font-size: 21px;
    line-height: 1.25;
    word-break: break-word;
  }

  .coupon-desc,
  .cat-count {
    font-size: 15px;
    line-height: 1.5;
    margin-top: 6px;
  }

  .box-btn {
    padding: 15px 16px;
    font-size: 15px;
  }

  .category-image {
    width: 72%;
    margin: 10px auto 18px;
    padding: 0;
  }
}

@media (max-width: 576px) {
  .home-boxes {
    padding-left: 16px;
    padding-right: 16px;
    gap: 18px;
  }

  .home-box {
    max-width: none;
    border-radius: 16px;
  }

  .box-title {
    font-size: 21px;
    padding: 16px 16px;
  }

  .box-icon {
    width: 30px;
    height: 30px;
  }

  .box-btn {
    padding: 13px;
    font-size: 14px;
  }

  .coupon-item {
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 16px 14px;
    align-items: center;
  }

  .cat-item {
    grid-template-columns: 78px 1fr;
    gap: 14px;
    padding: 18px 16px;
    align-items: center;
  }

  .coupon-logo {
    width: 68px;
    height: 46px;
  }

  .coupon-icon {
    width: 68px;
    height: 68px;
  }

  .cat-icon {
    width: 74px;
    height: 74px;
    background-size: 46px 46px;
    margin: 0 auto;
  }

  .coupon-text a {
    font-size: 17px;
  }

  .cat-text a,
  .cat-item > a {
    font-size: 18px;
    line-height: 1.25;
  }

  .coupon-desc,
  .cat-count {
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .home-boxes {
    padding-left: 14px;
    padding-right: 14px;
  }

  .home-box {
    max-width: 100%;
  }

  .box-title {
    font-size: 19px;
    padding: 15px 14px;
  }

  .coupon-item {
    grid-template-columns: 64px 1fr;
    gap: 10px;
    padding: 15px 12px;
  }

  .cat-item {
    grid-template-columns: 68px 1fr;
    gap: 12px;
    padding: 16px 14px;
  }

  .coupon-logo {
    width: 60px;
    height: 42px;
  }

  .coupon-icon {
    width: 60px;
    height: 60px;
  }

  .cat-icon {
    width: 64px;
    height: 64px;
    background-size: 40px 40px;
  }

  .coupon-text a,
  .cat-text a,
  .cat-item > a {
    font-size: 16px;
  }

  .coupon-desc,
  .cat-count {
    font-size: 12px;
  }

  .category-image {
    width: 82%;
  }
}