/* Allgemeine Stile */
body {
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #070707;
  margin: 0;
  padding: 0;
}

/* Navbar */
.navbar {
  width: 200px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #8db1da;
  padding-top: 20px;
}

.navbar a,
.navbar button {
  display: block;
  color: rgb(3, 7, 75);
  padding: 15px;
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  width: 85%;
  cursor: pointer;
}

.navbar a:hover,
.navbar button:hover {
  background-color: #6082af;
  color: rgb(234, 234, 243);
}

/* Main Content */
.main-content {
  margin-left: 220px;
  padding: 20px;
}

/* Thumbnail Wrapper */
.thumbnail-wrapper {
  position: relative;
  width: 320px;
  height: 240px;
}

.course-thumbnail,
.video-thumbnail,
.test-thumbnail {
  width: 100%;
  height: 100%;
}

.completed-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5); /* Halbtransparenter Hintergrund */
}

.completed-overlay img {
  width: 80px; /* Größe des Haken-Bildes */
  height: 80px; /* Größe des Haken-Bildes */
}

/* Video and Test Containers */
.video,
.test,
.course {
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin: 10px 0 5px;
}

input,
select,
textarea,
button {
  padding: 10px;
  margin: 5px 0 15px;
  background-color: #333;
  border: none;
  color: white;
  width: 100%;
}

textarea {
  height: 100px;
}

button {
  background-color: #365cc5;
  border: none;
  color: white;
  cursor: pointer;
}

button:hover {
  background-color: #365cc5;
}

.test-options {
  list-style: none;
  padding: 0;
}

.test-options li {
  padding: 10px;
  background: #1e1e1e;
  margin-bottom: 5px;
  cursor: pointer;
}

.test-options li:hover {
  background: #333333;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  padding-top: 60px;
}

.modal-content {
  position: relative;
  background-color: #333;
  margin: 5% auto;
  padding: 0;
  border: 1px solid #888;
  width: 80%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  animation-name: animatetop;
  animation-duration: 0.4s;
}

@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
  margin: 10px;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.video-container {
  padding: 20px;
  text-align: center;
}

/* Pfeilsymbole */
.button-container {
  display: flex;
  flex-direction: column;
  margin-left: 10px;
}

.arrow-button {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  margin: 2px 0;
  outline: none;
}

.arrow-button:hover {
  color: #45a049;
}

/* Layout-Anpassungen */
.item-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.thumbnail-wrapper {
  position: relative;
  width: 320px;
  height: 240px;
}

.item-details {
  flex: 1;
  padding-left: 20px;
}

button.modern-button {
  background-color: #3a3a3a;
  border: none;
  color: white;
  cursor: pointer;
  padding: 10px 20px;
  margin-top: 10px;
  border-radius: 5px;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

button.modern-button:hover {
  background-color: #575757;
}

.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.course-item {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 16px;
  margin: 16px;
  width: calc(33.333% - 32px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: #779afc; /* or a dark background color if preferred */
}

.course-thumbnail {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.course-details {
  margin-top: 16px;
}

.course-item h3 {
  margin-top: 8px;
  font-size: 1.25em;
}

.course-item p {
  margin: 8px 0;
}

.course-item .modern-button {
  margin-top: 16px;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  background-color: #007bff;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s;
}

.course-item .modern-button:hover {
  background-color: #0056b3;
}

.completed {
  background-color: #095709;
}

.open {
  background-color: #8d1414;
}

.course-item.open {
  background-color: #d83f19; /* Light red background */
  border-left: 5px solid #f8051d;
}

.course-item.completed-repetition {
  background-color: #ebb812; /* Light yellow background */
  border-left: 5px solid #e28b07;
}

.course-item.default {
  background-color: #d1ecf1; /* Light blue background */
  border-left: 5px solid #bee5eb;
}

.news-item {
  border: 2px solid #599cf3; /* Light gray border */
  border-radius: 10px; /* Rounded corners */
  padding: 16px; /* Spacing inside the border */
  margin: 16px 0; /* Space between news items */
  background-color: #8db1da; /* Background color */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  transition: transform 0.2s; /* Smooth transition for hover effect */
}

.news-item:hover {
  transform: scale(1.02); /* Slightly increase size on hover */
}

.kb-item {
  border: 2px solid #599cf3; /* Light gray border */
  border-radius: 10px; /* Rounded corners */
  padding: 16px; /* Spacing inside the border */
  margin: 16px 0; /* Space between news items */
  background-color: #8db1da; /* Background color */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  transition: transform 0.2s; /* Smooth transition for hover effect */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kb-content {
  flex-grow: 1;
}

.footer {
  background-color: #ffffff;
  color: #6690eb;
  padding: 20px 0;
  text-align: center;
  width: 100%;
}

.footer-content a {
  color: #ccc;
  margin: 0 10px;
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

.grayed-out {
  filter: grayscale(100%);
  opacity: 0.5;
}

/* Avatar Image */
.avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 10px;
  object-fit: cover;
}

/* News item author text */
.news-item small,
.kb-item small {
  font-size: 12px;
  color: gray;
  vertical-align: middle;
}

/* Category Icon */
.category-icon {
  width: 100px;
  height: 100px;
  margin-left: 20px;
  object-fit: cover;
}

/* Header Avatar */
.header-avatar {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
}

.header-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Subtle Deprecated Button */
.deprecate-button {
  font-size: 12px;
  padding: 5px 10px;
  background-color: #ccc;
  color: #333;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.deprecate-button:hover {
  background-color: #bbb;
  color: #000;
}

/* Question Image */
.question-image {
  max-width: 600px;
  max-height: 400px;
  width: auto;
  height: auto;
}

/* style.css */
.header-container {
  display: flex;
  align-items: center;
  gap: 20px; /* Add some space between the title and the search input */
  margin-bottom: 20px;
}

.search-form {
  display: flex;
  align-items: center;
  margin: 0; /* Remove any default margin */
}

.category-form {
  display: flex;
  justify-content: flex-start; /* Align items to the left */
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping if necessary */
  gap: 10px; /* Add space between items */
  margin-bottom: 20px;
  flex-direction: row;
}

.category-btn {
  background-color: #007bff;
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
  border-radius: 12px;
  transition: background-color 0.3s;
  margin: 0; /* Remove any default margin */
  flex: 0 0 auto; /* Prevent buttons from stretching */
  max-width: 150px; /* Set a maximum width for each button */
  white-space: nowrap; /* Prevent text from wrapping inside the button */
}

.category-btn:hover {
  background-color: #0056b3;
}

.category-btn.active {
  background-color: #004085;
}

.search-input {
  padding: 10px 20px; /* Adjust padding to match the buttons */
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid #959596;
  box-sizing: border-box; /* Ensure padding is included in the width */
  height: 42px; /* Match the button height */
}
