/* Offer card — photo + curved white sheet (city, city × category, category,
   /offers). Loaded after main.css; every class is `oc-*` so the older
   `.offers-page .offer-card-*` rules cannot reach it. */

ul.offer-grid {
  gap: clamp(1.1rem, 2vw, 1.6rem);
}

.oc-card {
  display: flex;
  min-width: 0;
  container-type: inline-size;
}

.oc-card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--color-surface, #fff);
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 22px 44px -26px rgba(7, 11, 36, 0.45),
    0 2px 6px rgba(7, 11, 36, 0.05);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.oc-card-inner:hover {
  transform: translateY(-4px);
  box-shadow:
    0 30px 56px -26px rgba(7, 11, 36, 0.5),
    0 2px 6px rgba(7, 11, 36, 0.05);
}

/* ── Photo ─────────────────────────────────────────────────────────── */

.oc-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #e6e9f8, #d8ddf2);
  overflow: hidden;
}

.oc-media-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.oc-card-inner:hover .oc-media-img {
  transform: scale(1.04);
}

.oc-media-img--empty {
  background:
    radial-gradient(80% 90% at 20% 10%, rgba(18, 48, 255, 0.22), transparent 60%),
    linear-gradient(135deg, #e4e9f9, #dde4f6);
}

/* "Ab 15 EUR" ticket */
.oc-badge {
  position: absolute;
  top: 1.05rem;
  left: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: calc(100% - 2.1rem);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5f7d, #f51e58);
  color: #fff;
  font-family: var(--font-display, inherit);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  box-shadow: 0 10px 22px -12px rgba(245, 30, 88, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oc-badge svg {
  flex: none;
  opacity: 0.95;
}

/* ── White sheet ───────────────────────────────────────────────────── */

.oc-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  margin-top: -1.9rem;
  padding: 1.6rem 1.55rem 1.15rem;
  border-radius: 34px 34px 0 0;
  background: var(--color-surface, #fff);
  box-shadow: 0 -1px 0 rgba(7, 11, 36, 0.02);
}

.oc-shop {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  margin: 0;
  font-family: var(--font-display, inherit);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.3;
}

.oc-shop-pin {
  flex: none;
  color: #6538f0;
}

.oc-shop-name,
.oc-shop-city {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* The studio name gives way first; the city stays whole. */
.oc-shop-name {
  flex: 1 1 auto;
  min-width: 0;
  color: #6d7590;
}

.oc-shop-city {
  flex: 0 0 auto;
  color: #9aa2bb;
}

.oc-shop-sep {
  flex: none;
  width: 1px;
  height: 1.15rem;
  background: #d9ddec;
}

.oc-title {
  margin: 0.7rem 0 0;
  font-family: var(--font-display, inherit);
  font-size: clamp(1.25rem, 1.35vw, 1.55rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.022em;
  color: #0b1035;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.oc-title-link {
  color: inherit;
  text-decoration: none;
}

.oc-title-link:hover {
  color: var(--color-primary, #1230ff);
  text-decoration: none;
}

/* ── Footer: expiry pill + CTA ─────────────────────────────────────── */

.oc-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.oc-expiry {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.68rem 1.05rem;
  border-radius: 999px;
  background: #f4f5fc;
  color: #3c4364;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
}

.oc-expiry svg {
  flex: none;
  color: #5f678c;
}

.oc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #7a3cf0 0%, #4a1fd9 55%, #3a12c9 100%);
  color: #fff;
  font-family: var(--font-display, inherit);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 14px 26px -14px rgba(74, 31, 217, 0.95);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.oc-cta:hover,
.oc-cta:focus-visible {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 18px 30px -14px rgba(74, 31, 217, 1);
}

.oc-cta svg {
  flex: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.oc-cta:hover svg {
  transform: translateX(3px);
}

.oc-cta--disabled {
  background: #eceef7;
  color: #9aa2bb;
  box-shadow: none;
  cursor: default;
}

.oc-ad {
  margin-top: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b3b9cd;
}

/* ── Narrow cards ───────────────────────────────────────────────────
   The grid gives three ~300px cards on a laptop, where a 470px-wide pill
   and button cannot share a row: stack them, as on a phone. Container
   queries follow the card, not the viewport, so two-up and single grids
   get the right variant too. */

@container (max-width: 360px) {
  .oc-shop {
    font-size: 0.74rem;
    letter-spacing: 0.05em;
  }

  .oc-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .oc-expiry,
  .oc-cta {
    justify-content: center;
    width: 100%;
  }

  .oc-expiry {
    padding: 0.6rem 0.9rem;
    font-size: 0.88rem;
  }

  .oc-cta {
    padding: 0.8rem 1.1rem;
    font-size: 0.96rem;
  }
}

@media (max-width: 640px) {
  .oc-body {
    padding: 1.35rem 1.15rem 1rem;
    margin-top: -1.5rem;
    border-radius: 26px 26px 0 0;
  }

  .oc-badge {
    top: 0.8rem;
    left: 0.8rem;
    font-size: 0.92rem;
    padding: 0.45rem 0.85rem;
  }

  .oc-shop {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
  }

  .oc-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding-top: 1.15rem;
  }

  .oc-expiry,
  .oc-cta {
    justify-content: center;
    width: 100%;
  }
}

/* ── Section CTA under the grid ("Mehr Angebote ansehen") ───────────── */

.offer-more {
  margin: 1.75rem 0 0;
}

.offer-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #7a3cf0, #3a12c9);
  color: #fff;
  font-family: var(--font-display, inherit);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 30px -16px rgba(74, 31, 217, 0.95);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.offer-more-btn:hover,
.offer-more-btn:focus-visible {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 20px 34px -16px rgba(74, 31, 217, 1);
}

.offer-more-btn svg {
  flex: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.offer-more-btn:hover svg {
  transform: translateX(3px);
}
