@font-face {
  font-family: GTFlexa;
  font-weight: 400;
  src: url("../fonts/GTFlexa/GT-Flexa-Standard-Regular.woff2") format("woff2"),
    url("../fonts/GTFlexa/GT-Flexa-Standard-Regular.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: GTFlexa;
  font-weight: 500;
  font-style: italic;
  src: url("../fonts/GTFlexa/GT-Flexa-Extended-Medium-Italic.woff2")
      format("woff2"),
    url("../fonts/GTFlexa/GT-Flexa-Extended-Medium-Italic.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: GTFlexa;
  font-weight: 700;
  font-style: bold;
  src: url("../fonts/GTFlexa/GT-Flexa-Extended-Black.woff2")
      format("woff2"),
    url("../fonts/GTFlexa/GT-Flexa-Extended-Black.woff") format("woff");
  font-display: swap;
}


body {
  margin: 0;
  box-sizing: border-box;

  font-family: "GTFlexa", sans-serif;
  font-weight: normal;
  overflow-x: hidden;

  background-color: rgb(126, 221, 211);

  transition: 0.2s opacity ease-out;

  width: 100%;
}

main, aside {
  width: 100%;
  overflow-x: hidden;
}

body.dina-first {
  background-color: black;
}

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

html.can-script body {
  opacity: 0;
}

html.can-script body.loaded {
  opacity: 1;
}

html.can-script body.with-bg {
  background-size: 60px;
  background-repeat: repeat;
  background-image: url('../img/bg.png');
}

html.can-script body.with-transition main {
  transition: transform 0.5s ease;
}

.dina-first main {
  transform: rotate(180deg);
}

.dina-first .nadi {
  transform: rotate(180deg);
}

.dina-first .nadi .lang,
.dina-first .nadi .switch {
  display: none;
}
.dina-first .dina {
  transform: rotate(180deg);
}
.dina-first .middle {
  transform: rotate(180deg);
}

.dina .lang,
.dina .switch {
  display: none;
}
.dina-first .dina .lang,
.dina-first .dina .switch {
  display: block;
}

.nadi {
  background-color: rgb(126, 221, 211);
  color: black;
}

.dina {
  background-color: black;
  color: rgb(126, 221, 211);
}

.meta {
  background: white;
  color: black;
}
.meta h2, .meta h3, .meta h4, .meta h5 {
  color: rgb(126, 221, 211);
}

a, a:visited, a:hover {
  color: rgb(126, 221, 211);;
}

.nadi a, .nadi a:visited, .nadi a:hover {
  color: black;
}

.cover {
  height: 100vh;
  padding: 20px;
  position: relative;
  padding-top: calc(1vw * 8);
}

.cover .top {
  font-weight: 700;
  font-size: calc(1vw * 7);
}

.cover .center {
  font-weight: 700;
  font-size: calc(1vw * 15);
  line-height: 1em;
}

.cover .sub {
  font-size: calc(1vw * 9);
}

@media only screen and (min-width: 500px) {
  .cover .top {
    font-size: calc(1vw * 5);
  }
  
  .cover .center {
    font-size: calc(1vw * 12);
  }
  
  .cover .sub {
    font-size: calc(1vw * 7);
  }
}

@media only screen and (min-width: 750px) {
  .cover .top {
    font-size: 30px;
  }
  
  .cover .center {
    font-size: 120px;
  }
  
  .cover .sub {
    font-size: 35px;
  }
}

p, ul {
  font-size: 20px;
}

p.small {
  font-size: 16px;
}

p.chapter-intro {
  font-size: 24px;
  margin-bottom: 40px;
}

h2 {
  font-size: calc(1vw * 8);
  margin: 0;
  padding-top: 200px;
  padding-bottom: 40px;
}

h3 {
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  margin: 0;
  padding-top: 50px;
  padding-bottom: 12px;
}

h4 {
  margin: 0;
  padding-top: 20px;
}

h5 {
  margin: 0;
  padding-top: 15px;
}

.story {
  max-width: 600px;
  margin: 0 auto 300px auto;
  padding: 0 10px;
}

button.switch {
  appearance: none;
  display: block;
  outline: none;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
  color: inherit;
  font-weight: 700;
  font-size: 120px;
  position: absolute;
  right: 10px;
  bottom: 10px;
}

a.lang {
  display: block;
  cursor: pointer;
  font-weight: 700;
  font-size: 60px;
  line-height: 68px;
  position: absolute;
  right: 32px;
  bottom: 154px;
}

@media only screen and (min-width: 800px) {
  .cover {
    max-width: 80vw;
    margin-left: auto;
    margin-right: auto;
  }
}

.middle {
  padding-bottom: 80px;
}

.intro {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(1vw * 10);
  padding: 0 10px;
}

@media only screen and (min-width: 500px) {
  .intro {
    font-size: calc(1vw * 6);
  }
}

@media only screen and (min-width: 800px) {
  .intro {
    font-size: calc(1vw * 4);
  }
}

.intro, .content h2, .content p.chapter-intro {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media only screen and (min-width: 1200px) {
  .content h2 {
    max-width: 100%;
    text-align: center;
  }
}

.content {
  padding: 80px 10px;
}

.content p, .content h3, .content h4, .content h5, .content .graphic, .content ul {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.content p:last-child {
  margin-bottom: 0;
}

.content p.tipp {
  padding: 50px 30px;
}

.tipp-title {
  font-weight: bold;
}

ul {
  list-style-type: '→';
  margin: 0;
  padding: 15px 0 15px 25px;
}

li {
  padding-left: 8px;
}

.content p {
  margin-bottom: 18px;
}

.story p {
  font-size: 25px;
}

.graphic {
  margin: 50px 0;
}

.graphic img {
  display: block;
  width: 100%;
}

.graphic h4 {
  font-size: 26px;
  margin-top: 0;
  margin-bottom: 10px;
}

.graphic h5 {
  font-weight: normal;
  font-size: 20px;
  margin-bottom: 0;
}

ul.glossar {
  list-style-type: none;
}

ul.glossar li {
  margin-top: 20px;
}

.glossar a:first-child, .glossar span:first-of-type {
  font-weight: bold;
  padding-right: 10px;
  text-decoration: none;
}

.glossar span:first-of-type {
  font-weight: bold;
}

.glossar a:first-child::before, .glossar span:first-of-type::before {
  content: '→';
  display: inline;
  padding-right: 10px;
}

.prowoz {
  padding-top: 60px;
}

.prowoz img {
  display: block;
  width: 200px;
  padding-bottom: 30px;
}

.useful-links li a {
  word-wrap: break-word;
}

ul.useful-links li {
  margin-top: 10px;
}

.license {
  padding-top: 40px;
}

.license img {
  width: 44px;
  margin-right: 8px;
}
