/**
 * @author Florian Kapaun <mail@florian-kapaun.de>
 */

@font-face {
  font-family: 'SourceSansPro-Regular';
  src: url('../fonts/SourceSansPro-Regular.ttf');
}
@font-face {
  font-family: 'SourceSansPro-Bold';
  src: url('../fonts/SourceSansPro-Bold.ttf');
}

*{
  margin: 0;
  padding: 0;
}
html, body{
  width: 100%;
  height: 100%;
}
body{
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 130%;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -moz-font-feature-settings: "liga" on;
  background-color:#ff0000;
  color:#fff;
  margin:0;
  padding-top: 70px;
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/*******************************************************************************
                                    HEADER
*******************************************************************************/

header{
  position: fixed;
  left: 0;
  width: 100%; /* funktioniert nicht richtig beim start */
  width: 100vw;
  top: 0;
  height: 70px;
  background-color: #ff0000;
  box-shadow: rgba(185, 0, 0, 0.1) 0px 2px 2px,
              rgba(185, 0, 0, 0.1) 0px 4px 4px,
              rgba(185, 0, 0, 0.1) 0px 8px 8px,
              rgba(185, 0, 0, 0.1) 0px 16px 16px;
  z-index: 1;
}
header a{
  font-size: 0.75em;
  text-decoration: none;
  color: #fff;
}
header a:hover{
  -o-transition: 0.2s ease-in-out;
  -moz-transition: 0.2s ease-in-out;
  -webkit-transition: 0.2s ease-in-out;
  transition: 0.2s ease-in-out;
  opacity: 0.6;
}
header a:active{ opacity: 0.6; }

#logo, #veranstaltungen, #menu-button{
  position: absolute;
  display: inline-block;
  text-align: center;
  top: 10px;
}
#logo{
  left: 20px;
  z-index: 100
}
#veranstaltungen{
  right: 0;
  left: 0;
  margin: auto;
  z-index: 50;
  width: 8em;
}
#logo img, #veranstaltungen img, #hamburger{
  display: block;
  height: 30px;
  width: auto;
  margin: auto;
}
#veranstaltungen img{
  padding: 2px 0;
  height: 26px;
}

#menu-button{
  cursor: pointer;
  right: 20px;
  z-index: 150;
}

#hamburger{
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding-top: 3px;
}

.bar1, .bar2, .bar3 {
  -o-transition: 0.4s;
  -moz-transition: 0.4s;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  width: 30px;
  height: 2px;
  background-color: #fff;
  margin: auto;
  margin-bottom: 8px;
  margin-top: 8px;
  opacity: 0.9;
}
.bar1{ margin-top: 0; }
.bar3{ margin-bottom: 0; }

.change .bar1 {
  -ms-transform: rotate(-45deg) translate(-8px, 7px);
  -moz-transform: rotate(-45deg) translate(-8px, 7px);
  -webkit-transform: rotate(-45deg) translate(-8px, 7px);
  transform: rotate(-45deg) translate(-8px, 7px);
}
.change .bar2 {opacity: 0;}

.change .bar3 {
  -ms-transform: rotate(45deg) translate(-7px, -6px);
  -moz-transform: rotate(45deg) translate(-7px, -6px);
  -webkit-transform: rotate(45deg) translate(-7px, -6px);
  transform: rotate(45deg) translate(-7px, -6px);
}



/*******************************************************************************
                                     MENÜ
*******************************************************************************/

#menu{
  position: fixed;
  top: 70px;
  left: 100%;
  height: 100%;
  width: 100%;
  margin: 0;
  padding-bottom: 80px;
  background-color: #fff;
  -o-transition: 0.4s;
  -moz-transition: 0.4s;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  z-index: 125;
}

.active{
  left: 0 !important;
}

#menu ul{
  padding: 0;
  list-style: none;
  text-align: center;
}

#menu li{
  font-size: 1.9em;
}

#menu a{
  color: #ff0000;
}



/*******************************************************************************
                                  BODY-CONTENT
*******************************************************************************/

h1, h2, h3, h4, h5, p, figcaption, #termine, #kommandanten{
  max-width: 680px;
  margin: auto;
  padding: 0 20px;
}

h1{
  line-height: 1.2em;
  margin-top: 1em;
  -ms-hyphens: manual;
  -moz-hyphens: manual;
  -webkit-hyphens: manual;
  hyphens: manual;
}

h2{
  margin-top: 2em;
  line-height: 1.35em;
}

p{
  margin-bottom: 1em;
}

figure{
  margin: 2em 0;
}

figcaption{
  font-size: 0.65em;
  margin-top: 0.5em;
  opacity: 0.8;
}

main img{
  display: block;
  width: 100%;
}

/**
 * Buttons
 */
.btn{ cursor: pointer; }

main a,
.btn-outline,
.btn-unelevated{
  color: #ffffff;
  background-color: transparent;
  text-decoration: none;
  padding: 0.2em 0.7em;
  border-radius: 4px;
  border: 1px solid #ffd9d9;
  -o-transition: 0.2s ease-in-out;
  -moz-transition: 0.2s ease-in-out;
  -webkit-transition: 0.2s ease-in-out;
  transition: 0.2s ease-in-out;
  -ms-hyphens: manual;
  -moz-hyphens: manual;
  -webkit-hyphens: manual;
  hyphens: manual;
}
main a:after,
.btn-outline:after,
.btn-unelevated:after{
  position: relative;
  display: inline-block;
  content: ' ';
  background-image: url(/img/pfeil_rechts.svg);
  background-size: contain;
  background-repeat: no-repeat;
  width: 0.6em;
  height: 1em;
  top: 0.35em;
  margin-left: 0.3em;
}
main a:hover,
.btn-outline:hover,
.btn-unelevated:hover{
  background-color: #ff2c2c;
  box-shadow: #ff2c2c 0px 2px 1px
}

.btn-text{
  background-color: transparent;
  border: none;
  color: #fff;
}
.btn-text a{
  color: inherit;
  text-decoration: none;
}

.btn-unelevated{
  background-color: #fff;
  color: #ff0000;
  border: none;
}
.btn-unelevated:after{ background-image: url(/img/pfeil_rechts_rot.svg); }

.btn-unelevated:hover{
  background-color: #ffeaea;
  box-shadow: #de0000 0px 1px 1px,
              #de0000 0px 2px 2px;
}
.btn-unelevated:focus{
  background-color: #ffd9d9;
  outline: none;
}
.btn-unelevated:active{
  background-color: #ffb1b1;
  box-shadow: #de0000 0px 1px 1px,
              #de0000 0px 2px 2px,
              #de0000 0px 4px 6px;
}

/**
 * Text formating
 */
.bold{
  font-weight: 700;
}
.hyphens{
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
}



/* ************************************************************************** */
/* KOMMANDANTEN */

 #kommandanten{
  list-style: none !important;
}

#kommandanten li{
  clear: both;
}

#kommandanten span{
  display: inline-block;
  width: 120px;
  float: left;
  margin-bottom: 0.2em;
}

#kommandanten .name{
  width: 57%;
  -moz-width: calc(100% - 120px);
  -webkit-width: calc(100% - 120px);
  width: calc(100% - 120px);
}



/* ************************************************************************** */
/* VERANSTALTUNGEN */

#termin-uebersicht{
  display: block;
  margin-top: -60px;
  padding-top: 1em;
}

.date{
  width: 90px;
  float: left;
}

.info{
  width: 64%;
  -moz-width: calc(100% - 90px);
  -webkit-width: calc(100% - 90px);
  width: calc(100% - 90px);
  float: left;
}

.break{
  clear: both;
}


/* ************************************************************************** */
/* KONTAKT */

a.contact{
  display: table-caption;
}



/*******************************************************************************
                                    FOOTER
*******************************************************************************/

footer{
  font-size: 0.6em;
  line-height: 1.3em;
  text-align: center;
  margin: 5em 0 2em 0;
}

footer a{
  color: #fff;
  text-decoration: none;
}



/*******************************************************************************
                                COOKIE DISCLAIMER
*******************************************************************************/

.cookie-disclaimer{
  font-size: 0.8em;
  line-height: 1.3em;
  position: fixed;
    bottom: 0;
    left: 0;
  width: 100%;
  width: 100vw;
  background-color: #ff0000;
  box-shadow: rgba(185, 0, 0, 0.1) 0px -2px 2px,
              rgba(185, 0, 0, 0.1) 0px -4px 4px,
              rgba(185, 0, 0, 0.1) 0px -8px 8px,
              rgba(185, 0, 0, 0.1) 0px -16px 16px;
  z-index: 1;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  translation: 0.3s ease-in-out;
  animation: slide-in-upwards 0.5s .4s ease-in-out forwards;
}
.cookie-disclaimer-container{
  padding: 1em 20px;
}
.accept-cookie,
.decline-cookie{
  font-size: 1em;
  margin: 0 .5em;
}



/*******************************************************************************
                                  MEDIA QUERIES
*******************************************************************************/

@media (max-width: 289px){
  .info{
    width: 100%;
  }

  #kommandanten .name{
    width: 100%;
  }
}

@media (max-width: 328px){
  #kommandanten{
    padding-bottom: 2em;
  }
}

@media (min-width: 290px) and (max-width: 319px){
  #kommandanten .name{
    width: 52%;
  }
}

@media (min-width: 408px){
  a.contact{
    display: inline-block;
  }
}

@media (min-width: 760px){


  .info{
    width: 590px;
  }
}

@media (min-width: 850px){
  #veranstaltungen, #menu-button{
    display: none;
  }

  #menu{
    width: auto;
    top: 0;
    left: unset;
    right: 0;
    height: unset;
    padding-bottom: 0;
    background-color: transparent;
  }

  #menu ul{
    text-align: right;
    margin: 0.76em 0;
  }

  #menu li{
    font-size: 1.2em;
    display: inline-block;
    padding: 0 1em;
  }

  #menu a{
    color: #fff;
  }
}



/*******************************************************************************
                                  ANIMATION
*******************************************************************************/

main{
  animation: move-in 0.3s 0s ease-in;
  -o-transition: 0.3s ease-in-out;
  -moz-transition: 0.3s ease-in-out;
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}

.move-out{
  -ms-transform: transform: translate(-100%) !important;
  -moz-transform: transform: translate(-100%) !important;
  -webkit-transform: transform: translate(-100%) !important;
  transform: translate(-100%) !important;
}

@keyframes move-in{
  0%{
    -ms-transform: translate(100%);
    -moz-transform: translate(100%);
    -webkit-transform: translate(100%);
    transform: translate(100%);
  }
  100%{
    -ms-transform: translate(0%);
    -moz-transform: translate(0%);
    -webkit-transform: translate(0%);
    transform: translate(0%);
  }
}

@keyframes slide-in-upwards{
  0%{
    opacity: 0;
    transform: translateY(100%);
  }
  100%{
    opacity: 1;
    transform: none;
  }
}
