:root {
  --surgeblau: #0054f7;
  --surgegruen: #00e6af;
  --grau: #d8deea;
  --graudunkel: #b9c2d4;
  --grauhover: #656a74;
  --grauhell: #ebf0f5;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  background-color: var(--grauhell);
}

p a.gflink {
  text-decoration: underline; /* Add underline if needed */
  color: inherit; /* Match the surrounding text color */
  display: inline; /* Ensure inline behavior */
  font-weight: normal; /* Reset bold styles */
}

p a.gflink:hover {
  text-decoration: underline; /* Optional hover effect */
  color: var(--grauhover); /* Optional hover color */
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

p {
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  color: black;
  line-height: 22px;
  font-size: 15px;
}

a {
  text-decoration: none;
}

.navlinks > li > a {
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  color: black;
  display: none;
  transition: 0.2s;
}

.navlinks > li > a:hover {
  color: var(--grauhover);
  transition: 0.2s;
}

i {
  font-size: 10px;
  font-style: normal;
}

li {
  list-style-type: none;
  font-size: 18px;
}

h1 {
  margin-bottom: 40px;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
}

em {
  font-weight: bold;
  font-style: normal;
}

/* --- HEADER --- */

header {
  z-index: 100;
  margin-bottom: 40px;
  display: flex;
  position: sticky;
  top: 0;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  background-color: var(--grau);
  box-shadow: 0px 0px 20px rgb(172, 178, 193);
}

.navl > a > img {
  height: 100px;
  width: auto;
  padding-left: 10px;
}

.navr > ul {
  display: flex;
  flex-direction: row;
  gap: 40px;
  padding-right: 40px;
}

.navlinks {
  padding: 0;
  margin: 0;
}

/* --- FOOTER --- */

footer {
  margin-top: auto;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 0 0 100px;
  background-color: var(--grau);
}

.navl > img {
  height: 100px;
  width: auto;
  padding-left: 10px;
}
.footerlinks > li > a {
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  color: black;
  transition: 0.2s;
}

.footerlinks > li > a:hover {
  color: var(--grauhover);
  transition: 0.2s;
}

footer > .navl > .bmftr {
  height: 70px;
  padding-left: 30px;
}

/* --- GRID STARTSEITE --- */

.grid_index {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  margin: 0 auto;
  gap: 30px;
  margin-bottom: 100px;
}

.grid_element_1 {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  border-radius: 30px;
  background-color: var(--grau);
  cursor: pointer;
  height: 300px;
  width: 360px;
  transition: 0.2s;
  box-shadow: 0px 0px 20px rgb(172, 178, 193);
  grid-column: span 1;
}

.grid_element_1 > img {
  height: 100%;
  width: 45%;
  object-fit: cover;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
}

.grid_element_2 {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  border-radius: 30px;
  background-color: var(--grau);
  cursor: pointer;
  height: 300px;
  width: 360px;
  transition: 0.2s;
  box-shadow: 0px 0px 20px rgb(172, 178, 193);
  grid-column: span 1;
}

.grid_element_2 > img {
  height: 100%;
  width: 40%;
  object-fit: cover;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
}

.grid_element_1 > p {
  width: 55%;
  padding: 20px;
  padding-right: 40px;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 11;
  line-clamp: 11;
  max-height: 220px;
  overflow: hidden;
}

.grid_element_2 > p {
  width: 60%;
  padding: 20px;
  padding-right: 40px;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 11;
  line-clamp: 11;
  max-height: 220px;
  overflow: hidden;
}

.grid_element_1:hover {
  background-color: var(--graudunkel);
  transform: scale(1.03);
  transition: 0.2s;
}

.grid_element_2:hover {
  background-color: var(--graudunkel);
  transform: scale(1.03);
  transition: 0.2s;
}

/* ---TEAM--- */

.grid_element_1_team {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  border-radius: 30px;
  background-color: var(--grau);
  height: auto;
  width: 360px;
  transition: 0.2s;
  box-shadow: 0px 0px 20px rgb(172, 178, 193);
  grid-column: span 1;
}

.grid_element_1_team > img {
  height: 100%;
  width: 45%;
  object-fit: cover;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
}

.grid_element_1_team_bild {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  border-radius: 30px;
  background-color: var(--grau);
  height: auto;
  width: 360px;
  transition: 0.2s;
  box-shadow: 0px 0px 20px rgb(172, 178, 193);
  grid-column: span 1;
}

.grid_element_1_team_text {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  border-radius: 30px;
  background-color: var(--grau);
  height: auto;
  width: 360px;
  transition: 0.2s;
  box-shadow: 0px 0px 20px rgb(172, 178, 193);
  grid-column: span 1;
}

.grid_element_1_team_bild > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.grid_element_2_team {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  border-radius: 30px;
  background-color: var(--grau);
  height: auto;
  width: 360px;
  transition: 0.2s;
  box-shadow: 0px 0px 20px rgb(172, 178, 193);
  grid-column: span 1;
}

.grid_element_2_team > img {
  height: 100%;
  width: 40%;
  object-fit: cover;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
}

.grid_element_1_team > p {
  width: 55%;
  padding: 20px;
  padding-right: 40px;
  margin: 0;
}

.grid_element_1_team_text > p {
  width: 100%;
  padding: 20px;
  padding-right: 40px;
  margin: 0;
}

.grid_element_2_team > p {
  width: 100%;
  padding: 20px;
  padding-left: 25px;
  margin: 0;
}

/* --- QUERRIES --- */

@media screen and (min-width: 800px) {
  .navlinks > p,
  .navlinks li > a {
    display: block;
  }

  .grid_element_2 {
    height: 300px;
    width: 750px;
    transition: 0.2s;
    grid-column: span 2;
  }

  .grid_element_2 > p {
    width: 70%;
    padding-right: 40px;
  }

  .grid_element_2 > img {
    width: 30%;
  }

  .grid_element_2_team {
    height: auto;
    width: 750px;
    transition: 0.2s;
    grid-column: span 2;
  }

  .grid_element_2_team > p {
    width: 100%;
    padding-right: 40px;
    padding-left: 25px;
  }
  .grid_index {
    grid-template-columns: 1fr 1fr;
  }
}
