@font-face {
  font-family: 'trattatello';
  src: local('trattatello'),
       url('fonts/Trattatello/web/font/Trattatello.woff2') format('woff2');
}

@font-face {
  font-family: 'Spectral';
  src: local('Spectral'),
       url('fonts/Spectral/Spectral-Regular.ttf') format('ttf');
}

.coc-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 21000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow:
    0 0 20px #ffffff,
    0 0 20px #ffffff,
    0 0 20px #ffffff,
    0 0 20px #ffffff,
    0 0 20px #ffffff,
    0 0 20px #ffffff,
    0 0 20px #ffffff;
}

.coc-overlay[hidden] {
  display: none;
}

.coc-overlay-content {
  position: relative;
  min-height: 100vh;
  width: 100%;
}

.coc-overlay .back-arrow-wrap {
  display: none;
}

/* .coc-overlay .back-arrow {
  text-decoration: none;
  color: black;
  font-family: 'trattatello', sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  display: inline-block;
  transform: scaleX(0.7);
} */

.coc-overlay .form-button {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background-color: #ffffff;
  border: 1px solid #000000;
  border-radius: 60%;
  color: rgb(0, 0, 0);
  text-decoration: none;
  cursor: pointer;
  font-family: 'trattatello', sans-serif;
  letter-spacing: 0.06em;
}

.coc-overlay .coc-overlay-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  font-size: clamp(1.2rem, 1.3vw, 1.5rem);
  cursor: pointer;
}

.coc-overlay .coc-overlay-ok {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-weight: normal;
  font-size: clamp(0.9rem, 0.95vw, 1.1rem);
  font-family: 'trattatello', sans-serif;
  display: inline-block;
  background-color: #000000;
  margin: 3% 0 5% 0;
  padding: 0.2rem 0.4rem;
  border: 1px solid black;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s background-color;
}

.coc-overlay .coc-overlay-ok:hover {
  color: #000000;
  border: 1px solid #000000;
  background-color: #f2f2f2;
  box-shadow: 0 0 10px #e1e1e1;
}

.coc-overlay .max-width {
  max-width: none;
}

/* =========================
   DESKTOP
========================= */
@media (min-width: 769px) {
  .coc-overlay {
    position: fixed;
    inset: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .coc-overlay-content {
    position: relative;
    min-height: 100vh;
    width: 100%;
    padding: 0;
    background: transparent;
    max-width: none;
    max-height: none;
    overflow: visible;
  }

  .coc-overlay .linksrechts-container {
    position: fixed;
    top: calc(12vh + 1vh);
    left: 0;
    right: 0;
    bottom: 0;
    height: 87vh;

    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;

    z-index: 2000;
    padding: 0 6vw;
    box-sizing: border-box;
  }

  .coc-overlay .plinks {
    flex: 0 0 22%;
    margin: 0;
    overflow: hidden;
    font-family: 'Spectral', serif;
    font-size: clamp(0.9rem, 0.95vw, 1.1rem);
    line-height: 1.5;
    position: relative;
  }

  .coc-overlay .rechts {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 780px;
    height: 100%;
    margin: 0;
    margin-top: 0.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: 'Spectral', serif;
    color: black;
    line-height: 1.5;
    font-size: clamp(0.95rem, 1vw, 1.15rem);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .coc-overlay .rechts::-webkit-scrollbar {
    display: none;
  }

  .coc-overlay .back-arrow-wrap {
    display: none;
  }
}

/* =========================
   TABLET / ZWISCHENGRÖSSE
========================= */
@media (max-width: 1400px) and (min-width: 769px) {
  .coc-overlay .back-arrow-wrap {
    display: block;
    position: fixed;
    top: calc(12vh - 0.5rem);
    left: 6vw;
    z-index: 30000;
    width: auto;
    margin: 0;
    outline: 1px solid blue;
  }

  .coc-overlay .linksrechts-container {
    position: fixed;
    top: calc(12vh + 1vh);
    left: 0;
    right: 0;
    bottom: 0;
    height: 87vh;

    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;

    padding: 0 6vw;
    box-sizing: border-box;
  }

  .coc-overlay .plinks {
    flex: 0 0 23%;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
  }

  .coc-overlay .rechts {
    flex: 1 1 auto;
    max-width: 780px;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 0;
  }

  .coc-overlay .form-button {
    display: none;
  }

  .coc-overlay .plinks,
  .coc-overlay .rechts {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .coc-overlay .plinks::-webkit-scrollbar,
  .coc-overlay .rechts::-webkit-scrollbar {
    display: none;
  }


}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .coc-overlay {
    position: fixed;
    inset: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .coc-overlay-content {
    min-height: 100vh;
    width: 100%;
    padding: 0;
    background: transparent;
    max-width: none;
    max-height: none;
    overflow: visible;
  }

  .coc-overlay .linksrechts-container {
    width: 80vw;
    margin: 12vh auto 0 auto;
    padding: 20px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .coc-overlay .plinks {
    order: 1;
    width: 100%;
    max-width: 100%;
    line-height: 1.6;
    margin: 14vh 0 120px 0;
    max-height: none;
    overflow: visible;
    font-size: 1rem;
    font-family: 'Spectral', serif;
  }

  .coc-overlay .rechts {
    order: 2;
    width: 100%;
    max-width: 100%;
    line-height: 1.6;
    margin-bottom: 120px;
    padding-bottom: 50px;
    overflow: visible;
    font-family: 'Spectral', serif;
  }

  .coc-overlay .form-button {
    position: fixed;
    bottom: 3vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30000;
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background-color: #ffffff;
    border: 1px solid #000000;
    border-radius: 60%;
    color: rgb(0, 0, 0);
    text-decoration: none;
    cursor: pointer;
    font-family: 'trattatello', sans-serif;
    letter-spacing: 0.06em;
    font-size: 14px;
  }

  .coc-overlay,
  .coc-overlay .rechts,
  .coc-overlay .plinks {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .coc-overlay::-webkit-scrollbar,
  .coc-overlay .rechts::-webkit-scrollbar,
  .coc-overlay .plinks::-webkit-scrollbar {
    display: none;
  }

  .coc-overlay .back-arrow-wrap,
  .coc-overlay .coc-overlay-close {
    display: none !important;
  }

  .coc-overlay .form-button {
    display: inline-block !important;
  }

}

