/* ==========================================================================
   1. SETUP & FONTS
   ========================================================================== */

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

/* ==========================================================================
   2. BASIS STYLING (Body & Typografie)
   ========================================================================== */

body {
  margin: 0;
  padding: 0;
  color: white;
  background-color: #19415b; /* Fallback color */
  min-height: 100%;
  font-family: "brandon-grotesque", sans-serif;
  font-weight: 100;
  font-style: italic;
  font-size: 1.8rem;
  line-height: 2rem;
  overflow-x: hidden;
  position: relative; /* Necessary for the pseudo-element placement */
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Keeps it behind all content */
  background-image: url(../assets/Background_Final.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  /* background-attachment: fixed; <--- You no longer need this line! */
}

/* Koppen */
h1,
h2,
h3 {
  font-family: "Vujahday Script", cursive;
  font-style: normal;
}

h1 {
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  margin-bottom: 2rem;
}

h2 {
  font-size: 3rem;
  padding: 1rem 0 2rem 0;
}

h3 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

h4 {
  font-family: "brandon-grotesque", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

/* ==========================================================================
   3. LAYOUT (Header, Nav & Footer)
   ========================================================================== */

header {
  position: fixed;
  top: 0;
  width: 100%;
  padding-top: 1rem;
  z-index: 100;
  background-image: url(../assets/Header_Stroke.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100vw 10vh;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5vw;
  margin: 0;
  padding: 1rem;
}

nav a:hover {
  color: #b9d9ec;
}

.site_logo img {
  width: 15vw;
  transition: transform 0.3s ease;
}

.site_logo:hover img {
  transform: scale(1.05);
}

main {
  padding-top: 8rem; /* Ruimte voor fixed header */
  color: #19415b;
}

footer {
  background-color: #19415b;
}
.footer_gridflex {
  background-color: #19415b;
  color: white;
  padding: 3rem;
  display: grid;
  grid-template: 3fr 1fr / 1fr 1fr 1fr 1fr;
  gap: 1rem;
  text-align: left;
  justify-items: center;
}

.copyright {
  display: block;
  padding-bottom: 1rem;
  text-align: center;
}

/* ==========================================================================
   4. HERBRUIKBARE COMPONENTEN (Knoppen)
   ========================================================================== */

.knop_menu,
.knop_ontbijtmand {
  display: inline-block;
  color: white;
  background-color: #19415b;
  padding: 1rem 2rem;
  margin-top: 2rem;
  font-size: 1.6rem;
  transition: transform 0.3s ease;
}

.knop_menu:hover,
.knop_ontbijtmand:hover {
  transform: scale(1.05);
}

.reserveerknop {
  position: fixed;
  bottom: 1rem;
  right: 2rem;
  z-index: 110;
}

.reserveerknop img {
  width: 15rem;
  transition: transform 0.3s ease;
}

.reserveerknop:hover img {
  transform: scale(1.05);
}

.terug_omhoogknop img {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1;
  max-width: 5rem;
}

.terug_omhoogknop img {
  transition: transform 0.3s ease;
}

.terug_omhoogknop:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   5. HOMEPAGE SECTIES
   ========================================================================== */

.homepage_welcomesection {
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
}

.homepage_welcomesection img {
  width: 6vw;
  margin-bottom: 2rem;
}

.homepage_lightbg_concept,
.homepage_lightbg_ontbijtmanden {
  background-color: white;
  padding: 8rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1;
  gap: 2rem;
}

.homepage_lightbg_review {
  background-color: white;
  width: 100vw;
  padding: 8rem;
  display: flex;
  flex-flow: column;
  justify-content: space-around;
  align-items: center;
  z-index: 1;
}

.img_concept,
.img_ontbijtmand,
.img_mémé {
  width: 25vw !important;
}

.homepage_darkbg_aanbod,
.homepage_darkbg_onsmémé {
  background-color: #19415b;
  color: white;
  padding: 8rem;
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 0;
}

.homepage_darkbg_aanbod {
  display: grid;
  grid-template: 1fr 2fr 1fr / repeat(4, 1fr);
  justify-items: center;
}

.homepage_darkbg_aanbod img {
  width: 15vw;
}

.homepage_darkbg_onsmémé {
  display: flex;
  gap: 2rem;
}

.onsmémé_flexbox {
  display: flex;
  gap: 2rem;
  flex-flow: column;
}

/* Grid posities aanbod */
.img_koffie {
  grid-area: 2 / 1;
}
.koffie {
  grid-area: 3 / 1;
}
.img_patisserie {
  grid-area: 2 / 2;
}
.patisserie {
  grid-area: 3 / 2;
}
.img_lunch {
  grid-area: 2 / 3;
}
.lunch {
  grid-area: 3 / 3;
}
.img_ontbijtmanden {
  grid-area: 2 / 4;
}
.ontbijtmanden {
  grid-area: 3 / 4;
}

/* 

/*Paginaspecifieke stijlregels, hier: menu*/

.menu_navigatie {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 2rem;
}

.menu_navigatie > li {
  border: 2px solid #b9d9ec;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.main_menu > h1 {
  color: #19415b;
  margin: 10rem;
}

.menu_bg_layout {
  background-color: white;
  margin: 10rem;
  padding: 2rem;
  border-radius: 0.6rem;
}

.menu_bg_layout > h1 {
  color: #19415b;
  padding: 0;
}

.menu_navigationlist > a:link,
.menu_navigationlist > a:link,
.menu_navigationlist > a:visited,
.menu_navigationlist > a:active {
  color: #19415b;
}

.menu_navigationlist > a:hover {
  color: #b9d9ec;
}

.menu_container {
  color: #19415b;
  margin-left: 4rem;
  margin-right: 4rem;
  margin-bottom: 4rem;
  padding: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.menu_section {
  margin-bottom: 2rem;
  scroll-margin-top: 25vh;
}

.menu_section > h3 {
  color: #19415b;
  font-size: 3rem;
}

.menu_text > h4 {
  color: #19415b;
  font-weight: 400;
  min-width: 200px;
}

.menu_item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem;
}

.menu_text {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.menu_text > p {
  font-size: 1rem;
}

.menu_commentaar {
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-weight: 600;
  font-family: "brandon-grotesque";
  font-size: 1.6rem;
}

.menu_price {
  min-width: fit-content;
}

/* ==========================================================================
   ?. CONTACT 
   ========================================================================== */

.contact_flex {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin-top: 2rem;
  align-items: stretch;
}

.contact_image {
  flex: 0 1 30%;
  display: flex;
  max-width: 32%;
  align-items: stretch;
}

.contact_image img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.contact_form {
  flex: 1 1 500px;
}

.contact_form p {
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.verzendknop {
  display: inline-block;
  color: white;
  background-color: #19415b;
  padding: 0.5rem 2rem;
  font-size: 1 rem;
  transition: transform 0.3s ease;
  border: none;
  transition: transform 0.3s ease;
}

.verzendknop {
  transform: scale(1.05);
}

input {
  min-width: 20vw;
  min-height: fit-content;
  font-family: "brandon-grotesque", sans-serif;
  border: solid 1px #19415b;
}

textarea {
  min-width: 40vw;
  font-family: "brandon-grotesque", sans-serif;
  border: none;
  color: #19415b;
}

textarea#bericht {
  font-family: "brandon-grotesque", sans-serif;
  color: #19415b;
  border: solid 1px #19415b;
}

label {
  font-size: 1.5rem;
}

select#reden {
  font-family: "brandon-grotesque", sans-serif;
  color: #19415b;
  border: solid 1px #19415b;
}

select#uur {
  font-family:
    "brandon-grotesque" !important,
    sans-serif;
  color: black;
  border: solid 1px #19415b !important;
}

.contact_miniflex {
  display: flex;
  gap: 2rem;
}

.bedankt {
  text-align: center;
}

.knop_startpagina {
  margin: 2rem;
}

.contact_link {
  text-decoration: underline;
}

.contact_link:hover {
  color: #b9d9ec;
}

/* ==========================================================================
   ?. ONTBIJTMAND
   ==========================================================================*/

.ontbijtmand_flex {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin-top: 2rem;
  align-items: center;
}

.text_ontbijtmand p {
  margin-bottom: 1rem;
  max-width: 60vw;
  font-size: 1.6rem;
}

/* ==========================================================================
   ?. MOBILE
   ==========================================================================*/
@media (max-width: 550px) {
  /*Algemene aanpassingen*/

  body {
    font-size: 1rem;
    line-height: 1.2rem;
    font-weight: 300;
  }

  h1 {
    font-size: 2.5rem;
    padding-bottom: 2rem;
    line-height: 2.8rem;
  }
  .h1_bigger {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2rem;
    font-weight: 200;
    padding-bottom: 2rem;
    padding-top: 1rem;
    font-family: "Vujahday Script";
  }

  h3 {
    color: white;
    font-family: "Vujahday Script";
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  h4 {
    color: white;
    font-family: "brandon-grotesque", sans-serif;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
  }

  /*Mobile Header*/
  header {
    background-size: 150% 200%; /* Zorgt dat de stroke niet te klein wordt */
    margin-top: 1.5rem;
    position: fixed;
    background-image: url(../assets/Header_Stroke.svg);
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
    font-weight: 300;
  }

  nav > ul {
    flex-direction: row;
    gap: 0.5rem;
    padding: 1rem 1rem;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    color: white;
    z-index: 1;
    font-weight: 300 !important;
    font-size: 1rem;
    padding-bottom: 2rem;
  }

  nav > ul li:nth-child(2) {
    margin-right: auto; /* Dit duwt alles na dit item naar de uiterste rechterkant */
  }

  .site_logo img {
    position: absolute;
    top: 0rem;
    left: 50%; /* Zet de linkerkant exact in het midden van het scherm */
    transform: translateX(-50%);
    width: 25vw;
  }

  .site_logo:hover img,
  .site_logo:active img {
    transform: translateX(-50%) scale(1.05);
  }

  /*Knoppen*/

  .knop_menu,
  .knop_contact {
    display: block;
    color: white;
    background-color: #19415b;
    padding: 1rem;
    max-width: fit-content;
    margin: 0 auto;
    margin-top: 2rem;
    font-size: 1rem;
    text-decoration: none;
  }

  .reserveerknop {
    position: fixed;
    z-index: 3;
    right: -1rem;
    bottom: 1rem;
  }

  .reserveerknop img {
    width: 10rem;
  }

  .knop_ontbijtmand {
    display: block;
    color: white;
    background-color: #19415b;
    padding: 1rem;
    max-width: fit-content;
    margin: 0 auto;
    margin-top: 2rem;
    font-size: 1rem;
    text-decoration: none;
  }

  /*Specifieke Sections op homepage*/

  .homepage_welcomesection img {
    width: 30vw; /* Icoontje iets groter op mobiel */
  }

  .homepage_lightbg_concept,
  .homepage_lightbg_ontbijtmanden,
  .homepage_darkbg_onsmémé {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .concept_image {
    width: 50vw;
  }

  .homepage_darkbg_onsmémé {
    flex-direction: column;
    text-align: center;
  }

  .homepage_darkbg_aanbod {
    display: flex; /* Flex is makkelijker voor mobiel dan grid resetten */
    flex-direction: column;
    gap: 2rem;
  }

  .homepage_lightbg_concept,
  .homepage_lightbg_ontbijtmanden,
  .homepage_lightbg_review,
  .homepage_darkbg_onsmémé,
  .homepage_darkbg_aanbod {
    padding: 4rem 1.5rem; /* Veel minder zijwaartse padding */
    width: 100vw; /* Gebruik 100% ipv 100vw om horizontale scroll te voorkomen */
  }

  .koffie,
  .patisserie,
  .lunch,
  .ontbijtmanden,
  .img_koffie,
  .img_patisserie,
  .img_lunch,
  .img_ontbijtmanden {
    grid-row: auto !important;
    grid-column: auto !important;
    width: 50% !important; /* Zodat de icoontjes niet het hele scherm vullen */
  }

  /* 4. Fix de negatieve marges (deze veroorzaken vaak de overlapping op mobiel) */
  .homepage_lightbg_review,
  .homepage_lightbg_ontbijtmanden,
  .homepage_darkbg_onsmémé {
    margin-top: -2rem; /* Iets minder extreem maken voor mobiel */
    top: 0;
    background-position: center;
  }

  .homepage_darkbg_aanbod h4 {
    font-size: 1rem;
    margin: 0;
    padding: 0;
  }

  .img_concept,
  .img_ontbijtmand,
  .img_mémé {
    width: 50vw !important;
  }

  /* Footer fix */
  .footer_gridflex {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    font-size: 1rem;
  }

  h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
  }

  .footer_gridflex h3 {
    font-size: 1.5rem;
  }

  /*Menu Pagina*/

  .menu_container {
    grid-template-columns: 1fr;
    padding: 0rem !important;
  }

  .menu_bg_layout {
    background-color: white;
    margin: 1rem;
    padding: 2rem;
    border-radius: 0.6rem;
    font-size: 1rem;
  }

  .terug_omhoogknop img {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1;
    max-width: 3rem;
  }

  .menu_navigatie {
    justify-content: center;
  }

  .menu_navigatie > li {
    padding: 0.2rem;
    font-size: 1rem;
  }

  .menu_item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .menu_section > h3 {
    color: #19415b;
    font-size: 1.6rem;
    margin-top: 1rem;
    margin-bottom: 0.6rem;
  }

  .menu_text > h4 {
    color: #19415b;
    font-weight: 400;
    font-size: 1rem;
    text-align: left;
    margin-bottom: 0rem;
    line-height: 1.6rem;
  }

  .menu_text > p {
    font-size: 1rem;
    line-height: 1.6rem;
  }

  .menu_text {
    flex-direction: column;
    gap: 0.2rem;
  }

  .menu_price {
    font-size: 0.8rem;
  }

  .menu_commentaar {
    font-size: 1rem;
  }

  /*Contact Pagina*/

  .contact_form p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  label {
    font-size: 1rem;
  }

  .contact_image img {
    width: 60vw;
  }

  .contact_flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .contact_miniflex {
    flex-direction: column;
    gap: 0rem;
  }

  .form-group {
    margin: 1;
    padding: 0;
  }

  input {
    min-width: 50vw;
  }

  textarea {
    min-width: 50vw;
  }

  #reden {
    max-width: 50vw;
  }

  /*Ontbijtmand Pagina*/

  .ontbijtmand_flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .text_ontbijtmand p {
    margin-bottom: 1rem;
    max-width: 60vw;
    font-size: 1rem;
    max-width: 100%; /* Verander 60vw naar 100% */
    text-align: center;
  }

  /* Oplossing oorzaak 1: Geef de container de volle breedte */
  .contact_image {
    max-width: 100%; /* Overschrijf de 32% */
    flex: 0 0 100%; /* Zorg dat hij de volledige breedte claimt in de flex-kolom */
    justify-content: center; /* Oplossing oorzaak 2: Centreer de foto in de container */
  }

  /* De afbeelding zelf */
  .contact_image img {
    width: 60vw; /* Dit is prima, maar staat nu netjes in het midden */
    height: auto;
  }

  /* Zorg dat de flex-container geen zijwaartse ruimte overlaat voor tekst */
  .contact_flex,
  .ontbijtmand_flex {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* ==========================================================================
   ?. TABLET
   ==========================================================================*/

@media (min-width: 550px) and (max-width: 1000px) {
  header {
    margin-top: 1rem;
    position: fixed;
    background-image: url(../assets/Header_Stroke.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 150vw 10vh;
    z-index: 2;
    font-weight: 100;
  }

  nav > ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100vw;
    align-items: center;
    justify-content: space-between;
    color: white;
    z-index: 1;
    font-weight: 100 !important;
    font-size: 1.4rem;
    padding: 1rem;
    padding-bottom: 1.5rem;
  }

  ul li:nth-child(2) {
    margin-right: auto; /* Dit duwt alles na dit item naar de uiterste rechterkant */
  }

  .site_logo img {
    position: fixed;
    top: -0rem;
    left: 50%; /* Zet de linkerkant exact in het midden van het scherm */
    transform: translateX(-50%);
    width: 25vw;
  }

  /*Footer*/

  /* Footer fix */

  .footer_gridflex {
    font-size: 1.2rem;
    gap: 2rem;
    justify-items: center;
  }

  h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
  }

  .footer_gridflex h3 {
    font-size: 1.5rem;
    text-align: center;
  }

  .footer_gridflex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    justify-items: start;
  }

  .copyright {
    font-size: 1rem;
  }

  .homepage_lightbg_concept,
  .homepage_lightbg_ontbijtmanden,
  .homepage_lightbg_review,
  .homepage_darkbg_onsmémé,
  .homepage_darkbg_aanbod {
    flex-direction: column;
    padding: 6rem 4rem; /* Veel minder zijwaartse padding */
    width: 100%; /* Gebruik 100% ipv 100vw om horizontale scroll te voorkomen */
    gap: 2rem;
    text-align: center;
  }

  .img_concept,
  .img_ontbijtmand,
  .img_mémé {
    width: 40vw !important;
  }

  /*Home Pagina - Aanbod Sectie*/

  .homepage_darkbg_aanbod {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .homepage_darkbg_aanbod img {
    width: 30vw;
  }

  /*Home Pagina - Ons Mémé Sectie*/

  .homepage_darkbg_onsmémé {
    flex-direction: column;
  }

  /*Menu Pagina*/

  .menu_container {
    grid-template-columns: 1fr;
    padding: 0rem !important;
  }

  .menu_navigatie {
    justify-content: center;
  }

  .menu_navigatie > li {
    padding: 0.2rem;
  }

  .menu_bg_layout {
    background-color: white;
    margin: 2rem;
    padding: 2rem;
    border-radius: 0.6rem;
    font-size: 1rem;
  }

  .menu_item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .menu_section > h3 {
    color: #19415b;
    font-size: 2em;
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
  }

  .menu_text > h4 {
    color: #19415b;
    font-weight: 400;
    font-size: 1.4rem;
    text-align: left;
    margin-bottom: 0rem;
  }

  .menu_text > p {
    font-size: 1rem;
    line-height: 1.2rem;
  }

  .menu_text {
    flex-direction: row;
    gap: 0.8rem;
    align-items: center;
    max-width: 500px;
    margin-bottom: 1rem;
  }

  /*Contact Pagina*/

  .contact_image {
    flex: 0 1 50%;
    display: flex;
    max-width: 32%;
    align-items: stretch;
  }

  .reserveerknop {
    position: fixed;
    z-index: 3;
    right: 1rem;
    bottom: 1rem;
  }

  .reserveerknop img {
    width: 10m;
  }
}

@media (min-width: 1500px) {
  .homepage_text {
    max-width: 40vw;
  }
}
