.btn,
.chip-btn,
.header-search button,
.table-action {
  appearance: none;
  border: 0;
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover,
.chip-btn:hover,
.header-search button:hover,
.table-action:hover {
  transform: translateY(-2px);
}

.btn:active,
.chip-btn:active {
  transform: translateY(0);
  filter: brightness(0.94);
  transition-duration: 60ms;
}

.btn,
.header-search button,
.table-action--primary {
  background: linear-gradient(135deg, var(--primary), #4b8dff);
  color: var(--primary-contrast);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
}

.btn:hover,
.header-search button:hover {
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26);
}

.btn--ghost,
.chip-btn,
.table-action {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover,
.chip-btn:hover,
.table-action:hover {
  border-color: var(--ring);
  background: var(--bg-soft);
}

.badge,
.eyebrow,
.product-card__badge,
.admin-pill,
.filter-chip,
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow,
.filter-chip,
.brand-pill {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
}

html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .filter-chip,
html[data-theme="dark"] .brand-pill {
  background: rgba(15, 23, 42, 0.62);
}

.product-card__badge,
.admin-pill--accent,
.badge--accent {
  color: var(--primary-contrast);
  background: linear-gradient(135deg, var(--primary), #4b8dff);
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.badge--soft,
.admin-pill {
  background: var(--bg-soft);
  color: var(--text);
}

.panel,
.hero-card,
.filter-card,
.product-card,
.detail-card,
.summary-card,
.contact-card,
.about-card,
.admin-surface,
.footer-card,
.promo-card,
.mosaic-card,
.brand-pill {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.hero-card,
.filter-card,
.detail-card,
.summary-card,
.contact-card,
.about-card,
.admin-surface,
.panel {
  padding: 32px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.22), transparent 32%),
    radial-gradient(circle at 88% 14%, rgba(14, 165, 233, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 255, 0.88));
}

html[data-theme="dark"] .hero-card {
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.16), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(14, 165, 233, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(11, 18, 32, 0.94));
}

.hero-card h1 {
  margin-bottom: 16px;
  font-size: clamp(2.7rem, 4vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-card p,
.section-copy,
.muted {
  color: var(--muted);
}

.header-search,
.filter-form,
.product-card__actions,
.summary-row,
.breadcrumbs,
.topbar__points,
.header-actions,
.hero-actions,
.hero-stats,
.shop-toolbar__chips,
.cards-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  background: var(--card);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.product-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.14);
  border-color: rgba(37, 99, 235, 0.18);
}

.product-card__image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 28px;
  background:
    radial-gradient(circle at top, rgba(96, 165, 250, 0.12), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 249, 255, 0.75));
}

html[data-theme="dark"] .product-card__image {
  background:
    radial-gradient(circle at top, rgba(96, 165, 250, 0.12), transparent 52%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(11, 18, 32, 0.78));
}

.product-card__image img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  transition: transform 300ms ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__body {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.product-card__meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.product-card__price strong {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.product-card__price span {
  color: var(--muted);
  text-decoration: line-through;
}

.product-card__actions {
  justify-content: space-between;
  margin-top: auto;
}

.product-card__actions form {
  margin: 0;
}

.promo-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  min-height: 236px;
  padding: 14px;
  border-radius: 26px;
  text-decoration: none;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.45), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 246, 255, 0.84));
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

html[data-theme="dark"] .promo-card {
  background:
    radial-gradient(circle at top right, rgba(148, 163, 184, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(11, 18, 32, 0.82));
}

.promo-card--primary {
  border-color: rgba(59, 130, 246, 0.18);
}

.promo-card--accent {
  border-color: rgba(14, 165, 233, 0.22);
}

.promo-card--neutral {
  border-color: rgba(148, 163, 184, 0.26);
}

.promo-card__title {
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  display: block;
}

.promo-card__media {
  display: block;
  height: 100%;
  min-height: 182px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(241, 245, 249, 0.95), rgba(226, 232, 240, 0.9));
}

.promo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: scale(1.16);
  filter: saturate(1.08) contrast(1.06) drop-shadow(0 10px 16px rgba(15, 23, 42, 0.12));
  transition: transform 180ms ease, filter 180ms ease;
}

.promo-card__media.is-fallback {
  position: relative;
}

.promo-card__media.is-fallback::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 2px solid rgba(100, 116, 139, 0.44);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.48), rgba(203, 213, 225, 0.8));
}

.promo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.promo-card:hover .promo-card__media img {
  transform: scale(1.22);
  filter: saturate(1.12) contrast(1.08) drop-shadow(0 12px 20px rgba(15, 23, 42, 0.14));
}

.brand-strip__row .brand-pill {
  min-height: 98px;
  padding: 12px 14px;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
}

.brand-pill__logo {
  width: auto;
  height: 34px;
  max-width: 170px;
  object-fit: contain;
  filter: saturate(1.12) contrast(1.06);
}

.brand-strip__row .brand-pill[data-brand="Samsung"] .brand-pill__logo {
  height: 34px;
  max-width: 198px;
}

.brand-strip__row .brand-pill[data-brand="Google"] .brand-pill__logo {
  height: 34px;
  max-width: 162px;
}

.brand-pill__label {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

html[data-theme="dark"] .promo-card {
  border-color: rgba(96, 165, 250, 0.24);
}

html[data-theme="dark"] .promo-card__title {
  color: #e8f1ff;
}

html[data-theme="dark"] .promo-card__media {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.78));
}

html[data-theme="dark"] .promo-card__media img {
  filter: saturate(1.14) contrast(1.08) brightness(1.04) drop-shadow(0 14px 20px rgba(2, 6, 23, 0.44));
}

html[data-theme="dark"] .brand-strip__row .brand-pill {
  background: rgba(10, 22, 42, 0.76);
  border-color: rgba(96, 165, 250, 0.24);
}

html[data-theme="dark"] .brand-pill__label {
  color: #b9cae6;
}

html[data-theme="dark"] .brand-strip__row .brand-pill[data-brand="Apple"] .brand-pill__logo,
html[data-theme="dark"] .brand-strip__row .brand-pill[data-brand="Samsung"] .brand-pill__logo {
  filter: brightness(0) invert(1);
}

html[data-theme="dark"] .brand-strip__row .brand-pill[data-brand="Xiaomi"] .brand-pill__logo,
html[data-theme="dark"] .brand-strip__row .brand-pill[data-brand="Google"] .brand-pill__logo,
html[data-theme="dark"] .brand-strip__row .brand-pill[data-brand="Huawei"] .brand-pill__logo {
  filter: saturate(1.2) brightness(1.16);
}

.promo-card:focus-visible,
.mosaic-card:focus-visible {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18), var(--shadow);
}

.mosaic-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  min-height: 236px;
  padding: 20px;
  border-radius: 30px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.mosaic-card strong {
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.mosaic-card__media {
  display: grid;
  place-items: center;
  min-height: 148px;
  padding: 10px 20px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(241, 245, 249, 0.98), rgba(226, 232, 240, 0.9));
}

.mosaic-card__media img {
  width: min(100%, 188px);
  max-height: 146px;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  transform: scale(1.08);
  filter: saturate(1.06) contrast(1.03) drop-shadow(0 14px 20px rgba(15, 23, 42, 0.16));
  transition: transform 180ms ease, filter 180ms ease;
}

.mosaic-card__media.is-fallback {
  position: relative;
}

.mosaic-card__media.is-fallback::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid rgba(100, 116, 139, 0.42);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(203, 213, 225, 0.82));
}

.mosaic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.mosaic-card:hover .mosaic-card__media img {
  transform: scale(1.14);
  filter: saturate(1.14) contrast(1.08) drop-shadow(0 14px 22px rgba(15, 23, 42, 0.18));
}

@media (max-width: 920px) {
  .mosaic-card__media img {
    width: min(100%, 170px);
    max-height: 128px;
  }
}

.footer-card {
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.02));
}

.empty-state {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 52px 28px;
  text-align: center;
  color: var(--muted);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
}

.product-card__title a {
  color: inherit;
  text-decoration: none;
}

.product-card__model {
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.product-card__cta-short {
  display: none;
}

@media (max-width: 640px) {
  .hero-card,
  .filter-card,
  .detail-card,
  .summary-card,
  .contact-card,
  .about-card,
  .admin-surface,
  .panel {
    padding: 22px;
  }

  .product-card {
    border-radius: 22px;
  }

  .product-card__image {
    min-height: 172px;
    padding: 16px;
  }

  .product-card__image img {
    height: 142px;
  }

  .product-card__badge {
    top: 10px;
    left: 10px;
    min-height: 24px;
    padding: 0 9px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .product-card__body {
    gap: 9px;
    padding: 14px;
  }

  .product-card__meta {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .product-card h3,
  .product-card__title {
    font-size: 0.98rem;
    line-height: 1.25;
    min-height: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card__model {
    font-size: 0.78rem;
  }

  .product-card__price {
    gap: 6px;
    flex-wrap: wrap;
  }

  .product-card__price strong {
    font-size: 1.1rem;
  }

  .product-card__price span {
    font-size: 0.78rem;
  }

  .product-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 2px;
  }

  .product-card__actions > *,
  .product-card__actions form {
    min-width: 0;
  }

  .product-card__actions .btn,
  .product-card__actions .btn--ghost {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 15px;
    font-size: 12px;
  }

  .product-card__cta-full {
    display: none;
  }

  .product-card__cta-short {
    display: inline;
  }

  .promo-card {
    min-height: 168px;
    padding: 12px;
    border-radius: 22px;
  }

  .promo-card__title {
    font-size: 0.98rem;
  }

  .promo-card__media {
    min-height: 112px;
    border-radius: 14px;
  }

  .promo-card__media img {
    transform: scale(1.06);
  }

  .brand-strip__row .brand-pill {
    min-height: 72px;
    padding: 10px 12px;
    gap: 8px;
    border-radius: 18px;
  }

  .brand-pill__logo {
    height: 24px;
    max-width: 120px;
  }

  .brand-strip__row .brand-pill[data-brand="Samsung"] .brand-pill__logo,
  .brand-strip__row .brand-pill[data-brand="Google"] .brand-pill__logo {
    height: 24px;
    max-width: 120px;
  }

  .brand-pill__label {
    font-size: 0.74rem;
  }

  .mosaic-card {
    gap: 10px;
    padding: 16px;
    border-radius: 20px;
    min-height: 198px;
  }

  .mosaic-card strong {
    font-size: 0.94rem;
  }

  .mosaic-card__media {
    min-height: 112px;
    border-radius: 14px;
  }

  .mosaic-card__media img {
    width: min(100%, 150px);
    max-height: 106px;
  }
}

/* ─── Visuelle Verfeinerungen ─── */

/* Section-Eyebrows im Kontext einer Section-Heading hervorheben */
.section-heading .eyebrow {
  color: var(--primary);
}

/* Produkt-Model-Tag etwas dezenter */
.product-card__model {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Product-Card Preis: Hauptpreis etwas größer */
.product-card__price strong {
  font-size: 1.35rem;
}

/* Promo-Card Typ-Varianten: sanftere Hoverübergänge */
.promo-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

/* Mosaic-Card Hover verfeinern */
.mosaic-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.mosaic-card:hover {
  border-color: rgba(37, 99, 235, 0.16);
}

/* Badge: Neu-Badge mit Erfolgsfarbe */
.badge--success {
  background: var(--success-light);
  color: var(--success);
  border-color: rgba(5, 150, 105, 0.2);
}

/* Footer-Karte etwas aufgewerteter */
.footer-card {
  border-radius: var(--radius-md) !important;
}

/* Cookie-Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  width: calc(100% - 32px);
  max-width: 680px;
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: cookie-slide-up 260ms ease both;
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner__text {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-banner__btn {
  flex-shrink: 0;
  appearance: none;
  border: 0;
  background: linear-gradient(135deg, var(--primary), #4b8dff);
  color: var(--primary-contrast);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.cookie-banner__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3);
}

@keyframes cookie-slide-up {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 540px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    bottom: 12px;
  }
  .cookie-banner__btn {
    text-align: center;
  }
}

