/*
Theme Name: Dynamik Child Theme
Template: Divi
Author: Jakob Zoëga
Description: En samling af filer
Version: 1.0
*/

:root {
    --pri-color: #20ae5b;
    --sek-color: #2f6746;
    --cta-color: #a5772b;
    --font-family: 'Roboto', 'Helvetica', 'Arial', 'Lucida', 'sans-serif';
    --font-header: 'Roboto', 'Helvetica', 'Arial', 'Lucida', 'sans-serif';
    --font-weight: 800;
    --gap: 2rem;
    --menu-width: 400px;
}
/* ------------------ GLOBALS -------------------*/
.subpage_brodtekst :is(p, a) {
    color: #000;
    word-wrap: break-word;

}

.subpage_brodtekst :is(h1,h2,h3) {
    font-family: var(--font-header);
    font-weight: var(--font-weight);
    padding-bottom: 20px;
    line-height: 1.2;
    text-align: left;

}
.subpage_brodtekst h1 {
    font-size: 30px;
}

.subpage_brodtekst h2 {
    font-size: 25px;
}

.subpage_brodtekst p {
    font-size: 16px;
    font-family: var(--font-family);
    font-weight: 400;
    
}

.subpage_brodtekst a {
    color: var(--sek-color);
}
.subpage_brodtekst a.cta {
    color: var(--pri-color);
}

@media (min-width: 576px) {
    .subpage_brodtekst p {
        font-size: 16px;
    }
}








/* ------------------ BURGER MENU -------------------*/
.burger-menu {
    text-align:right;
    position: relative;
}
.burger-menu .burger-button {
    background-color: transparent;
    border: none;
    position: relative;
    background-color: white;
    border-radius: 100px;
    padding: 20px 12px;
    text-align: center;
    
    position: fixed;
    top: 20px;
    right: 5%;
    transition: top 0.3s ease-out;
    
    &.active {
        right: 2rem;
        animation: reappear 1s linear;
        transform:translatey(10px);
    }
}
@keyframes reappear {
    0% {
        opacity: 0%;
    }
    100% {
        opacity: 100%;
    }
}

.burger-menu .burger-button span {
    display:block;
    height: 3px;
    width: 25px;
    background-color: black;
    transform-origin: center;
    
    transition: 0.3s ease-out all;
}
.burger-menu .burger-button span:first-child {
    transform: translateY(-4px);
}
.burger-menu .burger-button span:last-child {
    transform: translateY(4px);
}
.burger-menu .burger-button.active span:nth-child(2) {
    opacity: 0;
}
.burger-menu .burger-button.active span:first-child {
    transform: translateY(100%) rotate(45deg);
}
.burger-menu .burger-button.active span:last-child {
    transform: translateY(-100%) rotate(-45deg);
}
.burger-menu .burger-button.active span {
    background: white;
}
.dynamik-menu-wrapper #menu-main {
    display: flex;
    gap: 0.2rem;
    flex-direction:column;
    padding: 0;
    opacity: 0;
    position: fixed;
    top: 0;
    bottom: 0;
    width: 300px;
    height: 100%;
    padding: var(--gap);
    padding-top: 150px;
    background: white;
    pointer-events: none;
    z-index: 400;
    right: -400px;
    transition: 0.4s all ease-out;
    
}

.menuSection {
    box-shadow: 0px 2px 18px 0px rgba(0,0,0,0.3);
    position: fixed;
  	top: 0;
    right: 0;
    transform:translatex(100%);
    left: auto;
    height: 100%;
    width: 80%;
    max-width: 400px;
    transition:0.3s ease-out;
    
    &.active {
        transform: translatex(0);
    }
    & .dsm-menu li a {
            width: 100%;
            padding: 0.3rem;
            position:relative;
            display:block;
            text-align: left;
    }
        
}
.et-fb-root-ancestor .menuSection {
    display:none;
}
    .burger-menu {
        display:block;
        z-index: 999;
    }
    .burger-button.active {
        background-color: black;
    }
.dynamik-menu-wrapper #menu-main li::marker {
    content:none;
}
.dynamik-menu-wrapper #menu-main li > * {
    font-family: var(--font-header);
    color: #2F6746;
    display: inline-block;
    padding: 2px 7px;
    position:relative;
}
.dynamik-menu-wrapper #menu-main li a::before {
    content:'';
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    height: 2px;
    width: 0px;
    background-color: var(--pri-color);
    transition: ease-out all 0.3s;
}
.dynamik-menu-wrapper #menu-main li a:hover::before {
    width: 100%;
    left: 0;
}
@media (min-width: 768px) {

}
@media (min-width: 1200px) {
    .burger-menu {
        display:none;
    }
    .dynamik-menu-wrapper #menu-main {
        display: flex;
        gap: 0.3rem;
        flex-direction:row;
        justify-content: flex-end;
        padding: 0;
        opacity: 1;
        position: relative;
        bottom: 100%;
        width: 100%;
        height: 100%;
        padding: 0;
        background-color: transparent;
        
        pointer-events: all;
        z-index: 400;
        right: 0;
        transition: 0.4s all ease-out;
    }


    

    .dynamik-menu-wrapper .has-submenu:hover ul {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }
    
}



/* ----------------- BUTTONS --------------------*/

.button-holder {
    width: 100%;
    display:flex;
    flex-direction:row;
    gap: 1rem;
}
.btn {
    width: fit-content;
    background-color: #f1f1f1;
    color: black;
    padding: 10px 24px;
    font-size: 18px;
    font-family: var(--font-fam);
    transition: 0.4s all ease-out;
    text-transform: uppercase;
    font-weight: 700;
}
.btn-main {
    color:white;
    background-color:var(--pri-color);
}

.btn-cta {
    color: white;
    background-color:var(--cta-color);
}
.btn:hover {
    background-color:#151515;
}


/* ------------------ SUBPAGE -------------------*/
#abe {
    margin-top: var(--gap);
}

.subpage_brodtekst div[class^="wp-block-group"] {
        margin-top: var(--gap);
        margin-bottom: var(--gap);
    }
.subpage_brodtekst div[class^="wp-block-group"] p {
        padding-bottom: 1em;
    }
    
.wp-block-buttons {
    margin-bottom: 1rem;
}

.wp-block-buttons a {
    background-color: var(--pri-color);
    color: white;
    border-radius: 0;
    padding: 0.5rem 2rem;
    transition: all ease-out 0.2s;
}
.wp-block-buttons .wp-block-button:nth-child(2) a {
    background-color: var(--sek-color);
}

.wp-block-buttons a:hover {
    transform: scale(0.98);
}



@media (min-width: 768px) {
    .subpage_brodtekst div[class^="wp-block-group"] {
        padding-right: calc(50% + (var(--gap) / 2));
        position: relative;
        overflow: hidden;
    }
    .subpage_brodtekst div[class^="wp-block-group"] .wp-block-image {
        position: absolute;
        top: calc(-1* var(--gap));
        bottom: calc(-1 * var(--gap));
        right:0;
        left: calc(50% + (var(--gap) / 2));
        
    }
    .subpage_brodtekst div[class^="wp-block-group"] .wp-block-image img {
      aspect-ratio: 1;
      min-width: 100%;
      min-height: 100%;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .wp-block-buttons {
        margin-bottom: 0;
    }
}


.subpage_sidemenu {
    background-color: #fafafa;
    padding: 1rem;
}
.subpage_sidemenu h4 {
    color: black;
    font-size: 18px;
}
.subpage_sidemenu ul {
    
}
.subpage_sidemenu ul li a {
    color: black;
    font-weight: 400;
    transition: all 0.4s ease-in-out;
    font-size: 14px;
}
.subpage_sidemenu ul li a:hover {
    color: var(--sek-color);
    transition: all 0.4s ease-in-out;
}
.subpage_sidemenu ul li::marker {
    color: white;
}

.subpage_topbar {
    position:relative;
    padding-bottom: 45px;
    
}

.subpage_topbar .dsm_breadcrumbs a span {
    color: var(--pri-color);
}

.subpage_topbar .dsm_breadcrumbs {
    color: white;
}

.subpage_topbar .subpage_pagetitle {
    font-size: 28px;
    line-height: 1;
    color: white;
    margin-bottom:0;
}


.subpage_breadcrumbs {
    
}

.subpage_pagetitle {
    
}

.subpage_callToAction {
    padding:0 !important;
}

.subpage_callToAction p {
    color: white;
    font-size: 18px;
}

.subpage_imageContainer {
    filter:blur(3px);
} 
.subpage_callToAction .subpage_imageContainer img {
    position: absolute;
    object-fit: cover;
    object-position: 0% 20%;
}
.subpage_imageContainer img {
    width: 100%;
}
#subpage_image_row * {
    object-fit: cover;
    object-position: center center;
    height: 100%;
}


/* --------------- MEDARBEJDERE -------------- */

.medarbejdere-filter {
  margin-bottom: 1rem;
  & .filter-tekst {
    text-align: center;
    font-size: 15px;
    font-family: "elza",sans-serif !important;
    font-weight: 400;
    color: black;
    margin-bottom: 0;
  }
  
  & .afdelinger {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    
    
    & .afdeling-btn {
      border: 1px solid var(--cta-color);
      padding: 0.2rem 0.6rem;
      line-height: 1.3em;
      border-radius: 5px;
      color: black;
      &.active {
        background-color: var(--pri-color);
        color: white;
        border-color: var(--sek-color);
      }
    }
  }
}

.medarbejdere-list {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  width: 100%;
  & .medarbejder-card {
    text-align: center;
    font-family: "elza",sans-serif !important;
    background-color: white;
    padding-bottom: 1rem;
    
    & p {
      width: 90%;
      margin: auto;
    }
    
    & .medarbejder-photo {
      aspect-ratio: 5/3;
      width: 100%;
      height: auto;
      object-fit: cover;
      margin-bottom: 0.5rem;
    }
    
    & .medarbejder-name {
      
      color: black;
      font-size: 16px;
      font-weight: 400;
    }
    & .medarbejder-position {
      font-size: 18px;
      font-weight: 700;
      color: var(--sek-color);
      text-transform: uppercase;
      padding-bottom: 0;
    }
    & .medarbejder-telefon {
      padding-bottom: 0.5rem;
      font-weight: 700;
      & a {
        color: black;
        transition: 0.2s ease-in-out;
        &:hover {
          color: var(--cta-color);
        }
        &::before {
          content: 'Tlf: ';
        }
      }
    }
    & .medarbejder-afdeling {
      color: black;
      font-size: 12px;
      margin-top: -0.5rem;
      
    }
    
  }
}

@media (min-width: 480px) {
  .medarbejdere-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .medarbejdere-list {
    grid-template-columns: repeat(4, 1fr);
  }
}





/* ----------------- FORSIDE ------------------------*/
.ydelser-row::after {
    content: none;
}

.ydelser-row {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 1px;
}
.ydelser-row .et_pb_blurb {
    border: none !important;
}
.ydelser-row .et_pb_column {
    width: 100% !important;
    position:relative;
    min-height: 180px;
    background-color: white;
    
}
.ydelser-row .et_pb_column::after {
    content: '';
    display: block;
    position: absolute;
    width: 2rem;
    height: 2rem;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="m31.71 15.29-10-10-1.42 1.42 8.3 8.29H0v2h28.59l-8.29 8.29 1.41 1.41 10-10a1 1 0 0 0 0-1.41z" data-name="3-Arrow Right"/></svg>');
    bottom: 2rem;
    left: 2rem;
}

@media (min-width: 992px) {
    .subpage_topbar .subpage_pagetitle {
        font-size: 78px;
    }
    .subpage_callToAction .subpage_imageColumn * {
        min-height: 0;
    }
    .ydelser-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px){
    
}

.pdf-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  
  & .pdf-card {
    width: 100%;
    background-color: white;
    padding: 0.5rem;
    
    & .pdf-card__title {
      font-size: 12px;
      line-height: 1.3em;
      margin-top: 0.5rem;
      text-align: center;
      font-weight: 500;
    }
    
    & .pdf-card__meta {
      display:none;
    } 
    
    & img {
      width: 100%;
      max-height: 260px;
      object-fit: contain;
    }
  }
}

.pdf-gallery__term-list {
  text-align: center;
  margin-bottom: 2rem;
  & legend {
    margin: auto;
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 15px;
    font-family: "elza",sans-serif !important;
    font-weight: 400;
    color: black;
  }
  & label {
    margin: 0 0.1rem;
  }
 
}
.pdf-gallery__term-list input {
  display: none;
}

.pdf-gallery__term input[type="radio"] + span{
   border-color: var(--cta-color) !important;
  border-radius: 5px;
  padding: 0.4rem 0.6rem;
  border: 1px solid;
  font-family: 'Muli',sans-serif;
  font-weight: 600;
  color: #22223b;

}
.pdf-gallery__term input[type="radio"]:checked + span {
  background: var(--pri-color);
  border-color: #22223b !important;
 
}

@media (min-width: 768px) {
  .pdf-gallery__grid {
  grid-template-columns: repeat(3, 1fr);
     & .pdf-card__title {
      font-size: 14px !important;
      
    }
  	 
  }
}
@media (min-width: 1200px) {
  .pdf-gallery__grid {
  grid-template-columns: repeat(5, 1fr);
  	 
  }
}