.mtess-wochenliste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  width: 100%;
}

.mtess-tag-box {
  background: transparent;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.mtess-tag-title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-family: var(--bde-heading-font-family);
  text-transform: uppercase;
  border-bottom: 2px solid var(--bde-body-text-color);
  padding-bottom: 0.25rem;
}

.kurs-box.listenansicht {
  display: flex;
  align-items: stretch;
  background: #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.kurs-image-visible {
  width: 30%;
  min-width: 150px;
  max-width: 200px;
  object-fit: cover;
}

.kurs-image-visible img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kurs-infos {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.zeit, .raum {
  font-size: 0.9em;
  color: #333;
}

.raum {
  /*text-transform: uppercase;*/
}

.desc {
  font-size: 0.75em;
  font-style: italic;
  color: var(--bde-links-color);
}

.desc p {
  margin: 0;
}
@media screen and (max-width: 782px) {
  .mtess-tag-box {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

.mtess-ferienliste {
  margin-top: 2rem;
  background: #fffdf5;
  padding: 1rem;
  border-radius: 8px;
  border: 2px dashed #FAE10E;
}

.mtess-ferien-heading {
  font-size: 1.8rem;
  color: #FAE10E;
  text-align: center;
  margin-bottom: 1rem;
}

.ferienplan-box {
  border: 2px solid #FAE10E;
  background: transparent !important;
  margin-bottom: 10px;
}
.ferienhinweis {
  font-style: italic;
  font-size: 0.95em;
  margin-bottom: 1rem;
  color: #666;
  text-align: center;
}
.mtess-ferienliste .mtess-wochenliste {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}


.mtsm-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
.mtsm-table th,
.mtsm-table td {
  padding: 8px;
  border: 1px solid #ccc;
}
.mtsm-table th {
  background: #f8f8f8;
  text-align: left;
}
.button.small {
  font-size: 0.8em;
  padding: 2px 6px;
}
#mtsm-new-course {
  margin-top: 2rem;
  border: 2px dashed #ddd;
  padding: 1rem;
  background: #fcfcfc;
}
.mtsm-toggle {
  display: inline-block;
  margin-left: 5px;
  text-decoration: none;
  cursor: pointer;
}
.mtsm-toggle:hover {
  opacity: 0.8;
}
.mtsm-table td {
  vertical-align: middle;
}


form.mtsm-edit-form {
    background: #f9f9f9;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    max-width: 100%;
}
form.mtsm-edit-form label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}
form.mtsm-edit-form input[type="text"],
form.mtsm-edit-form input[type="time"],
form.mtsm-edit-form textarea,
form.mtsm-edit-form select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}
form.mtsm-edit-form .button-primary {
    background-color: #3366ff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
}
form.mtsm-edit-form .button-primary:hover {
    background-color: #254eda;
}

table.mtsm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}
table.mtsm-table th,
table.mtsm-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}
table.mtsm-table th {
    background-color: #f0f0f0;
}
table.mtsm-table tr:nth-child(even) {
    background-color: #fafafa;
}
table.mtsm-table .button.small {
    font-size: 12px;
    padding: 4px 8px;
    margin-right: 5px;
}
.mtsm-toggle {
    font-size: 16px;
    margin-left: 5px;
}

.mtsm-edit-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem 1rem;
  width: 100%;
}

table.mtsm-table thead tr th:last-child,
table.mtsm-table tbody tr td:last-child {
    text-align: right;
}