﻿/*
 Theme Name:   Blocksy Child MSHS
 Theme URI:    https://www.my-smart-home-support.de
 Description:  Jimdo-like unified shell for My Smart Home Support
 Author:       My Smart Home Support
 Template:     blocksy
 Version:      2.8.17
*/

/* -------------------------------------------------------------------------
   Jimdo-like unified shell — zinc canvas, translucent content column
   ------------------------------------------------------------------------- */
:root {
  --mshs-nav: #383c3f; /* same as footer */
  --mshs-footer: #383c3f;
  --mshs-surface: rgba(255, 255, 255, 0.86);
  --mshs-panel: rgba(246, 246, 246, 0.86);
  --mshs-radius: 14px;
  --mshs-ink: #333332;
  --mshs-muted: #5c5c5b;
  --mshs-line: #d4d4d8;
  --mshs-cyan: #00d7ff;
  --mshs-cyan-deep: #0891b2;
  --mshs-max: 1080px;
  --mshs-font: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mshs-site-bg: none;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --theme-dropdown-background-color: #ffffff;
  --theme-dropdown-background-color-initial: #ffffff;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

html,
body {
  background-color: #e4e4e7 !important;
  background-image: var(--mshs-site-bg) !important;
  background-attachment: fixed !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
  background-repeat: no-repeat !important;
}

body {
  font-family: var(--mshs-font);
  color: var(--mshs-ink);
  font-size: 1rem;
  line-height: 1.6;
}

/* Main sits inside white column — no extra zinc fill */
#main,
.site-main,
.ct-drawer-canvas {
  background: transparent !important;
  background-color: transparent !important;
}

h1, h2, h3, .mshs-h1, .mshs-h2, .mshs-hero__title {
  font-family: var(--mshs-font);
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--mshs-ink);
  line-height: 1.2;
}

a { color: var(--mshs-cyan-deep); }

/* Kill blur on all media */
img, picture, video, svg,
.mshs-hero__photo,
.mshs-hero__logo,
.custom-logo,
.ct-logo img,
.site-logo-container img {
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  -webkit-filter: none !important;
  image-rendering: auto;
}

/* -------------------------------------------------------------------------
   Header — Jimdo dark bar
   ------------------------------------------------------------------------- */
header#header,
header#header.ct-header,
#header,
#header .ct-container,
#header [data-row],
#header [data-row] > [data-column],
header#header .ct-container,
.ct-header .ct-container,
.ct-header,
.ct-header [data-row] {
  background: var(--mshs-nav) !important;
  background-color: var(--mshs-nav) !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Full-bleed header — no centered “card” edges */
header#header,
#header {
  position: relative;
  left: 0;
  right: 0;
  width: 100% !important;
  max-width: 100% !important;
}

header#header .ct-container,
#header .ct-container,
.ct-header .ct-container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* MENU: Hauptgruppe = echte Mitte der GANZEN Seitenbreite.
   Warenkorb+Konto = eigener Slot ganz rechts (nicht in der Menü-Mitte). */
header#header [data-row="middle"] > .ct-container {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 3.5rem;
}

header#header [data-column="start"] {
  position: relative !important;
  z-index: 5 !important;
  flex: 0 0 auto !important;
}

/* End-Spalte volle Breite → Menü kann gegen Viewport-Mitte liegen */
header#header [data-column="end"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 2 !important;
  pointer-events: auto !important;
}

header#header [data-column="end"] > [data-items],
header#header .header-menu-1,
#header .header-menu-1 {
  width: auto !important;
  max-width: calc(100vw - 19rem) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: auto !important;
  position: relative !important;
  margin: 0 auto !important;
}

/* Hauptmenü-Cluster: horizontal in der Viewport-Mitte (Logo/Cart zählen nicht) */
header#header [data-device="desktop"] ul.menu,
#header [data-device="desktop"] ul.menu {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center !important;
  width: max-content !important;
  max-width: calc(100vw - 19rem) !important;
  margin: 0 auto !important;
  gap: 0.1rem 0.2rem;
  pointer-events: auto !important;
  position: relative !important;
}

/* Rechts-Slot: Suche + Warenkorb + Konto (per JS hierhin) */
header#header .mshs-menu-right {
  position: absolute !important;
  right: 0.5rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 8 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.2rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  pointer-events: auto !important;
}

header#header .mshs-menu-right > li {
  list-style: none !important;
  margin: 0 !important;
}

header#header .mshs-menu-right > li > a {
  color: #ffffff !important;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.4rem 0.45rem;
  white-space: nowrap;
}

/* Search button next to right slot: visible, same visual language. */
header#header button.ct-header-search[data-id="search"] {
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  width: 1.75rem !important;
  height: 1.75rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Search modal readability (fix white-on-white input). */
#search-modal,
#search-modal .ct-panel-content,
#search-modal .ct-panel-content-inner {
  background: #ffffff !important;
}

#search-modal input[type="search"],
#search-modal input[type="text"],
#search-modal input {
  color: #18181b !important;
  border-color: #d4d4d8 !important;
}

#search-modal input[type="search"]::placeholder,
#search-modal input[type="text"]::placeholder,
#search-modal input::placeholder {
  color: #71717a !important;
}

.mshs-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-left: 0.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--mshs-cyan);
  color: var(--mshs-ink);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

header#header,
header#header *,
#header,
#header *,
.ct-header,
.ct-header * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

header#header .ct-menu > li > a,
#header .ct-menu > li > a,
.ct-header .ct-menu > li > a,
header#header .header-menu-1 .menu > li > a,
#header .header-menu-1 .menu > li > a,
header#header .menu > li > a,
#header ul.menu > li > a {
  color: #ffffff !important;
  font-weight: 500;
  font-size: 0.76rem;
  padding: 0.35rem 0.16rem;
  letter-spacing: 0.01em;
  opacity: 1;
  transition: opacity 150ms ease;
  white-space: nowrap;
}

header#header .ct-menu > li > a:hover,
header#header .ct-menu > li.current-menu-item > a,
header#header .header-menu-1 .menu > li > a:hover,
header#header .header-menu-1 .menu > li.current-menu-item > a,
header#header .menu > li.current-menu-item > a {
  color: #ffffff !important;
  opacity: 0.82;
}

.site-logo-container img,
.ct-logo img,
.custom-logo {
  max-height: 36px !important;
  width: auto !important;
  object-fit: contain;
  filter: none !important;
}

.site-title-container,
.ct-header .site-title,
.ct-header [data-id="text"],
header#header .site-title {
  display: none !important;
}

header#header .sub-menu,
#header .sub-menu,
header#header ul.sub-menu,
.ct-header .sub-menu,
header#header .menu .sub-menu {
  background: var(--mshs-nav) !important;
  background-color: var(--mshs-nav) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35) !important;
  padding: 0.45rem !important;
  min-width: 14rem !important;
  opacity: 1 !important;
}

header#header .sub-menu a,
#header .sub-menu a,
header#header .menu .sub-menu a {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  padding: 0.65rem 0.85rem !important;
  border-radius: 6px !important;
}

header#header .sub-menu a:hover,
header#header .menu .sub-menu a:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

#offcanvas,
.ct-panel[data-behaviour],
.ct-panel {
  background: #383c3f !important;
  color: #ffffff !important;
}

#offcanvas a,
#offcanvas .ct-menu a,
#offcanvas .menu a,
#offcanvas button,
#offcanvas .ct-toggle-label,
#offcanvas .ct-header-account,
#offcanvas .ct-header-cart,
.ct-panel a,
.ct-panel .menu a,
.ct-panel .ct-menu a,
.ct-panel button {
  color: #ffffff !important;
}

#offcanvas a:hover,
.ct-panel a:hover {
  color: #00d7ff !important;
}

#offcanvas .sub-menu,
.ct-panel .sub-menu {
  background: #2f3336 !important;
}

/* -------------------------------------------------------------------------
   Content column — white card on zinc canvas
   ------------------------------------------------------------------------- */
/* White content column — NEVER apply to header .ct-container
   KANON = Leistungen: ALL pages/subpages/archives (Wissen, Tutorials, …) */
#main .ct-container,
#main .ct-container-full > article,
.site-main .ct-container,
body.mshs-shell-jimdo #main .ct-container,
#main article.page,
#main article.post,
#main article.product,
.site-main article.page,
.site-main article.post,
.single-product .site-main > article,
body.single-product #main .ct-container,
body.woocommerce #main .ct-container {
  max-width: var(--mshs-max) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background: var(--mshs-surface) !important;
  background-color: var(--mshs-surface) !important;
  backdrop-filter: blur(0) !important;
  -webkit-backdrop-filter: none !important;
  /* Leistungen-Spalte = kanonisch: 2rem Gap Menü/Footer, 28/40/44 Pad */
  padding: 1.75rem 2.5rem 2.75rem !important;
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
  border-radius: var(--mshs-radius) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12) !important;
  box-sizing: border-box;
}

/* Full-bleed wrappers must not break centering.
   Kill Blocksy vertical padding (often 60px) — gap comes ONLY from
   article/column margin-top/bottom: 2rem (Leistungen-Kanon). */
#main .ct-container-full,
.site-main .ct-container-full {
  max-width: none !important;
  width: 100% !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* Woo archive / PDP: same column shell as Leistungen */
body.woocommerce-shop #main .ct-container,
body.tax-product_cat #main .ct-container,
body.tax-product_tag #main .ct-container,
body.single-product #main .ct-container,
body.woocommerce-cart #main .ct-container,
body.woocommerce-account #main .ct-container {
  max-width: var(--mshs-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
  padding: 1.75rem 2.5rem 2.75rem !important;
  background: var(--mshs-surface) !important;
  border-radius: var(--mshs-radius) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12) !important;
  box-sizing: border-box;
}

/* Shop hub: hide empty-loop chrome */
body.woocommerce-shop ul.products,
body.woocommerce-shop .woocommerce-info,
body.woocommerce-shop .woocommerce-result-count,
body.woocommerce-shop .woocommerce-ordering {
  display: none !important;
}

/* Kill full-bleed Blocksy page titles — force into column or hide */
body.mshs-shell-jimdo .ct-page-title-container,
body.mshs-shell-jimdo .hero-section,
body.mshs-shell-jimdo .hero-section[data-type],
body.archive .ct-page-title-container,
body.tax-product_cat .ct-page-title-container,
body.single-product .ct-page-title-container {
  max-width: var(--mshs-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  background: var(--mshs-surface) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12) !important;
  box-sizing: border-box;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

body.mshs-shell-jimdo .ct-page-title-container > .ct-container,
body.mshs-shell-jimdo .hero-section .ct-container {
  max-width: 100% !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

@media (max-width: 640px) {
  #main .ct-container,
  #main article.page,
  #main article.post {
    padding: 1.25rem 1rem 2rem !important;
  }
}

/* Hide Blocksy title hero when content carries its own H1.
   NEVER hide .entry-header when it holds shop hub (.mshs-page-hero / .mshs-rail)
   — Woo/Blocksy put shop page content there; hiding it emptied /shop/. */
.mshs-has-custom-hero .hero-section,
.mshs-has-custom-hero .ct-page-title-container,
.mshs-has-custom-hero .page-title,
.home.mshs-has-custom-hero .hero-section,
.home.mshs-has-custom-hero .ct-page-title-container {
  display: none !important;
}

.mshs-has-custom-hero .entry-header:not(:has(.mshs-page-hero)):not(:has(.mshs-rail)):not(:has(.mshs-shop-filters)),
.home.mshs-has-custom-hero .entry-header:not(:has(.mshs-page-hero)):not(:has(.mshs-rail)) {
  display: none !important;
}

/* Shop hub: Blocksy puts page content inside .hero-section (hidden).
   Real hub is .mshs-shop-hub-main injected into #main. Hide duplicate in hero. */
body.woocommerce-shop .hero-section {
  display: none !important;
}

/* Shop hub: ONE column shell only (no nested double card / double margin) */
body.woocommerce-shop #main > .ct-container:has(.mshs-shop-hub-main) {
  max-width: none !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

body.woocommerce-shop .mshs-shop-hub-main,
#main .mshs-shop-hub-main {
  display: block !important;
  max-width: var(--mshs-max) !important;
  width: 100% !important;
  margin: 2rem auto !important;
  padding: 1.75rem 2.5rem 2.75rem !important;
  background: var(--mshs-surface) !important;
  border-radius: var(--mshs-radius) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12) !important;
  box-sizing: border-box !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
}

/* Hide empty leftover column on shop when hub-main exists */
body.woocommerce-shop #main > .ct-container:not(.mshs-shop-hub-main):empty,
body.woocommerce-shop #main .ct-container:not(.mshs-shop-hub-main):has(> .woocommerce:empty) {
  display: none !important;
}

/* Non-home page title strip (inside column context) */
body:not(.home):not(.mshs-has-custom-hero) .ct-page-title-container,
body:not(.home):not(.mshs-has-custom-hero) .hero-section {
  background: var(--mshs-panel) !important;
  border-bottom: 1px solid var(--mshs-line) !important;
  padding: 1.5rem 0 1rem !important;
  box-shadow: inset 4px 0 0 0 var(--mshs-cyan);
}

body:not(.home):not(.mshs-has-custom-hero) .page-title,
body:not(.home):not(.mshs-has-custom-hero) .ct-page-title-container h1 {
  color: var(--mshs-ink) !important;
  margin: 0;
}

.entry-content .j-module,
.entry-content .j-module[style] {
  background: transparent !important;
  color: inherit !important;
}

/* -------------------------------------------------------------------------
   Hero & bands — NO full-bleed; normal blocks inside column
   ------------------------------------------------------------------------- */
.mshs-hero,
.entry-content > .mshs-hero,
.entry-content.is-layout-constrained > .mshs-hero {
  position: relative !important;
  margin: 0 0 1.75rem !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  display: block !important;
  overflow: hidden;
  border-radius: var(--mshs-radius);
  border: 1px solid var(--mshs-line);
  background: var(--mshs-panel);
  box-sizing: border-box;
  filter: none !important;
  animation: none !important;
}

.mshs-hero__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem 1.5rem;
  background: var(--mshs-surface);
  border-bottom: 1px solid var(--mshs-line);
  border-left: 4px solid var(--mshs-cyan);
}

.mshs-hero__media {
  position: relative;
  overflow: hidden;
  background: var(--mshs-panel);
}

.mshs-hero__photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 480px);
  object-fit: cover;
  object-position: center;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.mshs-hero__logo {
  width: min(100%, 320px);
  height: auto;
  filter: none !important;
}

.mshs-hero__title {
  margin: 0;
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  max-width: 22ch;
}

.mshs-hero__lead {
  margin: 0;
  max-width: 42ch;
  color: var(--mshs-muted) !important;
}

.mshs-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.mshs-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.mshs-band,
.entry-content > .mshs-band,
.entry-content.is-layout-constrained > .mshs-band {
  margin: 0 0 1.5rem !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 2rem 0;
  background: var(--mshs-panel);
  border-radius: var(--mshs-radius);
  border: 1px solid var(--mshs-line);
  box-sizing: border-box;
}

.mshs-band .mshs-wrap {
  padding: 0 0.25rem;
}

.mshs-band--soft { background: var(--mshs-panel) !important; }
.mshs-band--surface { background: var(--mshs-surface) !important; }

.mshs-page-hero,
.entry-content > .mshs-page-hero {
  margin: 0 0 1.5rem !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 1.75rem 1.75rem 1.35rem 2.25rem; /* Technik-like left inset */
  background: var(--mshs-panel);
  border: 1px solid var(--mshs-line);
  border-radius: var(--mshs-radius);
  border-left: 4px solid var(--mshs-cyan);
  box-sizing: border-box;
}

.mshs-page-hero .mshs-wrap {
  padding-left: 0.35rem;
}

.mshs-page-hero .mshs-h1,
.mshs-page-hero h1 {
  padding-left: 0.15rem;
}

.mshs-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mshs-cyan-deep);
}

.mshs-shop-filters,
.mshs-tag-filters {
  margin: 0 0 1.5rem;
  padding: 0.75rem 0 0.25rem;
  display: grid;
  gap: 1rem;
}

.mshs-shop-filters__row {
  display: grid;
  gap: 0.45rem;
}

.mshs-shop-filters__list,
.mshs-tag-filters__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* Legacy chip class → same as filter button */
.mshs-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  border: 1.5px solid var(--mshs-line);
  background: #fff;
  color: var(--mshs-ink) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.92rem;
  box-sizing: border-box;
}

.mshs-tag:hover,
.mshs-btn--filter:hover {
  border-color: var(--mshs-cyan-deep);
  background: #f0fcff;
}

.mshs-tag.is-active,
.mshs-btn--filter.is-active {
  background: var(--mshs-cyan) !important;
  border-color: var(--mshs-cyan) !important;
  color: var(--mshs-ink) !important;
}

.mshs-shop-hub {
  margin-bottom: 1rem;
}

.mshs-h1 { margin: 0 0 0.65rem; font-size: clamp(1.75rem, 3vw, 2.35rem); }
.mshs-h2 { margin: 0 0 0.65rem; font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.mshs-lead { margin: 0 0 1.25rem; color: var(--mshs-muted); max-width: 42rem; }

.mshs-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.mshs-rail__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--mshs-radius);
  background: var(--mshs-surface);
  border: 1px solid var(--mshs-line);
  text-decoration: none !important;
  color: var(--mshs-ink) !important;
  font-weight: 600;
  font-size: 0.92rem;
}

.mshs-rail__logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  filter: none !important;
}

.mshs-rail__item span {
  line-height: 1.25;
}

.mshs-rail__item:hover {
  border-color: var(--mshs-cyan);
}

.mshs-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.75rem;
  align-items: start;
}

.mshs-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.mshs-bullets li {
  padding: 0.75rem 0.9rem;
  border-radius: var(--mshs-radius);
  background: var(--mshs-surface);
  border: 1px solid var(--mshs-line);
}

.mshs-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mshs-feature {
  padding: 1rem;
  border-radius: var(--mshs-radius);
  background: var(--mshs-surface);
  border: 1px solid var(--mshs-line);
}

/*
 * STANDARD BUTTON LAYOUT (canonical — all existing + future buttons)
 * Class: .mshs-btn (+ .mshs-btn--primary | --ghost | --filter)
 * Spec: inline-flex, min-height 2.75rem, pad 0.7×1.35rem, radius 10px,
 *       font-weight 600, Plus Jakarta Sans inherit, border 1.5px.
 * Variants: --primary = cyan fill; --ghost/--filter = white + line border.
 * Woo .button / ATC / .mshs-more a / CTAs map to this — never invent new pills.
 */
.mshs-btn,
.entry-content a.mshs-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
a.mshs-more-btn,
.mshs-more > a,
.entry-content .j-calltoaction-link,
.entry-content a.cc-shop-addtocard,
.mshs-pdp-back .mshs-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem !important;
  border-radius: 10px !important;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: transform 130ms var(--ease-out), background-color 180ms ease, border-color 180ms ease;
  cursor: pointer;
}

.mshs-btn:active,
.woocommerce a.button:active,
.woocommerce button.button:active {
  transform: scale(0.97);
}

.mshs-btn--primary,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.single_add_to_cart_button {
  background: var(--mshs-cyan) !important;
  color: var(--mshs-ink) !important;
  border-color: var(--mshs-cyan) !important;
}

.mshs-btn--primary:hover,
.woocommerce a.button.alt:hover {
  background: #7aeeff !important;
}

.mshs-btn--ghost,
.mshs-btn--filter {
  background: #fff !important;
  color: var(--mshs-ink) !important;
  border-color: var(--mshs-line) !important;
}

.mshs-more > a,
.mshs-btn--ghost:hover {
  border-color: var(--mshs-cyan-deep) !important;
  background: #f0fcff !important;
}

.mshs-btn:focus-visible,
.woocommerce a.button:focus-visible {
  outline: 2px solid var(--mshs-cyan);
  outline-offset: 3px;
}

/* Content text links that should look like buttons (CTA pattern) */
.entry-content p > a[href*="/shop/"],
.entry-content p > a[href*="/produkt/"],
.entry-content li > a[href*="/shop/"],
.mshs-page-hero a:not(.mshs-btn):not(.mshs-rail__item) {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.55rem 1.15rem;
  margin: 0.15rem 0.25rem 0.15rem 0;
  border-radius: 10px;
  border: 1.5px solid var(--mshs-line);
  background: #fff;
  color: var(--mshs-ink) !important;
  text-decoration: none !important;
  font-weight: 600;
}

@media (max-width: 900px) {
  .mshs-rail,
  .mshs-features,
  .mshs-split {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------
   Woo / Jimdo migrated content
   ------------------------------------------------------------------------- */

/* Product grid: full content-column width, equal tile edges */
#main ul.products,
.woocommerce ul.products,
.related ul.products,
.upsells ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 1.5rem !important;
  padding: 0 !important;
  list-style: none !important;
}

@media (max-width: 900px) {
  #main ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  #main ul.products,
  .woocommerce ul.products {
    grid-template-columns: 1fr !important;
  }
}

ul.products li.product,
ul.products li.product.product {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
  background: #ffffff !important;
  border: 1px solid #c4c4c8 !important;
  border-radius: var(--mshs-radius) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
  padding: 1.25rem 1.25rem 1.5rem !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
  height: 100%;
  min-height: 100%;
}

/* No category chips/buttons on product cards */
ul.products li.product .entry-meta,
ul.products li.product .meta-categories,
ul.products li.product .ct-product-categories {
  display: none !important;
}

ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .price {
  padding: 0 0.15rem !important;
  margin: 0 !important;
  line-height: 1.35 !important;
}

ul.products li.product .price {
  margin-top: auto !important;
  padding-top: 0.35rem !important;
  font-weight: 600 !important;
  color: var(--mshs-ink) !important;
}

/* -------------------------------------------------------------------------
   PDP column — back + breadcrumb + gallery + summary = same 1080 edge
   Tabs (Beschreibung / Rezensionen) stay full-bleed (user preference)
   ------------------------------------------------------------------------- */
body.single-product .entry-header,
body.single-product .mshs-pdp-back-wrap,
body.single-product .product-entry-wrapper,
body.single-product .product-entry-wrapper.is-width-constrained,
body.single-product div.product > .product-entry-wrapper {
  max-width: var(--mshs-max) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

body.single-product .entry-header {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem 1rem !important;
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
  background: var(--mshs-surface) !important;
  border-radius: var(--mshs-radius) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1) !important;
}

/* PDP breadcrumb — inset inside column tile */
.single-product .woocommerce-breadcrumb,
.single-product .ct-breadcrumbs,
body.single-product .ct-breadcrumbs,
body.single-product nav.woocommerce-breadcrumb {
  padding: 0.35rem 0.35rem 0.15rem !important;
  margin: 0 !important;
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 100% !important;
  box-sizing: border-box;
}

.mshs-pdp-back-wrap,
.mshs-pdp-back {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  box-sizing: border-box;
}

.mshs-pdp-back .mshs-btn {
  display: inline-flex !important;
}

/* Gallery + summary share one 1080 row — same left/right edge as breadcrumb */
body.single-product .product-entry-wrapper,
body.single-product .product-entry-wrapper.is-width-constrained {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 1rem !important;
  align-items: stretch !important;
  padding: 0 !important;
  float: none !important;
}

body.single-product .product-entry-wrapper .woocommerce-product-gallery,
body.single-product .product-entry-wrapper .summary,
body.single-product .product-entry-wrapper .entry-summary {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
}

body.single-product div.product .summary {
  background: #ffffff !important;
  border: 1px solid #c4c4c8;
  border-radius: var(--mshs-radius);
  padding: 1.5rem 1.75rem !important;
  box-sizing: border-box;
}

/* Tabs: full width — do NOT constrain to 1080 */
body.single-product .woocommerce-tabs,
body.single-product .woocommerce-tabs.wc-tabs-wrapper {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: #ffffff !important;
  border: 1px solid #c4c4c8;
  border-radius: var(--mshs-radius);
  padding: 1.5rem 1.75rem !important;
  box-sizing: border-box;
}

@media (max-width: 781px) {
  body.single-product .product-entry-wrapper,
  body.single-product .product-entry-wrapper.is-width-constrained {
    grid-template-columns: 1fr !important;
  }
}

/* Product image = white tile */
.single-product .woocommerce-product-gallery,
.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image,
.single-product .ct-product-gallery,
.single-product figure.woocommerce-product-gallery__wrapper {
  background: #ffffff !important;
  border: 1px solid #c4c4c8 !important;
  border-radius: var(--mshs-radius) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
  padding: 1rem !important;
  box-sizing: border-box !important;
}

.single-product .woocommerce-product-gallery__image img,
.single-product .wp-post-image,
ul.products li.product img {
  object-fit: contain !important;
  filter: none !important;
  background: #ffffff !important;
}

ul.products li.product .ct-image-container,
ul.products li.product .woocommerce-LoopProduct-link,
ul.products li.product a img {
  background: #ffffff !important;
}

ul.products li.product .ct-image-container {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin: 0 0 0.25rem !important;
  overflow: hidden;
  border: 1px solid #e4e4e7;
}

/* Related / Ähnliche Produkte — centered in same 1080 column (not left-flush) */
.single-product .related.products,
.single-product .upsells.products,
.single-product section.related,
.single-product section.upsells {
  background: #ffffff !important;
  border: 1px solid #c4c4c8 !important;
  border-radius: var(--mshs-radius) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
  padding: 1.35rem 1.5rem 1.75rem !important;
  margin: 2rem auto 0 !important;
  box-sizing: border-box !important;
  max-width: var(--mshs-max) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.single-product .related.products > h2,
.single-product .upsells.products > h2,
.single-product .related > h2,
.single-product section.related > h2 {
  background: transparent !important;
  margin: 0 0 1rem !important;
  padding: 0.25rem 0.15rem 0.75rem !important;
  border-bottom: 1px solid var(--mshs-line);
  font-size: 1.25rem;
}

.single-product .woocommerce-product-details__short-description .product-twocolor-name,
.single-product #av_articleherstbezeichnung {
  display: none !important;
}

.button,
.woocommerce a.button,
.woocommerce button.button {
  border-radius: 10px !important;
}

/* Add-to-cart on product tiles — roomy, not cramped pills */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .add_to_cart_button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  width: 100% !important;
  min-height: 2.75rem !important;
  padding: 0.75rem 1.25rem !important;
  margin-top: 0.5rem !important;
  margin-bottom: 0 !important;
  box-sizing: border-box !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  text-align: center !important;
}

.single-product form.cart .single_add_to_cart_button {
  min-height: 2.85rem !important;
  padding: 0.8rem 1.5rem !important;
}

.entry-content .cc-m-hgrid-separator,
.entry-content .cc-m-hgrid-overlay,
.entry-content [data-display="cms-only"] {
  display: none !important;
}

.entry-content .j-module { margin: 0 0 0.85rem; max-width: 100%; }

.entry-content .j-hgrid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin: 0.75rem -0.5rem 1.25rem;
  width: calc(100% + 1rem);
  row-gap: 1rem;
}

.entry-content .j-hgrid .cc-m-hgrid-column {
  box-sizing: border-box;
  min-width: 0;
  flex: 0 1 auto;
  max-width: 100%;
  padding: 0 0.5rem;
}

.entry-content .j-hgrid .cc-m-hgrid-column img,
.entry-content .cc-imagewrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: none !important;
}

@media (max-width: 781px) {
  .entry-content .j-hgrid .cc-m-hgrid-column {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
}

.entry-content .j-catalog-container,
.entry-content .cc-m-catalog-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 1rem;
}

@media (max-width: 1100px) {
  .entry-content .j-catalog-container,
  .entry-content .cc-m-catalog-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 781px) {
  .entry-content .j-catalog-container,
  .entry-content .cc-m-catalog-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Germanized EU guarantee — custom footer only */
.wc-gzd-legal-guarantee-footer,
.wc-gzd-legal-guarantee-global,
.wc-gzd-legal-guarantee {
  display: none !important;
}

/* -------------------------------------------------------------------------
   Custom site footer (Jimdo-style)
   ------------------------------------------------------------------------- */
footer#footer.ct-footer,
#footer.ct-footer {
  display: none !important;
}

.mshs-site-footer {
  background: var(--mshs-footer);
  color: #ffffff;
  margin-top: 2rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.mshs-site-footer a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mshs-site-footer a:hover {
  opacity: 0.88;
}

.mshs-site-footer__inner {
  max-width: var(--mshs-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.mshs-site-footer__ship {
  text-align: center;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.22);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.mshs-site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mshs-site-footer__card h3,
.mshs-site-footer__card h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.mshs-site-footer__card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
}

.mshs-site-footer__matthias {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  align-items: start;
}

.mshs-site-footer__matthias img {
  width: 100px;
  height: auto;
  border-radius: 50%;
  display: block;
  filter: none !important;
}

.mshs-site-footer__matthias h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #ffffff;
}

.mshs-site-footer__matthias p {
  margin: 0 0 0.65rem;
  color: rgba(255, 255, 255, 0.9);
}

.mshs-site-footer__legal {
  padding: 1.25rem 0 1rem;
  text-align: center;
}

.mshs-site-footer__legal-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mshs-site-footer__legal-menu a {
  text-decoration: none;
  font-size: 0.9rem;
}

.mshs-site-footer__legal-menu a:hover {
  text-decoration: underline;
}

.mshs-site-footer__dataact {
  padding: 1rem 0 2rem;
  text-align: center;
  font-size: 0.88rem;
}

.mshs-site-footer__dataact h4 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.mshs-site-footer__dataact ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

@media (max-width: 768px) {
  .mshs-site-footer__grid {
    grid-template-columns: 1fr;
  }
  .mshs-site-footer__matthias {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .mshs-site-footer__matthias img {
    margin: 0 auto;
  }
}

/* Spec / description tables — horizontal scroll on narrow screens */
.woocommerce-Tabs-panel table,
.woocommerce-tabs .panel table,
.entry-content table,
.product .entry-summary ~ * table,
table.mshs-specs,
table.shop_attributes {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.woocommerce-Tabs-panel table tbody,
.entry-content table tbody,
table.mshs-specs tbody {
  width: 100%;
}

/* Product documents tab */
.mshs-docs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mshs-docs-list li {
  margin: 0;
}

.mshs-site-footer__trustpilot {
  margin: 1.25rem 0 0;
  width: 100%;
  min-height: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mshs-site-footer__trustpilot .trustpilot-widget {
  width: 100%;
  max-width: 100%;
  min-height: 52px;
}

.mshs-site-footer__trustpilot .trustpilot-widget > a {
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mshs-site-footer__trustpilot .trustpilot-widget > a:hover {
  color: #00d7ff !important;
}
