@import url("./_static-variables.css");

/* text-image */
.highlight .h3-headline,
.highlight .rich-text p,
.stageHomepage .headline,
.highlight .h2-headline {
  color: var(--white-color);
}

.rich-text,
.text-image p {
  font-size: 1.6rem !important;
  line-height: 1.7 !important;
}

.overlay .current-image {
  aspect-ratio: 1 !important;
  object-fit: contain !important;
  width: 100%;
  height: auto;
}

.text-image-container .text-image-wrapper .center .responsive-image {
  aspect-ratio: 16/9;
  object-fit: contain !important;
  width: 100%;
  height: auto;
}

.text-image-container .image-wrapper .center {
  object-fit: contain !important;
}

.text-image-container .responsive-image{
  aspect-ratio: auto !important;
}

/* link-teaser.css */
.link-teaser h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* text-image-carousel */
.text-image-carousel .swiper-wrapper {
  width: 100%;
  height: auto;
}

.text-image-carousel .swiper-container {
  overflow: hidden;
}

.text-image-carousel .slider-button.active {
  background-color: var(--theme-dark-green-color);
  transform: scale(1.2);
}

.text-image-carousel .highlight .ghost-icon-button {
  color: var(--theme-light-green-color);
  background-color: var(--moss-green);
}

.text-image-carousel .highlight .ghost-icon-button:hover,
.text-image-carousel .highlight .ghost-icon-button:focus-visible,
.text-image-carousel .highlight .ghost-icon-button:visited {
  border-color: var(--theme-light-green-color);
}

.text-image-carousel .highlight .ghost-icon-button:focus-visible {
  outline: 0.2rem solid var(--theme-light-green-color);
}

.text-image-carousel .highlight .text-button {
  color: var(--theme-light-green-color);
}

.text-image-carousel {
  margin-bottom: 24px;
}

/* quotes-carousel */
.baseblock.quote-carousel .baseblock-inner.in-grid .swiper-wrapper {
  display: flex;
  height: auto;
}

.baseblock.quote-carousel .baseblock-inner.in-grid .swiper-slide {
  width: 100vw;
  flex-shrink: 0;
  box-sizing: border-box;
}

.baseblock.quote-carousel .baseblock-inner.in-grid .slider-button.active {
  background-color: var(--theme-dark-green-color);
  transform: scale(1.2);
}

.baseblock.quote-carousel .baseblock-inner.in-grid .swiper {
  width: auto;
}

.baseblock.quote-carousel .baseblock-inner.in-grid {
  width: 100%;
  display: block;
}

/* tabs */
.tabs-section-desktop .tab-label {
  white-space: normal;
  word-break: break-word;
}

/* benefit-wrapper */
.row-benefits {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.benefit {
  background-color: var(--moss-green);
  color: var(--white-bg-color);
  padding: 20px 15px;
}

.row-benefits .icon {
  margin-right: 8px;
  flex-shrink: 0;
}

.benefit .paragraph-m {
  display: flex;
  align-items: center;
}

.benefit .h5-headline {
  margin-bottom: 8px;
}

/* quotes */
.quote img {
  aspect-ratio: 1;
}

.quote .image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* table */

.content-module {
  margin-top: 3.5rem;
}

.table-container {
  overflow-y: auto;
  margin: 10px 10px 30px 10px;
}

.table-container table {
  border-collapse: collapse;
}

.table-container.border-around table {
  border: 1px solid var(--grey-200);
}

.table-container.full-width table {
  width: 100%;
}

.table-container table thead {
  border-top: 2px solid var(--black);
  border-bottom: 1px solid var(--black);
}

.table-container table thead th {
  padding: 7px 10px;
  text-align: inherit;
}

.table-container table thead .h6-headline {
  color: var(--white-bg-color);
  background-color: var(--moss-green);
}

.table-container table tbody tr {
  border-bottom: 1px solid var(--grey-200);
}

.table-container table tbody tr:nth-child(even) td {
  background-color: var(--grey-100) !important;
}

.table-container table tbody td {
  padding: 7px 10px;
}

.table-container .headline-top td a {
  display: block;
  margin-top: 4px;
  width: 100%;
  white-space: normal;
  word-break: break-word;
  text-decoration: none;
  color: var(--moss-green);
  position: relative;
}

.table-container .headline-top td a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--moss-green);
  transition: width 0.3s ease-in-out;
}

.table-container .headline-top td a:hover::after {
  width: 100%;
}

@media (min-width: 992px) {
  .content-module {
    margin-top: 5rem;
  }
}

@media (max-width: 768px) {
  .table-container .headline-top {
    display: block;
  }

  .table-container .headline-top thead {
    display: none;
  }

  .table-container .headline-top tbody {
    display: block;
  }

  .table-container .headline-top tr {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--grey-200);
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .table-container .headline-top td {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--grey-200);
    background: transparent;
  }

  .table-container .headline-top td:last-child {
    border-bottom: none;
  }

  .table-container .headline-top tr:last-child {
    margin-bottom: 0;
  }

  .table-container .headline-top td::before {
    grid-column: 1;
    content: attr(data-label);
    font-weight: 700;
    color: var(--black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 4px;
  }

  .table-container .headline-top td > * {
    grid-column: 2;
    margin: 0;
  }

  .table-container .headline-top td a {
    display: inline-block;
    width: auto;
    white-space: normal;
    word-break: break-word;
    position: relative;
    text-decoration: none;
    color: var(--moss-green);
  }
}

.table > :not(caption) > * > * {
  padding: 0 !important;
}

/* compareimages */
.compare-images .image-section {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

@media screen and (max-height: 400px) {
  .compare-images .image-section {
    padding-top: 0;
    height: 70vh;
    min-height: 200px;
    max-height: 300px;
  }

  .comparison-image-wrapper,
  .comparison-image {
    position: relative;
    height: 100%;
  }

  .icon-holder {
    z-index: 10;
  }
}

.comparison-image-wrapper,
.comparison-image,
.comparison-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.compare-images.images-wrapper-mobile .comparison-image:first-child {
  clip-path: inset(0 50% 0 0);
}

.compare-images.images-wrapper-mobile .comparison-image:nth-child(2) {
  clip-path: inset(0 0 0 50%);
}

.comparison-image-wrapper img {
  object-fit: cover;
  object-position: center;
}

.comparison-image-wrapper:nth-child(2) {
  clip-path: inset(0 0 0 50%);
}

.comparison-image-wrapper,
.comparison-image {
  transition: clip-path 0.1s ease-out;
}

.compare-images .icon-holder {
  cursor: grab;
  transition: left 0.1s ease-out;
}

.compare-images .icon-holder:active {
  cursor: grabbing;
}

.compare-images.images-wrapper-mobile .comparison-image {
  object-fit: cover;
}

@media (max-width: 766px) {
  .overlay .current-image {
    max-height: 300px;
  }
}
