@media screen and (max-width: 1200px) {
  .project-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .daten-section-header {
    flex-direction: column;
    align-items: start;
  }

}



@media screen and (max-width: 1000px) {
  :root {
    --fontSize50: 50px;
    --fontSize24: 24px;
  }

  .desktopElem {
    display: none;
  }

  .mobileElem {
    display: block;
  }

  .mobileMarker {
    display: block;
  }

  .topHeader {
    margin: 1rem;
  }

  .mainNavigation {
    padding: 1rem;
  }





  /* body and general____________________________________________ */

  #main-content {
    margin: 1rem;
  }


  .todos-section .filter-bar {
    gap: 1rem;
  }

  .todos-section .add-todo {
    margin-left: 0;
  }


  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }






  .daten-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }

  .save-button,
  .save-button.long {
    width: auto;
  }

  .stammfragen-grid {
    grid-template-columns: 1fr;
  }

  .dokumente-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .produkte-buttons {
    flex-direction: column;
  }


}


@media screen and (max-width: 768px) {

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-search {
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
  }

  .project-search-info {
    white-space: normal;
  }

  .filter-right {
    flex-wrap: wrap;
  }

  .overlay-field-row {
    flex-direction: column;
  }

  .project-meta {
    flex-direction: column;
  }

  .dokumente-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .userTitle .userTitleName {
    text-align: right;
    font-size: 0.9rem;
  }

  .userTitle .userTitleJob {
    text-align: right;
    font-size: 0.7rem;
  }

  .todo-table,
  .product-table {

    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

        .mainNavigation .pill-btn {
          min-width: unset;
          font-size: 1rem;
        }

  /* Hide less critical todo columns on mobile */
  .todo-table .todo-type,
  .todo-table .todo-project,
  .todo-table .todo-assignees,
  .todo-table .todo-date {
    display: none;
  }

            .todo-table,
            .product-table {
              display: block;
            }

}

@media screen and (max-width: 500px) {

  .project-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .dokumente-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .topHeader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }



}

@media screen and (max-width: 400px) {


  .project-header-card {
    flex-direction: column;
  }

  .project-header-right {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
  }

  .accordion-title {
    font-size: 1rem;
  }

  .accordion-meta {
    font-size: 0.7rem;
  }

  .overlay-field.profile-kuerzel {
    flex: 1;
  }
}