.main {
  margin-top: 40px;
  width: 100%;
  font-family: "Roboto", sans-serif;
}
a {
  text-decoration: none;
}
.mainwidth {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  max-width: 117rem;
}
.link {
  color: #156082;
}

h1 {
  font-size: 36px;
}

.upnext {
  margin-top: 15px;
}

/*Continue Session*/
.continuesession {
  border: 2px dashed #156082; /* Farbe und Breite des Rahmens */
  border-radius: 8px; /* Abgerundete Ecken */
  padding: 20px; /* Innenabstand */
  width: 300px; /* Breite */
  text-align: center; /* Text zentrieren */
  font-size: 18px;
}

.continuesession > a {
  color: #156082;
  font-size: 24px;
}

/*Filter*/
/* Filter-Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Input-Felder & Dropdowns */
.filter-bar input,
.filter-bar select {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
  transition: border 0.2s ease-in-out;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #156082;
}

/* Suchfeld */
.search-box {
  width: 200px;
}

/* Buttons */
.btn-search,
.btn-see-all {
  padding: 10px 15px;
  border: none;
  background-color: #156082;
  color: #fff;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.btn-search:hover,
.btn-see-all:hover {
  background-color: #0e4c66;
}

/* Continue Session */
.continue-session {
  background-color: #f0f8ff;
  border-left: 4px solid #156082;
  border-radius: 8px;
  text-align: center;
}

.continue-btn {
  font-size: 1.2rem;
  font-weight: bold;
  color: #156082;
  text-decoration: none;
  display: block;
  margin-bottom: 5px;
}

.continue-btn:hover {
  text-decoration: underline;
}

/* Filter Bar */
.filter-bar {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Case Cards */
.case-card {
  background-color: #156082;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  display: block;
  margin-bottom: 20px;
}

.case-card .case-content {
  padding: 15px;
}

.case-card:hover {
  background-color: #104b66;
}

.case-title {
  font-weight: bold;
}

.case-meta {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive: Bei kleineren Displays auf Stack umstellen */
@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .search-box {
    width: 100%;
  }

  .btn-search,
  .btn-see-all {
    width: 100%;
  }
}

/*Cases Dashboard*/
.cases {
  margin-top: 30px;
}

.casesupper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.caseslower {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.caseobject {
  width: calc(100% / 3 - 20px);
  margin-bottom: 30px;
}

.casepic {
  background-color: lightgray;
  border-radius: 12px;
  width: 100%;
  height: auto;
  min-height: 200px;
}

.casetext {
  margin-top: 5px;
}

.casetitle {
  color: black;
}

/*case container*/
.case-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.case-card {
  width: 30%;
  background-color: #156082;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  transition: transform 0.3s;
}

.case-card:hover {
  transform: scale(1.05);
}

.case-image {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.case-logo {
  max-width: 80px; /* Maximale Breite */
  max-height: 80px; /* Maximale Höhe */
  background-color: white;
  border-radius: 8px; /* Keine runde Form, sondern leichte Abrundung */
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 5px;
  object-fit: contain; /* Beibehaltung des Aspect Ratio */
  width: auto; /* Automatische Breite */
  height: auto; /* Automatische Höhe */
}

.case-content {
  padding: 15px;
}

.case-content h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.case-content p {
  font-size: 14px;
  color: #bbb;
}

.case-meta {
  font-size: 12px;
  color: #fca311;
  margin-top: 10px;
}

.case-category {
  color: #ff4a4a;
  font-weight: bold;
}

/*Mobile*/

@media (max-width: 768px) {
  .mainwidth {
    width: 90%;
  }
}
