@charset "utf-8";

@font-face {
  font-family: 'Love Ya Like A Sister';
  src: url('../LoveYaLikeASister-Regular.ttf');
}

@font-face {
  font-family: 'Inter';
  src: url('../Inter-VariableFont_slnt\,wght.ttf');
}

:root {
  --primary: hsl(102, 54%, 41%);
  --primary--dark: hsl(102, 54%, 25%);
  --primary--light: hsl(102, 54%, 80%);

  --secondary: hsl(14, 25%, 34%);

  --grey: hsl(0, 0%, 50%);
  --grey--dark: hsl(0, 0%, 25%);
  --grey--light: hsl(0, 0%, 85%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: inherit;
}

/* PAGE STRUCTURE */

html {
  font-family: Inter, sans-serif;
  font-size: 62.5%;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100vh;
  min-width: 320px;
  font-size: 2rem;
  line-height: 1.5;
  position: relative;
}

.header__navUl,
.header__brand,
main,
.footer__navUl {
  width: clamp(30.7rem, 96vw, 140rem);
  margin: 0 auto;
  position: relative;
}

/* DEFAULTS */

h1,
h2,
h3,
h4,
h5 {
  margin-top: 4.8rem;
  position: relative;
}

h1 {
  font-family: 'Love Ya Like A Sister';
  font-size: clamp(3rem, 9.6vw, 6.2rem);
  font-weight: 400;
  margin-bottom: 1.6rem;
  line-height: 1.4;
}

h3 + h1 {
  margin-top: 0;
}

h2 {
  font-size: clamp(2.4rem, 8vw, 3rem);
  margin-bottom: 3.2rem;
  font-weight: 900;
  line-height: 1.3;
}

h3 {
  text-transform: uppercase;
  font-weight: 600;
  font-size: clamp(1.2rem, 3.4vw, 2rem);
  letter-spacing: 0.2rem;
  line-height: 1.2;
  color: var(--grey);
  margin-bottom: 0.4rem;
}

h4 {
  font-size: clamp(1.8rem, 5.4vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 1.6rem;
}

h5 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

h6 {
  font-size: inherit;
  font-weight: 900;
}

section {
  margin-bottom: 8rem;
}

section::after,
section::before {
  content: '';
  display: block;
  clear: both;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin-bottom: 1.2rem;
}

img {
  max-width: 100%;
}

ul {
  margin-left: 2.4rem;
  margin-bottom: 1.2rem;
}

ul ul {
  list-style: none;
  margin-top: 0.4rem;
}

li {
  margin-bottom: 0.8rem;
}

li:last-child {
  margin-bottom: 0;
}

.clearfix::after {
  content: '';
  clear: both;
  display: table;
}

strong {
  text-transform: uppercase;
  font-weight: 900;
}

input[type='checkbox'] {
  transform: scale(1.5);
  margin-right: 1rem;
}

select,
::picker(select) {
  appearance: base-select;
  border-radius: 2px;
  padding: 0.2rem 0.8rem;
}

option::checkmark {
  display: none;
}

.bold {
  font-weight: bold;
}

.important {
  font-weight: bold;
  color: #bb2525;
}

/* HEADER */

header {
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}

.header__brand {
  display: flex;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.header__brandImage {
  height: auto;
  width: clamp(5.4rem, 15vw, 12.2rem);
  margin-right: 25px;
}

.header__brandName {
  font-family: 'Love Ya Like A Sister';
  font-size: clamp(3rem, 8.5vw, 8.2rem);
}

@media (min-width: 1710px) {
  .header__brandImage {
    margin-left: -147px;
  }
}

/* NAVIGATION */

.header__nav {
  background-color: var(--primary);
  color: #eee;
  font-weight: 900;
  letter-spacing: 0.1rem;
  min-height: 3.5rem;
  position: relative;
  box-shadow: 0 0.2rem 0.6rem var(--grey--light);
}

.header__navUl {
  display: none;
  min-height: inherit;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1.2rem 0.4rem;
}

.header__navLi {
  list-style: none;
  white-space: nowrap;
  font-size: 1.6rem;
  margin-bottom: 0;
  border-top: 0.5rem solid var(--primary);
  border-bottom: 0.5rem solid var(--primary);
}

.header__navLi--active {
  text-decoration: underline;
}

.header__navToggleButton {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  height: 1.7rem;
  z-index: 2;
}

.header__navToggle {
  display: none;
}

.header__navToggle:checked ~ .header__nav .header__navUl {
  display: flex;
}

.header__navToggleButtonBar {
  background-color: #eee;
  height: 0.3rem;
  width: 2.4rem;
  border-radius: 10px;
  z-index: 3;
}

@media (min-width: 750px) {
  .header__navUl {
    display: flex;
    column-gap: 4.8rem;
    align-items: center;
    justify-content: left;
    flex-direction: row;
    padding: 0;
  }

  .header__navLi {
    line-height: 4rem;
    padding: 0 0.8rem;
    transition: all 0.3s;
  }

  .header__navLi--active {
    text-decoration: none;
    border-bottom: 0.5rem solid var(--primary--dark);
  }

  .header__navLi:hover,
  .header__navLi:active {
    border-top: 0.5rem solid var(--primary--dark);
  }

  .header__navToggleButton {
    display: none;
  }
}

/* FOOTER */

footer {
  background-color: var(--secondary);
  color: #eee;
  font-size: 1.6rem;
  letter-spacing: 0.05rem;
  margin-top: auto;
}

.footer__nav {
  padding: 0.8rem 0;
}

.footer__navUl {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
}

.footer__navLi {
  list-style: none;
  white-space: nowrap;
  margin-bottom: 0;
  position: relative;
}

.footer__navLi:hover {
  color: var(--primary--light);
}

.footer__img {
  position: absolute;
  height: 100%;
}

.footer__img + a {
  margin-left: 4.8rem;
}

@media (min-width: 600px) {
  .footer__navUl {
    flex-direction: row;
    gap: 3.2rem;
  }
}

/* CONTENTS */

.heading__bioSiegelDe {
  display: none;
}

@media (min-width: 750px) {
  .heading__bioSiegelDe {
    display: unset;
    position: absolute;
    height: 75%;
    top: -0.1em;
    bottom: 0;
    margin: auto auto auto 3.2rem;
  }
}

.--listStyleNone {
  list-style: none;
  margin-left: 0;
}

.--compactList {
  list-style: none;
  margin-bottom: 2.8rem;
}

.--compactList li {
  margin-bottom: 0;
}

.a--inline {
  color: var(--primary--dark);
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.credit {
  margin-top: 3.2rem;
}

.flexSection {
  display: flex;
  flex-direction: column;
  margin-bottom: 6.4rem;
  gap: 6.4rem;
}

@media (min-width: 760px) {
  .flexSection {
    flex-direction: row;
  }
}

.form {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  margin-bottom: 6.4rem;
  align-items: center;
  max-width: 70rem;
}

.form label {
  text-transform: uppercase;
  font-weight: 600;
  font-size: clamp(1.2rem, 3.4vw, 2rem);
  line-height: 1.2;
  color: var(--grey);
}

.form__subLabel {
  text-transform: none;
  font-size: 0.7em;
}

input {
  font-size: inherit;
  padding: 0.4rem 0.8rem;
}

.form__submitWrapper {
  grid-column: 1 / 3;
  text-align: right;
  clear: both;
}

.form div {
  white-space: nowrap;
}

#familienkiste,
#standardkiste,
#summe {
  width: 6rem;
}

#summe {
  visibility: hidden;
}

#hausnummer {
  width: 7rem;
}

#postleitzahl {
  width: 8.2rem;
}

label[for='hausnummer'] {
  width: 3.2rem;
}

div:has(#strasse),
div:has(#ort) {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

#strasse,
#ort {
  flex-grow: 1;
}

#starttag {
  width: 7.5em;
}

label[for='datenschutz'],
label[for='probezeitraum'] {
  font-size: 0.7em;
}

@media (max-width: 799px) {
  .form {
    display: block;
  }

  .form .button,
  .form > * {
    width: 100%;
  }

  label[for='ort'],
  label[for='hausnummer'],
  label[for='strasse'] span,
  label[for='postleitzahl'] span {
    display: none;
  }

  label[for='strasse']::after {
    content: 'Strasse | Nr';
  }
  label[for='postleitzahl']::after {
    content: 'Postleitzahl | Ort';
  }

  label[for='bezug'] {
    display: block;
    height: 1.2rem;
  }

  label[for='vorname'],
  label[for='nachname'],
  label[for='strasse'],
  label[for='postleitzahl'],
  label[for='email'],
  label[for='telefon'],
  label[for='standardkiste'],
  label[for='familienkiste'],
  label[for='datenschutz'],
  label[for='summe'],
  label[for='probezeitraum'],
  #standardkiste,
  #familienkiste,
  #datenschutz,
  #summe,
  #probezeitraum {
    margin-top: 0.8rem;
  }

  #datenschutz,
  #familienkiste,
  #summe,
  #starttag,
  #lieferung,
  #ratenzahlung,
  #probezeitraum {
    clear: both;
    float: left;
  }

  label[for='vorname'] {
    margin-top: 0;
  }

  #telefon {
    margin-bottom: 0.8rem;
  }

  label[for='standardkiste'],
  label[for='familienkiste'],
  label[for='datenschutz'],
  label[for='summe'],
  label[for='lieferung'],
  label[for='ratenzahlung'],
  label[for='probezeitraum'] {
    width: calc(96% - 60px);
    float: right;
  }

  #starttagWrapper {
    display: inline-block;
  }

  #datenschutz,
  #probezeitraum {
    display: inline-block;
    width: 10%;
    position: relative;
  }

  #datenschutz {
    top: 1.2rem;
  }

  #probezeitraum {
    top: 0.2rem;
  }

  #strasse,
  #ort {
    width: 80%;
  }
}

@media (min-width: 800px) {
  .form > *:nth-child(odd) {
    display: flex;
    justify-content: right;
    justify-self: right;
  }
}

.veggieBox {
  background-color: var(--primary--light);
  box-shadow: 0 2rem 3rem 0 var(--grey--light);
  border-radius: 0.8rem;
  min-width: 29.6rem;
  max-width: 45rem;
  padding: 1.6rem;
  margin: 0 1.2rem;
}

.veggieBox h5 {
  margin-top: 0;
}

.content__image {
  border-radius: 0.8rem;
  box-shadow: 0 2rem 3rem 0 var(--grey--light);
  margin-bottom: 4.8rem;
}

.content__image--noShadow {
  box-shadow: none;
}

#deliveryArea {
  box-shadow: none;
}

@media (min-width: 600px) {
  .content__image {
    width: 40%;
    float: right;
    margin-left: 10%;
  }
}

.button,
.button:link,
.button:visited,
.button:hover,
.button:active {
  display: block;
  border: 0.2rem solid var(--primary--light);
  border-radius: 0.9rem;
  color: #000;
  background-color: #fff;
  padding: 0.6rem 1.2rem;
  margin-top: 2.4rem;
  transition: all 0.2s;
  text-align: center;
  cursor: pointer;
}

.button:hover,
.button:active {
  background-color: var(--primary--light);
}

@media (min-width: 400px) {
  .button + .button {
    margin-left: 3.2rem;
  }

  .button,
  .button:link,
  .button:visited,
  .button:hover,
  .button:active {
    display: inline-block;
  }
}

.button--attention,
.button--attention:link,
.button--attention:visited {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #eee;
}

.button--attention:hover,
.button--attention:active {
  background-color: var(--primary--dark);
  border-color: var(--primary--dark);
  color: #eee;
}

#veggieBox__exampleImage {
  display: none;
}

@media (min-width: 1300px) {
  #veggieBox__exampleImage {
    display: inline;
  }
}

.veggies__callToActionButton,
.veggies__callToActionButton:link,
.veggies__callToActionButton:visited,
.veggies__callToActionButton:hover,
.veggies__callToActionButton:active {
  width: 20rem;
  box-shadow: 0 0 0.4rem 0.3rem var(--primary--light);
}

.veggies__callToActionWrapper {
  position: sticky;
  bottom: 0;
  padding-bottom: 1rem;
}

@media (min-width: 800px) {
  .veggies__callToActionButton,
  .veggies__callToActionButton:link,
  .veggies__callToActionButton:visited,
  .veggies__callToActionButton:hover,
  .veggies__callToActionButton:active {
    position: fixed;
    top: 20rem;
  }
  .veggies__callToActionWrapper {
    position: absolute;
    right: 20.3rem;
    bottom: auto;
    left: auto;
  }
}

.confirmOrder__ul {
  list-style: none;
}

.confirmOrder__ul li {
  margin-bottom: 0;
}

.upload__form {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
}

.upload__selectFilesButton {
  margin-bottom: 2.4rem;
}
