/*! HTML5 Boilerplate v9.0.1 | 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: #000;
  font-size: 1em;
  line-height: 1.4;
}

/*
  * 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
    ========================================================================== */


/* ===== WEBFONTS */

@font-face {
    font-family: 'Quicksand Light';
    font-style: normal;
    font-weight: 300;
    src: url(../fonts/Quicksand-Light.woff2) format('woff2'),
         url(../fonts/Quicksand-Light.ttf) format('truetype');
}

@font-face {
    font-family: 'Quicksand Bold';
    font-style: normal;
    font-weight: 700;
    src: url(../fonts/Quicksand-Bold.woff2) format('woff2'),
         url(../fonts/Quicksand-Bold.ttf) format('truetype');
}

@font-face {
    font-family: 'MS Madi';
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/MsMadi-Regular.woff2) format('woff2'),
         url(../fonts/MsMadi-Regular.ttf) format('truetype');
}

/*
@font-face {
    font-family: 'DM Serif';
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/DMSerifText-Regular.ttf) format('ttf');
}
*/

h1, .buchungscode, footer h3 { font-family: "MS Madi"; }
html {
  font-family: "Quicksand Light", sans-serif;
  font-size: 1.25rem;
}
a, strong { font-family: "Quicksand Bold", sans-serif; }

h1, .buchungscode { font-size: 5em; }
.slideshow figcaption, footer h3 { font-size: 2.5em; }
h2 { font-size: 2em; }
button { font-size: 1em; }
.privacywire-ask-consent, .privacywire-page-wrapper { font-size: 0.8em; }

.buchungscode { line-height: 1.2; }

h2, h3 { font-weight: normal; }
footer h3, .buchungscode { font-weight: bold; }

nav, footer, #buchung, figure, #highlights { text-align: center; }

a { text-decoration: none; }
a:hover, button:hover { text-decoration: underline; }

/* ===== FARBEN */

.logo h1, footer h3, a, .buchungscode { color: rgb(63, 112, 188); }
.galerie figcaption { color: #666; }

button, .klappbox-button, .highlights div { background-color: rgb(63, 112, 188); color: #fff; }
figure { background-color: #eee; }
figcaption { background-color: #fff; }

/* ===== ALLGEMEINES */

* { box-sizing: border-box; }

html, body { height: 100%; }

.wrapper {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section { padding: 2em 0; }
section:first-of-type { padding-top: 4em; }
section:last-of-type { padding-bottom: 4em; }

body, h1, h2, h3, p, figure, nav ul, footer ul { margin: 0; }
nav ul, footer ul { padding: 0; }

.klappbox-content { display: none; }

.galerie figcaption { 
  padding: 0.5rem;
  border-bottom: 1px solid #999;
}

a.button {
  display: block;  
  text-align: center;
}
button {
  cursor: pointer;
  padding: 0.5rem 1rem; 
  border-radius: 0.5rem;
  border: 0;
}

.klappbox-button { 
  padding: 0.5rem 1rem; 
  border-radius: 0.5rem;
  display: grid;
  grid-template-columns: auto 1rem;
  cursor: pointer;
}
.klappbox-button i { line-height: 1.6; }
.klappbox-content { border-bottom: 1px solid rgb(63, 112, 188); }

img { max-width: 100%; }


/* ===== ABSTÄNDE */

* + h2 { margin-top: 4rem; }
a.button + *, * + a.button, p + h3, footer p + ul { margin-top: 2rem; }
header .logo h1, h2 + *, * + .galerie, p + p, h3 + p { margin-top: 1rem; }
.klappbox-button, .privacywire-ask-consent button { margin-top: 0.5rem; }
.buchungscode, .buchungscode + * { margin-top: 0; }

/* ===== HEADER */

header {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

header .logo {
  position: absolute;
  top: 3em;
  z-index: 10;
  width: 100%;
  text-align: center;
}

header .logo h1 {

  text-shadow: 2px 2px 20px #ffffff, -2px -2px 20px #ffffff, -2px 2px 20px #ffffff, 2px -2px 20px #ffffff;
}

header .logo img { max-width: 7.5em; }

header .logo p {
  position: relative;
  top: -0.75rem;
  display: inline-block;
  padding: 0 0.5rem;
  background-color: rgba(255, 255, 255, 0.75);
}

.slideshow figcaption {
  padding: 0 1rem;
  background-color: rgba(255, 255, 255, 0.75);
}

/* ===== NAVIGATION */

nav { 
  padding: 2rem 0.5rem; 
  border-bottom: 1px solid #999
}
nav ul, footer ul { list-style: none; }
nav ul li, footer ul li { display: inline-block; }
nav ul li + li, footer ul li + li { margin-left: 2rem; }

/* ===== HIGHLIGHTS */

.highlights { 
  display: flex; 
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}

.highlights div {
  padding: 1rem 2rem;
  border-radius: 0.5rem;
}

/* ===== FOOTER */

footer { padding: 2rem; }
footer img { 
  max-width: 5rem; 
  margin-bottom: 1rem;
}

/* ===== COOKIES */

.privacywire-ask-consent {
  padding: 2rem;
  background: #eee;
}

.privacywire-buttons { margin: 0.375rem 0; }
.privacywire-buttons button { margin: 0.125rem 0; }

.privacywire-page-links a + a { margin-left: 0.5rem; }

.privacywire-text ul { 
  padding: 0; 
  margin: 0.5rem 0;
}

.privacywire-text ul li { list-style: none; }
.privacywire-text ul li label { cursor: pointer; }
.privacywire-text ul li input { margin-right: 0.5rem; }


/* ==========================================================================
    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 (max-width: 1000px) {

  header .logo img { max-width: 7.5rem; }

  .slideshow figcaption { font-size: 2rem; }

}

@media only screen and (max-width: 650px) {

  header .logo h1 { 
    padding: 1.75rem 0 1.5rem;
    line-height: 0.8;
  }

  .slideshow figcaption { 
    box-sizing: border-box;
    font-size: 1.5rem;
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
  }

  footer ul li { display: block; }
  footer ul li + li {
    margin-left: 0;
    margin-top: 0.5rem;
  }

}

@media only screen and (max-width: 500px) {

  header .logo { top: 1.5rem; }
  header .logo h1 { font-size: 3rem; }
  header .logo img { max-width: 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;
  }
}

