/* =============================================
   MICROTANGO TABELLEN - Tanzschule Tessmann
   v2 - finale Version
   ============================================= */

/* ------------------------------------------
   BASIS: immer aktiv, alle Breakpoints
   ------------------------------------------ */

.tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-attend,
.akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-attend,
.tabs-kurs .mt-open-popup,
.akk-kurs .mt-open-popup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #FAB534;
  color: #111111 !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 0;
  width: fit-content;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;

}

.tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-attend:hover,
.tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-attend:focus,
.akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-attend:hover,
.akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-attend:focus,
.tabs-kurs .mt-open-popup:hover,
.tabs-kurs .mt-open-popup:focus,
.akk-kurs .mt-open-popup:hover,
.akk-kurs .mt-open-popup:focus {
  background: #e6a51f;
  color: #111111 !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(242, 178, 51, 0.28);

}

/* Info-Icon */
.tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-schedule-info-icon,
.akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-schedule-info-icon {
  display: block;
  width: 26px;
  height: 26px;
}

.tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-schedule-info-icon svg,
.akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-schedule-info-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-schedule-info-icon svg #icon path,
.akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-schedule-info-icon svg #icon path {
  fill: #f5a800;
  stroke: #f5a800;
  stroke-width: 1px;
}

.tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-schedule-info-icon svg #info path,
.akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-schedule-info-icon svg #info path {
  fill: #fff;
}
.tabs-kurs .mt-list td:has(.mt-open-popup)::before,
.akk-kurs .mt-list td:has(.mt-open-popup)::before {
  display: none !important;
}
/* ------------------------------------------
   DESKTOP > 1327px — beide Tabellen als Table
   ------------------------------------------ */

@media (min-width: 1328px) {

  .tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list,
  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    font-size: 0.95rem;
  }

  /* Header */
  .tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list thead tr,
  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list thead tr {
    background-color: #1a1a1a;
    color: #fff;
  }

  .tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list thead th,
  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list thead th {
    padding: 13px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
  }

  .tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list thead th:first-child,
  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list thead th:first-child {
    border-radius: 8px 0 0 8px;
    width: 44px;
  }

  .tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list thead th:last-child,
  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list thead th:last-child {
    border-radius: 0 8px 8px 0;
  }

  /* Zeilen */
  .tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody tr,
  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody tr {
    background-color: #f5f5f5;
    transition: background-color 0.2s ease;
  }

  .tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody tr:nth-child(even),
  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody tr:nth-child(even) {
    background-color: #ebebeb;
  }

  .tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody tr:hover td,
  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody tr:hover td {
    background-color: #fef0c0;
  }

  /* Zellen */
  .tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody td,
  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody td {
    padding: 13px 16px;
    vertical-align: middle;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    font-size: 0.92rem;
    background-color: #f5f5f5;
  }

  .tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody td:first-child,
  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody td:first-child {
    border-left: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    width: 44px;
    text-align: center;
    padding: 13px 10px;
  }

  .tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody td:last-child,
  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody td:last-child {
    border-right: 1px solid #ddd;
    border-radius: 0 8px 8px 0;
    text-align: right;
    padding-right: 12px;
  }
}

/* ------------------------------------------
   1081px – 1327px
   Kurs-Tabelle: normales Table
   Terminplan: Flex-Cards 2-spaltig
   ------------------------------------------ */

@media (min-width: 1081px) and (max-width: 1327px) {

  /* Kurs-Tabelle (1.): Table-Styling */
  .tabs-kurs .elementor-widget-shortcode.kurs-table .mt-list,
  .akk-kurs .elementor-widget-shortcode.kurs-table .mt-list {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    font-size: 0.95rem;
    
  }

  .tabs-kurs .elementor-widget-shortcode.kurs-table .mt-list thead tr,
  .akk-kurs .elementor-widget-shortcode.kurs-table .mt-list thead tr {
    background-color: #1a1a1a;
    color: #fff;
  }

  .tabs-kurs .elementor-widget-shortcode.kurs-table .mt-list thead th,
  .akk-kurs .elementor-widget-shortcode.kurs-table .mt-list thead th {
    padding: 13px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
  }

  .tabs-kurs .elementor-widget-shortcode.kurs-table .mt-list thead th:first-child,
  .akk-kurs .elementor-widget-shortcode.kurs-table .mt-list thead th:first-child {
    border-radius: 8px 0 0 8px;
    width: 44px;
  }

  .tabs-kurs .elementor-widget-shortcode.kurs-table .mt-list thead th:last-child,
  .akk-kurs .elementor-widget-shortcode.kurs-table .mt-list thead th:last-child {
    border-radius: 0 8px 8px 0;
  }

  .tabs-kurs .elementor-widget-shortcode.kurs-table .mt-list tbody tr,
  .akk-kurs .elementor-widget-shortcode.kurs-table .mt-list tbody tr {
    background-color: #f5f5f5;
    transition: background-color 0.2s ease;
  }


  .tabs-kurs .elementor-widget-shortcode.kurs-table .mt-list tbody tr:hover td,
  .akk-kurs .elementor-widget-shortcode.kurs-table .mt-list tbody tr:hover td{
    background-color: #fef0c0; 
  }

  .tabs-kurs .elementor-widget-shortcode.kurs-table .mt-list tbody td,
  .akk-kurs .elementor-widget-shortcode.kurs-table .mt-list tbody td {
    padding: 13px 16px;
    vertical-align: middle;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    font-size: 0.92rem;
    background-color: #f5f5f5;
  }

  .tabs-kurs .elementor-widget-shortcode.kurs-table .mt-list tbody td:first-child,
  .akk-kurs .elementor-widget-shortcode.kurs-table .mt-list tbody td:first-child {
    border-left: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    width: 44px;
    text-align: center;
    padding: 13px 10px;
  }

  .tabs-kurs .elementor-widget-shortcode.kurs-table .mt-list tbody td:last-child,
  .akk-kurs .elementor-widget-shortcode.kurs-table .mt-list tbody td:last-child {
    border-right: 1px solid #ddd;
    border-radius: 0 8px 8px 0;
    text-align: right;
    padding-right: 12px;
  }

  /* Terminplan (2.): Flex-Cards */
  .tabs-kurs .elementor-widget-shortcode.time-table .mt-list thead,
  .akk-kurs .elementor-widget-shortcode.time-table .mt-list thead {
    display: none;
  }

  .tabs-kurs .elementor-widget-shortcode.time-table .mt-list tbody,
  .akk-kurs .elementor-widget-shortcode.time-table .mt-list tbody {
    display: flex !important;
    flex-wrap: wrap;
    gap: 16px;
  }

  .tabs-kurs .elementor-widget-shortcode.time-table .mt-list tbody tr,
  .akk-kurs .elementor-widget-shortcode.time-table .mt-list tbody tr {
    display: block !important;
    flex: 1 1 calc(50% - 8px);
    min-width: 280px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
  }

  .tabs-kurs .elementor-widget-shortcode.time-table .mt-list tbody td,
  .akk-kurs .elementor-widget-shortcode.time-table .mt-list tbody td {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 9px 16px;
    border: none;
    border-bottom: 1px solid #e4e4e4;
    font-size: 0.88rem;
    background-color: #f5f5f5;
  }

  .tabs-kurs .elementor-widget-shortcode.time-table .mt-list tbody td:last-child,
  .akk-kurs .elementor-widget-shortcode.time-table .mt-list tbody td:last-child {
    border-bottom: none;
    justify-content: stretch;
    padding: 0;
  }

  .tabs-kurs .elementor-widget-shortcode.time-table .mt-list tbody td::before,
  .akk-kurs .elementor-widget-shortcode.time-table .mt-list tbody td::before {
    content: attr(data-header);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #444;
    flex-shrink: 0;
    margin-right: 12px;
  }

  .tabs-kurs .elementor-widget-shortcode.time-table .mt-list tbody td[data-header=""]::before,
  .akk-kurs .elementor-widget-shortcode.time-table .mt-list tbody td[data-header=""]::before {
    display: none;
  }
  


}

/* ------------------------------------------
   881px – 1080px
   BEIDE Tabellen als Flex-Cards 2-spaltig
   ------------------------------------------ */

@media (min-width: 881px) and (max-width: 1080px) {

  /* Gemeinsame Card-Basis für beide Tabellen */
  .tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list thead,
  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list thead {
    display: none !important;
  }

  .tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody,
  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody {
    display: flex !important;
    flex-wrap: wrap;
    gap: 16px;
  }

  .tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody tr,
  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody tr {
    display: block !important;
    flex: 1 1 calc(50% - 8px);
    min-width: 260px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
  }

  .tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody td,
  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody td {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 9px 16px;
    border: none;
    border-bottom: 1px solid #e4e4e4;
    font-size: 1.2rem;
    background-color: #f5f5f5;
  }

  

  .tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody td::before,
  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody td::before {
    content: attr(data-header);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #444;
    flex-shrink: 0;
    margin-right: 12px;
    position: relative;
    padding: 0;
  }

  .tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody td[data-header=""]::before,
  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody td[data-header=""]::before {
    display: none;
  }

  /* Info-Icon-Zelle: dunkle Header-Leiste */
  .tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody td:first-child,
  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody td:first-child {
    padding: 8px 14px;
    border-bottom: none;
  }

  .tabs-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody td:last-child,
  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody td:last-child {
    border-bottom: none;
    justify-content: flex-end;
  }

 
}

/* ------------------------------------------
   ≤ 880px — Elementor Akkordeon aktiv
   .tabs-kurs wird durch Elementor ausgeblendet
   .akk-kurs: Cards einzeilig
   ------------------------------------------ */

@media (max-width: 880px) {

  .tabs-kurs {
    display: none !important;
  }

  /* Kurs-Tabelle: Cards 1-spaltig */
  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list thead {
    display: none !important;
  }

  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody tr {
    display: block !important;
    margin-bottom: 16px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
  }

  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody td {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px !important;
    border: none;
    border-bottom: 1px solid #e4e4e4;
    font-size: 1.2rem;
    background-color: #f5f5f5;
  }

  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody td:last-child {
    border-bottom: none;
    justify-content: flex-end;
  }

  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody td::before {
    content: attr(data-header);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #444;
    flex-shrink: 0;
    margin-right: 12px;
    position: relative;
    padding: 0;
    left: unset;
    width: auto;
  }

  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody td[data-header=""]::before {
    display: none;
  }

  /* Info-Icon-Leiste oben in der Card */
  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody td:first-child {
    padding: 8px 16px;
    border-bottom: none;
  }

  
}
@media (max-width: 450px) {
  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody td {
    font-size: 1rem;
  }
  .akk-kurs .elementor-widget-shortcode:not(.preis-tabelle) .mt-list tbody td::before {
    font-size: 0.8rem;
  }
}