@media (max-width: 1350px) {

    .navbar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-around;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-container {
        gap: 0;
        width: 100%;
        height: 76px;
        flex-direction: row;
    }

    .nav-container a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: column;
        padding: 8px 0;
    }

    .nav-container a img {
        width: 30px;
        height: 30px;
    }

    .navbar .flex.flex-col {
        display: none;
    }

    .startseite-header {
        margin-left: 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .startseite-header img {
        display: block;
        width: 30px;
        height: 30px;
        margin-right: 16px;
    }

    .startseite-header p {
        display: none;
    }

    main {
        margin-bottom: 70px;
        margin-left: 0 !important;
    }

    .kanban-logo {
        display: none;
    }

    .taskRows{
        height: 60vh !important;
    }

    .showContacts{
        height: 71vh !important;
    }  
    
    h1 {
        font-size: 32px !important;
    }

}

@media (max-width: 1100px) {
    main {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .greetings {
        display: none !important;
    }

    .coloumContainer {
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        height: 60vh;
        width: 100%;
        align-items: center;
    }

    .sepererator {
        display: none;
    }

    .add-task-container {
        padding: 0 !important;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100vh;
    }

    .addTasksBtnRequired{
        padding: 16px 0;
    }

    .h1AddTask{
        margin-bottom: unset !important;
    }

    .addTasksBtn {
        display: flex;
        gap: 16px;
        flex-direction: row;
        align-items: center;
        margin-top: unset !important;
    }

    .taskRows{
        flex-direction: column;
    }

    .tasksInRow {
        box-sizing: border-box;
        gap: 8px;
        display: flex;
        flex-direction: unset !important;
        min-height: 10vh !important;
        padding: 16px 0;
        flex-wrap: wrap;
    }

    .taskRow{
        width: 100% !important;   
    }

    .rowHeader{
        width: 240px !important;
    }

    .board-container{
        padding: 0  !important;
        height: 80vh;
    }

    .boardHeader{
        display: flex;
        flex-wrap: wrap;
        padding: 16px;
        gap: 16px;
    }

    .boardHeaderInputs button p{
        display: none;
    }

    .boardHeaderAddTaskBtn{
        width: 48px !important;
    }

    .headline-container{
        display: flex;
        flex-direction: column;
    }

    .contact-container span {
        display: contents !important;
    }

    .seperator{
        width: 80px;
        height: 3px;
        background-color: #29abe2;
    }

    .contact-details-img{
        width: 64px !important;
        height: 64px !important;
        font-size: 20px !important;
    }
    .contact-info-container h2{
        font-size: 20px !important;
    }

    .help {
    display: none;
    }

    .helpMenu {
        display: block;
    }
    
    .new-contact-container {
        flex-direction: column;
        max-width: 396px;
    }

    .bg-white{
        display: flex;
        flex-direction: column;
    }

    .edit-container{
        display: flex;
        flex-direction: column;
        height: 100vh;
        position: fixed;
        top: 190px;
        gap: 0;
    }
    
    .editContactWhiteDiv {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        flex-direction: column;
    }
    .editContactsInfo {
        margin: 0 !important;
        flex-direction: column;
        gap: 8px !important;
    }

    .editContactsInfoImg {
        position: relative;
        top: -60px;
    }

    .closeBtn {
        position: relative;
        top: -80px;
        z-index: 10;
    }

    .new-contact-container{
        height: 100vh !important;
    }

    .contact-inuptfield-container{
        width: 100% !important;
    }

    .join-contact-container{
        padding: 0 0 60px;
    
    }

    .media-cancel{
        position: fixed;
        top: 10px;
        right: 30px;
        color: white !important;
    }

    .bg-main{
        padding: 20px 20px 60px !important;
    }

    .add-container{
        margin: 32px;
    }

    .add-contact-info-img{
        position: relative;
        top: -40px;
    }
    .moveTaskButton {
        display: block !important;
        position: absolute;
        top: 5px;
        right: 5px;
        background-color: transparent;
        border: none;
        cursor: pointer;
        font-size: 18px;
    }
    
    .moveOptions {
        position: absolute;
        top: 30px;
        right: 5px;
        background-color: white;
        border: 1px solid #ccc;
        border-radius: 5px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        display: flex;
        flex-direction: column;
    }
    
    .moveOptions button {
        padding: 8px 12px;
        background-color: white;
        border: none;
        text-align: left;
        cursor: pointer;
        font-size: 14px;
    }
    
    .moveOptions button:hover {
        background-color: #f0f0f0;
    }

    .boardHeaderTitle{
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        width: auto;
        margin-right: 0;
        grid-column: 1;
        grid-row: 1;
    }

    .boardHeaderAddTaskBtn p{
        display: none;
    }

    .boardHeaderRight {
        flex-direction: column;
        width: 100%;
    }

    .boardHeaderInputs {
        order: 2;
        width: 100%;
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: stretch;
    }

    .boardHeaderAddTaskContainer {
        margin-left: auto; /* Schiebt den Button nach rechts */
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    /* Neue Container für die erste Zeile */
    .boardHeaderTopRow {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .boardHeaderTitle, .boardHeaderAddTaskContainer {
        margin: 0; /* Reset der margins */
    }

    .boardHeaderSearch {
        width: 100% !important; /* Volle Breite im Mobile */
        max-width: none;
    }

    .boardHeader {
        grid-template-columns: auto auto; /* Ändert sich zu 2 Spalten */
        padding: 16px;
    }

    .boardHeaderTitle {
        grid-column: 1;
        grid-row: 1;
    }

    .boardHeaderAddTaskContainer {
        grid-column: 2;
        grid-row: 1;
    }

    .boardHeaderInputs {
        grid-column: 1 / span 2; /* Geht über beide Spalten */
        grid-row: 2;
        width: 100%;
    }

    .boardHeaderSearch {
        max-width: none; /* Entfernt die maximale Breite */
        width: 100%;
    }

    .boardHeader {
        flex-wrap: wrap;
        padding: 16px;
    }

    .boardHeaderTitle {
        flex: 1;
    }

    .boardHeaderInputs {
        order: 2;
        width: 100%;
        margin: 16px 0 0;
    }

    .boardHeaderSearch {
        width: 100%;
    }

    .boardHeaderAddTaskBtn {
        width: 48px !important;
    }

    .boardHeaderAddTaskBtn p {
        display: none;
    }

    .boardHeader {
        display: flex;
        flex-wrap: wrap;
        padding: 16px;
        gap: 16px;
    }

    .boardHeaderTitle {
        flex: 1;
        margin: 0;
    }

    .boardHeaderAddTaskContainer {
        flex-shrink: 0;
    }

    .boardHeaderInputs {
        width: 100%;
        order: 1;
        margin: 16px 0 0;
    }

    .boardHeaderSearch {
        width: 100%;
        max-width: none;
    }

    .boardHeaderAddTaskBtn {
        width: 48px !important;
    }

    .boardHeaderAddTaskBtn p {
        display: none;
    }

}


/* Dynamische Höhen-Anpassungen */
:root {
    --vh: 1vh;
}

.showContacts {
    height: calc(var(--vh, 1vh) * 85);
    max-height: 900px;
    min-height: 400px;
    overflow-y: auto;
}

@media (max-width: 1100px) {
    .colouvmns {
        height: calc(var(--vh, 1vh) * 75);
        min-height: 300px;
    }
    
    .taskRows {
        height: calc(var(--vh, 1vh) * 70) !important;
    }
}