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 {
  padding: 4.8rem;
  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: #fff;

  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-bottom: 4.8rem;

  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;
}

/**************************/
/* Jobs Form */
/**************************/

.jobs {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  margin-bottom: 12rem;
}

.list {
  /* Linke Spalte: Job-Karten */
}
.job-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.job-card:hover {
  background-color: #e0e0e0;
}
.job-card.active {
  background-color: #f9f9f9;
  border: 2px solid #2f6559;
}
.job-card h3 {
  margin: 0 0 5px;
  font-size: 1.8em;
}
.job-card p {
  margin: 0;
  font-size: 0.9em;
  color: #666;
}
.details {
  /* Rechte Spalte: Detail-Ansicht */
}
.detail {
  display: none;
  background-color: #f9f9f9;
  /*   background: #e0f0ff; */
  border: 1px solid #ddd;

  border-radius: 5px;
  padding: 20px;
}
.detail.active {
  display: block;
}
.detail h2 {
  margin-top: 0;
}
.job-form {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  padding-bottom: 20em;
}
.job-form label {
  display: block;

  font-weight: bold;
  font-size: 1.2em;
}
.job-form input[type="file"] {
  display: block;
  margin-bottom: 12px;
}
.job-form button {
  width: 40%;
  padding: 1.2rem;
  background: #2f6559;

  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.8em;
  margin-top: 1rem;
}
.job-form button:hover {
  background: #1c3d35;
}

.job-form input[type="email"],
.job-form input[type="tel"],
.job-form input[type="file"] {
  display: block;
  width: 40%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1.4rem;
  margin-bottom: 1rem; /* <--- Abstand unten */
}

.job-posting h2 {
  font-size: 2.8em;
  font-weight: 800; /* fett */

  margin-bottom: 0.5em; /* Abstand unterhalb */
  color: #2f6559;
}
.job-posting h3 {
  font-size: 1.6em;
  font-weight: 600; /* etwas leichter als h2 */
  margin-top: 2.8em;
  margin-bottom: 0.4em;
  color: #2f6559;
}
.job-posting p,
.job-posting ul {
  font-size: 1.2em;
  margin-bottom: 1em;
  line-height: 2;
}
.job-posting ul {
  padding-left: 1.2em;
}

.application {
  margin-top: -1em;
}

.apply-button {
  display: inline-block;
  padding: 0.6em 1.2em;
  background: #2f6559;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 1em;
}
.apply-button:hover {
  background: #2f6559;
}

a[href^="mailto:"] {
  color: #2f6559; /* ein sattes Grün */
  font-weight: 500;
  text-decoration: none;
}
a[href^="mailto:"]:hover {
  text-decoration: underline;
}
/**************************/
/* 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;
}
