/* FONTS */
div[role="main"].container-fluid .richtext h1 {
  font-size: 46px;
  line-height: 120%;
  font-weight: 900;
  font-family: Guardian;
  color: #00175A;
}

div[role="main"].container-fluid .richtext h2 {
  font-size: 40px;
  line-height: 120%;
  font-weight: 900;
  font-family: Guardian;
  color: #00175A;
}

div[role="main"].container-fluid .richtext h3 {
  font-size: 34px;
  line-height: 120%;
  font-weight: 500;
  font-family: BentonSans;
}

div[role="main"].container-fluid .richtext h3.small {
  font-size: 24px;
  line-height: 120%;
  font-weight: 500;
  font-family: BentonSans;
}

/* BODY TEXT */
div[role="main"].container-fluid .richtext p {
  font-size: 16px;
  line-height: 150%;
}

/* MAIN CONTAINER */
div[role="main"].container-fluid.pad-0-lr .tab-content.pad-responsive-lr {
  padding: 0 !important;
}

/* NO PADDING */
.vd--grid-no-padding .container {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

/* SECTION PADDING */
.vd--grid-padding-all {
  padding-top: 5rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.vd--grid-above {
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.vd--grid-liquidity-above {
  padding-top: 8rem;
  padding-bottom: 2rem;
}

.vd--grid-liquidity-button {
  padding-top: 2rem;
  padding-bottom: 8rem;
}

.vd--grid-legal {
  padding-top: 2rem;
  padding-bottom: 2rem;
}


/* HORIZONTAL ALIGN */
.vd--horizontal-align .row {
  flex-wrap: wrap;
  align-items: center;
}

.vd--standard-align .row {
  flex-wrap: initial;
  align-items: initial;
}

/* TAB MENU */
.container-fluid.pad-0-lr .tab-menu {
  background-color: #ECEDEE;
  display: flex;
  width: 100%;
}

.container-fluid.pad-0-lr .tab-menu .tab-link {
  flex: 1;
  text-align: center;
    white-space: initial; /*Add white-space to tab-link*/
}

.container-fluid.pad-0-lr .tab-menu .tab-link span {
  font-weight: bold;
  display: inline-block;
  /*Remove white space*/
}

.container-fluid.pad-0-lr .tab-menu .tab-link[aria-selected="true"] {
  background-color: #00175A;
  color: white;
  position: relative;
  border: none;
}

/* CARDS SLIDER */
.vd--cards-slider {
  display: block;
  width: 100%;
}

.container-fluid.pad-0-lr .vd--cards-slider .container {
    width: 100%;
}

section .vd--cards-slider > .container > .row > .col-md-12 {
  overflow-x: auto;
}

/* Center by default */
section .vd--cards-slider > .container > .row > .col-md-12 > div{
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    justify-content: center;
    padding: 0 var(--grid-padding);
}

section .vd--cards-slider > .container > .row > .col-md-12.overflowing > div{
    justify-content: flex-start;
}

.container-fluid.pad-0-lr .vd--cards-slider .container .row .col-md-12 > div::-webkit-scrollbar {
  display: none;
}

.container-fluid.pad-0-lr .vd--card-wrapper {
  scroll-snap-align: start;
}

.vd--card-wrapper {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 360px;
  max-width: 360px;
  padding-bottom: 2rem;
}

.vd--card-wrapper > div {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.vd--card-wrapper > div > .row {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.vd--card-wrapper > div > .row > .col-md-12  {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.vd--card-wrapper > div > .row > .col-md-12  > div {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.vd--card-wrapper > div > .row > .col-md-12  > div > div:has(section > .vd--card) {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.vd--card-wrapper > div > .row > .col-md-12  > div > div:has(section > .vd--card) > section {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.vd--cards-slider .container {
  width: 100%;
  padding: 0;
  max-width: 100%;
}

.vd--cards-slider .row {
  margin: 0;
}

.vd--card {
  padding: 1.5rem 1rem;
  height: 100%;
}

.vd--card-callout {
  display: inline-block;
  height: 32px;
  align-content: center;
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  z-index: 10;
  padding: 4px;
}

/* STICKY NAV */
.vd--sticky-nav .col-md-12 > div {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.vd--sticky-nav a.link-underlined.text-link.linkout {
  text-decoration: none;
}

.vd--sticky-nav a.link-underlined.text-link.linkout:hover,
.vd--sticky-nav a.link-underlined.text-link.linkout:focus {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .vd--sticky-nav .col-md-12 > div {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    gap: 2rem;
  }

  .vd--sticky-nav .col-md-12 {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

.vd--sticky-nav a.link-underlined.text-link.linkout {
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
}

.vd--sticky-nav a.link-underlined.text-link.linkout:hover,
.vd--sticky-nav a.link-underlined.text-link.linkout:focus {
  text-decoration: underline;
}

/* HORIZONTAL GRID */
.vd--grid-horizontal .col-md-12 > div {
  display: flex;
  justify-content: space-between;
  padding-top: 4rem;
}

.vd--grid-horizontal .vd--icon {
  width: 32px;
  height: 32px;
}

/* BUTTON GRID */
.vd--button-grid .col-md-6 {
  flex: 0 1 auto;
}

.vd--button-grid .col-md-12.margin-0-tb > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.vd--button-grid .button .btn {
  min-width: 230px;
}

@media (max-width: 768px) {
  .vd--button-grid .col-md-12.margin-0-tb > div {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding-top: 1rem;
  }

  .vd--button-grid .button .btn {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    max-width: 100% !important;
  }
  
  .vd--grid-horizontal .col-md-12 > div {
    padding-top: 1rem;
  }
}

/* ICON LIST */
section .vd--icon-list > .container > .row > .col-md-12 > div {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-top: initial;
}

.vd--icon-list .container {
  padding-left: 0;
  padding-right: 0;
}

.vd--icon {
  height: 40px;
  width: 40px
}

/* ROUNDED CORNERS */
.vd--round-corners > div {
  border-radius: 12px;
}

/* STEPS */
.vd--steps .row {
  gap: 2rem;
  justify-content: space-between;

}

.vd--steps .col-md-4 {
  flex: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.vd--steps .pad-3-t.pad-3-b.pad-2-l.pad-2-r {
  width: 100%;
  margin: 0 auto;
}

.vd--steps-icon-list .container {
  width: 100%;
}

.vd--stroke {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* WHAT DOES AN UPGREADE MEAN */
.vd--what-changes .row {
  gap: 4rem;
  justify-content: space-between;
}

.vd--what-changes .col-md-6 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vd--what-changes  .vd--icon-list .col-md-12 > div {
    gap: 2rem !important;
  padding-bottom: 1rem;
}

/* CARD TABLE */
.vd--card-image-top {
  position: relative;
  top: 3rem;
  z-index: 2
}

.vd--card-image-top img {
width: 170px;
}

.vd--card-comparison-wrapper {
  flex: 0 0 auto;
  min-width: 386px;
  max-width: 386px;
  margin-top: -3rem;
}

.vd--card-comparison-column {
  padding-top: 1.5rem;
}

/* MAX WIDTH GRID */
.vd--grid-max-width {
  max-width: 820px;
  margin: 0 auto;
}

/* LIQUIDITY IMAGE */
.vd--liquidity-plus {
  min-width: 800px;
  align-items: center;
}

/* CROSS SELL CARD */
.vd--grid-cross-sell {
  max-width: 1000px;
  margin: 0 auto;
}

section .vd--cross-sell-card > .container > .row > .col-md-12 > div {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.vd--cross-sell-card-image-wrapper .container {
  padding: 0;
  margin: 0;
  width: 390px;
}

.vd--cross-sell-card-image-wrapper img {
  padding: 0;
  margin: 0;
}

@media (max-width: 768px) {

/* FONTS */
div[role="main"].container-fluid .richtext h1 {
  font-size: 30px;
}

div[role="main"].container-fluid .richtext h2 {
  font-size: 28px;
}

div[role="main"].container-fluid .richtext h3 {
  font-size: 24px;
}

div[role="main"].container-fluid .richtext h3.small {
  font-size: 22px;
}

/* SECTION PADDING */
.vd--grid-padding-all {
  padding: 2.5rem 1rem;
}

.vd--grid-above {
  padding: 2rem 1rem;
}

.vd--grid-legal {
  padding: 2rem 1rem;
}

section .vd--cards-slider > .container > .row > .col-md-12 > div{
    gap: 1rem;
}
  
  .vd--card-wrapper {
    display: flex;
  min-width: 320px;
  max-width: 320px;
  padding-bottom: 2rem;
}

  .vd--card-comparison-wrapper {
  display: flex;
  min-width: 340px;
  max-width: 340px;
  margin-top: -3rem;
}

  .vd--grid-padding-all .row {
    gap: 2rem;
  }

  .vd--grid-horizontal .col-md-12 > div {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
  }

  .vd--icon-list .col-md-12 > div {
    display: flex;
    gap: 1rem;
    padding-top: 0;
  }

  .vd--steps .row {
    flex-direction: column;
    gap: 4rem;
  }

  .vd--steps .col-md-4 {
    width: 100%;
  }

  .vd--grid-liquidity-mobile {
    padding: 0 4rem;
  }

  /* CROSS SELL CARD */
  .vd--grid-cross-sell {
    max-width: 1000px;
    margin: 0 auto;
  }

  .vd--cross-sell-card .col-md-12 > div {
    flex-direction: column;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    gap: 2rem;
  }

  .vd--cross-sell-card-text .col-md-12 > div {
    gap: 0;
  }

  .vd--cross-sell-card-image-wrapper .container {
    width: 100%;
  }
}


/***** UPGRADE CHANGES MODULE *****/
/*--------------------------------*/

.vd--what-changes .row {
  gap: 4rem;
  justify-content: space-between;
}

.vd--what-changes .col-md-6 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vd--what-changes  .vd--icon-list .col-md-12 > div {
    gap: 2rem !important;
  padding-bottom: 1rem;
}


/* All styles below are scoped to .tabs.border within .vd--tabs-wrapper only */
.vd--tabs-wrapper {
  /* Tabs on the left. */
  position: relative;
  z-index: 2;
  margin-right: clamp(-220px, -10vw, -710px);
  flex: 1;
}

.vd--tabs-wrapper .tabs.border {
  border: none;
}

.vd--tabs-wrapper .tabs.border .tab-menu {
  background-color: #ECEDEE;
  display: flex;
  width: 100%;
  border-radius: 12px 12px 0 0;
}

.vd--tabs-wrapper .tabs.border .tab-menu .tab-link  {
  padding: 1.5rem 1.25rem !important;
}

.vd--tabs-wrapper .tabs.border .tab-menu .tab-link {
  flex: 1;
  text-align: center;
  white-space: initial; /*Add white-space to tab-link*/
  position: relative;
  z-index: 1;
  min-width: 0; /* Verhindert, dass flex-items Ã¼ber die Container-Breite hinausgehen */
  background-color: #F4F4F4;
  border: 0.5px solid #E0E0E0;
  box-shadow: 0 4px 4px rgba(0,0,0,0.1);
  outline: none;
  justify-content: center;
}

.vd--tabs-wrapper .tabs.border .tab-menu .tab-link span {
  font-weight: bold;
  display: inline-block;
}

.vd--tabs-wrapper .tabs.border .tab-menu .tab-link[aria-selected="true"] {
  background-color: #00175A;
  border: 0.5px solid #E0E0E0;
  color: white;
  position: relative;
  border-color: #00175A;
  box-shadow: 0 4px 4px rgba(0,0,0,0.2);
  outline: none;
  z-index: 10; /* Aktiver Button liegt oben */
}

.vd--tabs-wrapper .tabs.border .tab-menu .tab-link:not([aria-selected="true"]):hover {
  background-color: #EDEDED;
}

.vd--tabs-wrapper .tabs.border .tab-menu .tab-link[aria-selected="true"]::after {
  content: none; /* entfernt das Pseudoelement komplett */
}

.vd--tabs-wrapper .tabs.border .tab-link.pad-responsive-lr:nth-of-type(1) {
  margin-right: -15px;
  border-radius: 12px;
}

.vd--tabs-wrapper .tabs.border .tab-link.pad-responsive-lr:nth-of-type(1)[aria-selected="true"] {
  margin-left: 0px;
}

.vd--tabs-wrapper .tabs.border .tab-link.pad-responsive-lr:nth-of-type(2) {
  margin-left: 0px;
  border-radius: 12px;
}

.vd--tabs-wrapper .tabs.border .tab-link.pad-responsive-lr:nth-of-type(2) [aria-selected="true"] {
  margin-right: 0px;
}

.vd--tabs-wrapper .tabs.border .tab-menu .tab-link:focus {
  outline: none !important;
}

/* Adjusts styles of tabs and associated content. */
.vd--tabs-wrapper .upgrade-tab-module {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* Wrapper als Grid innerhalb des Containers */
.vd--overlap-wrapper > .container > .row > .col-md-12.margin-0-tb > div:has(.grid) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Padding set to override component defaults */
.vd--tabs-wrapper .tab-content > div {
  padding: 32px 40px 20px 40px !important;
}

.vd--tabs-wrapper .tab-content {
border-radius: 0 0 12px 12px;
}

.vd--tabs-wrapper .tabs.border .tab-content .vd--icon-list {
  margin-bottom: 1.5rem !important; 
}

.vd--tabs-wrapper .tabs.border .tab-content .vd--icon-list .richtext.parbase {
  width: 570px !important;
}

.vd--tabs-wrapper .tabs.border .tab-content .vd--two-buttons > .container > .row {
  padding-top: 11px !important;
}

.vd--tabs-wrapper .tabs.border .tab-content .vd--two-buttons > .container > .row > .col-md-12.margin-0-tb > div {
  justify-content: flex-start !important;
}

/* Make all cards equal height within active tab */
.col-md-12.margin-0-tb.overflowing > div > div {
  display: flex;
}

.col-md-12.margin-0-tb.overflowing > div > div > section {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.image.parbase:has(.vd--overlap-image) {
  display: flex;
  justify-content: flex-end;
}

.vd--overlap-image  {
  width: 90%;
}



@media (max-width: 768px) {
  /* TAB STYLES - MOBILE */
  .vd--tabs-wrapper {
    margin-right: 0;
    flex: none;
    width: 100%;
  }

  .vd--tabs-wrapper .tabs.border .tab-menu {
    border-radius: 12px 12px 12px 12px !important;
    flex-wrap: wrap;
  }

  .vd--tabs-wrapper .tabs.border .tab-menu .tab-link {
    padding: 1rem 0.75rem !important;
    font-size: 14px;
    min-width: auto;
  }

  .vd--tabs-wrapper .tabs.border .tab-link.pad-responsive-lr:nth-of-type(1) {
    margin-right: 0;
    border-radius: 12px 12px 0 0 !important;
  }

  .vd--tabs-wrapper .tabs.border .tab-link.pad-responsive-lr:nth-of-type(2) {
    margin-left: 0;
    border-radius: 0 0 12px 12px !important;
  }

  .vd--tabs-wrapper .tab-content > div {
    padding: 24px 20px 20px 20px !important;
  }

  .vd--tabs-wrapper .tab-content {
    border-radius: 0 0 12px 12px;
  }

  .vd--tabs-wrapper .tabs.border .tab-content .vd--icon-list .richtext.parbase {
    width: 100% !important;
    max-width: 100%;
  }

  .vd--tabs-wrapper .tabs.border .tab-content .vd--two-buttons > .container > .row {
    padding-top: 16px !important;
  }

  .vd--overlap-wrapper > .container > .row > .col-md-12.margin-0-tb > div:has(.grid) {
    flex-direction: column;
    gap: 2rem;
  }

  .vd--tabs-wrapper {
    order: 2;
  }

  .vd--overlap-wrapper .image.parbase,
  .vd--overlap-wrapper .vd--overlap-image {
    order: -1;
  }

  .vd--tabs-wrapper .vd--overlap-image {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 2rem;
    order: -1;
  }

  .vd--overlap-image  {
    width: 100%;
    height: auto;
  }
}


/* QUESTIONS BUTTON / OVERLAY */
.vd--questions-wrapper {
  position: fixed !important;
  z-index: 29;
  bottom: 2.5rem;
  width: 100%;
  padding: 0 2.5rem !important;
  pointer-events: none;
}

@media (max-width: 768px) {
  .vd--questions-wrapper {
    bottom: 1rem;
  }
}

.vd--questions-wrapper > .container {
  padding-right: 0 !important;
  padding-left: 0 !important;
  margin-right: 0 !important;
}

.vd--questions-wrapper > .container > .row > .col-md-12.margin-0-tb > div {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.vd--questions-wrapper > .container > .row > .col-md-12.margin-0-tb > div > .grid {
  position: absolute;
  bottom: 48px;
  right: 1rem;
  z-index: -1;
}

.vd--questions-button {
  width: 112px;
  pointer-events: auto;
  cursor: pointer;
  transition: scale 0.25s ease-in-out;
}

.vd--questions-button-phone {
  visibility: hidden;
  width: 0;
}

.vd--questions-button:hover {
  scale: 1.45;
}

/* Questions overlay and popup visibility */
.vd--questions-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 28;
}

.vd--questions-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.vd--questions-button.is-active {
  scale: 1.45;
}

/* swap button visuals when questions are open */
.vd--questions-wrapper.questions-open .vd--questions-button {
  visibility: hidden;
  width: 0;
}

.vd--questions-wrapper.questions-open .vd--questions-button-phone {
  visibility: visible;
  width: 112px;
  scale: 1.45;
}

/* fade-in grid content when active */
.vd--questions-wrapper > .container > .row > .col-md-12.margin-0-tb > div > .grid {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-in-out;
}

.vd--questions-wrapper > .container > .row > .col-md-12.margin-0-tb > div > .grid.is-open {
  opacity: 1;
  pointer-events: auto;
}

.vd--questions-popup .container {
  width: 310px;
  padding: 18px 16px;
  background-color: #fff;
  border-radius: 8px;
}

.vd--questions-popup .container > .row > .col-md-12.margin-0-tb > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vd--questions-popup .container > .row > .col-md-12.margin-0-tb > div >  .richtext.parbase:nth-child(2) p {
  padding-right: 6px;
}

.vd--questions-popup p {
  line-height: 1.25 !important;
}

body.vd--no-scroll {
  overflow: hidden;
}

/* HERO SECTION */
section .vd--hero > .container > .row > .col-md-12 > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

section .vd--hero > .container > .row > .col-md-12 > div > .grid {
  flex: 1 1 0;
  min-width: 0;
}

section .vd--hero > .container > .row > .col-md-12 > div > .grid:last-of-type {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vd--hero-headline .container > .row > .col-md-12 > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vd--hero-image-mobile {
  display: none;
}

.vd--hero-right .image.parbase img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  section .vd--hero > .container > .row > .col-md-12 > div {
    flex-direction: column;
    gap: 1.5rem;
  }

  .vd--hero p,
  .vd--hero h1 {
    text-align: center;
  }

  .vd--hero-card-image-mobile img {
    max-width: 45% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto 1rem;
  }

  /* Mobile hero image */
  .vd--hero-image-mobile img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto 1rem;
  }

  .vd--hero-image-mobile {
    display: block;
  }

  .vd--hero-right {
    display: none;
  }
}

/* ICON LIST IN HERO WRAPPER – DESKTOP DEFAULT */
section:has(.vd--hero-wrapper) .vd--icon-list > .container > .row > .col-md-12 > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  max-width: 166px;
}

@media (max-width: 768px) {
  section:has(.vd--hero-wrapper) .vd--icon-list > .container > .row > .col-md-12 > div {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 12px;           
    max-width: 100%;
    width: 100%;
    margin-bottom: 12px; 
  }
}