/* Colour Concept page sections – wrappers for CMS columns */
.cc-section {
  padding: 40px 0;
  border-top: 1px solid #eeeeee;
}
@media (min-width: 992px) {
  .cc-section {
    padding: 70px 0;
  }
}

.cc-section.cc-glaze {
  border-bottom: none;
}
.cc-section.cc-glaze + .product-color-wrapper.cc-section {
  border-top: none;
}

.cd-main-content.content-page .cc-section h2,
.cd-main-content.content-page .cc-section .cc-section__title,
.cd-main-content.content-page .cc-section .frame-type-header h2,
.cd-main-content.content-page .cc-section header h2 {
  display: block;
  margin: 0 0 16px;
  font-family: "BrandonText", Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.3;
  color: inherit;
}
@media (min-width: 992px) {
  .cd-main-content.content-page .cc-section h2,
  .cd-main-content.content-page .cc-section .cc-section__title,
  .cd-main-content.content-page .cc-section .frame-type-header h2,
  .cd-main-content.content-page .cc-section header h2 {
    font-size: 20px;
  }
}

/* Color / Lasur section: same heading size as other cc-sections */
.cd-main-content.content-page .product-color-wrapper.cc-section h2,
.cd-main-content.content-page .product-color-wrapper.cc-section .frame-type-header h2,
.cd-main-content.content-page .product-color-wrapper.cc-section .product-title,
.cd-main-content.content-page .product-color-wrapper.cc-section .product-title span {
  display: block;
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.3;
  color: inherit;
}
@media (min-width: 992px) {
  .cd-main-content.content-page .product-color-wrapper.cc-section h2,
  .cd-main-content.content-page .product-color-wrapper.cc-section .frame-type-header h2,
  .cd-main-content.content-page .product-color-wrapper.cc-section .product-title,
  .cd-main-content.content-page .product-color-wrapper.cc-section .product-title span {
    font-size: 20px;
  }
}

/* Keep mask/overlay inside the profile image so .product-title stays visible above */
.product-color-wrapper.cc-section .product-color .product-img {
  position: relative;
}
.product-color-wrapper.cc-section .product-title {
  position: relative;
  z-index: 1;
}

/* Avoid double top spacing from legacy product-color-wrapper rules */
.product-color-wrapper.cc-section {
  border-top: 1px solid #eeeeee;
  margin-top: 0;
  padding-top: 40px;
}
@media (min-width: 992px) {
  .product-color-wrapper.cc-section {
    padding-top: 70px;
    margin-top: 0;
  }
}

.cc-section p,
.cc-section .lead {
  font-family: "BrandonText", Helvetica, Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.55;
  color: #333;
}
@media (min-width: 992px) {
  .cc-section p,
  .cc-section .lead {
    font-size: 1.7rem;
  }
}

.cc-section__media .ce-gallery,
.cc-section__media .ce-image,
.cc-section__media figure {
  margin-bottom: 16px;
}
.cc-section__media img {
  display: block;
  max-width: 100%;
  height: auto;
}
.cc-section__media .ce-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
}
.cc-section__media .ce-column {
  flex: 0 1 calc(50% - 8px);
  max-width: 220px;
}
.cc-through .cc-section__media .ce-column,
.cc-plus .cc-section__media .ce-column {
  flex: 0 1 calc(50% - 8px);
  max-width: 160px;
}
@media (min-width: 768px) {
  .cc-through .cc-section__media .ce-column,
  .cc-plus .cc-section__media .ce-column {
    flex: 0 1 calc(25% - 12px);
    max-width: 180px;
  }
}
.cc-section__media figcaption,
.cc-section__media .image-caption {
  display: block;
  margin-top: 8px;
  font-family: "BrandonText", Helvetica, Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  color: #000;
}

.cc-section__body .frame-type-table,
.cc-section__media .frame-type-table,
.cc-compare .table-responsive,
.cc-compare-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}
.cc-section table,
.cc-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "BrandonText", Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.4;
}
.cc-section table th,
.cc-section table td,
.cc-compare-table th,
.cc-compare-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e5e5e5;
}
.cc-section table thead th,
.cc-compare-table thead th {
  background: #003866;
  color: #fff;
  font-weight: 600;
  border-bottom: 0;
}
.cc-section table tbody th,
.cc-compare-table tbody th {
  font-weight: 600;
  color: #003866;
  background: #f7f9fb;
}

.cc-section__note,
.cc-section__body .frame-layout-0 > *:last-child {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .cc-section__media {
    padding-right: 20px;
  }
  .cc-section__body {
    padding-left: 10px;
  }
}

/* Optional helper classes if used in HTML CEs */
.cc-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.cc-swatch {
  margin: 0;
  padding: 0;
  flex: 0 1 calc(50% - 8px);
  max-width: 220px;
}
.cc-swatches--four .cc-swatch {
  max-width: 160px;
}
@media (min-width: 768px) {
  .cc-swatches--four .cc-swatch {
    flex: 0 1 calc(25% - 12px);
    max-width: 180px;
  }
}
.cc-swatch__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.cc-swatch__caption {
  display: block;
  margin-top: 8px;
  font-family: "BrandonText", Helvetica, Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #000;
}

/* Hover zoom: Naturbelassen / Durchgefärbt / Durchgefärbt Plus
   Grows to 300px toward top-right, overlays siblings, no layout shift */
.cc-surface .cc-section__media,
.cc-through .cc-section__media,
.cc-plus .cc-section__media,
.cc-surface .cc-section__media .ce-row,
.cc-through .cc-section__media .ce-row,
.cc-plus .cc-section__media .ce-row,
.cc-surface .cc-swatches,
.cc-through .cc-swatches,
.cc-plus .cc-swatches {
  overflow: visible;
}

.cc-surface .cc-section__media .ce-column,
.cc-through .cc-section__media .ce-column,
.cc-plus .cc-section__media .ce-column,
.cc-surface .cc-swatch,
.cc-through .cc-swatch,
.cc-plus .cc-swatch {
  position: relative;
  z-index: 1;
  overflow: visible;
}

.cc-surface .cc-section__media .ce-column img,
.cc-through .cc-section__media .ce-column img,
.cc-plus .cc-section__media .ce-column img,
.cc-surface .cc-swatch__image,
.cc-through .cc-swatch__image,
.cc-plus .cc-swatch__image {
  display: block;
  transform-origin: left bottom;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .cc-surface .cc-section__media .ce-column:hover,
  .cc-through .cc-section__media .ce-column:hover,
  .cc-plus .cc-section__media .ce-column:hover,
  .cc-surface .cc-swatch:hover,
  .cc-through .cc-swatch:hover,
  .cc-plus .cc-swatch:hover {
    z-index: 40;
  }

  /* Naturbelassen: max-width 220px → 300px */
  .cc-surface .cc-section__media .ce-column:hover img,
  .cc-surface .cc-swatch:hover .cc-swatch__image {
    transform: scale(1.3636);
    position: relative;
    z-index: 5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  }

  /* Durchgefärbt / Plus: max-width 180px → 300px */
  .cc-through .cc-section__media .ce-column:hover img,
  .cc-plus .cc-section__media .ce-column:hover img,
  .cc-through .cc-swatch:hover .cc-swatch__image,
  .cc-plus .cc-swatch:hover .cc-swatch__image {
    transform: scale(1.6667);
    position: relative;
    z-index: 5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  }
}

@media (hover: hover) and (max-width: 767px) {
  .cc-through .cc-section__media .ce-column:hover img,
  .cc-plus .cc-section__media .ce-column:hover img,
  .cc-through .cc-swatch:hover .cc-swatch__image,
  .cc-plus .cc-swatch:hover .cc-swatch__image {
    transform: scale(1.875); /* 300 / 160 */
  }
}
