/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  --white-color: hsl(0, 0%, 100%);
  --black-color: hsl(0, 0%, 0%);
color: hsl(51, 75%, 78%);
  /*========== Font family ==========*/
  --body-font: 'Clash Display', sans-serif;

  /*========== Font sizes ==========*/
  --h1-font-size: 2rem;
  --h2-font-size: 1.5rem;
  --normal-font-size: 1rem;

  /*========== Font weight ==========*/
  --font-semibold: 600;
  --font-bold: 700;
}

/* Responsive typography */
@media screen and (max-width: 1024px) {
  .root {
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --normal-font-size: 0.938rem;
  }
}

/*=============== BASE ===============*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: var(--black-color);
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

/*=============== HEADER & NAV ===============*/
.header {
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.3s;
}


.nav,
.nav-list,
.nav-actions {
  display: flex;
}

.nav {
  
  align-items: center;
  justify-content: space-between;
  height: 5.5rem;
  max-width: 1568px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.nav-logo {
  color: var(--white-color);
  font-size:var(--h1-font-size);
  font-weight: var(--font-bold);
  transition: color 0.3s;
}

.nav-list {
  column-gap: 3.5rem;
}

.nav-link{
  color: var(--black-color);
}

.nav-actions {
  font-size:  var(--h2-font-size);
  column-gap: 1rem;
}

.nav-toggle,
.nav-close {
  display: none;
}
/* Change background header */
.bg-header {
  background-color:  var(--white-color);
  }

.bg-header .nav-logo {
  color: var(--black-color);
}  
/*=============== HOME ===============*/
.home {
  min-height: 100dvh;
  position: relative;
}

.home-data {
  background-color: var(--background-color);
}

.home-title {
  color: var(--white-color);
  font-size: clamp(5.5rem, -1.1667rem + 33.3333vw, 28rem);
  font-weight: var(--font-semibold);
  position: absolute;
  top: calc(50% - 4.25rem);
  left: 50%;
  transform: translate(-50%, -50%);
}

.home-mockup {
  position: absolute;
  top: calc(50% + 2.25rem);
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(9.375rem, 5.5568rem + 19.0909vw, 19.875rem);
  aspect-ratio: 45 / 83 ;
  --left: 0;
  background: url(../img/labelNeu.png)var(--left), url(../img/can.png);
  background-size: auto 100%;
  background-blend-mode: multiply;
  mask-image: url(../img/can.png);
  mask-size: auto 100% ;
  mask-repeat: no-repeat;
  background-size: auto 100%;
  z-index: 100;
  transition: background 1s ease-in ;
}

.second-swiper {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-fruit-img {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.home-button{
  position: absolute;
  
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--white-color);
  padding: 1.25rem 2.25rem;
  border-radius:  2rem;
  color: var(--black-color);
  font-weight: var(--black-color);
  z-index: 100;

}

/* Swiper */
.swiper {
  height: 100%;
}

.swiper-wrapper {
  transition: ease-in;
}

/*=============== BACK BUTTON ===============*/
.back-button {
    display: inline-block;
    margin: 20px;
    padding: 10px 20px;
    background-color: #007bff00; /* Blau */
    color: #767676; /* Weißer Text */
    text-decoration: none; /* Entfernt die Unterstreichung */
    border-radius: 5px; /* Abgerundete Ecken */
    font-size: 1rem;
    transition: background-color 0.3s ease;
    position: fixed;
    top: 45px;
    right: px;
    z-index: 1000;
}

.back-button:hover {
    background-color: #b3b9be8c; /* Dunkleres Blau beim Hover */
}

/*=============== LEGAL ===============*/
.legal {
    padding: 2rem;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    margin: 2rem auto;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.legal h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #007bff;
}

.legal p {
    margin-bottom: 1rem;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #f1f1f1;
    color: #333;
}

footer a {
    color: #007bff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/*=============== BREAKPOINTS ===============*/
/* For large devices */
@media screen and (max-width: 1024px) {
  .nav {
    height: 3.5rem;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    background-color:  var(--white-color);
    width: 50%;
    height: 100%;
    padding: 6rem 3rem 0;
    transition: right 0.3s;
  }

  /* Show menu */
  .show-menu{
    right: 0;
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 2.5rem;
  }

.nav-close,
.nav-toggle {
  display: inline-flex;
}

.nav-close {
  font-size: 1.5rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.nav-actions{
  column-gap: 0.5rem;
}

.home-button {
  padding: 1rem 2rem;
}
}

/* For medium devices */
@media screen and (max-width: 768px) {
  .nav {
    padding-inline: 0.75rem;
  }

  .nav-menu {
    width: 80%;
  }
}
