/*=============== LOCAL FONT EMBEDDING ===============*/
@import url("../css/fontembedding.css");
/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  /*========== Colors ==========*/
  --first-color: #fff;
  --first-color-shape: #fff;
  --title-color: rgb(230, 0, 126);
  --title-color-dark: #fff;
  --text-color: rgb(0, 0, 0);
  --text-color-dark: rgb(51, 51, 51);
  --text-color-light: rgb(102, 102, 102);
  --text-color-emph: rgb(230, 0, 126);
  --body-color: hsl(273, 100%, 99%);
  --container-color: #fff;
  --container-color-dark: rgb(190, 174, 151);
  --container-katalog-color: rgb(226, 207, 180);
  /*========== Font and typography ==========*/
  --body-font: "Poppins", sans-serif;
  --big-font-size: 1.5rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.813rem;
  /*========== z index ==========*/
  --z-fixed: 100;
}

@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 2rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text-color);
  overflow-x: hidden;
}

h1 {
  color: var(--title-color);
}

h2 {
  color: var(--text-color-light);
}

h3 {
  font-style: bold;
  font-size: 1rem;
  padding-bottom: calc(0.5 * var(--normal-font-size));
}

p {
  padding-bottom: var(--normal-font-size);
}

ul {
  list-style: none;
}

a {
  color: var(--text-color-light);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/

/*========== Content Organizers ==========*/

.container {
  max-width: 1024px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.section {
  max-width: 700px;
  padding: 4.5rem 0 1rem;
}

.flex {
  display: flex;
  justify-content: right;
  align-items: center;
}

/*========== Text ==========*/

.h1__titlebox {
  padding-top: 3.5rem;
  padding-bottom: var(--big-font-size);
}

.img__desc {
  font-size: var(--small-font-size);
  font-style: italic;
  color: var(--text-color-light);
}

a.hyperlink__emph {
  color: var(--text-color-emph);
}

.abstract__german {
  color: var(--text-color);
}

.abstract__english {
  color: var(--text-color-dark);
}

.abstract__french {
  color: var(--text-color-light);
}

hi.colored {
  color: var(--text-color-emph);
}

hi.italic {
  font-style: italic;
}

p.caption {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

/*=============== HEADER Y NAV ===============*/
.nav {
  background-color: var(--container-color-dark);
  padding-top: 2rem;
  padding-bottom: 10rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow-y: scroll;
}

.nav__menu {
  max-width: 400px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.nav__close .nav__img {
  position: relative;
  display: inline-flex;
  height: 1rem;
  color: var(--text-color-dark);
  cursor: pointer;
  margin-bottom: 3.5rem;
}

.nav__data {
  position: relative;
  margin-bottom: 3rem;
}

.nav__subtitle {
  display: block;
  color: var(--title-color-dark);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.nav__title {
  color: var(--title-color);
  font-size: var(--big-font-size);
  line-height: 130%;
  display: flex;
  flex-direction: column;
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}

.nav__link {
  color: var(--text-color-dark);
  display: inline-flex;
  align-items: center;
  column-gap: 1rem;
  font-size: var(--small-font-size);
  font-weight: 500;
  transition: 0.3s;
}

.nav__link:hover {
  color: var(--title-color-dark);
}

.main {
  position: relative;
  background-color: var(--body-color);
  transition: 0.4s;
}

.header {
  width: 100%;
  background-color: var(--body-color);
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed); /*stacks header on top of main content*/
}

.header__nav {
  height: var(--header-height);
  display: flex;
  justify-content: right;
  align-items: center;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.header__logo {
  font-weight: 500;
}

.header__toggle .nav__img {
  cursor: pointer;
  height: 1.15rem;
  stroke: var(--title-color);
}

/* Show menu */
.show-menu {
  transform: translate(70%);
}

/* Change background header */
.scroll-header {
  box-shadow: 0 1px 4px rgba(40, 37, 37, 0.1);
}

/* Active link */
.active-link {
  color: var(--title-color-dark);
}

/*=============== HERO ===============*/

#hero {
  width: 100%;
  height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("../../img/hero_cropped.jpg");
  /*background-position: bottom right;*/
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.hero__textbox {
  text-align: right;
  transform: translateY(20%);
  padding: var(--header-height);
  overflow: hidden;
}

.hero__textbox .hero__title {
  font-size: 2rem;
}

.hero__textbox .hero__subtitle {
  color: #fff;
  font-style: italic;
  padding-bottom: var(--normal-font-size);
}

.hero__textbox .hero__content {
  color: #fff;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .nav__menu {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

@media screen and (max-width: 425px) {
  .show-menu {
    transform: translate(90%);
  }
}

/* For medium devices */
@media screen and (min-width: 767px) {
  .show-menu {
    transform: translate(40%);
  }

  .hero__textbox .hero__title {
    font-size: 4rem;
  }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  /* deactivated: causes disproportionate spaces in navbar and content on the left margin
  .container {
    margin-left: auto;
    margin-right: auto;
  }
*/

  .container {
    margin-left: 6rem;
  }

  .header__nav {
    height: calc(var(--header-height) + 1.5rem);
  }

  .hero__textbox {
    padding: calc(var(--header-height) + 1.5rem);
  }

  .nav__link {
    font-size: var(--normal-font-size);
  }

}
