@media (max-width: 600px) {
    .kanban__add-button {
        max-width: 48px;
        height: 48px;
        padding: 10px; 
    }

    .kanban__add-text {
        display: none;
    }

    .kanban-add-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {

    .header__wrapper {
        padding-left: 20px;
        padding-right: 20px;
        height: 80px;
    }

    .header__user {
        height: 40px;
        width: 40px;
        font-size: 16px;
        border: 2px solid var(--header-color-border-user);
    }

    .kanban__title {
        font-size: 40px;
    }

    .edit__label,
    .edit__input,
    .edit__textarea,
    #edit-due-date,
    .edit__button-prio span,
    #task-subtask-input,
    #task-subtask-input::placeholder,
    .edit__subtask-text,
    .edit__button-ok {
        font-size: 16px;
    }

    .edit__input {
        height: 40px;
    }

    .edit__button-prio {
        max-width: 120px;
        height: 41px;
    }

    .edit__button-prio svg,
    .edit__button-ok img {
        width: 15px;
        height: 20px;
    }

    .edit__contact-badge {
        height: 32px;
        width: 32px;
    }

    .edit__button-ok {
        height: 40px;
    }

    .overlay__content {
        border-radius: 0;
        position: fixed;
        inset: 0;                  
        width: 100%;
        height: 100vh;
        max-height: none;
        padding: 40px; 
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .overlay__badgeframe span, 
    .overlay__action--activate span {
        font-size: 24px;
    }

    .overlay__badgeframe {
        margin-bottom: 32px;;
    }

    .overlay__close--button {
        width: 44px;
        height: 44px;
    }
    
    .overlay__story,
    .overlay__edit {
        flex: 1 1 auto;
        min-height: 0;
        overflow: auto;
        display: flex;
        flex-direction: column;
        gap: 32px !important;
        align-items: stretch;  
    }    

    .overlay__title,
    .overlay__description {
        flex: 0 0 auto;            
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
        hyphens: auto;
  }

    .overlay__title {
        font-size: 30px;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .overlay__description {
        font-size: 24px;           
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .overlay__assigned {
        margin: 16px 0;
        line-height: 120%;
    } 

    .overlay__subtasks {
        margin-bottom: 16px; 
        line-height: 120%; 
    }

    .overlay__action--activate svg {
        width: 21px !important;
        height: 24px !important;
    }

    .edit__action-buttons,
    .overlay__action {
        position: sticky;
        bottom: calc(-1 * var(--ov-pad));   
        z-index: 2;
        margin-top: auto;
    }
   
    .overlay__edit--selections {
        gap: 16px;
    }

    .overlay__edit {
        height: auto;
        max-height: 100vh;
    }

    .overlay__edit--wrapper {
        max-height: none;
    }
}

@media (max-width: 460px) {
    .overlay__content {
        padding: 20px;
    }

    .edit__icon-contact,
    .edit__icon-calendar,
    .edit__wrapper-subtask-icons {
        right: 4px
    }
}

@media (max-width: 400px) {
    .edit__button-prio svg {
        display: none;
    }
}