/* variables */

:root {
  --bg-color: #f5f9ed;  /* Soft Greenish-Gray */
  --primary-color: #89C564;  /* Moderate Green */

  --title-color: #333333;  /* Dark Gray */
  --text-color: #555555;  /* Medium Gray */
  --logo-color: #f5f9ed;  /* Subtle Green */
  --menu-text-color: #f5f9ed;  /* Dark Gray */
  --menu-highlight-color: #f5f9ed;  /* Soft Greenish-Gray */
}

/* reset */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
}

/* fonts */
@font-face {
  font-family: "Hobo";
  src: url("./fonts/Hobo-Std-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  src: url("./fonts/open-sans-v40-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: 'Baloo';
  font-weight: 400;
  src: url('../fonts/baloo-bhaijaan-2-v19-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

@font-face {
  font-family: "Lato 400";
  font-weight: 400;
  src: url("./fonts/lato-v24-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Lato 700";
  font-weight: 700;
  src: url("./fonts/lato-v24-latin-700.woff2") format("woff2");
}

@font-face {
  font-family: "Lato 900";
  font-weight: 900;
  src: url("./fonts/lato-v24-latin-900.woff2") format("woff2");
}

@font-face {
  font-family: "Single Day";
  font-weight: 400;
  src: url("./fonts/single-day.woff2") format("woff2");
}

h1 {
  font-family: "Hobo";
  font-size: 4rem;
  font-style: bold;
  margin: 0;
}

h2 {
  font-family: "Hobo";
  font-size: 2.5rem;
}

h3 {
  font-family: "Hobo";
  font-size: 1.75rem;

  margin-top: 64px;
}

h4 {
  font-family: "Baloo";
  font-size: 1rem;
  margin-top: 32px;
}

p {
  font-family: "Baloo";
  font-size: 1rem;
  margin-top: 16px;
}

a {
  font-family: "Baloo";
  font-size: 1rem;
}

/* Elements */

/* Link */
a.link {
  text-decoration: none;
  color: var(--primary-color);
  position: relative;
  cursor: pointer;

  &::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  }

  &:hover {
    color: var(--primary-color);

    &::before {
      left: 0;
      right: auto;
      width: 100%;
    }
  }
}

/* Button*/

button,
.btn {
  outline: none;
  width: 130px;
  height: 40px;
  padding: 10px 25px;
  border: 3px solid var(--primary-color);
  background: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  color: var(--menu-highlight-color);
  padding: 0;
  border: none;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button:hover,
.btn:hover {
  background: transparent;
  color: var(--text-color);

  box-shadow: none;
  &.hero-button {
    color: var(--menu-highlight-color);

    &:hover {
      color: var(--menu-highlight-color) !important;
    }
  }
}

button::before,
button::after,
.btn::before,
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 3px;
  width: 0;
  background: var(--primary-color);
  transition: 400ms ease all;
}

button::after,
.btn::after {
  right: inherit;
  top: inherit;
  left: 0;
  bottom: 0;
}

button:hover::before,
button:hover::after,
.btn:hover::before,
.btn:hover::after {
  width: 100%;
  transition: 800ms ease all;
}

/* List */

ul {
  padding-left: 50px;
  margin-bottom: 24px;
}

li {
  font-family: "Single Day";
  color: var(--text-color);
  padding-left: 16px;
  margin-top: 48px;
  position: relative;
  font-size: 16px;
  line-height: 16px;
  list-style-type: none;

  &:before {
    content: "";
    display: block;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    position: absolute;
    top: -2px;
    left: -16px;
  }
}

/* Testimonial */

.testimonial-container {
  margin: 128px 0px;
  text-align: center;

  & > .testimonial {
    font-family: "Single Day";
    font-size: 1.5rem;
    color: var(--primary-color);
  }

  & > .quotee {
    color: var(--primary-color);
  }
}

/* Elements end */

.logo-name {
  font-family: "Hobo";
  font-size: 1.5rem;
  color: var(--logo-color);
  text-decoration: none;
}

.nav-button {
  font-family: "Open Sans";
  font-size: 1rem;
  line-height: 1rem;
  font-weight: 600;
  color: var(--menu-text-color);
  text-decoration: none;
  position: relative;

  &::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--menu-highlight-color);
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  }

  &:hover {
    color: var(--menu-highlight-color);

    &::before {
      left: 0;
      right: auto;
      width: 100%;
    }
  }
}

/* Navbar */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  background-color: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo-container {
  display: flex;
  align-items: center;
  padding: 10px;
}

.logo-icon {
  height: 48px;
  width: 48px;
  object-fit: scale-down;
  margin-right: 12px;
}

.nav-container {
  display: flex;
}

.nav-item {
  list-style-type: none;
}

.nav-button {
  text-decoration: none;
  color: var(--menu-text-color);
  margin: 20px 25px;
  transition: background-color 0.3s;
}

.burger-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 45px;
}

.bar {
  width: 30px;
  height: 3px;
  background-color: var(--menu-highlight-color);
  margin: 4px 0;
}

@media only screen and (max-width: 768px) {
  .burger-icon {
    display: flex;
  }

  .nav-container {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    width: 100%;
    background-color: #89C564; /* Background color of the mobile menu */
    z-index: 99;
    top: 60px;
  }

  .nav-item {
    text-align: center;
    width: 100%;
    padding: 15px 0px;
  }

  .nav-button {
    margin: 15px 0;
  }

  .nav-container.active {
    display: flex;
  }
}



/* Navbar end*/

/* content */

/* hero */
.hero-container {
  height: calc(50dvh - 60px);
  width: 100%;
  padding: 0 10px;
  margin: 0 auto 96px auto;

  background-image: url(./img/Bilder.jpeg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  display: flex;
  align-items: center;
  text-align: center; /* Center text and elements horizontally */ 

  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);

  & > .hero-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    & > .hero-text-container {
      display: flex;
      flex-direction: column;
  
      & > .hero-title {
        color: var(--menu-highlight-color);
        text-shadow: 1px 1px 2px black;
      }
  
      & > .hero-button {
        margin-top: 16px;
      }
    }
  
    & > .hero-logo {
      height: 256px;
      width: 256px;
      mask-image: url(./img/page.svg);
      mask-repeat: no-repeat;
      mask-position: center;
      background-color: var(--bg-color);
    }
  }
}

main {
  display: flex;
  flex-direction: column;
}

section {
  width: 100%;
  max-width: 900px;
  padding: 0 10px;
  margin: 0 auto;
}

img {
  width: 100%;
}

/* sslv */

.sslv-container {
  margin-block: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.sslv-link {
  flex-shrink: 0;
}

.sslv-logo {
  display: block;
  width: 180px;
  height: auto;
}

.sslv-text {
  margin: 0;
  max-width: 600px;
  text-align: left;
}

@media only screen and (max-width: 768px) {
  .sslv-container {
    flex-direction: column;
    text-align: center;
  }

  .sslv-text {
    text-align: center;
  }
}

/* sslv end */

/* employee-section */

.employee-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;

  @media screen and (max-width: 812px) {
    flex-direction: column;
  }
}

.employee-box {
  padding: 15px;
  margin: 10px;
  text-align: center;
  width: 100%;
}

.employee-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
}

.employee-details {
  margin-top: 10px;
}

.employee-name,
.employee-email,
.employee-occupation {
  display: block;
}

.employee-email {
  color: var(--text-color);
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
}

.employee-occupation {
  color: var(--primary-color);
}

/*employee-section end*/

/* content end */

.contact-image {
  margin-left: 16px;
  @media screen and (max-width: 768px) {
    display: none;
  }
}

/* form */
form {
  width: 100%;

  margin-top: 48px;

  font-family: "Open Sans";
  font-size: 1rem;
}

label {
  display: block;
  margin-bottom: 8px;

  font-family: "Open Sans";
  font-size: 1rem;

  &.field-label {
    font-weight: bold;
  }

  &.info-label {
    color: var(--primary-color);
  }
}

input[type="text"],
input[type="date"],
input[type="tel"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 5px 5px;
  margin-bottom: 30px;
  background-color: var(--bg-color);
  border: none;
  border-bottom: 2px solid var(--primary-color);
  font-family: inherit;
  font-size: inherit;
  transition: border-color 0.3s ease;
  resize: vertical;

  &:focus {
    border-bottom-color: var(--primary-color);
    outline: none;
  }
}

input[type="checkbox"],
input[type="radio"] {
  margin-right: 6px;
  accent-color: var(--primary-color);
}
/* form end */

/* footer */
footer {
  background-color: var(--primary-color);
  color: var(--text-color);
  padding: 20px 0;
  text-align: center;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: 96px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.copyright-text {
  color: var(--menu-text-color);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

/* footer end*/
