/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

* {
	box-sizing: border-box;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
textarea, select, input, button { outline: none; -webkit-appearance: none; border-radius: 0; }

input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance:textfield; }

@font-face {
  font-family: 'TSTAR PRO';
  src: url('../../fonts/TSTARPRO-Bold.woff2') format('woff2'),
      url('../../fonts/TSTARPRO-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'TSTAR PRO';
  src: url('../../fonts/TSTARPRO-Light.woff2') format('woff2'),
      url('../../fonts/TSTARPRO-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
}

:root {
  --page-padding: 1.875rem;
  --start-x: 0;
  --start-y: 0;
  --header-height: 82px;

  --font-size-xxl: 3.75rem;
  --font-size-xl: 2.5rem;
  --font-size-l: 1.5rem;
  --font-size-m: 1rem;
  --font-size-s: 0.875rem;
}

@media screen and (min-width: 1000px) {
  :root {
    --page-padding: 3rem;
    --header-height: 136px;

    --font-size-xxl: 5rem;
    --font-size-xl: 3.5rem;
    --font-size-l: 2rem;
    --font-size-m: 1rem;
    --font-size-s: 0.875rem;
  }
}

/* GENERAL */

body {
  font-size: 16px;
  font-family: "TSTAR PRO", sans-serif;
}

input {
  font-family: "TSTAR PRO", sans-serif;
}

a {
  text-decoration: none;
}

picture.cover {
  width: 100%;
  display: flex;
}

picture.fixed img {
  position: fixed;
  top: 0px;
  left: 0;
  z-index: -1;
}

picture.cover img {
  object-fit: cover;
  min-width: 100%;
  min-height: 100%;
}

.main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media screen and (min-height: 1000px) {
  .main {
    padding-top: var(--header-height);
  }
}

.main__home {
  margin-top: calc(var(--header-height) * -1);
}

@media screen and (max-width: 767px) {
  .state--hidden-mobile {
    display: none !important;
  }
}

@media screen and (min-width: 768px) {
  .state--hidden-desktop {
    display: none !important;
  }
}

/* RICHTEXT / GENERAL TEXT-STYLES */

.richtext h2 {
  font-size: var(--font-size-xl);
  margin-bottom: 0.8em;
}

.richtext h3 {
  font-size: var(--font-size-m);
  line-height: 1.5;
  font-weight: bold;
}

.richtext p {
  font-size: var(--font-size-m);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.richtext strong,
.richtext b {
  font-weight: 600;
}

.richtext em {
  font-style: italic;
}

.richtext a {
  color: #000;
  text-decoration: underline;
}

.richtext li {
  margin-bottom: 0.5rem;
}

.button {
  display: inline-block;
  border: 1px solid #000;
  background-color: #fff;
  padding: 1rem 2rem;
  text-decoration: none;
  color: #000;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  transition: background-color 300ms ease;
}

.button:hover {
  background-color: rgb(238, 238, 238);
}

.button-inverted {
  font-size: var(--font-size-m);
  border: 1px solid #000;
  background-color: #000;
  padding: 0.85rem 2rem;
  text-decoration: none;
  color: #fff;
  transition: 300ms ease;
  display: inline-block;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  transition: background-color 300ms ease, color 300ms ease;
}

.button-inverted:hover {
  background-color: #fff;
  color: #000;
}

@media screen and (min-width: 768px) {
  .richtext p {
    max-width: 80%;
  }
}

/* HEADER */

.header {
  background-color: #fff;
  padding: 25px var(--page-padding);
  width: 100%;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

@media screen and (min-height: 1000px) {
  .header {
    position: fixed;
    top: 0;
    left: 0;
  }
}

.header__logo {
  max-height: 80px;
  max-width: 150px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0px);
}

.header__burger {
  width: 23px;
  height: 23px;
  position: relative;
  z-index: 1;
}

.header__burger span {
  display: block;
  height: 1px;
  background-color: #000;
  position: absolute;
  width: 100%;
  top: 11px;
}

.header__burger span::before,
.header__burger span::after {
  content: "";
  width: 100%;
  height: 1px;
  background-color: #000;
  position: absolute;
  left: 0;
}

.header__burger span::before {
  top: -7px;
}

.header__burger span::after {
  bottom: -7px;
}

.header__button,
.header__lang-navigation {
  display: none;
}

.main-navigation .header__button {
  border: 1px solid #000;
  display: inline-block;
  margin: 0 auto;
  padding: 10px 20px;
}

.main-navigation .header__lang-navigation li {
  display: inline-block;
  margin-right: 10px;
}

.main-navigation .header__lang-navigation li:last-child {
  margin-right: 0;
}

.main-navigation .header__lang-navigation a {
  font-size: var(--font-size-m);
}

.main-navigation .header__lang-navigation .state-active-lang {
  text-decoration: underline;
  font-weight: bold;
}

.main-navigation .header__lang-navigation {
  display: block;
  margin-top: 3rem;
}

.header__cart {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: var(--font-size-s);
}

.header__cart-count {
  padding-right: 0.5rem;
  font-weight: bold;
  color: #000;
}

.main-navigation {
  text-transform: uppercase;
  position: absolute;
  width: 100%;
  left: 0;
  padding: 100px var(--page-padding) 25px;
  top: 0;
  height: 100vh;
  background: #fff;
  transition: transform 400ms ease;
  transform: translate3d(-100%, 0, 0);
  z-index: -1;
  text-align: center;
}

.state-active .main-navigation {
  transform: translate3d(0, 0, 0);
}

.main-navigation__level-1 {
  height: 100%;
  margin-bottom: 2rem;
}

.main-navigation__sub-level {
  height: 0;
  overflow: hidden;
  transition: height 200ms ease, margin-top 200ms ease;
}

.state-active-link .main-navigation__sub-level {
  height: auto;
  margin-top: 1.5rem;
}

.main-navigation li {
  margin-bottom: 1.5rem;
  text-align: center;
}

.main-navigation a {
  font-size: var(--font-size-l);
  line-height: 1.5;
  font-weight: bold;
  color: #000;
  text-decoration: none;
  transition: color 300ms ease;
}

.main-navigation__sub-level li {
  margin-bottom: 0;
}

.main-navigation__sub-level a {
  font-size: var(--font-size-m);
  line-height: 1.5;
  margin-bottom: 0.6rem;
  display: inline-block;
}

.main-navigation a:hover,
.main-navigation .active > a {
  color: #000;
}

@media screen and (min-width: 1000px) {
  .header {
    padding: var(--page-padding);
    align-items: flex-start;
  }

  .header.state-header-home {
    background-color: transparent;
  }

  .header__logo {
    max-height: 120px;
  }

  .header__burger {
    display: none;
  }

  .header__right {
    display: flex;
    align-items: flex-start;
  }

  .header__cart {
    display: none;
  }

  .header__button {
    display: block;
    margin-top: -10px;
    margin-right: 2rem;
    border: 1px solid #000;
    padding: 10px 20px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    transition: background-color 200ms ease;
    white-space: nowrap;
    font-weight: 600;
    text-transform: uppercase;
  }

  .header__button span {
    white-space: nowrap;
    font-weight: normal;
    padding-left: 0.5rem;
  }

  .header__button:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }

  .header__lang-navigation {
    display: block;
  }

  .header__lang-navigation a {
    font-weight: bold;
    text-decoration: none;
    color: #000;
    font-size: var(--font-size-m);
  }

  .main-navigation .header__button,
  .main-navigation .header__lang-navigation {
    display: none;
  }

  .main-navigation {
    background-color: transparent;
    position: relative;
    height: auto;
    width: 100%;
    transform: none;
    padding: 0;
    text-align: left;
  }

  .main-navigation__level-1 {
    padding-bottom: 1rem;
    margin-bottom: 0;
  }

  .main-navigation__sub-level {
    overflow: visible;
    height: auto !important;
    padding-bottom: 0;
    position: absolute;
    top: 2rem;
    width: 50vw;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, -20px, 0);
    transition: opacity 200ms ease, transform 200ms ease;
  }

  .state-active-link .main-navigation__sub-level {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
  }

  .main-navigation li {
    display: inline-block;
    text-align: left;
    margin-bottom: 0;
    margin-right: 20px;
  }

  .main-navigation li li {
    display: inline-block;
  }

  .main-navigation a {
    font-size: var(--font-size-m);
    line-height: 1.5;
    color: #ccc;
  }

  .main-navigation .state-active-link > a {
    color: #000;
  }

  .state-header-home .main-navigation a {
    color: #000;
  }

  .main-navigation__sub-level a {
    font-size: var(--font-size-m);
    line-height: 1.5;
  }
}

/* SHOP STYLES */

.shop__price {
  line-height: 1.5;
}

.shop__price:before {
  content: "CHF";
  padding-right: 0.2em;
  margin-left: auto;
}

.shop__price span:nth-child(2) {
  margin-left: 1rem;
  opacity: 0.4;
  text-decoration: line-through;
}

.shop__price span:nth-child(2)::before {
  content: "(";
}

.shop__price span:nth-child(2)::after {
  content: ")";
}

/* Thanks Page */
@keyframes bg-anim {
  form {
    background-position: 0 0;
  }
  to {
    background-position: -100% 0;
  }
}

.bottle-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100vh - var(--header-height) - 53px);
  background: url(../../images/Weinflaschenreihe.png) repeat-x;
  background-size: auto 100%;
  background-color: #000;
  padding: 0 var(--page-padding);
  animation: bg-anim 40s linear infinite;
}

.bottle-animation.state-404 {
  background-color: #7b002c;
}

.bottle-animation.state-reverse {
  animation-direction: reverse;
}

.bottle-animation__title {
  font-size: var(--font-size-xxl);
  line-height: 1.5;
  color: #fff;
  text-align: center;
  margin-bottom: 1rem;
}

.bottle-animation__text {
  font-size: var(--font-size-l);
  line-height: 1.5;
  color: #fff;
  text-align: center;
  max-width: 650px;
}

/* Forms */

.form__input-wrapper {
  position: relative;
}

.form__input-wrapper.state--hidden {
  display: none;
}

.form__input-wrapper label {
  position: absolute;
  left: 9px;
  top: 11px;
  padding: 0 0.5rem;
  transition: transform 200ms ease, background-color 200ms ease;
}

.form__input.state--active-label + label,
.form__input:focus + label {
  background-color: white;
  transform: scale(0.85) translate3d(3px, -22px, 0px);
  transform-origin: left;
}

.form__input.state--active-label,
.form__input:focus {
  border-color: #000;
}

.form__input {
  display: block;
  border: 1px solid #c8c8c8;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  width: 100%;
  font-size: var(--font-size-m);
}

.form input[type="submit"] {
  width: 100%;
  display: block;
  font-size: var(--font-size-m);
}

.form__checkbox-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.form__checkbox-wrapper input {
  width: 1rem;
  height: 1rem;
  border: 1px solid #000;
  margin-right: 1rem;
  opacity: 0;
}

.form__checkbox-wrapper label {
  position: relative;
}

.form__checkbox-wrapper label::before {
  content: "";
  width: 1rem;
  height: 1rem;
  border: 1px solid #000;
  position: absolute;
  left: -2.1rem;
  top: -2px;
}

.form__checkbox-wrapper input:checked + label::after {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  background-color: #000;
  position: absolute;
  left: -1.9rem;
  top: 1px;
}

.form__select-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
}

.form__select-wrapper select {
  padding: 0.5rem 1rem;
  font-family: "TSTAR PRO", sans-serif;
  font-size: 1rem;
  border: 1px solid #c8c8c8;
  background-color: #fff;
  width: 100%;
}

.form__select-wrapper select.state--filled {
  border: 1px solid #000;
}

.form__select-wrapper::after {
  content: "";
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #000;
  position: absolute;
  right: 1rem;
  top: 1rem;
}

.form__billing-wrapper {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 200ms ease, transform 200ms ease;
}

.form__billing-wrapper.state--billing-hidden {
  opacity: 0;
  height: 0!important;
  transform: translate3d(0, 50px, 0);
  pointer-events: none;
}

/* FOOTER */
.footer {
  display: flex;
  justify-content: space-between;
  padding: 1rem var(--page-padding);
  border-top: 2px solid #000;
  font-style: var(--font-size-m);
  line-height: 1.5;
}

.footer a {
  color: #000;
  font-style: var(--font-size-m);
  line-height: 1.5;
  border-bottom: 1px solid;
}

.footer li {
  display: inline-block;
}

.footer li:nth-child(2)::before {
  content: " & ";
  margin-left: 5px;
}

/* Newsletter Mailchimp Styles */

.mc-field-group label {
  display: block;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.mc-field-group input {
  display: block;
  border: 1px solid #000;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  width: 100%;
  font-size: var(--font-size-m);
}

#mc_embed_signup_scroll .button {
  font-size: var(--font-size-m);
}


a[href="https://www.instagram.com/weinguterichmeier/"],
a[href="https://www.facebook.com/Weingut-Erich-Meier-100831241917385"]{
	padding-right: 2em;
	font-weight: 800;
	text-decoration: none;
	padding: 2em 2em 2em 0;
	display: inline-block;
}

a[href="https://www.instagram.com/weinguterichmeier/"]:before,
a[href="https://www.facebook.com/Weingut-Erich-Meier-100831241917385"]:before{
	content: '';
	background-repeat: no-repeat;
	background-position: 0 center;
	background-size: 2em 2em;
	padding: 1em 1.5em;
}

a[href="https://www.instagram.com/weinguterichmeier/"]:before{
	background-image: url('instagram.svg');
}

a[href="https://www.facebook.com/Weingut-Erich-Meier-100831241917385"]:before{
	background-image: url('facebook.svg');
}
