/* =========================================================
   AliXpress.eu (VR-08) – eigenstaendiges CUSTOM-Design
   Quellen: Editorial Extension v2 CSS (2026-07-03, D. Ruh / Ruh Connects,
   verbatim wo vorhanden) + dokumentierte Klassen-Struktur der Alt-App
   (PROJECT_SPEC / alixpress_content.json).
   Scoping: NUR unter .alx (per-domain Runtime-Link, wie ailicia.css).
   Palette (dokumentiert): Ink #172033, Body #566176, Muted #667085,
   Border #e8eaf2, Card #fff, Accent #bf4900, Note #92400e/#fff7ed/#fed7aa.
   ========================================================= */

.alx {
  --alx-ink: #172033;
  --alx-body: #566176;
  --alx-muted: #667085;
  --alx-border: #e8eaf2;
  --alx-card: #fff;
  --alx-bg: #f6f7fb;
  --alx-accent: #bf4900;
  --alx-accent-soft: #fff1e8;
  --alx-note-ink: #92400e;
  --alx-note-bg: #fff7ed;
  --alx-note-border: #fed7aa;
  --alx-chip-bg: #f1f4f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--alx-ink);
  background: var(--alx-bg);
  min-height: 100vh;
  line-height: 1.6;
}
.alx *,
.alx *::before,
.alx *::after {
  box-sizing: border-box;
}
.alx .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.alx :focus-visible {
  outline: 3px solid var(--alx-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.alx .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.alx h1,
.alx h2,
.alx h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
  line-height: 1.25;
  color: var(--alx-ink);
}
.alx h2 {
  font-size: 26px;
  margin: 0 0 14px;
}
.alx h3 {
  font-size: 18px;
  margin: 0 0 9px;
}
.alx p {
  margin: 0 0 12px;
  color: var(--alx-body);
}
.alx a {
  color: var(--alx-accent);
}
.alx a:hover {
  text-decoration-thickness: 2px;
}

/* ── Header ───────────────────────────────────────────── */
.alx-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--alx-border);
}
.alx .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.alx .brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--alx-ink);
  text-decoration: none;
  display: inline-block;
  padding: 6px 0;
}
.alx .brand-accent {
  color: var(--alx-accent);
}
.alx-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.alx-nav a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--alx-chip-bg);
  color: #495266;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}
.alx-nav a:hover {
  background: var(--alx-accent-soft);
  color: var(--alx-accent);
}

/* ── Sections ─────────────────────────────────────────── */
.alx-section {
  padding: 40px 0;
  scroll-margin-top: 90px;
}
.alx-section .section-lead {
  font-size: 15px;
  max-width: 900px;
}
.alx .meta-line {
  color: var(--alx-muted);
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 10px;
}

/* ── Hero ─────────────────────────────────────────────── */
.alx .hero {
  padding-top: 52px;
}
.alx .badge {
  display: inline-block;
  background: var(--alx-chip-bg);
  color: #495266;
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  padding: 7px 14px;
  margin: 0 0 18px;
}
.alx .hero h1 {
  font-size: 38px;
  max-width: 900px;
  margin: 0 0 16px;
}
.alx .hero .lead {
  font-size: 17px;
  max-width: 820px;
  margin-bottom: 22px;
}
.alx .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.alx .btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.alx .btn.primary {
  background: var(--alx-accent);
  color: #fff;
}
.alx .btn.primary:hover {
  background: #a63f00;
}
.alx .btn.dark {
  background: var(--alx-ink);
  color: #fff;
}
.alx .btn.dark:hover {
  background: #0d1422;
}
.alx .btn.ghost {
  background: #fff;
  color: var(--alx-ink);
  border-color: var(--alx-border);
}
.alx .btn.ghost:hover {
  border-color: var(--alx-accent);
  color: var(--alx-accent);
}
.alx .hero-banner {
  display: block;
  max-width: 300px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--alx-border);
  background: #fff;
}
.alx .hero-banner img {
  display: block;
  width: 100%;
  height: auto;
}
.alx .not-official {
  margin-top: 14px;
  font-size: 13px;
  color: var(--alx-muted);
  max-width: 820px;
}

/* ── Info-Cards ───────────────────────────────────────── */
.alx .info-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.alx .card {
  background: var(--alx-card);
  border: 1px solid var(--alx-border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 6px 22px rgba(22, 28, 45, 0.04);
}
.alx .info .card,
.alx .card {
  margin: 0;
}
.alx .info p,
.alx .card p,
.alx .card li {
  color: var(--alx-body);
  font-size: 14px;
  line-height: 1.75;
}
.alx .card ul {
  margin: 0;
  padding-left: 20px;
}
.alx .source-list {
  margin-top: 18px;
}

/* ── Controls / Suche / Sortierung / Tabs / Pills ─────── */
.alx .controls {
  margin: 18px 0;
}
.alx .search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.alx .search,
.alx .sort {
  font: inherit;
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--alx-border);
  border-radius: 10px;
  background: #fff;
  color: var(--alx-ink);
}
.alx .search {
  flex: 1 1 240px;
}
.alx .sort {
  flex: 0 0 auto;
  min-width: 190px;
}
.alx .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.alx .tab {
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--alx-border);
  background: #fff;
  color: #495266;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.alx .tab:hover {
  background: var(--alx-accent-soft);
  color: var(--alx-accent);
}
.alx .tab.is-active {
  background: var(--alx-ink);
  border-color: var(--alx-ink);
  color: #fff;
}
.alx .pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.alx .pill-btn {
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--alx-border);
  background: var(--alx-chip-bg);
  color: #495266;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.alx .pill-btn:hover {
  background: var(--alx-accent-soft);
  color: var(--alx-accent);
}
.alx .pill-btn.is-active {
  background: var(--alx-accent);
  border-color: var(--alx-accent);
  color: #fff;
}
.alx .results {
  font-size: 14px;
  font-weight: 750;
  color: var(--alx-muted);
  min-height: 22px;
}
.alx .no-results {
  font-size: 15px;
  color: var(--alx-body);
}

/* ── Product-Grid / Cards (dokumentierte Card-Fixes) ──── */
.alx .product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.alx .product-card-wrap {
  margin: 0;
}
.alx .product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  overflow: hidden;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--alx-card);
  border: 1px solid var(--alx-border);
  border-radius: 18px;
  padding: 0;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}
.alx .product-card:hover {
  border-color: var(--alx-accent);
  box-shadow: 0 10px 28px rgba(22, 28, 45, 0.10);
  transform: translateY(-2px);
}
.alx .product-card .img,
.alx .img {
  position: relative;
  flex: 0 0 230px;
  height: 230px;
  max-height: 230px;
  overflow: hidden;
  background: #fff;
  z-index: 1;
  display: block;
}
.alx .product-card .img img,
.alx .img img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 230px;
  object-fit: contain;
  padding: 14px;
  background: #fff;
}
.alx .product-card .body,
.alx .body {
  position: relative;
  z-index: 2;
  background: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
}
.alx .product-card .title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--alx-ink);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.alx .product-card .desc {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  min-height: 78px;
  overflow: hidden;
  color: var(--alx-body);
  font-size: 13px;
  line-height: 1.65;
}
.alx .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
  align-items: center;
}
.alx .discount {
  display: inline-block;
  background: var(--alx-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  border-radius: 8px;
  padding: 4px 8px;
}
.alx .chip {
  display: inline-block;
  border-radius: 999px;
  background: var(--alx-chip-bg);
  color: #495266;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
}
.alx .chip.ok {
  background: var(--alx-note-bg);
  color: var(--alx-note-ink);
}
.alx .price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.alx .price {
  font-size: 20px;
  font-weight: 900;
  color: var(--alx-ink);
}
.alx .old-price {
  font-size: 14px;
  color: var(--alx-muted);
  text-decoration: line-through;
}
.alx .facts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--alx-muted);
  margin-top: 8px;
}
.alx .product-card .actions {
  margin-top: auto;
  padding-top: 12px;
}
.alx .product-card .details {
  background: var(--alx-chip-bg);
  color: var(--alx-ink);
}
.alx .product-card .details:hover {
  background: var(--alx-accent-soft);
  color: var(--alx-accent);
}
.alx .load-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

/* ── Editorial/Guide-Blöcke (Extension-CSS, verbatim wo möglich) ── */
.alx .alx-editorial-extension {
  margin-top: 34px;
}
.alx .alx-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
  border: 1px solid var(--alx-border);
  border-radius: 16px;
  background: #fff;
}
.alx .alx-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.alx .alx-table th,
.alx .alx-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #eef1f7;
  vertical-align: top;
  font-size: 13px;
}
.alx .alx-table th {
  background: #f8fafc;
  color: var(--alx-ink);
  font-weight: 900;
}
.alx .alx-table td {
  color: var(--alx-body);
}
.alx .alx-note {
  margin-top: 16px;
  border: 1px solid var(--alx-note-border);
  background: var(--alx-note-bg);
  color: var(--alx-note-ink);
  border-radius: 18px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.75;
}
.alx .alx-source-note {
  margin-top: 18px;
  color: var(--alx-muted);
  font-size: 12px;
  line-height: 1.65;
}
.alx .alx-keyword-cloud {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.alx .alx-keyword-cloud span {
  display: inline-flex;
  border-radius: 999px;
  background: var(--alx-chip-bg);
  color: #566176;
  font-size: 12px;
  font-weight: 850;
  padding: 7px 10px;
}

/* ── Product-Modal (dokumentierte Modal-Fixes) ────────── */
.alx-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(23, 32, 51, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.alx-modal-backdrop.is-open {
  display: flex;
}
.alx-modal-box {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  position: relative;
}
.alx-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--alx-border);
  background: #fff;
  color: var(--alx-ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.alx-modal-close:hover {
  background: var(--alx-accent-soft);
  color: var(--alx-accent);
}
.alx-modal-img {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  height: min(38vh, 320px);
  min-height: 220px;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid #edf0f6;
}
.alx-modal-img img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: contain;
  padding: 18px;
}
.alx-modal-body {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 24px;
  overflow-y: auto;
}
.alx-modal-body h2 {
  font-size: 22px;
  margin-bottom: 10px;
}
.alx-modal-desc {
  font-size: 14px;
  color: var(--alx-body);
}
.alx .alx-modal-body .pill-row {
  margin: 12px 0;
}
.alx .alx-modal-body .pill-row .pill {
  display: inline-block;
  border-radius: 999px;
  background: var(--alx-chip-bg);
  color: #495266;
  font-size: 12px;
  font-weight: 850;
  padding: 7px 12px;
}
.alx .alx-modal-body .pill-row .pill.ok {
  background: var(--alx-note-bg);
  color: var(--alx-note-ink);
}
.alx .alx-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.alx .alx-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--alx-ink);
}
.alx .alx-old-price {
  font-size: 16px;
  color: var(--alx-muted);
  text-decoration: line-through;
}
.alx .alx-discount-badge {
  display: inline-block;
  background: var(--alx-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  border-radius: 8px;
  padding: 4px 10px;
}
.alx .alx-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0 0 14px;
}
.alx .alx-facts div {
  display: flex;
  flex-direction: column;
}
.alx .alx-facts dt {
  font-size: 12px;
  font-weight: 800;
  color: var(--alx-muted);
}
.alx .alx-facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--alx-ink);
}
.alx .alx-coupon {
  border: 1px dashed var(--alx-note-border);
  background: var(--alx-note-bg);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 14px;
}
.alx .alx-coupon-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 800;
  color: var(--alx-note-ink);
  margin-bottom: 4px;
  word-break: break-all;
}
.alx .alx-coupon p {
  margin: 0;
  font-size: 13px;
  color: var(--alx-note-ink);
}
.alx .notice {
  background: #f8fafc;
  border: 1px solid var(--alx-border);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--alx-body);
  margin: 0 0 16px;
}
.alx .modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Legal-Unterseiten (Impressum / Datenschutz) ──────── */
.alx .legal-page {
  padding: 40px 0;
}
.alx .legal-page h1 {
  font-size: 30px;
  margin-bottom: 18px;
}

/* ── Footer ───────────────────────────────────────────── */
.alx-footer {
  background: #fff;
  border-top: 1px solid var(--alx-border);
  margin-top: 24px;
}
.alx .footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 26px;
  padding-bottom: 26px;
}
.alx .disclosure {
  font-size: 13px;
  font-weight: 700;
  color: var(--alx-ink);
  max-width: 720px;
}
.alx .mini-note {
  font-size: 12px;
  color: var(--alx-muted);
  max-width: 720px;
}
.alx .footer-inner p:last-child {
  margin-bottom: 0;
  font-size: 13px;
}
.alx .footer-links {
  display: flex;
  gap: 18px;
}
.alx .footer-links a {
  display: inline-block;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--alx-ink);
}

/* ── Responsive (980px = dokumentierter Alt-Breakpoint) ── */
@media (max-width: 1100px) {
  .alx .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .alx .product-card {
    min-height: auto;
  }
  .alx .product-card .img,
  .alx .img {
    flex-basis: 220px;
    height: 220px;
    max-height: 220px;
  }
  .alx .modal-img,
  .alx-modal-img {
    height: 230px;
    min-height: 200px;
  }
  .alx .modal-img img,
  .alx-modal-img img {
    max-height: 230px;
  }
  .alx .info-row {
    grid-template-columns: 1fr;
  }
  .alx .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .alx .hero h1 {
    font-size: 30px;
  }
}
@media (max-width: 640px) {
  .alx .product-grid {
    grid-template-columns: 1fr;
  }
  .alx .hero h1 {
    font-size: 26px;
  }
  .alx h2 {
    font-size: 22px;
  }
  .alx .search-row {
    flex-direction: column;
  }
  .alx .sort {
    min-width: 0;
    width: 100%;
  }
  .alx .header-inner {
    justify-content: flex-start;
  }
}

/* ── Reduced Motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .alx *,
  .alx *::before,
  .alx *::after {
    transition: none !important;
    animation: none !important;
  }
}
