/* ==========================================================
   Classic Modern – Child-Theme von "classic"
   Es werden KEINE Templates überschrieben, nur Optik per CSS.
   Dadurch bleiben alle Module, die auf classic ausgelegt sind,
   unverändert kompatibel.
   Farben & Rundungen lassen sich oben in :root anpassen.
   ========================================================== */

:root {
  --cm-accent: #0f766e;
  --cm-accent-dark: #0b5a54;
  --cm-accent-soft: #e6f4f2;
  --cm-text: #1f2937;
  --cm-muted: #6b7280;
  --cm-border: #e5e7eb;
  --cm-bg: #f6f7f9;
  --cm-radius: 10px;
  --cm-radius-sm: 6px;
  --cm-shadow: 0 1px 3px rgba(16, 24, 40, .08);
  --cm-shadow-hover: 0 8px 24px rgba(16, 24, 40, .12);
}

/* ---------- Grundlagen (Systemschrift, keine externen Fonts) ---------- */
body, button, input, select, textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
}
body { color: var(--cm-text); }
#wrapper { background: var(--cm-bg); }
a { color: var(--cm-accent); }
a:hover, a:focus { color: var(--cm-accent-dark); }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  text-transform: none;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--cm-text);
}
.products-section-title { text-align: left; font-size: 1.5rem; margin-bottom: 1.5rem; }

/* ---------- Header ---------- */
#header { background: #fff; box-shadow: 0 1px 0 var(--cm-border); }
#header .header-nav { background: transparent; border-bottom: 1px solid var(--cm-border); }
#header .header-top { background: #fff; }
#_desktop_top_menu .top-menu a[data-depth="0"] {
  text-transform: none;
  font-weight: 600;
  font-size: .95rem;
  color: var(--cm-text);
}
#_desktop_top_menu .top-menu a[data-depth="0"]:hover { color: var(--cm-accent); }
#_desktop_top_menu .sub-menu { border-radius: 0 0 var(--cm-radius) var(--cm-radius); box-shadow: var(--cm-shadow-hover); }
#search_widget form input[type=text] {
  border-radius: 999px;
  border: 1px solid var(--cm-border);
  background: var(--cm-bg);
}
#search_widget form input[type=text]:focus {
  border-color: var(--cm-accent);
  background: #fff;
  outline: 0;
  box-shadow: 0 0 0 3px var(--cm-accent-soft);
}
.blockcart .header { border-radius: var(--cm-radius-sm); }
.blockcart.active, .blockcart.active a { color: var(--cm-accent); }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--cm-radius-sm); text-transform: none; font-weight: 600; letter-spacing: 0; }
.btn-primary {
  background: var(--cm-accent);
  border-color: var(--cm-accent);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
  background: var(--cm-accent-dark);
  border-color: var(--cm-accent-dark);
  color: #fff;
}
.btn-primary.disabled, .btn-primary:disabled { background: var(--cm-accent); border-color: var(--cm-accent); opacity: .5; }
.btn-secondary, .btn-tertiary { border-radius: var(--cm-radius-sm); }
.add-to-cart { padding: .75rem 1.25rem; }

/* ---------- Produktkacheln ---------- */
.product-miniature .thumbnail-container {
  border-radius: var(--cm-radius);
  overflow: hidden;
  box-shadow: var(--cm-shadow);
  transition: box-shadow .2s ease;
}
.product-miniature .thumbnail-container:hover,
.product-miniature .thumbnail-container:focus {
  box-shadow: var(--cm-shadow-hover);
}
.product-miniature .product-title,
.product-miniature .product-title a {
  text-transform: none;
  font-weight: 600;
  color: var(--cm-text);
}
.product-miniature .product-title a:hover { color: var(--cm-accent); }
.product-price-and-shipping .price, .product-price, .current-price .price { color: var(--cm-text); font-weight: 700; }
.regular-price { color: var(--cm-muted); }
.product-flags li.product-flag { border-radius: var(--cm-radius-sm); text-transform: none; font-weight: 600; }

/* ---------- Produktseite ---------- */
.product-cover img, .images-container .thumb-container img.thumb { border-radius: var(--cm-radius); }
.images-container .js-qv-product-images .thumb { border-radius: var(--cm-radius-sm); }
.product-prices .current-price span:first-child, .current-price-value { color: var(--cm-accent); font-weight: 700; }
.nav-tabs .nav-link.active { color: var(--cm-accent); border-bottom-color: var(--cm-accent); }
.tabs { border-radius: var(--cm-radius); box-shadow: var(--cm-shadow); }

/* ---------- Karten, Warenkorb, Checkout ---------- */
.card, .cart-grid-body .card-block, .checkout-step, .cart-summary {
  border-radius: var(--cm-radius);
}
.card { border: 1px solid var(--cm-border); box-shadow: var(--cm-shadow); }
.checkout-step { box-shadow: var(--cm-shadow); }
.checkout-step.-current h1 { color: var(--cm-accent); }
.checkout-step.-current .step-number { background: var(--cm-accent); }
.cart-summary { box-shadow: var(--cm-shadow); }
.page-content.card, .page-content.page-cms { border-radius: var(--cm-radius); }

/* ---------- Formulare ---------- */
.form-control, .custom-select, .input-group.focus {
  border-radius: var(--cm-radius-sm);
  border-color: #d1d5db;
  box-shadow: none;
}
.form-control:focus, .custom-select:focus {
  border-color: var(--cm-accent);
  box-shadow: 0 0 0 3px var(--cm-accent-soft);
  outline: 0;
}
.custom-radio input[type=radio]:checked + span { background-color: var(--cm-accent); }

/* ---------- Sonstiges ---------- */
.breadcrumb { background: transparent; }
.breadcrumb li a:hover { color: var(--cm-accent); }
.carousel, #carousel { border-radius: var(--cm-radius); overflow: hidden; }
.modal-content { border-radius: var(--cm-radius); border: 0; box-shadow: var(--cm-shadow-hover); }
.page-item.active .page-link, .pagination .current a { color: var(--cm-accent); }
.alert { border-radius: var(--cm-radius-sm); }
#block-category, .block-category { border-radius: var(--cm-radius); box-shadow: var(--cm-shadow); border: 0; }
.facet-label.active a, .facet-label:hover a { color: var(--cm-accent); }

/* ---------- Footer ---------- */
.footer-container { background: #fff; box-shadow: none; border-top: 1px solid var(--cm-border); }
.footer-container .h3, .footer-container .h4, .footer-container h3, .footer-container h4 {
  text-transform: none; font-size: 1rem; font-weight: 700; color: var(--cm-text);
}
.footer-container li a, #footer a { color: var(--cm-muted); }
.footer-container li a:hover, #footer a:hover { color: var(--cm-accent); }

/* ---------- Mobil ---------- */
@media (max-width: 767px) {
  .products-section-title { font-size: 1.25rem; }
  .product-miniature .thumbnail-container { box-shadow: var(--cm-shadow); }
}
