.projects-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin: 20px 3% 40px 3%;
}

@media (max-width: 600px) {
  .LogoImage {
    height: 10vw;
    max-height: 35px;
  }

  .projects-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 400px) {
  .projects-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .projects-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .projects-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(15, 15, 15, 0.1);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid rgb(228, 228, 228);
  min-height: 20%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.199);
}

.card img {
  display: block;
  width: calc(100% - 20px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 3px auto 5px auto;
  border-radius: 8px;
  border: 2px solid rgb(228, 228, 228);
}

.card-content {
  width: 100%;
  text-align: center;
  margin-top: 5px;
}

.card h3,
.card h4,
.card h5 {
  margin: 0 0 8px 0;
  font-family: 'Inter', sans-serif;
}

.authors {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0;
}

.authors h5 {
  margin: 0;
  font-size: 0.9em;
  line-height: 1.2;
  color: #666;
}

a {
  text-decoration: none;
  color: inherit;
}

a,
h1,
h2,
h3,
h4,
h5 {
  font-family: 'Inter', sans-serif;
}

.page-header {
  margin: 0;
  position: relative;
  height: 350px;
  background: linear-gradient(hsla(0, 0%, 20%, 0.2)), url('../img/FHNW-Header.png');
}

.HeaderImage {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}


.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 3% 0px 3%;
  gap: 2%;
  flex-wrap: nowrap; 
}

.title-wrapper {
  flex: 1;
  max-width: 85%;
}

.title-wrapper h1 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  white-space: normal; 
  line-height: 1.2;
  word-break: break-word;
}

.Headerline {
  margin-top: 1px;
  width: 40%;
  border-bottom: 10px solid #FDE70E;
}


.filter-container {
  width: 10%;
  min-width: 130px;
  max-width: 200px;
  text-align: right;
  margin-left: auto;
}

.filter-container select {
  appearance: none;
  width: 100%;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background-color: #fff;
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-family: 'Inter', sans-serif;
  color: #444;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  cursor: pointer;
}

.filter-container select:hover {
  border-color: #bbb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.filter-container select:focus {
  outline: none;
  border-color: #999;
  box-shadow: 0 0 0 2px rgba(100, 100, 100, 0.1);
}


@media (max-width: 950px) {
  .header-top {
    gap: 1%;
  }

  .filter-container {
    width: 20%;
    min-width: 100px;
  }

  .title-wrapper {
    max-width: 75%;
  }

  .title-wrapper h1 {
    font-size: clamp(1.2rem, 4vw, 2rem);
  }
}


.group-heading {
  font-size: 1.5em;
  font-weight: bold;
  margin: 20px 3% 5px 3%;
  color: #222;
}

.group-subheading {
  font-size: 1em;
  color: #666;
  margin-left: 3%;
  margin-top: 5px;
  margin-bottom: 10px;
}

.projectline {
  width: 94%;
  margin: 0 auto 20px auto;
}

body {
  margin: 0;
}

.intro {
  margin: 20px 3%;
  font-size:  1em;
  color: #666;
  line-height: 1.3;}

.LogoImage {
  position: absolute;
  top: 0;
  height: 5vw;
  width: auto;
  max-height: 40px;
  object-fit: contain;
  z-index: 2;
  background: rgba(255, 255, 255, 0.5);
  padding: 0.4vw;
  border-bottom-right-radius: 3px;
}
