/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.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;
  font-size: 1em;
  line-height: 1.4;
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * 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
   ========================================================================== */

/* fjalla-one-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fjalla One';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/fjalla-one-v15-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}   

/* fira-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/fira-sans-v17-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* fira-sans-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fira Sans';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/fira-sans-v17-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* fira-sans-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/fira-sans-v17-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

body {
  margin: 0 auto;
  background-color: #F3F3F3;
}

.header {
    height: 30vh;
    overflow: hidden;
    position: relative;
}

.main-carousel {
  height: 30vh;
  overflow: hidden;
}


.header__headline__container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1001;
  display: flex;
}

.header__headline {
  font-family: 'Fjalla One';
  width: 100%;
  height: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding-bottom: 2rem;
  color: #fff;
  text-transform: uppercase;
}

.header__headline h1, .header__headline h2 {
  margin-bottom: 0;
  margin-top: 0.1em;
  letter-spacing: 0.08em;
  text-shadow: 2px 2px 2px rgba(0,0,0,0.5);
}

.header__headline h2 {
  font-size: 1em;
}

.carousel-cell {
  height: 30vh;
  width: 100%;
  background: #ccc;
}
/* nur für den Übergang */
.carousel-cell1 {
  background: url(../img/bild1.jpg) no-repeat center;
  background-size: cover;
}
.carousel-cell2 {
  background: url(../img/bild2.jpg) no-repeat center;
  background-size: cover;
}
.carousel-cell3 {
  background: url(../img/bild3.jpg) no-repeat center;
  background-size: cover;
}
.carousel-cell4 {
  background: url(../img/bild4.jpg) no-repeat center;
  background-size: cover;
}
.carousel-cell5 {
  background: url(../img/bild5.jpg) no-repeat center;
  background-size: cover;
}
.carousel-cell6 {
  background: url(../img/bild6.jpg) no-repeat center;
  background-size: cover;
}
.carousel-cell7 {
  background: url(../img/bild7.jpg) no-repeat center;
  background-size: cover;
}
.carousel-cell8 {
  background: url(../img/bild8.jpg) no-repeat center;
  background-size: cover;
}
.carousel-cell9 {
  background: url(../img/bild9.jpg) no-repeat center;
  background-size: cover;
}
.carousel-cell10 {
  background: url(../img/bild10.jpg) no-repeat center;
  background-size: cover;
}
.carousel-cell11 {
  background: url(../img/bild11.jpg) no-repeat center;
  background-size: cover;
}
.carousel-cell12 {
  background: url(../img/bild12.jpg) no-repeat center;
  background-size: cover;
}
.carousel-cell13 {
  background: url(../img/bild13.jpg) no-repeat center;
  background-size: cover;
}
.carousel-cell14 {
  background: url(../img/bild14.jpg) no-repeat center;
  background-size: cover;
}
.carousel-cell16 {
  background: url(../img/bild16.jpg) no-repeat center;
  background-size: cover;
}
.carousel-cell17 {
  background: url(../img/bild17.jpg) no-repeat center;
  background-size: cover;
}
.carousel-cell18 {
  background: url(../img/bild18.jpg) no-repeat center;
  background-size: cover;
}
.carousel-cell19 {
  background: url(../img/bild19.jpg) no-repeat center;
  background-size: cover;
}
.carousel-cell20 {
  background: url(../img/bild20.jpg) no-repeat center;
  background-size: cover;
}
.carousel-cell21 {
  background: url(../img/bild21.jpg) no-repeat center;
  background-size: cover;
}
.carousel-cell22 {
  background: url(../img/bild22.jpg) no-repeat center;
  background-size: cover;
}
.carousel-cell23 {
  background: url(../img/bild23.jpg) no-repeat center;
  background-size: cover;
}


.main {
  font-family: 'Fira Sans';
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 3rem;
}

.infos {
  position: relative;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem;
  justify-content: center;
  font-family: 'Fjalla One';
}

.info {
  padding: .5rem;
  background: #F9F7F7;
  box-shadow: 0 0 10px 0 rgba(0,0,0,0.25);
  margin-bottom: 1rem;
}

.infos p {
  margin: 0;
  padding: 0;
}

.infos p::before {
  content: "";
  background: url(../img/diamond.svg) no-repeat center;
  display: block;
  width: 100%;
  height: 1.5em;
  margin-right: .5em;
  margin-bottom: .5rem;
}

.intro {
  margin-top: 0;
  padding: 0 1.5rem;
}

.intro p:first-of-type {
  margin-top: 0;
}

.link {
  font-family: 'Fjalla One';
  display: inline-block;
  padding: 0.5rem 1rem 0.25rem 1rem;
  border: 2px solid #000;
  border-radius: 3px;
  text-decoration: none;
  color: #000;
  transition: transform 0.5s;
}

.link:hover {
  transform: scale(1.1); 
}

/* ==========================================================================
   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
 */

.visually-hidden {
  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 .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.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
 *
 * 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;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    .header {
      height: 87vh;
      overflow: hidden;
      position: relative;
    }

    .main-carousel {
      height: 87vh;
      overflow: hidden;
    }

    .carousel-cell {
      height: 87vh;
      width: 100%;
    }

    .header__headline {
      padding-bottom: 5rem;
    }

    .header__headline h1 {
      font-size: 5vw;
    }

    .header__headline h2 {
      font-size: 2vw;
    }


    .infos {
      position: relative;
      z-index: 1000;
      display: flex;
      flex-direction: row;
      background: #F9F7F7;
      padding: 1rem 1.5rem;
      margin-top: -2.5%;
      justify-content: space-between;
      box-shadow: 0 0 10px 0 rgba(0,0,0,0.25);
      font-family: 'Fjalla One';
    }

    .info {
      margin: 0;
      padding: 0;
      box-shadow: none;

    }

    .infos p::before {
      content: "";
      background: url(../img/diamond.svg) no-repeat;
      display: inline-block;
      width: 1.5em;
      height: 1.5em;
      margin-right: .5em;
      margin-bottom: -.4em;
    }

    .intro {
      margin-top: 1.5rem;
    }
}

@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;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

