:root {
  font-size: 62.5%;
  --primary: #0E2E59;
  --primary-light: #E2EEF7;
  --primary-60: #758097;
  --highlight: #38C5F1;
  --text: #0E2E59;
  --white: #FFFFFF;
  --black: #000000;
  --backdrop: rgba(14 46 89 / 90%);
  --disabled: #CCCCCC;

  --br-big: 2.4rem;
  --br: 1.6rem;
  --br-small: 0.8rem;
  --br-tiny: 0.4rem;
  --gap: 24px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@view-transition { navigation: auto; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--primary) var(--primary-light);
  scrollbar-gutter: stable;
}
::-webkit-scrollbar {
  background-color: var(--primary-light);
}
::-webkit-scrollbar-thumb {
  border: 2px solid var(--primary-light);
  background-color: var(--primary);
  -webkit-border-radius: 2px;
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: transparent url(../media/background_60prozent.jpg) center center no-repeat;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1.5;
  font-family: 'Lato', sans-serif;
}

main {
  &.full {
    background-color: white;
    padding-block: 4rem;
  }
}
@media (max-width: 500px) {
  main {
    hyphens: auto;
    hyphenate-limit-chars: 7 3 4;
  }
}

img {
  display: block;
  width: 100%;
  height: auto
}

figure img {
  margin-bottom: 1rem;
}
figcaption {
  font-weight: normal;
  font-size: 1.6rem;
  font-family: Lato;
}

h1 {
  margin-top: 0;
  margin-bottom: 4rem;
  font-size: 3rem;

  &.small {
    font-size: 2.2rem;
  }
}

h2 {
  margin-top: 0;
  margin-bottom: 4rem;
  font-size: 2.2rem;
}

h3 {
  margin-top: 0;
  margin-bottom: 4rem;
  font-weight: normal;
  font-size: 2.2rem;
}
h2 + h3 {
  margin-top: -4rem;
}

p {
  margin-bottom: 2.4rem;

  &.small {
    font-size: 1.6rem;
  }
}

ul, ol {
  margin: 0 0 4rem 1.6rem;

  li {
    margin-bottom: 2.4rem;
  }
}

a {
  color: inherit;
  text-decoration: underline;

  &:hover,
  &:focus {
    text-decoration: none;
  }

  &.arrow {
    background: transparent url('../media/icon_arrow_small.svg') right center no-repeat;
    background-size: 16px 16px;
    padding-right: 20px;
  }
}

main a {
  font-style: italic;
  font-weight: bold;
}

audio, video {
  width: 100%;
}

blockquote {
  font-style: italic;
  font-size: 2.4rem;
}

/* Accordeons */
details {
  position: relative;
  border-bottom: 1px solid var(--primary);
  padding: 0 4.8rem 0 0;
}

summary {
  padding: 0 2rem 0 0;
  padding: 2.4rem 0;
  font-size: 2.2rem;
  list-style: none;

  &::-webkit-details-marker {
    display:none;
  }
}

details:open summary {
  padding: 2.4rem 0 4rem 0;
}

details::before {
  display: block;
  position: absolute;
  top: 3rem;
  right: 0;
  transition: opacity 0.3s, transform 0.3s;
  background: transparent url('../media/icon_plusminus.svg') 0 0 no-repeat;
  background-size: 48px 24px;
  width: 24px;
  height: 24px;
  content: '';
}
details::after {
  display: block;
  position: absolute;
  top: 3rem;
  right: 0;
  transform: rotate(90deg);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  background: transparent url('../media/icon_plusminus.svg') -24px 0 no-repeat;
  background-size: 48px 24px;
  width: 24px;
  height: 24px;
  content: '';
}

details[open]::before {
  transform: rotate(-90deg);
  opacity: 0;
}
details[open]::after {
  transform: rotate(0deg);
  opacity: 1.0;
}

dialog {
  margin: auto;
  border: none;
  padding: 0;

  &::backdrop {
    background-color: var(--backdrop);
  }
}

hr {
  margin: 4rem 0;
}
