:root {
  --achtergrond: oklch(97% 0.05 95);
  --header: oklch(85% 0.13 90);
  --achtergrond2: oklch(82.802% 0.132 89.132);

  --tekst: oklch(35% 0.02 95);
  --link-active: oklch(80% 0.17 75);

  --accent: oklch(70% 0.15 250);
  --accent-donker: oklch(60% 0.18 250);
  --accent-licht: oklch(80% 0.10 250);

  --quiz: oklch(89.497% 0.07795 90.479);

  --grenslijn: oklch(90% 0.03 95);
  --schaduw: oklch(40% 0.02 95 / 0.2);
}

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background-color: transparent;
  color: var(--tekst);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  z-index: 1000;
}

.cookie-content {
  background-color: oklch(100% 0 0);
  padding: 1rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 12px var(--schaduw);
  max-width: 90%;
}

#accept-cookies {
  background-color: var(--accent);
  color: oklch(100% 0 0);
  padding: 1rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

#accept-cookies:hover {
  background-color: var(--accent-donker);
  transform: translateY(-2px);
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background-color: var(--achtergrond);
  color: var(--tekst);
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--header);
    box-shadow: 0 2px 5px var(--schaduw);

    #myLinks {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 1rem;
        padding: 0;
        list-style: none;
        order: 3;
    }

    .logo{
        width: 5.625rem;
        height: auto;
    }

    ul {
        list-style: none;
        gap: 1rem;
        margin: 0;
        padding: 0;
    }

    a {
        color: var(--tekst);
        padding: 1rem;
        text-decoration: none;
        font-size: 1rem;
        display: block;
        border-radius: 6px;
        font-weight: 500;
        transition: background 0.3s ease, color 0.3s ease;

        .icon {
            order: 2;
        }

        &:hover {
            background-color: var(--accent-licht);
        }

        &.active {
            background-color: var(--link-active);
            color: var(--tekst);
        }
    }
}

@media (min-width: 50rem) {
    nav {
        #myLinks {
            display: flex;
            flex-direction: row;
            width: auto;
            margin-top: 0;
            order: 2;
        }

        .icon{
            display: none;
        }
    }
}

.hero {
  position: relative;
  background: var(--achtergrond2) url("../images/bier.jpg") center/cover no-repeat;
  color: oklch(100% 0 0);
  text-align: center;
  padding: 10rem 1rem;

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background: oklch(0 0 0 / 40%);
  }

  h1 {
    position: relative;
    z-index: 2;
    font-size: 2.2rem;
  }

  .cta {
    position: relative;
    z-index: 2;
    color: var(--tekst);
  }
}

.cta {
  display: inline-block;
  background: var(--link-active);
  color: oklch(100% 0 0);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;

  &:hover {
    background: var(--accent-donker);
    transform: translateY(-3px);
  }
}

.dranken {
  background-color: var(--header);
  padding: 5vw 10%;
  text-align: left;
  
  h2 {
    margin: 0 0 3vw;
  }
  
  .drank-lijst {
    list-style: none;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
    
    .content {
      background: var(--achtergrond);
      border-radius: 2vw;
      box-shadow: 0 0.5rem 1rem var(--schaduw);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      list-style: none;
      flex: 1 1 20vw;
      max-width: 15rem;
      min-width: 10rem;
      padding: 1.5vw;
      display: flex;
      flex-direction: column;
      
      img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
      }
      
      h3 {
        order: 1;
        margin: 1.5vw 0;
        color: var(--tekst);
        text-align: center;
      }
      
      &:hover {
        transform: translateY(-0.5rem);
        box-shadow: 0 1rem 2rem var(--schaduw);
      }
    }
  }
}

.over {
  background-color: var(--achtergrond);
  padding: 3rem 10%;

  h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: left;
  }

  .over-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    text-align: center;

    .cta {
      background: var(--link-active);
      color: var(--tekst);
      padding: 1rem 2rem;
      border-radius: 0.5rem;
      text-decoration: none;
      font-weight: 600;
      font-size: 1rem;
      transition: background 0.3s ease, transform 0.2s ease;

      &:hover {
        background: var(--accent-donker);
        transform: translateY(-3px);
      }
    }

    .foto {
      max-width: 100%;
      min-width: 16rem;
      height: auto;
      border-radius: 1rem;
      box-shadow: 0 8px 25px var(--schaduw);
    }
  }
}

.overons {
  background-color: var(--achtergrond);
  padding: 5rem 10%;
  display: flex;
  flex-direction: column;
  gap: 6rem;

  section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
  }

  .foto {
    width: 100%;
    height: 20rem;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 8px 25px var(--schaduw);
  }

  h1,
  h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--tekst);
  }

  p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--tekst);
    max-width: 37rem;
  }

  .intro {
    grid-template-areas: "foto tekst";

    img {
      grid-area: foto;
    }

    div {
      grid-area: tekst;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
  }

  .missie {
    grid-template-areas: "tekst foto";
    align-items: start;

    div {
      grid-area: tekst;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
  }
}

#map {
    height: 27rem; 
    width: 65%; 
    box-shadow: 0 0.4rem 1.5rem oklch(0 0 0 / 50%);
    border-radius: 1rem;
}

.locatie {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;  
}

.locatie-logo {
    width: 15rem;
    height: auto;
    margin: 0.5rem;
}

#map {
    height: 27rem; 
    width: 65%; 
    box-shadow: 0 0.4rem 1.5rem oklch(0 0 0 / 50%);
    border-radius: 1rem;
}

.locatie {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;  
}

.locatie-logo {
    width: 15rem;
    height: auto;
    margin: 0.5rem;
}

@media (min-width: 44rem) {
  .overons {

    .intro,
    .missie {
      background-color: var(--achtergrond);
      flex-direction: row;
      align-items: center;

      img {
        border-radius: 1rem;
        order: 0;
        object-fit: cover;
        height: auto;
      }

      h1,
      h2 {
        margin-inline: 0;
      }

      p {
        padding: 0;
      }

      div {
        padding: 0rem;
      }
    }

    .missie {
      img {
        order: 1;
      }
    }
  }
}

.founders {
  background: var(--achtergrond2);
  padding: 4rem 10%;
  text-align: center;
  border-radius: 1rem;

  display: flex;
  flex-direction: row;
  align-items: center;

  h2 {
    margin-bottom: 2rem;
  }

  .founder-list {
    list-style: none;
    padding: 0;
    margin: 0;

    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 25px;
  }

  .founder-card {
    background: var(--achtergrond);
    padding: 1rem;
    border-radius: 15px;
    width: 12rem;
    text-align: center;
    box-shadow: 0 6px 15px var(--schaduw);

    img {
      width: 100%;
      height: 10rem;
      object-fit: cover;
      border-radius: 1rem;
      margin-bottom: 10px;
    }

    p {
      margin: 0;
      font-weight: 600;
    }
  }
}

footer {
  background: var(--header);
  color: var(--tekst);
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9rem;
}

@media (max-width: 1000px) {
  .over-content {
    flex-direction: column;
    gap: 30px;

    .foto {
      width: 90%;
      height: auto;
    }
  }

  .overons {
    section {
      grid-template-columns: 1fr;
      text-align: center;
    }

    .foto {
      height: auto;
    }
  }

  .drank-lijst {
    flex-direction: column;
    align-items: center;

    .drank-card {
      width: 90%;
      height: auto;
    }
  }

  .card {
    max-width: 90%;
  }

  .hero {
    padding: 100px 20px;

    h1 {
      font-size: 1.8rem;
    }
  }

}

/*founding fathers fix*/
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  gap: 2rem;
  padding: 2rem 1rem;
}

.cards ul {
  display: contents;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cards li {
  flex: 1 1 18rem;      
  max-width: 18rem;
  background: var(--achtergrond2);
  border-radius: 1.3rem;
  box-shadow: 0 0 .4rem var(--schaduw);
  overflow: hidden;
  text-align: center;
  transition: .3s ease;
  padding-bottom: 1rem;
}

.cards li:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 1.2rem var(--schaduw);
  background-color: var(--link-active);
}

.cards img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.content a{
  text-decoration: none;
  color: var(--tekst);
  font-weight: bolder;
}

.content img{
  border-radius: 1rem;
}

@media (max-width: 768px) {
  .cookie-popup {
    padding: 10px;
  }

  .cookie-content {
    padding: 15px;
    max-width: 95%;
  }

  #accept-cookies {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

.main-quiz {
  background: var(--achtergrond);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-block: 2rem;
  padding: 0;

  .quiz-container {
    background: var(--quiz);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 25rem;
    max-width: 90%;

    .option {
      display: block;
      margin: 0.5rem 0;
      padding: 1rem;
      background: oklch(0.9491 0 0);
      border-radius: 0.5rem;
      cursor: pointer;
      transition: background 0.2s;

      &:hover {
        background: oklch(0.8975 0 0);
      }
    }

    .result {
      text-align: center;
      animation: fadeIn 0.4s ease;

      h3 {
        margin-bottom: 1rem;
      }
    }

    button {
      margin-top: 1rem;
      padding: 0.5rem 1rem;
      border: none;
      border-radius: 0.5rem;
      background: oklch(0.6731 0.1624 144.21);
      color: oklch(100% 0 0);
      cursor: pointer;

      &:hover {
        background: oklch(0.6301 0.1516 144.28);
      }
    }
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.box {
  background-color: var(--achtergrond2);
  border-radius: 2rem;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 12px var(--schaduw);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  h1,
  h2 {
    color: var(--tekst);
    margin-bottom: 1rem;
  }

  p,
  ul {
    color: var(--tekst);
    font-size: 1.1rem;
    line-height: 1.8;

    li {
      margin-bottom: 0.5rem;
    }
  }

  &:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--schaduw);
  }

  .button,
  .small-button {
    a {
      display: inline-block;
      text-decoration: none;
      background-color: var(--link-active);
      color: var(--tekst);
      font-weight: bold;
      padding: 1rem 2rem;
      border-radius: 1rem;
      margin-top: 1rem;
      transition: background-color 0.3s ease, transform 0.2s ease;

      &:hover {
        background-color: var(--accent-donker);
        transform: scale(1.05);
      }
    }
  }
}

/* ========= MEDIA QUERIES ========= */

@media (min-width: 1400px) {
  .cards li {
    flex-basis: 16%;
    max-width: 16%;
  }
}

@media (max-width: 900px) {
  .cards li {
    flex-basis: 14rem;   /* 2 per rij */
  }
}
/* ====== FORM CONTAINER (WHITE CARD) ====== */
.container form {
    max-width: 40.625rem;
    background: oklch(1 0 89.88);
    margin: 3.75rem auto;
    padding: 3.125rem 3.75rem;
    border-radius: 1.25rem;
    box-shadow: 0 0.625rem 2.1875rem rgba(0,0,0,0.08);
    font-family: 'Inter', sans-serif;
}

/* Titel */
.container form h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: oklch(0.247 0.044 273.42);
}

/* Subtekst */
.container form .message {
    margin-bottom: 1.5625rem;
    font-size: 0.875rem;
    color: oklch(0.551 0.023 264.36);
}

/* ===== INPUT VELDEN ===== */
.container form label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: oklch(0.247 0.044 273.42);
}

.input-text,
textarea {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1px solid oklch(0.885 0.009 264.52);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    transition: 0.2s;
}

.input-text:focus,
textarea:focus {
    border-color: oklch(0.585 0.204 277.12);
    box-shadow: 0 0 0 0.1875rem rgba(99,102,241,0.2);
    outline: none;
}

textarea {
    resize: vertical;
}

/* Foutmeldingen */
.message.error {
    color: oklch(0.577 0.215 27.33);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
    display: block;
}

/* ===== CHECKBOXES ===== */
fieldset {
    border: none;
    margin-top: 1.5625rem;
    padding: 0;
}

fieldset legend {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: oklch(0.247 0.044 273.42);
}

fieldset label {
    font-weight: normal;
    font-size: 0.875rem;
    color: oklch(0.373 0.031 259.73);
}

/* ===== SUBMIT BUTTON ===== */
#btnSubmit {
    display: block;
    width: 12.5rem;
    margin: 2.1875rem auto 0 auto;
    padding: 0.875rem 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: oklch(1 0 89.88);
    background: oklch(0 0 0);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: 0.2s;
}

#btnSubmit:hover {
    background: oklch(0.178 0 89.88);
    transform: translateY(-0.0625rem);
}

/* Telefoon en kleine schermen */
@media (max-width: 600px) {

  .container form {
    padding: 2rem;
    margin: 2rem 1rem;
  }

  .container form h1 {
    font-size: 2rem;
  }

  .container form label {
    font-size: 1rem;
  }

  .input-text,
  textarea {
    font-size: 1rem;
    padding: 1rem;
  }

  fieldset legend {
    font-size: 1rem;
  }

  #btnSubmit {
    width: 100%;
    /* Knop wordt volledige breedte */
    padding: 1rem 0;
    font-size: 1rem;
  }

 .cards li {
    flex-basis: 100%;
    max-width: none;
  }
}

/* Extra kleine schermen */
@media (max-width: 400px) {
  .container form {
    padding: 2rem;
  }

  .container form h1 {
    font-size: 2rem;
  }
}

.thanks {
  p {
    text-align: center;
    margin: 5rem 1rem;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
  }
}