.unitLegacy {
}

.unitLegacy ul {
    margin: 0 0 15px !important;
    padding: 0 !important;
    list-style-type: none;
}

.unitLegacy ul li {
    display: inline-block;
    margin-right: 10px;
}

.unitLegacy ul li img {
    margin-right: 10px;
    margin-bottom: -3px;
}

.mtvunit.table {
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: repeat(12, auto); /* Adjust number of columns as needed */
    gap: 1px;
    border: 1px solid #ccc;
  }

  .mtvunit.table.colcount-13 {
    grid-template-columns: repeat(13, auto); /* Adjust number of columns as needed */
  }

  .mtvunit.table.colcount-11 {
    grid-template-columns: repeat(11, auto); /* Adjust number of columns as needed */
  }

  .mtvunit.table.colcount-2 {
    grid-template-columns: repeat(2, auto); /* Adjust number of columns as needed */
  }
  

  .mtvunit .rowgroup {
    display: contents; /* Allows rows to behave properly inside the grid */
  }
  
  .mtvunit .row {
    display: contents; /* Keeps elements in grid without extra divs affecting layout */
  }
  
  .mtvunit .row.odd .cell {
    background-color: #eaedee;
  }

  .mtvunit .columnheader {
    text-align: center;
    justify-content: center;
    font-weight: normal;
    background-color: #057150 !important;
    color: #fff;
    text-align: center;
    padding: 10px;
  }

  .mtvunit .odd .columnheader {
    background-color: #eaedee !important;
    color: #000 !important;
  }

  .mtvunit .columnheader .data {
    text-align: center;
  }

  .mtvunit .cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    outline-color: #d3d8db;
    outline-style: solid;
    outline-width: 1px;
    outline-offset: 0px;
    border-width: 1px;
    border-color: #fff;
    overflow: hidden;
    background: #fff;
  }
  
  .mtvunit .data {
    position: relative;
    display: block;
    font-size: 18px;
    line-height: 1.2em;
    white-space: normal;
    justify-content: center;
    text-align: left;
  }

  .mtvunit .data.center {
    text-align: center;
}

.mtvunitcount {
    margin: 0 0 10px;
}

.mtvunitcount .unitcount-item {
    margin-bottom: 0px;
    line-height: 1em;
}

.mtvunitcount .unitcount-item img {
    margin-bottom: -5px;
    margin-right: 5px;
}

.mtvunitcount .unitcount-item span {
    font-size: 18px !important;
    text-transform: none !important;
    color: #000000;
    font-family: 'Source Sans Pro Bold',Helvetica,Arial,Lucida,sans-serif !important;
    font-weight: normal !important;
    margin-left: 5px;
}

.mtvunit.table.mobile {
    grid-template-columns: none;
    border: 0;
}

.mtvunit.table.mobile .wohnung .columnheader {
    background-color: #fff !important;
    color: #000;
}

.mtvunit.table.mobile .rowgroup{
    display: grid;
    grid-template-columns: repeat(2, 50%);
    margin: 0 0 15px;
}

.mtvunit.table.mobile .toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}


.mtvunit.table.mobile .toggle:after {
    content: 'L';
    font-size: 24px;
    color: #057150;
    font-family: ETmodules !important;
    font-weight: 400 !important;
}

.mtvunit.table.mobile .rowgroup.open .toggle:after {
    content: 'K';
}

.mtvunit.table.mobile .cell.bg .data,
.mtvunit.table.mobile .cell.bg .toggle:after {
    color: #fff !important;
}

.mtvunit.table.mobile .bg.verkauft {
    background-color: #5b205c;
}

.mtvunit.table.mobile .bg.frei {
    background-color: #057150;
}

.mtvunit.table.mobile .bg.platziert {
    background-color: #fdba5a;
}

.mtvunit.table.mobile .rowgroup .row:not(.first) {
    display: none;
}

.mtvunit.table.mobile .rowgroup.open .row:not(.first) {
    display: contents;
}



.mtvunit.table.mobile {
    display: none;
}

@media screen and (max-width: 1024px) {
    .mtvunit.table.mobile {
        display: block;
    }
}


.mtvunit.table {
    display: grid;
}

@media screen and (max-width: 1024px) {
    .mtvunit.table {
        display: none;
    }
}

.et_pb_section {
    position: relative;
    z-index: 1;
}