/* ==========================================================================
   mufy.de Startseite – Promo-Karten & Suchergebnisse (/css/promo-loop.css)
   ========================================================================== */

.mufy-index-promo-loop {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.mufy-index-promo-loop:hover,
.mufy-index-promo-loop:has(.mufy-index-promo-card.is-selected),
.mufy-index-promo-loop:has(.mufy-index-promo-card:focus-within) {
  z-index: 30;
}

.mufy-index-promo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.mufy-index-promo-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy, #0f172a);
}

.mufy-index-promo-head-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mufy-index-promo-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mufy-promo-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border, #cbd5e1);
  background: var(--bg, #f8fafc);
  color: var(--navy, #0f172a);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.mufy-promo-nav-btn:hover {
  background: #fff7ed;
  border-color: var(--primary, #f97316);
  color: var(--primary, #f97316);
}

.mufy-promo-nav-btn:active {
  transform: scale(0.95);
}

.mufy-index-promo-all {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary, #f97316);
  text-decoration: none;
}

.mufy-index-promo-all:hover {
  text-decoration: underline;
}

.mufy-index-promo-wrap {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 4px 2px 8px;
  touch-action: pan-y;
}

.mufy-index-promo-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  transform: translate3d(0, 0, 0);
  opacity: 1;
  will-change: transform, opacity;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.mufy-index-promo-track.is-swiping {
  transition: none !important;
}

.mufy-index-promo-track.is-leaving-next {
  transform: translate3d(-36px, 0, 0);
  opacity: 0;
}

.mufy-index-promo-track.is-leaving-prev {
  transform: translate3d(36px, 0, 0);
  opacity: 0;
}

.mufy-index-promo-track.is-entering-next {
  transition: none !important;
  transform: translate3d(36px, 0, 0);
  opacity: 0;
}

.mufy-index-promo-track.is-entering-prev {
  transition: none !important;
  transform: translate3d(-36px, 0, 0);
  opacity: 0;
}

@media (max-width: 960px) {
  .mufy-index-promo-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .mufy-index-promo-track {
    grid-template-columns: minmax(0, 1fr);
  }
}

.mufy-index-promo-card {
  width: 100%;
  min-width: 0;
  min-height: 176px;
  box-sizing: border-box;
  background: var(--bg, #f8fafc);
  border: 1.5px solid var(--border, #cbd5e1);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text, #1e293b);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transform-origin: center center;
  position: relative;
  z-index: 1;
  outline: none;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
  .mufy-index-promo-card:hover,
  .mufy-index-promo-card.is-selected {
    transform: translateY(-2px);
    border-color: var(--primary, #f97316);
    z-index: 20;
    background: var(--surface, #ffffff);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  }
}

.mufy-index-promo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
}

.mufy-index-promo-logo {
  max-height: 44px;
  max-width: 155px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  background: var(--surface, #ffffff);
  padding: 5px 8px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.mufy-index-promo-shop {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--navy, #0f172a);
}

.mufy-index-promo-badge {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fdba74;
  white-space: nowrap;
  flex-shrink: 0;
}

.mufy-index-promo-name {
  font-size: 1.02rem;
  line-height: 1.38;
  font-weight: 700;
  color: var(--navy, #0f172a);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mufy-index-promo-desc {
  display: none;
  font-size: 0.88rem;
  line-height: 1.42;
  color: #334155;
  font-weight: 500;
}

.mufy-index-promo-card:hover .mufy-index-promo-name,
.mufy-index-promo-card.is-selected .mufy-index-promo-name,
.mufy-index-promo-card:focus-within .mufy-index-promo-name {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.mufy-index-promo-card:hover .mufy-index-promo-desc,
.mufy-index-promo-card.is-selected .mufy-index-promo-desc,
.mufy-index-promo-card:focus-within .mufy-index-promo-desc {
  display: block;
}

.mufy-index-promo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.mufy-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mufy-promo-btn--code {
  background: #fff7ed;
  color: #c2410c;
  border: 1px dashed #fb923c;
  font-family: inherit;
}

.mufy-promo-btn--code:hover {
  background: #ffedd5;
  border-color: #ea580c;
}

.mufy-promo-btn--code.is-copied {
  background: #dcfce7;
  border-style: solid;
  border-color: #16a34a;
  color: #15803d;
}

.mufy-promo-btn--go {
  background: var(--primary, #f97316);
  color: #ffffff;
  border-color: var(--primary, #f97316);
}

.mufy-promo-btn--go:hover {
  background: #ea580c;
  border-color: #ea580c;
}

/* Suchergebnisse & Filter-Leiste */
#filterPanel.is-hidden-on-start .filter-heading,
#filterPanel.is-hidden-on-start .mobile-filter-toggle,
#filterPanel.is-hidden-on-start #mobileFilterBody > .filter-group,
#filterPanel.is-hidden-on-start #dynamicSidebarFilters,
#filterPanel.is-hidden-on-start #resetFiltersBtn {
  display: none !important;
}

#filterPanel.is-hidden-on-start .sidebar-popular-box {
  margin-top: 0;
}

#filterPanel.is-topics-only .filter-heading,
#filterPanel.is-topics-only .mobile-filter-toggle,
#filterPanel.is-topics-only #mobileFilterBody > .filter-group,
#filterPanel.is-topics-only #dynamicSidebarFilters,
#filterPanel.is-topics-only #resetFiltersBtn {
  display: none !important;
}

#filterPanel.is-topics-only .sidebar-popular-box {
  margin-top: 0;
}

.search-insurance-banner {
  margin-top: 18px;
}

.offer-merchant-logo {
  max-height: 24px;
  max-width: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.single-offer-shop-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}

.single-offer-shop-row .offer-merchant-logo {
  max-height: 22px;
  max-width: 105px;
}

.offer-merchant-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

/* ==========================================================================
   Gutscheine-Seite (/gutscheine.php) & verdeckte Codes
   ========================================================================== */

.page-wrap {
  max-width: 1320px;
  margin: 22px auto 36px;
  padding: 0 20px;
}

.hero-bar {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-bar h1 {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--navy, #0f172a);
  margin: 0 0 4px;
}

.hero-sub {
  color: var(--muted, #64748b);
  font-size: 0.92rem;
  margin: 0;
}

.stats-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-chip {
  background: var(--surface-soft, #f1f5f9);
  color: var(--navy, #0f172a);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid var(--border, #e2e8f0);
}

.mufy-promo-loop-box {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 18px 20px 14px;
  margin-bottom: 18px;
  overflow: visible;
}

.mufy-promo-loop-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.mufy-promo-loop-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy, #0f172a);
}

.mufy-promo-loop-hint {
  font-size: 0.8rem;
  color: var(--muted, #64748b);
}

.mufy-promo-loop-wrap {
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
  max-width: 100%;
  position: relative;
  padding: 6px 2px 10px;
}

.mufy-promo-loop-track {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: max-content;
  animation: mufyPromoMarquee var(--marquee-duration, 46s) linear infinite;
  will-change: transform;
}

.mufy-promo-loop-track:hover,
.mufy-promo-loop-track:focus-within {
  animation-play-state: paused;
}

@keyframes mufyPromoMarquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(calc(-1 * var(--marquee-shift, 1470px)), 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .mufy-promo-loop-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
  }
}

.mufy-promo-loop-card {
  flex: 0 0 280px;
  max-width: 280px;
  background: var(--bg, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text, #1e293b);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.mufy-promo-loop-card:hover {
  border-color: var(--primary, #f97316);
  background: var(--surface, #ffffff);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.mufy-promo-loop-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
}

.mufy-promo-loop-logo {
  max-height: 28px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  background: #ffffff;
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid #eef2f6;
}

.mufy-promo-loop-name {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: var(--primary-hover, #ea580c);
  border: 1px solid #fdba74;
  white-space: nowrap;
}

.mufy-promo-loop-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy, #0f172a);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mufy-promo-loop-code {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary-hover, #ea580c);
}

.toolbar {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.tab-btn {
  background: var(--bg, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  color: var(--navy, #0f172a);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.tab-btn:hover {
  border-color: var(--primary, #f97316);
  color: var(--primary-hover, #ea580c);
}

.tab-btn.active {
  background: var(--navy, #0f172a);
  color: #ffffff;
  border-color: var(--navy, #0f172a);
}

.shop-select,
.local-search-input {
  padding: 9px 13px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #ffffff;
  color: var(--text, #1e293b);
}

.shop-select {
  min-width: 220px;
  max-width: 100%;
}

.local-search-input {
  min-width: 260px;
  max-width: 100%;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

@media (max-width: 720px) {
  .promo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .shop-select,
  .local-search-input {
    width: 100%;
    min-width: 0;
  }
  .filter-controls {
    width: 100%;
  }
  .page-wrap {
    padding: 0 14px;
    margin: 16px auto 28px;
  }
  .hero-bar {
    padding: 18px;
  }
}

.promo-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.promo-card:hover {
  border-color: var(--primary, #f97316);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.promo-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 32px;
}

.badge-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.badge-voucher {
  background: #fff7ed;
  color: var(--primary-hover, #ea580c);
  border: 1px solid #fdba74;
}

.badge-deal {
  background: #eff6ff;
  color: var(--navy, #0f172a);
  border: 1px solid #bfdbfe;
}

.merchant-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}

.merchant-logo {
  max-height: 28px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.merchant-name {
  font-weight: 800;
  color: var(--navy, #0f172a);
  font-size: 0.9rem;
}

.promo-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--navy, #0f172a);
  line-height: 1.35;
}

.promo-desc {
  font-size: 0.86rem;
  color: var(--muted, #64748b);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.promo-footer {
  border-top: 1px solid #eef2f6;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.code-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff8f2;
  border: 1px dashed var(--primary, #f97316);
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.84rem;
}

.code-box code {
  font-weight: 900;
  color: var(--primary-hover, #ea580c);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.code-box.is-hidden .code-value {
  filter: blur(5px);
  user-select: none;
}

.copy-btn {
  background: var(--surface-soft, #f1f5f9);
  border: 1px solid var(--border, #e2e8f0);
  color: var(--navy, #0f172a);
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.copy-btn:hover {
  background: #e2e8f0;
}

.copy-btn.is-copied {
  background: #dcfce7;
  border-color: #16a34a;
  color: #15803d;
}

.go-btn {
  background: var(--primary, #f97316);
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 8px 13px;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.18s ease;
}

.go-btn:hover {
  background: var(--primary-hover, #ea580c);
}

.meta-valid {
  font-size: 0.78rem;
  color: var(--muted, #64748b);
}

.empty-box {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 36px 24px;
  text-align: center;
  color: var(--muted, #64748b);
}

.show-more-wrap {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.show-more-btn {
  background: var(--surface, #ffffff);
  border: 1.5px solid var(--border, #e2e8f0);
  color: var(--navy, #0f172a);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.show-more-btn:hover {
  border-color: var(--primary, #f97316);
  color: var(--primary-hover, #ea580c);
  background: #fff7ed;
}
