/* Landing Layout */
.glc-landing {
  max-width: 1340px;
  border-radius: 20px;
  margin: 2rem auto;
  padding: 4rem 2rem;
}
.glc-landing .glc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.5rem 0 1rem;
}
.glc-landing .glc-landing__intro {
  margin-bottom: 1rem;
}
/* Latest Cards Grid */
.glc-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.glc-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
}
.glc-card__thumb {
  display: block;
  width: 100%;
  height: auto;
}
.glc-card__title {
  font-size: 1.05rem;
  margin: 0.75rem 1rem 0.25rem;
}
.glc-card__meta {
  font-size: 0.85rem;
  color: #666;
  margin: 0 1rem 0.5rem;
}
.glc-card__excerpt {
  font-size: 0.95rem;
  color: #333;
  margin: 0 1rem 1rem;
}
.glc-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
/* Kurse-Grid */
.glc-courses-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.glc-coursecard {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  overflow: hidden;
}
.glc-coursecard button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0.75rem;
  cursor: pointer;
}
.glc-coursecard__title {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}
.glc-coursecard__meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}
.glc-coursecard__bar {
  height: 8px;
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
}
.glc-coursecard__bar span {
  display: block;
  height: 100%;
  background: #1ca900;
}
.glc-coursecard__label {
  font-size: 0.8rem;
  color: #444;
  margin-top: 0.25rem;
}
/* Kursansicht */
.glc-courseview[hidden] {
  display: none !important;
}
.glc-courseview {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.glc-courseview__sidebar {
  position: sticky;
  top: 1rem;
  align-self: start;
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 0.75rem;
}
.glc-courseview__main {
  min-width: 0;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 1rem;
}
.glc-courseview__content {
  min-height: 300px;
}
.glc-courseview__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.glc-courseview__nav .glc-prev,
.glc-courseview__nav .glc-next {
  background: none;
  border: none;
  color: green;
  cursor: pointer;
}
.glc-courseview__nav .glc-prev:disabled,
.glc-courseview__nav .glc-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.glc-lesson {
  text-align: center;
}
.glc-lesson__title {
  font-size: 22px;
  font-weight: bold;
}
.glc-lesson__intro {
  font-size: 18px;
}
/* Sidebar Parts */
.glc-sb__title {
  font-size: 2rem;
  margin: 0 0 0.25rem;
}
.glc-sb__bar {
  height: 10px;
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
}
.glc-sb__bar span {
  display: block;
  height: 100%;
  background: #1ca900;
}
.glc-sb__label {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.25rem;
}
/* Scrollbare Liste */
.glc-sb__nav {
  overflow: hidden;
}
.glc-sb__list {
  list-style: none;
  margin: 0;
  padding: 0 5px 0 0;
  max-height: 50vh;
  overflow: auto;
}
.glc-lessonlink {
  font-size: 12px;
  font-weight: bold;
  width: auto;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  border: 1px solid #eee;
  background: #fff;
  cursor: pointer;
  margin-bottom: 0.5rem;
}
.glc-lessonlink.is-active {
  background: #0f141a;
  color: white;
}
.glc-lessonlink:hover {
  background: #1ca900;
  color: white;
}
.glc-lessonlink__title {
  font-size: 0.95rem;
}
.glc-lessonlink__check {
  font-size: 0.9rem;
  min-width: 20px;
  min-height: 20px;
  background: #fefefe;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}
.glc-lessonlink__check svg {
  width: 15px;
  height: 15px;
  fill: #1ca900;
}
.glc-sb__footer {
  padding-top: 0.5rem;
  border-top: 1px dashed #e6e6e6;
  display: flex;
}
.glc-sb__footer .glc-back-to-landing {
  border: 0;
  background: #1ca900;
  padding: 0.5rem 1rem;
  margin: 0 auto;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
}
