.miya-kurs-cards-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  margin-top: 1.2em;
}

.miya-kurs-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #ececec;
  padding: 1.3em 1.2em 1.2em 1.2em;
  min-width: 260px;
  max-width: 405px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.miya-kurs-card-termin h3 {
  font-size: 1.2em;
  margin-top: 0;
  margin-bottom: 0.7em;
}

.miya-kurs-card-row {
  margin-bottom: 0.7em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.miya-kurs-card-label {
  font-weight: 400;
  color: inherit;
}

.miya-kurs-card-value {
  flex: 1 1 auto;
}

.miya-kurs-card-action {
  margin-top: 1em;
  text-align: right;
}

.miya-kurs-card a.miya {
  display: inline-block;
  background: #7a4c1e;
  color: #fff !important;
  padding: 0.5em 1.2em;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  margin-top: 0.2em;
}
.miya-kurs-card a.miya:hover {
  background: #a86c2c;
  color: #fff;
}

.miya-kurs-card-infos {
  margin-top: 1.1em;
  width: 100%;
  font-size: 14px;;
}
.miya-kurs-card-infos .miya-kurs-card-row {
  margin-bottom: 0.3em;
}
.miya-kurs-card-infos .miya-kurs-card-row:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .miya-kurs-cards-wrapper {
    gap: 1em;
  }
  .miya-kurs-card {
    min-width: 220px;
    max-width: 100%;
    flex: 1 1 100%;
  }
}

@media (max-width: 600px) {
  .miya-kurs-cards-wrapper {
    flex-direction: column;
    gap: 1em;
  }
  .miya-kurs-card {
    min-width: 0;
    max-width: 100%;
    padding: 1em 0.7em 1em 0.7em;
  }
} 

.miya-kurse-nicht-verfuegbar {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 1.3em 1.2em 1.2em 1.2em;
  margin: 1.2em 0 0.7em 0;
  text-align: center;
  color: #a86c2c;
  font-weight: 600;
  font-size: 1.1em;
}

@media (max-width: 600px) {
  .miya-kurse-nicht-verfuegbar {
    padding: 1em 0.7em 1em 0.7em;
    font-size: 1em;
  }
} 

.miya-kursliste-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2em 0 2em 0;
}
.miya-kursliste-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid #e0d3c2;
  border-top: 4px solid #a86c2c;
  border-radius: 50%;
  animation: miya-spin 1s linear infinite;
}
@keyframes miya-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
} 

.miya-kurs-pill {
  display: inline-block;
  background: #b3d8cb;
  color: #004c3b;
  font-size: 0.85em;
  font-weight: 400;
  border-radius: 999px;
  padding: 0.12em 0.7em;
  margin-bottom: 0.4em;
  margin-right: 0.25em;
  letter-spacing: 0.01em;
  white-space: nowrap;
  width: auto;
  max-width: none;
}
.miya-kurs-card-termin {
  font-size: 1.2em;
  font-weight: 700;
  color: #7a4c1e;
  margin-top: 0 px !important;
  margin-bottom: 0.7em !important;
} 

.miya-kurs-filter-form {
  display: flex;
  gap: 1.5em;
  flex-wrap: wrap;
  align-items: flex-end;
}
.miya-kurs-filter-form > div {
  flex: 1 1 33%;
  min-width: 180px;
  max-width: 33%;
  display: flex;
  flex-direction: column;
}
.miya-kurs-filter-form label {
  width: 100%;
  margin-bottom: 0.2em;
}
.miya-kurs-filter-form select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .miya-kurs-filter-form {
    flex-direction: column;
    gap: 0.7em;
  }
  .miya-kurs-filter-form > div {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
} 

.miya-kurskategorie {
  margin-bottom: 3em;
  padding: 0em 2em 2em 2em;
  background: rgb(247, 247, 247);
  border-radius:8px;
  overflow-x: auto;
} 

.miya-kursliste-flex {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2.5em;
}
.miya-filter-sidebar {
  min-width: 280px;
  max-width: 400px;
  margin-bottom: 2em;
  margin-right: 0.5em;
}
.miya-filter-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.miya-filter-group {
  margin-bottom: 1.5em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid #e0d3c2;
}
.miya-filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.miya-filter-group-title {
  font-weight: 600;
  font-size: 1.1em;
  margin-bottom: 0.7em;
}
.miya-filter-checkbox {
  display: block;
  margin-bottom: 0.5em;
  font-size: 1em;
  cursor: pointer;
}
.miya-filter-reset {
  margin-top: 1em;
  background: #fff;
  color: #7a4c1e;
  border: 1px solid #a86c2c;
  border-radius: 20px;
  padding: 0.5em 1.2em;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.miya-filter-reset:hover {
  background: #a86c2c;
  color: #fff;
}
@media (max-width: 900px) {
  .miya-kursliste-flex {
    flex-direction: column;
    gap: 1.5em;
  }
  .miya-filter-sidebar {
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 1.5em;
  }
  .miya-filter-sidebar {
    display: none;
  }
  .miya-filter-mobile-toggle {
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 1.5em;
    right: 1.5em;
    z-index: 1001;
    background: #004c3b;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 0.8em 1.5em;
    font-size: 1.1em;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: background 0.2s;
  }
  .miya-filter-mobile-toggle:hover {
    background: #00775a;
    color: #fff;
  }
  .miya-filter-mobile-icon {
    font-size: 1.3em;
    margin-right: 0.7em;
  }
  .miya-filter-mobile-badge {
    display: inline-block;
    background: #d32f2f;
    color: #fff;
    border-radius: 999px;
    font-size: 0.95em;
    font-weight: 700;
    min-width: 1.7em;
    padding: 0.1em 0.7em;
    margin-left: 0.7em;
    text-align: center;
  }
  .miya-filter-overlay {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0; top: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    justify-content: flex-end;
    align-items: flex-end;
    animation: miya-fadein 0.2s;
    flex-direction: column;
  }
  .miya-filter-overlay.active {
    display: flex !important;
  }
  .miya-filter-overlay-content {
    background: #fff;
    border-radius: 18px 18px 0 0;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.12);
    padding: 2em 1.2em 1.2em 1.2em;
    min-height: 40vh;
    animation: miya-slideup 0.25s cubic-bezier(.4,1.4,.6,1) 1;
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    display: block;
  }
  .miya-filter-overlay-header {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 1.2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .miya-filter-overlay-close {
    background: none;
    border: none;
    font-size: 2em;
    color: #a86c2c;
    cursor: pointer;
    margin-left: 1em;
    line-height: 1;
  }
  .miya-filter-overlay-apply {
    width: 100%;
    background: #7a4c1e;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.9em 0;
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 2em;
    cursor: pointer;
    transition: background 0.2s;
  }
  .miya-filter-overlay-apply:hover {
    background: #a86c2c;
  }
}
@keyframes miya-slideup {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes miya-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

.miya-filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.miya-filter-list li {
  margin-bottom: 0.4em;
  padding: 0;
}
.miya-filter-list li:last-child {
  margin-bottom: 0;
} 

.miya-ausgebucht {
  color: #d32f2f !important;
  font-weight: bold;
} 

.miya-mobile-only {
  display: none !important;
}
@media (max-width: 900px) {
  .miya-mobile-only.miya-filter-mobile-toggle {
    display: flex !important;
  }
  .miya-mobile-only.miya-filter-overlay {
    display: none !important;
    position: fixed;
    left: 0; right: 0; bottom: 0; top: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    justify-content: flex-end;
    align-items: flex-end;
    animation: miya-fadein 0.2s;
    flex-direction: column;
  }
  .miya-mobile-only.miya-filter-overlay.active {
    display: flex !important;
  }
  .miya-filter-overlay-content {
    background: #fff;
    border-radius: 18px 18px 0 0;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.12);
    padding: 2em 1.2em 1.2em 1.2em;
    min-height: 40vh;
    animation: miya-slideup 0.25s cubic-bezier(.4,1.4,.6,1) 1;
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    display: block;
  }
  .miya-filter-list {
    list-style: none !important;
    margin: 0;
    padding: 0;
  }
}
.miya-kursdetails-toggle {
  text-decoration: underline;
  color: #7a4c1e;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}
.miya-kursdetails-toggle:hover {
  color: #a86c2c;
  text-decoration-thickness: 2px;
}
.miya-kursdetails-content {
  display: none;
  margin: 1em 0;
  overflow: visible;
}
.miya-kursdetails-content.miya-kursdetails-open {
  display: block;
}

/* Fix für Flexbox-Layout-Problem beim Scrollen */
.miya-kursdetails-content.miya-kursdetails-open ~ .miya-kurs-cards-wrapper {
  min-height: 0;
}

.miya-kursliste-main {
  min-height: 0;
  overflow: visible;
}