:root {
  --bs-green: #2ea070;
  --bs-green-60: #295c55;
  --bs-platinum: #E5E4E7;
  --bs-grey: #767676;
  --bs-night: #08090C;
}

/* poppins-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  src: url('/src/font/poppins-v23-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* poppins-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('/src/font/poppins-v23-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* poppins-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('/src/font/poppins-v23-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* poppins-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url('/src/font/poppins-v23-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* poppins-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  src: url('/src/font/poppins-v23-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


html,
body {
   margin: 0;
   padding: 0;
}

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

/*Prevent font size inflation*/
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/*Remove default margin in favour of better control in authored CSS*/
h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin: 0;
}

/*Set core  defaults*/
body {
  background-color: var(--bs-platinum);
  font-family: "Poppins";
  display: flex;
}

/*Set shorter line heights on headings and interactive elements*/
h1, h2, h3, h4,
button, input, label {
  line-height: 1.25;
  font-weight: bold;
}

h1,
.h1 {
  font-size: calc(1.75rem + 1.5vw);
  margin-bottom: 48px;
}
@media (min-width: 1200px) {
  h1,
  .h1 {
    font-size: 3.75rem;
  }
}
h2,
.h2 {
  font-size: calc(1rem + 0.75vw);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
@media (min-width: 1200px) {
  h2,
  .h2 {
    font-size: 1.25rem;
  }
}
h3,
.h3 {
  font-size: calc(0.85rem + 0.5vw);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
@media (min-width: 1200px) {
  h3,
  .h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
}
p {
  margin-top: 0;
  font-size: calc(1rem + 0.15vw);
  text-wrap: balance;
}
a {
  font-size: calc(1.1rem + 0.15vw);
  color: var(--bs-night);
  text-decoration: none;
}


/*Balance text wrapping on headings*/
h1, h2,
h3, h4 {
  text-wrap: balance;
}

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

ul {
  margin-top: 0;
}

li {
  font-size: calc(1.1rem + 0.15vw);
  margin-bottom: 0.25rem;
}

button {
  font: inherit;
  color: var(--bs-platinum);
  background-image: linear-gradient(to right, #295c55 0%, #2ea070 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  transition: background-position .5s;
  padding: 10px 20px;
  border-radius: 8px; 
  border: none;
  cursor: pointer;
  width:fit-content;
}

button:hover {
  background-position: 0 0;
}

.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  width: 100%;
  padding-right: var(--bs-gutter-x, 15px);
  padding-left: var(--bs-gutter-x, 15px);
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 576px) {
  .container,
  .container-sm {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .container,
  .container-sm,
  .container-md {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl {
    max-width: 1200px;
  }
}
@media (min-width: 1600px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1201px;
  }
}

.wrapper {
  display: flex;
  flex-direction: column;
  /* mobile viewport bug fix */
  min-height: -webkit-fill-available;
  width: 100%;
  overflow: hidden;
  padding-block: 30px;
}

.navbar {
  justify-content: center;
  align-items: center;
}

.navbar-logo {
  height: 60px;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit; 
  color: var(--bs-green);
}

.back-icon {
  height: 1.5rem;
  width: auto;
  transition: transform 0.3s ease;
}

.back-link:hover .back-icon {
  transform: translateX(-4px); 
}

@media (max-width: 576px) {
  .back-link span {
    display: none; /* Hides the text element */
  }
}

.navbar {
  display: inline-flex;
  justify-content:space-between;
  height: 60px;
}

.content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  text-align: center;
  padding-block: 7rem 3.5rem;
}

.hero div {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section {
  margin-block: 3.5rem;
}

.hero p {
  max-width: 100ch;
  margin-inline: auto;
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  background-color: var(--bs-green);
  color: var(--bs-platinum);
  padding: 3rem 3rem;
  border-radius: 18px 0 18px 0;
}

.contact a {
  color: var(--bs-platinum);
  text-decoration: underline;
  line-height: 1.8;
}

.contact a:hover {
  text-decoration: underline 2px;
}

.contact-primary {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

/* Tablet: > 768px */
/* This creates a 2x2 grid */
@media (min-width: 768px) {
.contact-primary  {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: > 1200px */
/* This creates a 4x1 grid (4 columns, 1 row) */
@media (min-width: 1200px) {
.contact-primary  {
    grid-template-columns: repeat(4, 1fr);
  }
}

.contact-secondary p{
  color: var(--bs-platinum);
  margin-bottom: 0px;
  text-align: center;
}

.contact-secondary a{
  text-decoration: underline;
}

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  flex-grow: 1;
}

.contact-box ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

.divider-horizontal {
  height: 1px;
  width: 100%;
  background-color: var(--bs-platinum);
}

.divider-vertical {
  width: 1px;
  background-color: var(--bs-platinum);
}

.impressum h1 {
  font-size: calc(1.75rem + 1.5vw);
  margin-bottom: 48px;
}
.impressum a {
  text-decoration: underline;
}

.datenschutz h1 {
  font-size: calc(1.75rem + 1.5vw);
  margin-bottom: 48px;
}
.datenschutz h2{
  margin-top: 1.75rem;
}
.datenschutz h3{
  margin-top: 1rem;
}
.datenschutz a{
  text-decoration: underline;
}

footer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  gap: 2rem;
  margin-top: 1.5rem;
  color: var(--bs-grey);
}

footer div {
  display: flex;
  flex-grow: 1;
  align-items: start;
  justify-content: start;
  gap: 3rem;
}

footer div:last-child {
  display: flex;
  flex-grow: 1;
  align-items: end;
  justify-content: end;
  gap: 10px;
}

footer p{
  margin-bottom: 0px;
}

footer a{
  color: var(--bs-grey);
}

footer a:hover{
  color: var(--bs-green-60);
  text-decoration: underline;
}

@media (max-width: 767px) {
  footer div {
    display: flex;
    flex-grow: 1;
    gap: 30px;
    align-items: center;
  }
}

@media (max-width: 576px) {
  footer div:last-child {
    justify-content: center;
  }
  footer div {
    display: flex;
    flex-grow: 1;
    justify-content: space-around ;
    align-items: center;
  }
}
