/* ============================================
   Side By Side – Downloads (efter banner)
   ============================================ */

#sbs-downloads {
  padding: var(--sectionPadding);
  background: var(--secondaryLight);
}

/* Gridlayout: Bild | Content */
#sbs-downloads .cs-container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

/* Bildkort med subtil highlight och skugga */
#sbs-downloads .cs-picture {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--primary) 0px 0px 42px;
}

#sbs-downloads .cs-picture img {
  width: 100%;
  height: auto;
  display: block;
}

/* Innehållspelar */
#sbs-downloads .cs-content {
  max-width: 640px;
  margin-left: 5rem;
}

#sbs-downloads .cs-title {
  position: relative;
  padding-bottom: 0.35rem;
}

/* Nedladdningslistan (2x2 på desktop, 1x4 på mobil) */
#sbs-downloads .cs-download-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.8vw, 1rem);
}

/* Länk som ”kort” med subtil glas/blank-känsla */
#sbs-downloads .cs-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: var(--secondary);
  background-color: var(--primary);
  border: 1px solid var(--secondaryLight);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease,
    border-color 180ms ease;
  will-change: transform;
  position: relative;
}

/* Liten PDF-ikon via mask – inga extra <svg> krävs */
#sbs-downloads .cs-link::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  background: var(--primary);
  -webkit-mask: url("img/icons/file-down.svg") no-repeat center / contain;
  mask: url("img/icons/file-down.svg") no-repeat center / contain;
  opacity: 0.95;
}

/* Hover/focus states med tydlig tillgänglighet */
#sbs-downloads .cs-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px var(--primary);
  border: 1px solid var(--secondary);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--secondaryLight));
}
#sbs-downloads .cs-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent);
  outline-offset: 2px;
}

/* Visuell ”laddningsindikator” vid nedladdning (frivillig klass .is-loading) */
#sbs-downloads .cs-link.is-loading {
  cursor: progress;
}
#sbs-downloads .cs-link.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  animation: sbs-downloads-shimmer 1.2s linear infinite;
}

@keyframes sbs-downloads-shimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

/* Responsivitet */
@media (max-width: 1200px) {
  #sbs-downloads .cs-content {
    margin-left: 40px;
  }
  #sbs-downloads .cs-link img {
    margin-left: -15px;
  }
}
@media (max-width: 1050px) {
  #sbs-downloads .cs-content {
    margin-left: 0;
  }
}

@media (max-width: 950px) {
  #sbs-downloads .cs-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #sbs-downloads .cs-content {
    margin-left: 0;
  }
  /* bilden överst på mobil */
  #sbs-downloads .cs-picture {
    order: -1;
  }
  /* 1 kolumn för länkar på mobil */
  #sbs-downloads .cs-download-list {
    grid-template-columns: 1fr;
  }
}

/* Respekt för användare som minskat rörelse */
@media (prefers-reduced-motion: reduce) {
  #sbs-downloads .cs-link,
  #sbs-downloads .cs-picture,
  #sbs-downloads .cs-link.is-loading::after {
    transition: none;
    animation: none;
  }
}
#sbs-downloads .cs-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: var(--secondary);
  background-color: var(--primary);
  border: 1px solid var(--secondaryLight);
  border-radius: 12px;
  transition: transform 180ms ease, box-shadow 180ms ease,
    border-color 180ms ease;
}

#sbs-downloads .cs-icon {
  flex: 0 0 auto;
  display: block;
}

/*-- -------------------------- -->
<---       Side By Side         -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #sbs-72 {
    padding: var(--sectionPadding);
    padding-bottom: 1.5rem;
    background-color: white;
  }
  #sbs-72 .cs-container {
    width: 100%;
    /* changes to 1280px at tablet */
    max-width: 34.375rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
  }
  #sbs-72 .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: left;
    width: 100%;
    max-width: 33.875rem;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: flex-start;
  }

  #sbs-72 .cs-text {
    margin-bottom: 1rem;
  }
  #sbs-72 .cs-text:last-of-type {
    margin-bottom: 2rem;
  }
  #sbs-72 .cs-title {
    color: var(--headerColor);
  }
  #sbs-72 .cs-text {
    color: var(--bodyTextColor);
    opacity: 0.8;
  }
  #sbs-72 .cs-button-solid {
    font-size: 1rem;
    /* 46px - 56px */
    line-height: clamp(2.875rem, 5.5vw, 3.5rem);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    margin: 0;
    color: #fff;
    min-width: 9.375rem;
    padding: 0 1.5rem;
    background-color: var(--primary);
    border-radius: 0.25rem;
    display: inline-block;
    position: relative;
    z-index: 1;
    /* prevents padding from adding to the width */
    box-sizing: border-box;
  }
  #sbs-72 .cs-button-solid:before {
    content: "";
    position: absolute;
    height: 100%;
    width: 0%;
    background: #000;
    opacity: 1;
    top: 0;
    left: 0;
    z-index: -1;
    border-radius: 0.25rem;
    transition: width 0.3s;
  }
  #sbs-72 .cs-button-solid:hover:before {
    width: 100%;
  }
  #sbs-72 .cs-picture {
    width: 95%;
    max-width: 34.375rem;
    margin: 0;
    position: relative;
    display: block;
    /* width divided by height */
    aspect-ratio: 0.93134328;
    border-radius: 1rem;
    z-index: 1;
    box-shadow: var(--primary) 0px 0px 22px;
  }
  #sbs-72 .cs-picture:before {
    /* Top right box */
    content: "";
    width: 10rem;
    /* 202px - 248px */
    height: clamp(12.625rem, 25vw, 15.5rem);
    background: var(--primary);
    opacity: 1;
    border-radius: 1rem;
    position: absolute;
    display: block;
    /* 16px -20px */
    /* wrapped in a calc function to get a negative clamp value */
    top: calc(clamp(0.5rem, 2.09vw, 1.25rem) * -1);
    right: calc(clamp(0.5rem, 2.09vw, 1.25rem) * -1);
  }
  #sbs-72 .cs-picture:after {
    /* Bottom left box */
    content: "";
    width: 10rem;
    /* 202px - 248px */
    height: clamp(12.625rem, 25vw, 15.5rem);
    background: var(--primary);
    opacity: 1;
    border-radius: 1rem;
    position: absolute;
    display: block;
    /* 16px -20px */
    /* wrapped in a calc function to get a negative clamp value */
    bottom: calc(clamp(0.5rem, 2.09vw, 1.25rem) * -1);
    left: calc(clamp(0.5rem, 2.09vw, 1.25rem) * -1);
    z-index: -1;
  }
  #sbs-72 .cs-picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 1rem;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #sbs-72 .cs-container {
    max-width: 80rem;
    flex-direction: row;
    justify-content: flex-start;
    /* 60px - 128px */
    gap: clamp(3.75rem, 9.5vw, 8rem);
  }
  #sbs-72 .cs-picture {
    /* 328px - 502px */
    width: clamp(20.5rem, 37.5vw, 31.375rem);
    /* 440px - 520px */
    height: clamp(27.5rem, 40vw, 32.5rem);
    /* 16px - 20px */
    margin: 0 0 0 clamp(1rem, 5vw, 1.25rem);
    flex: none;
  }
  #sbs-72 .cs-content {
    width: 45%;
  }
}

/*-- -------------------------- -->
<---    Side By Side Reverse    -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #sbsr-2370 {
    padding: var(--sectionPadding);
    padding-bottom: 0;
    background-color: var(--secondaryLight);
    /* clips anything overflowing */
    overflow: hidden;
    position: relative;
    z-index: 1;
  }
  #sbsr-2370 .cs-container {
    width: 100%;
    /* changes to 1280px at desktop */
    max-width: 49rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
  }
  #sbsr-2370 .cs-wrapper {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #sbsr-2370 .cs-content {
    /* set text align to center if content needs to be centered */
    text-align: left;
    width: 100%;
    max-width: 43.375rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* left aligns content, set to center to align content horizontally */
    align-items: flex-start;
  }
  #sbsr-2370 .cs-header {
    /* 20px - 31px */
    font-size: clamp(1.25rem, 3vw, 1.9375rem);
    text-align: center;
    line-height: 1.2em;
    font-weight: 700;
    margin: 0 0 2rem 0;
    color: var(--headerColor);
  }
  #sbsr-2370 .cs-arrow {
    width: 9.625rem;
    height: auto;
    margin-bottom: 1.25rem;
    display: block;
  }
  #sbsr-2370 .cs-topper {
    text-align: center;
    margin: auto;
  }
  #sbsr-2370 .cs-title {
    text-align: center;
    max-width: 20ch;
    margin: auto;
    margin-bottom: 2rem;
    /* 48px - 64px */
    padding-bottom: clamp(2rem, 4vw, 3rem);
    position: relative;
    z-index: 1;
  }
  #sbsr-2370 .cs-title:before {
    content: "";
    width: 100vw;
    height: 1px;
    background: var(--accentDetail);
    opacity: 1;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
  }
  #sbsr-2370 .cs-text {
    margin-bottom: 0.5rem;
    text-align: left;
    color: var(--bodyTextColor);
    width: 100%;
    max-width: 43.375rem;
    font-size: 1rem;
    line-height: 1.5em;
    font-weight: 400;
  }
  #sbsr-2370 .cs-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
  }
  #sbsr-2370 .cs-link:hover {
    text-decoration: underline;
    text-decoration-color: var(--accentDetail);
    text-underline-offset: 0.5rem;
  }

  #sbsr-2370 .cs-image-group {
    /* scales the whole section down and ties the font size to the vw and stops at 75% of the vale of 1em, changes at desktop */
    font-size: min(2.8vw, 0.75rem);
    /* everything inside this box is in ems so we can scale it all down proportionally with a font size */
    width: 32.625em;
    height: auto;
    order: 2;
    position: relative;
    z-index: 1;
  }
  #sbsr-2370 .cs-picture {
    width: 100%;
    height: auto;
    display: block;
  }
  #sbsr-2370 .cs-picture img {
    width: 100%;
    height: auto;
    display: block;
  }
  #sbsr-2370 .cs-flower {
    width: 75em;
    height: auto;
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: -1;
    transform: translateX(-50%);
  }
}
@media only screen and (max-width: 430px) {
  #sbsr-2370 .cs-title {
    /* Scale down a bit more on very small screens */
    font-size: clamp(1.45rem, 7.5vw, var(--headerFontSize));
    /* Allow longer words/URLs to wrap instead of overflowing */
  }
  /* Ensure the decorative underline doesn't cause horizontal overflow */
  #sbsr-2370 .cs-title:before {
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
  }
}
/* Large Desktop - 1200px */
@media only screen and (min-width: 75rem) {
  #sbsr-2370 {
    padding: var(--sectionPadding);
    padding-bottom: 0;
  }
  #sbsr-2370 .cs-container {
    max-width: 80rem;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    z-index: 1;
  }
  #sbsr-2370 .cs-content {
    width: 50%;
    padding-bottom: clamp(3.75rem, 7.82vw, 6.25rem);
    align-items: flex-start;
  }
  #sbsr-2370 .cs-topper,
  #sbsr-2370 .cs-title {
    text-align: left;
    margin: 0;
  }
  #sbsr-2370 .cs-topper {
    margin-bottom: 0.25rem;
  }
  #sbsr-2370 .cs-title {
    margin-bottom: 2rem;
  }
  #sbsr-2370 .cs-image-group {
    /* set to inherit at Large Desktop */
    font-size: min(1.2vw, 1rem);
    height: auto;
    order: -1;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
  }
  #sbsr-2370 .cs-picture {
    height: 77%;
    width: auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    position: relative;
    z-index: 1;
  }
  #sbsr-2370 .cs-picture img {
    height: 100%;
    width: auto;
  }
  #sbsr-2370 .cs-flower {
    width: 80vw;
    max-width: 56.25rem;
  }
  #sbsr-2370 .cs-link {
    margin-bottom: 0rem;
  }
}
/* Tablet / mellanstor skärm – 1200px och neråt */
@media only screen and (max-width: 74.9375rem) {
  #sbsr-2370 .cs-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Gör att bilden flyttas upp ovanför texten */
  #sbsr-2370 .cs-image-group {
    order: -1; /* placera före cs-content */
    width: 100%;
    max-width: 32rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
  }

  /* Centrerar bilden och ger luft mot wrappern */
  #sbsr-2370 .cs-picture {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #sbsr-2370 .cs-picture img {
    width: 100%;
    height: auto;
    max-width: 400px;
  }

  /* Justera textdelen */
  #sbsr-2370 .cs-content {
    order: 2;
    text-align: left;
    align-items: flex-start;
  }
}

.cs-topper {
  /* 16px - 20px */
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.2em;
  text-transform: uppercase;
  text-align: inherit;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 1rem 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}
.cs-topper:before {
  /* decorative line */
  content: "";
  /* 16px - 32px */
  width: clamp(1rem, 3vw, 2rem);
  height: 2px;
  background: var(--accentDetail);
  opacity: 1;
  position: relative;
  display: block;
}

/*-- -------------------------- -->
<---            CTA             -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #cta-1693 {
    padding: var(--sectionPadding);
    background-color: var(--primary);
    position: relative;
    overflow: hidden;
  }
  #cta-1693 .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
  }
  #cta-1693 .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: center;
    gap: 1.5rem;
  }
  #cta-1693 .cs-title {
    max-width: 30ch;
    margin: 0;
    color: #fff;
    z-index: 1;
  }
  #cta-1693 .video-hallbarhet {
    height: 350px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    opacity: 0.4;
  }

  #cta-1693 .cs-button-solid {
    font-size: 1rem;
    font-weight: 700;
    /* 46px - 56px */
    line-height: clamp(2.875rem, 5.5vw, 3.5rem);
    text-align: center;
    text-decoration: none;
    min-width: 9.375rem;
    margin: 0;
    /* prevents padding from adding to the width */
    box-sizing: border-box;
    padding: 0 1.5rem;
    color: #fff;
    background-color: var(--secondary);
    display: inline-block;
    position: relative;
    z-index: 1;
  }
  #cta-1693 .cs-button-solid:before {
    content: "";
    width: 0%;
    height: 100%;
    background: #000;
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: width 0.3s;
  }
  #cta-1693 .cs-button-solid:hover:before {
    width: 100%;
  }
  #cta-1693 .cs-wrapper {
    width: 100%;
    max-width: 120rem;
    height: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    /* prevents the mouse from interacting with it */
    pointer-events: none;
    transform: translateX(-50%);
  }
  #cta-1693 .cs-graphic {
    width: 23.25rem;
    height: 23.25rem;
    opacity: 0.1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  #cta-1693 .cs-graphic-1 {
    left: -16.3125rem;
  }
  #cta-1693 .cs-graphic-2 {
    right: -16.3125rem;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #cta-1693 {
    margin-top: 4rem;
  }
  #cta-1693 .cs-content {
    text-align: left;
    flex-direction: row;
    justify-content: space-between;
  }
  #cta-1693 .cs-graphic-1 {
    left: -7.8125rem;
  }
  #cta-1693 .cs-graphic-2 {
    right: -7.8125rem;
  }
}

/* TEST NY SBS SEKTION */

/*-- -------------------------- -->
<---    Side By Side Reverse    -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #sbsr-69 {
    padding: var(--sectionPadding);
    background-color: var(--secondaryLight);
  }
  #sbsr-69 .cs-container {
    width: 100%;
    /* changes to 1280px at tablet */
    max-width: 34.375rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(3rem, 6vw, 4rem);
  }
  #sbsr-69 .cs-content {
    /* set text align to left if content needs to be left aligned */
    text-align: left;
    width: 100%;
    max-width: 33.875rem;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: flex-start;
  }

  #sbsr-69 .cs-text {
    margin-bottom: 1rem;
  }
  #sbsr-69 .cs-text:last-of-type {
    margin-bottom: 2rem;
  }
  #sbsr-69 .cs-button-solid {
    font-size: 1rem;
    /* 46px - 56px */
    line-height: clamp(2.875rem, 5.5vw, 3.5rem);
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    margin: 0;
    color: #fff;
    min-width: 9.375rem;
    padding: 0 1.5rem;
    background-color: var(--primary);
    border-radius: 0.25rem;
    display: inline-block;
    position: relative;
    z-index: 1;
    /* prevents padding from adding to the width */
    box-sizing: border-box;
  }
  #sbsr-69 .cs-button-solid:before {
    content: "";
    position: absolute;
    height: 100%;
    width: 0%;
    background: #000;
    opacity: 1;
    top: 0;
    left: 0;
    z-index: -1;
    border-radius: 0.25rem;
    transition: width 0.3s;
  }
  #sbsr-69 .cs-button-solid:hover:before {
    width: 100%;
  }
  #sbsr-69 .cs-picture {
    width: 95%;
    max-width: 34.375rem;
    margin: 0;
    position: relative;
    display: block;
    /* width divided by height */
    aspect-ratio: 0.93134328;
    border-radius: 1rem;
    z-index: 1;
    box-shadow: var(--primary) 0px 0px 22px;
  }
  #sbsr-69 .cs-picture:before {
    /* Top right box */
    content: "";
    width: 10rem;
    /* 202px - 248px */
    height: clamp(12.625rem, 25vw, 15.5rem);
    background: var(--primary);
    opacity: 1;
    border-radius: 1rem;
    position: absolute;
    display: block;
    /* 16px -20px */
    /* wrapped in a calc function to get a negative clamp value */
    top: calc(clamp(0.5rem, 2.09vw, 1.25rem) * -1);
    right: calc(clamp(0.5rem, 2.09vw, 1.25rem) * -1);
  }
  #sbsr-69 .cs-picture:after {
    /* Bottom left box */
    content: "";
    width: 10rem;
    /* 202px - 248px */
    height: clamp(12.625rem, 25vw, 15.5rem);
    background: var(--primary);
    opacity: 1;
    border-radius: 1rem;
    position: absolute;
    display: block;
    /* 16px -20px */
    /* wrapped in a calc function to get a negative clamp value */
    bottom: calc(clamp(0.5rem, 2.09vw, 1.25rem) * -1);
    left: calc(clamp(0.5rem, 2.09vw, 1.25rem) * -1);
    z-index: -1;
  }
  #sbsr-69 .cs-picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 1rem;

    object-position: right;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #sbsr-69 .cs-container {
    max-width: 80rem;
    flex-direction: row;
    justify-content: flex-end;
    /* 60px - 128px */
    gap: clamp(3.75rem, 9.5vw, 8rem);
  }
  #sbsr-69 .cs-picture {
    /* 328px - 502px */
    width: clamp(20.5rem, 37.5vw, 31.375rem);
    /* 440px - 520px */
    height: clamp(27.5rem, 40vw, 32.5rem);
    /* 16px - 20px */
    margin: 0 0 0 clamp(1rem, 5vw, 1.25rem);
    flex: none;
    /* sends it to the right in the 2nd position */
    order: 2;
  }
  #sbsr-69 .cs-content {
    width: 45%;
    margin: 0;
  }
}

#less-pad {
  margin-bottom: 0 !important;
}
