/** Font import **/
/* Poppins Medium */
@font-face {
  font-family: "poppinsmedium";
  src: url("/assets/fonts/Poppins-Medium.ttf");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "poppinsregular";
  src: url("/assets/fonts/Poppins-Regular.ttf");
  font-weight: 400;
  font-style: normal;
}

:root {
  --clr-accent-400: hsl(0, 1%, 35%, 1); /*Primary pastell grey*/
  --clr-accent-100: hsl(0, 0%, 94.90196078431372%, 1);
  --clr-primary-400: hsl(344, 76%, 73%, 1); /*Primary pastel pink*/
  --clr-primary-100: hsl(159, 14%, 55%); /*Primary pastell green*/

  --clr-neutral-100: hsl(0, 0%, 100%); /*Primary white*/
  --clr-neutral-900: hsl(0, 0%, 0%); /*Primary black*/

  --clr-gradient-left: linear-gradient(90deg, hsl(173, 100%, 22%) 0%, hsl(144, 100%, 30%) 36%, hsla(144, 100%, 30%, 0.09) 68.75%);
  --clr-gradient-right: linear-gradient(90deg, hsla(144, 100%, 30%, 0.09) 0%, hsl(144, 100%, 30%) 55%, hsl(173, 100%, 22%) 100%);

  --ff-primary: "poppinsregular", sans-serif;
  --ff-secondary: "poppinsmedium", sans-serif;
  --ff-body: var(--ff-primary);
  --ff-heading: var(--ff-secondary);

  /*Mobile*/
  --fs-200: 0.75rem;
  --fs-300: 0.875rem;
  --fs-400: 1rem;
  --fs-500: 1.125rem;
  --fs-600: 1.5rem;
  --fs-700: 2.25rem;
  --fs-800: 2.625rem;
  --fs-850: 2.75rem;
  --fs-900: 3.5rem;
  --fs-1000: 4rem;

  --fs-body: var(--fs-400);
  --fs-title: var(--fs-700);
  --fs-teaser: var(--fs-600);
  --fs-pretitle: var(--fs-300);
  --fs-listlink: var(--fs-400);
  --fs-categorie: var(--fs-200);
  --fs-button: var(--fs-400);

  --size-100: 0.25rem;
  --size-200: 0.5rem;
  --size-300: 0.75rem;
  --size-400: 1rem;
  --size-500: 1.5rem;
  --size-600: 2rem;
  --size-650: 2.5rem;
  --size-700: 3rem;
  --size-800: 4rem;
  --size-900: 5rem;
}
@media (min-width: 48em) {
  :root {
    --fs-body: var(--fs-500);
    --fs-teaser: var(--fs-700);
    --fs-title: var(--fs-850);
    --fs-listlink: var(--fs-400);
    --fs-button: var(--fs-500);
  }
}

/*###

Basic reset 
##https://piccalil.li/blog/a-modern-css-reset
 
###*/

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
* {
  margin: 0;
  padding: 0;
  font: inherit;
  border: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
  list-style-type: none;
}

/* Set core root defaults */
html {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* Inherit font color on links */
a {
  color: inherit;
}
/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Remove button and input styles */
button,
input,
textarea,
select {
  background-color: transparent;
  border-radius: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
  appearance: none;
}

textarea {
  resize: vertical;
  overflow: auto;
  vertical-align: top;
}

/* Make images easier to work with */
img,
picture,
svg {
  max-width: 100%;
  display: block;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/*###

Utility classes 
 
###*/

/*# Grid & Flex #*/
/* set --gap property with inline styles */
[class*="grid-"] {
  display: grid;
  gap: var(--gap, 2rem);
}

/* default wide-gap */
.wide-gap {
  gap: 3rem;
}

@media (min-width: 48em) {
  /* set --gap property with inline styles */
  [class*="flex"] {
    display: flex;
    gap: var(--gap, 2rem);
  }

  /* 12 column grid */
  .grid-even-columns {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-flow: column;
  }

  .wide-gap {
    gap: 12rem 3rem;
  }

  /* overwrite gap with 0 */
  .no-gap {
    --gap: 0;
  }

  .grid-even-columns .img-cover {
    max-width: 100%;
    height: 100%;
    aspect-ratio: 3/1;
    object-fit: cover;
  }

  /* column span start point for grip */
  .cols-1 {
    --grid-start: 1;
  }
  .cols-2 {
    --grid-start: 2;
  }
  .cols-3 {
    --grid-start: 3;
  }
  .cols-4 {
    --grid-start: 4;
  }
  .cols-5 {
    --grid-start: 5;
  }
  .cols-6 {
    --grid-start: 6;
  }
  .cols-7 {
    --grid-start: 7;
  }
  .cols-8 {
    --grid-start: 8;
  }
  .cols-9 {
    --grid-start: 9;
  }
  .cols-10 {
    --grid-start: 10;
  }
  .cols-11 {
    --grid-start: 11;
  }
  .cols-12 {
    --grid-start: 12;
  }
  .cols-13 {
    --grid-start: 13;
  }
  /* column span end point for grip */
  .cole-1 {
    --grid-end: 1;
  }
  .cole-2 {
    --grid-end: 2;
  }
  .cole-3 {
    --grid-end: 3;
  }
  .cole-4 {
    --grid-end: 4;
  }
  .cole-5 {
    --grid-end: 5;
  }
  .cole-6 {
    --grid-end: 6;
  }
  .cole-7 {
    --grid-end: 7;
  }
  .cole-8 {
    --grid-end: 8;
  }
  .cole-9 {
    --grid-end: 9;
  }
  .cole-10 {
    --grid-end: 10;
  }
  .cole-11 {
    --grid-end: 11;
  }
  .cole-12 {
    --grid-end: 12;
  }
  .cole-13 {
    --grid-end: 13;
  }
  /* set grip span based on start/end classes */
  [class*="cols-"],
  [class*="cole-"] {
    grid-column: var(--grid-start) / var(--grid-end);
  }
}

/* Stack Content on each other */
.grid-stack {
  gap: clamp(0rem, calc(15vw - 8rem), 2.5rem);
}

.grid-stack > * {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}
/* set bg-img class for background image */
.grid-stack .bg-img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3/1;
  min-height: 100%;
  max-height: 0px;
}
/* make bg image full hight */
.grid-stack .bg-img.fullvh {
  max-height: 100%;
  height: 100vh;
}
/* put text on top of bg */
.grid-stack > .above-bg-img {
  z-index: 2;
}
/* align horizontal */
.justify-self-start {
  justify-self: start;
}

.justify-self-end {
  justify-self: end;
}

.justify-self-center {
  justify-self: center;
}

.align-items-center {
  align-items: center;
}

/*# inner container #*/
.container {
  max-width: 1550px;
  height: 100%;
  --padding: 4vw;

  padding: 6.6vmax var(--padding);
  margin-inline: auto;
}

/* screen readers only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; /* added line */
  border: 0;
}
/*# Color utility #*/
/* text colors */
.text-black {
  color: #000;
}
.text-white {
  color: #fff;
}
.text-primary-400 {
  color: var(--clr-primary-400);
}
.text-primary-100 {
  color: var(--clr-primary-100);
}
.text-accent-100 {
  color: var(--clr-accent-100);
}
.text-neutral-100 {
  color: var(--clr-neutral-100);
}
.text-neutral-900 {
  color: var(--clr-neutral-900);
}
/* bg overlays colors */
.bg-black-overlay {
  background-color: hsla(0, 0%, 0%, 0.1);
}
.bg-white-overlay {
  background-color: hsla(0, 0%, 100%, 0.2);
}
/* bg colors */
.bg-black {
  background-color: #000;
}
.bg-white {
  background-color: #fff;
}
.bg-primary-400 {
  background-color: var(--clr-primary-400);
}
.bg-primary-100 {
  background-color: var(--clr-primary-100);
}
.bg-accent-100 {
  background-color: var(--clr-accent-100);
}
.bg-accent-400 {
  background-color: var(--clr-accent-400);
}
.bg-neutral-100 {
  background-color: var(--clr-neutral-100);
}
.bg-neutral-900 {
  background-color: var(--clr-neutral-900);
}
/* bg gradiant colors */
.bg-gradient-left {
  background-image: var(--clr-gradient-left);
}
.bg-gradient-right {
  background-image: var(--clr-gradient-right);
}

/* font size & font family */

.fs-ff-maintitle {
  font-size: clamp(2.375rem, 2.375rem + ((1vw - 0.4rem) * 2.885), 4rem);
  font-family: var(--ff-secondary);
  line-height: 1;
  padding: var(--size-500) 0;
  font-weight: 500;
}
.fs-ff-title {
  font-size: var(--fs-title);
  font-family: var(--ff-secondary);
  line-height: 1.5;
  padding: var(--size-500) 0;
}
.fs-ff-teaser {
  font-size: var(--fs-teaser);
  font-family: var(--ff-secondary);
  line-height: 1.2;
  padding: var(--size-500) 0;
}
.fs-ff-pretitle {
  font-size: var(--fs-pretitle);
  font-family: var(--ff-secondary);
}

.fs-ff-listlink {
  font-size: var(--fs-listlink);
  font-family: var(--ff-primary);
  color: var(--clr-accent-400);
  padding: var(--size-500) 0;
}

/* font size */
.fs-200 {
  font-size: var(--fs-200);
}
.fs-300 {
  font-size: var(--fs-300);
}
.fs-400 {
  font-size: var(--fs-400);
}
.fs-500 {
  font-size: var(--fs-500);
}
.fs-600 {
  font-size: var(--fs-600);
}

/* content width */
.content-width-thin {
  max-width: 35rem;
}

.content-width-regular {
  max-width: 40rem;
}

.content-width-wide {
  max-width: 50rem;
}

/* opacity */
.light-opacity-4 {
  opacity: 0.4;
}
.dark-opacity-4 {
  opacity: 0.1;
}

/* padding on blocks */
.padding-block-900 {
  padding-block: var(--size-600);
}

.padding-block-600 {
  padding-block: var(--size-300);
}

.padding-tb-500 {
  padding: var(--size-500) 0;
}
.padding-bottom-600 {
  padding-bottom: var(--size-600);
}

@media (min-width: 48em) {
  .padding-block-900 {
    padding-block: var(--size-900);
  }
  .padding-block-600 {
    padding-block: var(--size-600);
  }
  .padding-lr-800 {
    padding: 0 var(--size-800);
  }
}

/*# positioning & alignment #*/
/* positioning */
.pos-fixed {
  position: fixed;
}
.pos-relativ {
  position: relative;
}
.pos-absolute {
  position: absolute;
}
/* text alignment */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

/*@ on Scroll effects @*/
.hidden {
  opacity: 0;
  /* filter: blur(5px); */
  /* transform: translateY(100%); */
  transition: all 2s;
  transition-delay: 400ms;
}
.show {
  opacity: 1;
  /* filter: blur(0); */
  /* transform: translateY(0); */
}

@media (prefers-reduced-motion) {
  .hidden {
    transition: none;
  }
}

/*###

general styling 
 
###*/
html {
  background-color: var(--clr-neutral-100);
}

body {
  font-size: var(--fs-body);
  font-family: var(--ff-body);
  color: var(--clr-neutral-900);
}
/* set pos-absolute class for stacking header */
.primary-header {
  width: 100%;
  padding: 3vw 4vw;
  display: flex;
  align-items: center;
  z-index: 3;
}

.skip-nav-link {
  background: var(--clr-primary-400);
  color: var(--clr-neutral-100);
  padding: 0.5rem 1.5rem;
  border-radius: 0 0 0.25rem 0.25rem;
  position: absolute;
  left: 0.5rem;
  transform: translateY(-120%);
  transition: transform 325ms ease-in;
}

.skip-nav-link:focus {
  transform: translateY(0);
}

.logo {
  margin-right: auto;
}
.logo img {
  max-height: 118px;
  max-width: 100%;
}

.primary-navigation {
  color: #fff;
  margin-right: 0;
  justify-content: stretch;
}

/*NavBar Menu */
#menuToggle {
}

.menu-btn {
  display: block;
  width: 48px;
  height: 40px;
  cursor: pointer;
  z-index: 2;
  background-color: hsl(0, 0%, 0%, 0.2);
  padding: 5px;
}

.bar {
  width: 100%;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 1);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.menu ul li {
  margin: 20px 0;
  padding-bottom: 0.2em;
}
.menu ul li.current {
  border-bottom: 1px solid var(--clr-neutral-900);
}

.menu ul li a {
  text-decoration: none;

  font-size: var(--size-600);
}

@media (min-width: 40rem) {
  .menu-btn {
    display: none;
  }
  .menu {
    width: auto;
    height: auto;
    background-color: rgba(0, 0, 0, 0);
    overflow: hidden;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.5s;
    display: inline-block;
    position: relative;
  }
  .menu ul {
    margin-right: 0;
    justify-content: stretch;
    text-align: center;
  }
  .menu ul li a {
    font-size: var(--size-400);
  }
  .menu ul li.current {
    border-bottom: 1px solid var(--clr-primary-400);
  }
}

/* When menuToggle is checked */
#menuToggle:checked + .menu-btn .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

#menuToggle:checked + .menu-btn .bar:nth-child(2) {
  opacity: 0;
}

#menuToggle:checked + .menu-btn .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

#menuToggle:checked ~ .menu {
  opacity: 1;
  pointer-events: auto;
}

section.first .container {
  margin-top: 12rem;
}

/*# button styles #*/
[class*="button-"] {
  /* font-size: var(--fs-button); */
  font-family: var(--ff-secondary);
  text-decoration: none;
  padding: 1.2em 2.004em;
  margin-block: var(--size-600) 0;
  transition: color 100ms ease-in, background-color 100ms ease-in;
}

[class*="button-"]:hover {
  opacity: 0.8;
}

.button-regular,
.button-regular.small {
  color: var(--clr-accent-400);
  background-color: var(--clr-neutral-100);
}

.button-inverted,
.button-inverted.small {
  color: var(--clr-neurtal-100);
  background-color: var(--clr-accent-400);
}

.button-regular.small,
.button-inverted.small {
  font-size: var(--size-300);
  padding: var(--size-200) var(--size-400);
}

/*# Form #*/
form#ajaxForm {
  padding: var(--size-500) 0;
}

form label {
  font-size: 16px;
}
form label span {
  font-size: 14px;
  opacity: 0.7;
}

form input,
form textarea {
  font: inherit;
  color: #000;
  display: inline-block;
  background-color: #fff;
  padding: 1rem;
  margin: 1rem 0;
  width: 100%;
}

.success {
  display: none;
  color: hsl(145, 100%, 27%);
  background: #fff;
  padding: 20px;
  margin-top: 16px;
  margin-bottom: 16px;
  &.is-active {
    display: block;
  }
}
