/*Suchfilter Shortcode Kurse*/

.filter-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    border-radius: 25px;
    background-color: #7eaa41;
    margin: 0 0 1rem 0;
    color: #fff;
    font-size: 100%;
}


#filter-anordnung {
    display: flex;
    flex-direction:row;
    gap: 1rem;
}

#filter-anordnung label {
    margin-bottom: .5em;
    display: block;
}

#toggle-button {
    padding: 0.5rem 1rem;
    font-size: 16px;
    cursor: pointer;
    border: none;
    background-color: #004568;
    color: white;
    border-radius: 18px;
    margin: 0 1em 2em 0;
}

#toggle-button:hover {
    background-color: #00adda;
}

.search-container {
    flex: 1;
    margin-right: 20px;
}

#kurs-search-input,
#category-select,
#referent-select,
#kursmonat-select,
#referent-select,
#kursmonat-select {
    width: 100%;
    font-size: 16px;
	max-width: 30em;
	padding: .5em;
	color: #4e4e4e;
}

.toggle-container {
    flex: none;
}

.toggle-container .toggle-label {
    color: #fff;
}

.category-filter,
.referent-filter,
.kursmonat-filter {
	text-align: left;
}

.kursmonat-filter {
	margin-bottom: 1rem;
}

/* Styling für den Reset-Button */

.reset-filters-button:hover {
    color: #19506F;
    cursor: pointer;
}

/* Kurse */

.kurse-uebersicht {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
	gap: 1.5rem;
}

/* Kurs-Item */

.kurs-item {
    border: 0;
	padding: 0;
    background-color: white;
    width: calc(33.333% - 1rem);
    box-sizing: border-box;
    position: relative;
    border-radius: 2.5rem;

    /* Flexbox-Einstellungen */
    display: flex;
    flex-direction: column;
}

.kurs-item.kurs_laeuft {
	opacity: .7;
}
	
	
.kurs-item .meta_container {
	font-weight: 700;
	text-transform: uppercase;
	font-size: .9rem;
	color: #8CBD48;
	line-height: 1.5em;
	margin-bottom: 1em;
}

.kurs-item .meta_container p {
margin:0;
padding: 0;
color:#999;
}

.kurs-item .kurs-number {
	display: none;
}

.kurs-item .kurs-content {
    flex-grow: 1; /* Nimmt den verfügbaren Platz ein */
	color: #19506F;
	padding: 0 1.5rem;
}

.kurs-item .kurs-content h3 {
    font-weight: 700;
	font-size: 2rem;
	line-height: 2.2rem;
	margin-bottom: .2rem;
	color: #000;
	padding-bottom: 0
}

.kurs-item h3.kurs-title a:link,
.kurs-item h3.kurs-title a:visited  {
	color: #19506F;
}

.kurs-item h3.kurs-title a:hover {
	color: #000;
}

.kurs-item p {
	margin-top: 1rem;
	line-height: 1.4em;
	color: #000;
}

.kurs-item .mehr_container {
	margin-top: 1.5em;
	padding: 0 1.5rem 1.3rem;
}

.kurs-item .more-link {
    /* Abstand nach oben, um den Button nach unten zu schieben */
    margin-top: auto;

}

.kurs-item .more-link:hover {
    background-color: #00adda;
}

.kurs-item .kurs-image {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    height: 200px;
    object-fit: cover;
	border-radius: 2rem 2rem 0 0;
}

.badge {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2em;
  background-color: #004568;
  border-radius: 50% 50% 50% 50%;
  overflow: hidden;
  z-index: 2;
  position: absolute !important;
  top: -1em;
  bottom: auto;
  left: -.7em;
  right: auto;
  transform: rotateX(0deg) rotateY(0deg) rotateZ(-17deg);
  width: 7em;
  height: 7em;
  padding: .5em;
  display: flex;
  justify-content: center;
  align-items: center;
  color:#fff;
  text-align: center;
}

.badge.ausgebucht,
.badge.warteliste,
.badge.laufender-kurs {
	background-color: red;
	  border-radius: 2em;
	  min-width: 9em;
	  height: auto;
	  padding: 1em 1em 1.2em 1em;
	  z-index: 3;
	  top: 0em;
	  left: -1.7em;
	  line-height: 1em;
}

.badge.warteliste {
	background-color: orange;
}

.badge.laufender-kurs {
	background-color: grey;
}

.no-courses-message {
	background-color:rgba(255,255,255,.7);
	padding: 1em;
	border: 1px solid transparent;
	border-radius: 1em;
	text-align: center;
	font-weight: bold;
}

.show-all-container {
	text-align: center;
}

.show-all-button {
	margin-top: 3rem;
}

/* Responsive Anpassung für kleinere Bildschirme */
@media (max-width: 768px) {
    .kurs-item {
        width: 100%;
    }
}

.kurs-filter ul {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 0;
    padding: 0 !important;
}

.kurs-filter ul li {
    margin-right: 10px;
	list-style: none;
}

.kurs-filter ul li a {
    display: block;
	margin-bottom: 1em;
}

.kurs-filter ul li a.active,
.kurs-filter ul li a:hover {
    background-color: #00adda;
}

/* Styling für den Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    margin: 1em 0;
}

.toggle-label {
    margin-right: 1em;
    font-weight: bold;color:#000;
}

.switch {
    position: relative;
    display: inline-block;
    width: 3em;
    height: 1.4em;
}

.switch input {
    opacity: 0;
        width: 0;
        height: 0;
}

.slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: .4s;
        border-radius: 2em;
}

.slider:before {
        position: absolute;
        content: "";
        height: 1em;
        width: 1em;
        left: .2em;
        bottom: .25em;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
}

input:checked + .slider {
        background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(1.6em);
}
