/* ==========================================================================
   expressplanet – Design-Anpassungen für JTL-Shop 5 / NOVA (Child-Template)
   Datei: templates/NOVAChild/themes/my-nova/custom.css
   Version 1.0 – erste Runde, wird nach Screenshots feinjustiert
   ========================================================================== */

/* ---------- Schriften (lokal gehostet, DSGVO-freundlich, SIL OFL) ---------- */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/templates/NOVAChild/themes/my-nova/fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/templates/NOVAChild/themes/my-nova/fonts/sora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/templates/NOVAChild/themes/my-nova/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/templates/NOVAChild/themes/my-nova/fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/templates/NOVAChild/themes/my-nova/fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }

/* ---------- Farben & Grundwerte (hier zentral ändern) ---------- */
:root {
  --ep-accent: #2D3BFF;        /* Planet-Blau: Buttons, Links */
  --ep-accent-dark: #1A24C7;   /* Hover */
  --ep-accent-soft: #EEF0FF;   /* helle Akzentflächen */
  --ep-deal: #C2410C;          /* nur für Angebote/Sale */
  --ep-ink: #111827;           /* Text, dunkle Flächen */
  --ep-muted: #4B5563;         /* Nebentext */
  --ep-line: #E5E7EB;          /* Rahmen */
  --ep-soft: #F3F4F6;          /* hellgraue Flächen */
  --ep-ok: #15803D;            /* lieferbar */
  --ep-radius: 20px;
  --ep-radius-sm: 12px;
  --ep-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ep-font-head: "Sora", "DM Sans", system-ui, sans-serif;
}

/* ---------- Grundlayout ---------- */
body {
  font-family: var(--ep-font);
  color: var(--ep-ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--ep-font-head);
  letter-spacing: -0.02em;
  color: var(--ep-ink);
}
a { color: var(--ep-accent); }
a:hover, a:focus { color: var(--ep-accent-dark); }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 700; }
.btn-primary,
.btn-primary:not(:disabled):not(.disabled):active {
  background-color: var(--ep-accent);
  border-color: var(--ep-accent);
  color: #FFFFFF;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--ep-accent-dark);
  border-color: var(--ep-accent-dark);
  color: #FFFFFF;
}
.btn-outline-primary { color: var(--ep-accent); border-color: var(--ep-accent); }
.btn-outline-primary:hover { background-color: var(--ep-accent); border-color: var(--ep-accent); color: #FFFFFF; }
.btn-secondary { background-color: var(--ep-ink); border-color: var(--ep-ink); color: #FFFFFF; }

/* ---------- Formulare & Suche ---------- */
.form-control, .custom-select {
  border-radius: var(--ep-radius-sm);
  border-color: #D1D5DB;
}
.form-control:focus, .custom-select:focus {
  border-color: var(--ep-accent);
  box-shadow: 0 0 0 3px rgba(45, 59, 255, 0.15);
}
#search-header, .search-wrapper .form-control {
  border-radius: 999px;
  background: var(--ep-soft);
  height: 48px;
  padding-left: 18px;
}
.search-wrapper .btn, .search-wrapper .input-group-append .btn {
  border-radius: 999px;
}

/* ---------- Header & Navigation ---------- */
#jtl-nav-wrapper, header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--ep-line);
}
#mainNavigation .nav-link, .navbar-nav .nav-link {
  font-weight: 500;
  color: var(--ep-ink);
}
#mainNavigation .nav-link:hover, .navbar-nav .nav-link:hover {
  color: var(--ep-accent);
}

/* ---------- Brotkrümel ---------- */
.breadcrumb { background: transparent; padding-left: 0; font-size: 14px; }
.breadcrumb a { color: var(--ep-muted); }

/* ---------- Produktkacheln (Listen, Slider) ---------- */
.productbox, .product-wrapper .productbox-inner {
  border-radius: var(--ep-radius);
}
.productbox-inner {
  border: 1px solid var(--ep-line);
  border-radius: var(--ep-radius);
  padding: 14px;
  background: #FFFFFF;
  transition: box-shadow .2s ease, transform .2s ease;
}
.productbox-inner:hover {
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
  transform: translateY(-2px);
}
.productbox-image, .productbox .productbox-images {
  border-radius: 14px;
  background: var(--ep-soft);
  overflow: hidden;
}
.productbox-title, .productbox-title a {
  color: var(--ep-ink);
  font-weight: 500;
  line-height: 1.4;
}
.price, .price_wrapper .price, .productbox .price {
  font-family: var(--ep-font-head);
  font-weight: 700;
  color: var(--ep-ink);
}
.price_wrapper .price.text-nowrap.price-special,
.price-special, .special-price {
  color: var(--ep-deal);
}
.price_wrapper .old-price, .instead-of, del {
  color: var(--ep-muted);
}
.delivery-status .status-2, .status-2, .delivery-status .text-success {
  color: var(--ep-ok);
}

/* Angebots-/Neu-Banderolen */
.ribbon {
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}
.ribbon-2, .ribbon-8 { background: var(--ep-deal); }   /* Sale / Sonderangebot */
.ribbon-3, .ribbon-4 { background: var(--ep-ink); }    /* Neu / Topartikel */

/* ---------- Produktseite ---------- */
.product-detail .product-title, #product-offer h1 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
}
.product-detail .price_wrapper .price {
  font-size: 40px;
}
.product-detail .btn-basket, #add-to-cart .btn {
  height: 52px;
  font-size: 16px;
}
.nav-tabs .nav-link { font-weight: 700; color: var(--ep-muted); border: none; }
.nav-tabs .nav-link.active {
  color: var(--ep-ink);
  border: none;
  box-shadow: inset 0 -3px 0 var(--ep-accent);
}

/* ---------- Footer ---------- */
#footer {
  background: var(--ep-ink);
  color: #D1D5DB;
}
#footer a { color: #D1D5DB; }
#footer a:hover { color: #FFFFFF; }
#footer .h2, #footer .h3, #footer h2, #footer h3, #footer .productlist-filter-headline {
  color: #FFFFFF;
}

/* ==========================================================================
   Bausteine für den OnPage Composer (Startseite)
   Diese Klassen werden von den HTML-Bausteinen im Ordner "OPC-Bausteine" genutzt.
   ========================================================================== */
.ep-section { margin: 48px 0; }
.ep-h2 { font-family: var(--ep-font-head); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 20px; }

/* Vertrauensleiste */
.ep-trustbar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  background: var(--ep-soft); border-radius: var(--ep-radius-sm);
  padding: 12px 20px; font-size: 14px; font-weight: 500;
}
.ep-trustbar span { display: flex; align-items: center; gap: 8px; }
.ep-trustbar svg { color: var(--ep-accent); flex: none; }

/* Hero / Aktionsbanner */
.ep-hero {
  display: flex; flex-wrap: wrap; align-items: stretch;
  border-radius: 24px; overflow: hidden; background: var(--ep-accent-soft);
}
.ep-hero-text { flex: 1 1 420px; padding: 56px; }
.ep-hero-chip {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: #FFFFFF; color: var(--ep-accent); font-size: 13px; font-weight: 700;
}
.ep-hero h1, .ep-hero .ep-hero-title {
  font-family: var(--ep-font-head); font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.05; letter-spacing: -0.03em; margin: 18px 0 0; font-weight: 700;
}
.ep-hero p { font-size: 18px; line-height: 1.5; margin: 16px 0 28px; max-width: 480px; color: var(--ep-muted); }
.ep-hero-img { flex: 1 1 420px; min-height: 300px; background-size: cover; background-position: center; }
.ep-hero--dark { background: var(--ep-ink); }
.ep-hero--dark .ep-hero-title, .ep-hero--dark h1 { color: #FFFFFF; }
.ep-hero--dark p { color: #D1D5DB; }
.ep-hero--dark .ep-hero-chip { background: #1F2937; color: #FFFFFF; }

.ep-btn {
  display: inline-flex; align-items: center; height: 52px; padding: 0 28px;
  border-radius: 999px; background: var(--ep-accent); color: #FFFFFF !important;
  font-weight: 700; text-decoration: none !important;
}
.ep-btn:hover { background: var(--ep-accent-dark); }
.ep-btn--light { background: #FFFFFF; color: var(--ep-ink) !important; }
.ep-btn--light:hover { background: var(--ep-soft); }

/* Kategorie-Kacheln */
.ep-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.ep-cat {
  background: var(--ep-soft); border-radius: var(--ep-radius); padding: 16px;
  display: flex; flex-direction: column; gap: 14px; color: var(--ep-ink) !important;
  text-decoration: none !important; transition: transform .2s ease;
}
.ep-cat:hover { transform: translateY(-2px); }
.ep-cat img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #FFFFFF; border-radius: 14px; }
.ep-cat-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; }
.ep-cat-arrow {
  width: 32px; height: 32px; border-radius: 999px; background: #FFFFFF;
  display: flex; align-items: center; justify-content: center; flex: none;
}

/* Marken */
.ep-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.ep-brand {
  height: 68px; border: 1px solid var(--ep-line); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ep-font-head); font-weight: 600; color: #374151 !important; text-decoration: none !important;
}
.ep-brand img { max-height: 36px; max-width: 80%; object-fit: contain; }

/* Promo-Banner */
.ep-promo { display: flex; flex-wrap: wrap; border-radius: 24px; overflow: hidden; background: var(--ep-ink); }
.ep-promo-text { flex: 1 1 420px; padding: 48px; color: #FFFFFF; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.ep-promo-kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #FDBA74; }
.ep-promo-title { font-family: var(--ep-font-head); font-size: clamp(28px, 3.5vw, 38px); line-height: 1.1; font-weight: 700; color: #FFFFFF; margin: 0; }
.ep-promo-text p { color: #D1D5DB; font-size: 17px; line-height: 1.55; margin: 0; max-width: 460px; }
.ep-promo-img { flex: 1 1 380px; min-height: 280px; background-size: cover; background-position: center; background-color: #1F2937; }

/* Service-Versprechen */
.ep-service { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ep-service-item { background: var(--ep-soft); border-radius: var(--ep-radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.ep-service-icon {
  width: 48px; height: 48px; border-radius: 14px; background: #FFFFFF; color: var(--ep-accent);
  display: flex; align-items: center; justify-content: center;
}
.ep-service-item strong { font-family: var(--ep-font-head); font-size: 19px; }
.ep-service-item span { color: var(--ep-muted); line-height: 1.55; }

@media (max-width: 575.98px) {
  .ep-hero-text, .ep-promo-text { padding: 28px; }
  .ep-section { margin: 32px 0; }
}
