/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  /*  background-color: #EF343B; */
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* CUSTOM STYLES */
body {
  overflow-x: hidden;
  overflow-y: scroll;

  font-family: "Myriad Pro", sans-serif;
}

.box-shadow {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0,.25);

}
body#site_1, body#site_2, body#site_3, body#site_4 {
  /*  background-color: #EF343B;*/
  /* background-image: linear-gradient(to right, #ec5d8e 0%, #eeaec4 100%); */
  background-image: linear-gradient(to right, #cdc7a5 0%, #e4e6e1 100%);

}
.col {
  margin: 1%;
  width: 98%;

  position: relative;


}
.left-col {
  float: left;


}

.right-col {
  float: left;
}

.header {
  background-color: #fff;
  border-radius: 5px;

  font-size: 5vw;

}
.header p {}
.logo {
  padding-left: 2%;
  max-width: 30%;

  float: left;
}
.logo img {
  margin: 1vw 0;
  max-width: 100%;
}
.headline {
  padding-left: 2%;
  padding-right: 2%;
  margin-top: 0.4em;

  max-width: 64%;
  float: left;
  /* font-size:2em; */
  font-size: 5vw;
}
#site_1 .headline, #site_2 .headline, #site_3 .headline {
  font-size: 2.9vw;

}

.headline1 {
  color: #282828;  ;
}
.headline2 {
  color: #282828; ;
}

.cover-incentive {
  position: relative;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  width: 100%;
  height: auto;


}
.head {
  width: 106%;
  margin: 0 ;
}
.incentive-details-btn {
  position: absolute;
  cursor: pointer;
}

img.incentive-details-btn  { width: 132px !important;  max-width: 31%; bottom: 0;}
#incentive-1-details-btn { right: 30%; }
#incentive-2-details-btn { right: -5px; top: 2%;}



#site_1 img#cover {
  position: relative;
  width: 40%;
  z-index: 999;
}

#site_1 #incentive-1-container {
  position: absolute;
  bottom: 5%;
  left: 35%;
  width: 50%;
}
#site_1 #incentive-2-container {
  position: absolute;
  width: 50%;
  right: -25%;
}

#site_1 img#incentive-1 {

}
#site_1 img#incentive-2 {

}


.incentive-infobox {
  display: none;
  z-index: 9;
  background-color: #fff;
  padding: 1vw;
  border-radius: 5px;
  font-size: 2vw;
  border: 1px solid #707070;
  margin-top:  1vw;
}
#incentive-infobox-1 {
  margin-top: 65%;
  margin-left: 0%;
}

#site_3 #incentive-infobox-1 {
  margin-top: 53%;
}
#incentive-infobox-2 {
  margin-top: 8%;
}

.incentive-infobox p {
  margin: 0.35em 0;
}
.incentive-infobox.open {
  display: block;
  position: absolute;

}

.incentive-selection {
  background-color: #896f53;
  color: #fff;

  border-radius: 5px;
  padding: 10px 5%;
  position: relative;
  font-size: 3vw;

}
.frage {
  margin-top: 0.25em;
  margin-bottom: 0.5em;
}
.incentive-selection p {
  margin-bottom: 1em;
}
.incentive-box {
  float:left;
  margin-left: 30px;
  margin-bottom: 1vw;
}
#incentive-box-1 {
  margin-right: 15%;
}
.incentive-selection input {
  width: 20px;
  height: 20px;
  padding: 2px;
}
.incentive-selection.error  {
  background-color: rgba(239,52,59, .75);
}


.details-btn {

}
.form-box {
  border-radius: 5px;
  background-color: #EEE;
  padding: 5%;
  position: relative;

}
.ja {
  font-size: 1.5em;
  color: #EF343B;
  font-weight: bold;
  line-height: 0;
}

.intro, .right-col > p, .col > p {
  font-size: 3vw;
}
.form {
  position: relative;
  margin-top: 1em;

}
form {
  position: relative;
  padding: 0;
  margin: 0;
  width: 100%;

}
.form-inputs {
  position: relative;
}
#anrede, #vorname, #nachname, #strasse, #hausnummer, #plz, #ort, #email {
  float: left;
  -webkit-appearance: none;
}
#anrede, #strasse, #plz {
  margin-right: 1%;
}


#anrede, #vorname, #nr, #wohnort, #plz {
  width: 33%;

}
#nachname, #email {
  width: 100%;
}
#vorname, #wohnort, #strasse {
  width: 66%;
}

input[type=text].error {
  /* background-color: #EF343B; */
  background-color: rgba(239, 52, 59, .75);
}

input[type=text].error::placeholder {
  color: #fff;
}
.submit-btn {
  cursor: pointer;
  width: 100%;
  color: #fff;
  padding: 0 !important;


  margin-top: 10px;

}
.submit-btn .error {
  background-color: #EF343B;
  padding: 10px 15px;
}

.submit-btn .ok {
  display: none;
}
.submit-btn.ok .ok {
  display: block;
  border-radius: 2px;
}

.submit-btn .error {
  display: block;
  border-radius: 2px;
}
.submit-btn.ok .error {
  display: none;
}

.submit-btn .ok {
  background-color: #1ec702;
  padding: 10px 15px;
}




/* SITE 2 */
#kontoinhaber {
  width: 100%;
}
#iban {
  width: 100%;
}
#schloss {
  display: inline-block;
  margin-bottom: 6px;
}

#site_2 img#cover {
  width: 50%;

}


#site_2 img#incentive-1 {
  width: 60%;
  position: absolute;
  right: 0;
  bottom: 0;
}
#site_2 img#incentive-2 {
  width: 60%;
  position: absolute;
  right: 0;
  bottom: 0;
}
#site_2 img#incentive-1-stoerer {
  position: absolute;
  right:26%;
  top: 22%;
  width: 22%;
}
#site_2 img#incentive-2-stoerer {
  position: absolute;
  right: 30%;
  width: 25%;
  bottom: -5%;
}

.cover-incentive .bg-bar {
  position: absolute;
  height: 90%;
  top: 5%;
  left: -10%;
  width: 120%;
  background-image: linear-gradient(to right, #ec5d8e 0%, #eeaec4 100%);
  z-index: -1;
}


#overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 9;
  background-color: rgba(0,0,0,0.25);
  display: none;
  text-align: center;
}
#alert {
  font-size: 3vw;
  height: auto;
  background-color: #fff;
  padding:2vw;
  text-align: center;
  width: auto;
  display: inline-block;
  margin: 30vh auto;
  border-radius: 2px;
  border: 1px solid #707070;

}

button[type=button].close-btn {
  font-size: 3vw;
}

.highlight {
  color: #EF343B;
}

#site_3 .form {
  text-align: center;
}
.submit-link {
  color: #136ba9;
}

/* SITE_4 */

#site_4 #cover {
  float: left;
}
.danke-text {
  float: left;
  margin-left: 2vw;
  margin-top: 50px;
  font-size: 3vw;
}
.outro {
  font-size: 4vw;
  color: #747372;
}
.outro a {
  color: #EF343B;
  text-decoration: underline;
}

/* ALLGEMEIN*/


.disclaimer {
  text-align: right;
  font-size: 2vw;
}
.disclaimer-links a {
  padding: 0 2vw;
  border-left: 1px solid #707070;
  color: #707070;
}
.disclaimer-links a:first-child {
  border: none;
  padding-left: 0;
}
.disclaimer-links a:last-child {
  padding-right: 0;
}







input[type=text], input[type=number], input[type=email], button[type=submit], button[type=button], select {
  display: inline-block;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 10px 15px;
  font-size: 4vw;


  margin-bottom: 10px;
  box-shadow: inset 0 0 2px #ccc;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-appearance: none;
  transition: background-color  ease-in 0.25s;
}

select {
  /* needed */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* SVG background image */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2020%2018%22%3E%3Ctitle%3Edown-arrow%3C%2Ftitle%3E%3Cg%20fill%3D%22%23000000%22%3E%3Cpath%20d%3D%22M10.293%2C3.293%2C6%2C7.586%2C1.707%2C3.293A1%2C1%2C0%2C0%2C0%2C.293%2C4.707l5%2C5a1%2C1%2C0%2C0%2C0%2C1.414%2C0l5-5a1%2C1%2C0%2C1%2C0-1.414-1.414Z%22%20fill%3D%22%23000000%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-size: 1em;
  background-position: center right ;
  background-repeat: no-repeat;
}
select::-ms-expand {
  display: none;
}

/* RADIO BUTTONS */
input[type="radio"] + span:before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: -5px 10px 0 0;
  vertical-align: middle;
  border: 1px solid silver;
  border-radius: 100%;
}

label {
  position: relative;
  cursor: pointer;
}

input[type="radio"] {
  position: absolute;
  left: -999em;
}

input[type="radio"]:checked + span:before {
  content: "";
  background: #EF343B;
  border-color: #EF343B;
  box-shadow: inset 0 0 1px 2px white;
}

input[type="radio"] + span {
  margin-left: -30px;
}






/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 576px) {

  button[type=button].close-btn {
    font-size: 3vw;
  }
}
@media only screen and (min-width: 768px) {
  .incentive-infobox {
    font-size: 1.6vw;

  }
  #incentive-infobox-1 {
    margin-top:52%;
  }

  #site_3 #incentive-infobox-1 {
    margin-top: 18%;
  }
  .headline {
    font-size: 2.8vw;
  }
  #site_1 .headline, #site_2 .headline, #site_3 .headline {
    font-size: 2.6vw;
  }


  .head {
    width: 114%;
  }
  .left-col {
    width: 47%;
  }
  .right-col {
    width: 47%;
    float:right;
  }
  .incentive-selection {
    font-size: 1.8vw;
  }
  .intro, .right-col > p, .col > p {
    font-size: 2vw;
  }
  input[type=text], input[type=number], input[type=email], button[type=submit], button[type=button], select {
    font-size: 2vw;
  }
  .disclaimer {
    font-size: 1vw;
  }

  #alert {
    font-size: 2vw;
  }
  button[type=button].close-btn {
    font-size: 2vw;

  }

}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  head
    /*
     * Printing Tables:
     * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
     */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

.blink {
  animation: blink-animation 3.5s steps(1) infinite;
  -webkit-animation: blink-animation 3.5s steps(1) infinite;
}
@keyframes blink-animation  { 0% { opacity:0; } 10% { opacity:1; } 20% { opacity:0; } 30% { opacity:1; } 40% { opacity:0; } 50% { opacity:1; } }
@-webkit-keyframes blink-animation { 0% { opacity:0; } 10% { opacity:1; } 20% { opacity:0; } 30% { opacity:1; } 40% { opacity:0; } 50% { opacity:1; } }
