@font-face {
  font-family: 'main-font';
  src: url('../fonts/barlow-semi-condensed/Light.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'main-font';
  src: url('../fonts/barlow-semi-condensed/SemiBold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}

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

/** /
* {
  outline: 1px dotted rgba( 0, 0, 0, .2 );
}
/**/

:root {
  --offwhite: #fcfdfe;
  --offblack: #212223;
  --bright: #c6e61a;
  --primary: #9c0;
  --secondary: #e70;
  --bar: #f8f8f8;
  --borderline: #babbbc;
  --marker: #fe0;
}

::selection {
  background: var(--marker);
/*  color: var(--offblack);*/
}

html {
  font-size: 62.5%;
  line-height: 1.333em;
  height: 100%;
}

body {
  background-attachment: fixed;
  background-color: var(--bright);
  background-color: var(--bar);
  color: var(--offblack);
  font-family: 'main-font', Arial, sans-serif;
  font-size: 2.1rem;
  height: 100%;
  line-height: 2.7rem;
}

@media ( width < 400px ) {
  body {
    font-size: 1.8rem !important;
  }
}

a:not([class]) {
  text-underline-offset: .2rem;
}

#page-wrapper {
  background-color: var(--offwhite);
  display: flex;
  flex-direction: column;
  position: relative;
}

.container {
  margin: 0 auto;
  max-width: 96rem;
  width: 100%;
}

@media (max-width: 979px) {
  #header .container,
  #footer .container {
    margin: 0 2rem;
    width: calc( 100% - 4rem );
  }
}

#infobar {
  background-color: var(--bar);
  color: #333;
  font-size: 1.2rem;
  line-height: 1.5rem;
  order: -1;
  padding: 2rem 0;
  text-align: center;
}

#infobar a {
  color: #333;
}

#header {
  background-color: var(--bright);
  /* box-shadow: 0 0 .5rem #0003; */
  /*
  border-bottom: .2rem solid #333;
  border-bottom: .1rem solid var(--primary);
  border-top: .1rem solid var(--primary);
  */
  height: 16rem;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 10;
}

#header .container {
  display: flex;
  height: 16rem;
  justify-content: space-between;
  padding: 0;
  position: relative;
}

/*
#header:after {
  background-image: linear-gradient(var(--offwhite) 2rem,transparent);
  bottom: -3.2rem;
  bottom: -3.1rem;
  content: '';
  height: 3rem;
  position: absolute;
  width: 100%;
  z-index: 9;
}
*/

#nav-toggle,
[for="nav-toggle"] {
  display: none;
}

/*
.navbar {
  font-weight: bold;
  text-transform: uppercase;
}
*/

@media ( min-width: 768px ) {
  .navbar ul {
    display: flex;
    list-style-type: none;
    padding: 2rem 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: top .25s ease-in-out;
  }
  
  .navbar ul li {
    margin-left: 2rem;
    transition: transform .25s ease-in-out;
  }
  
  .navbar ul li a {
    color: #333;
    text-decoration: none;
    transition: color .1s ease-in-out;
  }
  
  .navbar ul li a:hover {
    color: var(--offwhite);
  }
  
  .navbar ul li a.active {
    color: var(--offwhite);
    font-weight: bold;
  }
  
  .navbar ul li ul {
    display: none;
  }
  
  .navbar ul li.home {
    display: none;
  }
}

/*
@media ( min-width: 768px ) and ( max-width: 839px ) {
  .navbar ul li.datenschutz {
    display: none;
  }
}
*/

@media ( min-width: 768px ) and ( max-width: 979px ) {
  .navbar ul {
    right: 2rem;
    top: 8rem;
  }
  
  .navbar ul li {
    margin-left: 0;
    transform: rotate(-40deg);
    width: 6rem;
  }
}


@media ( max-width: 767px ) {
  [for="nav-toggle"] {
    color: #333;
    cursor: pointer;
    display: block;
    font-size: 3rem;
    position: fixed;
    right: 2rem;
    top: 1.5rem;
    z-index: 1000;
    em {
      display: none;
    }
  }
  
  [for="nav-toggle"] > span {
    display: block;
    /* height: 3.6rem; */
    position: absolute;
    right: 0;
    text-align: center;
    top: 0;
    transition: opacity .15s ease-in-out, transform .15s ease-in-out;
    /* width: 3.6rem; */
  }
  
  #nav-toggle:checked + [for="nav-toggle"] > span:first-of-type,
  [for="nav-toggle"] > span:last-of-type {
    opacity: 0;
    transform: scale(.5);
  }
  
  [for="nav-toggle"] > span:first-of-type,
  #nav-toggle:checked + [for="nav-toggle"] > span:last-of-type {
    opacity: 1;
    transform: scale(1);
  }
  
  #header:before {
    transition: height .15s ease-in-out;
  }
  
  #header nav {
    background-color: #babbbc;
    border-left: .1rem solid #a9aaab;
    bottom: 0;
    font-family: 'main-font', arial, sans-serif;
    overflow-y: scroll;
    overscroll-behavior: none;
    padding: 2.5rem 2rem;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(32rem);
    transition: transform .15s ease-in-out;
    width: 32rem;
    z-index: 20;
  }
  
  #nav-toggle:checked ~ nav {
    transform: translateX(0);
  }
  
  #header nav ul {
    list-style-type: none;
  }
  
  #header nav ul li {
    margin-bottom: 2rem;
  }
  
  #header nav ul li ul {
    display: none;
  }
  
  #header nav ul a {
    color: #333;
    text-decoration: none;
  }
  
  #header nav ul a.active {
    color: var(--offwhite);
    font-weight: bold;
  }
}

@media( max-width: 639px ) {
  [for="nav-toggle"] {
    font-size: 2.4rem;
  }
}

a#logo {
  /* background-image: url('../img/finq.svg'); */
  bottom: .2rem;
  display: block;
  height: 12rem;
  position: absolute;
  width: 12rem;
  span {
    display: none;
  }
}

a#signet {
  color: #333;
  left: 15rem;
  bottom: .8rem;
  position: absolute;
  text-decoration: none;
  text-transform: uppercase;
}

a#signet h1 {
  font-size: 3.2rem;
  line-height: 3.4rem;
}

a#signet h1 span {
  margin-left: -2.6rem;
}


a#signet h3 {
  font-size: 3.2rem;
  font-weight: normal;
  line-height: 3.4rem;
  text-indent: -.1rem;
}

#logo #bird-body-outline {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: dash .5s linear forwards;
  animation-delay: .2s;
}

#logo #wing-line {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: dash .125s linear forwards;
  animation-delay: .6s;
}

#logo #beak-base {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: dash .1s linear forwards;
  animation-delay: .7s;
}

#logo #beak-devider {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: dash .1s linear forwards;
  animation-delay: .8s;
}

#logo #front-leg {
  stroke-dasharray: 10;
  stroke-dashoffset: 10;
  animation: dash .05s linear forwards;
  animation-delay: .7s;
}

#logo #back-leg {
  stroke-dasharray: 10;
  stroke-dashoffset: 10;
  animation: dash .05s linear forwards;
  animation-delay: .8s;
}

#logo #bird-body-background {
  opacity: 0;
  animation: fadein .15s linear forwards;
  animation-delay: .75s;
}

#logo #eye {
  opacity: 0;
  animation: fadein .15s linear forwards;
  animation-delay: .65s;
}

@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadein {
  to {
    opacity: 1;
  }
}

@media (max-width: 639px) {
  #header {
    height: 8rem;
    height: calc( 16/64 * 100vw );
  }
  
  #header .container {
    height: 8rem;
    height: calc( 16/64 * 100vw );
  }
  
  a#logo {
    height: 6rem;
    width: 6rem;
    height: calc( 12/64 * 100vw );
    width: calc( 12/64 * 100vw );
  }
  
  a#signet {
    left: calc( 15/64 * 100vw );
    position: absolute;
  }
  
  a#signet h1 {
    font-size: calc( 3.2/64 * 100vw );
    line-height: calc( 3.4/64 * 100vw );
  }
  
  a#signet h1 span {
    margin-left: -1.3rem;
    margin-left: calc( -2.6/64 * 100vw )
  }
  
  a#signet h3 {
    font-size: calc( 3.2/64 * 100vw );
    line-height: calc( 3.4/64 * 100vw );
    text-indent: calc( -.1/64 * 100vw );
  }

}

#meta {
  list-style: none inside;
}

#navigation {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  width: 100%;
}

img {
  max-width: 100%;
}

#start {
  margin: 0 auto;
  /* padding: 12rem 0; */
  max-width: 96rem;
  min-height: calc( 100vh - 39.5rem );
  width: 100%;
}

@media ( max-width: 979px ) {
  #start {
    margin: 2rem;
    max-width: 100%;
    min-height: calc( 100vh - 36rem );
    width: auto;
  }
}

@media ( max-width: 414px ) {
  #start {
    margin: 2rem 1rem;
  }
}

#start a {
  color: var(--primary);
}

#start a:hover {
  color: var(--secondary);
}

#start p,
#start ul,
#start h1,
#start h2,
#start h3 {
  margin-bottom: 2rem;
}

#start h1,
#start h2,
#start h3 {
  text-wrap: balance;
}

@media ( width < 480px ) {
  #start .reference h3 {
    text-wrap: nowrap;
  }
}

/*
#start p {
  text-indent: 1rem;
}
*/

#start h1 {
  font-size: 3.2rem;
}

/*
body:not(.home) #start section:first-of-type h2,
body.home #start h2:first-of-type,
*/
#start h2 {
  color: var(--primary);
  font-size: 3.2rem;
  font-weight: bold;
  text-transform: uppercase;
}

@media ( width < 360px ) {
  #start h2 {
    text-transform: none;
  }
}

#start h2.pagetitle {
  color: var(--secondary);
}

@media ( width < 400px ) {
  #start h2.pagetitle {
    font-size: 8vw;
  }
}

#start p + h2 {
  margin-top: 8rem;
}

#start ul {
  list-style-type: none;
}

#start ul li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
}

#start ul li:before {
  color: var(--primary);
  content: '–';
  left: 0;
  position: absolute;
}

#start > section {
  /* margin: 20rem 0; */
  /* margin: 10rem 0; */
  margin: 5rem 0 10rem;
  position: relative;
}

@media ( max-width: 1023px ) {
  #start > section:first-of-type {
    margin-top: 5rem;
  }
}


/*
#start > section:before {
  background-color: #eee;
  content: '';
  height: .5rem;
  height: .1rem;
  left: 0;
  position: absolute;
  top: -9.8rem;
  top: -10rem;
  width: 100%;
}

#start > section:first-of-type:before {
  display: none;
}
*/

/* #start > section:after {
  background-color: var(--primary);
  border-left: .2rem solid var(--offwhite);
  border-right: .2rem solid var(--offwhite);
  content: '';
  height: .5rem;
  left: calc( 50% - 10rem );
  position: absolute;
  top: -10rem;
  width: 20rem;
} */

.group > section {
  display: flex;
  gap: 4rem;
}

@media ( max-width: 979px ) {
  .group > section {
    display: block;
    margin: 8rem 0;
  }
}

.group > section > div {
  margin: 4rem 0;
  width: 100%;
}

@media ( min-width: 980px ) {
  .group > section > div {
    width: calc( 50% - 2rem );
  }
}

.single > section > div:last-of-type,
.group > section > div:last-of-type {
  border: .1rem dotted var(--borderline);
  border-radius: 1.3rem;
  /* background-color: var(--bright); */
  overflow: hidden;
  padding: 4rem 2rem 0 2rem;
  position: relative;
}

@media ( width < 400px ) {
  .single > section > div:last-of-type,
  .group > section > div:last-of-type {
    padding: 4rem 1rem 0 1rem;
  }
}

.single > section > div:last-of-type {
  max-width: 48rem;
  margin-top: 2rem;
}

.single > section > div:last-of-type h3,
.group > section > div:last-of-type h3 {
  background-color: var(--borderline);
  color: white !important;
  font-size: 2.1rem !important;
  left: 0;
  line-height: 100%;
  margin-bottom: .5rem !important;
  position: absolute;
  padding: 1rem 2rem;
  right: 0;
  text-transform: uppercase;
  top: 0;
}

@media ( width < 480px ) {
  .single > section > div:last-of-type h3,
  .group > section > div:last-of-type h3 {
    text-transform: none;
  }
  
}

@media ( width < 400px ) {
  .single > section > div:last-of-type h3,
  .group > section > div:last-of-type h3 {
    font-size: 1.8rem !important;
    padding: 1rem;
  }
}

h3 .type {
  color: var(--offblack);
  font-weight: normal;
  text-transform: none;
}

.single > section > div:last-of-type p,
.group > section > div:last-of-type p {
  margin: 1rem 0 !important;
}

.single > section > div:last-of-type p:not(:first-of-type),
.group > section > div:last-of-type p:not(:first-of-type) {
  border-top: .1rem dotted var(--borderline);
  padding-top: 1rem;
}

@media ( min-width: 980px ) {
  .group > section:nth-of-type(even) > div:last-of-type {
    order: -1;
  }
}

.reference img {
  border-radius: 1.3rem;
  box-shadow: 0 0 .8rem #0003;
  cursor: zoom-in;
  object-fit: contain;
/*  overflow: hidden;*/
  transition: transform .15s ease-in-out;
  width: 100%;
}

.reference input[type=checkbox]:not(:checked) + label img:hover {
  transform: scale(.98);
}

.reference label {
  display: block;
  line-height: 0;
}

.reference input[type=checkbox] {
  display: none;
}

.reference input[type=checkbox]:checked + label {
  background-color: #000;
  background-image: url('../img/close.svg');
  background-position: 98% 2%;
  background-repeat: no-repeat; 
  background-size: 3.3rem;
  bottom: 0;
  display: flex;
  left: 0;
  padding: 2rem;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20000;
}

.reference input[type=checkbox]:checked + label img {
  cursor: zoom-out;
}

.articles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 4rem 0;
}

@media ( max-width: 959px ) {
  .articles {
    gap: 2rem;
  }
}

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

.articles > * {
  border: .1rem solid var(--borderline);
  border-radius: 1.3rem;
  /* background-color: var(--bright); */
  overflow: hidden;
  padding: 5rem 2rem;
  position: relative;
}

@media ( max-width: 959px ) {
  body:not(.blog) .articles > * {
    padding: 1rem;
  }
}

.articles > * h2 {
  background-color: var(--borderline);
  color: white !important;
  font-size: 2.1rem !important;
  left: 0;
  line-height: 100%;
  margin-bottom: .5rem !important;
  position: absolute;
  padding: 1rem 2rem;
  right: 0;
  top: 0;
}

@media ( width < 400px ) {
  .articles > * h2 {
    font-size: 1.8rem !important;
  }
}

@media ( max-width: 959px ) {
  .articles > * h2 {
    padding: 1rem;
  }
}

/*
.articles > * p.more {
  border-top: .1rem solid var(--borderline);
  margin: 1rem 0 !important;
  padding-top: 1rem;
}
*/

.articles > * p.more a.button {
  bottom: 2rem;
  position: absolute;
  right: 2rem;
}

.slider > div img {
  margin: 0 auto;
  max-width: 50%;
}

.slider li:before {
  display: none;
}

.slider .slick-dots {
  bottom: -8rem;
}

.slider .slick-dots button:before {
  font-size: 3.2rem;
}

@media ( min-width: 640px ) {
  .wrapper-title {
    display: flex;
    gap: 4rem;
  }
  
  .wrapper-title .wrapper-cover {
    width: 50%;
  }
  
  .wrapper-title .wrapper-description {
    width: 50%;
  }
  
  #start section:nth-of-type(odd) .wrapper-description {
    order: -1;
  }
}

.wrapper-title .wrapper-cover img {
  margin-bottom: 2rem;
}

.wrapper-title .logo {
  margin-bottom: 2rem;
  width: 50%;
}

.button {
  background-color: var(--primary);
  border-radius: .5rem;
  color: var(--offwhite) !important;
  display: inline-block;
  font-size: 1.3rem;
  font-weight: bold;
  padding: .5rem 2rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .1s ease-in-out;
}

.button:hover {
  background-color: var(--secondary);
}

.functions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 4rem 0;
}

@media ( max-width: 959px ) {
  .functions {
    gap: 2rem;
  }
}

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

.function {
  border: .1rem dotted var(--borderline);
  border-radius: 1.3rem;
  /* background-color: var(--bright); */
  overflow: hidden;
  padding: 2rem 2rem 0 2rem;
  position: relative;
}

@media ( max-width: 959px ) {
  .function {
    padding: 2rem 1rem 0 1rem;
  }
}

/*
.function:hover {
  background-color: var(--bright);
}
*/

.function h2 {
  background-color: var(--borderline);
  color: white !important;
  font-size: 2.1rem !important;
  left: 0;
  line-height: 100%;
  margin-bottom: .5rem !important;
  position: absolute;
  padding: 1rem 2rem;
  right: 0;
  top: 0;
}

@media ( width < 400px ) {
  .function h2 {
    font-size: 1.8rem !important;
  }
}

@media ( max-width: 959px ) {
  .function h2 {
    padding: 1rem;
  }
}

.function h3 {
  color: var(--primary) !important;
  font-size: 2.8rem !important;
  line-height: 120%;
  margin: 3rem 0 1rem !important;
}

@media ( width < 400px ) {
  .function h3  {
    font-size: 2.4rem !important;
  }
}

.function p {
  border-top: .1rem dotted var(--borderline);
  margin: 1rem 0 !important;
  padding-top: 1rem;
}

.eyecatcher {
  background-color: var(--offwhite);
  border: .1rem solid var(--bar);
  border-radius: .7rem;
  /* box-shadow: 0 0 1rem var(--offwhite); */
  color: var(--offwhite);
  color: var(--secondary);
/*  display: none;*/
  font-size: 1.3rem;
  font-weight: bold;
  /* letter-spacing: .05rem; */
  padding: 0 1rem;
  position: absolute;
  right: 1rem;
  text-transform: uppercase;
  top: .6rem;
}

body.ueber-uns #start img {
  border-radius: 50%;
  width: 24rem;
}

#basebar {
  /* background: #f8f8f8; */
  bottom: 0;
  /* box-shadow: 0 0 .5rem #0003; */
  color: #bbb;
  font-size: 1.8rem;
  line-height: 2.1rem;
  padding: 1rem 0;
  position: sticky;
  text-align: right;
}

#basebar a {
  background-color: #fffc;
  border-radius: .2rem;
  color: var(--primary);
  display: inline-block;
  padding: .2rem .4rem;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
}

@media (max-width: 979px) {
  #basebar {
    padding: 1rem;
  }
}

@media (min-width: 980px) {
  #basebar a {
    
    position: absolute;
    right: 2rem;
    bottom: 1rem;
  }
}

#footer {
  background-color: var(--bright);
  background-color: #212223;
  /* border-top: .1rem solid var(--primary); */
  color: #f0f1f2;
  font-size: 1.8rem;
  line-height: 2.3rem;
  min-height: 16rem;
}

#footer strong {
  color: var(--primary);
  text-transform: uppercase;
}

#footer .container {
  display: flex;
  justify-content: space-between;
  padding: 2rem 0;
}

#footer .container > p {
  max-width: 50%;
}

@media ( max-width: 569px ) {
  #footer .container {
    flex-wrap: wrap;
  }
  
  #footer .container > p {
    margin-bottom: 2rem;
    max-width: 100%;
  }
}


#footer a {
  color: #333;
  color: #f0f1f2;
}

#footer-info {}

.cols {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}

.cols > div {
  width: 50%;
}

.cols > div:last-of-type {
  text-align: right;
}

.cols > div:last-of-type img {
  border: .1rem solid var(--borderline);
  border-radius: 50%;
  /*
  filter: grayscale(1);
  transition: filter .5s ease-in-out;
  */
  width: 18rem;
}

/*
.cols > div:last-of-type img:hover {
  filter: grayscale(0);
}
*/

@media ( max-width: 639px ) {
  .cols {
/*    flex-wrap: wrap;*/
  }
  
  .cols > div:first-of-type {
    width: 75%;
  }
  
  .cols > div:last-of-type {
    width: 25%;
  }
  
  body.home .cols > div:last-of-type {
/*    display: none;*/
  }
  
  body.home .cols > div:last-of-type img {
    width: 9rem;
  }
}

#kontakt-formular {
  display: block;
  margin: 4rem 0;
  max-width: 48rem;
}

#kontakt-formular .buttons {
  margin-top: 4rem;
}

.form-field {
  border-radius: 1.3rem;
  background-color: var(--borderline);
  display: flex;
  font-weight: bold;
  margin-bottom: 2rem;
  overflow: hidden;
  padding: .1rem;
}

.form-label {
  align-items: center;
  color: var(--offwhite);
  display: flex;
  font-size: 1.6rem;
  justify-content: right;
  padding-right: 1.6rem;
  position: relative;
  text-align: right;
  text-transform: uppercase;
  width: 14rem;
}

.form-label .required {
  position: absolute;
  right: .5rem;
  top: 0;
}

.form-data {
  background-color: var(--offwhite);
  border-bottom-right-radius: 1.2rem;
  border-top-right-radius: 1.2rem;
  display: flex;
  overflow: hidden;
  /* padding: .2rem; */
  width: 100%;
}

.form-textarea-wrapper,
.form-input-wrapper {
  display: flex;
  overflow: hidden;
  /* padding: .2rem; */
  width: 100%;
}

.form-data input[type=text],
.form-data input[type=email],
.form-data textarea {
  display: block;
  font-family: 'main-font', Arial, sans-serif;
  font-size: 1.6rem;
  padding: .8rem .4rem;
  width: 100%;
}

.form-data textarea {
  height: 10rem;
}

.form-data.basic-captcha .form-input-wrapper {
  border: 0;
  border-radius: 0;
}

sup, sub {
  position: relative;
  vertical-align: baseline;
  top: -0.4em;
}
sub { top: 0.4em; }