/*
Theme Name: ECOnGOOD Forum
Template: changedrive
Description: Child Theme for ECOnGOOD Forum
Author: Dominic Hostettler
Author URI: https://dominic-hostettler.ch
Version: 1.0
License: Â©Dominic Hostettler
License URI: https://dominic-hostettler.ch
*/


/* ROOT */
@font-face {
    font-family: 'AvenirNextLTPro-Demi';
    src: url('assets/fonts/custom/AvenirNextLTPro-Demi.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* BODY */

body, input, textarea {
    font-size: 18px;
    font-size: clamp(18px * 0.85, 18px - (1200px - 100vw) * 18 * 0.0002, 18px);
    line-height: 1.2;
}

::selection {
  background-color: var(--c1-80);
}

/*
h1 {
  font-size: 56px;
  font-size: calc(56px * var(--font-heading-scale, 1));
  font-size: clamp( calc((3/5) * 50px * var(--font-heading-scale, 1)), calc((6/5) * 56px - (1920px - 100vw) * 0.03) * var(--font-heading-scale, 1), calc(50px * var(--font-heading-scale, 1)) );
  -moz-hyphens: manual;
  hyphens: manual;
}

.entry h2 {
  font-size: 31px;
  font-size: calc(31px * var(--font-heading-scale, 1));
  font-size: clamp( calc((3/5) * 31px * var(--font-heading-scale, 1)), calc((6/5) * 31px - (1920px - 100vw) * 0.013) * var(--font-heading-scale, 1), calc(31px * var(--font-heading-scale, 1)) );
}
  */

sup {
  font-size: 60%;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img {
  position: relative;
}

strong, b {
  font-family: 'AvenirNextLTPro-Demi', var(--font-body), sans-serif;
}

.cd-normal {
  font-family: 'AvenirNextLTPro-Demi', var(--font-body), sans-serif;
  color: inherit;
}

.cd-highlight {
  background-image: linear-gradient(to right, hsla(72.7, 45.2%, 42.9%, 0.3), hsla(184.9, 100%, 31%, 0.3));
  background-color: unset;
  display: inline-block;
  padding: .2em .3em;
  margin: .1em 0;
}

.wp-block-button a, .button, input[type="submit"] {
  background-color: var(--c2-100);
  padding: .6em 1em;
}

.wp-block-button a:hover, .button:hover, input[type="submit"]:hover {
  background-color: var(--c2-80);
}

.wp-block-table td, .wp-block-table th {
  border-left: unset;
  border-right: unset;
  border-color: var(--c0-20);
  padding: 10px;
  font-size: 18px;
}

.wp-block-table thead {
  border-bottom: unset;
}

.wp-block-table thead th {
  border-top: unset;
}

.wp-block-table thead strong {
  font-size: 24px;
  font-family: var(--font-heading);
  color: var(--c1-120);
}

/* Custom Classes */

.gradient {
  background-image: url('/wp-content/themes/econgood-forum/assets/images/EnG-gradient-04.jpg');
  background-size: cover;
  background-position: center 40%;
  position: relative;
  isolation: isolate;
}

.negative .border {
  border: 1px solid var(--text-color);
}

.negative p a {
  color: var(--text-color);
}

.negative .wp-block-button a, .negative input[type="submit"] {
  background-color: var(--c2-100);
}

.negative .wp-block-button a:hover, .negative input[type="submit"]:hover {
  background-color: var(--c2-80);
}

.button-big {
  gap: 24px;
}

.button-big .wp-block-button {
  font-size: 30px;
}


@media (min-width: 1100px) {
  .big-box {
    padding: 60px;
    padding-right: 60px;
    padding-left: 60px;
  }
}

/* Blob */


.blob {
  position: relative;
  isolation: isolate;
  width: 400px;
  max-width: 115%;
  aspect-ratio: 1/1;
  padding: 48px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  left: 50%;
  transform: translateX(-50%);
}

.blob::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--c2-100);
  background-image: url('/wp-content/themes/econgood-forum/assets/images/EnG-gradient-04.jpg');
  background-size: auto;
  background-position: 0% 0%;
  -webkit-mask: url('/wp-content/themes/econgood-forum/assets/images/EnG-blob-white.svg') center/contain no-repeat;
          mask: url('/wp-content/themes/econgood-forum/assets/images/EnG-blob-white.svg') center/contain no-repeat;
}

.blob > * {
  position: relative;
  z-index: 1;
}

.blob > .has-medium-font-size {
  font-size: clamp(22px * 0.85, 22px - (1200px - 100vw) * 22 * 0.0002, 22px) !important;
}

/* L - XL */
@media (min-width: 782px) {
  .blob {
    margin-top: -80px;
    margin-bottom: -60px;
  }
}


/* 0 - M */
@media (max-width: 781px) {
  .blob {
    margin-bottom: -60px;
    max-width: 165%;
  }
}

/* Sticker */

.wp-block-group.sticker {
  position: relative;
  isolation: isolate;
}

.wp-block-group.sticker::before {
  content: '';
  position: absolute;
  inset: -12% -8%;
  background: url('/wp-content/themes/econgood-forum/assets/images/EnG-blob-white.svg') no-repeat center / 100% 100%;
  z-index: -1;
}

/* Two Column Blog */

/* XL */
@media (min-width: 1100px) {
  .two-column-blog .blog {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 45px;
  }
    .two-column-blog .blog {
        grid-template-columns: repeat(2, 1fr);
    }
}



/* HEADER */

.site-header {
  box-shadow: var(--shadow-medium);
}

/* Main menu */

.main-menu .sub-menu {
    max-width: none;
}

/* XL */
@media (min-width: 1100px) {
    
  .main-menu .sub-menu {
    box-shadow: var(--shadow-small);
  }

  .main-menu > .menu-item > a, .main-menu > .menu-item > .sub-menu a {
    padding: 12px 16px 11px;
  }
}

/* 0 - L */
@media (max-width: 1099px) {
  .menu-wrapper {
      box-shadow: var(--shadow-small);
  }

  .burger .line {
    background-color: var(--c1-100);
  }

}


/* Speaker Blog */

.speaker.side-image-blog .blog-item {
  background-color: #fff;
  border-width: 4px 0 0 0;
  border-style: solid;
  border-image: linear-gradient(to right, var(--c2-80), var(--c1-80)) 1;
}

.speaker .blog-thumbnail-wrapper .thumbnail {
  aspect-ratio: 1/1;
  max-width: 160px;
  border-radius: 50%;
}

/* XL */
@media (min-width: 1100px) {
  .speaker.side-image-blog .blog-item {
    margin: 0;
  }
}

/* M -XL */
@media (min-width: 600px) {
  .speaker.side-image-blog .blog-item {
    grid-template-columns: 20% 1fr;
    align-items: center;
    gap: 30px;
  }

  .speaker .blog-thumbnail-wrapper .thumbnail {
    margin: auto;
  }
}

/* 0 - S */
@media (max-width: 599px) {
    .speaker .blog-thumbnail-wrapper {
      margin: 0 0 20px 0;
    }
}

.speaker.side-image-blog .blog-item.weitere-folgen {
  pointer-events: none;
  border: dashed 2px var(--c0-7);
  background: var(--c0-2);
}

/* Full Width w. Title */

article.has-thumbnail .title-container {
  min-height: var(--thumb-height, 200px);
  background-size: cover;
  background-position: center var(--thumb-percent, 40%);
  display: flex;
  align-items: center;
}

/* Speaker Post */

.single-speaker .thumbnail img {
  width: 270px;
  max-width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

.single-speaker .content-container {
  padding: 0 0 30px;
}

.single-speaker .profil {
  font-size: 18px;
}

.single-speaker .cpt-name {
  font-size: 20px;
}

.single-speaker .website-icon {
  line-height: 1.3;
  color: var(--c2-100);
}

.single-speaker article {
  background-color: var(--grey-bg);
}

.single-speaker .main {
  background-color: #fff;
  padding: 45px;
  border-width: 6px 0 0 0;
  border-style: solid;
  border-image: linear-gradient(to right, var(--c2-80), var(--c1-80)) 1;
}

/* L + XL */
@media (min-width: 782px) {
    
  .goback.wp-block-button {
    margin: 0 0 15px;
    text-align: right;
  }

  .single-speaker .main {
      width: 80%;
  }

  .single-speaker .sidebar {
      width: 20%;
  }
}



/* Sponsor Blog */

.sponsor.blog .blog-item {
  text-align: center;
  background-color: #fff;
}

.sponsor.blog .blog-item:hover {
  opacity: .8;
  transition: none;
}

.sponsor.blog .blog-item .thumbnail {
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 5/2;
}

.sponsor.blog .blog-item .blog-thumbnail-wrapper {
  padding: 40px 30px;
}

.sponsor.blog .blog-item .blog-thumbnail-wrapper .thumbnail img {
  object-fit: contain;
}

.sponsor-website-wrapper {
  width: 100%;
  background-color: var(--c0-2);
  padding: 15px 20px;
}

.sponsor-website-wrapper .sponsor-website {
  color: var(--text-color);
}



/* FOOTER */

.page-template-page-no-header-no-footer .footer-menu li {
    margin: auto;
}

footer {
  background-image: url('/wp-content/themes/econgood-forum/assets/images/EnG-gradient-04.jpg');
  background-size: cover;
  background-position: center 40%;
  font-size: 16px;
}

footer .footer-menu-bar {
  background-color: var(--c0-7);
}

footer #footer-menu {
  display: flex;
  justify-content: center;
  font-size: 14px;
}



/* COUNTDOWN */

.econgood-countdown {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-family: var(--font-body, sans-serif);
}
.cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cd-digit {
    --cd-w: 100px;
    --cd-h: 70px;
    --cd-fs: 42px;
    position: relative;
    width: var(--cd-w);
    height: var(--cd-h);
    background: #fff;
    color: var(--c1-120);
    font-size: var(--cd-fs);
    text-align: center;
    border-radius: 6px;
    overflow: hidden;
    perspective: 1500px;
}
.cd-digit span {
    color: var(--c1-120);
}
.cd-up, .cd-down {
    position: absolute;
    left: 0;
    right: 0;
    height: 50%;
    overflow: hidden;
    text-align: center;
    backface-visibility: hidden;
    background: #fff;
}
.cd-up {
    top: 0;
    bottom: 50%;
    transform-origin: 50% 100%;
}
.cd-down {
    top: 50%;
    bottom: 0;
    line-height: 0;
    transform-origin: 50% 0%;
}
.cd-up-val, .cd-down-val {
    position: absolute;
    left: 0;
    width: 100%;
    line-height: var(--cd-h);
}
.cd-up-val { top: 0; }
.cd-down-val { bottom: 0; }
.cd-up-static { z-index: 3; }
.cd-down-static { z-index: 1; }
.cd-up-anim { z-index: 0; }
.cd-down-anim { z-index: 2; transform: rotateX(-180deg); }
@keyframes cd-flap-shade {
    0% { background: #fff; }
    49% { background: #f2f2f2; }
    50% { background: #fff; }
    100% { background: #fff; }
}

.cd-up-anim.flipping,
.cd-down-anim.flipping {
    will-change: transform;
    transition: transform 0.6s ease-in-out;
    animation: cd-flap-shade 0.6s ease-in-out;
}
.cd-up-anim.flipping {
    z-index: 4;
    transform: rotateX(180deg);
}
.cd-down-anim.flipping {
    transform: rotateX(0);
}
.cd-label {
    margin-top: 10px;
    color: var(--text-color);
    font-size: 18px;
}

/* 0 - L */
@media (max-width: 1099px) {
    .econgood-countdown {
        gap: 14px;
    }
    .cd-digit {
        --cd-w: 85px;
        --cd-h: 60px;
        --cd-fs: 36px;
    }
    .cd-label { font-size: 16px; }
}

/* 0 - M */
@media (max-width: 781px) {
    .econgood-countdown {
        gap: 10px;
    }
    .cd-digit {
        --cd-w: 65px;
        --cd-h: 46px;
        --cd-fs: 28px;
    }
    .cd-label { font-size: 13px; }
}

/* COOKIE BANNER */

#cdf-cookie-box {
  background-color: hsl(0, 0%, 100%);
  color: var(--text-color-dark);
  font-size: 16px !important;
  box-shadow: var(--shadow-small);
  bottom: 10px;
  right: 10px;
  margin-left: 10px;
}

#cdf-cookie-box .button {
  padding: .3em .8em;
  color: inherit;
  background-color: var(--c0-7);
}

#cdf-cookie-close-btn {
  color: var(--text-color-dark);
}

#cdf-cookie-btn {
  background-color: hsl(0, 0%, 100%);
  color: var(--text-color-dark);
  box-shadow: var(--shadow-small);
  padding: .3em .8em;
}