html {
  /* font-size: 10px; */
  /* 10px / 16px = 0.625 = 62.5% */
  /* Percentage of user's browser font-size setting */
  font-size: 62.5% !important;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

body {
  font-family: "inter", sans-serif;
  line-height: 1;
  font-weight: 400;
  color: #555;
  overflow-x: hidden;
}

/**************************/
/* GENERAL REUSABLE COMPONENTS */
/**************************/

.container {
  /* 1140px */
  max-width: 120rem;
  padding: 0 3.2rem;
  padding-bottom: 4.2rem;
  margin: 0 auto;
}

.grid {
  display: grid;
  column-gap: 6.4rem;
  row-gap: 9.6rem;
}

.grid:not(:last-child) {
  margin-bottom: 12.8rem;
}

.grid--2-cols {
  grid-template-columns: repeat(2, 1fr);

  align-items: center; /* vertikale Zentrierung */
  justify-items: center; /* horizontale Zentrierung in den Spalten */
}

.grid--3-cols {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4-cols {
  grid-template-columns: repeat(4, 1fr);
}

.grid--5-cols {
  grid-template-columns: repeat(5, 1fr);
}

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

.subheading {
  display: block;
  font-size: 1.6rem;
  font-weight: 200;
  color: #555;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  letter-spacing: 0.75px;
  text-align: center;
}

.heading-primary,
.heading-secondary,
.heading-tertiary {
  font-weight: 700;
  color: #265147;
  /* color: #343a40; */
  letter-spacing: -0.5px;
}

.heading-primary {
  font-size: 8.4rem;
  line-height: 1.05;
  margin-bottom: 3.2rem;
  text-align: center;
  font-family: inter;
}

.heading-secondary {
  font-size: 4.4rem;
  line-height: 1.2;
  margin-bottom: 1.6rem;
  text-align: center;
  color: #265147;
  font-weight: 500;
}

.heading-tertiary {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 3.2rem;
}

.btn,
.btn:link,
.btn:visited {
  display: inline-block;

  text-decoration: none;
  font-size: 2rem;
  font-weight: 600;
  padding: 1.6rem 3.2rem;
  border-radius: 9px;

  /* Only necessary for .btn */
  border: none;
  cursor: pointer;
  font-family: inherit;

  /* Put transition on original "state" */
  /* transition: background-color 0.3s; */
  transition: all 0.3s;
  margin-bottom: 1.6rem;
  z-index: 10;
  position: relative;
}

.btn--full:link,
.btn--full:visited {
  background-color: #0e7c7b;
  /*   background-color: #e67e22; */
  color: #fff;
}

.btn--full:hover,
.btn--full:active {
  background-color: #cf711f;
}

.btn--outline:link,
.btn--outline:visited {
  background-color: #fff;
  color: #2f6559;
  border: 1px solid #2f6559;
}

.btn--outline:hover,
.btn--outline:active {
  background-color: #fdf9ee;
  transition: all 0.3s;

  /* border: 3px solid #fff; */

  /* Trick to add border inside */
  box-shadow: inset 0 0 0 3px #fff;
}

.btn--form {
  background-color: #45260a;
  color: #fdf2e9;
  align-self: end;
  padding: 1.2rem;
}

.btn--form:hover {
  background-color: #fff;
  color: #555;
}

.link:link,
.link:visited {
  display: inline-block;
  color: #2f6559;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: all 0.3s;
}

.link:hover,
.link:active {
  color: #2f6559;
  /*   color: #cf711f; */
  border-bottom: 1px solid transparent;
}

.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.list-item {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.list-icon {
  width: 3rem;
  height: 3rem;
  color: #2f6559;
}

*:focus {
  outline: none;
  /* outline: 4px dotted #e67e22; */
  /* outline-offset: 8px; */
  box-shadow: 0 0 0 0.8rem rgba(38, 87, 63, 0.248);
}

/* HELPER/SETTINGS CLASSES */
.margin-right-sm {
  margin-right: 1.6rem !important;
}

.margin-bottom-md {
  margin-bottom: 4.8rem !important;
}

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

strong {
  font-weight: 500;
}

/**************************/
/* HEADER */
/**************************/

.header {
  background-color: #f9f9f9;

  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* damit circle logo gleichmäßig transparent ist */

  /* Because we want header to be sticky later */
  height: auto;
  padding: 0;

  background-size: 24px 24px; /* gleiche Größe wie in .section-hero */
}

.header-inner {
  /* 2a) Fixieren und zentrieren */
  /* position: fixed;
  top: 3rem; 

  left: 50%;
  transform: translateX(-50%);
  z-index: 100; */

  margin-top: 3rem;
  margin-bottom: 0rem;

  /* 2b) Breite und Padding */
  width: calc(
    100% - 4rem
  ); /* nimmt die Breite minus etwas Rand (z.B. 2rem beidseitig) */
  max-width: 140rem;
  padding: 1.2rem 2.8rem;
  /* 2c) Weißer Hintergrund + abgerundete Ecken + Schatten */
  background-color: #ffffff;
  border-radius: 1.8rem; /* Medium-Radius (12px) */
  box-shadow: 0.2rem 0.2rem rgba(0, 0, 0, 0.025);

  /* 2d) Flex-Layout für Logo + Nav-Links */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem; /* Abstand zwischen Bild und Text */
}

/**************************/
/* NAVIGATION */
/**************************/

.main-nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 3.2rem;
}

.main-nav-link:link,
.main-nav-link:visited {
  display: inline-block;
  text-decoration: none;
  color: #265147;
  font-weight: 500;
  font-size: 1.8rem;
  transition: all 0.3s;
}

.main-nav-link:hover,
.main-nav-link:active {
  color: #265147;

  transition: all 0.3s;
}

.main-nav-link.nav-cta:link,
.main-nav-link.nav-cta:visited {
  padding: 1.2rem 2.4rem;
  border-radius: 9px;
  color: #fff;
  background-color: #265147;
}

.main-nav-link.nav-cta:hover,
.main-nav-link.nav-cta:active {
  color: #fff;
  background-color: #cf711f;
}

.nav-arrow {
  width: 2rem;
  height: 2rem;
  color: #cf711f;
  /*   color: #cf711f; */
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* MOBILE  */

.btn-mobile-nav {
  position: relative;
  z-index: 1000;
  border: none;
  background: none;
  cursor: pointer;
  display: none;
}

.icon-mobile-nav {
  height: 4.8rem;
  width: 4.8rem;

  color: #333;
}

.icon-mobile-nav[name="close-outline"] {
  display: none;
}

.logo-text {
  font-size: 3.2rem;
  margin-right: auto;
  color: #2f6559;
}

/**************************/
/* Contact */
/**************************/

.contact-section {
  padding: 08rem 3.2rem;
  background-color: #f9f9f9;
}

.contact-section .heading-secondary {
  font-size: 3.6rem;
  margin-bottom: 2.4rem;
  text-align: center;
  color: #265147;
}

/* Formular-Container */
.contact-form {
  max-width: 80rem;
  margin: 0 auto;
  background-color: #fff;
  padding: 3.2rem;
  border-radius: 1.2rem;
  box-shadow: 0 1.2rem 2.4rem rgba(0, 0, 0, 0.05);

  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2.4rem;
  row-gap: 1.6rem;
}

/* Letztes Form-Group-Element (das die Textarea enthält) über beide Spalten spannen */
.contact-form .form-group:last-of-type {
  grid-column: 1 / -1;
}

/* Label */
.contact-form label {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  color: #333;
}

/* Input & Textarea */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.6rem;
  border: 1px solid #ddd;
  border-radius: 0.6rem;
  font-family: inherit;
}

/* Freitext-Feld über beide Spalten */
.contact-form textarea {
  resize: vertical;
  min-height: 12rem;
  grid-column: 1 / -1;
}

/* Form-Gruppen-Wrapper */
.contact-form .form-group {
  display: flex;
  flex-direction: column;
}

/* Submit-Button */
.contact-form .btn--submit {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 1.6rem;
  padding: 1.4rem 2.8rem;
  font-size: 1.6rem;
  border: none;
  background-color: #0e7c7b;
  color: #fff;
  border-radius: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form .btn--submit:hover {
  background-color: #0c6867;
}

/* Responsive (einspaltig) */
@media (max-width: 68em) {
  .contact-form {
    grid-template-columns: 1fr;
  }
  .contact-form textarea {
    grid-column: 1;
  }
  .contact-form .btn--submit {
    justify-self: center;
  }
}

/**************************/
/* FOOTER */
/**************************/

.footer-divider {
  border: none;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08); /* für dunkle Hintergründe */
  margin: 4rem 0; /* vertikaler Abstand */
}

.footer {
  padding: 12.8rem 0;
  border-top: 1px solid #eee;
}

.grid--footer {
  grid-template-columns: 1.5fr 1.5fr 1fr 1fr 1fr;
}

.logo-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: block;
  margin-bottom: 3.2rem;
}

.footer-logo img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.social-links {
  list-style: none;
  display: flex;
  gap: 2.4rem;
}

.social-icon {
  height: 2.4rem;
  width: 2.4rem;
}

.copyright {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #767676;
  margin-top: auto;
}

.footer-heading {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 4rem;
}

.contacts {
  font-style: normal;
  font-size: 1.4rem;
  line-height: 1.6;
}

.address {
  margin-bottom: 2.4rem;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.footer-link:link,
.footer-link:visited {
  text-decoration: none;
  font-size: 1.4rem;
  color: #767676;
  transition: all 0.3s;
}

.footer-link:hover,
.footer-link:active {
  color: #555;
}
