/*
 * Zentrale Schnüffelnase-Produktvorlage
 *
 * Aktivierung erfolgt in functions.php über die Body-Klasse
 * .sn-modern-product. Produktinhalte enthalten nur noch semantische
 * Bausteine; das komplette Layout wird hier zentral gepflegt.
 */

body.sn-modern-product {
  --sn-braun: #5c3d2e;
  --sn-beige: #faf6f2;
  --sn-beige-dunkel: #f2e7dd;
  --sn-orange: #b84f16;
  --sn-text: #3b2b22;
  --sn-muted: #6f5c50;
  overflow-x: hidden;
}

body.sn-modern-product .page-header-image-single {
  display: none;
}

body.sn-modern-product .site.grid-container {
  width: 100% !important;
  max-width: 1800px !important;
}

body.sn-modern-product .site-content {
  display: block !important;
  padding-top: 0 !important;
}

body.sn-modern-product.separate-containers .site-main {
  margin-top: 0 !important;
}

body.sn-modern-product .content-area {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.sn-modern-product #right-sidebar {
  display: none !important;
}

body.sn-modern-product .inside-article {
  background: #fff;
  padding-top: 0 !important;
  padding-left: clamp(12px, 3vw, 40px);
  padding-right: clamp(12px, 3vw, 40px);
}

body.sn-modern-product .inside-article > .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.sn-modern-product article.product {
  max-width: none;
  margin: 0;
}

body.sn-modern-product div.product {
  --sn-product-pad: clamp(14px, 2.6vw, 38px);
  width: 100%;
  max-width: 1500px;
  margin: 0 auto 42px !important;
  padding: 0 var(--sn-product-pad) var(--sn-product-pad);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
  overflow: visible;
}

body.sn-modern-product div.product::before,
body.sn-modern-product div.product::after {
  content: none;
}

/* Die Summary-Kinder werden Teil des zentralen Produkt-Grids. */
body.sn-modern-product div.product .summary {
  display: contents !important;
}

/* Titelwelle */
body.sn-modern-product.single-product div.product .summary .product_title {
  position: relative;
  box-sizing: border-box;
  width: 100vw;
  max-width: none;
  min-height: 360px;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-bottom: -18px !important;
  padding: 20px clamp(26px, 5vw, 80px) 100px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--sn-braun);
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDBweCIgdmlld0JveD0iMCAwIDEyODAgMTQwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxnIGZpbGw9IiNmZmZmZmYiPjxwYXRoIGQ9Ik0xMjgwIDMuNEMxMDUwLjU5IDE4IDEwMTkuNCA4NC44OSA3MzQuNDIgODQuODljLTMyMCAwLTMyMC04NC4zLTY0MC04NC4zQzU5LjQuNTkgMjguMiAxLjYgMCAzLjRWMTQwaDEyODB6IiBmaWxsLW9wYWNpdHk9Ii4zIi8+PHBhdGggZD0iTTAgMjQuMzFjNDMuNDYtNS42OSA5NC41Ni05LjI1IDE1OC40Mi05LjI1IDMyMCAwIDMyMCA4OS4yNDYgNjQwIDg5LjI0IDI1Ni4xMyAwIDMwNy4yOC01Ny4xNiA0ODEuNTgtODBWMTQwSDB6IiBmaWxsLW9wYWNpdHk9Ii41Ii8+PHBhdGggZD0iTTEyODAgNTEuNzZjLTIwMSAxMi40OS0yNDIuNDMgNTMuNC01MTMuNTggNTMuNC0zMjAgMC0zMjAtNTctNjQwLTU3LTQ4Ljg1LjAxLTkwLjIxIDEuMzUtMTI2LjQyIDMuNlYxNDBoMTI4MHoiLz48L2c+PC9zdmc+");
  background-position: center bottom;
  background-size: 100% 190px;
  background-repeat: no-repeat;
  border: 0;
  border-radius: 0;
  color: var(--sn-beige) !important;
  text-align: center;
  font-size: clamp(2.25rem, 4.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  overflow: visible;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none !important;
  transform: translateY(-18px);
}

body.sn-modern-product .product_title::after {
  content: none;
}

/* Breadcrumbs */
body.sn-modern-product .entry-content > .woocommerce-breadcrumb {
  display: none !important;
}

body.sn-modern-product .sn-product-breadcrumb {
  width: 100%;
  margin: 0 !important;
  position: relative;
  z-index: 5;
}

body.sn-modern-product .sn-product-breadcrumb .woocommerce-breadcrumb {
  width: 100%;
  max-width: 1500px;
  margin: 0 !important;
  padding: 11px 18px;
  border-radius: 10px;
  background: #f7f3ef;
  color: #8b776a;
  font-size: 0.92rem;
  line-height: 1.4;
  box-sizing: border-box;
}

body.sn-modern-product .sn-product-breadcrumb .woocommerce-breadcrumb a {
  color: var(--sn-braun);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Produktbild */
body.sn-modern-product .woocommerce-product-gallery {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 12px;
  background: var(--sn-beige-dunkel);
  border: 0;
  border-radius: 22px;
  box-shadow: none;
  box-sizing: border-box;
  overflow: hidden;
}

body.sn-modern-product .woocommerce-product-gallery::after {
  content: none;
}

body.sn-modern-product .woocommerce-product-gallery img {
  display: block;
  border: 0;
  border-radius: 15px;
  box-shadow: none;
}

body.sn-modern-product .woocommerce-product-gallery__trigger,
body.sn-modern-product .woocommerce-product-gallery .zoomImg {
  display: none !important;
}

body.sn-modern-product .woocommerce-product-gallery__image,
body.sn-modern-product .woocommerce-product-gallery__image a,
body.sn-modern-product .woocommerce-product-gallery__image img {
  cursor: default !important;
}

body.sn-modern-product .woocommerce-product-gallery__image a {
  pointer-events: none;
}

body.sn-modern-product .woocommerce-product-gallery .wp-post-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Preis- und Textkarte */
body.sn-modern-product .legacy-itemprop-offers {
  box-sizing: border-box;
  margin: 0 !important;
  padding: clamp(26px, 3vw, 38px) clamp(26px, 3.4vw, 48px) 12px;
  background: linear-gradient(145deg, #6b4a39, var(--sn-braun));
  border: 1px solid var(--sn-braun);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  color: var(--sn-beige);
}

body.sn-modern-product.single-product div.product .summary .legacy-itemprop-offers .price {
  margin: 0 0 4px !important;
  color: #fff !important;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem) !important;
  font-weight: 800;
}

body.sn-modern-product .sn-price-taler {
  color: #fff;
  white-space: nowrap;
}

body.sn-modern-product .legacy-itemprop-offers .wgm-info {
  color: var(--sn-beige-dunkel);
}

body.sn-modern-product .woocommerce_de_versandkosten {
  display: none !important;
}

body.sn-modern-product.single-product div.product .summary .woocommerce-product-details__short-description {
  box-sizing: border-box;
  margin: 0 !important;
  padding: 10px clamp(26px, 3.4vw, 48px) clamp(28px, 3.4vw, 46px);
  background: linear-gradient(145deg, #6b4a39, var(--sn-braun));
  border: 1px solid var(--sn-braun);
  border-top: 0;
  border-radius: 0 0 24px 24px;
  color: var(--sn-beige) !important;
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  line-height: 1.7;
}

body.sn-modern-product.single-product div.product .summary .woocommerce-product-details__short-description p {
  color: var(--sn-beige) !important;
}

body.sn-modern-product .woocommerce-product-details__short-description > :first-child {
  margin-top: 0;
}

body.sn-modern-product .woocommerce-product-details__short-description > :last-child {
  margin-bottom: 0;
}

body.sn-modern-product .sn-calendar-jump-wrap {
  margin-top: 22px !important;
}

body.sn-modern-product .sn-calendar-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 25px;
  border-radius: 999px;
  background: var(--sn-orange);
  color: #fff !important;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 7px 18px rgba(184, 79, 22, 0.2);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.sn-modern-product .sn-calendar-jump:hover {
  background: #963f10;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(184, 79, 22, 0.26);
}

body.sn-modern-product .sn-product-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 !important;
}

body.sn-modern-product .sn-product-facts strong,
body.sn-modern-product .sn-product-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--sn-beige-dunkel);
  color: var(--sn-braun);
  font-size: 0.95rem;
  font-weight: 700;
}

body.sn-modern-product.single-product div.product .summary .woocommerce-product-details__short-description .sn-booking-hint {
  margin-top: 18px !important;
  padding: 15px 18px;
  background: #fff;
  border-left: 5px solid var(--sn-orange);
  border-radius: 14px;
  color: var(--sn-braun) !important;
  box-shadow: none;
}

body.sn-modern-product #ph-calendar-days {
  scroll-margin-top: 150px;
}

body.sn-modern-product .product_meta,
body.sn-modern-product .german-market-summary-gpsr {
  display: none;
}

/* Inhaltskarten */
body.sn-modern-product .woocommerce-tabs {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  clear: both;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent;
  border: 0;
  box-sizing: border-box;
}

body.sn-modern-product .woocommerce-tabs ul.tabs {
  display: none;
}

body.sn-modern-product .woocommerce-tabs .panel {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  clear: both;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

body.sn-modern-product #tab-description > h2:first-child {
  display: none;
}

body.sn-modern-product .sn-more-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 22px;
  color: var(--sn-braun);
  font-weight: 800;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  text-align: center;
}

body.sn-modern-product .sn-more-marker b {
  color: var(--sn-orange);
  font-size: 1.35rem;
}

body.sn-modern-product .sn-product-overview {
  width: min(100%, 1400px);
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border: 1px solid #e4d6ca;
  border-radius: 18px;
  overflow: hidden;
  box-sizing: border-box;
}

body.sn-modern-product .sn-product-overview--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.sn-modern-product .sn-product-fact {
  padding: 18px 20px;
  text-align: center;
  border-right: 1px solid #e4d6ca;
}

body.sn-modern-product .sn-product-fact:last-child {
  border-right: 0;
}

body.sn-modern-product .sn-product-fact span {
  display: block;
  margin-bottom: 4px;
  color: var(--sn-orange);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.sn-modern-product .sn-product-fact strong {
  display: block;
  color: var(--sn-braun);
  font-size: 1.05rem;
  line-height: 1.3;
}

body.sn-modern-product .sn-product-info {
  width: min(100%, 1400px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  color: var(--sn-text);
  box-sizing: border-box;
}

body.sn-modern-product .sn-product-info.sn-layout-short .sn-product-section:first-child {
  grid-column: 1 / -1;
}

body.postid-121 .sn-product-info > .sn-product-section:last-child,
body.postid-122 .sn-product-info > .sn-product-section:last-child,
body.postid-125 .sn-product-info > .sn-product-section:last-child,
body.postid-127 .sn-product-info > .sn-product-section:last-child {
  grid-column: 1 / -1;
}

body.sn-modern-product .sn-product-section {
  margin: 0;
  padding: clamp(24px, 3vw, 34px);
  background: var(--sn-beige);
  border: 1px solid #e4d6ca;
  border-radius: 20px;
  box-shadow: none;
}

body.sn-modern-product .sn-product-section h2 {
  margin: 0 0 14px;
  color: var(--sn-text);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.2;
}

body.sn-modern-product .sn-product-section p {
  margin: 0 0 14px;
  color: var(--sn-muted);
  line-height: 1.65;
}

body.sn-modern-product .sn-product-section ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

body.sn-modern-product .sn-product-section li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 34px;
  color: var(--sn-text);
  font-weight: 600;
}

body.sn-modern-product .sn-product-section li::before {
  content: "✓";
  position: absolute;
  top: 1px;
  left: 0;
  width: 23px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f6d9c4;
  border-radius: 50%;
  color: var(--sn-orange);
  font-size: 0.85rem;
  font-weight: 900;
}

body.sn-modern-product .sn-product-highlight {
  background: var(--sn-braun);
  border: 0;
}

body.sn-modern-product .sn-product-highlight h2,
body.sn-modern-product .sn-product-highlight p,
body.sn-modern-product .sn-product-highlight li {
  color: var(--sn-beige);
}

body.sn-modern-product .sn-product-highlight li::before {
  background: var(--sn-beige-dunkel);
  color: var(--sn-braun);
}

body.sn-modern-product .sn-eyebrow {
  margin-bottom: 10px !important;
  color: var(--sn-orange) !important;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.sn-modern-product .sn-product-highlight .sn-eyebrow {
  color: #ffd1ae !important;
}

body.sn-modern-product .sn-product-note {
  margin-top: 18px !important;
  padding-top: 16px;
  border-top: 1px solid #d9c9bd;
  font-size: 0.96rem;
}

/* Kaufabschluss der beiden Pfötchen-Taler-Abos */
body.sn-modern-product:is(.postid-199, .postid-200) form.cart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(28px, 4vw, 54px);
}

body.sn-modern-product:is(.postid-199, .postid-200) form.cart::before {
  content: none;
}

body.sn-modern-product:is(.postid-199, .postid-200) .sn-abo-purchase {
  max-width: 760px;
}

body.sn-modern-product:is(.postid-199, .postid-200) .sn-abo-purchase__eyebrow {
  margin: 0 0 8px;
  color: var(--sn-orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.sn-modern-product:is(.postid-199, .postid-200) .sn-abo-purchase h2 {
  margin: 0 0 10px;
  color: var(--sn-braun);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.2;
}

body.sn-modern-product:is(.postid-199, .postid-200) .sn-abo-purchase p:not(.sn-abo-purchase__eyebrow) {
  margin: 0;
  color: var(--sn-text);
  font-size: 1.05rem;
  line-height: 1.6;
}

body.sn-modern-product:is(.postid-199, .postid-200) .sn-abo-purchase small {
  display: block;
  margin-top: 8px;
  color: var(--sn-muted);
  line-height: 1.5;
}

body.sn-modern-product:is(.postid-199, .postid-200) form.cart button.single_add_to_cart_button {
  float: none !important;
  min-width: 230px;
  margin: 0 !important;
  white-space: nowrap;
}

@media (max-width: 760px) {
  body.sn-modern-product:is(.postid-199, .postid-200) form.cart {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
  }

  body.sn-modern-product:is(.postid-199, .postid-200) form.cart button.single_add_to_cart_button {
    width: 100%;
    min-width: 0;
  }
}

/* Buchungskalender */
body.sn-modern-product form.cart {
  box-sizing: border-box;
  width: 100%;
  margin: 0 !important;
  padding: clamp(24px, 3.5vw, 48px);
  background: linear-gradient(145deg, #f7eee6 0%, #fffaf6 55%, #f1e0d1 100%);
  border: 1px solid #e4d6ca;
  border-radius: 26px;
}

body.sn-modern-product form.cart::before {
  content: "Termin auswählen";
  display: block;
  margin: 0 auto 24px;
  color: var(--sn-braun);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

body.sn-modern-product form.cart .booking-wraper {
  width: min(100%, 1100px);
  margin: 0 auto !important;
  color: var(--sn-braun);
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(59, 43, 34, 0.08);
  overflow: hidden;
}

/* Vorabfragen und freiwillige Bemerkungen mit ruhigem Seitenabstand */
body.sn-modern-product form.cart :is(
  .sn-wunsch-topics,
  .sn-behavior-topics,
  .sn-intro-fields
) {
  margin-inline: clamp(16px, 2.5vw, 28px) !important;
}

body.sn-modern-product form.cart p:has(textarea[name="phive_book_additional_notes_text"]) {
  box-sizing: border-box;
  margin: 18px 0 0 !important;
  padding: 0 clamp(16px, 2.5vw, 28px) 24px;
  color: var(--sn-braun);
}

body.sn-modern-product form.cart textarea[name="phive_book_additional_notes_text"] {
  box-sizing: border-box;
  display: block;
  width: 100% !important;
  margin-top: 8px;
}

body.sn-modern-product .booking-info-wraper {
  margin: 0;
  padding: 12px 18px;
}

body.sn-modern-product .ph-calendar-month,
body.sn-modern-product .booking-info-wraper {
  background: var(--sn-braun) !important;
}

body.sn-modern-product .ph-calendar-weekdays {
  background: #8a6854 !important;
}

body.sn-modern-product .ph-calendar-days {
  background: #fbf7f3 !important;
}

body.sn-modern-product li.ph-calendar-date.mouse_hover,
body.sn-modern-product li.ph-calendar-date:hover,
body.sn-modern-product .timepicker-selected-date,
body.sn-modern-product .selected-date {
  background: #d86b2a !important;
}

body.sn-modern-product button.single_add_to_cart_button {
  display: block;
  margin: 22px auto 0 !important;
  padding: 14px 30px !important;
  background: var(--sn-orange) !important;
  border: 2px solid transparent !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: none;
}

body.sn-modern-product button.single_add_to_cart_button:hover {
  background: #963f10 !important;
}

/* LernReise: Kaufkarte als Teil des Inhaltsrasters */
body.postid-131.sn-modern-product form.cart {
  display: flex;
  grid-column: auto;
  grid-row: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-width: 0;
  height: 100%;
  margin: 0 !important;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 20px;
  text-align: center;
}

body.postid-131.sn-modern-product form.cart::before {
  content: "LernReise BasisEtappen buchen\A" "4 × 45 Minuten Einzeltraining · 259 € Gesamtpreis";
  margin-bottom: 10px;
  color: var(--sn-braun);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.2;
  white-space: pre-line;
}

body.postid-131.sn-modern-product form.cart::after {
  content: "Inklusive Trainingsplänen, Anleitungsvideos, einer PraxisZeit nach Abschluss sowie Zertifikat und Abschluss als Pfadfinder. Ihre vier Termine wählen Sie nach dem Kauf einzeln im Buchungskalender aus.";
  display: block;
  order: 1;
  max-width: 560px;
  margin: 8px auto 0;
  color: var(--sn-braun);
  font-size: 1rem;
  line-height: 1.65;
}

body.postid-131.sn-modern-product form.cart button.single_add_to_cart_button {
  display: inline-block;
  order: 2;
  float: none !important;
  margin-top: 22px !important;
}

body.sn-modern-product button:focus-visible,
body.sn-modern-product a:focus-visible,
body.sn-modern-product input:focus-visible,
body.sn-modern-product select:focus-visible,
body.sn-modern-product textarea:focus-visible {
  outline: 3px solid var(--sn-orange) !important;
  outline-offset: 3px;
}

/* Ähnliche Produkte */
body.sn-modern-product .related.products {
  grid-column: 1 / -1;
  width: min(100%, 1400px);
  margin: clamp(40px, 5vw, 70px) auto 0 !important;
  padding: clamp(26px, 4vw, 46px);
  background: var(--sn-beige);
  border: 1px solid #e4d6ca;
  border-radius: 26px;
  box-sizing: border-box;
}

body.sn-modern-product .related.products > h2 {
  margin: 0 0 clamp(22px, 3vw, 34px);
  color: var(--sn-braun);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
  text-align: center;
}

body.sn-modern-product .related.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 340px));
  justify-content: center;
  gap: 24px;
  margin: 0 !important;
  padding: 0 !important;
}

body.sn-modern-product .related.products ul.products::before,
body.sn-modern-product .related.products ul.products::after {
  content: none !important;
}

body.sn-modern-product .related.products ul.products li.product {
  display: flex;
  flex-direction: column;
  float: none !important;
  width: 100% !important;
  max-width: 340px;
  margin: 0 !important;
  padding: 0 0 24px;
  background: #fff;
  border: 1px solid #e4d6ca;
  border-radius: 21px;
  box-shadow: 0 10px 26px rgba(59, 43, 34, 0.07);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.sn-modern-product .related.products ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 32px rgba(59, 43, 34, 0.11);
}

body.sn-modern-product .related.products .woocommerce-LoopProduct-link {
  display: block;
  color: var(--sn-text);
  text-decoration: none;
}

body.sn-modern-product .related.products ul.products li.product img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 !important;
  border-radius: 0;
  object-fit: cover;
}

body.sn-modern-product .related.products .woocommerce-loop-product__title {
  min-height: 3.1em;
  margin: 0 !important;
  padding: 20px 22px 8px !important;
  color: var(--sn-braun);
  font-size: 1.18rem !important;
  line-height: 1.35;
  text-align: center;
  hyphens: none;
}

body.sn-modern-product .related.products .price {
  margin: 0 !important;
  padding: 0 20px 5px;
  color: var(--sn-orange) !important;
  font-size: 1.2rem !important;
  font-weight: 800;
  text-align: center;
}

body.sn-modern-product .related.products .wgm-info {
  padding: 0 18px;
  color: var(--sn-muted);
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: center;
}

body.sn-modern-product .related.products a.button {
  align-self: center;
  margin: auto 22px 0 !important;
  padding: 12px 23px !important;
  background: var(--sn-orange) !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
  box-shadow: none;
}

body.sn-modern-product .related.products a.button:hover {
  background: #963f10 !important;
  color: #fff !important;
}

@media (min-width: 1024px) {
  body.sn-modern-product div.product {
    display: grid;
    grid-template-columns: minmax(320px, 42fr) minmax(0, 58fr);
    grid-template-rows: auto auto auto auto auto auto auto;
    column-gap: clamp(26px, 3vw, 44px);
    row-gap: 0;
    align-items: start;
  }

  body.sn-modern-product .product_title {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  body.sn-modern-product .sn-product-breadcrumb {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-bottom: 18px !important;
  }

  body.sn-modern-product .woocommerce-product-gallery {
    grid-column: 1;
    grid-row: 3 / span 2;
  }

  body.sn-modern-product .legacy-itemprop-offers {
    grid-column: 2;
    grid-row: 3;
    align-self: end;
  }

  body.sn-modern-product .woocommerce-product-details__short-description {
    grid-column: 2;
    grid-row: 4;
    align-self: start;
  }

  body.sn-modern-product .woocommerce-tabs {
    grid-column: 1 / -1;
    grid-row: 5;
    margin-top: clamp(30px, 3.5vw, 48px) !important;
  }

  body.sn-modern-product form.cart {
    grid-column: 1 / -1;
    grid-row: 6;
    margin-top: clamp(30px, 3.5vw, 48px) !important;
  }

  body.sn-modern-product .related.products {
    grid-row: 7;
  }

  body.postid-58.sn-modern-product .sn-product-overview--three {
    grid-column: 1 / -1;
    grid-row: 5;
    margin-top: clamp(22px, 2.5vw, 34px);
    margin-bottom: 0;
  }

  body.postid-58.sn-modern-product .woocommerce-tabs {
    grid-row: 6;
  }

  body.postid-58.sn-modern-product form.cart {
    grid-row: 7;
  }

  body.postid-58.sn-modern-product .related.products {
    grid-row: 8;
  }
}

@media (max-width: 1023px) {
  body.sn-modern-product div.product {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
  }

  body.sn-modern-product .product_title { order: 1; }
  body.sn-modern-product .sn-product-breadcrumb { order: 2; }
  body.sn-modern-product .woocommerce-product-gallery { order: 3; }
  body.sn-modern-product .legacy-itemprop-offers { order: 4; margin-bottom: -10px !important; }
  body.sn-modern-product .woocommerce-product-details__short-description { order: 5; }
  body.sn-modern-product .sn-product-overview--three { order: 6; margin-top: 10px; margin-bottom: 0; }
  body.sn-modern-product .woocommerce-tabs { order: 7; margin-top: 20px !important; }
  body.sn-modern-product form.cart { order: 8; margin-top: 20px !important; }
  body.sn-modern-product .related.products { order: 9; }
}

@media (max-width: 900px) {
  body.sn-modern-product .sn-product-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.sn-modern-product .sn-product-overview--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.sn-modern-product .sn-product-fact {
    border-bottom: 1px solid #e4d6ca;
  }

  body.sn-modern-product .sn-product-fact:nth-child(2) {
    border-right: 0;
  }

  body.sn-modern-product .sn-product-fact:nth-child(3),
  body.sn-modern-product .sn-product-fact:nth-child(4) {
    border-bottom: 0;
  }

  body.sn-modern-product .sn-product-info {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.sn-modern-product .sn-product-info.sn-layout-short .sn-product-section:first-child {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  body.sn-modern-product .inside-article {
    padding-left: 10px;
    padding-right: 10px;
  }

  body.sn-modern-product div.product {
    --sn-product-pad: 12px;
    padding: 0 var(--sn-product-pad) var(--sn-product-pad);
    border-radius: 0;
  }

  body.sn-modern-product .product_title {
    min-height: 235px !important;
    margin-bottom: -10px !important;
    padding: 18px 14px 74px !important;
    align-items: flex-start !important;
    background-size: 100% 100px !important;
    border-radius: 0;
    font-size: clamp(1.65rem, 7.2vw, 2.15rem) !important;
    line-height: 1.1 !important;
    text-wrap: balance;
    transform: translateY(-10px);
  }

  body.postid-125.sn-modern-product .product_title {
    font-size: clamp(1.5rem, 6.5vw, 1.9rem) !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  body.postid-125.sn-modern-product .legacy-itemprop-offers .price {
    font-size: clamp(1.3rem, 6vw, 1.55rem) !important;
    white-space: normal;
  }

  body.postid-125.sn-modern-product .sn-product-section h2,
  body.postid-125.sn-modern-product .sn-more-marker span {
    text-wrap: balance;
  }

  body.postid-125.sn-modern-product .sn-product-fact strong {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  body.sn-modern-product .sn-product-breadcrumb .woocommerce-breadcrumb {
    padding: 7px 12px;
    font-size: 0.84rem;
  }

  body.sn-modern-product .woocommerce-product-gallery {
    padding: 8px;
    border-radius: 16px;
  }

  body.sn-modern-product .legacy-itemprop-offers {
    padding: 24px 20px 10px;
    border-radius: 18px 18px 0 0;
  }

  body.sn-modern-product .woocommerce-product-details__short-description {
    padding: 8px 20px 24px;
    border-radius: 0 0 18px 18px;
  }

  body.sn-modern-product .sn-product-overview {
    grid-template-columns: 1fr;
  }

  body.sn-modern-product .sn-product-fact {
    padding: 15px;
    border-right: 0;
    border-bottom: 1px solid #e4d6ca !important;
  }

  body.sn-modern-product .sn-product-fact:last-child {
    border-bottom: 0 !important;
  }

  body.sn-modern-product .sn-product-facts {
    gap: 8px;
  }

  body.sn-modern-product .sn-product-facts strong,
  body.sn-modern-product .sn-product-facts span {
    padding: 6px 11px;
    font-size: 0.88rem;
  }

  body.sn-modern-product .sn-product-section {
    padding: 18px;
    border-radius: 16px;
  }

  body.sn-modern-product .sn-product-section h2 {
    font-size: clamp(1.28rem, 5.7vw, 1.55rem);
    line-height: 1.2;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
    text-wrap: balance;
  }

  body.sn-modern-product .sn-product-section p,
  body.sn-modern-product .sn-product-section li {
    font-size: 0.98rem;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
  }

  body.sn-modern-product .sn-product-section li {
    padding-left: 30px;
  }

  body.sn-modern-product form.cart {
    padding: 22px 12px;
    border-radius: 18px;
  }

  body.sn-modern-product form.cart::before {
    font-size: 1.6rem;
  }

  body.sn-modern-product .sn-more-marker {
    font-size: 1.1rem;
  }

  body.sn-modern-product .related.products {
    margin-top: 32px !important;
    padding: 24px 14px;
    border-radius: 18px;
  }

  body.sn-modern-product .related.products ul.products {
    grid-template-columns: minmax(0, 340px);
  }

  body.sn-modern-product .related.products ul.products li.product {
    border-radius: 17px;
  }
}

/* Zuhause-Angebote: seitenbreiter persönlicher Abschluss */
body.sn-modern-product:is(.postid-116, .postid-119) .sn-product-attitude {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.7fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  overflow: hidden;
  padding-right: clamp(18px, 3vw, 38px);
}

body.sn-modern-product:is(.postid-116, .postid-119) .sn-product-attitude__copy {
  align-self: center;
}

body.sn-modern-product:is(.postid-116, .postid-119) .sn-product-attitude__media {
  align-self: end;
  display: flex;
  justify-content: center;
  margin: -12px 0 -34px;
}

body.sn-modern-product:is(.postid-116, .postid-119) .sn-product-attitude__image {
  display: block;
  width: min(100%, 320px);
  height: auto;
}

@media (max-width: 768px) {
  body.sn-modern-product:is(.postid-116, .postid-119) .sn-product-attitude {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-right: 22px;
  }

  body.sn-modern-product:is(.postid-116, .postid-119) .sn-product-attitude__media {
    margin: 4px auto -22px;
  }

  body.sn-modern-product:is(.postid-116, .postid-119) .sn-product-attitude__image {
    width: min(82%, 280px);
  }
}
