/* GLOBAL ------------------------------------------------------------------------------------------------------------- */
:root {
  box-sizing: border-box; /*Prevent overflow/vertical scroll bars*/
  scroll-behavior: smooth;

  /* COLORS */
  --primary: #466530;
  --secondary: #C0D253;
  --tertiary: #960652;
  --white: #fafafa;
  --light: #EEF2D3;

  /* OPACITY */

  /* LINES */

  /* EDGES */
  --borderRadius: 14px;

  /* GAPS (HORIZONTAL) */
  --xsGap: 50px;
  --sGap: 100px;
  --mGap: 150px;
  --lGap: 200px;
  --xlGap: 500px;

  /* MARGIN AND GUTTER (VERTICAL) */
  --sideMargin: 75px;

  /* FONTS DESKTOP */
  --h1FontSize: 7rem;
  --h1LineHeight: 6.5rem;
  --h2FontSize: 3rem;
  --h2LineHeight: 3.5rem;
  --h3FontSize: 3rem;
  --h3LineHeight: 3.5rem;

  --textFontSize: 1.8rem;
  --textLineHeight: 2.25rem;

  --menuFontSize: 2rem;
  --menuLineHeight: 2.25rem;
  --buttonFontSize: 2rem;
  --buttonLineHeight: 2.25rem;
}

html {
  height: 100%; /* Force footer to end of page */
}

@font-face {
  font-family: "Bevellier-Regular";
  src: url(/assets/fonts/Bevellier_Complete/ttf/Bevellier-Regular.ttf)
      format("truetype"),
    url(/assets/fonts/Bevellier_Complete/woff2/Bevellier-Regular.woff2)
      format("woff2"),
    url(/assets/fonts/Bevellier_Complete/woff/Bevellier-Regular.woff)
      format("woff");
}

@font-face {
  font-family: "Bevellier-Italic";
  src: url(/assets/fonts/Bevellier_Complete/ttf/Bevellier-Italic.ttf)
      format("truetype"),
    url(/assets/fonts/Bevellier_Complete/woff2/Bevellier-Italic.woff2)
      format("woff2"),
    url(/assets/fonts/Bevellier_Complete/woff/Bevellier-Italic.woff)
      format("woff");
}

@font-face {
  font-family: "Bevellier-Semibold";
  src: url(/assets/fonts/Bevellier_Complete/ttf/Bevellier-Semibold.ttf)
      format("truetype"),
    url(/assets/fonts/Bevellier_Complete/woff2/Bevellier-Semibold.woff2)
      format("woff2"),
    url(/assets/fonts/Bevellier_Complete/woff/Bevellier-Semibold.woff)
      format("woff");
}

@font-face {
  font-family: "Bevellier-Black";
  src: url(/assets/fonts/Bevellier_Complete/ttf/Bevellier-Black.ttf)
      format("truetype"),
    url(/assets/fonts/Bevellier_Complete/woff2/Bevellier-Black.woff2)
      format("woff2"),
    url(/assets/fonts/Bevellier_Complete/woff/Bevellier-Black.woff)
      format("woff");
}

@font-face {
  font-family: "Bevellier-Light";
  src: url(/assets/fonts/Bevellier_Complete/ttf/Bevellier-Light.ttf)
      format("truetype"),
    url(/assets/fonts/Bevellier_Complete/woff2/Bevellier-Light.woff2)
      format("woff2"),
    url(/assets/fonts/Bevellier_Complete/woff/Bevellier-Light.woff)
      format("woff");
}

* {
  margin: 0px; /* Default margins */
  padding: 0px; /* Default padding */
  font-family: "Bevellier-Regular", sans-serif;
  font-size: 2rem;
  line-height: 2.25rem;
  text-decoration: none;
  color: var(--primary);
  scroll-behavior: smooth; /* Smooth scrolling */
  word-break: break-word;
}

body {
  display: flex;
  flex-direction: row;
  background-color: var(--white);
}

main {
  width: calc(80% - (2 * var(--sGap)));
  padding: 25px var(--sGap);
  margin-left: 28%;
}

main p{
  max-width: 50vw;
}

/* FONTS -------------------------------------------------------------------------------------------------------------- */
h1 {
  font-family: "Bevellier-Semibold", sans-serif;
  font-size: var(--h1FontSize);
  line-height: var(--h1LineHeight);
  letter-spacing: 0.05rem;
  text-decoration: none;
  color: var(--primary);
}

h2 {
  font-family: "Bevellier-semibold", sans-serif;
  font-size: var(--h2FontSize);
  line-height: var(--h2LineHeight);
  letter-spacing: 0.05rem;
  text-decoration: none;
  color: var(--secondary);
  margin-bottom: 5vh;
}

h3 {
  font-family: "Bevellier-Regular", sans-serif;
  font-size: var(--h3FontSize);
  line-height: var(--h3LineHeight);
  letter-spacing: 0.05rem;
  text-decoration: none;
  color: var(--tertiary);
  margin-top: 5vh;
}

h4 {
  font-family: "Bevellier-Semibold", sans-serif;
  font-size: 4rem;
  line-height: 2.25rem;
  letter-spacing: 0.05rem;
  text-decoration: none;
  color: var(--tertiary);
}

h5 {
  font-family: "Bevellier-Regular", sans-serif;
  font-size: 2rem;
  line-height: 2.25rem;
  letter-spacing: 0.05rem;
  text-decoration: none;
  color: var(--tertiary);
}

li,
p {
  font-family: "Bevellier-Regular", sans-serif;
  font-size: var(--textFontSize);
  line-height: var(--textLineHeight);
  letter-spacing: 0.05rem;
  text-decoration: none;
  color: var(--primary);
  margin-bottom: 0vh;
}

a {
  font-family: "Bevellier-Regular", sans-serif;
  font-size: var(--textFontSize);
  line-height: var(--textLineHeight);
  letter-spacing: 0.05rem;
  text-decoration: underline;
  color: var(--tertiary);
}

.menu-text {
  font-family: "Bevellier-Semibold", sans-serif;
  font-size: var(--menuFontSize);
  line-height: var(--menuLineHeight);
  letter-spacing: 0.05rem;
  text-decoration: none;
  color: var(--primary);
}

button {
  font-family: "Bevellier-Semibold", sans-serif;
  font-size: var(--buttonFontSize);
  line-height: var(--buttonLineHeight);
  letter-spacing: 0.05rem;
  text-decoration: none;
  color: var(--white);
}


/* KTI ---------------------------------------------------------------------------------------------------------------- */
strong {
  font-family: "Bevellier-semibold", sans-serif;
}

em {
  font-family: "Bevellier-Italic", sans-serif;
}

li {
  list-style-type: disc;
}

/* BUTTONS ------------------------------------------------------------------------------------------------------------ */

/* HEADER ------------------------------------------------------------------------------------------------------------- */
header {
  display: flex;
  flex-direction: column;
  width: 20%;
  height: calc(100vh - (2 * var(--xsGap)));
  background-color: var(--tertiary);
  padding: var(--xsGap) 4%;
  position: fixed
}

header h3 {
  color: var(--light);
  text-decoration: none;
  list-style-type: none; 
  font-family: "Bevellier-Regular", sans-serif;
  line-height: 1.2rem;
  font-size: 1.2rem;
  margin-bottom: 1vh;
  margin-top: 0vh;
}
header a {
  color: var(--light);
  text-decoration: none;
  font-family: "Bevellier-Semibold", sans-serif;   
  font-size: 2rem;
  line-height: 2rem;
  text-transform: uppercase;
}
header a:hover {
  color: var(--secondary);
}

Header p {
  margin-bottom: 0vh;
}


.menuTitle a {
  font-family: "Bevellier-Semibold", sans-serif;
  font-size: 3rem;
  line-height: var(--menuLineHeight);
  color: var(--light);
  margin-bottom: 0;
  
}



.menuWeek{
  padding-left: 0vw;
  margin-bottom: 0;
}

.menuPhase {
  margin-bottom: 0;
  margin-top: 4vh;
}

header li {
  list-style-type: none; /* Remove default bullet points */
}

#logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
}

.menuContent {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menuTheorie {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
  margin-top: 3vh;
  margin-bottom: 3vh;
}


.menuTheorie a {
  font-family: "Bevellier-Regular", sans-serif;
  font-size: 1.5rem;
}

.socials {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.socials img {
  width: 80%;
  border-radius: 0px;
}

.socials a {
  width: 2vw;
  margin: 0;
  padding-right: 1vw;
}

/* FOOTER --------------------------------------------------------------------------------------------------------------- */

/* MULTIPLE PAGES ----------------------------------------------------------------------------------------------------- */
video {
  width: 100%;
  height: auto;
  margin-bottom: 5vh;
  margin-top: 5vh;
  border: 0;
  border-radius: var(--borderRadius);
}

main img {
  width: 100%;
  height: auto;
  margin-bottom: 5vh;
  margin-top: 5vh;
  border-radius: var(--borderRadius);
}

/* Base gallery layout (your existing structure) */
.gallery-block {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 5vh;
  margin-top: 5vh;
}

.gallery-images {
  display: grid;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  gap: 10px;
}

picture {
  display: flex;
  position: relative;
}

/* Dynamic grid column definitions */
.gallery-block.columns-2 .gallery-images {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-block.columns-3 .gallery-images {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-block.columns-4 .gallery-images {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-image {
  margin: 0;
    list-style: none;
}

.gallery-image img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
    list-style: none;
  margin-bottom: 0;
  margin-top: 0;
}

.gallery-image img:hover {
  transform: scale(0.975);
}


/* Lightbox overlay */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
}

.lightbox.hidden {
  display: none;
}

.lightbox-content {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  background-color: var(--white);
}


main ul {
  list-style-position: outside;
  padding-left: 1.5rem;
  max-width: 30vw;
  margin-top: 2.5vh;
  margin-bottom: 2.5vh;
}

main li {
  margin-bottom: 1rem;
  padding-left: 0;
  text-indent: 0;
}

main > :last-child {
  margin-bottom: 0;
}


/* HOMEPAGE ----------------------------------------------------------------------------------------------------------- */

main h1 {
  margin-bottom: 5vh;
}

main h3 {
  color: var(--secondary);
}

main h4 {
  margin-top: 10vh;
  text-transform: uppercase;
}

main h5 {
  color: var(--tertiary);
  margin-top: 5vh;
}


/* MEDIA QUERIES ------------------------------------------------------------------------------------------------------ */

/* MacBook 14" and similar (~1600px and below) */
@media screen and (max-width: 1600px) {
  :root {
    --h1FontSize: 5.5rem;
    --h1LineHeight: 5.5rem;
    --h2FontSize: 2.5rem;
    --h2LineHeight: 3rem;
    --h3FontSize: 2.5rem;
    --h3LineHeight: 3rem;

    --menuFontSize: 1.8rem;
    --menuLineHeight: 2rem;
    --buttonFontSize: 1.8rem;
    --buttonLineHeight: 2rem;
  }

  .menuTitle a {
    font-size: 2.5rem;
  }

  header a {
    font-size: 1.8rem;
    line-height: 2rem;
  }

  .menuTheorie a {
    font-size: 1.4rem;
  }

  header h3 {
    font-size: 1rem;
    line-height: 1.1rem;
  }

  h4 {
    font-size: 3.5rem;
    line-height: 2.25rem;
  }
  
}

/* Even smaller laptops (~1360px and below) */
@media screen and (max-width: 1360px) {
  :root {
    --h1FontSize: 4.5rem;
    --h1LineHeight: 4.8rem;
    --h2FontSize: 2.2rem;
    --h2LineHeight: 2.8rem;
    --h3FontSize: 2.2rem;
    --h3LineHeight: 2.8rem;

    --menuFontSize: 1.6rem;
    --menuLineHeight: 1.9rem;
    --buttonFontSize: 1.6rem;
    --buttonLineHeight: 1.9rem;
  }

  .menuTitle a {
    font-size: 2.2rem;
  }

  header a {
    font-size: 1.6rem;
    line-height: 1.6rem;
  }

  .menuTheorie a {
    font-size: 1.3rem;
  }

  header h3 {
    font-size: 0.9rem;
    line-height: 0.9rem;
  }

  h4 {
    font-size: 3rem;
    line-height: 2rem;
  }
}

/* Smaller laptops and large tablets (≤1024px) */
@media screen and (max-width: 1140px) {
  :root {
    --h1FontSize: 3.5rem;
    --h1LineHeight: 4rem;
    --h2FontSize: 2rem;
    --h2LineHeight: 2.5rem;
    --h3FontSize: 2rem;
    --h3LineHeight: 2.5rem;

    --menuFontSize: 1.4rem;
    --menuLineHeight: 1.8rem;
    --buttonFontSize: 1.4rem;
    --buttonLineHeight: 1.8rem;
  }

  .menuTitle a {
    font-size: 2rem;
  }

  header a {
    font-size: 1.4rem;
    line-height: 1.4rem;
  }

  .menuTheorie a {
    font-size: 1.2rem;
  }

  header h3 {
    font-size: 0.85rem;
    line-height: 0.85rem;
  }

  h4 {
    font-size: 2.5rem;
    line-height: 1.8rem;
  }
}