:root {
  --miracle-blue: #122782;
  --supporting-grey: #f2f2f2;
  --color-primary: var(--miracle-blue);
  --color-secondary: #991E66;
  --color-tertiary: #F3DD6D;
  --color-tertiary-light: #F3DD6D;
}

.boxshadow {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

.lerneinheiten-stoebern {
  margin: 0 auto;
}

@media (min-width: 1280px) {
  ul.footernavi, ul.footermeta {
    grid-template-columns: repeat(5, 1fr);
  }
}
ul.footernavi, ul.footermeta {
  border-top: none;
  margin-top: 20px;
  padding-top: 20px;
  gap: 10px;
}
ul.footernavi li a, ul.footermeta li a {
  margin-top: 4px;
}

.footerbottom {
  margin-top: 20px;
  padding-top: 20px;
  gap: 15px;
}

.footerbottom .hessenlogo {
  display: flex;
  gap: 20px;
}
.footerbottom .hessenlogo span {
  font-size: 12px;
  font-weight: 600;
}

.footerbottom .hessenlogo img {
  width: 200px;
}

.stoebern-teaser {
  background: #122782;
  border-radius: 12.5px;
  padding: 2rem 2rem 2.5rem;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 2rem;
}
@media (max-width: 768px) {
  .stoebern-teaser {
    flex-direction: column;
    text-align: left;
    padding: 2rem 2rem 2.5rem;
  }
}

.stoebern-teaser-headline {
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.5rem 0;
}

.stoebern-teaser-text {
  color: #fff;
  font-size: 18px;
  line-height: 28px;
  margin: 0;
  opacity: 0.9;
  font-weight: 700;
}

.stoebern-teaser-button {
  display: inline-block;
  background: #fff;
  color: #122782;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  padding: 0.5rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

@media (max-width: 1023px) {
  .stoebern-teaser-headline {
    font-size: 1.25rem;
  }
  .stoebern-teaser-text {
    font-size: 16px;
    line-height: 24px;
  }
  .stoebern-teaser-button {
    font-size: 16px;
    line-height: 22px;
  }
}
.stoebern-filter-bar {
  font-size: 0.95rem;
  color: #122782;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem;
}

.stoebern-filter-item {
  position: relative;
  display: inline;
}

.stoebern-filter-separator {
  margin: 0 0.25rem;
  color: #122782;
}

.stoebern-filter-toggle {
  color: #991E66;
  font-weight: 600;
  cursor: pointer;
}
.stoebern-filter-toggle:hover {
  color: rgb(110.3606557377, 21.6393442623, 73.5737704918);
}

.stoebern-filter-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 12.5px;
  z-index: 100;
  min-width: 180px;
  padding: 0.5rem 0;
}

.stoebern-filter-option {
  display: block;
  padding: 0.4rem 1rem;
  color: #122782;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.9rem;
}
.stoebern-filter-option:hover {
  background: #f0f4f8;
  color: #991E66;
}

.stoebern-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 768px) {
  .stoebern-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1280px) {
  .stoebern-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1280px) {
  .verwandte-lerneinheiten .stoebern-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.stoebern-card {
  border-radius: 12.5px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease;
  height: 460px;
}
.stoebern-card a {
  text-decoration: none;
}
.stoebern-card a:hover {
  text-decoration: none;
}
.stoebern-card:hover, .stoebern-card:focus  {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.stoebern-card:hover .stoebern-card-button,
.stoebern-card-link:focus .stoebern-card-button{
  background: #122782;
  color: #fff;
}

.stoebern-card-link {
  display: flex;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.stoebern-card-image {
  width: 35%;
  flex-shrink: 0;
  overflow: hidden;
  background: #e8edf2;
}
.stoebern-card-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.stoebern-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8edf2;
}

.stoebern-card-content {
  width: 65%;
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.stoebern-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.stoebern-badge {
  display: inline-block;
  background: #122782;
  color: #fff;
  font-size: 0.7rem;
  padding: 0.025rem 0.7rem;
  border-radius: 12.5px;
  white-space: nowrap;
}

.stoebern-card-typ {
  color: #991E66;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.stoebern-card-title {
  color: #122782;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.5rem 0;
  hyphens: auto;
}

.stoebern-card-description {
  margin: 0 0 1rem 0;
  flex-grow: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  hyphens: auto;
}

.stoebern-card-button {
  display: inline-block;
  border: 2px solid #122782;
  color: #122782;
  font-weight: 500;
  padding: 0.3rem 1.5rem;
  border-radius: 25px;
  text-align: center;
  align-self: flex-end;
  transition: background 0.2s, color 0.2s;
}

@media (min-width: 768px) {
  .md\:d-block {
    display: block;
  }
}

@media (min-width: 1024px) {
  .lg\:d-block {
    display: block;
  }
}

@media (min-width: 1280px) {
  .xl\:d-block {
    display: block;
  }
}

.toolbox-dropdown {
  position: relative;
}
.toolbox-dropdown .toolbox-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  min-width: 200px;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.toolbox-dropdown .toolbox-dropdown-menu li {
  margin: 0;
  padding: 0;
}
.toolbox-dropdown .toolbox-dropdown-menu .toolbox-dropdown-item {
  display: block;
  padding: 0.4rem 1rem;
  color: #122782;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.875rem;
}
.toolbox-dropdown .toolbox-dropdown-menu .toolbox-dropdown-item:hover {
  background: #f2f2f2;
}
.toolbox-dropdown:hover .toolbox-dropdown-menu {
  display: block;
}

.stoebern-empty {
  color: #666;
  text-align: center;
  padding: 2rem;
}