/* Reset desktop css */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
button,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Variables */

:root {
  /* Font Sizes */

  --font-size-base: 16px;
  --font-size-small: calc(var(--font-size-base) * 0.75);
  --font-size-medium: calc(var(--font-size-base) * 1.25);
  --font-size-large: calc(var(--font-size-base) * 1.5);
  --font-size-xl: calc(var(--font-size-base) * 2);
  --font-size-xxl: calc(var(--font-size-base) * 2.5);
  --font-size-xxxl: calc(var(--font-size-base) * 3);

  /* Colors */

  /* Colors for title */
  --color-title-primary: #3b3838;
  --color-title-secondary: lightslategrey;

  /* Text colors */
  --color-text-primary: #3b3838;
  --color-text-secondary: lightslategrey;
  --color-text-hover: #008080;

  /* Used as background of card, dropdown, and burger button */
  --color-primary: #82c4c3;
  /* Used as hover background of card, dropdown, and nav bar */
  --color-secondary: #cfecec;

  /* Used in color bar */
  --color-accent-light: #cfecec;
  --color-accent-medium: #5fb3b3;
  --color-accent-dark: #007f7f;

  --color-text-hover-bg: #00808080;
  /* #008080 with 50% opacity */

  /* Used as background of card, dropdown, and burger button */
  --color-primary-bg: #82c4c380;
  /* #82C4C3 with 50% opacity */
  /* Used as hover background of card, dropdown, and nav bar */
  --color-secondary-bg: #cfecec80;
  /* #CFECEC with 50% opacity */

  /* Used in color bar */
  --color-accent-light-bg: #cfecec80;
  /* #CFECEC with 50% opacity */
  --color-accent-medium-bg: #5fb3b380;
  /* #5FB3B3 with 50% opacity */
  --color-accent-dark-bg: #007f7f80;
  /* #007F7F with 50% opacity */
}

:root {
  --max-page-width: 1300px;

  --padding-top: 2rem;
  --padding-side: 3rem;

  --nav-title-primary-margin-right: 0.5rem;
  --nav-bar-height: 2.5rem;
  --nav-bar-margin-top: 0.5rem;
  --nav-bar-link-padding: 0.5rem 1.5rem;
  --burger-padding-lr: 1.5rem;

  --dropdown-border-radius: 6px;
  --dropdown-link-padding: 0.5rem 0.75rem;

  --padding-grid: 3rem;
  --padding-grid-section: 2rem;
  --teaser-content-padding: 2rem;
  --teaser-title-margin-bottom: 1rem;
  --teaser-subtitle-margin-bottom: 0.5rem;

  --margin-expertise-section: 3rem;
  --text-column-padding: 4rem;
  --mobile-text-column-padding: 2rem;

  --copyright-text-margin-tb: 0.5rem;
  --footer-list-entry-margin-right: 1rem;
  --footer-list-link-padding: 0.25rem;
  --mobile-footer-list-last-link-margin-bottom: 0.25rem;
}

/* For Mobile */
@media (max-width: 800px) {
  :root {
    --padding-top: 1rem;
    --padding-side: 1.5rem;

    --nav-bar-height: 1.5rem;
    --nav-bar-margin-top: 1rem;
    --nav-bar-link-padding: 0.75rem 1.5rem;

    --dropdown-link-padding: 0.75rem 0.75rem;

    --padding-grid: 2rem;
    --padding-grid-section: 1.5rem;

    --margin-expertise-section: 2rem;
  }
}

@media (max-width: 450px) {
  :root {
    --padding-side: 0.5rem;
    --padding-grid: 1rem;
    --padding-grid-section: 1rem;
  }
}

@media (max-width: 410px) {
  :root {
    --font-size-base: 12px;
  }
}

/* General */
@font-face {
  font-family: "Roboto";
  src: url("/fonts/roboto-v47-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("/fonts/roboto-v47-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

html {
  font-family: "Roboto", "Verdana", sans-serif;
  font-size: var(--font-size-base);
  letter-spacing: 0px;
  word-spacing: 0px;
  color: var(--color-text-primary);
  font-weight: 400;
  text-decoration: none;
  font-style: normal;
  font-variant: normal;
  text-transform: none;
}

body {
  overflow-x: hidden;
  background-image: url("../images/bg_image.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  line-height: 1.5;
  /* background: linear-gradient(to right, #FFFFFF 0%, #E6E6E6 50%, #E6E6E6 50%, #FFFFFF 100%); */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
}

h1 {
  font-size: var(--font-size-xxxl);
}

h2 {
  font-size: var(--font-size-xxl);
}

h3 {
  font-size: var(--font-size-xl);
}

h4 {
  font-size: var(--font-size-large);
}

h5 {
  font-size: var(--font-size-medium);
}

h6 {
  font-size: var(--font-size-base);
}

.page__container {
  position: relative;
  padding: 0 var(--padding-side);
  height: 100vh;
  max-width: var(--max-page-width);
  margin: 0 auto;
  width: 100%;
}

header {
  padding-top: var(--padding-top);
}

/* Icons */

.material-symbols-outlined {
  font-variation-settings:
    "fill" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

.dropdown_arrow {
  cursor: pointer;
  user-select: none;
  display: inline-block;
}

/* Website title */
.site__title {
  display: inline-flex;
  align-items: end;
  text-decoration: none;
}

.site__title--primary {
  color: var(--color-title-primary);
  font-weight: bold;
  margin-right: var(--nav-title-primary-margin-right);
}

.site__title--secondary {
  color: var(--color-title-secondary);
  margin-bottom: calc((var(--font-size-xxxl) - var(--font-size-xl)) * 0.16);
}

@media (max-width: 800px) {
  .site__title {
    flex-direction: column;
    align-items: start;
  }

  .site__title--secondary {
    margin-bottom: 0;
  }
}

/* Navbar */

nav {
  width: 100%;
  position: relative;
}

.nav__bar__container {
  position: relative;
  margin-top: var(--nav-bar-margin-top);
  font-size: var(--font-size-medium);
}

.nav__bar__entry {
  position: relative;
  display: flex;
  align-items: center;
}

/* Remove all nav bar buttons except for home button on mobile  */
@media (max-width: 800px) {
  .nav__bar__entry:not(:first-child) {
    display: none;
  }
}

/* All nav bar buttons */
.nav__bar__link,
.nav__bar__dropbtn,
.language__toggle {
  color: var(--color-text-primary);
  padding: var(--nav-bar-link-padding);
  cursor: pointer;
  text-decoration: none;
  background-color: transparent;
  /* background-color: rgba(0, 0, 0, 0.2); */
  border: none;
}

@media (min-width: 801px) {
  .nav__bar__link:hover,
  .nav__bar__dropbtn:hover,
  .language__toggle:hover {
    background-color: var(--color-secondary);
    color: var(--color-text-hover);
  }
}

.language__selector {
  align-items: stretch;
}

.language__toggle {
  padding: 0 0.25rem;
}

.language__toggle:not(:last-child) {
  border-right: 2px solid var(--color-text-primary);
}

/* Remove language toggle on moblie */
/* @media (max-width: 800px) {
  .language__toggle {
    display: none;
  }
} */

.nav__active {
  text-decoration: underline;
}

/* Burger Menu */

.burger__button {
  font-size: var(--font-size-medium);
  display: none;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  color: var(--color-text-primary);
  border: none;
  cursor: pointer;
  padding: 0 var(--burger-padding-lr);
}

/* Show Burger Button on mobile */
@media (max-width: 800px) {
  .burger__button {
    display: flex;
  }
}

/* Horizontal Bar */

.horizontal__bar {
  background: linear-gradient(
    to right,
    var(--color-accent-light) 0%,
    var(--color-accent-medium) 25%,
    var(--color-accent-dark) 50%,
    var(--color-accent-medium) 75%,
    var(--color-accent-light) 100%
  );
  height: 100%;
  top: 0;
  z-index: -1;
}

/* Dropdown Menu */

.dropdown {
  display: block;
  /* visibility: hidden; */
  max-height: 0;
  position: absolute;
  top: 100%;
  background-color: var(--color-primary);
  border-bottom-left-radius: var(--dropdown-border-radius);
  border-bottom-right-radius: var(--dropdown-border-radius);
  z-index: 1;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.4);
  font-size: var(--font-size-medium);
  overflow: hidden;
  transition: max-height 0.15s ease-out;
}

.dropdown.show {
  /* visibility: visible; */
  max-height: 700px;
  transition: max-height 0.25s ease-in;
}

/* Button used in dropdownmenu for submenu */
.dropdown__dropbtn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
}

.dropdown__link,
.dropdown__dropbtn {
  padding: var(--dropdown-link-padding);
  display: block;
  white-space: nowrap;
  text-decoration: none;
  color: var(--color-text-primary);
}

@media (min-width: 801px) {
  .dropdown__link:hover,
  .dropdown__dropbtn:hover {
    background-color: var(--color-secondary);
    color: var(--color-text-hover);
  }
}

#mobile__dropdown.dropdown,
#mobile__dropdown .dropdown {
  position: relative;
  top: 0;
  box-shadow: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Add more padding on mobile */
#mobile__dropdown .dropdown__link,
.dropdown__dropbtn {
  padding-left: calc(var(--padding-side) * 2);
}

#sub__dropdown .dropdown__link {
  padding-left: calc(var(--padding-side) * 4);
}

/* Remove all nav bar buttons except for home button on mobile  */
@media (min-width: 801px) {
  #mobile__dropdown {
    display: none;
  }
}

/* Add Borders between main dropdown elements */
.dropdown:not(.sublist) > li:not(:first-child):not(:has(.sublist)) {
  border-top: 1px solid var(--color-text-secondary);
}

.dropdown__active {
  text-decoration: underline;
}

/* Teaser grid */

.teaser__grid {
  padding: var(--padding-side) 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--padding-grid);
}

@media (max-width: 800px) {
  .teaser__grid {
    grid-template-columns: 1fr;
  }
}

/* Teaser */

.teaser__card {
  /* width: 100%; */
  min-height: 500px;
  /* max-width: 600px; */
  background-color: var(--color-primary);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  /* backdrop-filter: blur(10px); */
}

.teaser__card__link {
  display: block;
  height: 100%;
  width: 100%;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.teaser__card:nth-child(7) {
  grid-column: 1 / 2;
}

@media (min-width: 801px) {
  .teaser__card:hover {
    background-color: var(--color-secondary);
  }
}

.teaser__image__container {
  width: 100%;
  height: 300px;
  overflow: hidden;
  /* position: relative; */
}

.teaser__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease-in-out;
  flex: 0 1 auto;
}

@media (min-width: 801px) {
  .teaser__card:hover .teaser__image {
    transform: scale(1.2);
  }
}

.teaser__content {
  padding: var(--teaser-content-padding);
  color: var(--color-text-primary);
  flex: 1 1 auto;
}

.teaser__title {
  font-weight: bold;
  margin-bottom: var(--teaser-title-margin-bottom);
}

.teaser__subtitle {
  font-weight: bold;
  margin-bottom: var(--teaser-subtitle-margin-bottom);
}

.teaser__text {
  font-size: var(--font-size-medium);
}

.teaser__text + div {
  margin-top: auto;
}

.teaser__icon {
  color: var(--color-text-primary);
  stroke-width: 1;
  margin-top: 1rem;
  width: 2rem;
  height: 2rem;
}

@media (min-width: 801px) {
  .teaser__card:hover .teaser__subtitle,
  .teaser__card:hover .teaser__title,
  .teaser__card:hover .teaser__icon {
    color: var(--color-text-hover);
  }
}

/* Expertise Subpage */

.subpage__title {
  margin-top: var(--teaser-title-margin-bottom);
  color: var(--color-title-primary);
  font-weight: bold;
  margin-right: var(--nav-title-primary-margin-right);
  word-break: break-word;
  hyphens: auto;
  /* text-decoration: underline; */
  text-decoration: underline;
}

.section__container {
  margin-top: var(--margin-expertise-section);
  padding: 0;
  overflow: hidden;
  background: rgba(240, 240, 240, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  transition: transform 0.15s ease-out;
}

.company__container {
  padding: 0;
  overflow: hidden;
}

.company__container .expertise__section {
  margin: var(--margin-expertise-section) 0;
  display: grid;
  gap: var(--padding-grid);
  width: 100%;
}

.company__container .text__column {
  padding: 0;
}

.section__container:hover {
  transform: scale(1.02);
}

.section__title {
  margin-bottom: var(--teaser-title-margin-bottom);
  font-weight: bold;
  hyphens: auto;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.expertise__section {
  grid-auto-rows: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
}

.section__divider {
  margin-top: var(--margin-expertise-section);
}

.section__divider:not(:last-child) {
  width: 100%;
  height: 5px;
  background: linear-gradient(
    to right,
    rgba(189, 195, 199, 0) 15%,
    rgba(189, 195, 199, 1) 40%,
    rgba(189, 195, 199, 1) 60%,
    rgba(189, 195, 199, 0) 85%
  );
}

.text__column {
  font-size: var(--font-size-medium);
  padding: var(--text-column-padding);
  /* border-radius: var(--dropdown-border-radius); */
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
  white-space: normal;
  hyphens: auto;
  background: none !important;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  backdrop-filter: blur(10px); */
}

/* Only one column per row on moblie screens */
@media (max-width: 1000px) {
  .expertise__section {
    grid-template-columns: repeat(1, 1fr) !important;
    /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important; */
  }

  .expertise__section > * {
    grid-column: span 1 !important;
  }

  .text__column {
    padding: var(--mobile-text-column-padding);
  }
}

/* .text__column ul { */
/*   padding-inline-start: 200; */
/*   list-style-position: inside; */
/*   list-style-type: disc; */
/* } */

.text__column ul {
  list-style-type: disc;
  list-style-position: outside;
  padding-left: 1em;
}

.text__column ul li {
  position: relative;
  padding-left: 1em;
}

.image__column {
  overflow: hidden;
  /* border-radius: var(--dropdown-border-radius); */
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  backdrop-filter: blur(10px); */
  /* box-shadow: 0 0 15px rgba(0, 0, 0, 0.4); */
  /* background-color: white; */
}

.section__image {
  width: 100%;
  height: 100%;
  /* object-fit: scale-down; */
  object-fit: cover;
  object-position: center;
}

.video__column {
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); */
  overflow: hidden;
}

.section__video {
  width: 100%;
  height: 100%;
}

/* Footer Subpage */

.footer__subpage {
  margin: var(--margin-expertise-section) 0;
  display: grid;
  gap: var(--padding-grid);
  width: 100%;
}

.footer__subpage .text__column {
  padding: 0;
}

.tou__subtitle {
  font-weight: bold;
  font-size: var(--font-size-large);
}

.tou__list {
  list-style-type: decimal;
  list-style-position: inside;
}

.tou__list > li::marker {
  font-weight: bold;
  font-size: var(--font-size-large);
}

.tou__list > li:not(:last-child) {
  margin-bottom: 2rem;
}

.tou__sublist {
  list-style-type: disc;
  list-style-position: inside;
}

.tou__sublist > li {
  margin-top: 1rem;
}

.tou__sublist > li:last-child {
  margin-bottom: 1rem;
}

/* Only one column per row on moblie screens */
@media (max-width: 1000px) {
  .footer__subpage {
    grid-template-columns: repeat(1, 1fr) !important;
    /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important; */
  }

  .footer__subpage > * {
    grid-column: span 1 !important;
  }
}

/* Footer */

footer {
  position: relative;
  width: 100%;
  margin-top: auto;
}

.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright__text {
  text-align: center;
  margin: var(--copyright-text-margin-tb) 0;
  height: 100%;
  font-size: var(--font-size-large);
}

.footer__list {
  font-size: var(--font-size-small);
  white-space: nowrap;
}

.footer__list__link {
  color: var(--color-text-primary);
  display: block;
  cursor: pointer;
  text-decoration: none;
}

.footer__list__entry {
  margin-right: var(--footer-list-entry-margin-right);
}

.footer__list__link {
  padding: var(--footer-list-link-padding);
}

/* For Mobile */
@media (max-width: 900px) {
  .footer__container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .footer__list {
    font-size: var(--font-size-small);
    white-space: nowrap;
    flex-direction: column;
    align-items: center;
  }

  .footer__list__entry {
    margin-right: 0;
  }

  .footer__list__entry:last-child > .footer__list__link {
    margin-bottom: var(--mobile-footer-list-last-link-margin-bottom);
  }
}

@media (min-width: 801px) {
  .footer__list__link:hover {
    text-decoration: underline;
  }
}

.hidden {
  display: none;
}

.icon {
  vertical-align: middle;
  width: 1em;
  height: 1em;
}
