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

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@500&family=Poppins&display=swap');

* {
  box-sizing: border-box;
}

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  font-family: 'Poppins', sans-serif !important;
  background-color: #ededed;
}

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

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

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

.nsr-home {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.nav-links {
  width: 100%;
  height: 70px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background-color: rgba(0,0,0,.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links h1{
  color: white;
}

.nav-links img{
  height: 100%;
}

.links {
  display: flex;
  align-items: center;
  height: 100%;
}

.links a{
  color: white;
  font-size: 16px;
  text-decoration: none;
  height: 100%;
  padding: 0 30px;
  display: flex;
  align-items: center;
  transition-property: font-size;
  transition: .3s;
}

.links a:hover {
  font-size: 20px;
}

.nsr-home-img {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.nsr-home-img img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0;
  transition: opacity .4s linear;
}

.nsr-home-img img:first-child {
  opacity: 1;
}

main {
  width: 100%;
  position: relative;
  z-index: 1;
  background-color: #ededed;
}

main > article {
  width: 100%;
  display: flex;
  align-items: flex-start;
}

.nsr-right-direction {
  flex-direction: row-reverse;
}

.img-container {
  width: 35%;
  height: 100vh;
  position: sticky;
  top: 0;
  transition: width .4s linear;
}

.img-container .cover {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
}

.carousel-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
}

.img-container .carousel-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(100%,-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s linear;
}

.img-container .carousel-title h1 {
  padding: 10px 20px;
  margin: 0;
}

.nsr-right-direction .img-container .carousel-title {
  right: unset;
  left: 0;
  transform: translate(-100%,-50%);
}

.img-container .right-move, .img-container .left-move, #btn-prev-machine, #btn-next-machine{
  padding: 15px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  cursor: pointer;
  background-color: rgba(0,0,0,.7);
}

.img-container .left-move, #btn-prev-machine {
  left: 0;
  right: unset;
}

.img-container .carousel {
  width: fit-content;
  height: 100%;
  display: flex;
  flex-wrap: nowrap;
  transition: transform 1.2s linear;
}

.img-container .carousel img {
  width: 95vw;
  height: 100%;
  object-fit: cover;
}

.img-container .img-opener {
  position: absolute;
  left: 50%;
  bottom: 50px;
  transform: translateX(-50%);
  border-radius: 5px;
  padding: 10px 35px;
  border: none;
  background-color: rgba(0,0,0,1);
  color: white;
  transition: .3s;
  text-decoration: none;
  z-index: 10;
}

.img-opener:hover {
  background-color: rgba(255,255,255,1);
  color: black;
  transition-property: color, background-color;
  cursor: pointer;
}

.nsr-content {
  width: 65%;
  padding: 0 5% 5% 5%;
  transition: width .4s linear;
}

.nsr-content > h2 {
  width: 100%;
  font-size: 3vw;
  text-align: center;
  font-family: 'Noto Serif JP', serif;
}

.nsr-paragraph {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #c0c0c0;
}

.nsr-paragraph h3 {
  width: 100%;
  font-size: 24px;
  text-align: center;
}

.nsr-paragraph p, .nsr-paragraph li {
  font-size: 16px;
  line-height: 150%;
}

.nsr-paragraph .bold {
  font-weight: bold;
}

.right-text h3 {
  text-align: center;
}

.nsr-anfragen-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 30px;
}

.nsr-anfragen-wrapper h2 {
  font-size: 3vw;
  text-align: center;
}

.nsr-uber-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 30px;
}

.nsr-uber-wrapper h2 {
  font-size: 3vw;
  text-align: center;
}

.nsr-uber-wrapper .nsr-uber-wrapper-text {
  width: 60%;
}

.nsr-machines-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 30px;
}

.nsr-machines-wrapper h2 {
  font-size: 3vw;
  text-align: center;
}

.nsr-machines-carousel {
  position: relative;
  width: 600px;
  height: 600px; /* Adjust as needed */
}

.nsr-machines-carousel > img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
  object-fit: cover;
}



footer {
  width: 100%;
  padding: 50px 0;
  position: relative;
  z-index: 1;
  margin-bottom: 450px;
  background-color: #ededed;
  -webkit-box-shadow: 0 1px 3px 1px rgba(0,0,0,.1);
  -moz-box-shadow: 0 1px 3px 1px rgba(0,0,0,1);
  box-shadow: 0 1px 3px 1px rgba(0,0,0,1);
}

footer > div {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

footer > div > div {
  height: 100px;
  margin: 25px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px solid lightgray;
}

footer h3, footer a {
  text-align: center;
  margin: 5px;
  color: black;
}

.form-hatia {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 20px;
}

.form-hatia > .input-div {
  display: flex;
  column-gap: 10px;
}

.form-hatia > .input-div > div {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.form-hatia .input-div input,.form-hatia .input-div select{
 width: 300px;
  border-radius: 5px;
  padding: 10px;
  border: none;
  outline: none;
}

.form-hatia select {
  padding: 7px !important;
}

.form-hatia .text-aria {
  width: 605px;
  display: flex;
  flex-direction: column;
}

.form-hatia .text-aria textarea{
  width: 100%;
  height: 200px;
  border-radius: 5px;
  padding: 10px;
  border: none;
  outline: none;
}

.form-hatia button {
  padding: 20px 50px;
  color: white;
  background-color: #222222;
  cursor: pointer;
  border: none;
  outline: none;
  transition: .3s;
}

.form-hatia button:hover {
  color: #222222;
  background-color: white;
}

.form-hatia .consent {
  width: 605px;
  display: flex;
  column-gap: 30px;
}

.form-hatia .consent > div {
  width: auto;
}

.consent .consent-label {
  display: flex;
  flex-direction: row !important;
  column-gap: 5px;
}

.form-hatia .hatia-checkbox {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid gray;
  width: 605px;
  display: flex;
  justify-content: space-between;
}

.form-hatia .hatia-checkbox > div {
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.consent .consent-label input {
  width: 50px;
  height: 50px;
}

.map {
  width: 100%;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 0;
}


.map iframe {
  width: 100%;
}

@media only screen and (max-width: 450px) {
  .nsr-home {
    height: 80vh;
  }

  .nav-links {
    height: auto;
    flex-direction: column;
    justify-content: center;
  }
  .nav-links img{
    height: 80px;
    padding: 10px 0;
  }
  .links a{
    font-size: 11px;
    text-decoration: none;
    height: 100%;
    padding: 5px 10px;
  }

  main > article {
    flex-direction: column;
  }
  main > article:nth-child(1) > .img-container {
    display: none;
  }

  .nsr-right-direction {
    flex-direction: column;
  }
  .img-container {
    width: 100%;
    height: 35vh;
    max-height: 320px;
    position: relative;
  }
  .carousel-container {
    opacity: 1;
    pointer-events: auto;
  }
  .img-container .carousel-title {
    display: none;
  }

  .img-container .carousel {
    transition: transform .6s linear;
  }

  .img-container .carousel img {
    width: 100vw;
  }
  .img-container .img-opener {
    display: none;
  }
  .nsr-content {
    width: 100%;
    padding: 5%;
  }
  .nsr-content > h2 {
    font-size: 6vw;
  }
  .img-container .right-move, .img-container .left-move, #btn-prev-machine, #btn-next-machine{
    padding: 5px;
  }

  .nsr-uber-wrapper {
    padding-bottom: 5%;
  }

  .nsr-uber-wrapper h2 {
    font-size: 6vw;
  }

  .nsr-anfragen-wrapper {
    padding-bottom: 5%;
  }

  .nsr-uber-wrapper .nsr-uber-wrapper-text {
    width: 95%;
  }

  .nsr-uber-wrapper .nsr-uber-wrapper-text p {
    font-size: 12px;
  }

  .nsr-anfragen-wrapper h2 {
    font-size: 6vw;
  }

  .nsr-machines-wrapper h2 {
    font-size: 6vw;
  }

  .nsr-machines-carousel {
    width: 100%;
    height: 500px; /* Adjust as needed */
  }
  .nsr-machines-carousel > img {
    object-fit: cover;
  }

  .form-hatia .hatia-checkbox {
    width: 100%;
    align-items: center;
  }

  .form-hatia .hatia-checkbox > div {
    flex-direction: row;
    align-items: center;
    text-align: center;
  }

  footer {
    width: 100%;
    flex-direction: column;
    padding: 25px 0;
    margin-bottom: 450px;
  }
  footer > div > div{
    width: 100%;
    margin: 0;
    border-left: unset;
  }

  .form-hatia .input-div input,.form-hatia .input-div select{
    width: 100%;
  }

  .form-hatia > div{
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    row-gap: 20px;
    input {
      width: 100%;
      padding: 10px;
    }
  }

  .form-hatia .text-aria {
    width: 100%;
    row-gap: 0;
  }

  .form-hatia textarea {
    width: 100%;
    padding: 10px;
    min-height: 70px;
  }

  .form-hatia .consent {
    width: 100%;
    display: flex;
    column-gap: 30px;
  }

  .form-hatia button:hover {
    color: #222222;
    background-color: white;
  }
}
