/* HTML5 polyfill */
section, article, aside, footer, header, nav, hgroup {
  display:block;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes fadeout {
    from { opacity: 1; }
    to   { opacity: 0; }
}

html,body {
  margin: 0px;
  height: 100%;
}

.header-wrapper {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0px;
    z-index: 10;
}

.gridgames-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 30px;
    text-decoration: none;
    font-family: 'Hind';
    padding: 20px 20px;
    
background: radial-gradient(circle at -10% 100%, #80426f, #843878, #862d82, #85218e, #81149c, #7a05ab, #6d00bb, #5900cd);
    font-weight: bold;
    gap: 10px;
}

.gridgames-banner:hover {
    text-decoration: underline;
}

@media (max-width: 450px) {
    .gridgames-banner {
        font-size: 20px;
        padding: 10px 20px;
    }
}

.gridgames-banner .text {
  text-wrap: balance;
  text-align: center;
}

#wrapper {
    display: flex;  /* use the flex model */
  min-height: 100%;
  flex-direction: column;
}

main {
    flex: 1;
}

footer {
	/*position:absolute;*/
	bottom:0;
	left:0;
}

h1 {
  height: 48px;
  text-align: center;
  float: left;
  margin: 0px;
  position: relative;
  top: 0px;
  left: 0px;
  padding-left: 17px;
  z-index: 1;
}

h1 img {
    height: 34px;
    max-width: calc(100vw - 48px);
    padding-top: 7px;
}

.copyright-symbol {
  vertical-align: super;
  font-size: 70%;
  font-weight: normal;
}

.copyrigh-all {
  margin-top: -27px; /* das ist ein Hack */
  text-align: center;
}


/* --- Menü --- */

header {
    /* position: sticky;
    top: 0px;
    z-index: 10; */
    background-color: #f7f7f7;
    background-image: url(/img/background.svg);
    border-bottom: 1px solid #afafaf;
}

header > nav {
  font-weight: bold;
  font-family: 'Hind', sans-serif;
  overflow: visible;
  height: 48px;
  position: relative;
  top: 0;
  right: 0px;
}

header > nav ul {
  padding: 0px;
  margin: 0px;
  overflow: hidden;
  height: 0px;
  transition: height 0.5s;
  position: absolute;
  z-index: 2;
  top: 48px;
  right: 0px;
  float: none;
}

header > nav.active ul {
  height: 300px;
}

header > nav > h2 {
  height: 48px;
  margin: 0px;
  float: left;
  color: white;
  line-height: 48px;
  padding-left: 18px;
}

header > nav button {
  height: 48px;
  width: 48px;
  position: absolute;
  right: 0;
  background-color: #989898;
  border: none;
  transition: background-color 0.5s;
  float: right;
}

header > nav.active button {
  background-color: #388E3C;
}

header > nav button:focus {
  outline: none;
}

header > nav li {
  list-style: none;
  /*float: left;*/
  background-color: #5CA95C;
}

header > nav a {
  text-decoration: none;
  color: white;
  transition: color 0.5s;
  padding: 12px 18px;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  display: block;
  transition: background-color 0.7s, border-color 0.3s;
}

header > nav a:hover {
    color: #2e802e;
    background-color: white;
}

header > nav a:active {
    background-color: #C8E6C9;
    transition: background-color 0.1s;
}

header > nav a:focus {
  outline: none;
}

/* --- Arrow --- */

header > nav.active .arrow {
  -webkit-transform: rotate(45deg) translate(-5px, -5px);
          transform: rotate(45deg) translate(-5px, -5px);
}
header > nav.active .arrow:before {
  -webkit-transform: translate(10px, 0);
          transform: translate(10px, 0);
}
header > nav.active .arrow:after {
  -webkit-transform: rotate(90deg) translate(10px, 0);
          transform: rotate(90deg) translate(10px, 0);
}

header > nav .arrow {
  -webkit-transform: rotate(0);
          transform: rotate(0);
  left: 0;
}
header > nav .arrow:before, header > nav .arrow:after {
  background-color: transparent;
  width: 3px;
  height: 10px;
  display: inline-block;
  position: absolute;
  border-bottom: 12px solid white;
  top: 0;
  left: 0;
  -webkit-transform: rotate(0);
          transform: rotate(0);
}
header > nav .arrow:before {
  -webkit-transform: rotate(-135deg);
          transform: rotate(-135deg);
}
header > nav .arrow:after {
  -webkit-transform: rotate(135deg);
          transform: rotate(135deg);
}
header > nav.active .arrow {
  -webkit-transform: rotate(0);
          transform: rotate(0);
  -webkit-transform: translate(0, -6px);
          transform: translate(0, -6px);
}
header > nav.active .arrow:before {
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
}
header > nav.active .arrow:after {
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}

.arrow {
  height: 13px;
  display: inline-block;
  -webkit-transition: 0.4s ease;
  transition: 0.4s ease;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}
.arrow:before, .arrow:after {
  position: absolute;
  content: "";
  display: inline-block;
  width: 12px;
  height: 3px;
  background-color: #fff;
  -webkit-transition: 0.4s ease;
  transition: 0.4s ease;
}
.arrow:after {
  position: absolute;
  -webkit-transform: rotate(90deg);
          transform: rotate(90deg);
  top: -5px;
  left: 5px;
}

/* --- END: Arrow --- */

h2 {
    text-align: left;
}

.play-online-button {
  float: right;
}

a.play-online-button:hover {
  border-bottom: initial;
}

.play-online-button button {
  width: 140px;
  height: 52px;
  border: 0px;
  border-radius: 13px;
  background-color: #5CA95C;
  color: white;
  margin-left: 40px;
  margin-top: -33px;
  vertical-align: top;
  cursor: pointer;
}

@media (min-width: 40.5em) and (max-width: 850px) {
  header > nav > h2 {
    padding-left: 18px;
    width: 184px;
  }

  header > nav > button {
    position: initial;
    right: initial;
  }

  header > nav ul {
    width: 250px;
  }
}

@media (min-width: 850px) {
  h1 {
    height: 60px;
    padding-top: 9px;
  }

  header > nav > h2, header > nav > button {
    display: none;
  }

  header > nav li {
    float: left;
    height: 60px;
    background-color: initial;
  }

  header > nav li:last-of-type {
    background-color: #5CA95C;
    padding-bottom: 1px;
  }

  header > nav li:last-of-type a {
    color: white;
  }

  header > nav ul {
    padding: 0px;
    margin: 0px;
    overflow: initial ;
    height: 48px;
    transition: initial;
    position: absolute;
    top: initial;
    z-index: initial;
  }

  header > nav a {
    color: #5f5f5f;
    padding: 17px 18px;
    margin-top: 0px;
    border: none;
  }

  header > nav a:hover {
    color: #5f5f5f;
    background-color: #7fc37f;
  }

  header {
    height: 60px;
  }

  header > nav {
    height: 60px;
  }
}

/* --- END: Menü */

/* --- Main --- */

.frontpage {
  max-width: 1500px;
  margin: auto;
  /* background: white; */
  /* box-shadow: 0 0 300px 300px white; */
}

.puzzle-page-container {
  max-width: 900px;
  margin: auto;
  background: white;
  box-shadow: 0 0 300px 300px white;
}
.puzzle-page-container p {
  /* text-align: justify; */
}

main {
  padding: 16px;
  max-width: 100%;
  text-align: justify;
  padding-bottom: 60px;
  font-family: 'Hind', sans-serif;
  /* background: #ddd; */
  background: #af904b47;
}

main a {
  color: #2E802E;
  text-decoration: none;
  transition: border 0.1s;
  display: inline-block;
  line-height: 1em;
  /* background-color: white; */
}

main a:hover {
  border-bottom: 3px solid #5ca95c;
}

/* --- END: Main --- */

/* --- Footer --- */

footer {
  border-top: 5px solid #468646;
  background-color: #E3E3E3;
  font-family: 'Hind', sans-serif;
}

footer > nav {
  overflow: hidden;
}

footer ul {
  padding: 0px;
}

footer li {
  list-style: none;
}

footer > nav > section {
  padding: 16px;
  padding-right: 60px;
}

footer h2 {
  display: none;
}

footer > small {
  padding: 16px;
  display: block;
}

footer a {
  transition: background-color 0.5s;
  padding: 0px 5px;
  margin: 0px -5px;
  text-decoration: none;
  color: black;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

footer a:hover {
  background-color: #AFAFAF;
  text-decoration: none;
}

footer a:visited {
  color: black;
}

footer li.ausgewaehlt {
  background-color: #5ca95c;
  padding: 0px 5px;
  margin: 0px -5px;
  display: table;
  color: white;
}

/* END: Footer */

@media (min-width: 40.5em) {
  h1 {
    text-align: left;
    padding-left: 60px;
  }

  main h2 {
    /* text-align: center; */
  }

  main p {
    max-width: 900px;
    /* margin: auto;
    text-align: center; */
  }

  main {
    padding: 5%;
    max-width: 90%;
  }

  footer {
    padding-left: 44px;
  }
}

@media (min-width: 450px) {
  footer > nav > section {
    float: left;
    padding: 16px;
    padding-right: 30px;
  }
}

/* --- START: Startseite --- */

.kachel-container {
}

@media screen and (max-width: 625px) {
  .kachel-container {
    width: 140px;
    height: 200px;
    margin: 5px 10px;
  }
  section.puzzlekachel {
    transform: scale(0.85);
    transform-origin: -60% 0;
  }

}

section.puzzlekachel {
  border: 0px solid #ccc;
  overflow: hidden;
  width: 174px;
  height: 222px;
  /* margin: 0px 0px 24px 0px; */
  margin: 20px 10px;
  float: left;
  text-align: left;
  border: 2px solid;
  border-radius: 10px;
}

.puzzles-container {
	display: flex;
	justify-content: center;
  /* background: #ccc; */
  /* border: solid 1px grey; */
}
.puzzles-inner {
	/* width: 900px; */
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
}
/* @media (max-width: 427px) { */
	/* .puzzles-inner { */
		/* justify-content: center; */
	/* } */
	/* section.puzzlekachel { */
		/* margin: 0px 12px 24px 12px; */
	/* } */
/* } */

section.puzzlekachel:last-of-type {
    float: initial;
}

@media (min-width: 891px) {
    section.puzzlekachel:nth-child(4n+1) {
        float: initial;
    }
}

section.puzzlekachel a > div {
    margin-bottom: -222px;
    height: 222px;
    transform: translateY(174px);
    transition: transform 0.3s;
    padding-left: 12px;
    padding-right: 12px;
    color: white;
}

section.puzzlekachel:hover a > div {
    transform: translateY(0px);
}

section.puzzlekachel h3 {
    margin-top: 0px;
    padding-top: 20px;
    overflow: hidden;
    white-space: nowrap;
    width: 150px;
}

section.puzzlekachel:hover h3 {
    white-space: initial;
}

section.puzzlekachel p {
    /*color: black;*/
}

section.puzzlekachel img {
    width: 150px;
    height: 150px;
    padding: 12px;
    background: white;
}


/* --- ENDE: Startseite --- */

/* --- START: Kontaktformular --- */

#kontaktformular {
  margin-bottom: 60px;
}

#kontaktformular-name, #kontaktformular-email {
    padding: 2px;
    border: none;
    padding-left: 10px;
    font-size: 11pt;
    height: 36px;
    width: 105%;
    width: calc(100% + 20px);
    margin-left: -16px;
}

#kontaktformular-name {
    border-top: 3px solid #5CA95C;
    border-bottom: 1px solid grey;
}

#kontaktformular-email {
    border-bottom: 1px solid grey;
}

#kontaktformular-nachricht {
    resize: none;
    margin-left: -16px;
    width: 93%;
    width: calc(100% + 12px);
    font-family: sans-serif;
    font-size: 11pt;
    padding: 10px;
    border: none;
    border-bottom: 3px solid #5CA95C;
}

#kontaktformular-name:focus, #kontaktformular-email:focus, #kontaktformular-nachricht:focus {
  outline: none;
}

#kontaktformular-noscript-hinweis {
  margin-top: 60px;
}

.g-recaptcha {
  height: 88px;
  text-align: center;
  overflow-x: auto;
}

.g-recaptcha > div > div {
  display: inline;
}

#kontaktformular-button {
  display: table;
  margin: 0 auto;
  max-width: 304px;
  width: 100%;
}

@media (min-width: 450px) {
  #kontaktformular {
    margin-bottom: 0px;
  }

  #kontaktformular-name {
    border-top-width: 5px;
  }

  #kontaktformular-name, #kontaktformular-email {
    margin-left: 0px;
    max-width: 378px;
    width: 95%;
    width: calc(100% - 18px);
    border-left: 5px solid #5CA95C;
    border-right: 5px solid #5CA95C;
  }

  #kontaktformular-nachricht {
    margin-left: 0px;
    max-width: 370px;
    width: 93%;
    width: calc(100% - 26px);
    border-left: 5px solid #5CA95C;
    border-right: 5px solid #5CA95C;
    border-bottom-width: 5px;
    display: block;
    margin-bottom: 10px;
  }

  .g-recaptcha {
    height: 78px;
    float: left;
    overflow: hidden;
  }

  #kontaktformular-danke {
    width: 400px;
    height: 78px;
    display: block;
    float: left;
    margin: 0px;
    margin-bottom: 58px;
  }

  #kontaktformular-button {
    display: block;
    margin-left: 314px;
    width: 86px;
    height: 76px;
  }

  #kontaktformular-noscript-hinweis {
    display: block;
    clear: left;
  }
}

/* --- ENDE: Kontaktformular --- */

/* --- START: Sommerrätsel --- */
.diepresse-icon {
    height: 0.7em;
}

section.sr-liste dl {
    overflow: hidden;
}

section.sr-liste a {
    color: black;
    width: 110px;
    height: 30px;
    display: block;
    float: left;
    margin-right: 20px;
}

section.sr-liste a:last-of-type {
    margin-right: 0px;
}

@media (min-width: 400px) and (max-width: 531px) {
    section.sr-liste a:nth-of-type(3) {
        margin-right: 0px;
    }
    section.sr-liste a:nth-of-type(4) {
        clear: both;
    }
}

@media (max-width: 292px) {
    section.sr-liste a {
        float: initial;
    }
}

@media (max-width: 565px) {
    section.sr-liste lh {
        font-weight: bold;
        font-size: large;
        margin-bottom: 1em;
        width: 30px;
        height: 20px;
        display: block;
    }

    section.sr-liste a {
        margin-bottom: 1em;
    }
}

section.sr-liste dt {
    font-weight: bold;
}

section.sr-liste dd {
    margin: 0;
}

@media (min-width: 532px) {
    section.sr-liste a[platzhalter] {
        margin-left: 130px;
    }
}

@media (min-width: 566px) {
    section.sr-liste dl {
        padding: 14px 0px;
        margin: 0px;
    }

    section.sr-liste a {
        color: black;
        width: 110px;
        height: 30px;
        display: block;
        float: left;
        margin: -9px;
        margin-right: 8px;
        padding: 6px;
        border: 3px solid transparent;
    }

    section.sr-liste a[platzhalter] {
        margin-left: 118px;
    }

    section.sr-liste a:hover {
        border: 3px solid green;
    }

    section.sr-liste lh {
        width: 30px;
        height: 20px;
        display: block;
        transform: translateY(21px) rotate(-90deg);
        margin-right: 10px;
        margin-left: -6px;
        margin-top: 11px;
        float: left;
        text-align: right;
        transform-origin: top left 0px;
    }
}
/* --- ENDE: Sommerrätsel --- */


/* --- puzzles --- */

@media (max-width: 524px) {
	h2 {
		margin: 0;
	}
	.hide-on-mobile {
		display: none;
	}
	.anleitung {
		font-size: 15px;
		line-height: 18px;
	}
}


.puzzle-sc {
  width: 100%;
  height: 300px;
  margin: 20px auto;
  /* TODO: warum funktioniert @supports nicht? */
  /*@supports (width: 100vw) {*/
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  /*}*/
}
.puzzle-sc .swiper-slide {
  text-align: center;
  font-size: 30px;
  width: 250px;
  height: 300px;

  /* Center slide text vertical-ly */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: block;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
  cursor: pointer;
  cursor: hand;
}
.puzzle-sc .swiper-slide > div {
  font-weight: bold;
  background-size: 230px;
  background-repeat: no-repeat;
  background-position: 5px 5px;
  background-color: white;
  border: 5px solid;
  width: 240px;
  height: 240px;
}

.puzzle-pagination .swiper-pagination-bullet {
  font-weight: bold;
  background: initial;
  opacity: initial;
  border-radius: initial;

  width: 38px;
  height: 38px;
  text-align: center;
  line-height: 42px;
  font-size: 20px;
  margin: 5px;
  border: 5px solid #4CAF50;
  transition: color 0.4s, background-color 0.4s;
}

/*
.swiper-pagination-bullet:first {
  margin-left: 0px;
}
*/

.puzzle-pagination .pagination-nocolor {
  border-color: #aaa;
}
.puzzle-pagination .pagination-easy {
  border-color: #4CAF50;
}
.puzzle-pagination .pagination-medium {
  border-color: #FFEB3B;
}
.puzzle-pagination .pagination-hard {
  border-color: #FF9800;
}
.puzzle-pagination .pagination-evil {
  border-color: #FF5722;
}

.puzzle-pagination .swiper-pagination-bullet-active.pagination-nocolor {
  background-color: #ccc;
}
.puzzle-pagination .swiper-pagination-bullet-active.pagination-easy {
  background-color: #4CAF50;
}
.puzzle-pagination .swiper-pagination-bullet-active.pagination-medium {
  background-color: #FFEB3B;
}
.puzzle-pagination .swiper-pagination-bullet-active.pagination-hard {
  background-color: #FF9800;
}
.puzzle-pagination .swiper-pagination-bullet-active.pagination-evil {
  background-color: #FF5722;
}

.swiper-button-next, .swiper-button-prev {
  transition: opacity .5s;
}

.swiper-button-disabled {
  opacity: 0 !important;
}

h4.schwierigkeitsgrad {
  display: none;
  font-weight: normal;
}
h5.title {
	display: initial;
	margin: 0px 0px 10px 0px;
	text-align: center;
	width: 100%;
	display: block;
	font-size: 15px;
	font-weight: normal:
}

.puzzle-pagination {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  height: 116px;
  width: 222px;
  margin: 0 auto;
}
.puzzle-pagination.singleline {
	height: 70px;
}

@media (min-width: 525px) {
  .puzzle-pagination {
    display: none;
  }

  .puzzle-sc {
    overflow: initial;
    height: initial;
    margin: 20px auto;
    position: initial;
    width: 780px;
  }

  .puzzle-sc > .swiper-wrapper {
    display: flex;
    transform: none! important;
    flex-direction: column;
    flex-wrap: wrap;
    height: 470px;
    width: 1px;
  }
  /* wenn im Swiper nur eine Zeile sein soll,
	wird einfach die Höhe reduziert */
  .puzzle-sc > .swiper-wrapper.singleline {
    height: 240px;
	flex-direction: column;
  }

  .puzzle-sc .swiper-slide {
	display: flex;
    width: 180px;
    height: 180px;
    margin: 0px 20px 20px 0px !important;
  }

  .puzzle-sc .swiper-slide > div {
    background-size: 160px;
    background-repeat: no-repeat;
    background-position: 5px 5px;
    background-color: white;
    border: 5px solid;
    width: 170px;
    height: 170px;
  }

  /*.puzzle-sc .swiper-slide:last-child {
    float: initial;
    transform: translate(10px, 10px);
  }*/

	h4.schwierigkeitsgrad {
		display: initial;
		margin: 0px 0px 10px 0px;
		text-align: center;
		width: 180px;
	}
	h5.title {
		display: none;
	}
}

@media (min-width: 525px) and (max-width: 854px) {
  .puzzle-sc {
    width: 380px;
  }

  .puzzle-sc > .swiper-wrapper {
      height: 900px;
  }
    /* wenn im Swiper nur eine Zeile sein soll,
	wird einfach die Höhe reduziert */
  .puzzle-sc > .swiper-wrapper.singleline {
    height: 500px;
	flex-direction: column;
  }
}

/* deckt Hintergrund ab bei Popup */
.overlay {
	position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
	opacity: 0;
	background-color: rgba(255,255,255,0.7);
	z-index: -1;
	transition: opacity ease-in-out 0.5s, z-index 0s 0.5s;
}
.overlay.on {
	opacity: 1;
	z-index: 4;
	transition: opacity ease-in-out 0.5s, z-index 0s 0s;
}

section.popup {
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

section.popup.fadingin {
  animation-name: fadein;
  animation-duration: 225ms;
  animation-timing-function: cubic-bezier(0.0, 0.0, 0.2, 1);
}

section.popup.fadingout {
  pointer-events: none;
  animation-name: fadeout;
  animation-duration: 195ms;
  animation-timing-function: cubic-bezier(0.4, 0.0, 1, 1);
}

section.popup.hidden {
  display: none;
}

@keyframes fadein {
  from {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }

  to {
    transform: translate(-50%, -50%);
  }
}

@keyframes fadeout {
  from {
    transform: translate(-50%, -50%);
  }

  to {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
  }
}

/* -------------------------- */

section.popup.puzzle-popup {
  border: 1px solid black;
  box-sizing: border-box;
  background-color: white;
  padding: 10px;
  text-align: center;
  box-shadow: 3px 3px grey;
}

section.puzzle-popup h3 {
  font-size: 24px;
  display: block;
  margin: 20px 0px 10px 0px;
}

section.puzzle-popup button.button-x {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 48px;
  height: 48px;
  border: none;
  cursor: pointer;
  cursor: hand;
  background-color: transparent;
  font-weight: bold;
  font-size: xx-large;
}


section.puzzle-popup .button-container {
	width: auto;
	height: 33px;
	margin: 0 0 7px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #5CA95C;
}

section.puzzle-popup .play-container {
	position: relative;
}


section.puzzle-popup .popup-inner {
	display: none;
}

section.puzzle-popup .popup-inner > img {
  margin: 10px auto 50px auto;
  max-width: 95vw;
  display: block;
  width: 400px;
}

/* #pp-app {
  height: 520px !important;
  max-height: 100%;
} */

#pp-app-inner {
  /* transform-origin: 0% 0% !important; */
}

#pp-screen1 {
  display: flex !important;
  flex-direction: column;
}

section.puzzle-popup .popup-inner.show {
	display: block;
}

.svg-play-outer {
	fill: #5CA95C;
}
.svg-play-inner {
	fill: white;
}

.button-container > div {
	cursor: pointer;
}
.button-container > div:hover {
	color: green;
}

.button-container .button-switch {
	text-align: left;
	width: 43%;
}
.button-container .button-play {
	display: none; /* wird erst von der puzzle-list aktiviert */
	text-align: center;
	width: 14%;
}
.button-container .button-pdf {
	text-align: right;
	width: 43%;
}
.button-container .button-pdf > a {
	all: unset;
}

@media (max-width: 470px), (max-height: 567px) {

	section.puzzle-popup {
		width: 100%;
		height: 500vh;
		border: none !important;
		top: 0;
		transform: translate(-50%,50px);
		padding-top: 10px !important;
	}

	section.puzzle-popup .button-container {
		margin: 0 0 5px 0;
	}

	section.puzzle-popup img {
		height: initial;
		margin: initial;
		min-width: initial;
		max-width: initial;
		width: 100%;
	}
	.overlay {
		background-color: rgba(255,255,255,0.9);
	}
}

/* --- ENDE: puzzles --- */

/* --- referenzen --- */
.referenzen-container {
  max-width: 900px;
  margin: auto;
  background: white;
  box-shadow: 0 0 300px 300px white;
}

.referenzen-sc {
    width: 691px;
    height: 472px;
    margin: 20px auto;
}
.referenzen-sc .swiper-container {
    /*width: 500px;
    height: 300px;*/
    text-align: center;
    font-size: 18px;
    background: #fff;

    /* Center slide text vertical-ly */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.referenzen-sp {
  bottom: -5px !important;
}

.referenzen-sbp.swiper-button-prev {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%233B5895'%2F%3E%3C%2Fsvg%3E");
}

.referenzen-sbn.swiper-button-next {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%233B5895'%2F%3E%3C%2Fsvg%3E");
}

@media (max-width: 750px) {

    .referenzen-sc {
        width: 100%;
        height: 100%;
    }
    .referenzen-sc .swiper-slide {
        overflow: hidden;
      }
}

/* --- END: referenzen --- */

/* --- Landing page --- */

@media (max-width: 600px) {
	.landing-page p {
		font-size: 15px;
	}
}

.landing-page p.source {
    padding-left: 3em;
}

.landing-page main > section {
    padding: 16px;
    padding-left: 60px;
    padding-right: 60px;
    font-size: 13pt;
    font-size: 1.1rem;
}

.landing-page .vertical-line {
    display: block;
    float: left;
    border-left: thick solid #ff0000;
    height: 160px;
    border: 0px solid white;
    margin: 0px 20px 0px 0px;
    border-left: 2px solid;
}

.landing-page .contact-button {
    font-size: 14px;
    line-height: 49px;
    padding: 3px 48px 0 48px;
    color: black;
    font-weight: bold;
    border: 5px solid #289028;
    transition: background-color 0.3s;
    background-color: #d4d4d4;
}

.landing-page .contact-button:hover {
    border: 5px solid #289028;
    background: initial;
    color: white;
    background-color: #289028;
}


.landing-page .showcase {
	width: 100%;
	text-align: center;
	overflow-x: auto;
	overflow-y: hidden;
	margin: 0 auto;
}
@media (min-width: 600px) {
	.landing-page .showcase {
		width: 773px;
	}
}

/*.landing-page .showcase a {
	border: none;
	display: initial;
}*/


.landing-page .showcase-scrolling-container {
	width: 100%;
/*	display: flex;
	flex-flow: row wrap;
	justify-content: space-around; */
}

@media (min-width: 600px) {
	.landing-page .showcase-scrolling-container {
		width: 773px;
	}
}

.landing-page .slot-sc {
    width: 25%;
	  height: 180px;
    color: black;
    display: block;
    float: left;
    margin: 0;
}
/*
.landing-page .slot-sc:last-of-type {
    float: initial;
}
*/
.landing-page .slot-sc .swiper-slide {
    text-align: center;
    font-size: 18px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.landing-page section.overview img {
	width: 80%;
    padding: 5%;
    box-shadow: rgba(0, 0, 0, 0.75) 1px 1px 10px 1px;
    background-color: white;
    display: block;
    float: left;
}

@media (min-width:6000px) {
	.landing-page section.overview img {
		width: 40%;
	}
}

.landing-page section.overview a {
    color: white;
    border-bottom: 2px solid #cacaca;
}

.landing-page section.overview {
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 1), 0px 0px 5px rgba(0, 0, 0, 1);
    color: white;
    background-color: #383d46;
    background-image: url('/img/backdrop-print.jpg?version=1');
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: calc(100vh - 60px);
    align-items: center;
    font-size: 12pt;
	line-height: 16pt;
}

@media (min-width: 600px) {
	.landing-page section.overview {
		font-size: 15pt;
		line-height: 18pt;
		display: flex;
	}
}


.landing-page section.overview ul {
  padding-left: 25px;
  text-justify: left;
}
.landing-page section.overview li {
	text-align: left;
	margin-bottom: 15px;
}

@media (min-width: 600px) {
	.landing-page section.overview ul {
	  list-style: none;
	  padding-left: 8px;
	}
	.landing-page section.overview li:before {
		content: '\2022';
		padding: 10px;
		padding-right: 14px;
		font-size: 30px;
		line-height: 30px;
		top: 3px;
		position: relative;
	}
}


@media (max-width: 600px) {
    .landing-page main > section {
        padding-left: 30px;
        padding-right: 30px;
        /* font-size: 1rem; */
    }

    .landing-page blockquote {
        margin-left: 0px;
        margin-right: 0px;
    }

    .landing-page blockquote > p.source {
        padding-left: 1.5em;
    }
}

.landing-page .slot-sc, .landing-page section.overview .showcase img {
    display: inline-block;
    /* float: initial; */
}

.landing-page section.overview .slot-sc2 {
    float: initial;
}

.landing-page .section-inner {
    max-width: 1100px;
    margin: 0 auto 0 auto;
    width: 100%;
}
@media (min-width: 600px) {
	.landing-page .section-inner {
		margin-bottom: 80px;
	}
}

.landing-page section/*:first-of-type*/ h2 {
	font-size: 20pt;
	line-height: 25pt;
	font-family: Roboto Slab;
}

@media (min-width: 600px) {
	.landing-page section:first-of-type h2 {
		font-size: 30pt;
		line-height: 38pt;
		font-family: Roboto Slab;
	}
}

.landing-page #parallax2 {
    background-image: url('/img/backdrop-online.jpg');
    height: 60vh;
    background-color: #348034;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.landing-page .inset-shadow {
    box-shadow: inset 0px -100px 60px -100px #000000,
    inset 0px 100px 60px -100px #000000;
}

.landing-page section.offer {
    color: black;
    background-color: white;
    /* background-image: url(/img/background.svg); */
}

.landing-page section.offer img {
    max-width: 100%;
}

.landing-page section.references {
    color: black;
    background-color: white;
}

.landing-page section.quotes {
    color: white;
    background-color: #344771;
}

.landing-page section.contact {
    color: black;
    background-color: white;
    padding: 70px 0px 70px 0px;
    text-align: center;
}

/* arrow hint */

.icon-arrow-hint {
    display: inline-block;
    overflow: hidden;
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAQCAYAAAAMJL+VAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4gQEDyMgYyExKgAAAKVJREFUOMullE0OwkAIhb+Zce8JvFgXPU9P0ANoPKY+N7QSExXoS1gMgQcMP00Shmby5Bi65+iOfAVuwDhAPoxj2TWSkLTojbukYfqMDPPdsEpq3aq4uCwm4JqsZJjP5HRnoH2Lnqnkp2/YsEL+GSAbJGRL0TGcSKX01FdWmpfqU2VCUpNGcQzDY1zd0vC2n4Kb+gBm955N9xfNXdPoSSBKXgmQxgsGGiqTeR0r2QAAAABJRU5ErkJggg==');
    height: 16px;
    width: 24px;
    display: block;
    margin-bottom: 20px
}

.arrow-hint {
    bottom: 0;
    height: 88px;
    left: 50%;
    margin-left: -44px;
    overflow: hidden;
    position: absolute;
    width: 24px;
    cursor: pointer;
    padding: 0 32px;
}

.animated-arrow-1 {
    -webkit-animation: arrow1 3s infinite ease-out;
    animation: arrow1 3s infinite ease-out;
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
    opacity: 0;
}

.animated-arrow-2 {
    -webkit-animation: arrow2 3s infinite ease-in;
    animation: arrow2 3s infinite ease-in;
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
    opacity: 1;
}

.display-none {
    display: none;
}

@-webkit-keyframes arrow1 {
    0% {
        opacity: 0;
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0)
    }

    90% {
        opacity: 0;
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0)
    }

    100% {
        opacity: 1;
        -webkit-transform: translate(0, 36px);
        transform: translate(0, 36px)
    }
}

@keyframes arrow1 {
    0% {
        opacity: 0;
        -webkit-transform: translate(0, 0);
        -ms-transform: translate(0, 0);
        transform: translate(0, 0)
    }

    90% {
        opacity: 0;
        -webkit-transform: translate(0, 0);
        -ms-transform: translate(0, 0);
        transform: translate(0, 0)
    }

    100% {
        opacity: 1;
        -webkit-transform: translate(0, 36px);
        -ms-transform: translate(0, 36px);
        transform: translate(0, 36px)
    }
}

@-webkit-keyframes arrow2 {
    0% {
        opacity: 1;
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0)
    }

    90% {
        opacity: 1;
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0)
    }

    100% {
        opacity: 0;
        -webkit-transform: translate(0, 36px);
        transform: translate(0, 36px)
    }
}

@keyframes arrow2 {
    0% {
        opacity: 1;
        -webkit-transform: translate(0, 0);
        -ms-transform: translate(0, 0);
        transform: translate(0, 0)
    }

    90% {
        opacity: 1;
        -webkit-transform: translate(0, 0);
        -ms-transform: translate(0, 0);
        transform: translate(0, 0)
    }

    100% {
        opacity: 0;
        -webkit-transform: translate(0, 36px);
        -ms-transform: translate(0, 36px);
        transform: translate(0, 36px)
    }
}

/* --- END: arrow hint --- */


.landing-page section:not(.overview) h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 25px;
    text-align: center;
    margin-top: 30px;
}

@media (min-width: 600px) {
	.landing-page section:not(.overview) h2 {
		font-family: 'Roboto Slab', serif;
		font-size: 40px;
		text-align: center;
		margin-top: 83px;
	}
}


.landing-page section.offer div.section-inner > .hr.underline {
   margin-top: -16px;  /* this is horrible */
}
@media (max-width: 600px) {
	.landing-page section.offer div.section-inner > .hr.underline {
	   margin-bottom: 30px;  /* this is horrible */
	}
}

.landing-page section.offer > div.section-inner > section.products {
    display: block;
    text-align: center;
}

.landing-page section.offer section {
	margin-bottom: 50px;
}
@media (min-width: 600px) {
	.landing-page section.offer section {
		margin-bottom: 100px;
	}
}


.landing-page section.offer > div.section-inner > section {
    display: flex;
    flex-wrap: wrap;
}

.landing-page .individualised h3 {
    text-align: left;
    flex: 1;
    min-width: 340px;
    margin-top: 0;
    margin-bottom: 20px;
    font-family: 'Roboto Slab', serif;
    font-size: 25px;
}

@media (min-width: 600px) {
	.landing-page .individualised h3 {
		margin-bottom: 38px;
		font-size: 40px;
	}
}

.landing-page section.offer .hr {
    width: 240px;
    height: 4px;
    background-color: green;
    margin-top: 5px;
}

.landing-page .individualised ul {
    flex: 1;
    min-width: 500px;
    margin: 0;
    padding-left: 0;
}

@media (max-width: 600px) { /* 770px */
    .landing-page .individualised ul {
      min-width: calc(100% - 120px);
    }

    .landing-page .individualised h3 {
      min-width: initial;
	  font-size: 25px;
    }
}

.landing-page .individualised ul li {
    display: flex;
    margin-bottom: 15px;
}
@media (min-width: 600px) {
	.landing-page .individualised ul li {
		margin-bottom: 48px;
	}
}

.landing-page .individualised ul li > img {
    height: 100px;
    padding-right: 40px;
    padding-top: 7px;
    height: 48px;
}

.landing-page .individualised ul li > p {
    min-width: 70%;
    margin: 0;
}

.landing-page .integration {
    flex-direction: row-reverse;
    justify-content: space-between;
}

.landing-page .integration > h3 {
    text-align: right;
    flex: 1;
    min-width: 340px;
    margin-top: 0;
    margin-bottom: 20px;
    font-family: 'Roboto Slab', serif;
    font-size: 25px;
    max-width: 400px;
}
@media (min-width: 600px) {
	.landing-page .integration > h3 {
		margin-bottom: 38px;
		font-size: 40px;
	}
}

.landing-page .integration > div {
    flex: 1;
    max-width: 600px;
    min-width: 440px;
}

.landing-page .integration .hr {
    float: right;
}

.landing-page .integration img {
    display: block;
    margin: 0 auto 20px auto;
}
.landing-page .integration p {
	padding-top: 0;
	padding-bottom: 0px;
}
@media (min-width:600px) {
    .landing-page .integration p {
		padding-bottom: 60px;
	}
}
@media (max-width: 500px) {
    .landing-page section.offer > div.section-inner > section {
      display: initial;
      overflow-wrap: break-word;
    }

    .landing-page .integration > h3 {
      min-width: initial;
    }

    .landing-page section.offer .hr {
      max-width: calc(100vw - 60px);
    }

    .landing-page .hr.separator {
      display: none;
    }

    .landing-page .individualised ul li {
      display: block;
    }

    .landing-page .individualised img {
      margin-bottom: 8px;
    }

    .landing-page .integration > div {
      min-width: initial;
    }

    .landing-page .integration > h3 {
      text-align: left;
    }

    .landing-page .integration .hr {
      float: none;
    }

    .landing-page .integration img {
      margin: 0;
      margin-bottom: 16px;
    }

    .landing-page .integration img.pdf {
      margin-left: -5px;
    }
}

.landing-page section.offer div.section-inner > .hr {
    margin: 40px auto 80px auto;
}

.landing-page section.offer div.section-inner > .hr.separator {
    background-color: #a2a2a2;
    margin: -50px auto 60px auto; /* this is absolutely horrible */
    width: 300px;
    height: 3px;
}

.landing-page section.quotes h2 {
    text-align: left;
}

/* --- END: Landing page --- */

img.team-portrait {
    width: 200px;
}
