.rt-text-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, #eef2ff 0%, #e7faf7 100%);
}

.rt-text-banner-body {
  min-width: 0;
}

.rt-text-banner-title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.rt-text-banner-text {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 60ch;
}

.rt-text-banner-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  background: #151742;
  color: #fff;
  font-weight: 600;
  font-size: 0.86rem;
  transition: background-color 0.15s ease;
}

.rt-text-banner-cta:hover {
  background: #1bb0a1;
  color: #fff;
}

.rt-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 24px -14px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.rt-showcase:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 20px 32px -14px rgba(15, 23, 42, 0.24);
}

.rt-showcase-media {
  position: relative;
  width: 100%;
  height: 210px;
  background: #eef1f5;
  overflow: hidden;
}

.rt-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rt-showcase-media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 1px 1px, rgba(21, 23, 66, 0.08) 1px, transparent 0) 0 0 / 18px 18px,
    linear-gradient(135deg, #eef2ff 0%, #e7faf7 100%);
}

.rt-showcase-media-icon {
  font-size: 1.9rem;
  color: #94a3b8;
}

.rt-showcase-body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.rt-showcase-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(21, 23, 66, 0.08);
  color: #151742;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rt-showcase-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.rt-showcase-text {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.5;
}

.rt-showcase-cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  background: #151742;
  color: #fff;
  font-weight: 600;
  font-size: 0.86rem;
  transition: background-color 0.15s ease;
}

.rt-showcase-cta i {
  font-size: 0.85em;
  transition: transform 0.15s ease;
}

.rt-showcase-cta:hover {
  background: #1bb0a1;
  color: #fff;
}

.rt-showcase-cta:hover i {
  transform: translateX(2px);
}

.rt-showcase-cta:focus-visible {
  outline: 2px solid #22d4c2;
  outline-offset: 2px;
}

.rt-showcase-stage-1 .rt-showcase-title {
  font-size: 1.35rem;
}

.rt-showcase-stage-1 .rt-showcase-media {
  height: 260px;
}

.rt-showcase-stage-2 .rt-showcase-media {
  height: 220px;
}

.rt-showcase-stage-3 .rt-showcase-media {
  height: 190px;
}

.rt-showcase-layout-split_2_1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
  min-height: 360px;
  height: 360px;
}

.rt-showcase-layout-split_2_1 .rt-showcase-media {
  height: 100% !important;
  min-height: 360px;
  background: #f3f5f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rt-showcase-layout-split_2_1 .rt-showcase-media-empty {
  background:
    radial-gradient(circle at 1px 1px, rgba(21, 23, 66, 0.08) 1px, transparent 0) 0 0 / 18px 18px,
    linear-gradient(135deg, #eef2ff 0%, #e7faf7 100%);
}

.rt-showcase-layout-split_2_1 .rt-showcase-media-icon {
  font-size: 2.75rem;
}

.rt-showcase-layout-split_2_1 .rt-showcase-body {
  height: 100%;
  justify-content: center;
  padding: 1.2rem 1.1rem;
  overflow: hidden;
}

.rt-showcase-layout-split_2_1 .rt-showcase-text {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rt-showcase-layout-split_2_1 .rt-showcase-media img {
  object-fit: contain;
  object-position: center;
}

.rt-showcase-layout-overlay_full {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: #0f172a;
  min-height: 420px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.rt-showcase-layout-overlay_full:hover {
  transform: none;
  box-shadow: none;
}

.rt-showcase-layout-overlay_full .rt-showcase-media {
  position: absolute;
  inset: 0;
  height: 100%;
}

.rt-showcase-layout-overlay_full .rt-showcase-media img {
  object-fit: cover;
}

.rt-showcase-layout-overlay_full .rt-showcase-media-empty {
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0) 0 0 / 18px 18px,
    linear-gradient(135deg, #151742 0%, #0f172a 100%);
}

.rt-showcase-layout-overlay_full .rt-showcase-body {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 420px;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 2.5rem 6vw 3rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.18) 42%, rgba(15, 23, 42, 0.88) 100%);
}

.rt-showcase-layout-overlay_full .rt-showcase-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rt-showcase-layout-overlay_full .rt-showcase-title {
  color: #fff;
  font-size: 1.9rem;
  max-width: 34ch;
}

.rt-showcase-layout-overlay_full .rt-showcase-text {
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
}

.rt-showcase-layout-overlay_full .rt-showcase-cta {
  margin-top: 0.4rem;
  align-self: flex-start;
}

.rt-showcase-rotator-overlay_full {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 420px;
}

.rt-showcase-rotator-overlay_full .rt-showcase-layout-overlay_full {
  width: 100%;
  margin-left: 0;
}

/* Steht das Vollbild-Overlay ganz oben (siehe hero_flush in index.html /
   .shop-hero-flush auf <main> in base.html), schliesst dies die weissen
   Bootstrap-Container-Abstaende (mt-4/my-4) zur Navbar. Ueber main.mt-4
   hinaus muessen die zwei verschachtelten Container in index.html (die
   "container mt-4"-Zeile und #marken-grid-container.my-4) ebenfalls
   genullt werden, da ihre Top-Margins sonst weiterhin Platz beanspruchen. */
main.shop-hero-flush {
  margin-top: 0 !important;
}

main.shop-hero-flush > .container-fluid > .tab-content > .container {
  margin-top: 0 !important;
}

main.shop-hero-flush #marken-grid-container {
  margin-top: 0 !important;
}

.rt-showcase-rotator [data-showcase-rotator-item] {
  transition: opacity 0.28s ease;
}

.rt-showcase-rotator {
  position: relative;
  min-height: 360px;
}

.rt-showcase-rotator-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 1px solid #22d4c2;
  border-radius: 999px;
  background: rgba(21, 23, 66, 0.78);
  color: #22d4c2;
  font-size: 1.05rem;
  line-height: 1;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.rt-showcase-rotator-nav:hover {
  background: #22d4c2;
  color: #151742;
  transform: translateY(-50%) scale(1.06);
}

.rt-showcase-rotator-nav:focus-visible {
  outline: 2px solid #22d4c2;
  outline-offset: 2px;
}

.rt-showcase-rotator-prev {
  left: 10px;
}

.rt-showcase-rotator-next {
  right: 10px;
}

@media (max-width: 992px) {
  .rt-showcase-stage-1 .rt-showcase-media,
  .rt-showcase-stage-2 .rt-showcase-media,
  .rt-showcase-stage-3 .rt-showcase-media {
    height: 200px;
  }

  .rt-showcase-layout-split_2_1 {
    grid-template-columns: 1fr;
    min-height: 420px;
    height: 420px;
  }

  .rt-showcase-layout-split_2_1 .rt-showcase-media {
    min-height: 240px;
  }

  .rt-showcase-layout-split_2_1 .rt-showcase-text {
    -webkit-line-clamp: 4;
  }

  .rt-showcase-rotator {
    min-height: 420px;
  }

  .rt-showcase-layout-overlay_full,
  .rt-showcase-layout-overlay_full .rt-showcase-body,
  .rt-showcase-rotator-overlay_full {
    min-height: 320px;
  }

  .rt-showcase-layout-overlay_full .rt-showcase-body {
    padding: 1.5rem 5vw 1.75rem;
  }

  .rt-showcase-layout-overlay_full .rt-showcase-title {
    font-size: 1.4rem;
  }

  .rt-showcase-layout-overlay_full .rt-showcase-text {
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .rt-showcase-rotator-nav {
    width: 34px;
    height: 34px;
    font-size: 1.25rem;
  }
}

.rt-home-categories {
  margin-bottom: 0.5rem;
}

.rt-home-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 120px));
  gap: 0.5rem;
  justify-content: start;
}

.rt-home-brands .rt-home-categories-grid {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, calc((100% - 4rem) / 5));
  grid-template-rows: 1fr;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.2rem 0 0.8rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.rt-home-brands .rt-home-category-card {
  min-width: 0;
  width: 100%;
  scroll-snap-align: start;
}

.rt-home-category-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #d7dde4;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
  box-shadow: 0 8px 18px rgba(13, 23, 38, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.rt-home-category-card:hover {
  transform: translateY(-2px);
  border-color: #c9a521;
  box-shadow: 0 10px 20px rgba(13, 23, 38, 0.12);
}

.rt-home-category-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #eef2f6;
}

.rt-home-category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rt-home-brand-card .rt-home-category-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  padding: 0.4rem;
}

@media (max-width: 1199.98px) {
  .rt-home-brands .rt-home-categories-grid {
    grid-auto-columns: minmax(190px, calc((100% - 2rem) / 3));
  }
}

@media (max-width: 767.98px) {
  .rt-home-brands .rt-home-categories-grid {
    grid-auto-columns: minmax(170px, calc((100% - 0.75rem) / 2));
    gap: 0.75rem;
  }
}

@media (max-width: 479.98px) {
  .rt-home-brands .rt-home-categories-grid {
    grid-auto-columns: 78%;
  }
}

.rt-home-brand-card .rt-home-category-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.rt-home-brand-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
}

.rt-home-category-media.logo-missing .rt-home-brand-fallback {
  display: flex;
}

.rt-home-category-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.35rem 0.4rem 0.4rem;
}

.rt-home-category-title {
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.rt-home-category-meta {
  color: #64748b;
  font-size: 0.65rem;
  font-weight: 600;
}
