/*! 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
   ========================================================================== */
/* latin */
@font-face {
	font-family: 'Assistant';
	font-weight: 200 800;
    	font-display: fallback;
	src: url('/fonts/Assistant-VariableFont_wght.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
    /* ascent-override: 110%; */
}

html {
  color: #00103d;
  font-size: 18px;
  line-height: 1.4;
  font-family: Assistant, sans-serif;
  font-weight: 400;
}
h1 {
  color: #1a1d24;
}

  .img-mobile {
    display: none;
  }
  .img-desktop {
    display:block;
  }
@media (max-width: 700px) {
  .img-mobile {
    display: block;
  }
  .img-desktop {
    display:none;
  }
}
/*
 * 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;
}
body {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.main {
  position: relative;
  overflow: hidden;
  background-image: url('../img/bg.jpg');
  background-repeat: no-repeat;
  background-size: cover;
    object-fit: cover;
   // height: 800px;
}

.info-box {
  background-color: #1a1d24;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 0 1.25rem;
  font-weight: 700;
  font-size: 14px;
}

.main-logo {
  display: flex;
  margin-top: 4.375em;
  margin-bottom: 4.5em;
}

.made-in-germany {
    display: flex;
    justify-content: flex-end;
}

.google-map {
  display: flex;
  align-items: baseline;
  gap: 0 0.25rem;
}

.google-map__icon,
.google-map__text {

  align-self: baseline;
  display: inline-flex;
}

.main-video {
  position: relative;
  display: block;
  margin: 0px auto 0 auto;
  width: 100%;
}

.main a {
  color: inherit;
}

.subpage .main-nav a {
  color: #1a1d24;
}

.main-nav {
  padding: 2rem 0;
  display: flex;
  margin-left: clamp(1.25rem, 8vw,8rem);
  column-gap: 2rem;
  z-index: 1;
  position: relative;
  font-size: 18px;
}

.main-nav .text {
  color: #fff;
}

.subpage .main-nav {
  margin-left: 1rem;
}

.subpage .main-nav .text {
  color: #1a1d24;
}

/*.main:after {
	
    margin-right: -1px;
    background-image: url('../img/bg-overlay.svg');
    position: absolute;
    bottom: -2px;
    right: 20px;
    background-repeat: no-repeat;
    content: '';
    display: block;
    max-width: 846px;
    max-height: 286px;
    width: 44vw;
    height: 15vw;
    min-width: 336px;
    min-height: 114px;
    z-index: 1;
}*/

.subpage .main-nav:after {
	display: none;
}

.main-nav a {
  padding: 0 .125rem;
  color: #fff;

}

.main-legal-text {
  margin-top: 4rem;
  margin-bottom: 2rem;
}
.main-legal-text .main-nav {
  margin-left: .5rem;
}
.legal-text {
  padding: 0 1rem;
}

.legal-text a{
  color: #1a1d24;
  word-break: break-all;
}

.main-left {
  position: absolute;
  top: 0;
  left: clamp(1.25rem, 8vw, 8rem);
  //bottom: 0;
  z-index: 1;
  width: 100%;
  max-width: 18.25rem;
  display: flex;
}

.main-content {
  position: relative;
  //padding: 1.875rem;
  padding-top: 0;
  /*background-color: rgba(0, 0, 0, 0.75);*/
  background-color: transparent;
  color: #fff;
  width: 100%;
  overflow: hidden;
  /* box-shadow: inset 0 0 3em rgba(0, 0, 0, 0.4); */
  z-index: 1;
}
/*
.main-content:after {
    background-image: ;
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background-repeat: no-repeat;
    content: '';
    display: block;
    height: 100%;
    background-position: center bottom;
    background-size: 100%;
    z-index: -1;
}*/

.download-pdf {
  text-decoration: underline;
}

.headline {
  margin-top: 80px;
  color: #fff;
  font-weight: 600;
/* @link https://utopia.fyi/type/calculator?c=320,36,1.2,980,74,1.2,0,5,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=amp%3Bs,l,xl,12 */
  font-size: clamp(2.25rem, 1.0985rem + 5.7576vw, 4.625rem);
  margin-bottom: 0;
  line-height: 0.8;
}

.download-pdf:hover {
  text-decoration: none;
}

.subpage {
  color: #1a1d24;
}

.subpage__logo {
  padding: 2rem 1rem;
}

a {
  text-decoration: none;
  text-decoration: none;
  transition: text-decoration .5s;
}

a:hover{
  text-decoration: underline;
}

.main-bg {
  display: flex;
  align-items: flex-start;
  align-content: flex-start;
  position: relative;
  width: 100%;
  height: 703px;
  color: #fff;
  flex-wrap: wrap;
}

.main-bg .text-img {
    max-width: 448px;
    margin-left: clamp(18.25rem, 30vw, 30rem);
    padding: 20px;
    margin-top: 11.5rem;
}

.main-bg .text,
.main-bg .headline {
	margin-left: clamp(18.25rem, 30vw, 30rem);
	text-align: left;
	padding: 20px;
	z-index: 2;
}

.main-bg .text {
    max-width: 540px;
    padding: 20px;
    margin-right: 50px;
    font-size: 1.375rem;
}

.main-bg .text p:first-child {
  margin-top: 0;
}

.main-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video */
.video-container_fullwidth {
  position: relative;
  width: 100%;
  aspect-ratio: 1280/700;
  height: 700px;
}

.video-container_fullwidth > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  object-position: center left;
}

.video-container__controls_center {
  align-items: center;
  display: flex;
  justify-content: center;
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.video-container__pause {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  text-indent: -9999px;
  border: 0;
  background-color: transparent;
  background-size: 16px 16px;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  transition: opacity 320ms, transform 320ms;
  opacity: 0;
  z-index: 10000;
  filter: drop-shadow(0 0 2em rgba(0,0,0,.25)) drop-shadow(0 0 .5em rgba(0,0,0,.15));
}

.video-container__pause.huge {
  bottom: 50%;
  right: 50%;
  position: unset;
}

.video-container__fullscreen {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  text-indent: -9999px;
  border: 0;
  background-color: transparent;
  background-size: 40x 40px;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  transition: opacity 320ms, transform 320ms;
  opacity: 0;
  z-index: 10000;
  filter: drop-shadow(0 0 2em rgba(0,0,0,.25)) drop-shadow(0 0 .5em rgba(0,0,0,.15));
}

ul {
  padding-left: 1.5em;
}

/*
 * 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;
}

/* ==========================================================================
   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) {
  /* Style adjustments for viewports that meet the condition */
}

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

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

  /*
   * 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;
  }
}



@media (max-width: 800px) {
  .main-left {
    position: relative;
    //max-width: 100%;
    //left: 0;
  }

  .headline {
	margin-top: 30px;
}

.main-logo {
    margin-bottom: 4rem;
}

.main-bg .text-img {
    margin-top: 4rem;
    margin-bottom: 2.5rem;
}

.main-bg .text, .main-bg .headline, .main-bg .text-img {
  margin-left: clamp(1.25rem, 8vw, 8rem); 
  margin-right: clamp(1.25rem, 8vw, 8rem); 
  max-width: 100%;
  padding: 0;
}

.main-bg {
  //padding-bottom: 120px;
  height: auto;
}

  .main-nav {
    margin-right: 0.5em;
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 1.25rem;
  }

  .main-content {
    margin-bottom: 0;
  }

  .video-container_fullwidth {
    height: 400px;
  }

  .video-container_fullwidth > video {
    object-position: center center;
  }

}

@media (max-width: 700px) {
	.main-nav:after {
		display: none;
	}
}
