/* Basics */

@font-face {
  font-family: 'AtakRegular-Web';
  src: 
    url('../fonts/AtakRegular-Web.woff') format('woff'),
    url('../fonts/AtakRegular-Web.woff2') format('woff2');
  font-weight: 400;
  text-rendering: optimizeLegibility;
  font-style: normal;
}

html {
  font-family: 'AtakRegular-Web';
  font-size: 1em;
  line-height: 1;
  font-family: 'AtakRegular-Web', "HelveticaNeueLTPro-Roman", "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;
  font-feature-settings: "dlig" on;
}

body {
  font-size: 1.25rem;
}

body.dark {
  color: white;
  background-color: black;
}

body.dark .nav {
  background-color: black;
}

body.dark .nav__container,
body.dark .nav__toggle {
  background-color: black;
}

body.dark a {
  color: #B3B3B3;
}

body.dark a:hover {
  color: white;
}

@media only screen and (min-width: 768px) {
  body {
    font-size: 2.063rem;
  }
}

/* Links */

a:focus {
  outline: none;
}

a {
  text-decoration: none;
  color: #B3B3B3;
}

a:hover {
  color: black;
}

.active {
  color: black;
}

body.dark .active {
  color: white;
}

.blue {
  color: blue;
}

/* Text */

h2 {
  font-weight: normal;
}

/* Paragraph */

.paragraph {
  line-height: 1.1;
}

/* Image */

figure {
  display: flex;
  flex-direction: column-reverse;
  margin: 0;
}

figcaption {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0.5rem !important;
  color: #B3B3B3;
  min-height: 3.6rem;
}

img {
  vertical-align: top;
}

@media only screen and (min-width: 2000px) {
  figure {
    flex-direction: column;
  }
  figcaption {
    justify-content: flex-end;
    padding-top: 0;
    padding-bottom: 0.5rem;
  }
}

/* Navigation */

.nav {
  position: fixed;
  display: flex;
  flex-direction: column;
  width: 100%;
  top: 0;
  left: 0;
  padding: 1rem;
  background-color: white;
  text-align: center;
}

.nav__home a {
  color: black;
}

body.dark .nav__home a {
  color: white;
}

.nav__home a:hover {
  color: #B3B3B3;
}

.nav__container {
  position: fixed;
  display: none;
  flex-direction: column;
  height: calc(100vh + 72px - 64px);
  top: calc(72px + 64px);
  left: 0;
  right: 0;
  padding-top: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  background-color: white;
  font-size: 40px;
}

.nav__filter-notdesktop {
  display: block;
}

.nav__filter-notmobile {
  display: none;
}

.nav__filter span {
  display: block;
}

.nav__nav {
  flex-direction: column;
  justify-content: center;
  width: 100%;
  left: 0;
  margin-top: 32px;
  padding: 16px 0;
}

.nav__nav-notmobile {
  display: none;
}

.nav__nav-notdesktop {
  display: block;
}

.nav__toggle {
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 4rem;
  top: 72px;
  left: 0;
  background-color: white;
}

.nav__toggle svg {
  width: 32px;
}

.nav__toggle-close {
  display: none;
}

.language {
  margin-top: 48px;
}

@media only screen and (min-width: 768px) {
  .nav {
    flex-direction: row;
    justify-content: space-between;
    font-size: 18px;
  }
  .nav__container {
    position: unset;
    display: flex;
    flex-direction: row;
    width: calc((100% / 3) * 2);
    height: unset;
    top: unset;
    left: unset;
    padding-top: unset;
    font-size: unset;
  }
  .nav__home {
    width: calc(100% / 3);
    text-align: left;
  }
  .nav__filter, .nav__nav {
    display: block;
    width: 50%;
  }
  .nav__filter-notdesktop {
    display: none;
  }
  .nav__filter-notmobile {
    display: block;
  }
  .nav__filter span {
    display: unset;
  }
  .nav__nav-notmobile {
    display: block;
  }
  .nav__nav-notdesktop {
    display: none;
  }
  .nav__nav {
    position: unset;
    margin-top: 0;
    padding: 0;
    text-align: right;
    background-color: transparent;
    font-size: unset;
  }
  .nav__toggle {
    display: none;
  }
  .language {
    margin-top: 0;
  }
}

@media only screen and (min-width: 1440px) {
  .nav {
    font-size: unset;
  }
}

/* Headroom */

.header--fixed {
  position: fixed;
  top: 0;
  width: 100%;
}

.header--fixed.top {
  transition: none;
  transform: translateY(0);
}

.header--fixed.not-top {
  position: fixed;
  transform: translateY(-100%);
}

.header--fixed.slideDown.not-top {
  transition: transform 0.3s ease-in-out;
  transform: translateY(0);
}

.header--fixed.slideDown.top {
  transition: transform 0.3s ease-in-out;
  position: fixed;
}

.header--fixed.slideUp.not-top {
  transition: transform 0.3s ease-in-out;
  transform: translateY(-100%);
}

.header--fixed.slideUp.top {
  transform: translateY(-100%);
  position: absolute;
}

.header--fixed.frozen {
  position: fixed;
  transform: translateY(-100%);
}

/* Main */

main {
  margin-top: 88px;
  padding-top: 88px;
  text-align: center;
}

@media only screen and (min-width: 768px) {
  main {
    margin-top: 98px;
    padding-top: calc(4rem - 1rem);
  }
}

/* Newssticker */

.newssticker {
  margin: 0 1rem;
  margin-bottom: 56px;
  padding: 1rem;
  color: white;
  background-color: black;
  border-radius: 8px;
}

@media only screen and (min-width: 768px) {
  .newssticker {
    width: calc((100% / 3) * 2);
    margin: 0 auto;
    margin-bottom: 64px;
    font-size: 24px;
  }
}

@media only screen and (min-width: 1440px) {
  .newssticker {
    width: calc(100% / 2);
    font-size: unset;
  }
}

@media only screen and (min-width: 2000px) {
  .newssticker {
    width: calc(100% / 3);
  }
}

/* Section */

.section {
  display: flex;
  flex-direction: column-reverse;
}

.section img, .sectionabout img {
  width: 100%;
}

.section p, .section h2,
.sectionabout p, .sectionabout h2 {
  margin: 56px 0;
}

.section h2, .sectionabout h2 {
  font-size: 48px;
  line-height: 1;
}

.sectionabout:not(:first-child) h2 {
  margin-top: 112px;
}

.section__item.text, .sectionabout__item.text {
  padding-left: 1rem;
  padding-right: 1rem;
}

.credits {
  font-size: 14px;
  line-height: 1.125;
  margin-bottom: 0.5rem;
  padding: 0 1rem;
}

.bild {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-bottom: 56px;
}

.sectionabout {
  width: 100%;
}

.paragraph.credits p {
  margin: 1rem 0;
}

.creditsabout {
  margin: 56px 0;;
}

.sectionabout__item.bild {
  margin-bottom: 56px;
}

@media only screen and (min-width: 768px) {
  .section {
    font-size: 24px;
  }
  .sectionabout__item.text .paragraph,
  .sectionabout__item.bild {
    width: calc((100% / 3) * 2);
    margin: 0 auto;
  }
  .section h2, .sectionabout h2 {
    font-size: 100px;
    padding: 0 10%;
  }
  .section p, .section h2,
  .sectionabout p, .sectionabout h2 {
    margin: 64px 0;
  }
  .section h2 {
    width: 150%;
    margin-left: -25%;
  }
  .sectionabout {
    font-size: 24px;
  }
  .section__item.text {
    padding-left: 0;
    padding-right: 0;
  }
  .credits {
    font-size: 18px;
  }
  .creditsabout {
    margin: 64px 0;;
  }
  .section__item {
    width: calc((100% / 3) * 2);
    margin: 0 auto;
  }
  .bild {
    margin-bottom: 64px;
  }
  .sectionabout:not(:first-child) h2 {
    margin-top: 128px;
  }
  .sectionabout__item.bild {
    margin-bottom: 64px;
  }
}

@media only screen and (min-width: 1440px) {
  .section {
    font-size: unset;
  }
  .section__item {
    width: calc(100% / 2);
    margin: 0 auto;
  }
  .bild {
    margin-bottom: 64px;
  }
  .sectionabout__item.text .paragraph,
  .sectionabout__item.bild {
    width: calc(100% / 2);
    margin: 0 auto;
  }
  .sectionabout {
    font-size: unset;
  }
  .sectionabout__item.bild {
    margin-bottom: 64px;
  }
}

@media only screen and (min-width: 2000px) {
  .section {
    flex-direction: row;
    font-size: unset;
  }
  .section.right {
    flex-direction: row-reverse;
    margin-left: calc(100% / 3);
  }
  .section.left {
    margin-right: calc(100% / 3);
  }
  .section.left .slider {
    margin-right: calc(100% / 6);
  }
  .section.right .slider {
    margin-left: calc(100% / 6);
  }
  .section__item {
    margin: unset;
  }
  .bild {
    margin-bottom: 64px;
  }
  .section h2 {
    width: 300%;
    margin-left: -100%;
  }
  .sectionabout__item.text .paragraph,
  .sectionabout__item.bild {
    width: calc(100% / 3);
    margin: 0 auto;
  }
  .sectionabout {
    font-size: unset;
  }
  .sectionabout__item.bild {
    margin-bottom: 64px;
  }
}

@media only screen and (min-width: 2000px) {
  .section.left .slider {
    margin-right: calc(100% / 3);
  }
  .section.right .slider {
    margin-left: calc(100% / 3);
  }
}

/* Slider */

.carousel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.carousel-cell {
  width: 100%;
}

.carousel-cell img {
  width: 100%;
  vertical-align: top;
}

/* no circle */
.flickity-button {
  background: transparent;
}

/* circle on hover */
.flickity-button:hover {
  background: transparent;
}

/* big previous & next buttons */
.flickity-prev-next-button {
  width: 64px;
  height: 64px;
}

/* icon color */
.flickity-button-icon {
  fill: #B3B3B3 !important;
}

/* icon color */
.flickity-prev-next-button:hover .flickity-button-icon {
  fill: black !important;
}

/* icon color */
.flickity-prev-next-button:active .flickity-button-icon {
  fill: black !important;
}

/* hide disabled button */
.flickity-button:disabled {
  display: none;
}

.flickity-prev-next-button {
  position: absolute;
  height: calc(100% - 3.6rem - 8px);
  top: 0;
  transform: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.flickity-prev-next-button.next {
  right: 0px;
}

.flickity-prev-next-button.previous {
  left: 0px;
}

.flickity-button:active {
  opacity: 1;
}

.flickity-button:active .flickity-button-icon{
  fill: #B3B3B3 !important;
}

@media only screen and (min-width: 2000px) {
  .flickity-prev-next-button {
    position: absolute;
    height: calc(100% - 3.6rem - 8px);
    top: calc(3.6rem + 8px);
    transform: none;
  }
}

/* Footer */

footer {
  margin-bottom: 1em;
}

/* Error */

.errorpage {
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
  width: 100%;
  height: 100%;
  top:0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.errortext {
	position: absolute;
	color: black;
  margin: 0;
  padding: 0 10%;
}
