* {
    margin: 0;
    padding: 0;
    
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #FCF7EE;
}
html {
  scroll-behavior: smooth;
}
/* Generelle settings */

    /* Computer */
    h2 {
        font-size: 48px;
        color: #2D1313;
        font-family: 'League Spartan', sans-serif;
        font-weight: 700;
    }
    h3 {
        font-size: 48px;
        color: #2D1313;
        font-family: 'League Spartan', sans-serif;
        font-weight: 400;
    }
    h4 {
        font-size: 40px;
        color: #2D1313;
        font-family: 'League Spartan', sans-serif;
        font-weight: 700;
        line-height: 100%
    }
    h5 {
        font-size: 20px;
        color: #2D1313;
        font-family: 'League Spartan', sans-serif;
        font-weight: 700;
        line-height: 100%
    }
    p {
        font-family: "Merriweather Sans", sans-serif;
        color: #2D1313;
        font-size: 16px;
        line-height: 150%;
    }
    .fed {
        font-weight: 700;
    }
    a {
        font-size: 20px;
        color: #2D1313;
        font-family: 'League Spartan', sans-serif;
        font-weight: 600;
        text-decoration: none;
    }
  .acc-body a:hover {
    text-decoration: underline;
  }
    li ul {
        font-size: 16px;
        color: #2D1313;
        font-family: "Merriweather Sans", sans-serif;
        font-weight: 400;
    }
    /* Knapper*/
    .knap {
        display: inline-block;
        padding: 10px 20px;
        background-color: #8FAE4B;
        margin-top: 7px;
        border-radius: 5px;
    }
    .knap.orange {
        padding: 10px 40px;
        background-color: #E78A65;
    }
       header {
        /* background-color: #EDE3D9; */
        padding: 20px 105px;
        display: grid;
        grid-template-columns: repeat(12, [col-start] 1fr);
        gap: 30px;
       }
       .nav {
        display: flex;
        grid-column: col-start 4 / span 9;;
        margin-left: auto;
        gap: 60px;
       }
       .on {
        border-bottom: 3px solid #D395C4;
        padding-bottom: 8px;
       }
       .icon {
    display: none;
}
Header a:hover {
     transform: scale(1.2);
     transition: 0.3s;
}
       /* responsiv header */
@media screen and (max-width: 850px) {
    .nav a {
        display: none;
    }
    .nav .icon {
        display: block;
         position: absolute;
        right: 20px;
        top: 20px;
    }
    .nav.responsive {
        flex-direction: column;
    }
    .nav.responsive a {
        display: block;
    }
    .responsive {
    padding: 60px 0 20px 0;
    } }
/* Footer */
      footer {
    background-color: #EDE3D9;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 40px 7%;
}

.midtfoot {
    grid-column: 2;
    text-align: center;
}
.midtfoot .apps {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
}
.midtfoot .apps a i {
    font-size: 40px;
}

.navfoot {
    grid-column: 3;
    justify-self: end;
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    column-gap: 40px;
    row-gap: 10px;
}

footer .streg {
    width: 100%;
    height: 16px;
    margin: 5px 0;
}
.apps a:hover {
     transform: scale(1.2);
     transition: 0.3s;
}
.navfoot a:hover {
     transform: scale(1.2);
     transition: 0.3s;
}
footer .streg.pink { background: #D395C4; }
footer .streg.orange { background: #E08D4E; }
footer .streg.grøn { background: #A9BC6D; }
@media (max-width: 850px) {
  .navfoot {
    display: none;
  }
}
       
/* Lave grids på alle sectioner */
section {
    padding: 20px 0;
    margin: 0 7%;
}
.hero {
    display: grid;
    grid-template-columns: repeat(12, [col-start] 1fr);
    gap: 30px;
}
.hero a:hover {
     transform: scale(1.2);
     transition: 0.3s;
}
/* Forside */

       /* Hero */
       .hero {
        padding-top: 30px;
       }
       .herocontain {
        background-image: url(img/porttræt/Organic-swirl.png);
       }
       .halv {
        grid-column: col-start 1 / span 6;

       }
       .halv p {
        padding-top: 20px;
       }
       .apps a {
        color: #2D1313;
        font-size: 50px;
       }
       .apps {
        margin-top: 40px;
        grid-column: col-start 1 / span 3;
        display: flex;
        justify-content: space-between;
       }
       @media (max-width: 850px) {
    .halv {
        grid-column: col-start 1 / span 12;
    }
    .hero {
        gap: 0;
    }
    .apps {
        grid-column: col-start 1 / span 12;
        justify-content: center;
        gap: 30px;
    }
       }
       /* Uddannelse */
       .kortmenu {
        margin-top: 20px;
  display: flex;
  gap: 30px;
  height: 450px;
}
.kort {
     display: flex;
  flex-direction: column;
  flex: 1;
  background: #EFE7D8;
  border-radius: 7px;
  overflow: hidden;
  transition: flex 0.35s ease;
  padding: 25px;
  cursor: pointer;
}
.kort.aktiv {
  flex: 3;
  background: #F0DBEB;
  cursor:auto;
}
.kort.aktiv img {
    display: block;
  width: 100%;
  height: 215px;
  object-fit: cover;
  border-radius: 7px;
  margin-bottom: 20px;
}
.kort:not(.aktiv) img {
  height: 300px;
  object-fit: cover;
  border-radius: 7px;
}

/* Active card: image fills the remaining vertical space */
.kort.aktiv img {
  flex: 1;
  min-height: 0;
}
.kort-top .fa-plus {
  color: #8FAE4B;
  font-size: 18px;
  font-weight: 1500;
}
/* hide the description/image/button on collapsed cards */
.kort:not(.aktiv) p:not(:first-child),
.kort:not(.aktiv) a {
  display: none;
}
.kort-billede { display: none; border-radius: 8px; object-fit: cover; width: 100%; }
.kort-top { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.kort-titel { font-weight: 600; }
.kort .knap { display: none; align-self: flex-end; margin-top: 12px; }

.kort.aktiv .kort-billede { display: block; height: 65%; margin-bottom: 12px; }
.kort.aktiv .kort-plus { display: none; }
.kort.aktiv .knap { display: inline-block; }
.kort.aktiv .kort-top .fa-plus {
  display: none;
}
.kort a:hover {
     background-color: #E08D4E;
     transform: scale(1.1);
     transition: 0.3s;
}

/* Mobil: kortene stables, og den aktive fylder mere i højden */
@media (max-width: 850px) {
  .kortmenu {
    flex-direction: column;
    height: auto;
  }

  .kort {
    flex: none;
    flex-direction: column;
    transition: padding 0.35s ease;
    padding: 16px;
  }

  .kort img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    flex: none;
    transition: aspect-ratio 0.35s ease;
  }

  .kort:not(.aktiv) img {
    aspect-ratio: 5 / 1;
    height: auto;
  }
  .kort.aktiv img {
    aspect-ratio: 16 / 10;
      height: auto;
  flex: none;
  min-height: unset;
  }

  .kort:not(.aktiv) .kort-top {
    margin-top: 0;
  }
}

        /* Foto section */
        .foto {
            padding-top: 80px;
        }
        .fotorulle {
            display: grid;
            grid-template-columns: repeat(12, [col-start] 1fr);
            gap: 30px;
            height: 180px;
        }
        .fotokort {
            height: 180px;
            grid-column: span 3;
            width: 100%;
            object-fit: cover;
        }
        .center {
           text-align: center;
           padding: 30px;
        }
        @media (max-width: 1000px) {
            .hide {
                display: none;
            }
            .fotokort {
                grid-column: span 6;
            }
        }
        .foto a:hover {
     background-color: #A9BC6D;
     transform: scale(1.1);
     transition: 0.3s;
}
.foto img:hover {
     transform: scale(1.2);
     transition: 0.5s;
}
        /* Programmer section */
   .programmer {
    display: grid;
    grid-template-columns: repeat(12, [col-start] 1fr);
    gap: 30px;
}
.programmer h2 {
    grid-column: col-start 1 / span 12;
}

.programmenu {
    grid-column: col-start 3 / span 8;
    display: grid;
    grid-template-columns: repeat(12, [col-start] 1fr);
    gap: 30px;
}
.prokort {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}
.prologo {
     width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.prokort p {
    font-weight: 700;
}
.prologo:hover {
     transform: scale(1.05);
     transition: 0.3s;
}
 @media (max-width: 850px) {
    .programmenu {
        grid-column: col-start 1 / span 12;
    }
 }


 /* Kontaktformular */
 .kontakt form {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(12, [col-start] 1fr);
    gap: 20px;
}

.kontakt label {
    display: none; /* skjul labels visuelt, brug placeholder i stedet, eller behold dem hvis du vil have dem synlige */
}

.kontakt input[type="text"],
.kontakt input[type="email"] {
    grid-column: col-start 1 / span 6;
    padding: 16px;
    background-color: #DEE4CD;
    border: 3px solid #8FAE4B;
    border-radius: 7px;
}
::placeholder {
   font-family: "Merriweather Sans", sans-serif;
        color: #2D1313;
        font-size: 16px;
        line-height: 150%;
  
}
.kontakt textarea {
    grid-column: col-start 1 / span 6;
    grid-row: span 3;
    resize: none;
    padding: 16px;
    background-color: #EDE3D9;
    border: 3px solid #8FAE4B;
    border-radius: 7px;
    height: 220px;
}

.kontakt img {
    grid-column: col-start 7 / span 6;
    grid-row: 1 / span 4;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.kontakt input[type="submit"] {
    grid-column: col-start 7 / span 6;
    justify-self: start;
    padding: 10px 50px;
    background-color: #E78A65;
    border-radius: 12px;
    font-family: "Merriweather Sans", sans-serif;
        color: #2D1313;
        font-size: 16px;
        line-height: 150%;
        font-weight: 700;
        border: none;
        cursor: pointer;

}
.kontakt input[type="submit"]:hover {
     background-color: #A9BC6D;
     transform: scale(1.1);
     transition: 0.2s;
}

@media (max-width: 850px) {
  .kontakt form {
    display: flex;
    flex-direction: column;
  }
  .kontakt img {
    display: none;
  }
}

/* Portfolio css */
.udd-side {
    padding-top: 60px;
}
.udd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin: 30px 0 80px;
}

.acc-item {
    border-bottom: 2px solid #E78A65;
}

.acc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    cursor: pointer;
}

.acc-header i {
    color: #8FAE4B;
    font-size: 18px;
}


/* Teksten er lukket */
.acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}


/* Teksten er åben */
.acc-item.aktiv .acc-body {
    max-height: 500px;
}


/* Padding på teksten */
.acc-body p {
    padding-bottom: 16px;
}
.udd-billede {
    display: flex;
    align-items: center;
    gap: 20px;
}
.slider-billeder {
    position: relative;
    flex: 1;
    aspect-ratio: 4 / 3;
    background: #D9D9D9;
    border-radius: 4px;
    overflow: hidden;
}
.slider-billeder img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider-billeder img.vis {
    display: block;
}
.slider-pil {
    background: none;
    border: none;
    cursor: pointer;
    color: #8FAE4B;
    font-size: 24px;
}
.slider-pil:hover {
     transform: scale(1.3);
     transition: 0.3s;
     color: #8FAE4B;
}
.acc-ikon {
    color: #8FAE4B;
    font-size: 18px;
    transition: transform 0.3s ease;
}
.acc-item.aktiv .acc-ikon {
    transform: rotate(45deg);
}
@media (max-width: 850px) {
    .udd-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}